Skip to content

Commit d0d6a8c

Browse files
tmoskovitchzacmos
tmoskovitch
authored andcommitted
Convert URI to be URL
1 parent 6b46132 commit d0d6a8c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+133
-148
lines changed

docs/AnimatedGif.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**previewImageUrl** | **URI** | | [optional]
10+
**previewImageUrl** | **URL** | | [optional]
1111
**variants** | [**List<VideoAllOfVariants>**](VideoAllOfVariants.md) | An array of all available variants of the media | [optional]
1212

1313

docs/AnimatedGifAllOf.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**previewImageUrl** | **URI** | | [optional]
10+
**previewImageUrl** | **URL** | | [optional]
1111
**variants** | [**List<VideoAllOfVariants>**](VideoAllOfVariants.md) | An array of all available variants of the media | [optional]
1212

1313

docs/ClientForbiddenProblem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A problem that indicates your client is forbidden from making this request.
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**reason** | [**ReasonEnum**](#ReasonEnum) | | [optional]
12-
**registrationUrl** | **URI** | | [optional]
12+
**registrationUrl** | **URL** | | [optional]
1313

1414

1515

docs/ClientForbiddenProblemAllOf.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**reason** | [**ReasonEnum**](#ReasonEnum) | | [optional]
11-
**registrationUrl** | **URI** | | [optional]
11+
**registrationUrl** | **URL** | | [optional]
1212

1313

1414

docs/ComplianceJob.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
1010
**id** | **String** | Compliance Job ID |
1111
**type** | **ComplianceJobType** | |
1212
**createdAt** | **OffsetDateTime** | Creation time of the compliance job. |
13-
**uploadUrl** | **URI** | URL to which the user will upload their tweet or user IDs |
13+
**uploadUrl** | **URL** | URL to which the user will upload their tweet or user IDs |
1414
**uploadExpiresAt** | **OffsetDateTime** | Expiration time of the upload URL |
15-
**downloadUrl** | **URI** | URL from which the user will retrieve their compliance results |
15+
**downloadUrl** | **URL** | URL from which the user will retrieve their compliance results |
1616
**downloadExpiresAt** | **OffsetDateTime** | Expiration time of the download URL |
1717
**name** | **String** | User-provided name for a compliance job | [optional]
1818
**status** | **ComplianceJobStatus** | |

docs/Photo.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**url** | **URI** | | [optional]
10+
**url** | **URL** | | [optional]
1111
**altText** | **String** | | [optional]
1212

1313

docs/PhotoAllOf.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**url** | **URI** | | [optional]
10+
**url** | **URL** | | [optional]
1111
**altText** | **String** | | [optional]
1212

1313

docs/URLFields.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Represent the portion of text recognized as a URL.
88

99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**url** | **URI** | A validly formatted URL. |
12-
**expandedUrl** | **URI** | A validly formatted URL. | [optional]
11+
**url** | **URL** | |
12+
**expandedUrl** | **URL** | | [optional]
1313
**displayUrl** | **String** | The URL as displayed in the Twitter client. | [optional]
14-
**unwoundUrl** | **URI** | Fully resolved url | [optional]
14+
**unwoundUrl** | **URL** | Fully resolved url | [optional]
1515
**status** | **Integer** | HTTP Status Code. | [optional]
1616
**title** | **String** | Title of the page the URL points to. | [optional]
1717
**description** | **String** | Description of the URL landing page. | [optional]

docs/URLImage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Represent the information for the URL image
88

99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**url** | **URI** | A validly formatted URL. | [optional]
11+
**url** | **URL** | | [optional]
1212
**height** | **Integer** | The height of the media in pixels | [optional]
1313
**width** | **Integer** | The width of the media in pixels | [optional]
1414

docs/UrlEntity.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**start** | **Integer** | Index (zero-based) at which position this entity starts. The index is inclusive. |
1212
**end** | **Integer** | Index (zero-based) at which position this entity ends. The index is exclusive. |
13-
**url** | **URI** | A validly formatted URL. |
14-
**expandedUrl** | **URI** | A validly formatted URL. | [optional]
13+
**url** | **URL** | |
14+
**expandedUrl** | **URL** | | [optional]
1515
**displayUrl** | **String** | The URL as displayed in the Twitter client. | [optional]
16-
**unwoundUrl** | **URI** | Fully resolved url | [optional]
16+
**unwoundUrl** | **URL** | Fully resolved url | [optional]
1717
**status** | **Integer** | HTTP Status Code. | [optional]
1818
**title** | **String** | Title of the page the URL points to. | [optional]
1919
**description** | **String** | Description of the URL landing page. | [optional]

docs/User.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515
**_protected** | **Boolean** | Indicates if this user has chosen to protect their Tweets (in other words, if this user's Tweets are private). | [optional]
1616
**verified** | **Boolean** | Indicate if this user is a verified Twitter User. | [optional]
1717
**withheld** | [**UserWithheld**](UserWithheld.md) | | [optional]
18-
**profileImageUrl** | **URI** | The URL to the profile image for this user. | [optional]
18+
**profileImageUrl** | **URL** | The URL to the profile image for this user. | [optional]
1919
**location** | **String** | The location specified in the user's profile, if the user provided one. As this is a freeform value, it may not indicate a valid location, but it may be fuzzily evaluated when performing searches with location queries. | [optional]
2020
**url** | **String** | The URL specified in the user's profile. | [optional]
2121
**description** | **String** | The text of this user's profile description (also known as bio), if the user provided one. | [optional]

docs/Video.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**previewImageUrl** | **URI** | | [optional]
10+
**previewImageUrl** | **URL** | | [optional]
1111
**durationMs** | **Integer** | | [optional]
1212
**variants** | [**List<VideoAllOfVariants>**](VideoAllOfVariants.md) | An array of all available variants of the media | [optional]
1313
**publicMetrics** | [**VideoAllOfPublicMetrics**](VideoAllOfPublicMetrics.md) | | [optional]

docs/VideoAllOf.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**previewImageUrl** | **URI** | | [optional]
10+
**previewImageUrl** | **URL** | | [optional]
1111
**durationMs** | **Integer** | | [optional]
1212
**variants** | [**List<VideoAllOfVariants>**](VideoAllOfVariants.md) | An array of all available variants of the media | [optional]
1313
**publicMetrics** | [**VideoAllOfPublicMetrics**](VideoAllOfPublicMetrics.md) | | [optional]

docs/VideoAllOfVariants.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**bitRate** | **Integer** | The bit rate of the media | [optional]
1111
**contentType** | **String** | The content type of the media | [optional]
12-
**url** | **URI** | The url to the media | [optional]
12+
**url** | **URL** | The url to the media | [optional]
1313

1414

1515

src/main/java/com/twitter/clientlib/model/AnimatedGif.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
import io.swagger.annotations.ApiModel;
3939
import io.swagger.annotations.ApiModelProperty;
4040
import java.io.IOException;
41-
import java.net.URI;
41+
import java.net.URL;
4242
import java.util.ArrayList;
4343
import java.util.List;
4444

@@ -69,7 +69,7 @@
6969
public class AnimatedGif extends Media {
7070
public static final String SERIALIZED_NAME_PREVIEW_IMAGE_URL = "preview_image_url";
7171
@SerializedName(SERIALIZED_NAME_PREVIEW_IMAGE_URL)
72-
private URI previewImageUrl;
72+
private URL previewImageUrl;
7373

7474
public static final String SERIALIZED_NAME_VARIANTS = "variants";
7575
@SerializedName(SERIALIZED_NAME_VARIANTS)
@@ -79,7 +79,7 @@ public AnimatedGif() {
7979
this.type = this.getClass().getSimpleName();
8080
}
8181

82-
public AnimatedGif previewImageUrl(URI previewImageUrl) {
82+
public AnimatedGif previewImageUrl(URL previewImageUrl) {
8383

8484
this.previewImageUrl = previewImageUrl;
8585
return this;
@@ -92,12 +92,12 @@ public AnimatedGif previewImageUrl(URI previewImageUrl) {
9292
@javax.annotation.Nullable
9393
@ApiModelProperty(value = "")
9494

95-
public URI getPreviewImageUrl() {
95+
public URL getPreviewImageUrl() {
9696
return previewImageUrl;
9797
}
9898

9999

100-
public void setPreviewImageUrl(URI previewImageUrl) {
100+
public void setPreviewImageUrl(URL previewImageUrl) {
101101
this.previewImageUrl = previewImageUrl;
102102
}
103103

src/main/java/com/twitter/clientlib/model/AnimatedGifAllOf.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import io.swagger.annotations.ApiModel;
3434
import io.swagger.annotations.ApiModelProperty;
3535
import java.io.IOException;
36-
import java.net.URI;
36+
import java.net.URL;
3737
import java.util.ArrayList;
3838
import java.util.List;
3939

@@ -64,7 +64,7 @@
6464
public class AnimatedGifAllOf {
6565
public static final String SERIALIZED_NAME_PREVIEW_IMAGE_URL = "preview_image_url";
6666
@SerializedName(SERIALIZED_NAME_PREVIEW_IMAGE_URL)
67-
private URI previewImageUrl;
67+
private URL previewImageUrl;
6868

6969
public static final String SERIALIZED_NAME_VARIANTS = "variants";
7070
@SerializedName(SERIALIZED_NAME_VARIANTS)
@@ -73,7 +73,7 @@ public class AnimatedGifAllOf {
7373
public AnimatedGifAllOf() {
7474
}
7575

76-
public AnimatedGifAllOf previewImageUrl(URI previewImageUrl) {
76+
public AnimatedGifAllOf previewImageUrl(URL previewImageUrl) {
7777

7878
this.previewImageUrl = previewImageUrl;
7979
return this;
@@ -86,12 +86,12 @@ public AnimatedGifAllOf previewImageUrl(URI previewImageUrl) {
8686
@javax.annotation.Nullable
8787
@ApiModelProperty(value = "")
8888

89-
public URI getPreviewImageUrl() {
89+
public URL getPreviewImageUrl() {
9090
return previewImageUrl;
9191
}
9292

9393

94-
public void setPreviewImageUrl(URI previewImageUrl) {
94+
public void setPreviewImageUrl(URL previewImageUrl) {
9595
this.previewImageUrl = previewImageUrl;
9696
}
9797

src/main/java/com/twitter/clientlib/model/ClientForbiddenProblem.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
import io.swagger.annotations.ApiModel;
5353
import io.swagger.annotations.ApiModelProperty;
5454
import java.io.IOException;
55-
import java.net.URI;
55+
import java.net.URL;
5656

5757
import com.google.gson.Gson;
5858
import com.google.gson.GsonBuilder;
@@ -133,7 +133,7 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException {
133133

134134
public static final String SERIALIZED_NAME_REGISTRATION_URL = "registration_url";
135135
@SerializedName(SERIALIZED_NAME_REGISTRATION_URL)
136-
private URI registrationUrl;
136+
private URL registrationUrl;
137137

138138
public ClientForbiddenProblem() {
139139
this.type = this.getClass().getSimpleName();
@@ -162,7 +162,7 @@ public void setReason(ReasonEnum reason) {
162162
}
163163

164164

165-
public ClientForbiddenProblem registrationUrl(URI registrationUrl) {
165+
public ClientForbiddenProblem registrationUrl(URL registrationUrl) {
166166

167167
this.registrationUrl = registrationUrl;
168168
return this;
@@ -175,12 +175,12 @@ public ClientForbiddenProblem registrationUrl(URI registrationUrl) {
175175
@javax.annotation.Nullable
176176
@ApiModelProperty(value = "")
177177

178-
public URI getRegistrationUrl() {
178+
public URL getRegistrationUrl() {
179179
return registrationUrl;
180180
}
181181

182182

183-
public void setRegistrationUrl(URI registrationUrl) {
183+
public void setRegistrationUrl(URL registrationUrl) {
184184
this.registrationUrl = registrationUrl;
185185
}
186186

src/main/java/com/twitter/clientlib/model/ClientForbiddenProblemAllOf.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import io.swagger.annotations.ApiModel;
3333
import io.swagger.annotations.ApiModelProperty;
3434
import java.io.IOException;
35-
import java.net.URI;
35+
import java.net.URL;
3636

3737
import com.google.gson.Gson;
3838
import com.google.gson.GsonBuilder;
@@ -112,7 +112,7 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException {
112112

113113
public static final String SERIALIZED_NAME_REGISTRATION_URL = "registration_url";
114114
@SerializedName(SERIALIZED_NAME_REGISTRATION_URL)
115-
private URI registrationUrl;
115+
private URL registrationUrl;
116116

117117
public ClientForbiddenProblemAllOf() {
118118
}
@@ -140,7 +140,7 @@ public void setReason(ReasonEnum reason) {
140140
}
141141

142142

143-
public ClientForbiddenProblemAllOf registrationUrl(URI registrationUrl) {
143+
public ClientForbiddenProblemAllOf registrationUrl(URL registrationUrl) {
144144

145145
this.registrationUrl = registrationUrl;
146146
return this;
@@ -153,12 +153,12 @@ public ClientForbiddenProblemAllOf registrationUrl(URI registrationUrl) {
153153
@javax.annotation.Nullable
154154
@ApiModelProperty(value = "")
155155

156-
public URI getRegistrationUrl() {
156+
public URL getRegistrationUrl() {
157157
return registrationUrl;
158158
}
159159

160160

161-
public void setRegistrationUrl(URI registrationUrl) {
161+
public void setRegistrationUrl(URL registrationUrl) {
162162
this.registrationUrl = registrationUrl;
163163
}
164164

src/main/java/com/twitter/clientlib/model/ComplianceJob.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import io.swagger.annotations.ApiModel;
3535
import io.swagger.annotations.ApiModelProperty;
3636
import java.io.IOException;
37-
import java.net.URI;
37+
import java.net.URL;
3838
import java.time.OffsetDateTime;
3939

4040
import com.google.gson.Gson;
@@ -76,15 +76,15 @@ public class ComplianceJob {
7676

7777
public static final String SERIALIZED_NAME_UPLOAD_URL = "upload_url";
7878
@SerializedName(SERIALIZED_NAME_UPLOAD_URL)
79-
private URI uploadUrl;
79+
private URL uploadUrl;
8080

8181
public static final String SERIALIZED_NAME_UPLOAD_EXPIRES_AT = "upload_expires_at";
8282
@SerializedName(SERIALIZED_NAME_UPLOAD_EXPIRES_AT)
8383
private OffsetDateTime uploadExpiresAt;
8484

8585
public static final String SERIALIZED_NAME_DOWNLOAD_URL = "download_url";
8686
@SerializedName(SERIALIZED_NAME_DOWNLOAD_URL)
87-
private URI downloadUrl;
87+
private URL downloadUrl;
8888

8989
public static final String SERIALIZED_NAME_DOWNLOAD_EXPIRES_AT = "download_expires_at";
9090
@SerializedName(SERIALIZED_NAME_DOWNLOAD_EXPIRES_AT)
@@ -170,7 +170,7 @@ public void setCreatedAt(OffsetDateTime createdAt) {
170170
}
171171

172172

173-
public ComplianceJob uploadUrl(URI uploadUrl) {
173+
public ComplianceJob uploadUrl(URL uploadUrl) {
174174

175175
this.uploadUrl = uploadUrl;
176176
return this;
@@ -183,12 +183,12 @@ public ComplianceJob uploadUrl(URI uploadUrl) {
183183
@javax.annotation.Nonnull
184184
@ApiModelProperty(required = true, value = "URL to which the user will upload their tweet or user IDs")
185185

186-
public URI getUploadUrl() {
186+
public URL getUploadUrl() {
187187
return uploadUrl;
188188
}
189189

190190

191-
public void setUploadUrl(URI uploadUrl) {
191+
public void setUploadUrl(URL uploadUrl) {
192192
this.uploadUrl = uploadUrl;
193193
}
194194

@@ -216,7 +216,7 @@ public void setUploadExpiresAt(OffsetDateTime uploadExpiresAt) {
216216
}
217217

218218

219-
public ComplianceJob downloadUrl(URI downloadUrl) {
219+
public ComplianceJob downloadUrl(URL downloadUrl) {
220220

221221
this.downloadUrl = downloadUrl;
222222
return this;
@@ -229,12 +229,12 @@ public ComplianceJob downloadUrl(URI downloadUrl) {
229229
@javax.annotation.Nonnull
230230
@ApiModelProperty(required = true, value = "URL from which the user will retrieve their compliance results")
231231

232-
public URI getDownloadUrl() {
232+
public URL getDownloadUrl() {
233233
return downloadUrl;
234234
}
235235

236236

237-
public void setDownloadUrl(URI downloadUrl) {
237+
public void setDownloadUrl(URL downloadUrl) {
238238
this.downloadUrl = downloadUrl;
239239
}
240240

0 commit comments

Comments
 (0)