Skip to content

Commit 755c868

Browse files
author
Doug Black
committed
[Librarian] Regenerated @ e42fae993485a0f5327f8e60b73fde425c7b814f
1 parent fd64cff commit 755c868

File tree

14 files changed

+216
-12
lines changed

14 files changed

+216
-12
lines changed

CHANGES.md

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

4+
[2017-09-15] Version 5.6.5
5+
---------------------------
6+
**Api**
7+
- Add `sip_registration` property on SIP Domains
8+
- Add new video and market usage category keys
9+
10+
411
[2017-09-01] Version 5.6.4
512
---------------------------
613
**Sync**

src/Twilio/Rest/Api/V2010/Account/Sip/DomainOptions.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ public class CreateDomainOptions : IOptions<DomainResource>
8181
/// The voice_status_callback_method
8282
/// </summary>
8383
public Twilio.Http.HttpMethod VoiceStatusCallbackMethod { get; set; }
84+
/// <summary>
85+
/// The sip_registration
86+
/// </summary>
87+
public bool? SipRegistration { get; set; }
8488

8589
/// <summary>
8690
/// Construct a new CreateDomainOptions
@@ -143,6 +147,11 @@ public List<KeyValuePair<string, string>> GetParams()
143147
p.Add(new KeyValuePair<string, string>("VoiceStatusCallbackMethod", VoiceStatusCallbackMethod.ToString()));
144148
}
145149

150+
if (SipRegistration != null)
151+
{
152+
p.Add(new KeyValuePair<string, string>("SipRegistration", SipRegistration.Value.ToString()));
153+
}
154+
146155
return p;
147156
}
148157
}
@@ -226,6 +235,10 @@ public class UpdateDomainOptions : IOptions<DomainResource>
226235
/// The voice_url
227236
/// </summary>
228237
public Uri VoiceUrl { get; set; }
238+
/// <summary>
239+
/// The sip_registration
240+
/// </summary>
241+
public bool? SipRegistration { get; set; }
229242

230243
/// <summary>
231244
/// Construct a new UpdateDomainOptions
@@ -283,6 +296,11 @@ public List<KeyValuePair<string, string>> GetParams()
283296
p.Add(new KeyValuePair<string, string>("VoiceUrl", VoiceUrl.AbsoluteUri));
284297
}
285298

299+
if (SipRegistration != null)
300+
{
301+
p.Add(new KeyValuePair<string, string>("SipRegistration", SipRegistration.Value.ToString()));
302+
}
303+
286304
return p;
287305
}
288306
}

src/Twilio/Rest/Api/V2010/Account/Sip/DomainResource.cs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,12 @@ public static async System.Threading.Tasks.Task<DomainResource> CreateAsync(Crea
214214
/// <param name="voiceFallbackMethod"> HTTP method used with voice_fallback_url </param>
215215
/// <param name="voiceStatusCallbackUrl"> URL that Twilio will request with status updates </param>
216216
/// <param name="voiceStatusCallbackMethod"> The voice_status_callback_method </param>
217+
/// <param name="sipRegistration"> The sip_registration </param>
217218
/// <param name="client"> Client to make requests to Twilio </param>
218219
/// <returns> A single instance of Domain </returns>
219-
public static DomainResource Create(string domainName, string pathAccountSid = null, string friendlyName = null, string authType = null, Uri voiceUrl = null, Twilio.Http.HttpMethod voiceMethod = null, Uri voiceFallbackUrl = null, Twilio.Http.HttpMethod voiceFallbackMethod = null, Uri voiceStatusCallbackUrl = null, Twilio.Http.HttpMethod voiceStatusCallbackMethod = null, ITwilioRestClient client = null)
220+
public static DomainResource Create(string domainName, string pathAccountSid = null, string friendlyName = null, string authType = null, Uri voiceUrl = null, Twilio.Http.HttpMethod voiceMethod = null, Uri voiceFallbackUrl = null, Twilio.Http.HttpMethod voiceFallbackMethod = null, Uri voiceStatusCallbackUrl = null, Twilio.Http.HttpMethod voiceStatusCallbackMethod = null, bool? sipRegistration = null, ITwilioRestClient client = null)
220221
{
221-
var options = new CreateDomainOptions(domainName){PathAccountSid = pathAccountSid, FriendlyName = friendlyName, AuthType = authType, VoiceUrl = voiceUrl, VoiceMethod = voiceMethod, VoiceFallbackUrl = voiceFallbackUrl, VoiceFallbackMethod = voiceFallbackMethod, VoiceStatusCallbackUrl = voiceStatusCallbackUrl, VoiceStatusCallbackMethod = voiceStatusCallbackMethod};
222+
var options = new CreateDomainOptions(domainName){PathAccountSid = pathAccountSid, FriendlyName = friendlyName, AuthType = authType, VoiceUrl = voiceUrl, VoiceMethod = voiceMethod, VoiceFallbackUrl = voiceFallbackUrl, VoiceFallbackMethod = voiceFallbackMethod, VoiceStatusCallbackUrl = voiceStatusCallbackUrl, VoiceStatusCallbackMethod = voiceStatusCallbackMethod, SipRegistration = sipRegistration};
222223
return Create(options, client);
223224
}
224225

@@ -237,11 +238,12 @@ public static DomainResource Create(string domainName, string pathAccountSid = n
237238
/// <param name="voiceFallbackMethod"> HTTP method used with voice_fallback_url </param>
238239
/// <param name="voiceStatusCallbackUrl"> URL that Twilio will request with status updates </param>
239240
/// <param name="voiceStatusCallbackMethod"> The voice_status_callback_method </param>
241+
/// <param name="sipRegistration"> The sip_registration </param>
240242
/// <param name="client"> Client to make requests to Twilio </param>
241243
/// <returns> Task that resolves to A single instance of Domain </returns>
242-
public static async System.Threading.Tasks.Task<DomainResource> CreateAsync(string domainName, string pathAccountSid = null, string friendlyName = null, string authType = null, Uri voiceUrl = null, Twilio.Http.HttpMethod voiceMethod = null, Uri voiceFallbackUrl = null, Twilio.Http.HttpMethod voiceFallbackMethod = null, Uri voiceStatusCallbackUrl = null, Twilio.Http.HttpMethod voiceStatusCallbackMethod = null, ITwilioRestClient client = null)
244+
public static async System.Threading.Tasks.Task<DomainResource> CreateAsync(string domainName, string pathAccountSid = null, string friendlyName = null, string authType = null, Uri voiceUrl = null, Twilio.Http.HttpMethod voiceMethod = null, Uri voiceFallbackUrl = null, Twilio.Http.HttpMethod voiceFallbackMethod = null, Uri voiceStatusCallbackUrl = null, Twilio.Http.HttpMethod voiceStatusCallbackMethod = null, bool? sipRegistration = null, ITwilioRestClient client = null)
243245
{
244-
var options = new CreateDomainOptions(domainName){PathAccountSid = pathAccountSid, FriendlyName = friendlyName, AuthType = authType, VoiceUrl = voiceUrl, VoiceMethod = voiceMethod, VoiceFallbackUrl = voiceFallbackUrl, VoiceFallbackMethod = voiceFallbackMethod, VoiceStatusCallbackUrl = voiceStatusCallbackUrl, VoiceStatusCallbackMethod = voiceStatusCallbackMethod};
246+
var options = new CreateDomainOptions(domainName){PathAccountSid = pathAccountSid, FriendlyName = friendlyName, AuthType = authType, VoiceUrl = voiceUrl, VoiceMethod = voiceMethod, VoiceFallbackUrl = voiceFallbackUrl, VoiceFallbackMethod = voiceFallbackMethod, VoiceStatusCallbackUrl = voiceStatusCallbackUrl, VoiceStatusCallbackMethod = voiceStatusCallbackMethod, SipRegistration = sipRegistration};
245247
return await CreateAsync(options, client);
246248
}
247249
#endif
@@ -372,11 +374,12 @@ public static async System.Threading.Tasks.Task<DomainResource> UpdateAsync(Upda
372374
/// <param name="voiceStatusCallbackMethod"> The voice_status_callback_method </param>
373375
/// <param name="voiceStatusCallbackUrl"> The voice_status_callback_url </param>
374376
/// <param name="voiceUrl"> The voice_url </param>
377+
/// <param name="sipRegistration"> The sip_registration </param>
375378
/// <param name="client"> Client to make requests to Twilio </param>
376379
/// <returns> A single instance of Domain </returns>
377-
public static DomainResource Update(string pathSid, string pathAccountSid = null, string authType = null, string friendlyName = null, Twilio.Http.HttpMethod voiceFallbackMethod = null, Uri voiceFallbackUrl = null, Twilio.Http.HttpMethod voiceMethod = null, Twilio.Http.HttpMethod voiceStatusCallbackMethod = null, Uri voiceStatusCallbackUrl = null, Uri voiceUrl = null, ITwilioRestClient client = null)
380+
public static DomainResource Update(string pathSid, string pathAccountSid = null, string authType = null, string friendlyName = null, Twilio.Http.HttpMethod voiceFallbackMethod = null, Uri voiceFallbackUrl = null, Twilio.Http.HttpMethod voiceMethod = null, Twilio.Http.HttpMethod voiceStatusCallbackMethod = null, Uri voiceStatusCallbackUrl = null, Uri voiceUrl = null, bool? sipRegistration = null, ITwilioRestClient client = null)
378381
{
379-
var options = new UpdateDomainOptions(pathSid){PathAccountSid = pathAccountSid, AuthType = authType, FriendlyName = friendlyName, VoiceFallbackMethod = voiceFallbackMethod, VoiceFallbackUrl = voiceFallbackUrl, VoiceMethod = voiceMethod, VoiceStatusCallbackMethod = voiceStatusCallbackMethod, VoiceStatusCallbackUrl = voiceStatusCallbackUrl, VoiceUrl = voiceUrl};
382+
var options = new UpdateDomainOptions(pathSid){PathAccountSid = pathAccountSid, AuthType = authType, FriendlyName = friendlyName, VoiceFallbackMethod = voiceFallbackMethod, VoiceFallbackUrl = voiceFallbackUrl, VoiceMethod = voiceMethod, VoiceStatusCallbackMethod = voiceStatusCallbackMethod, VoiceStatusCallbackUrl = voiceStatusCallbackUrl, VoiceUrl = voiceUrl, SipRegistration = sipRegistration};
380383
return Update(options, client);
381384
}
382385

@@ -395,11 +398,12 @@ public static DomainResource Update(string pathSid, string pathAccountSid = null
395398
/// <param name="voiceStatusCallbackMethod"> The voice_status_callback_method </param>
396399
/// <param name="voiceStatusCallbackUrl"> The voice_status_callback_url </param>
397400
/// <param name="voiceUrl"> The voice_url </param>
401+
/// <param name="sipRegistration"> The sip_registration </param>
398402
/// <param name="client"> Client to make requests to Twilio </param>
399403
/// <returns> Task that resolves to A single instance of Domain </returns>
400-
public static async System.Threading.Tasks.Task<DomainResource> UpdateAsync(string pathSid, string pathAccountSid = null, string authType = null, string friendlyName = null, Twilio.Http.HttpMethod voiceFallbackMethod = null, Uri voiceFallbackUrl = null, Twilio.Http.HttpMethod voiceMethod = null, Twilio.Http.HttpMethod voiceStatusCallbackMethod = null, Uri voiceStatusCallbackUrl = null, Uri voiceUrl = null, ITwilioRestClient client = null)
404+
public static async System.Threading.Tasks.Task<DomainResource> UpdateAsync(string pathSid, string pathAccountSid = null, string authType = null, string friendlyName = null, Twilio.Http.HttpMethod voiceFallbackMethod = null, Uri voiceFallbackUrl = null, Twilio.Http.HttpMethod voiceMethod = null, Twilio.Http.HttpMethod voiceStatusCallbackMethod = null, Uri voiceStatusCallbackUrl = null, Uri voiceUrl = null, bool? sipRegistration = null, ITwilioRestClient client = null)
401405
{
402-
var options = new UpdateDomainOptions(pathSid){PathAccountSid = pathAccountSid, AuthType = authType, FriendlyName = friendlyName, VoiceFallbackMethod = voiceFallbackMethod, VoiceFallbackUrl = voiceFallbackUrl, VoiceMethod = voiceMethod, VoiceStatusCallbackMethod = voiceStatusCallbackMethod, VoiceStatusCallbackUrl = voiceStatusCallbackUrl, VoiceUrl = voiceUrl};
406+
var options = new UpdateDomainOptions(pathSid){PathAccountSid = pathAccountSid, AuthType = authType, FriendlyName = friendlyName, VoiceFallbackMethod = voiceFallbackMethod, VoiceFallbackUrl = voiceFallbackUrl, VoiceMethod = voiceMethod, VoiceStatusCallbackMethod = voiceStatusCallbackMethod, VoiceStatusCallbackUrl = voiceStatusCallbackUrl, VoiceUrl = voiceUrl, SipRegistration = sipRegistration};
403407
return await UpdateAsync(options, client);
404408
}
405409
#endif
@@ -577,6 +581,11 @@ public static DomainResource FromJson(string json)
577581
/// </summary>
578582
[JsonProperty("subresource_uris")]
579583
public Dictionary<string, string> SubresourceUris { get; private set; }
584+
/// <summary>
585+
/// If SIP registration is allowed
586+
/// </summary>
587+
[JsonProperty("sip_registration")]
588+
public bool? SipRegistration { get; private set; }
580589

581590
private DomainResource()
582591
{

src/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeResource.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public CategoryEnum() {}
5656
public static readonly CategoryEnum ConversationsParticipantEvents = new CategoryEnum("conversations-participant-events");
5757
public static readonly CategoryEnum ConversationsParticipants = new CategoryEnum("conversations-participants");
5858
public static readonly CategoryEnum Cps = new CategoryEnum("cps");
59+
public static readonly CategoryEnum GroupRoomsMediaDownloaded = new CategoryEnum("group-rooms-media-downloaded");
60+
public static readonly CategoryEnum GroupRoomsMediaRecorded = new CategoryEnum("group-rooms-media-recorded");
61+
public static readonly CategoryEnum GroupRoomsMediaRouted = new CategoryEnum("group-rooms-media-routed");
62+
public static readonly CategoryEnum GroupRoomsMediaStored = new CategoryEnum("group-rooms-media-stored");
63+
public static readonly CategoryEnum GroupRoomsParticipantMinutes = new CategoryEnum("group-rooms-participant-minutes");
64+
public static readonly CategoryEnum GroupRoomsRecordedMinutes = new CategoryEnum("group-rooms-recorded-minutes");
5965
public static readonly CategoryEnum IpMessaging = new CategoryEnum("ip-messaging");
6066
public static readonly CategoryEnum IpMessagingCommands = new CategoryEnum("ip-messaging-commands");
6167
public static readonly CategoryEnum IpMessagingDataStorage = new CategoryEnum("ip-messaging-data-storage");
@@ -71,6 +77,11 @@ public CategoryEnum() {}
7177
public static readonly CategoryEnum MarketplaceIbmWatsonRecordingAnalysis = new CategoryEnum("marketplace-ibm-watson-recording-analysis");
7278
public static readonly CategoryEnum MarketplaceIcehookSystemsScout = new CategoryEnum("marketplace-icehook-systems-scout");
7379
public static readonly CategoryEnum MarketplaceInfogroupDataaxleBizinfo = new CategoryEnum("marketplace-infogroup-dataaxle-bizinfo");
80+
public static readonly CategoryEnum MarketplaceCadenceTranscription = new CategoryEnum("marketplace-cadence-transcription");
81+
public static readonly CategoryEnum MarketplaceCadenceTranslation = new CategoryEnum("marketplace-cadence-translation");
82+
public static readonly CategoryEnum MarketplaceCapioSpeechToText = new CategoryEnum("marketplace-capio-speech-to-text");
83+
public static readonly CategoryEnum MarketplaceFacebookOfflineConversions = new CategoryEnum("marketplace-facebook-offline-conversions");
84+
public static readonly CategoryEnum MarketplaceKeenIoContactCenterAnalytics = new CategoryEnum("marketplace-keen-io-contact-center-analytics");
7485
public static readonly CategoryEnum MarketplaceMarchexCleancall = new CategoryEnum("marketplace-marchex-cleancall");
7586
public static readonly CategoryEnum MarketplaceMarchexSentimentAnalysisForSms = new CategoryEnum("marketplace-marchex-sentiment-analysis-for-sms");
7687
public static readonly CategoryEnum MarketplaceMarketplaceNextcallerSocialId = new CategoryEnum("marketplace-marketplace-nextcaller-social-id");
@@ -95,6 +106,8 @@ public CategoryEnum() {}
95106
public static readonly CategoryEnum MarketplaceIbmWatsonToneAnalyzer = new CategoryEnum("marketplace-ibm-watson-tone-analyzer");
96107
public static readonly CategoryEnum MarketplaceRemeetingAutomaticSpeechRecognition = new CategoryEnum("marketplace-remeeting-automatic-speech-recognition");
97108
public static readonly CategoryEnum MarketplaceTcpaDefenseSolutionsBlacklistFeed = new CategoryEnum("marketplace-tcpa-defense-solutions-blacklist-feed");
109+
public static readonly CategoryEnum MarketplaceVoicebaseTranscriptionCustomVocabulary = new CategoryEnum("marketplace-voicebase-transcription-custom-vocabulary");
110+
public static readonly CategoryEnum MarketplaceYticaContactCenterReportingAnalytics = new CategoryEnum("marketplace-ytica-contact-center-reporting-analytics");
98111
public static readonly CategoryEnum Mediastorage = new CategoryEnum("mediastorage");
99112
public static readonly CategoryEnum Mms = new CategoryEnum("mms");
100113
public static readonly CategoryEnum MmsInbound = new CategoryEnum("mms-inbound");
@@ -117,6 +130,7 @@ public CategoryEnum() {}
117130
public static readonly CategoryEnum PchatReads = new CategoryEnum("pchat-reads");
118131
public static readonly CategoryEnum PchatUsers = new CategoryEnum("pchat-users");
119132
public static readonly CategoryEnum PchatMessages = new CategoryEnum("pchat-messages");
133+
public static readonly CategoryEnum PeerToPeerRoomsParticipantMinutes = new CategoryEnum("peer-to-peer-rooms-participant-minutes");
120134
public static readonly CategoryEnum Pfax = new CategoryEnum("pfax");
121135
public static readonly CategoryEnum PfaxMinutes = new CategoryEnum("pfax-minutes");
122136
public static readonly CategoryEnum PfaxMinutesInbound = new CategoryEnum("pfax-minutes-inbound");
@@ -182,13 +196,16 @@ public CategoryEnum() {}
182196
public static readonly CategoryEnum Turnmegabytes = new CategoryEnum("turnmegabytes");
183197
public static readonly CategoryEnum TurnmegabytesAustralia = new CategoryEnum("turnmegabytes-australia");
184198
public static readonly CategoryEnum TurnmegabytesBrasil = new CategoryEnum("turnmegabytes-brasil");
199+
public static readonly CategoryEnum TurnmegabytesIndia = new CategoryEnum("turnmegabytes-india");
185200
public static readonly CategoryEnum TurnmegabytesIreland = new CategoryEnum("turnmegabytes-ireland");
186201
public static readonly CategoryEnum TurnmegabytesJapan = new CategoryEnum("turnmegabytes-japan");
187202
public static readonly CategoryEnum TurnmegabytesSingapore = new CategoryEnum("turnmegabytes-singapore");
188203
public static readonly CategoryEnum TurnmegabytesUseast = new CategoryEnum("turnmegabytes-useast");
189204
public static readonly CategoryEnum TurnmegabytesUswest = new CategoryEnum("turnmegabytes-uswest");
190205
public static readonly CategoryEnum TwilioInterconnect = new CategoryEnum("twilio-interconnect");
191206
public static readonly CategoryEnum VoiceInsights = new CategoryEnum("voice-insights");
207+
public static readonly CategoryEnum VoiceInsightsAudioTrace = new CategoryEnum("voice-insights-audio-trace");
208+
public static readonly CategoryEnum VoiceInsightsCarrierCalls = new CategoryEnum("voice-insights-carrier-calls");
192209
public static readonly CategoryEnum Wireless = new CategoryEnum("wireless");
193210
public static readonly CategoryEnum WirelessOrders = new CategoryEnum("wireless-orders");
194211
public static readonly CategoryEnum WirelessOrdersArtwork = new CategoryEnum("wireless-orders-artwork");

0 commit comments

Comments
 (0)