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

Skip to content

Commit 6ddb515

Browse files
committed
[Librarian] Regenerated @ b8a450aff168b5449d658833256ca2354e3ecbbc df505752cdef00170b029d7b720bbc359933bf82
1 parent 4542584 commit 6ddb515

24 files changed

+3191
-18
lines changed

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
twilio-csharp Changelog
22
=======================
33

4+
[2024-06-06] Version 7.1.1
5+
--------------------------
6+
**Library - Fix**
7+
- [PR #748](https://github.com/twilio/twilio-csharp/pull/748): Adding TaskRouterGrant file. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8+
9+
**Api**
10+
- Mark MaxPrice as obsolete
11+
12+
**Lookups**
13+
- Update examples for `phone_number_quality_score`
14+
15+
**Messaging**
16+
- List tollfree verifications on parent account and all sub-accounts
17+
18+
419
[2024-05-24] Version 7.1.0
520
--------------------------
621
**Library - Docs**

src/Twilio/Rest/Api/V2010/Account/MessageOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class CreateMessageOptions : IOptions<MessageResource>
4040
///<summary> The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored. </summary>
4141
public string ApplicationSid { get; set; }
4242

43-
///<summary> [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. </summary>
43+
///<summary> [OBSOLETE] This parameter will no longer have any effect as of 2024-06-03. </summary>
4444
public decimal? MaxPrice { get; set; }
4545

4646
///<summary> Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`. </summary>
@@ -49,7 +49,7 @@ public class CreateMessageOptions : IOptions<MessageResource>
4949
///<summary> Total number of attempts made (including this request) to send the message regardless of the provider used </summary>
5050
public int? Attempt { get; set; }
5151

52-
///<summary> The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) </summary>
52+
///<summary> The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `36000`. Default value is `36000`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) </summary>
5353
public int? ValidityPeriod { get; set; }
5454

5555
///<summary> Reserved </summary>

src/Twilio/Rest/Api/V2010/Account/MessageResource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ public static async System.Threading.Tasks.Task<MessageResource> CreateAsync(Cre
183183
/// <param name="contentSid"> For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). </param>
184184
/// <param name="statusCallback"> The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource). </param>
185185
/// <param name="applicationSid"> The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored. </param>
186-
/// <param name="maxPrice"> [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. </param>
186+
/// <param name="maxPrice"> [OBSOLETE] This parameter will no longer have any effect as of 2024-06-03. </param>
187187
/// <param name="provideFeedback"> Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`. </param>
188188
/// <param name="attempt"> Total number of attempts made (including this request) to send the message regardless of the provider used </param>
189-
/// <param name="validityPeriod"> The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) </param>
189+
/// <param name="validityPeriod"> The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `36000`. Default value is `36000`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) </param>
190190
/// <param name="forceDelivery"> Reserved </param>
191191
/// <param name="contentRetention"> </param>
192192
/// <param name="addressRetention"> </param>
@@ -242,10 +242,10 @@ public static MessageResource Create(
242242
/// <param name="contentSid"> For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). </param>
243243
/// <param name="statusCallback"> The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource). </param>
244244
/// <param name="applicationSid"> The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored. </param>
245-
/// <param name="maxPrice"> [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. </param>
245+
/// <param name="maxPrice"> [OBSOLETE] This parameter will no longer have any effect as of 2024-06-03. </param>
246246
/// <param name="provideFeedback"> Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`. </param>
247247
/// <param name="attempt"> Total number of attempts made (including this request) to send the message regardless of the provider used </param>
248-
/// <param name="validityPeriod"> The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) </param>
248+
/// <param name="validityPeriod"> The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `36000`. Default value is `36000`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) </param>
249249
/// <param name="forceDelivery"> Reserved </param>
250250
/// <param name="contentRetention"> </param>
251251
/// <param name="addressRetention"> </param>

src/Twilio/Rest/Content/V2/ContentAndApprovalsOptions.cs

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using System.Collections.Generic;
1818
using Twilio.Base;
1919
using Twilio.Converters;
20-
20+
using System.Linq;
2121

2222

2323

@@ -27,6 +27,33 @@ namespace Twilio.Rest.Content.V2
2727
public class ReadContentAndApprovalsOptions : ReadOptions<ContentAndApprovalsResource>
2828
{
2929

30+
///<summary> Whether to sort by ascending or descending date updated </summary>
31+
public string SortByDate { get; set; }
32+
33+
///<summary> Whether to sort by ascending or descending content name </summary>
34+
public string SortByContentName { get; set; }
35+
36+
///<summary> Filter by >=[date-time] </summary>
37+
public DateTime? DateCreatedAfter { get; set; }
38+
39+
///<summary> Filter by <=[date-time] </summary>
40+
public DateTime? DateCreatedBefore { get; set; }
41+
42+
///<summary> Filter by Regex Pattern in content name </summary>
43+
public string ContentName { get; set; }
44+
45+
///<summary> Filter by Regex Pattern in template content </summary>
46+
public string Content { get; set; }
47+
48+
///<summary> Filter by array of valid language(s) </summary>
49+
public List<string> Language { get; set; }
50+
51+
///<summary> Filter by array of contentType(s) </summary>
52+
public List<string> ContentType { get; set; }
53+
54+
///<summary> Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status> </summary>
55+
public List<string> ChannelEligibility { get; set; }
56+
3057

3158

3259

@@ -40,6 +67,42 @@ public List<KeyValuePair<string, string>> GetParams()
4067
{
4168
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));
4269
}
70+
if (SortByDate != null)
71+
{
72+
p.Add(new KeyValuePair<string, string>("SortByDate", SortByDate));
73+
}
74+
if (SortByContentName != null)
75+
{
76+
p.Add(new KeyValuePair<string, string>("SortByContentName", SortByContentName));
77+
}
78+
if (DateCreatedAfter != null)
79+
{
80+
p.Add(new KeyValuePair<string, string>("DateCreatedAfter", Serializers.DateTimeIso8601(DateCreatedAfter)));
81+
}
82+
if (DateCreatedBefore != null)
83+
{
84+
p.Add(new KeyValuePair<string, string>("DateCreatedBefore", Serializers.DateTimeIso8601(DateCreatedBefore)));
85+
}
86+
if (ContentName != null)
87+
{
88+
p.Add(new KeyValuePair<string, string>("ContentName", ContentName));
89+
}
90+
if (Content != null)
91+
{
92+
p.Add(new KeyValuePair<string, string>("Content", Content));
93+
}
94+
if (Language != null)
95+
{
96+
p.AddRange(Language.Select(Language => new KeyValuePair<string, string>("Language", Language)));
97+
}
98+
if (ContentType != null)
99+
{
100+
p.AddRange(ContentType.Select(ContentType => new KeyValuePair<string, string>("ContentType", ContentType)));
101+
}
102+
if (ChannelEligibility != null)
103+
{
104+
p.AddRange(ChannelEligibility.Select(ChannelEligibility => new KeyValuePair<string, string>("ChannelEligibility", ChannelEligibility)));
105+
}
43106
return p;
44107
}
45108

src/Twilio/Rest/Content/V2/ContentAndApprovalsResource.cs

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,30 +77,66 @@ public static async System.Threading.Tasks.Task<ResourceSet<ContentAndApprovalsR
7777
#endif
7878
/// <summary> Retrieve a list of Contents with approval statuses belonging to the account used to make the request </summary>
7979
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
80+
/// <param name="sortByDate"> Whether to sort by ascending or descending date updated </param>
81+
/// <param name="sortByContentName"> Whether to sort by ascending or descending content name </param>
82+
/// <param name="dateCreatedAfter"> Filter by >=[date-time] </param>
83+
/// <param name="dateCreatedBefore"> Filter by <=[date-time] </param>
84+
/// <param name="contentName"> Filter by Regex Pattern in content name </param>
85+
/// <param name="content"> Filter by Regex Pattern in template content </param>
86+
/// <param name="language"> Filter by array of valid language(s) </param>
87+
/// <param name="contentType"> Filter by array of contentType(s) </param>
88+
/// <param name="channelEligibility"> Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status> </param>
8089
/// <param name="limit"> Record limit </param>
8190
/// <param name="client"> Client to make requests to Twilio </param>
8291
/// <returns> A single instance of ContentAndApprovals </returns>
8392
public static ResourceSet<ContentAndApprovalsResource> Read(
8493
int? pageSize = null,
94+
string sortByDate = null,
95+
string sortByContentName = null,
96+
DateTime? dateCreatedAfter = null,
97+
DateTime? dateCreatedBefore = null,
98+
string contentName = null,
99+
string content = null,
100+
List<string> language = null,
101+
List<string> contentType = null,
102+
List<string> channelEligibility = null,
85103
long? limit = null,
86104
ITwilioRestClient client = null)
87105
{
88-
var options = new ReadContentAndApprovalsOptions(){ PageSize = pageSize, Limit = limit};
106+
var options = new ReadContentAndApprovalsOptions(){ PageSize = pageSize, SortByDate = sortByDate, SortByContentName = sortByContentName, DateCreatedAfter = dateCreatedAfter, DateCreatedBefore = dateCreatedBefore, ContentName = contentName, Content = content, Language = language, ContentType = contentType, ChannelEligibility = channelEligibility, Limit = limit};
89107
return Read(options, client);
90108
}
91109

92110
#if !NET35
93111
/// <summary> Retrieve a list of Contents with approval statuses belonging to the account used to make the request </summary>
94112
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
113+
/// <param name="sortByDate"> Whether to sort by ascending or descending date updated </param>
114+
/// <param name="sortByContentName"> Whether to sort by ascending or descending content name </param>
115+
/// <param name="dateCreatedAfter"> Filter by >=[date-time] </param>
116+
/// <param name="dateCreatedBefore"> Filter by <=[date-time] </param>
117+
/// <param name="contentName"> Filter by Regex Pattern in content name </param>
118+
/// <param name="content"> Filter by Regex Pattern in template content </param>
119+
/// <param name="language"> Filter by array of valid language(s) </param>
120+
/// <param name="contentType"> Filter by array of contentType(s) </param>
121+
/// <param name="channelEligibility"> Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status> </param>
95122
/// <param name="limit"> Record limit </param>
96123
/// <param name="client"> Client to make requests to Twilio </param>
97124
/// <returns> Task that resolves to A single instance of ContentAndApprovals </returns>
98125
public static async System.Threading.Tasks.Task<ResourceSet<ContentAndApprovalsResource>> ReadAsync(
99126
int? pageSize = null,
127+
string sortByDate = null,
128+
string sortByContentName = null,
129+
DateTime? dateCreatedAfter = null,
130+
DateTime? dateCreatedBefore = null,
131+
string contentName = null,
132+
string content = null,
133+
List<string> language = null,
134+
List<string> contentType = null,
135+
List<string> channelEligibility = null,
100136
long? limit = null,
101137
ITwilioRestClient client = null)
102138
{
103-
var options = new ReadContentAndApprovalsOptions(){ PageSize = pageSize, Limit = limit};
139+
var options = new ReadContentAndApprovalsOptions(){ PageSize = pageSize, SortByDate = sortByDate, SortByContentName = sortByContentName, DateCreatedAfter = dateCreatedAfter, DateCreatedBefore = dateCreatedBefore, ContentName = contentName, Content = content, Language = language, ContentType = contentType, ChannelEligibility = channelEligibility, Limit = limit};
104140
return await ReadAsync(options, client);
105141
}
106142
#endif

0 commit comments

Comments
 (0)
0