8000 [Librarian] Regenerated @ b8a450aff168b5449d658833256ca2354e3ecbbc df… · twilio/twilio-java@c835886 · GitHub
[go: up one dir, main page]

Skip to content

Commit c835886

Browse files
committed
[Librarian] Regenerated @ b8a450aff168b5449d658833256ca2354e3ecbbc df505752cdef00170b029d7b720bbc359933bf82
1 parent 68675af commit c835886

29 files changed

+3378
-17
lines changed

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
twilio-java changelog
22
=====================
33

4+
[2024-06-06] Version 10.2.1
5+
---------------------------
6+
**Api**
7+
- Mark MaxPrice as obsolete
8+
9+
**Lookups**
10+
- Update examples for `phone_number_quality_score`
11+
12+
**Messaging**
13+
- List tollfree verifications on parent account and all sub-accounts
14+
15+
416
[2024-05-24] Version 10.2.0
517
---------------------------
618
**Library - Docs**

src/main/java/com/twilio/Domains.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public enum Domains {
2424
INTELLIGENCE("intelligence"),
2525
IPMESSAGING("ip-messaging"),
2626
LOOKUPS("lookups"),
27+
MARKETPLACE("marketplace"),
2728
MESSAGING("messaging"),
2829
MICROVISOR("microvisor"),
2930
MONITOR("monitor"),

src/main/java/com/twilio/rest/content/v2/ContentAndApprovalsReader.java

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.twilio.base.Page;
1818
import com.twilio.base.Reader;
1919
import com.twilio.base.ResourceSet;
20+
import com.twilio.converter.Promoter;
2021
import com.twilio.exception.ApiConnectionException;
2122
import com.twilio.exception.ApiException;
2223
import com.twilio.exception.RestException;
@@ -25,10 +26,21 @@
2526
import com.twilio.http.Response;
2627
import com.twilio.http.TwilioRestClient;
2728
import com.twilio.rest.Domains;
29+
import java.time.ZonedDateTime;
30+
import java.util.List;
2831

2932
public class ContentAndApprovalsReader extends Reader<ContentAndApprovals> {
3033

3134
private Integer pageSize;
35+
private String sortByDate;
36+
private String sortByContentName;
37+
private ZonedDateTime dateCreatedAfter;
38+
private ZonedDateTime dateCreatedBefore;
39+
private String contentName;
40+
private String content;
41+
private List<String> language;
42+
private List<String> contentType;
43+
private List<String> channelEligibility;
3244

3345
public ContentAndApprovalsReader() {}
3446

@@ -37,6 +49,75 @@ public ContentAndApprovalsReader setPageSize(final Integer pageSize) {
3749
return this;
3850
}
3951

52+
public ContentAndApprovalsReader setSortByDate(final String sortByDate) {
53+
this.sortByDate = sortByDate;
54+
return this;
55+
}
56+
57+
public ContentAndApprovalsReader setSortByContentName(
58+
final String sortByContentName
59+
) {
60+
this.sortByContentName = sortByContentName;
61+
return this;
62+
}
63+
64+
public ContentAndApprovalsReader setDateCreatedAfter(
65+
final ZonedDateTime dateCreatedAfter
66+
) {
67+
this.dateCreatedAfter = dateCreatedAfter;
68+
return this;
69+
}
70+
71+
public ContentAndApprovalsReader setDateCreatedBefore(
72+
final ZonedDateTime dateCreatedBefore
73+
) {
74+
this.dateCreatedBefore = dateCreatedBefore;
75+
return this;
76+
}
77+
78+
public ContentAndApprovalsReader setContentName(final String contentName) {
79+
this.contentName = contentName;
80+
return this;
81+
}
82+
83+
public ContentAndApprovalsReader setContent(final String content) {
84+
this.content = content;
85+
return this;
86+
}
87+
88+
public ContentAndApprovalsReader setLanguage(final List<String> language) {
89+
this.language = language;
90+
return this;
91+
}
92+
93+
public ContentAndApprovalsReader setLanguage(final String language) {
94+
return setLanguage(Promoter.listOfOne(language));
95+
}
96+
97+
public ContentAndApprovalsReader setContentType(
98+
final List<String> contentType
99+
) {
100+
this.contentType = contentType;
101+
return this;
102+
}
103+
104+
public ContentAndApprovalsReader setContentType(final String contentType) {
105+
return setContentType(Promoter.listOfOne(contentType));
106+
}
107+
108+
public ContentAndApprovalsReader < 10000 span class=pl-en>setChannelEligibility(
109+
final List<String> channelEligibility
110+
) {
111+
this.channelEligibility = channelEligibility;
112+
return this;
113+
}
114+
115+
public ContentAndApprovalsReader setChannelEligibility(
116+
final String channelEligibility
117+
) {
118+
return setChannelEligibility(Promoter.listOfOne(channelEligibility));
119+
}
120+
40121
@Override
41122
public ResourceSet<ContentAndApprovals> read(
42123
final TwilioRestClient client
@@ -127,6 +208,47 @@ private void addQueryParams(final Request request) {
127208
if (pageSize != null) {
128209
request.addQueryParam("PageSize", pageSize.toString());
129210
}
211+
if (sortByDate != null) {
212+
request.addQueryParam("SortByDate", sortByDate);
213+
}
214+
if (sortByContentName != null) {
215+
request.addQueryParam("SortByContentName", sortByContentName);
216+
}
217+
if (dateCreatedAfter != null) {
218+
request.addQueryParam(
219+
"DateCreatedAfter",
220+
dateCreatedAfter.toInstant().toString()
221+
);
222+
}
223+
224+
if (dateCreatedBefore != null) {
225+
request.addQueryParam(
226+
"DateCreatedBefore",
227+
dateCreatedBefore.toInstant().toString()
228+
);
229+
}
230+
231+
if (contentName != null) {
232+
request.addQueryParam("ContentName", contentName);
233+
}
234+
if (content != null) {
235+
request.addQueryParam("Content", content);
236+
}
237+
if (language != null) {
238+
for (String prop : language) {
239+
request.addQueryParam("Language", prop);
240+
}
241+
}
242+
if (contentType != null) {
243+
for (String prop : contentType) {
244+
request.addQueryParam("ContentType", prop);
245+
}
246+
}
247+
if (channelEligibility != null) {
248+
for (String prop : channelEligibility) {
249+
request.addQueryParam("ChannelEligibility", prop);
250+
}
251+
}
130252

131253
if (getPageSize() != null) {
132254
request.addQueryParam("PageSize", Integer.toString(getPageSize()));

src/main/java/com/twilio/rest/content/v2/ContentReader.java

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.twilio.base.Page;
1818
import com.twilio.base.Reader;
1919
import com.twilio.base.ResourceSet;
20+
import com.twilio.converter.Promoter;
2021
import com.twilio.exception.ApiConnectionException;
2122
import com.twilio.exception.ApiException;
2223
import com.twilio.exception.RestException;
@@ -25,10 +26,21 @@
2526
import com.twilio.http.Response;
2627
import com.twilio.http.TwilioRestClient;
2728
import com.twilio.rest.Domains;
29+
import java.time.ZonedDateTime;
30+
import java.util.List;
2831

2932
public class ContentReader extends Reader<Content> {
3033

3134
private Integer pageSize;
35+
private String sortByDate;
36+
private String sortByContentName;
37+
private ZonedDateTime dateCreatedAfter;
38+
private ZonedDateTime dateCreatedBefore;
39+
private String contentName;
40+
private String content;
41+
private List<String> language;
42+
private List<String> contentType;
43+
private List<String> channelEligibility;
3244

3345
public ContentReader() {}
3446

@@ -37,6 +49,71 @@ public ContentReader setPageSize(final Integer pageSize) {
3749
return this;
3850
}
3951

52+
public ContentReader setSortByDate(final String sortByDate) {
53+
this.sortByDate = sortByDate;
54+
return this;
55+
}
56+
57+
public ContentReader setSortByContentName(final String sortByContentName) {
58+
this.sortByContentName = sortByContentName;
59+
return this;
60+
}
61+
62+
public ContentReader setDateCreatedAfter(
63+
final ZonedDateTime dateCreatedAfter
64+
) {
65+
this.dateCreatedAfter = dateCreatedAfter;
66+
return this;
67+
}
68+
69+
public ContentReader setDateCreatedBefore(
70+
final ZonedDateTime dateCreatedBefore
71+
) {
72+
this.dateCreatedBefore = dateCreatedBefore;
73+
return this;
74+
}
75+
76+
public ContentReader setContentName(final String contentName) {
77+
this.contentName = contentName;
78+
return this;
79+
}
80+
81+
public ContentReader setContent(final String content) {
82+
this.content = content;
83+
return this;
84+
}
85+
86+
public ContentReader setLanguage(final List<String> language) {
87+
this.language = language;
88+
return this;
89+
}
90+
91+
public ContentReader setLanguage(final String language) {
92+
return setLanguage(Promoter.listOfOne(language));
93+
}
94+
95+
public ContentReader setContentType(final List<String> contentType) {
96+
this.contentType = contentType;
97+
return this;
98+
}
99+
100+
public ContentReader setContentType(final String contentType) {
101+
return setContentType(Promoter.listOfOne(contentType));
102+
}
103+
104+
public ContentReader setChannelEligibility(
105+
final List<String> channelEligibility
106+
) {
107+
this.channelEligibility = channelEligibility;
108+
return this;
109+
}
110+
111+
public ContentReader setChannelEligibility(
112+
final String channelEligibility
113+
) {
114+
return setChannelEligibility(Promoter.listOfOne(channelEligibility));
115+
}
116+
40117
@Override
41118
public ResourceSet<Content> read(final TwilioRestClient client) {
42119
return new ResourceSet<>(this, client, firstPage(client));
@@ -125,6 +202,47 @@ private void addQueryParams(final Request request) {
125202
if (pageSize != null) {
126203
request.addQueryParam("PageSize", pageSize.toString());
127204
}
205+
if (sortByDate != null) {
206+
request.addQueryParam("SortByDate", sortByDate);
207+
}
208+
if (sortByContentName != null) {
209+
request.addQueryParam("SortByContentName", sortByContentName);
210+
}
211+
if (dateCreatedAfter != null) {
212+
request.addQueryParam(
213+
"DateCreatedAfter",
214+
dateCreatedAfter.toInstant().toString()
215+
);
216+
}
217+
218+
if (dateCreatedBefore != null) {
219+
request.addQueryParam(
220+
"DateCreatedBefore",
221+
dateCreatedBefore.toInstant().toString()
222+
);
223+
}
224+
225+
if (contentName != null) {
226+
request.addQueryParam("ContentName", contentName);
227+
}
228+
if (content != null) {
229+
request.addQueryParam("Content", content);
230+
}
231+
if (language != null) {
232+
for (String prop : language) {
233+
request.addQueryParam("Language", prop);
234+
}
235+
}
236+
if (contentType != null) {
237+
for (String prop : contentType) {
238+
request.addQueryParam("ContentType", prop);
239+
}
240+
}
241+
if (channelEligibility != null) {
242+
for (String prop : channelEligibility) {
243+
request.addQueryParam("ChannelEligibility", prop);
244+
}
245+
}
128246

129247
if (getPageSize() != null) {
130248
request.addQueryParam("PageSize", Integer.toString(getPageSize()));

0 commit comments

Comments
 (0)
0