Skip to content

Commit 439f474

Browse files
committed
[Librarian] Regenerated @ a25fe2e20ee404d8f8642d6e5acceff276916c9e
1 parent 3f1b9e1 commit 439f474

File tree

5 files changed

+345
-17
lines changed

5 files changed

+345
-17
lines changed

CHANGES.md

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

4+
[2023-10-05] Version 6.14.1
5+
---------------------------
6+
**Library - Fix**
7+
- [PR #705](https://github.com/twilio/twilio-csharp/pull/705): Update method comments to reflect new security testing method. Thanks to [@AsabuHere](https://github.com/AsabuHere)!
8+
- [PR #704](https://github.com/twilio/twilio-csharp/pull/704): [C# helper library] Changes in validate ssl certificate method with new url and port. Thanks to [@AsabuHere](https://github.com/AsabuHere)!
9+
10+
**Library - Chore**
11+
- [PR #700](https://github.com/twilio/twilio-csharp/pull/700): twilio help changes. Thanks to [@kridai](https://github.com/kridai)!
12+
13+
**Lookups**
14+
- Add test api support for Lookup v2
15+
16+
417
[2023-09-21] Version 6.14.0
518
---------------------------
619
**Library - Chore**

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ public class CreateMessageOptions : IOptions<MessageResource>
8282
///<summary> For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. </summary>
8383
public string ContentVariables { get; set; }
8484

85-
///<summary> A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. </summary>
86-
public string Tags { get; set; }
87-
8885

8986
public MessageResource.RiskCheckEnum RiskCheck { get; set; }
9087

@@ -187,10 +184,6 @@ public List<KeyValuePair<string, string>> GetParams()
187184
{
188185
p.Add(new KeyValuePair<string, string>("ContentVariables", ContentVariables));
189186
}
190-
if (Tags != null)
191-
{
192-
p.Add(new KeyValuePair<string, string>("Tags", Tags));
193-
}
194187
if (RiskCheck != null)
195188
{
196189
p.Add(new KeyValuePair<string, string>("RiskCheck", RiskCheck.ToString()));

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ public static async System.Threading.Tasks.Task<MessageResource> CreateAsync(Cre
197197
/// <param name="sendAt"> The time that Twilio will send the message. Must be in ISO 8601 format. </param>
198198
/// <param name="sendAsMms"> If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media. </param>
199199
/// <param name="contentVariables"> For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. </param>
200-
/// <param name="tags"> A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. </param>
201200
/// <param name="riskCheck"> </param>
202201
/// <param name="client"> Client to make requests to Twilio </param>
203202
/// <returns> A single instance of Message </returns>
@@ -225,11 +224,10 @@ public static MessageResource Create(
225224
DateTime? sendAt = null,
226225
bool? sendAsMms = null,
227226
string contentVariables = null,
228-
string tags = null,
229227
MessageResource.RiskCheckEnum riskCheck = null,
230228
ITwilioRestClient client = null)
231229
{
232-
var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, Tags = tags, RiskCheck = riskCheck };
230+
var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, RiskCheck = riskCheck };
233231
return Create(options, client);
234232
}
235233

@@ -258,7 +256,6 @@ public static MessageResource Create(
258256
/// <param name="sendAt"> The time that Twilio will send the message. Must be in ISO 8601 format. </param>
259257
/// <param name="sendAsMms"> If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media. </param>
260258
/// <param name="contentVariables"> For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. </param>
261-
/// <param name="tags"> A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. </param>
262259
/// <param name="riskCheck"> </param>
263260
/// <param name="client"> Client to make requests to Twilio </param>
264261
/// <returns> Task that resolves to A single instance of Message </returns>
@@ -286,11 +283,10 @@ public static async System.Threading.Tasks.Task<MessageResource> CreateAsync(
286283
DateTime? sendAt = null,
287284
bool? sendAsMms = null,
288285
string contentVariables = null,
289-
string tags = null,
290286
MessageResource.RiskCheckEnum riskCheck = null,
291287
ITwilioRestClient client = null)
292288
{
293-
var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, Tags = tags, RiskCheck = riskCheck };
289+
var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, RiskCheck = riskCheck };
294290
return await CreateAsync(options, client);
295291
}
296292
#endif
@@ -780,10 +776,6 @@ public static string ToJson(object model)
780776
[JsonProperty("subresource_uris")]
781777
public Dictionary<string, string> SubresourceUris { get; private set; }
782778

783-
///<summary> A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. </summary>
784-
[JsonProperty("tags")]
785-
public object Tags { get; private set; }
786-
787779

788780

789781
private MessageResource() {
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Trusthub
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
using System;
17+
using System.Collections.Generic;
18+
using Twilio.Base;
19+
using Twilio.Converters;
20+
21+
22+
23+
24+
namespace Twilio.Rest.Trusthub.V1
25+
{
26+
27+
/// <summary> Create a new Compliance Inquiry for the authenticated account. This is necessary to start a new embedded session. </summary>
28+
public class CreateComplianceInquiriesOptions : IOptions<ComplianceInquiriesResource>
29+
{
30+
31+
///<summary> The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. </summary>
32+
public string PrimaryProfileSid { get; }
33+
34+
35+
/// <summary> Construct a new CreateComplianceInquiryOptions </summary>
36+
/// <param name="primaryProfileSid"> The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. </param>
37+
public CreateComplianceInquiriesOptions(string primaryProfileSid)
38+
{
39+
PrimaryProfileSid = primaryProfileSid;
40+
}
41+
42+
43+
/// <summary> Generate the necessary parameters </summary>
44+
public List<KeyValuePair<string, string>> GetParams()
45+
{
46+
var p = new List<KeyValuePair<string, string>>();
47+
48+
if (PrimaryProfileSid != null)
49+
{
50+
p.Add(new KeyValuePair<string, string>("PrimaryProfileSid", PrimaryProfileSid));
51+
}
52+
return p;
53+
}
54+
55+
56+
57+
}
58+
/// <summary> Resume a specific Compliance Inquiry that has expired, or re-open a rejected Compliance Inquiry for editing. </summary>
59+
public class UpdateComplianceInquiriesOptions : IOptions<ComplianceInquiriesResource>
60+
{
61+
62+
///<summary> The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call. </summary>
63+
public string PathCustomerId { get; }
64+
65+
///<summary> The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. </summary>
66+
public string PrimaryProfileSid { get; }
67+
68+
69+
70+
/// <summary> Construct a new UpdateComplianceInquiryOptions </summary>
71+
/// <param name="pathCustomerId"> The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call. </param>
72+
/// <param name="primaryProfileSid"> The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. </param>
73+
public UpdateComplianceInquiriesOptions(string pathCustomerId, string primaryProfileSid)
74+
{
75+
PathCustomerId = pathCustomerId;
76+
PrimaryProfileSid = primaryProfileSid;
77+
}
78+
79+
80+
/// <summary> Generate the necessary parameters </summary>
81+
public List<KeyValuePair<string, string>> GetParams()
82+
{
83+
var p = new List<KeyValuePair<string, string>>();
84+
85+
if (PrimaryProfileSid != null)
86+
{
87+
p.Add(new KeyValuePair<string, string>("PrimaryProfileSid", PrimaryProfileSid));
88+
}
89+
return p;
90+
}
91+
92+
93+
94+
}
95+
96+
97+
}
98+

0 commit comments

Comments
 (0)