diff --git a/CHANGES.md b/CHANGES.md
index 6b7a218f4..28804b2b8 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,6 +1,15 @@
twilio-csharp Changelog
=======================
+[2018-05-11] Version 5.13.0
+----------------------------
+**Chat**
+- Add Channel Webhooks resource
+
+**Monitor**
+- Update event filtering to support date/time **(breaking change)**
+
+
[2018-05-04] Version 5.12.1
----------------------------
**Wireless**
diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.cs
index d428414ec..7d2d41474 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.cs
@@ -13,7 +13,7 @@ namespace Twilio.Rest.Api.V2010.Account.Call
{
///
- /// CreateFeedbackOptions
+ /// Create a feedback entry for a call
///
public class CreateFeedbackOptions : IOptions
{
@@ -26,11 +26,11 @@ public class CreateFeedbackOptions : IOptions
///
public string PathCallSid { get; }
///
- /// The quality_score
+ /// An integer from 1 to 5
///
public int? QualityScore { get; }
///
- /// The issue
+ /// Issues experienced during the call
///
public List Issue { get; set; }
@@ -38,7 +38,7 @@ public class CreateFeedbackOptions : IOptions
/// Construct a new CreateFeedbackOptions
///
/// The call_sid
- /// The quality_score
+ /// An integer from 1 to 5
public CreateFeedbackOptions(string pathCallSid, int? qualityScore)
{
PathCallSid = pathCallSid;
@@ -100,7 +100,7 @@ public List> GetParams()
}
///
- /// Create or update a feedback entry for a call
+ /// Update a feedback entry for a call
///
public class UpdateFeedbackOptions : IOptions
{
diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackResource.cs
index c18f86eaf..8e39479c5 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackResource.cs
@@ -52,7 +52,7 @@ private static Request BuildCreateRequest(CreateFeedbackOptions options, ITwilio
}
///
- /// create
+ /// Create a feedback entry for a call
///
/// Create Feedback parameters
/// Client to make requests to Twilio
@@ -66,7 +66,7 @@ public static FeedbackResource Create(CreateFeedbackOptions options, ITwilioRest
#if !NET35
///
- /// create
+ /// Create a feedback entry for a call
///
/// Create Feedback parameters
/// Client to make requests to Twilio
@@ -81,12 +81,12 @@ public static async System.Threading.Tasks.Task CreateAsync(Cr
#endif
///
- /// create
+ /// Create a feedback entry for a call
///
/// The call_sid
- /// The quality_score
+ /// An integer from 1 to 5
/// The account_sid
- /// The issue
+ /// Issues experienced during the call
/// Client to make requests to Twilio
/// A single instance of Feedback
public static FeedbackResource Create(string pathCallSid,
@@ -101,12 +101,12 @@ public static FeedbackResource Create(string pathCallSid,
#if !NET35
///
- /// create
+ /// Create a feedback entry for a call
///
/// The call_sid
- /// The quality_score
+ /// An integer from 1 to 5
/// The account_sid
- /// The issue
+ /// Issues experienced during the call
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Feedback
public static async System.Threading.Tasks.Task CreateAsync(string pathCallSid,
@@ -204,7 +204,7 @@ private static Request BuildUpdateRequest(UpdateFeedbackOptions options, ITwilio
}
///
- /// Create or update a feedback entry for a call
+ /// Update a feedback entry for a call
///
/// Update Feedback parameters
/// Client to make requests to Twilio
@@ -218,7 +218,7 @@ public static FeedbackResource Update(UpdateFeedbackOptions options, ITwilioRest
#if !NET35
///
- /// Create or update a feedback entry for a call
+ /// Update a feedback entry for a call
///
/// Update Feedback parameters
/// Client to make requests to Twilio
@@ -233,7 +233,7 @@ public static async System.Threading.Tasks.Task UpdateAsync(Up
#endif
///
- /// Create or update a feedback entry for a call
+ /// Update a feedback entry for a call
///
/// The call_sid
/// An integer from 1 to 5
@@ -253,7 +253,7 @@ public static FeedbackResource Update(string pathCallSid,
#if !NET35
///
- /// Create or update a feedback entry for a call
+ /// Update a feedback entry for a call
///
/// The call_sid
/// An integer from 1 to 5
diff --git a/src/Twilio/Rest/Api/V2010/Account/KeyOptions.cs b/src/Twilio/Rest/Api/V2010/Account/KeyOptions.cs
index 2534e4531..2cb8b7a92 100644
--- a/src/Twilio/Rest/Api/V2010/Account/KeyOptions.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/KeyOptions.cs
@@ -58,7 +58,7 @@ public class UpdateKeyOptions : IOptions
///
public string PathSid { get; }
///
- /// A descriptive string for this resource, chosen by your application, up to 64 characters long.
+ /// The friendly_name
///
public string FriendlyName { get; set; }
diff --git a/src/Twilio/Rest/Api/V2010/Account/KeyResource.cs b/src/Twilio/Rest/Api/V2010/Account/KeyResource.cs
index f7805f015..7506542ac 100644
--- a/src/Twilio/Rest/Api/V2010/Account/KeyResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/KeyResource.cs
@@ -135,8 +135,7 @@ public static async System.Threading.Tasks.Task UpdateAsync(UpdateK
///
/// The sid
/// The account_sid
- /// A descriptive string for this resource, chosen by your application, up to 64 characters
- /// long.
+ /// The friendly_name
/// Client to make requests to Twilio
/// A single instance of Key
public static KeyResource Update(string pathSid,
@@ -154,8 +153,7 @@ public static KeyResource Update(string pathSid,
///
/// The sid
/// The account_sid
- /// A descriptive string for this resource, chosen by your application, up to 64 characters
- /// long.
+ /// The friendly_name
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Key
public static async System.Threading.Tasks.Task UpdateAsync(string pathSid,
diff --git a/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackResource.cs b/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackResource.cs
index aa3fdd512..e78a80319 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackResource.cs
@@ -139,7 +139,7 @@ public static FeedbackResource FromJson(string json)
[JsonProperty("message_sid")]
public string MessageSid { get; private set; }
///
- /// The outcome
+ /// unconfirmed or confirmed. If ProvideFeedback=true in the initial HTTP POST, this value will default to unconfirmed. Make an HTTP POST to update this value to confirmed after the message arrives.
///
[JsonProperty("outcome")]
[JsonConverter(typeof(StringEnumConverter))]
diff --git a/src/Twilio/Rest/Api/V2010/Account/NewKeyOptions.cs b/src/Twilio/Rest/Api/V2010/Account/NewKeyOptions.cs
index d715e01a0..938db4af4 100644
--- a/src/Twilio/Rest/Api/V2010/Account/NewKeyOptions.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/NewKeyOptions.cs
@@ -21,7 +21,7 @@ public class CreateNewKeyOptions : IOptions
///
public string PathAccountSid { get; set; }
///
- /// A descriptive string for this resource, chosen by your application, up to 64 characters long.
+ /// The friendly_name
///
public string FriendlyName { get; set; }
diff --git a/src/Twilio/Rest/Api/V2010/Account/NewKeyResource.cs b/src/Twilio/Rest/Api/V2010/Account/NewKeyResource.cs
index 872d11508..9eda26bf5 100644
--- a/src/Twilio/Rest/Api/V2010/Account/NewKeyResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/NewKeyResource.cs
@@ -64,8 +64,7 @@ public static async System.Threading.Tasks.Task CreateAsync(Crea
/// create
///
/// The account_sid
- /// A descriptive string for this resource, chosen by your application, up to 64 characters
- /// long.
+ /// The friendly_name
/// Client to make requests to Twilio
/// A single instance of NewKey
public static NewKeyResource Create(string pathAccountSid = null,
@@ -81,8 +80,7 @@ public static NewKeyResource Create(string pathAccountSid = null,
/// create
///
/// The account_sid
- /// A descriptive string for this resource, chosen by your application, up to 64 characters
- /// long.
+ /// The friendly_name
/// Client to make requests to Twilio
/// Task that resolves to A single instance of NewKey
public static async System.Threading.Tasks.Task CreateAsync(string pathAccountSid = null,
@@ -113,27 +111,27 @@ public static NewKeyResource FromJson(string json)
}
///
- /// A 34 character string that uniquely identifies this API Key.
+ /// The sid
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// A descriptive string for this resource, chosen by your application, up to 64 characters long.
+ /// The friendly_name
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The date-time this API Key was created, given as a RFC 2822 Timestamp.
+ /// The date_created
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date-time this API Key was most recently updated, given as a RFC 2822 Timestamp.
+ /// The date_updated
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The secret your application uses to sign Access Tokens and to authenticate to the REST API.
+ /// The secret
///
[JsonProperty("secret")]
public string Secret { get; private set; }
diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadResource.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadResource.cs
index d44075a43..0d49659ee 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadResource.cs
@@ -396,7 +396,7 @@ public static PayloadResource FromJson(string json)
[JsonProperty("reference_sid")]
public string ReferenceSid { get; private set; }
///
- /// The subresource_uris
+ /// A dictionary of URIs for related resources
///
[JsonProperty("subresource_uris")]
public Dictionary SubresourceUris { get; private set; }
diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultResource.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultResource.cs
index f7bfe5289..03fec67e1 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultResource.cs
@@ -400,7 +400,7 @@ public static AddOnResultResource FromJson(string json)
[JsonProperty("reference_sid")]
public string ReferenceSid { get; private set; }
///
- /// The subresource_uris
+ /// A dictionary of URIs for related resources
///
[JsonProperty("subresource_uris")]
public Dictionary SubresourceUris { get; private set; }
diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.cs
index 31f345a4b..af6d9f4f5 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.cs
@@ -161,7 +161,7 @@ public class UpdateCredentialOptions : IOptions
///
public string PathSid { get; }
///
- /// The password
+ /// The password will not be returned in the response.
///
public string Password { get; set; }
diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialResource.cs
index 52c051b51..07fe3d46f 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialResource.cs
@@ -365,7 +365,7 @@ public static async System.Threading.Tasks.Task UpdateAsync(
/// The credential_list_sid
/// The sid
/// The account_sid
- /// The password
+ /// The password will not be returned in the response.
/// Client to make requests to Twilio
/// A single instance of Credential
public static CredentialResource Update(string pathCredentialListSid,
@@ -385,7 +385,7 @@ public static CredentialResource Update(string pathCredentialListSid,
/// The credential_list_sid
/// The sid
/// The account_sid
- /// The password
+ /// The password will not be returned in the response.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Credential
public static async System.Threading.Tasks.Task UpdateAsync(string pathCredentialListSid,
diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListOptions.cs
index 81fd7b6f9..34f79937f 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListOptions.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListOptions.cs
@@ -12,7 +12,7 @@ namespace Twilio.Rest.Api.V2010.Account.Sip
{
///
- /// Retrieve a list of Credentials belonging to the account used to make the request
+ /// Get All Credential Lists
///
public class ReadCredentialListOptions : ReadOptions
{
@@ -37,7 +37,7 @@ public override List> GetParams()
}
///
- /// Add a Credential to the list
+ /// Create a Credential List
///
public class CreateCredentialListOptions : IOptions
{
@@ -46,14 +46,14 @@ public class CreateCredentialListOptions : IOptions
///
public string PathAccountSid { get; set; }
///
- /// The friendly_name
+ /// Human readable descriptive text
///
public string FriendlyName { get; }
///
/// Construct a new CreateCredentialListOptions
///
- /// The friendly_name
+ /// Human readable descriptive text
public CreateCredentialListOptions(string friendlyName)
{
FriendlyName = friendlyName;
@@ -75,7 +75,7 @@ public List> GetParams()
}
///
- /// Retrieve a specific Credential in a list
+ /// Get a Credential List
///
public class FetchCredentialListOptions : IOptions
{
@@ -84,14 +84,14 @@ public class FetchCredentialListOptions : IOptions
///
public string PathAccountSid { get; set; }
///
- /// Fetch by unique credential Sid
+ /// Fetch by unique credential list Sid
///
public string PathSid { get; }
///
/// Construct a new FetchCredentialListOptions
///
- /// Fetch by unique credential Sid
+ /// Fetch by unique credential list Sid
public FetchCredentialListOptions(string pathSid)
{
PathSid = pathSid;
@@ -108,7 +108,7 @@ public List> GetParams()
}
///
- /// Change the password of a Credential record
+ /// Update a Credential List
///
public class UpdateCredentialListOptions : IOptions
{
@@ -121,7 +121,7 @@ public class UpdateCredentialListOptions : IOptions
///
public string PathSid { get; }
///
- /// The friendly_name
+ /// Human readable descriptive text
///
public string FriendlyName { get; }
@@ -129,7 +129,7 @@ public class UpdateCredentialListOptions : IOptions
/// Construct a new UpdateCredentialListOptions
///
/// The sid
- /// The friendly_name
+ /// Human readable descriptive text
public UpdateCredentialListOptions(string pathSid, string friendlyName)
{
PathSid = pathSid;
@@ -152,7 +152,7 @@ public List> GetParams()
}
///
- /// Remove a credential from a CredentialList
+ /// Delete a Credential List
///
public class DeleteCredentialListOptions : IOptions
{
@@ -161,14 +161,14 @@ public class DeleteCredentialListOptions : IOptions
///
public string PathAccountSid { get; set; }
///
- /// Delete by unique credential Sid
+ /// Delete by unique credential list Sid
///
public string PathSid { get; }
///
/// Construct a new DeleteCredentialListOptions
///
- /// Delete by unique credential Sid
+ /// Delete by unique credential list Sid
public DeleteCredentialListOptions(string pathSid)
{
PathSid = pathSid;
diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListResource.cs
index fe7190ed8..5e78cf12e 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListResource.cs
@@ -32,7 +32,7 @@ private static Request BuildReadRequest(ReadCredentialListOptions options, ITwil
}
///
- /// Retrieve a list of Credentials belonging to the account used to make the request
+ /// Get All Credential Lists
///
/// Read CredentialList parameters
/// Client to make requests to Twilio
@@ -49,7 +49,7 @@ public static ResourceSet Read(ReadCredentialListOptions
#if !NET35
///
- /// Retrieve a list of Credentials belonging to the account used to make the request
+ /// Get All Credential Lists
///
/// Read CredentialList parameters
/// Client to make requests to Twilio
@@ -66,7 +66,7 @@ public static async System.Threading.Tasks.Task
- /// Retrieve a list of Credentials belonging to the account used to make the request
+ /// Get All Credential Lists
///
/// The account_sid
/// Page size
@@ -84,7 +84,7 @@ public static ResourceSet Read(string pathAccountSid = n
#if !NET35
///
- /// Retrieve a list of Credentials belonging to the account used to make the request
+ /// Get All Credential Lists
///
/// The account_sid
/// Page size
@@ -172,7 +172,7 @@ private static Request BuildCreateRequest(CreateCredentialListOptions options, I
}
///
- /// Add a Credential to the list
+ /// Create a Credential List
///
/// Create CredentialList parameters
/// Client to make requests to Twilio
@@ -186,7 +186,7 @@ public static CredentialListResource Create(CreateCredentialListOptions options,
#if !NET35
///
- /// Add a Credential to the list
+ /// Create a Credential List
///
/// Create CredentialList parameters
/// Client to make requests to Twilio
@@ -201,9 +201,9 @@ public static async System.Threading.Tasks.Task CreateAs
#endif
///
- /// Add a Credential to the list
+ /// Create a Credential List
///
- /// The friendly_name
+ /// Human readable descriptive text
/// The account_sid
/// Client to make requests to Twilio
/// A single instance of CredentialList
@@ -217,9 +217,9 @@ public static CredentialListResource Create(string friendlyName,
#if !NET35
///
- /// Add a Credential to the list
+ /// Create a Credential List
///
- /// The friendly_name
+ /// Human readable descriptive text
/// The account_sid
/// Client to make requests to Twilio
/// Task that resolves to A single instance of CredentialList
@@ -244,7 +244,7 @@ private static Request BuildFetchRequest(FetchCredentialListOptions options, ITw
}
///
- /// Retrieve a specific Credential in a list
+ /// Get a Credential List
///
/// Fetch CredentialList parameters
/// Client to make requests to Twilio
@@ -258,7 +258,7 @@ public static CredentialListResource Fetch(FetchCredentialListOptions options, I
#if !NET35
///
- /// Retrieve a specific Credential in a list
+ /// Get a Credential List
///
/// Fetch CredentialList parameters
/// Client to make requests to Twilio
@@ -273,9 +273,9 @@ public static async System.Threading.Tasks.Task FetchAsy
#endif
///
- /// Retrieve a specific Credential in a list
+ /// Get a Credential List
///
- /// Fetch by unique credential Sid
+ /// Fetch by unique credential list Sid
/// The account_sid
/// Client to make requests to Twilio
/// A single instance of CredentialList
@@ -289,9 +289,9 @@ public static CredentialListResource Fetch(string pathSid,
#if !NET35
///
- /// Retrieve a specific Credential in a list
+ /// Get a Credential List
///
- /// Fetch by unique credential Sid
+ /// Fetch by unique credential list Sid
/// The account_sid
/// Client to make requests to Twilio
/// Task that resolves to A single instance of CredentialList
@@ -316,7 +316,7 @@ private static Request BuildUpdateRequest(UpdateCredentialListOptions options, I
}
///
- /// Change the password of a Credential record
+ /// Update a Credential List
///
/// Update CredentialList parameters
/// Client to make requests to Twilio
@@ -330,7 +330,7 @@ public static CredentialListResource Update(UpdateCredentialListOptions options,
#if !NET35
///
- /// Change the password of a Credential record
+ /// Update a Credential List
///
/// Update CredentialList parameters
/// Client to make requests to Twilio
@@ -345,10 +345,10 @@ public static async System.Threading.Tasks.Task UpdateAs
#endif
///
- /// Change the password of a Credential record
+ /// Update a Credential List
///
/// The sid
- /// The friendly_name
+ /// Human readable descriptive text
/// The account_sid
/// Client to make requests to Twilio
/// A single instance of CredentialList
@@ -363,10 +363,10 @@ public static CredentialListResource Update(string pathSid,
#if !NET35
///
- /// Change the password of a Credential record
+ /// Update a Credential List
///
/// The sid
- /// The friendly_name
+ /// Human readable descriptive text
/// The account_sid
/// Client to make requests to Twilio
/// Task that resolves to A single instance of CredentialList
@@ -392,7 +392,7 @@ private static Request BuildDeleteRequest(DeleteCredentialListOptions options, I
}
///
- /// Remove a credential from a CredentialList
+ /// Delete a Credential List
///
/// Delete CredentialList parameters
/// Client to make requests to Twilio
@@ -406,7 +406,7 @@ public static bool Delete(DeleteCredentialListOptions options, ITwilioRestClient
#if !NET35
///
- /// Remove a credential from a CredentialList
+ /// Delete a Credential List
///
/// Delete CredentialList parameters
/// Client to make requests to Twilio
@@ -421,9 +421,9 @@ public static async System.Threading.Tasks.Task DeleteAsync(DeleteCredenti
#endif
///
- /// Remove a credential from a CredentialList
+ /// Delete a Credential List
///
- /// Delete by unique credential Sid
+ /// Delete by unique credential list Sid
/// The account_sid
/// Client to make requests to Twilio
/// A single instance of CredentialList
@@ -435,9 +435,9 @@ public static bool Delete(string pathSid, string pathAccountSid = null, ITwilioR
#if !NET35
///
- /// Remove a credential from a CredentialList
+ /// Delete a Credential List
///
- /// Delete by unique credential Sid
+ /// Delete by unique credential list Sid
/// The account_sid
/// Client to make requests to Twilio
/// Task that resolves to A single instance of CredentialList
@@ -484,7 +484,7 @@ public static CredentialListResource FromJson(string json)
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The friendly_name
+ /// Human readable descriptive text
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingResource.cs
index 0e147c403..1e660c064 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingResource.cs
@@ -415,32 +415,32 @@ public static CredentialListMappingResource FromJson(string json)
}
///
- /// The account_sid
+ /// The unique id of the Account that responsible for this resource.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created, given as GMT in RFC 2822 format.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated, given as GMT in RFC 2822 format.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The friendly_name
+ /// A human readable descriptive text for this resource, up to 64 characters long.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The uri
+ /// The URI for this resource, relative to https://api.twilio.com
///
[JsonProperty("uri")]
public string Uri { get; private set; }
diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingResource.cs
index 5293ad1a9..51aa2da50 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingResource.cs
@@ -415,32 +415,32 @@ public static IpAccessControlListMappingResource FromJson(string json)
}
///
- /// The account_sid
+ /// The unique id of the Account that responsible for this resource.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created, given as GMT in RFC 2822 format.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated, given as GMT in RFC 2822 format.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The friendly_name
+ /// A human readable descriptive text for this resource, up to 64 characters long.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The uri
+ /// The URI for this resource, relative to https://api.twilio.com
///
[JsonProperty("uri")]
public string Uri { get; private set; }
diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressResource.cs
index 7c0d0526e..1a244ee92 100644
--- a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressResource.cs
+++ b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressResource.cs
@@ -498,22 +498,22 @@ public static IpAddressResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account that responsible for this resource.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The friendly_name
+ /// A human readable descriptive text for this resource, up to 64 characters long.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The ip_address
+ /// An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
///
[JsonProperty("ip_address")]
public string IpAddress { get; private set; }
@@ -523,17 +523,17 @@ public static IpAddressResource FromJson(string json)
[JsonProperty("ip_access_control_list_sid")]
public string IpAccessControlListSid { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created, given as GMT in RFC 2822 format.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated, given as GMT in RFC 2822 format.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The uri
+ /// The URI for this resource, relative to https://api.twilio.com
///
[JsonProperty("uri")]
public string Uri { get; private set; }
diff --git a/src/Twilio/Rest/Api/V2010/AccountOptions.cs b/src/Twilio/Rest/Api/V2010/AccountOptions.cs
index d034a3926..2e991b9b7 100644
--- a/src/Twilio/Rest/Api/V2010/AccountOptions.cs
+++ b/src/Twilio/Rest/Api/V2010/AccountOptions.cs
@@ -68,7 +68,7 @@ public class ReadAccountOptions : ReadOptions
///
/// Status to filter on
///
- public string Status { get; set; }
+ public AccountResource.StatusEnum Status { get; set; }
///
/// Generate the necessary parameters
@@ -83,7 +83,7 @@ public override List> GetParams()
if (Status != null)
{
- p.Add(new KeyValuePair("Status", Status));
+ p.Add(new KeyValuePair("Status", Status.ToString()));
}
if (PageSize != null)
@@ -111,7 +111,7 @@ public class UpdateAccountOptions : IOptions
///
/// Status to update the Account with
///
- public string Status { get; set; }
+ public AccountResource.StatusEnum Status { get; set; }
///
/// Generate the necessary parameters
@@ -126,7 +126,7 @@ public List> GetParams()
if (Status != null)
{
- p.Add(new KeyValuePair("Status", Status));
+ p.Add(new KeyValuePair("Status", Status.ToString()));
}
return p;
diff --git a/src/Twilio/Rest/Api/V2010/AccountResource.cs b/src/Twilio/Rest/Api/V2010/AccountResource.cs
index 8be7154d5..3f74fdc62 100644
--- a/src/Twilio/Rest/Api/V2010/AccountResource.cs
+++ b/src/Twilio/Rest/Api/V2010/AccountResource.cs
@@ -21,6 +21,20 @@ namespace Twilio.Rest.Api.V2010
public class AccountResource : Resource
{
+ public sealed class StatusEnum : StringEnum
+ {
+ private StatusEnum(string value) : base(value) {}
+ public StatusEnum() {}
+ public static implicit operator StatusEnum(string value)
+ {
+ return new StatusEnum(value);
+ }
+
+ public static readonly StatusEnum Active = new StatusEnum("active");
+ public static readonly StatusEnum Suspended = new StatusEnum("suspended");
+ public static readonly StatusEnum Closed = new StatusEnum("closed");
+ }
+
public sealed class TypeEnum : StringEnum
{
private TypeEnum(string value) : base(value) {}
@@ -222,7 +236,7 @@ public static async System.Threading.Tasks.Task> Re
/// Client to make requests to Twilio
/// A single instance of Account
public static ResourceSet Read(string friendlyName = null,
- string status = null,
+ AccountResource.StatusEnum status = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
@@ -242,7 +256,7 @@ public static ResourceSet Read(string friendlyName = null,
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Account
public static async System.Threading.Tasks.Task> ReadAsync(string friendlyName = null,
- string status = null,
+ AccountResource.StatusEnum status = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
@@ -361,7 +375,7 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
/// A single instance of Account
public static AccountResource Update(string pathSid = null,
string friendlyName = null,
- string status = null,
+ AccountResource.StatusEnum status = null,
ITwilioRestClient client = null)
{
var options = new UpdateAccountOptions(){PathSid = pathSid, FriendlyName = friendlyName, Status = status};
@@ -379,7 +393,7 @@ public static AccountResource Update(string pathSid = null,
/// Task that resolves to A single instance of Account
public static async System.Threading.Tasks.Task UpdateAsync(string pathSid = null,
string friendlyName = null,
- string status = null,
+ AccountResource.StatusEnum status = null,
ITwilioRestClient client = null)
{
var options = new UpdateAccountOptions(){PathSid = pathSid, FriendlyName = friendlyName, Status = status};
@@ -439,7 +453,8 @@ public static AccountResource FromJson(string json)
/// The status of this account
///
[JsonProperty("status")]
- public string Status { get; private set; }
+ [JsonConverter(typeof(StringEnumConverter))]
+ public AccountResource.StatusEnum Status { get; private set; }
///
/// Account Instance Subresources
///
diff --git a/src/Twilio/Rest/Chat/V1/CredentialOptions.cs b/src/Twilio/Rest/Chat/V1/CredentialOptions.cs
index a91625db3..d05180835 100644
--- a/src/Twilio/Rest/Chat/V1/CredentialOptions.cs
+++ b/src/Twilio/Rest/Chat/V1/CredentialOptions.cs
@@ -37,27 +37,27 @@ public override List> GetParams()
public class CreateCredentialOptions : IOptions
{
///
- /// The type
+ /// Credential type, one of "gcm" or "apn"
///
public CredentialResource.PushServiceEnum Type { get; }
///
- /// The friendly_name
+ /// Friendly name for stored credential
///
public string FriendlyName { get; set; }
///
- /// The certificate
+ /// [APN only] URL encoded representation of the certificate, e.
///
public string Certificate { get; set; }
///
- /// The private_key
+ /// [APN only] URL encoded representation of the private key, e.
///
public string PrivateKey { get; set; }
///
- /// The sandbox
+ /// [APN only] use this credential for sending to production or sandbox APNs
///
public bool? Sandbox { get; set; }
///
- /// The api_key
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
///
public string ApiKey { get; set; }
///
@@ -68,7 +68,7 @@ public class CreateCredentialOptions : IOptions
///
/// Construct a new CreateCredentialOptions
///
- /// The type
+ /// Credential type, one of "gcm" or "apn"
public CreateCredentialOptions(CredentialResource.PushServiceEnum type)
{
Type = type;
@@ -158,23 +158,23 @@ public class UpdateCredentialOptions : IOptions
///
public string PathSid { get; }
///
- /// The friendly_name
+ /// Friendly name for stored credential
///
public string FriendlyName { get; set; }
///
- /// The certificate
+ /// [APN only] URL encoded representation of the certificate, e.
///
public string Certificate { get; set; }
///
- /// The private_key
+ /// [APN only] URL encoded representation of the private key, e.
///
public string PrivateKey { get; set; }
///
- /// The sandbox
+ /// [APN only] use this credential for sending to production or sandbox APNs
///
public bool? Sandbox { get; set; }
///
- /// The api_key
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
///
public string ApiKey { get; set; }
///
diff --git a/src/Twilio/Rest/Chat/V1/CredentialResource.cs b/src/Twilio/Rest/Chat/V1/CredentialResource.cs
index c0184bc42..8d468f7de 100644
--- a/src/Twilio/Rest/Chat/V1/CredentialResource.cs
+++ b/src/Twilio/Rest/Chat/V1/CredentialResource.cs
@@ -213,12 +213,13 @@ public static async System.Threading.Tasks.Task CreateAsync(
///
/// create
///
- /// The type
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
+ /// Credential type, one of "gcm" or "apn"
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
/// The secret
/// Client to make requests to Twilio
/// A single instance of Credential
@@ -239,12 +240,13 @@ public static CredentialResource Create(CredentialResource.PushServiceEnum type,
///
/// create
///
- /// The type
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
+ /// Credential type, one of "gcm" or "apn"
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
/// The secret
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Credential
@@ -373,11 +375,12 @@ public static async System.Threading.Tasks.Task UpdateAsync(
/// update
///
/// The sid
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
/// The secret
/// Client to make requests to Twilio
/// A single instance of Credential
@@ -399,11 +402,12 @@ public static CredentialResource Update(string pathSid,
/// update
///
/// The sid
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
/// The secret
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Credential
@@ -506,43 +510,43 @@ public static CredentialResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account[/console] responsible for this resource.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this resource.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The type
+ /// Indicates which push notifications service this credential is for - either gcm or apn
///
[JsonProperty("type")]
[JsonConverter(typeof(StringEnumConverter))]
public CredentialResource.PushServiceEnum Type { get; private set; }
///
- /// The sandbox
+ /// [APN only] true when this resource should use the sandbox APN service.
///
[JsonProperty("sandbox")]
public string Sandbox { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The url
+ /// An absolute URL for this credential resource.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.cs
index fc9e538d8..26f5a9964 100644
--- a/src/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.cs
@@ -67,11 +67,11 @@ public class CreateInviteOptions : IOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public string Identity { get; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
public string RoleSid { get; set; }
@@ -80,7 +80,7 @@ public class CreateInviteOptions : IOptions
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
public CreateInviteOptions(string pathServiceSid, string pathChannelSid, string identity)
{
PathServiceSid = pathServiceSid;
@@ -122,7 +122,7 @@ public class ReadInviteOptions : ReadOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public List Identity { get; set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/InviteResource.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/InviteResource.cs
index fc608e0ec..7cda91b56 100644
--- a/src/Twilio/Rest/Chat/V1/Service/Channel/InviteResource.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/Channel/InviteResource.cs
@@ -141,8 +141,8 @@ public static async System.Threading.Tasks.Task CreateAsync(Crea
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// A single instance of Invite
public static InviteResource Create(string pathServiceSid,
@@ -161,8 +161,8 @@ public static InviteResource Create(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Invite
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -225,7 +225,7 @@ public static async System.Threading.Tasks.Task> Rea
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -247,7 +247,7 @@ public static ResourceSet Read(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -418,42 +418,42 @@ public static InviteResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account[/console] responsible for this member.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The channel_sid
+ /// The unique id of the Channel for this member.
///
[JsonProperty("channel_sid")]
public string ChannelSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this member belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
[JsonProperty("identity")]
public string Identity { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
[JsonProperty("role_sid")]
public string RoleSid { get; private set; }
@@ -463,7 +463,7 @@ public static InviteResource FromJson(string json)
[JsonProperty("created_by")]
public string CreatedBy { get; private set; }
///
- /// The url
+ /// An absolute URL for this member.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.cs
index 91093b54f..28efb2bcc 100644
--- a/src/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.cs
@@ -67,11 +67,11 @@ public class CreateMemberOptions : IOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public string Identity { get; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
public string RoleSid { get; set; }
@@ -80,7 +80,7 @@ public class CreateMemberOptions : IOptions
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
public CreateMemberOptions(string pathServiceSid, string pathChannelSid, string identity)
{
PathServiceSid = pathServiceSid;
@@ -122,7 +122,7 @@ public class ReadMemberOptions : ReadOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public List Identity { get; set; }
@@ -217,11 +217,11 @@ public class UpdateMemberOptions : IOptions
///
public string PathSid { get; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
public string RoleSid { get; set; }
///
- /// The last_consumed_message_index
+ /// An Integer representing index of the last Message this Member has read within this Channel
///
public int? LastConsumedMessageIndex { get; set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/MemberResource.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/MemberResource.cs
index 880df317c..8cda311bb 100644
--- a/src/Twilio/Rest/Chat/V1/Service/Channel/MemberResource.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/Channel/MemberResource.cs
@@ -141,8 +141,8 @@ public static async System.Threading.Tasks.Task CreateAsync(Crea
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// A single instance of Member
public static MemberResource Create(string pathServiceSid,
@@ -161,8 +161,8 @@ public static MemberResource Create(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Member
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -225,7 +225,7 @@ public static async System.Threading.Tasks.Task> Rea
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -247,7 +247,7 @@ public static ResourceSet Read(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -445,8 +445,9 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upda
/// The service_sid
/// The channel_sid
/// The sid
- /// The role_sid
- /// The last_consumed_message_index
+ /// The Role assigned to this member.
+ /// An Integer representing index of the last Message this Member has read
+ /// within this Channel
/// Client to make requests to Twilio
/// A single instance of Member
public static MemberResource Update(string pathServiceSid,
@@ -467,8 +468,9 @@ public static MemberResource Update(string pathServiceSid,
/// The service_sid
/// The channel_sid
/// The sid
- /// The role_sid
- /// The last_consumed_message_index
+ /// The Role assigned to this member.
+ /// An Integer representing index of the last Message this Member has read
+ /// within this Channel
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Member
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -502,57 +504,57 @@ public static MemberResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this member.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The channel_sid
+ /// The unique id of the Channel for this member.
///
[JsonProperty("channel_sid")]
public string ChannelSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this member belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
[JsonProperty("identity")]
public string Identity { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
[JsonProperty("role_sid")]
public string RoleSid { get; private set; }
///
- /// The last_consumed_message_index
+ /// An Integer representing index of the last Message this Member has read within this Channel
///
[JsonProperty("last_consumed_message_index")]
public int? LastConsumedMessageIndex { get; private set; }
///
- /// The last_consumption_timestamp
+ /// An ISO8601 based timestamp string representing the datetime of the last Message read event for this Member within this Channel
///
[JsonProperty("last_consumption_timestamp")]
public DateTime? LastConsumptionTimestamp { get; private set; }
///
- /// The url
+ /// An absolute URL for this member.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.cs
index d3b1dc632..45f94004b 100644
--- a/src/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.cs
@@ -224,11 +224,11 @@ public class UpdateMessageOptions : IOptions
///
public string PathSid { get; }
///
- /// The body
+ /// The new message body string.
///
public string Body { get; set; }
///
- /// The attributes
+ /// The new attributes metadata field you can use to store any data you wish.
///
public string Attributes { get; set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/MessageResource.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/MessageResource.cs
index 523433e43..c9ae9328a 100644
--- a/src/Twilio/Rest/Chat/V1/Service/Channel/MessageResource.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/Channel/MessageResource.cs
@@ -463,8 +463,8 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
/// The service_sid
/// The channel_sid
/// The sid
- /// The body
- /// The attributes
+ /// The new message body string.
+ /// The new attributes metadata field you can use to store any data you wish.
/// Client to make requests to Twilio
/// A single instance of Message
public static MessageResource Update(string pathServiceSid,
@@ -485,8 +485,8 @@ public static MessageResource Update(string pathServiceSid,
/// The service_sid
/// The channel_sid
/// The sid
- /// The body
- /// The attributes
+ /// The new message body string.
+ /// The new attributes metadata field you can use to store any data you wish.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Message
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -520,27 +520,27 @@ public static MessageResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this message.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The attributes
+ /// An optional string metadata field you can use to store any data you wish.
///
[JsonProperty("attributes")]
public string Attributes { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this message belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The to
+ /// The unique id of the Channel this message was sent to.
///
[JsonProperty("to")]
public string To { get; private set; }
@@ -550,37 +550,37 @@ public static MessageResource FromJson(string json)
[JsonProperty("channel_sid")]
public string ChannelSid { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The was_edited
+ /// true if the message has been updated since it was created.
///
[JsonProperty("was_edited")]
public bool? WasEdited { get; private set; }
///
- /// The from
+ /// The identity of the message's author.
///
[JsonProperty("from")]
public string From { get; private set; }
///
- /// The body
+ /// The contents of the message.
///
[JsonProperty("body")]
public string Body { get; private set; }
///
- /// The index
+ /// The index of the message within the Channel
///
[JsonProperty("index")]
public int? Index { get; private set; }
///
- /// The url
+ /// An absolute URL for this message.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/ChannelOptions.cs b/src/Twilio/Rest/Chat/V1/Service/ChannelOptions.cs
index dbb30020d..ae15824b4 100644
--- a/src/Twilio/Rest/Chat/V1/Service/ChannelOptions.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/ChannelOptions.cs
@@ -92,19 +92,19 @@ public class CreateChannelOptions : IOptions
///
public string PathServiceSid { get; }
///
- /// The friendly_name
+ /// A human-readable name for the Channel.
///
public string FriendlyName { get; set; }
///
- /// The unique_name
+ /// A unique, addressable name for the Channel.
///
public string UniqueName { get; set; }
///
- /// The attributes
+ /// An optional metadata field you can use to store any data you wish.
///
public string Attributes { get; set; }
///
- /// The type
+ /// The visibility of the channel - public or private.
///
public ChannelResource.ChannelTypeEnum Type { get; set; }
@@ -205,15 +205,15 @@ public class UpdateChannelOptions : IOptions
///
public string PathSid { get; }
///
- /// The friendly_name
+ /// A human-readable name for the Channel.
///
public string FriendlyName { get; set; }
///
- /// The unique_name
+ /// A unique, addressable name for the Channel.
///
public string UniqueName { get; set; }
///
- /// The attributes
+ /// An optional metadata field you can use to store any data you wish.
///
public string Attributes { get; set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/ChannelResource.cs b/src/Twilio/Rest/Chat/V1/Service/ChannelResource.cs
index 7cdae85c2..e674ca4bd 100644
--- a/src/Twilio/Rest/Chat/V1/Service/ChannelResource.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/ChannelResource.cs
@@ -218,10 +218,10 @@ public static async System.Threading.Tasks.Task CreateAsync(Cre
/// create
///
/// The service_sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
- /// The type
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
+ /// The visibility of the channel - public or private.
/// Client to make requests to Twilio
/// A single instance of Channel
public static ChannelResource Create(string pathServiceSid,
@@ -240,10 +240,10 @@ public static ChannelResource Create(string pathServiceSid,
/// create
///
/// The service_sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
- /// The type
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
+ /// The visibility of the channel - public or private.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Channel
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -446,9 +446,9 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
///
/// The service_sid
/// The sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
/// Client to make requests to Twilio
/// A single instance of Channel
public static ChannelResource Update(string pathServiceSid,
@@ -468,9 +468,9 @@ public static ChannelResource Update(string pathServiceSid,
///
/// The service_sid
/// The sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Channel
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -504,53 +504,53 @@ public static ChannelResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the [Account][/console] responsible for this channel.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the [Service][service] this channel belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this channel.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The unique_name
+ /// The unique, addressable name of this channel.
///
[JsonProperty("unique_name")]
public string UniqueName { get; private set; }
///
- /// The attributes
+ /// An optional string metadata field you can use to store any data you wish.
///
[JsonProperty("attributes")]
public string Attributes { get; private set; }
///
- /// The type
+ /// The visibility of this channel - either public or private
///
[JsonProperty("type")]
[JsonConverter(typeof(StringEnumConverter))]
public ChannelResource.ChannelTypeEnum Type { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The created_by
+ /// Identity of the channel's creator.
///
[JsonProperty("created_by")]
public string CreatedBy { get; private set; }
@@ -565,12 +565,12 @@ public static ChannelResource FromJson(string json)
[JsonProperty("messages_count")]
public int? MessagesCount { get; private set; }
///
- /// The url
+ /// An absolute URL for this channel.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
///
- /// The links
+ /// Absolute URLs to access the [Members][members] and [Messages][messages] for this channel.
///
[JsonProperty("links")]
public Dictionary Links { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/RoleOptions.cs b/src/Twilio/Rest/Chat/V1/Service/RoleOptions.cs
index 95539c099..e05a0653d 100644
--- a/src/Twilio/Rest/Chat/V1/Service/RoleOptions.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/RoleOptions.cs
@@ -92,15 +92,15 @@ public class CreateRoleOptions : IOptions
///
public string PathServiceSid { get; }
///
- /// The friendly_name
+ /// The human-readable name of this role.
///
public string FriendlyName { get; }
///
- /// The type
+ /// What kind of role this is.
///
public RoleResource.RoleTypeEnum Type { get; }
///
- /// The permission
+ /// A permission this role should have.
///
public List Permission { get; }
@@ -108,9 +108,9 @@ public class CreateRoleOptions : IOptions
/// Construct a new CreateRoleOptions
///
/// The service_sid
- /// The friendly_name
- /// The type
- /// The permission
+ /// The human-readable name of this role.
+ /// What kind of role this is.
+ /// A permission this role should have.
public CreateRoleOptions(string pathServiceSid,
string friendlyName,
RoleResource.RoleTypeEnum type,
@@ -195,7 +195,7 @@ public class UpdateRoleOptions : IOptions
///
public string PathSid { get; }
///
- /// The permission
+ /// A permission this role should have.
///
public List Permission { get; }
@@ -204,7 +204,7 @@ public class UpdateRoleOptions : IOptions
///
/// The service_sid
/// The sid
- /// The permission
+ /// A permission this role should have.
public UpdateRoleOptions(string pathServiceSid, string pathSid, List permission)
{
PathServiceSid = pathServiceSid;
diff --git a/src/Twilio/Rest/Chat/V1/Service/RoleResource.cs b/src/Twilio/Rest/Chat/V1/Service/RoleResource.cs
index cf752514e..88bbfb7cc 100644
--- a/src/Twilio/Rest/Chat/V1/Service/RoleResource.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/RoleResource.cs
@@ -218,9 +218,9 @@ public static async System.Threading.Tasks.Task CreateAsync(Create
/// create
///
/// The service_sid
- /// The friendly_name
- /// The type
- /// The permission
+ /// The human-readable name of this role.
+ /// What kind of role this is.
+ /// A permission this role should have.
/// Client to make requests to Twilio
/// A single instance of Role
public static RoleResource Create(string pathServiceSid,
@@ -238,9 +238,9 @@ public static RoleResource Create(string pathServiceSid,
/// create
///
/// The service_sid
- /// The friendly_name
- /// The type
- /// The permission
+ /// The human-readable name of this role.
+ /// What kind of role this is.
+ /// A permission this role should have.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Role
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -438,7 +438,7 @@ public static async System.Threading.Tasks.Task UpdateAsync(Update
///
/// The service_sid
/// The sid
- /// The permission
+ /// A permission this role should have.
/// Client to make requests to Twilio
/// A single instance of Role
public static RoleResource Update(string pathServiceSid,
@@ -456,7 +456,7 @@ public static RoleResource Update(string pathServiceSid,
///
/// The service_sid
/// The sid
- /// The permission
+ /// A permission this role should have.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Role
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -488,48 +488,48 @@ public static RoleResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this role.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this role belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this role.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The type
+ /// What kind of role this is.
///
[JsonProperty("type")]
[JsonConverter(typeof(StringEnumConverter))]
public RoleResource.RoleTypeEnum Type { get; private set; }
///
- /// The permissions
+ /// A JSON array of the permissions this role has.
///
[JsonProperty("permissions")]
public List Permissions { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created in ISO 8601 format.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated in ISO 8601 format.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The url
+ /// An absolute URL for this role.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/UserOptions.cs b/src/Twilio/Rest/Chat/V1/Service/UserOptions.cs
index 874638f49..839309921 100644
--- a/src/Twilio/Rest/Chat/V1/Service/UserOptions.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/UserOptions.cs
@@ -91,19 +91,19 @@ public class CreateUserOptions : IOptions
///
public string PathServiceSid { get; }
///
- /// The identity
+ /// A unique string that identifies the user within this service - often a username or email address.
///
public string Identity { get; }
///
- /// The role_sid
+ /// The unique id of the Role assigned to this user.
///
public string RoleSid { get; set; }
///
- /// The attributes
+ /// An optional string used to contain any metadata or other information for the User.
///
public string Attributes { get; set; }
///
- /// The friendly_name
+ /// An optional human readable string representing the user.
///
public string FriendlyName { get; set; }
@@ -111,7 +111,8 @@ public class CreateUserOptions : IOptions
/// Construct a new CreateUserOptions
///
/// The service_sid
- /// The identity
+ /// A unique string that identifies the user within this service - often a username or email
+ /// address.
public CreateUserOptions(string pathServiceSid, string identity)
{
PathServiceSid = pathServiceSid;
@@ -196,15 +197,15 @@ public class UpdateUserOptions : IOptions
///
public string PathSid { get; }
///
- /// The role_sid
+ /// The unique id of the [Role][role] assigned to this user.
///
public string RoleSid { get; set; }
///
- /// The attributes
+ /// An optional string used to contain any metadata or other information for the User.
///
public string Attributes { get; set; }
///
- /// The friendly_name
+ /// An optional human readable string representing the user.
///
public string FriendlyName { get; set; }
diff --git a/src/Twilio/Rest/Chat/V1/Service/UserResource.cs b/src/Twilio/Rest/Chat/V1/Service/UserResource.cs
index 19356507a..9d6c6b2c4 100644
--- a/src/Twilio/Rest/Chat/V1/Service/UserResource.cs
+++ b/src/Twilio/Rest/Chat/V1/Service/UserResource.cs
@@ -204,10 +204,12 @@ public static async System.Threading.Tasks.Task CreateAsync(Create
/// create
///
/// The service_sid
- /// The identity
- /// The role_sid
- /// The attributes
- /// The friendly_name
+ /// A unique string that identifies the user within this service - often a username or email
+ /// address.
+ /// The unique id of the Role assigned to this user.
+ /// An optional string used to contain any metadata or other information for the User.
+ ///
+ /// An optional human readable string representing the user.
/// Client to make requests to Twilio
/// A single instance of User
public static UserResource Create(string pathServiceSid,
@@ -226,10 +228,12 @@ public static UserResource Create(string pathServiceSid,
/// create
///
/// The service_sid
- /// The identity
- /// The role_sid
- /// The attributes
- /// The friendly_name
+ /// A unique string that identifies the user within this service - often a username or email
+ /// address.
+ /// The unique id of the Role assigned to this user.
+ /// An optional string used to contain any metadata or other information for the User.
+ ///
+ /// An optional human readable string representing the user.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of User
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -428,9 +432,10 @@ public static async System.Threading.Tasks.Task UpdateAsync(Update
///
/// The service_sid
/// The sid
- /// The role_sid
- /// The attributes
- /// The friendly_name
+ /// The unique id of the [Role][role] assigned to this user.
+ /// An optional string used to contain any metadata or other information for the User.
+ ///
+ /// An optional human readable string representing the user.
/// Client to make requests to Twilio
/// A single instance of User
public static UserResource Update(string pathServiceSid,
@@ -450,9 +455,10 @@ public static UserResource Update(string pathServiceSid,
///
/// The service_sid
/// The sid
- /// The role_sid
- /// The attributes
- /// The friendly_name
+ /// The unique id of the [Role][role] assigned to this user.
+ /// An optional string used to contain any metadata or other information for the User.
+ ///
+ /// An optional human readable string representing the user.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of User
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -486,57 +492,57 @@ public static UserResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this user.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this user belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The attributes
+ /// An optional string metadata field you can use to store any data you wish.
///
[JsonProperty("attributes")]
public string Attributes { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this user.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The role_sid
+ /// The unique id of the [Role][role] assigned to this user.
///
[JsonProperty("role_sid")]
public string RoleSid { get; private set; }
///
- /// The identity
+ /// A unique string that identifies the user within this service - often a username or email address.
///
[JsonProperty("identity")]
public string Identity { get; private set; }
///
- /// The is_online
+ /// Indicates whether the User is actively connected to the Service instance and online.
///
[JsonProperty("is_online")]
public bool? IsOnline { get; private set; }
///
- /// The is_notifiable
+ /// Indicates whether the User has a potentially valid Push Notification registration for the Service instance.
///
[JsonProperty("is_notifiable")]
public bool? IsNotifiable { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created in ISO 8601 format.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated in ISO 8601 format.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
@@ -551,7 +557,7 @@ public static UserResource FromJson(string json)
[JsonProperty("links")]
public Dictionary Links { get; private set; }
///
- /// The url
+ /// An absolute URL for this user.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V1/ServiceOptions.cs b/src/Twilio/Rest/Chat/V1/ServiceOptions.cs
index 2eca82618..53e4026be 100644
--- a/src/Twilio/Rest/Chat/V1/ServiceOptions.cs
+++ b/src/Twilio/Rest/Chat/V1/ServiceOptions.cs
@@ -76,14 +76,14 @@ public List> GetParams()
public class CreateServiceOptions : IOptions
{
///
- /// The friendly_name
+ /// Human-readable name for this service instance
///
public string FriendlyName { get; }
///
/// Construct a new CreateServiceOptions
///
- /// The friendly_name
+ /// Human-readable name for this service instance
public CreateServiceOptions(string friendlyName)
{
FriendlyName = friendlyName;
@@ -134,7 +134,7 @@ public class UpdateServiceOptions : IOptions
///
public string PathSid { get; }
///
- /// The friendly_name
+ /// Human-readable name for this service instance
///
public string FriendlyName { get; set; }
///
@@ -142,27 +142,27 @@ public class UpdateServiceOptions : IOptions
///
public string DefaultServiceRoleSid { get; set; }
///
- /// The default_channel_role_sid
+ /// Channel role assigned on channel join
///
public string DefaultChannelRoleSid { get; set; }
///
- /// The default_channel_creator_role_sid
+ /// Channel role assigned to creator of channel when joining for first time
///
public string DefaultChannelCreatorRoleSid { get; set; }
///
- /// The read_status_enabled
+ /// true if the member read status feature is enabled, false if not.
///
public bool? ReadStatusEnabled { get; set; }
///
- /// The reachability_enabled
+ /// true if the reachability feature should be enabled.
///
public bool? ReachabilityEnabled { get; set; }
///
- /// The typing_indicator_timeout
+ /// ISO 8601 duration indicating the timeout after "started typing" event when client should assume that user is not typing anymore even if no "ended typing" message received
///
public int? TypingIndicatorTimeout { get; set; }
///
- /// The consumption_report_interval
+ /// ISO 8601 duration indicating the interval between consumption reports sent from client endpoints.
///
public int? ConsumptionReportInterval { get; set; }
///
@@ -198,19 +198,19 @@ public class UpdateServiceOptions : IOptions
///
public string NotificationsInvitedToChannelTemplate { get; set; }
///
- /// The pre_webhook_url
+ /// The webhook URL for PRE-Event webhooks.
///
public Uri PreWebhookUrl { get; set; }
///
- /// The post_webhook_url
+ /// The webhook URL for POST-Event webhooks.
///
public Uri PostWebhookUrl { get; set; }
///
- /// The webhook_method
+ /// The webhook request format to use.
///
public Twilio.Http.HttpMethod WebhookMethod { get; set; }
///
- /// The webhook_filters
+ /// The list of WebHook events that are enabled for this Service instance.
///
public List WebhookFilters { get; set; }
///
diff --git a/src/Twilio/Rest/Chat/V1/ServiceResource.cs b/src/Twilio/Rest/Chat/V1/ServiceResource.cs
index f9904d703..78004dccb 100644
--- a/src/Twilio/Rest/Chat/V1/ServiceResource.cs
+++ b/src/Twilio/Rest/Chat/V1/ServiceResource.cs
@@ -196,7 +196,7 @@ public static async System.Threading.Tasks.Task CreateAsync(Cre
///
/// create
///
- /// The friendly_name
+ /// Human-readable name for this service instance
/// Client to make requests to Twilio
/// A single instance of Service
public static ServiceResource Create(string friendlyName, ITwilioRestClient client = null)
@@ -209,7 +209,7 @@ public static ServiceResource Create(string friendlyName, ITwilioRestClient clie
///
/// create
///
- /// The friendly_name
+ /// Human-readable name for this service instance
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Service
public static async System.Threading.Tasks.Task CreateAsync(string friendlyName,
@@ -399,14 +399,18 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
/// update
///
/// The sid
- /// The friendly_name
+ /// Human-readable name for this service instance
/// The default_service_role_sid
- /// The default_channel_role_sid
- /// The default_channel_creator_role_sid
- /// The read_status_enabled
- /// The reachability_enabled
- /// The typing_indicator_timeout
- /// The consumption_report_interval
+ /// Channel role assigned on channel join
+ /// Channel role assigned to creator of channel when joining for first time
+ ///
+ /// true if the member read status feature is enabled, false if not.
+ /// true if the reachability feature should be enabled.
+ /// ISO 8601 duration indicating the timeout after "started typing" event when
+ /// client should assume that user is not typing anymore even if no "ended typing" message
+ /// received
+ /// ISO 8601 duration indicating the interval between consumption reports sent
+ /// from client endpoints.
/// The notifications.new_message.enabled
/// The notifications.new_message.template
/// The notifications.added_to_channel.enabled
@@ -415,10 +419,10 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
/// The notifications.removed_from_channel.template
/// The notifications.invited_to_channel.enabled
/// The notifications.invited_to_channel.template
- /// The pre_webhook_url
- /// The post_webhook_url
- /// The webhook_method
- /// The webhook_filters
+ /// The webhook URL for PRE-Event webhooks.
+ /// The webhook URL for POST-Event webhooks.
+ /// The webhook request format to use.
+ /// The list of WebHook events that are enabled for this Service instance.
/// The webhooks.on_message_send.url
/// The webhooks.on_message_send.method
/// The webhooks.on_message_send.format
@@ -553,14 +557,18 @@ public static ServiceResource Update(string pathSid,
/// update
///
/// The sid
- /// The friendly_name
+ /// Human-readable name for this service instance
/// The default_service_role_sid
- /// The default_channel_role_sid
- /// The default_channel_creator_role_sid
- /// The read_status_enabled
- /// The reachability_enabled
- /// The typing_indicator_timeout
- /// The consumption_report_interval
+ /// Channel role assigned on channel join
+ /// Channel role assigned to creator of channel when joining for first time
+ ///
+ /// true if the member read status feature is enabled, false if not.
+ /// true if the reachability feature should be enabled.
+ /// ISO 8601 duration indicating the timeout after "started typing" event when
+ /// client should assume that user is not typing anymore even if no "ended typing" message
+ /// received
+ /// ISO 8601 duration indicating the interval between consumption reports sent
+ /// from client endpoints.
/// The notifications.new_message.enabled
/// The notifications.new_message.template
/// The notifications.added_to_channel.enabled
@@ -569,10 +577,10 @@ public static ServiceResource Update(string pathSid,
/// The notifications.removed_from_channel.template
/// The notifications.invited_to_channel.enabled
/// The notifications.invited_to_channel.template
- /// The pre_webhook_url
- /// The post_webhook_url
- /// The webhook_method
- /// The webhook_filters
+ /// The webhook URL for PRE-Event webhooks.
+ /// The webhook URL for POST-Event webhooks.
+ /// The webhook request format to use.
+ /// The list of WebHook events that are enabled for this Service instance.
/// The webhooks.on_message_send.url
/// The webhooks.on_message_send.method
/// The webhooks.on_message_send.format
@@ -722,62 +730,62 @@ public static ServiceResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this service.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this service.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The default_service_role_sid
+ /// The service role assigned to users when they are added to the service.
///
[JsonProperty("default_service_role_sid")]
public string DefaultServiceRoleSid { get; private set; }
///
- /// The default_channel_role_sid
+ /// The channel role assigned to users when they are added to a channel.
///
[JsonProperty("default_channel_role_sid")]
public string DefaultChannelRoleSid { get; private set; }
///
- /// The default_channel_creator_role_sid
+ /// The channel role assigned to a channel creator when joining a new channel.
///
[JsonProperty("default_channel_creator_role_sid")]
public string DefaultChannelCreatorRoleSid { get; private set; }
///
- /// The read_status_enabled
+ /// Enable the Message Constumption Horizon feature.
///
[JsonProperty("read_status_enabled")]
public bool? ReadStatusEnabled { get; private set; }
///
- /// The reachability_enabled
+ /// Indicates whether the the Reachability feature is enabled for this Service instance.
///
[JsonProperty("reachability_enabled")]
public bool? ReachabilityEnabled { get; private set; }
///
- /// The typing_indicator_timeout
+ /// The amount of time after a "started typing" event when clients should assume that user is no longer typing, even if no "ended typing" message was received.
///
[JsonProperty("typing_indicator_timeout")]
public int? TypingIndicatorTimeout { get; private set; }
///
- /// The consumption_report_interval
+ /// The interval between consumption reports submission batches from client endpoints.
///
[JsonProperty("consumption_report_interval")]
public int? ConsumptionReportInterval { get; private set; }
@@ -792,37 +800,37 @@ public static ServiceResource FromJson(string json)
[JsonProperty("webhooks")]
public object Webhooks { get; private set; }
///
- /// The pre_webhook_url
+ /// The webhook URL for PRE-Event webhooks.
///
[JsonProperty("pre_webhook_url")]
public string PreWebhookUrl { get; private set; }
///
- /// The post_webhook_url
+ /// The webhook URL for POST-Event webhooks.
///
[JsonProperty("post_webhook_url")]
public string PostWebhookUrl { get; private set; }
///
- /// The webhook_method
+ /// The webhook request format to use.
///
[JsonProperty("webhook_method")]
public string WebhookMethod { get; private set; }
///
- /// The webhook_filters
+ /// The list of WebHook events that are enabled for this Service instance.
///
[JsonProperty("webhook_filters")]
public List WebhookFilters { get; private set; }
///
- /// The notifications
+ /// Notification configuration for the Service instance.
///
[JsonProperty("notifications")]
public object Notifications { get; private set; }
///
- /// The url
+ /// An absolute URL for this service.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
///
- /// The links
+ /// URLs to access the Channels, Roles, and Users for this service.
///
[JsonProperty("links")]
public Dictionary Links { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V2/CredentialOptions.cs b/src/Twilio/Rest/Chat/V2/CredentialOptions.cs
index b01a3a1a1..b3e3a79db 100644
--- a/src/Twilio/Rest/Chat/V2/CredentialOptions.cs
+++ b/src/Twilio/Rest/Chat/V2/CredentialOptions.cs
@@ -37,38 +37,38 @@ public override List> GetParams()
public class CreateCredentialOptions : IOptions
{
///
- /// The type
+ /// Credential type, one of "gcm", "fcm", or "apn"
///
public CredentialResource.PushServiceEnum Type { get; }
///
- /// The friendly_name
+ /// Friendly name for stored credential
///
public string FriendlyName { get; set; }
///
- /// The certificate
+ /// [APN only] URL encoded representation of the certificate, e.
///
public string Certificate { get; set; }
///
- /// The private_key
+ /// [APN only] URL encoded representation of the private key, e.
///
public string PrivateKey { get; set; }
///
- /// The sandbox
+ /// [APN only] use this credential for sending to production or sandbox APNs
///
public bool? Sandbox { get; set; }
///
- /// The api_key
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
///
public string ApiKey { get; set; }
///
- /// The secret
+ /// [FCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging.
///
public string Secret { get; set; }
///
/// Construct a new CreateCredentialOptions
///
- /// The type
+ /// Credential type, one of "gcm", "fcm", or "apn"
public CreateCredentialOptions(CredentialResource.PushServiceEnum type)
{
Type = type;
@@ -158,27 +158,27 @@ public class UpdateCredentialOptions : IOptions
///
public string PathSid { get; }
///
- /// The friendly_name
+ /// Friendly name for stored credential
///
public string FriendlyName { get; set; }
///
- /// The certificate
+ /// [APN only] URL encoded representation of the certificate, e.
///
public string Certificate { get; set; }
///
- /// The private_key
+ /// [APN only] URL encoded representation of the private key, e.
///
public string PrivateKey { get; set; }
///
- /// The sandbox
+ /// [APN only] use this credential for sending to production or sandbox APNs
///
public bool? Sandbox { get; set; }
///
- /// The api_key
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
///
public string ApiKey { get; set; }
///
- /// The secret
+ /// [FCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging.
///
public string Secret { get; set; }
diff --git a/src/Twilio/Rest/Chat/V2/CredentialResource.cs b/src/Twilio/Rest/Chat/V2/CredentialResource.cs
index 6a28dab5f..4a76c2b78 100644
--- a/src/Twilio/Rest/Chat/V2/CredentialResource.cs
+++ b/src/Twilio/Rest/Chat/V2/CredentialResource.cs
@@ -213,13 +213,15 @@ public static async System.Threading.Tasks.Task CreateAsync(
///
/// create
///
- /// The type
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
- /// The secret
+ /// Credential type, one of "gcm", "fcm", or "apn"
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
+ /// [FCM only] This is the "Server key" of your project from Firebase console under Settings /
+ /// Cloud messaging.
/// Client to make requests to Twilio
/// A single instance of Credential
public static CredentialResource Create(CredentialResource.PushServiceEnum type,
@@ -239,13 +241,15 @@ public static CredentialResource Create(CredentialResource.PushServiceEnum type,
///
/// create
///
- /// The type
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
- /// The secret
+ /// Credential type, one of "gcm", "fcm", or "apn"
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
+ /// [FCM only] This is the "Server key" of your project from Firebase console under Settings /
+ /// Cloud messaging.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Credential
public static async System.Threading.Tasks.Task CreateAsync(CredentialResource.PushServiceEnum type,
@@ -373,12 +377,14 @@ public static async System.Threading.Tasks.Task UpdateAsync(
/// update
///
/// The sid
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
- /// The secret
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
+ /// [FCM only] This is the "Server key" of your project from Firebase console under Settings /
+ /// Cloud messaging.
/// Client to make requests to Twilio
/// A single instance of Credential
public static CredentialResource Update(string pathSid,
@@ -399,12 +405,14 @@ public static CredentialResource Update(string pathSid,
/// update
///
/// The sid
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
- /// The secret
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
+ /// [FCM only] This is the "Server key" of your project from Firebase console under Settings /
+ /// Cloud messaging.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Credential
public static async System.Threading.Tasks.Task UpdateAsync(string pathSid,
@@ -506,43 +514,43 @@ public static CredentialResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this resource.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this resource.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The type
+ /// Indicates which push notifications service this credential is for - either gcm, fcm, or apn
///
[JsonProperty("type")]
[JsonConverter(typeof(StringEnumConverter))]
public CredentialResource.PushServiceEnum Type { get; private set; }
///
- /// The sandbox
+ /// [APN only] true when this resource should use the sandbox APN service.
///
[JsonProperty("sandbox")]
public string Sandbox { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The url
+ /// An absolute URL for this credential resource.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.cs
index 03cf2e9be..552690592 100644
--- a/src/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.cs
@@ -67,11 +67,11 @@ public class CreateInviteOptions : IOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public string Identity { get; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
public string RoleSid { get; set; }
@@ -80,7 +80,7 @@ public class CreateInviteOptions : IOptions
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
public CreateInviteOptions(string pathServiceSid, string pathChannelSid, string identity)
{
PathServiceSid = pathServiceSid;
@@ -122,7 +122,7 @@ public class ReadInviteOptions : ReadOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public List Identity { get; set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/InviteResource.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/InviteResource.cs
index 453fd6475..12d3be870 100644
--- a/src/Twilio/Rest/Chat/V2/Service/Channel/InviteResource.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/Channel/InviteResource.cs
@@ -141,8 +141,8 @@ public static async System.Threading.Tasks.Task CreateAsync(Crea
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// A single instance of Invite
public static InviteResource Create(string pathServiceSid,
@@ -161,8 +161,8 @@ public static InviteResource Create(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Invite
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -225,7 +225,7 @@ public static async System.Threading.Tasks.Task> Rea
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -247,7 +247,7 @@ public static ResourceSet Read(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -418,42 +418,42 @@ public static InviteResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this member.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The channel_sid
+ /// The unique id of the Channel for this member.
///
[JsonProperty("channel_sid")]
public string ChannelSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this member belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
[JsonProperty("identity")]
public string Identity { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
[JsonProperty("role_sid")]
public string RoleSid { get; private set; }
@@ -463,7 +463,7 @@ public static InviteResource FromJson(string json)
[JsonProperty("created_by")]
public string CreatedBy { get; private set; }
///
- /// The url
+ /// An absolute URL for this member.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.cs
index 5064bd5f1..88e70530a 100644
--- a/src/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.cs
@@ -253,23 +253,23 @@ public class UpdateMemberOptions : IOptions
///
public string PathSid { get; }
///
- /// The role_sid
+ /// The role to be assigned to this member.
///
public string RoleSid { get; set; }
///
- /// The last_consumed_message_index
+ /// Optional field used to specify the last consumed Message index for the Channel for this Member.
///
public int? LastConsumedMessageIndex { get; set; }
///
- /// The last_consumption_timestamp
+ /// Optional ISO8601 time indicating the last datetime the Member consumed a Message in the Channel.
///
public DateTime? LastConsumptionTimestamp { get; set; }
///
- /// The date_created
+ /// The optional ISO8601 time specifying the datetime the Members should be set as being created.
///
public DateTime? DateCreated { get; set; }
///
- /// The date_updated
+ /// The optional ISO8601 time specifying the datetime the Member should be set as having been last updated.
///
public DateTime? DateUpdated { get; set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/MemberResource.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/MemberResource.cs
index 790a39a2c..5d3f8eca4 100644
--- a/src/Twilio/Rest/Chat/V2/Service/Channel/MemberResource.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/Channel/MemberResource.cs
@@ -461,11 +461,15 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upda
/// The service_sid
/// The channel_sid
/// The sid
- /// The role_sid
- /// The last_consumed_message_index
- /// The last_consumption_timestamp
- /// The date_created
- /// The date_updated
+ /// The role to be assigned to this member.
+ /// Optional field used to specify the last consumed Message index for the
+ /// Channel for this Member.
+ /// Optional ISO8601 time indicating the last datetime the Member consumed a
+ /// Message in the Channel.
+ /// The optional ISO8601 time specifying the datetime the Members should be set as being
+ /// created.
+ /// The optional ISO8601 time specifying the datetime the Member should be set as having
+ /// been last updated.
/// Client to make requests to Twilio
/// A single instance of Member
public static MemberResource Update(string pathServiceSid,
@@ -489,11 +493,15 @@ public static MemberResource Update(string pathServiceSid,
/// The service_sid
/// The channel_sid
/// The sid
- /// The role_sid
- /// The last_consumed_message_index
- /// The last_consumption_timestamp
- /// The date_created
- /// The date_updated
+ /// The role to be assigned to this member.
+ /// Optional field used to specify the last consumed Message index for the
+ /// Channel for this Member.
+ /// Optional ISO8601 time indicating the last datetime the Member consumed a
+ /// Message in the Channel.
+ /// The optional ISO8601 time specifying the datetime the Members should be set as being
+ /// created.
+ /// The optional ISO8601 time specifying the datetime the Member should be set as having
+ /// been last updated.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Member
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -530,57 +538,57 @@ public static MemberResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this member.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The channel_sid
+ /// The unique id of the Channel for this member.
///
[JsonProperty("channel_sid")]
public string ChannelSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this member belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
[JsonProperty("identity")]
public string Identity { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
[JsonProperty("role_sid")]
public string RoleSid { get; private set; }
///
- /// The last_consumed_message_index
+ /// An Integer representing index of the last Message this Member has read within this Channel
///
[JsonProperty("last_consumed_message_index")]
public int? LastConsumedMessageIndex { get; private set; }
///
- /// The last_consumption_timestamp
+ /// An ISO8601 based timestamp string representing the datetime of the last Message read event for this Member within this Channel
///
[JsonProperty("last_consumption_timestamp")]
public DateTime? LastConsumptionTimestamp { get; private set; }
///
- /// The url
+ /// An absolute URL for this member.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.cs
index 6a264e026..1186eb523 100644
--- a/src/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.cs
@@ -164,7 +164,7 @@ public class ReadMessageOptions : ReadOptions
///
public string PathChannelSid { get; }
///
- /// The order
+ /// Optional.
///
public MessageResource.OrderTypeEnum Order { get; set; }
@@ -258,23 +258,23 @@ public class UpdateMessageOptions : IOptions
///
public string PathSid { get; }
///
- /// The body
+ /// The optional message body string.
///
public string Body { get; set; }
///
- /// The attributes
+ /// The optional attributes metadata field you can use to store any data you wish.
///
public string Attributes { get; set; }
///
- /// The date_created
+ /// The optional ISO8601 time specifying the datetime the Message should be set as being created.
///
public DateTime? DateCreated { get; set; }
///
- /// The date_updated
+ /// The optional ISO8601 time specifying the datetime the Message should be set as having been last updated.
///
public DateTime? DateUpdated { get; set; }
///
- /// The last_updated_by
+ /// Optional field to specify the Identity of the User that last updated the Message
///
public string LastUpdatedBy { get; set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/MessageResource.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/MessageResource.cs
index d18c7bcd6..69d77a9a8 100644
--- a/src/Twilio/Rest/Chat/V2/Service/Channel/MessageResource.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/Channel/MessageResource.cs
@@ -259,7 +259,7 @@ public static async System.Threading.Tasks.Task> Re
///
/// The service_sid
/// The channel_sid
- /// The order
+ /// Optional.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -281,7 +281,7 @@ public static ResourceSet Read(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The order
+ /// Optional.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -479,11 +479,14 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
/// The service_sid
/// The channel_sid
/// The sid
- /// The body
- /// The attributes
- /// The date_created
- /// The date_updated
- /// The last_updated_by
+ /// The optional message body string.
+ /// The optional attributes metadata field you can use to store any data you wish.
+ /// The optional ISO8601 time specifying the datetime the Message should be set as being
+ /// created.
+ /// The optional ISO8601 time specifying the datetime the Message should be set as having
+ /// been last updated.
+ /// Optional field to specify the Identity of the User that last updated the Message
+ ///
/// Client to make requests to Twilio
/// A single instance of Message
public static MessageResource Update(string pathServiceSid,
@@ -507,11 +510,14 @@ public static MessageResource Update(string pathServiceSid,
/// The service_sid
/// The channel_sid
/// The sid
- /// The body
- /// The attributes
- /// The date_created
- /// The date_updated
- /// The last_updated_by
+ /// The optional message body string.
+ /// The optional attributes metadata field you can use to store any data you wish.
+ /// The optional ISO8601 time specifying the datetime the Message should be set as being
+ /// created.
+ /// The optional ISO8601 time specifying the datetime the Message should be set as having
+ /// been last updated.
+ /// Optional field to specify the Identity of the User that last updated the Message
+ ///
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Message
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -548,27 +554,27 @@ public static MessageResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this message.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The attributes
+ /// An optional string metadata field you can use to store any data you wish.
///
[JsonProperty("attributes")]
public string Attributes { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this message belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The to
+ /// The unique id of the Channel this message was sent to.
///
[JsonProperty("to")]
public string To { get; private set; }
@@ -578,52 +584,52 @@ public static MessageResource FromJson(string json)
[JsonProperty("channel_sid")]
public string ChannelSid { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The last_updated_by
+ /// Optional field to specify the Identity of the User that last updated the Message
///
[JsonProperty("last_updated_by")]
public string LastUpdatedBy { get; private set; }
///
- /// The was_edited
+ /// true if the message has been updated since it was created.
///
[JsonProperty("was_edited")]
public bool? WasEdited { get; private set; }
///
- /// The from
+ /// The identity of the message's author.
///
[JsonProperty("from")]
public string From { get; private set; }
///
- /// The body
+ /// Optional — the contents of the message.
///
[JsonProperty("body")]
public string Body { get; private set; }
///
- /// The index
+ /// The index of the message within the Channel
///
[JsonProperty("index")]
public int? Index { get; private set; }
///
- /// The type
+ /// Message type.
///
[JsonProperty("type")]
public string Type { get; private set; }
///
- /// The media
+ /// Optional — if a Media resource instance is attached to the Message, this will contain the Media object for the attached Media.
///
[JsonProperty("media")]
public object Media { get; private set; }
///
- /// The url
+ /// An absolute URL for this message.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.cs
new file mode 100644
index 000000000..858483911
--- /dev/null
+++ b/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.cs
@@ -0,0 +1,336 @@
+/// This code was generated by
+/// \ / _ _ _| _ _
+/// | (_)\/(_)(_|\/| |(/_ v1.0.0
+/// / /
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Twilio.Base;
+using Twilio.Converters;
+
+namespace Twilio.Rest.Chat.V2.Service.Channel
+{
+
+ ///
+ /// ReadWebhookOptions
+ ///
+ public class ReadWebhookOptions : ReadOptions
+ {
+ ///
+ /// The service_sid
+ ///
+ public string PathServiceSid { get; }
+ ///
+ /// The channel_sid
+ ///
+ public string PathChannelSid { get; }
+
+ ///
+ /// Construct a new ReadWebhookOptions
+ ///
+ /// The service_sid
+ /// The channel_sid
+ public ReadWebhookOptions(string pathServiceSid, string pathChannelSid)
+ {
+ PathServiceSid = pathServiceSid;
+ PathChannelSid = pathChannelSid;
+ }
+
+ ///
+ /// Generate the necessary parameters
+ ///
+ public override List> GetParams()
+ {
+ var p = new List>();
+ if (PageSize != null)
+ {
+ p.Add(new KeyValuePair("PageSize", PageSize.ToString()));
+ }
+
+ return p;
+ }
+ }
+
+ ///
+ /// FetchWebhookOptions
+ ///
+ public class FetchWebhookOptions : IOptions
+ {
+ ///
+ /// The service_sid
+ ///
+ public string PathServiceSid { get; }
+ ///
+ /// The channel_sid
+ ///
+ public string PathChannelSid { get; }
+ ///
+ /// The sid
+ ///
+ public string PathSid { get; }
+
+ ///
+ /// Construct a new FetchWebhookOptions
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The sid
+ public FetchWebhookOptions(string pathServiceSid, string pathChannelSid, string pathSid)
+ {
+ PathServiceSid = pathServiceSid;
+ PathChannelSid = pathChannelSid;
+ PathSid = pathSid;
+ }
+
+ ///
+ /// Generate the necessary parameters
+ ///
+ public List> GetParams()
+ {
+ var p = new List>();
+ return p;
+ }
+ }
+
+ ///
+ /// CreateWebhookOptions
+ ///
+ public class CreateWebhookOptions : IOptions
+ {
+ ///
+ /// The service_sid
+ ///
+ public string PathServiceSid { get; }
+ ///
+ /// The channel_sid
+ ///
+ public string PathChannelSid { get; }
+ ///
+ /// The type
+ ///
+ public WebhookResource.TypeEnum Type { get; }
+ ///
+ /// The configuration.url
+ ///
+ public string ConfigurationUrl { get; set; }
+ ///
+ /// The configuration.method
+ ///
+ public WebhookResource.MethodEnum ConfigurationMethod { get; set; }
+ ///
+ /// The configuration.filters
+ ///
+ public List ConfigurationFilters { get; set; }
+ ///
+ /// The configuration.triggers
+ ///
+ public List ConfigurationTriggers { get; set; }
+ ///
+ /// The configuration.flow_sid
+ ///
+ public string ConfigurationFlowSid { get; set; }
+ ///
+ /// The configuration.retry_count
+ ///
+ public int? ConfigurationRetryCount { get; set; }
+
+ ///
+ /// Construct a new CreateWebhookOptions
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The type
+ public CreateWebhookOptions(string pathServiceSid, string pathChannelSid, WebhookResource.TypeEnum type)
+ {
+ PathServiceSid = pathServiceSid;
+ PathChannelSid = pathChannelSid;
+ Type = type;
+ ConfigurationFilters = new List();
+ ConfigurationTriggers = new List();
+ }
+
+ ///
+ /// Generate the necessary parameters
+ ///
+ public List> GetParams()
+ {
+ var p = new List>();
+ if (Type != null)
+ {
+ p.Add(new KeyValuePair("Type", Type.ToString()));
+ }
+
+ if (ConfigurationUrl != null)
+ {
+ p.Add(new KeyValuePair("Configuration.Url", ConfigurationUrl));
+ }
+
+ if (ConfigurationMethod != null)
+ {
+ p.Add(new KeyValuePair("Configuration.Method", ConfigurationMethod.ToString()));
+ }
+
+ if (ConfigurationFilters != null)
+ {
+ p.AddRange(ConfigurationFilters.Select(prop => new KeyValuePair("Configuration.Filters", prop)));
+ }
+
+ if (ConfigurationTriggers != null)
+ {
+ p.AddRange(ConfigurationTriggers.Select(prop => new KeyValuePair("Configuration.Triggers", prop)));
+ }
+
+ if (ConfigurationFlowSid != null)
+ {
+ p.Add(new KeyValuePair("Configuration.FlowSid", ConfigurationFlowSid.ToString()));
+ }
+
+ if (ConfigurationRetryCount != null)
+ {
+ p.Add(new KeyValuePair("Configuration.RetryCount", ConfigurationRetryCount.Value.ToString()));
+ }
+
+ return p;
+ }
+ }
+
+ ///
+ /// UpdateWebhookOptions
+ ///
+ public class UpdateWebhookOptions : IOptions
+ {
+ ///
+ /// The service_sid
+ ///
+ public string PathServiceSid { get; }
+ ///
+ /// The channel_sid
+ ///
+ public string PathChannelSid { get; }
+ ///
+ /// The sid
+ ///
+ public string PathSid { get; }
+ ///
+ /// The configuration.url
+ ///
+ public string ConfigurationUrl { get; set; }
+ ///
+ /// The configuration.method
+ ///
+ public WebhookResource.MethodEnum ConfigurationMethod { get; set; }
+ ///
+ /// The configuration.filters
+ ///
+ public List ConfigurationFilters { get; set; }
+ ///
+ /// The configuration.triggers
+ ///
+ public List ConfigurationTriggers { get; set; }
+ ///
+ /// The configuration.flow_sid
+ ///
+ public string ConfigurationFlowSid { get; set; }
+ ///
+ /// The configuration.retry_count
+ ///
+ public int? ConfigurationRetryCount { get; set; }
+
+ ///
+ /// Construct a new UpdateWebhookOptions
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The sid
+ public UpdateWebhookOptions(string pathServiceSid, string pathChannelSid, string pathSid)
+ {
+ PathServiceSid = pathServiceSid;
+ PathChannelSid = pathChannelSid;
+ PathSid = pathSid;
+ ConfigurationFilters = new List();
+ ConfigurationTriggers = new List();
+ }
+
+ ///
+ /// Generate the necessary parameters
+ ///
+ public List> GetParams()
+ {
+ var p = new List>();
+ if (ConfigurationUrl != null)
+ {
+ p.Add(new KeyValuePair("Configuration.Url", ConfigurationUrl));
+ }
+
+ if (ConfigurationMethod != null)
+ {
+ p.Add(new KeyValuePair("Configuration.Method", ConfigurationMethod.ToString()));
+ }
+
+ if (ConfigurationFilters != null)
+ {
+ p.AddRange(ConfigurationFilters.Select(prop => new KeyValuePair("Configuration.Filters", prop)));
+ }
+
+ if (ConfigurationTriggers != null)
+ {
+ p.AddRange(ConfigurationTriggers.Select(prop => new KeyValuePair("Configuration.Triggers", prop)));
+ }
+
+ if (ConfigurationFlowSid != null)
+ {
+ p.Add(new KeyValuePair("Configuration.FlowSid", ConfigurationFlowSid.ToString()));
+ }
+
+ if (ConfigurationRetryCount != null)
+ {
+ p.Add(new KeyValuePair("Configuration.RetryCount", ConfigurationRetryCount.Value.ToString()));
+ }
+
+ return p;
+ }
+ }
+
+ ///
+ /// DeleteWebhookOptions
+ ///
+ public class DeleteWebhookOptions : IOptions
+ {
+ ///
+ /// The service_sid
+ ///
+ public string PathServiceSid { get; }
+ ///
+ /// The channel_sid
+ ///
+ public string PathChannelSid { get; }
+ ///
+ /// The sid
+ ///
+ public string PathSid { get; }
+
+ ///
+ /// Construct a new DeleteWebhookOptions
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The sid
+ public DeleteWebhookOptions(string pathServiceSid, string pathChannelSid, string pathSid)
+ {
+ PathServiceSid = pathServiceSid;
+ PathChannelSid = pathChannelSid;
+ PathSid = pathSid;
+ }
+
+ ///
+ /// Generate the necessary parameters
+ ///
+ public List> GetParams()
+ {
+ var p = new List>();
+ return p;
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookResource.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookResource.cs
new file mode 100644
index 000000000..30b29693a
--- /dev/null
+++ b/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookResource.cs
@@ -0,0 +1,616 @@
+/// This code was generated by
+/// \ / _ _ _| _ _
+/// | (_)\/(_)(_|\/| |(/_ v1.0.0
+/// / /
+///
+/// WebhookResource
+///
+
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using Twilio.Base;
+using Twilio.Clients;
+using Twilio.Converters;
+using Twilio.Exceptions;
+using Twilio.Http;
+using Twilio.Types;
+
+namespace Twilio.Rest.Chat.V2.Service.Channel
+{
+
+ public class WebhookResource : Resource
+ {
+ public sealed class TypeEnum : StringEnum
+ {
+ private TypeEnum(string value) : base(value) {}
+ public TypeEnum() {}
+ public static implicit operator TypeEnum(string value)
+ {
+ return new TypeEnum(value);
+ }
+
+ public static readonly TypeEnum Webhook = new TypeEnum("webhook");
+ public static readonly TypeEnum Trigger = new TypeEnum("trigger");
+ public static readonly TypeEnum Studio = new TypeEnum("studio");
+ }
+
+ public sealed class MethodEnum : StringEnum
+ {
+ private MethodEnum(string value) : base(value) {}
+ public MethodEnum() {}
+ public static implicit operator MethodEnum(string value)
+ {
+ return new MethodEnum(value);
+ }
+
+ public static readonly MethodEnum Get = new MethodEnum("GET");
+ public static readonly MethodEnum Post = new MethodEnum("POST");
+ }
+
+ private static Request BuildReadRequest(ReadWebhookOptions options, ITwilioRestClient client)
+ {
+ return new Request(
+ HttpMethod.Get,
+ Rest.Domain.Chat,
+ "/v2/Services/" + options.PathServiceSid + "/Channels/" + options.PathChannelSid + "/Webhooks",
+ client.Region,
+ queryParams: options.GetParams()
+ );
+ }
+
+ ///
+ /// read
+ ///
+ /// Read Webhook parameters
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static ResourceSet Read(ReadWebhookOptions options, ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = client.Request(BuildReadRequest(options, client));
+
+ var page = Page.FromJson("webhooks", response.Content);
+ return new ResourceSet(page, options, client);
+ }
+
+ #if !NET35
+ ///
+ /// read
+ ///
+ /// Read Webhook parameters
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task> ReadAsync(ReadWebhookOptions options,
+ ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = await client.RequestAsync(BuildReadRequest(options, client));
+
+ var page = Page.FromJson("webhooks", response.Content);
+ return new ResourceSet(page, options, client);
+ }
+ #endif
+
+ ///
+ /// read
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// Page size
+ /// Record limit
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static ResourceSet Read(string pathServiceSid,
+ string pathChannelSid,
+ int? pageSize = null,
+ long? limit = null,
+ ITwilioRestClient client = null)
+ {
+ var options = new ReadWebhookOptions(pathServiceSid, pathChannelSid){PageSize = pageSize, Limit = limit};
+ return Read(options, client);
+ }
+
+ #if !NET35
+ ///
+ /// read
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// Page size
+ /// Record limit
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task> ReadAsync(string pathServiceSid,
+ string pathChannelSid,
+ int? pageSize = null,
+ long? limit = null,
+ ITwilioRestClient client = null)
+ {
+ var options = new ReadWebhookOptions(pathServiceSid, pathChannelSid){PageSize = pageSize, Limit = limit};
+ return await ReadAsync(options, client);
+ }
+ #endif
+
+ ///
+ /// Fetch the target page of records
+ ///
+ /// API-generated URL for the requested results page
+ /// Client to make requests to Twilio
+ /// The target page of records
+ public static Page GetPage(string targetUrl, ITwilioRestClient client)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+
+ var request = new Request(
+ HttpMethod.Get,
+ targetUrl
+ );
+
+ var response = client.Request(request);
+ return Page.FromJson("webhooks", response.Content);
+ }
+
+ ///
+ /// Fetch the next page of records
+ ///
+ /// current page of records
+ /// Client to make requests to Twilio
+ /// The next page of records
+ public static Page NextPage(Page page, ITwilioRestClient client)
+ {
+ var request = new Request(
+ HttpMethod.Get,
+ page.GetNextPageUrl(
+ Rest.Domain.Chat,
+ client.Region
+ )
+ );
+
+ var response = client.Request(request);
+ return Page.FromJson("webhooks", response.Content);
+ }
+
+ ///
+ /// Fetch the previous page of records
+ ///
+ /// current page of records
+ /// Client to make requests to Twilio
+ /// The previous page of records
+ public static Page PreviousPage(Page page, ITwilioRestClient client)
+ {
+ var request = new Request(
+ HttpMethod.Get,
+ page.GetPreviousPageUrl(
+ Rest.Domain.Chat,
+ client.Region
+ )
+ );
+
+ var response = client.Request(request);
+ return Page.FromJson("webhooks", response.Content);
+ }
+
+ private static Request BuildFetchRequest(FetchWebhookOptions options, ITwilioRestClient client)
+ {
+ return new Request(
+ HttpMethod.Get,
+ Rest.Domain.Chat,
+ "/v2/Services/" + options.PathServiceSid + "/Channels/" + options.PathChannelSid + "/Webhooks/" + options.PathSid + "",
+ client.Region,
+ queryParams: options.GetParams()
+ );
+ }
+
+ ///
+ /// fetch
+ ///
+ /// Fetch Webhook parameters
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static WebhookResource Fetch(FetchWebhookOptions options, ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = client.Request(BuildFetchRequest(options, client));
+ return FromJson(response.Content);
+ }
+
+ #if !NET35
+ ///
+ /// fetch
+ ///
+ /// Fetch Webhook parameters
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task FetchAsync(FetchWebhookOptions options,
+ ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = await client.RequestAsync(BuildFetchRequest(options, client));
+ return FromJson(response.Content);
+ }
+ #endif
+
+ ///
+ /// fetch
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The sid
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static WebhookResource Fetch(string pathServiceSid,
+ string pathChannelSid,
+ string pathSid,
+ ITwilioRestClient client = null)
+ {
+ var options = new FetchWebhookOptions(pathServiceSid, pathChannelSid, pathSid);
+ return Fetch(options, client);
+ }
+
+ #if !NET35
+ ///
+ /// fetch
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The sid
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task FetchAsync(string pathServiceSid,
+ string pathChannelSid,
+ string pathSid,
+ ITwilioRestClient client = null)
+ {
+ var options = new FetchWebhookOptions(pathServiceSid, pathChannelSid, pathSid);
+ return await FetchAsync(options, client);
+ }
+ #endif
+
+ private static Request BuildCreateRequest(CreateWebhookOptions options, ITwilioRestClient client)
+ {
+ return new Request(
+ HttpMethod.Post,
+ Rest.Domain.Chat,
+ "/v2/Services/" + options.PathServiceSid + "/Channels/" + options.PathChannelSid + "/Webhooks",
+ client.Region,
+ postParams: options.GetParams()
+ );
+ }
+
+ ///
+ /// create
+ ///
+ /// Create Webhook parameters
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static WebhookResource Create(CreateWebhookOptions options, ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = client.Request(BuildCreateRequest(options, client));
+ return FromJson(response.Content);
+ }
+
+ #if !NET35
+ ///
+ /// create
+ ///
+ /// Create Webhook parameters
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task CreateAsync(CreateWebhookOptions options,
+ ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = await client.RequestAsync(BuildCreateRequest(options, client));
+ return FromJson(response.Content);
+ }
+ #endif
+
+ ///
+ /// create
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The type
+ /// The configuration.url
+ /// The configuration.method
+ /// The configuration.filters
+ /// The configuration.triggers
+ /// The configuration.flow_sid
+ /// The configuration.retry_count
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static WebhookResource Create(string pathServiceSid,
+ string pathChannelSid,
+ WebhookResource.TypeEnum type,
+ string configurationUrl = null,
+ WebhookResource.MethodEnum configurationMethod = null,
+ List configurationFilters = null,
+ List configurationTriggers = null,
+ string configurationFlowSid = null,
+ int? configurationRetryCount = null,
+ ITwilioRestClient client = null)
+ {
+ var options = new CreateWebhookOptions(pathServiceSid, pathChannelSid, type){ConfigurationUrl = configurationUrl, ConfigurationMethod = configurationMethod, ConfigurationFilters = configurationFilters, ConfigurationTriggers = configurationTriggers, ConfigurationFlowSid = configurationFlowSid, ConfigurationRetryCount = configurationRetryCount};
+ return Create(options, client);
+ }
+
+ #if !NET35
+ ///
+ /// create
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The type
+ /// The configuration.url
+ /// The configuration.method
+ /// The configuration.filters
+ /// The configuration.triggers
+ /// The configuration.flow_sid
+ /// The configuration.retry_count
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
+ string pathChannelSid,
+ WebhookResource.TypeEnum type,
+ string configurationUrl = null,
+ WebhookResource.MethodEnum configurationMethod = null,
+ List configurationFilters = null,
+ List configurationTriggers = null,
+ string configurationFlowSid = null,
+ int? configurationRetryCount = null,
+ ITwilioRestClient client = null)
+ {
+ var options = new CreateWebhookOptions(pathServiceSid, pathChannelSid, type){ConfigurationUrl = configurationUrl, ConfigurationMethod = configurationMethod, ConfigurationFilters = configurationFilters, ConfigurationTriggers = configurationTriggers, ConfigurationFlowSid = configurationFlowSid, ConfigurationRetryCount = configurationRetryCount};
+ return await CreateAsync(options, client);
+ }
+ #endif
+
+ private static Request BuildUpdateRequest(UpdateWebhookOptions options, ITwilioRestClient client)
+ {
+ return new Request(
+ HttpMethod.Post,
+ Rest.Domain.Chat,
+ "/v2/Services/" + options.PathServiceSid + "/Channels/" + options.PathChannelSid + "/Webhooks/" + options.PathSid + "",
+ client.Region,
+ postParams: options.GetParams()
+ );
+ }
+
+ ///
+ /// update
+ ///
+ /// Update Webhook parameters
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static WebhookResource Update(UpdateWebhookOptions options, ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = client.Request(BuildUpdateRequest(options, client));
+ return FromJson(response.Content);
+ }
+
+ #if !NET35
+ ///
+ /// update
+ ///
+ /// Update Webhook parameters
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task UpdateAsync(UpdateWebhookOptions options,
+ ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = await client.RequestAsync(BuildUpdateRequest(options, client));
+ return FromJson(response.Content);
+ }
+ #endif
+
+ ///
+ /// update
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The sid
+ /// The configuration.url
+ /// The configuration.method
+ /// The configuration.filters
+ /// The configuration.triggers
+ /// The configuration.flow_sid
+ /// The configuration.retry_count
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static WebhookResource Update(string pathServiceSid,
+ string pathChannelSid,
+ string pathSid,
+ string configurationUrl = null,
+ WebhookResource.MethodEnum configurationMethod = null,
+ List configurationFilters = null,
+ List configurationTriggers = null,
+ string configurationFlowSid = null,
+ int? configurationRetryCount = null,
+ ITwilioRestClient client = null)
+ {
+ var options = new UpdateWebhookOptions(pathServiceSid, pathChannelSid, pathSid){ConfigurationUrl = configurationUrl, ConfigurationMethod = configurationMethod, ConfigurationFilters = configurationFilters, ConfigurationTriggers = configurationTriggers, ConfigurationFlowSid = configurationFlowSid, ConfigurationRetryCount = configurationRetryCount};
+ return Update(options, client);
+ }
+
+ #if !NET35
+ ///
+ /// update
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The sid
+ /// The configuration.url
+ /// The configuration.method
+ /// The configuration.filters
+ /// The configuration.triggers
+ /// The configuration.flow_sid
+ /// The configuration.retry_count
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
+ string pathChannelSid,
+ string pathSid,
+ string configurationUrl = null,
+ WebhookResource.MethodEnum configurationMethod = null,
+ List configurationFilters = null,
+ List configurationTriggers = null,
+ string configurationFlowSid = null,
+ int? configurationRetryCount = null,
+ ITwilioRestClient client = null)
+ {
+ var options = new UpdateWebhookOptions(pathServiceSid, pathChannelSid, pathSid){ConfigurationUrl = configurationUrl, ConfigurationMethod = configurationMethod, ConfigurationFilters = configurationFilters, ConfigurationTriggers = configurationTriggers, ConfigurationFlowSid = configurationFlowSid, ConfigurationRetryCount = configurationRetryCount};
+ return await UpdateAsync(options, client);
+ }
+ #endif
+
+ private static Request BuildDeleteRequest(DeleteWebhookOptions options, ITwilioRestClient client)
+ {
+ return new Request(
+ HttpMethod.Delete,
+ Rest.Domain.Chat,
+ "/v2/Services/" + options.PathServiceSid + "/Channels/" + options.PathChannelSid + "/Webhooks/" + options.PathSid + "",
+ client.Region,
+ queryParams: options.GetParams()
+ );
+ }
+
+ ///
+ /// delete
+ ///
+ /// Delete Webhook parameters
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static bool Delete(DeleteWebhookOptions options, ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = client.Request(BuildDeleteRequest(options, client));
+ return response.StatusCode == System.Net.HttpStatusCode.NoContent;
+ }
+
+ #if !NET35
+ ///
+ /// delete
+ ///
+ /// Delete Webhook parameters
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task DeleteAsync(DeleteWebhookOptions options,
+ ITwilioRestClient client = null)
+ {
+ client = client ?? TwilioClient.GetRestClient();
+ var response = await client.RequestAsync(BuildDeleteRequest(options, client));
+ return response.StatusCode == System.Net.HttpStatusCode.NoContent;
+ }
+ #endif
+
+ ///
+ /// delete
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The sid
+ /// Client to make requests to Twilio
+ /// A single instance of Webhook
+ public static bool Delete(string pathServiceSid,
+ string pathChannelSid,
+ string pathSid,
+ ITwilioRestClient client = null)
+ {
+ var options = new DeleteWebhookOptions(pathServiceSid, pathChannelSid, pathSid);
+ return Delete(options, client);
+ }
+
+ #if !NET35
+ ///
+ /// delete
+ ///
+ /// The service_sid
+ /// The channel_sid
+ /// The sid
+ /// Client to make requests to Twilio
+ /// Task that resolves to A single instance of Webhook
+ public static async System.Threading.Tasks.Task DeleteAsync(string pathServiceSid,
+ string pathChannelSid,
+ string pathSid,
+ ITwilioRestClient client = null)
+ {
+ var options = new DeleteWebhookOptions(pathServiceSid, pathChannelSid, pathSid);
+ return await DeleteAsync(options, client);
+ }
+ #endif
+
+ ///
+ /// Converts a JSON string into a WebhookResource object
+ ///
+ /// Raw JSON string
+ /// WebhookResource object represented by the provided JSON
+ public static WebhookResource FromJson(string json)
+ {
+ // Convert all checked exceptions to Runtime
+ try
+ {
+ return JsonConvert.DeserializeObject(json);
+ }
+ catch (JsonException e)
+ {
+ throw new ApiException(e.Message, e);
+ }
+ }
+
+ ///
+ /// The sid
+ ///
+ [JsonProperty("sid")]
+ public string Sid { get; private set; }
+ ///
+ /// The account_sid
+ ///
+ [JsonProperty("account_sid")]
+ public string AccountSid { get; private set; }
+ ///
+ /// The service_sid
+ ///
+ [JsonProperty("service_sid")]
+ public string ServiceSid { get; private set; }
+ ///
+ /// The channel_sid
+ ///
+ [JsonProperty("channel_sid")]
+ public string ChannelSid { get; private set; }
+ ///
+ /// The type
+ ///
+ [JsonProperty("type")]
+ public string Type { get; private set; }
+ ///
+ /// The url
+ ///
+ [JsonProperty("url")]
+ public Uri Url { get; private set; }
+ ///
+ /// The configuration
+ ///
+ [JsonProperty("configuration")]
+ public object Configuration { get; private set; }
+ ///
+ /// The date_created
+ ///
+ [JsonProperty("date_created")]
+ public DateTime? DateCreated { get; private set; }
+ ///
+ /// The date_updated
+ ///
+ [JsonProperty("date_updated")]
+ public DateTime? DateUpdated { get; private set; }
+
+ private WebhookResource()
+ {
+
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/src/Twilio/Rest/Chat/V2/Service/ChannelOptions.cs b/src/Twilio/Rest/Chat/V2/Service/ChannelOptions.cs
index 95fabd183..43c76f885 100644
--- a/src/Twilio/Rest/Chat/V2/Service/ChannelOptions.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/ChannelOptions.cs
@@ -92,31 +92,31 @@ public class CreateChannelOptions : IOptions
///
public string PathServiceSid { get; }
///
- /// The friendly_name
+ /// A human-readable name for the Channel.
///
public string FriendlyName { get; set; }
///
- /// The unique_name
+ /// A unique, addressable name for the Channel.
///
public string UniqueName { get; set; }
///
- /// The attributes
+ /// An optional metadata field you can use to store any data you wish.
///
public string Attributes { get; set; }
///
- /// The type
+ /// The visibility of the channel - public or private.
///
public ChannelResource.ChannelTypeEnum Type { get; set; }
///
- /// The date_created
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as being created.
///
public DateTime? DateCreated { get; set; }
///
- /// The date_updated
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as having been last updated.
///
public DateTime? DateUpdated { get; set; }
///
- /// The created_by
+ /// Optional field to specify the Identity of the User that created the Channel.
///
public string CreatedBy { get; set; }
@@ -232,27 +232,27 @@ public class UpdateChannelOptions : IOptions
///
public string PathSid { get; }
///
- /// The friendly_name
+ /// A human-readable name for the Channel.
///
public string FriendlyName { get; set; }
///
- /// The unique_name
+ /// A unique, addressable name for the Channel.
///
public string UniqueName { get; set; }
///
- /// The attributes
+ /// An optional metadata field you can use to store any data you wish.
///
public string Attributes { get; set; }
///
- /// The date_created
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as being created.
///
public DateTime? DateCreated { get; set; }
///
- /// The date_updated
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as having been last updated.
///
public DateTime? DateUpdated { get; set; }
///
- /// The created_by
+ /// Optional field to specify the Identity of the User that created the Channel.
///
public string CreatedBy { get; set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/ChannelResource.cs b/src/Twilio/Rest/Chat/V2/Service/ChannelResource.cs
index 819f2028c..75fec6c86 100644
--- a/src/Twilio/Rest/Chat/V2/Service/ChannelResource.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/ChannelResource.cs
@@ -218,13 +218,15 @@ public static async System.Threading.Tasks.Task CreateAsync(Cre
/// create
///
/// The service_sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
- /// The type
- /// The date_created
- /// The date_updated
- /// The created_by
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
+ /// The visibility of the channel - public or private.
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as being
+ /// created.
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as having
+ /// been last updated.
+ /// Optional field to specify the Identity of the User that created the Channel.
/// Client to make requests to Twilio
/// A single instance of Channel
public static ChannelResource Create(string pathServiceSid,
@@ -246,13 +248,15 @@ public static ChannelResource Create(string pathServiceSid,
/// create
///
/// The service_sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
- /// The type
- /// The date_created
- /// The date_updated
- /// The created_by
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
+ /// The visibility of the channel - public or private.
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as being
+ /// created.
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as having
+ /// been last updated.
+ /// Optional field to specify the Identity of the User that created the Channel.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Channel
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -458,12 +462,14 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
///
/// The service_sid
/// The sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
- /// The date_created
- /// The date_updated
- /// The created_by
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as being
+ /// created.
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as having
+ /// been last updated.
+ /// Optional field to specify the Identity of the User that created the Channel.
/// Client to make requests to Twilio
/// A single instance of Channel
public static ChannelResource Update(string pathServiceSid,
@@ -486,12 +492,14 @@ public static ChannelResource Update(string pathServiceSid,
///
/// The service_sid
/// The sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
- /// The date_created
- /// The date_updated
- /// The created_by
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as being
+ /// created.
+ /// The optional ISO8601 time specifying the datetime the Channel should be set as having
+ /// been last updated.
+ /// Optional field to specify the Identity of the User that created the Channel.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Channel
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -528,73 +536,73 @@ public static ChannelResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this channel.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this channel belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this channel.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The unique_name
+ /// The unique, addressable name of this channel.
///
[JsonProperty("unique_name")]
public string UniqueName { get; private set; }
///
- /// The attributes
+ /// An optional string metadata field you can use to store any data you wish.
///
[JsonProperty("attributes")]
public string Attributes { get; private set; }
///
- /// The type
+ /// The visibility of this channel - either public or private
///
[JsonProperty("type")]
[JsonConverter(typeof(StringEnumConverter))]
public ChannelResource.ChannelTypeEnum Type { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The created_by
+ /// Identity of the channel's creator.
///
[JsonProperty("created_by")]
public string CreatedBy { get; private set; }
///
- /// The members_count
+ /// The number of Members in the Channel
///
[JsonProperty("members_count")]
public int? MembersCount { get; private set; }
///
- /// The messages_count
+ /// The number of Messages in the Channel
///
[JsonProperty("messages_count")]
public int? MessagesCount { get; private set; }
///
- /// The url
+ /// An absolute URL for this channel.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
///
- /// The links
+ /// Absolute URLs to access the Members, Messages , Invites and, if it exists the last Message for this Channel.
///
[JsonProperty("links")]
public Dictionary Links { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/RoleOptions.cs b/src/Twilio/Rest/Chat/V2/Service/RoleOptions.cs
index d2e55a262..e9e1071a7 100644
--- a/src/Twilio/Rest/Chat/V2/Service/RoleOptions.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/RoleOptions.cs
@@ -92,15 +92,15 @@ public class CreateRoleOptions : IOptions
///
public string PathServiceSid { get; }
///
- /// The friendly_name
+ /// The human-readable name of this role.
///
public string FriendlyName { get; }
///
- /// The type
+ /// What kind of role this is.
///
public RoleResource.RoleTypeEnum Type { get; }
///
- /// The permission
+ /// A permission this role should have.
///
public List Permission { get; }
@@ -108,9 +108,9 @@ public class CreateRoleOptions : IOptions
/// Construct a new CreateRoleOptions
///
/// The service_sid
- /// The friendly_name
- /// The type
- /// The permission
+ /// The human-readable name of this role.
+ /// What kind of role this is.
+ /// A permission this role should have.
public CreateRoleOptions(string pathServiceSid,
string friendlyName,
RoleResource.RoleTypeEnum type,
@@ -195,7 +195,7 @@ public class UpdateRoleOptions : IOptions
///
public string PathSid { get; }
///
- /// The permission
+ /// A permission this role should have.
///
public List Permission { get; }
@@ -204,7 +204,7 @@ public class UpdateRoleOptions : IOptions
///
/// The service_sid
/// The sid
- /// The permission
+ /// A permission this role should have.
public UpdateRoleOptions(string pathServiceSid, string pathSid, List permission)
{
PathServiceSid = pathServiceSid;
diff --git a/src/Twilio/Rest/Chat/V2/Service/RoleResource.cs b/src/Twilio/Rest/Chat/V2/Service/RoleResource.cs
index ae70adb2f..3da831619 100644
--- a/src/Twilio/Rest/Chat/V2/Service/RoleResource.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/RoleResource.cs
@@ -218,9 +218,9 @@ public static async System.Threading.Tasks.Task CreateAsync(Create
/// create
///
/// The service_sid
- /// The friendly_name
- /// The type
- /// The permission
+ /// The human-readable name of this role.
+ /// What kind of role this is.
+ /// A permission this role should have.
/// Client to make requests to Twilio
/// A single instance of Role
public static RoleResource Create(string pathServiceSid,
@@ -238,9 +238,9 @@ public static RoleResource Create(string pathServiceSid,
/// create
///
/// The service_sid
- /// The friendly_name
- /// The type
- /// The permission
+ /// The human-readable name of this role.
+ /// What kind of role this is.
+ /// A permission this role should have.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Role
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -438,7 +438,7 @@ public static async System.Threading.Tasks.Task UpdateAsync(Update
///
/// The service_sid
/// The sid
- /// The permission
+ /// A permission this role should have.
/// Client to make requests to Twilio
/// A single instance of Role
public static RoleResource Update(string pathServiceSid,
@@ -456,7 +456,7 @@ public static RoleResource Update(string pathServiceSid,
///
/// The service_sid
/// The sid
- /// The permission
+ /// A permission this role should have.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Role
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -488,48 +488,48 @@ public static RoleResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this role.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this role belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this role.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The type
+ /// What kind of role this is.
///
[JsonProperty("type")]
[JsonConverter(typeof(StringEnumConverter))]
public RoleResource.RoleTypeEnum Type { get; private set; }
///
- /// The permissions
+ /// A JSON array of the permissions this role has.
///
[JsonProperty("permissions")]
public List Permissions { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created in ISO 8601 format.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated in ISO 8601 format.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The url
+ /// An absolute URL for this role.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/UserOptions.cs b/src/Twilio/Rest/Chat/V2/Service/UserOptions.cs
index 8fffb852c..0488ff596 100644
--- a/src/Twilio/Rest/Chat/V2/Service/UserOptions.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/UserOptions.cs
@@ -91,19 +91,19 @@ public class CreateUserOptions : IOptions
///
public string PathServiceSid { get; }
///
- /// The identity
+ /// A unique string that identifies the user within this service - often a username or email address.
///
public string Identity { get; }
///
- /// The role_sid
+ /// The unique id of the Role assigned to this user.
///
public string RoleSid { get; set; }
///
- /// The attributes
+ /// An optional string used to contain any metadata or other information for the User.
///
public string Attributes { get; set; }
///
- /// The friendly_name
+ /// An optional human readable string representing the user.
///
public string FriendlyName { get; set; }
@@ -111,7 +111,8 @@ public class CreateUserOptions : IOptions
/// Construct a new CreateUserOptions
///
/// The service_sid
- /// The identity
+ /// A unique string that identifies the user within this service - often a username or email
+ /// address.
public CreateUserOptions(string pathServiceSid, string identity)
{
PathServiceSid = pathServiceSid;
@@ -196,15 +197,15 @@ public class UpdateUserOptions : IOptions
///
public string PathSid { get; }
///
- /// The role_sid
+ /// The unique id of the [Role][role] assigned to this user.
///
public string RoleSid { get; set; }
///
- /// The attributes
+ /// An optional string used to contain any metadata or other information for the User.
///
public string Attributes { get; set; }
///
- /// The friendly_name
+ /// An optional human readable string representing the user.
///
public string FriendlyName { get; set; }
diff --git a/src/Twilio/Rest/Chat/V2/Service/UserResource.cs b/src/Twilio/Rest/Chat/V2/Service/UserResource.cs
index 6cf9c005f..0a655e3f4 100644
--- a/src/Twilio/Rest/Chat/V2/Service/UserResource.cs
+++ b/src/Twilio/Rest/Chat/V2/Service/UserResource.cs
@@ -204,10 +204,12 @@ public static async System.Threading.Tasks.Task CreateAsync(Create
/// create
///
/// The service_sid
- /// The identity
- /// The role_sid
- /// The attributes
- /// The friendly_name
+ /// A unique string that identifies the user within this service - often a username or email
+ /// address.
+ /// The unique id of the Role assigned to this user.
+ /// An optional string used to contain any metadata or other information for the User.
+ ///
+ /// An optional human readable string representing the user.
/// Client to make requests to Twilio
/// A single instance of User
public static UserResource Create(string pathServiceSid,
@@ -226,10 +228,12 @@ public static UserResource Create(string pathServiceSid,
/// create
///
/// The service_sid
- /// The identity
- /// The role_sid
- /// The attributes
- /// The friendly_name
+ /// A unique string that identifies the user within this service - often a username or email
+ /// address.
+ /// The unique id of the Role assigned to this user.
+ /// An optional string used to contain any metadata or other information for the User.
+ ///
+ /// An optional human readable string representing the user.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of User
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -428,9 +432,10 @@ public static async System.Threading.Tasks.Task UpdateAsync(Update
///
/// The service_sid
/// The sid
- /// The role_sid
- /// The attributes
- /// The friendly_name
+ /// The unique id of the [Role][role] assigned to this user.
+ /// An optional string used to contain any metadata or other information for the User.
+ ///
+ /// An optional human readable string representing the user.
/// Client to make requests to Twilio
/// A single instance of User
public static UserResource Update(string pathServiceSid,
@@ -450,9 +455,10 @@ public static UserResource Update(string pathServiceSid,
///
/// The service_sid
/// The sid
- /// The role_sid
- /// The attributes
- /// The friendly_name
+ /// The unique id of the [Role][role] assigned to this user.
+ /// An optional string used to contain any metadata or other information for the User.
+ ///
+ /// An optional human readable string representing the user.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of User
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -486,62 +492,62 @@ public static UserResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this user.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this user belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The attributes
+ /// An optional string metadata field you can use to store any data you wish.
///
[JsonProperty("attributes")]
public string Attributes { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this user.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The role_sid
+ /// The unique id of the [Role][role] assigned to this user.
///
[JsonProperty("role_sid")]
public string RoleSid { get; private set; }
///
- /// The identity
+ /// A unique string that identifies the user within this service - often a username or email address.
///
[JsonProperty("identity")]
public string Identity { get; private set; }
///
- /// The is_online
+ /// Indicates whether the User is actively connected to the Service instance and online.
///
[JsonProperty("is_online")]
public bool? IsOnline { get; private set; }
///
- /// The is_notifiable
+ /// Indicates whether the User has a potentially valid Push Notification registration for the Service instance.
///
[JsonProperty("is_notifiable")]
public bool? IsNotifiable { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created in ISO 8601 format.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated in ISO 8601 format.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The joined_channels_count
+ /// The number of Channels this User is a Member of.
///
[JsonProperty("joined_channels_count")]
public int? JoinedChannelsCount { get; private set; }
@@ -551,7 +557,7 @@ public static UserResource FromJson(string json)
[JsonProperty("links")]
public Dictionary Links { get; private set; }
///
- /// The url
+ /// An absolute URL for this user.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/Chat/V2/ServiceOptions.cs b/src/Twilio/Rest/Chat/V2/ServiceOptions.cs
index e386e3ad9..aed8f6997 100644
--- a/src/Twilio/Rest/Chat/V2/ServiceOptions.cs
+++ b/src/Twilio/Rest/Chat/V2/ServiceOptions.cs
@@ -76,14 +76,14 @@ public List> GetParams()
public class CreateServiceOptions : IOptions
{
///
- /// The friendly_name
+ /// Human-readable name for this service instance
///
public string FriendlyName { get; }
///
/// Construct a new CreateServiceOptions
///
- /// The friendly_name
+ /// Human-readable name for this service instance
public CreateServiceOptions(string friendlyName)
{
FriendlyName = friendlyName;
@@ -134,7 +134,7 @@ public class UpdateServiceOptions : IOptions
///
public string PathSid { get; }
///
- /// The friendly_name
+ /// Human-readable name for this service instance
///
public string FriendlyName { get; set; }
///
@@ -142,23 +142,23 @@ public class UpdateServiceOptions : IOptions
///
public string DefaultServiceRoleSid { get; set; }
///
- /// The default_channel_role_sid
+ /// Channel role assigned on channel join
///
public string DefaultChannelRoleSid { get; set; }
///
- /// The default_channel_creator_role_sid
+ /// Channel role assigned to creator of channel when joining for first time
///
public string DefaultChannelCreatorRoleSid { get; set; }
///
- /// The read_status_enabled
+ /// true if the member read status feature is enabled, false if not.
///
public bool? ReadStatusEnabled { get; set; }
///
- /// The reachability_enabled
+ /// true if the reachability feature should be enabled.
///
public bool? ReachabilityEnabled { get; set; }
///
- /// The typing_indicator_timeout
+ /// The duration in seconds indicating the timeout after "started typing" event when client should assume that user is not typing anymore even if no "ended typing" message received
///
public int? TypingIndicatorTimeout { get; set; }
///
@@ -218,27 +218,27 @@ public class UpdateServiceOptions : IOptions
///
public string NotificationsInvitedToChannelSound { get; set; }
///
- /// The pre_webhook_url
+ /// The webhook URL for PRE-Event webhooks.
///
public Uri PreWebhookUrl { get; set; }
///
- /// The post_webhook_url
+ /// The webhook URL for POST-Event webhooks.
///
public Uri PostWebhookUrl { get; set; }
///
- /// The webhook_method
+ /// The webhook request format to use.
///
public Twilio.Http.HttpMethod WebhookMethod { get; set; }
///
- /// The webhook_filters
+ /// The list of WebHook events that are enabled for this Service instance.
///
public List WebhookFilters { get; set; }
///
- /// The limits.channel_members
+ /// The maximum number of Members that can be added to Channels within this Service.
///
public int? LimitsChannelMembers { get; set; }
///
- /// The limits.user_channels
+ /// The maximum number of Channels Users can be a Member of within this Service.
///
public int? LimitsUserChannels { get; set; }
///
@@ -246,11 +246,11 @@ public class UpdateServiceOptions : IOptions
///
public string MediaCompatibilityMessage { get; set; }
///
- /// The pre_webhook_retry_count
+ /// Count of times webhook will be retried in case of timeout or 429/503/504 HTTP responses.
///
public int? PreWebhookRetryCount { get; set; }
///
- /// The post_webhook_retry_count
+ /// Count of times webhook will be retried in case of timeout or 429/503/504 HTTP responses.
///
public int? PostWebhookRetryCount { get; set; }
///
diff --git a/src/Twilio/Rest/Chat/V2/ServiceResource.cs b/src/Twilio/Rest/Chat/V2/ServiceResource.cs
index cfe287f8e..501f87bf3 100644
--- a/src/Twilio/Rest/Chat/V2/ServiceResource.cs
+++ b/src/Twilio/Rest/Chat/V2/ServiceResource.cs
@@ -196,7 +196,7 @@ public static async System.Threading.Tasks.Task CreateAsync(Cre
///
/// create
///
- /// The friendly_name
+ /// Human-readable name for this service instance
/// Client to make requests to Twilio
/// A single instance of Service
public static ServiceResource Create(string friendlyName, ITwilioRestClient client = null)
@@ -209,7 +209,7 @@ public static ServiceResource Create(string friendlyName, ITwilioRestClient clie
///
/// create
///
- /// The friendly_name
+ /// Human-readable name for this service instance
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Service
public static async System.Threading.Tasks.Task CreateAsync(string friendlyName,
@@ -399,13 +399,16 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
/// update
///
/// The sid
- /// The friendly_name
+ /// Human-readable name for this service instance
/// The default_service_role_sid
- /// The default_channel_role_sid
- /// The default_channel_creator_role_sid
- /// The read_status_enabled
- /// The reachability_enabled
- /// The typing_indicator_timeout
+ /// Channel role assigned on channel join
+ /// Channel role assigned to creator of channel when joining for first time
+ ///
+ /// true if the member read status feature is enabled, false if not.
+ /// true if the reachability feature should be enabled.
+ /// The duration in seconds indicating the timeout after "started typing" event
+ /// when client should assume that user is not typing anymore even if no "ended typing"
+ /// message received
/// The consumption_report_interval
/// The notifications.new_message.enabled
/// The notifications.new_message.template
@@ -420,15 +423,19 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
/// The notifications.invited_to_channel.enabled
/// The notifications.invited_to_channel.template
/// The notifications.invited_to_channel.sound
- /// The pre_webhook_url
- /// The post_webhook_url
- /// The webhook_method
- /// The webhook_filters
- /// The limits.channel_members
- /// The limits.user_channels
+ /// The webhook URL for PRE-Event webhooks.
+ /// The webhook URL for POST-Event webhooks.
+ /// The webhook request format to use.
+ /// The list of WebHook events that are enabled for this Service instance.
+ /// The maximum number of Members that can be added to Channels within this
+ /// Service.
+ /// The maximum number of Channels Users can be a Member of within this Service.
+ ///
/// The media.compatibility_message
- /// The pre_webhook_retry_count
- /// The post_webhook_retry_count
+ /// Count of times webhook will be retried in case of timeout or 429/503/504 HTTP
+ /// responses.
+ /// Count of times webhook will be retried in case of timeout or 429/503/504 HTTP
+ /// responses.
/// The notifications.log_enabled
/// Client to make requests to Twilio
/// A single instance of Service
@@ -475,13 +482,16 @@ public static ServiceResource Update(string pathSid,
/// update
///
/// The sid
- /// The friendly_name
+ /// Human-readable name for this service instance
/// The default_service_role_sid
- /// The default_channel_role_sid
- /// The default_channel_creator_role_sid
- /// The read_status_enabled
- /// The reachability_enabled
- /// The typing_indicator_timeout
+ /// Channel role assigned on channel join
+ /// Channel role assigned to creator of channel when joining for first time
+ ///
+ /// true if the member read status feature is enabled, false if not.
+ /// true if the reachability feature should be enabled.
+ /// The duration in seconds indicating the timeout after "started typing" event
+ /// when client should assume that user is not typing anymore even if no "ended typing"
+ /// message received
/// The consumption_report_interval
/// The notifications.new_message.enabled
/// The notifications.new_message.template
@@ -496,15 +506,19 @@ public static ServiceResource Update(string pathSid,
/// The notifications.invited_to_channel.enabled
/// The notifications.invited_to_channel.template
/// The notifications.invited_to_channel.sound
- /// The pre_webhook_url
- /// The post_webhook_url
- /// The webhook_method
- /// The webhook_filters
- /// The limits.channel_members
- /// The limits.user_channels
+ /// The webhook URL for PRE-Event webhooks.
+ /// The webhook URL for POST-Event webhooks.
+ /// The webhook request format to use.
+ /// The list of WebHook events that are enabled for this Service instance.
+ /// The maximum number of Members that can be added to Channels within this
+ /// Service.
+ /// The maximum number of Channels Users can be a Member of within this Service.
+ ///
/// The media.compatibility_message
- /// The pre_webhook_retry_count
- /// The post_webhook_retry_count
+ /// Count of times webhook will be retried in case of timeout or 429/503/504 HTTP
+ /// responses.
+ /// Count of times webhook will be retried in case of timeout or 429/503/504 HTTP
+ /// responses.
/// The notifications.log_enabled
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Service
@@ -566,102 +580,102 @@ public static ServiceResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this service.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this service.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The default_service_role_sid
+ /// The service role assigned to users when they are added to the service.
///
[JsonProperty("default_service_role_sid")]
public string DefaultServiceRoleSid { get; private set; }
///
- /// The default_channel_role_sid
+ /// The channel role assigned to users when they are added to a channel.
///
[JsonProperty("default_channel_role_sid")]
public string DefaultChannelRoleSid { get; private set; }
///
- /// The default_channel_creator_role_sid
+ /// The channel role assigned to a channel creator when joining a new channel.
///
[JsonProperty("default_channel_creator_role_sid")]
public string DefaultChannelCreatorRoleSid { get; private set; }
///
- /// The read_status_enabled
+ /// Enable the Message Constumption Horizon feature.
///
[JsonProperty("read_status_enabled")]
public bool? ReadStatusEnabled { get; private set; }
///
- /// The reachability_enabled
+ /// Indicates whether the the Reachability feature is enabled for this Service instance.
///
[JsonProperty("reachability_enabled")]
public bool? ReachabilityEnabled { get; private set; }
///
- /// The typing_indicator_timeout
+ /// The amount of time in seconds after a "started typing" event when clients should assume that user is no longer typing, even if no "ended typing" message was received.
///
[JsonProperty("typing_indicator_timeout")]
public int? TypingIndicatorTimeout { get; private set; }
///
- /// The consumption_report_interval
+ /// DEPRECATED.
///
[JsonProperty("consumption_report_interval")]
public int? ConsumptionReportInterval { get; private set; }
///
- /// The limits
+ /// Configuration for service instance level limits.
///
[JsonProperty("limits")]
public object Limits { get; private set; }
///
- /// The pre_webhook_url
+ /// The webhook URL for PRE-Event webhooks.
///
[JsonProperty("pre_webhook_url")]
public string PreWebhookUrl { get; private set; }
///
- /// The post_webhook_url
+ /// The webhook URL for POST-Event webhooks.
///
[JsonProperty("post_webhook_url")]
public string PostWebhookUrl { get; private set; }
///
- /// The webhook_method
+ /// The webhook request format to use for both PRE and POST webhooks.
///
[JsonProperty("webhook_method")]
public string WebhookMethod { get; private set; }
///
- /// The webhook_filters
+ /// The list of WebHook events that are enabled for this Service instance.
///
[JsonProperty("webhook_filters")]
public List WebhookFilters { get; private set; }
///
- /// The pre_webhook_retry_count
+ /// Count of times webhook will be retried in case of timeout or 429/503/504 HTTP responses.
///
[JsonProperty("pre_webhook_retry_count")]
public int? PreWebhookRetryCount { get; private set; }
///
- /// The post_webhook_retry_count
+ /// Count of times webhook will be retried in case of timeout or 429/503/504 HTTP responses.
///
[JsonProperty("post_webhook_retry_count")]
public int? PostWebhookRetryCount { get; private set; }
///
- /// The notifications
+ /// Notification configuration for the Service instance.
///
[JsonProperty("notifications")]
public object Notifications { get; private set; }
@@ -671,12 +685,12 @@ public static ServiceResource FromJson(string json)
[JsonProperty("media")]
public object Media { get; private set; }
///
- /// The url
+ /// An absolute URL for this service.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
///
- /// The links
+ /// URLs to access the Channels, Roles, and Users for this service.
///
[JsonProperty("links")]
public Dictionary Links { get; private set; }
diff --git a/src/Twilio/Rest/IpMessaging/V1/CredentialOptions.cs b/src/Twilio/Rest/IpMessaging/V1/CredentialOptions.cs
index 371ed3db3..f14aad640 100644
--- a/src/Twilio/Rest/IpMessaging/V1/CredentialOptions.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/CredentialOptions.cs
@@ -37,27 +37,27 @@ public override List> GetParams()
public class CreateCredentialOptions : IOptions
{
///
- /// The type
+ /// Credential type, one of "gcm" or "apn"
///
public CredentialResource.PushServiceEnum Type { get; }
///
- /// The friendly_name
+ /// Friendly name for stored credential
///
public string FriendlyName { get; set; }
///
- /// The certificate
+ /// [APN only] URL encoded representation of the certificate, e.
///
public string Certificate { get; set; }
///
- /// The private_key
+ /// [APN only] URL encoded representation of the private key, e.
///
public string PrivateKey { get; set; }
///
- /// The sandbox
+ /// [APN only] use this credential for sending to production or sandbox APNs
///
public bool? Sandbox { get; set; }
///
- /// The api_key
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
///
public string ApiKey { get; set; }
///
@@ -68,7 +68,7 @@ public class CreateCredentialOptions : IOptions
///
/// Construct a new CreateCredentialOptions
///
- /// The type
+ /// Credential type, one of "gcm" or "apn"
public CreateCredentialOptions(CredentialResource.PushServiceEnum type)
{
Type = type;
@@ -158,23 +158,23 @@ public class UpdateCredentialOptions : IOptions
///
public string PathSid { get; }
///
- /// The friendly_name
+ /// Friendly name for stored credential
///
public string FriendlyName { get; set; }
///
- /// The certificate
+ /// [APN only] URL encoded representation of the certificate, e.
///
public string Certificate { get; set; }
///
- /// The private_key
+ /// [APN only] URL encoded representation of the private key, e.
///
public string PrivateKey { get; set; }
///
- /// The sandbox
+ /// [APN only] use this credential for sending to production or sandbox APNs
///
public bool? Sandbox { get; set; }
///
- /// The api_key
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
///
public string ApiKey { get; set; }
///
diff --git a/src/Twilio/Rest/IpMessaging/V1/CredentialResource.cs b/src/Twilio/Rest/IpMessaging/V1/CredentialResource.cs
index 135462635..f0cb312b5 100644
--- a/src/Twilio/Rest/IpMessaging/V1/CredentialResource.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/CredentialResource.cs
@@ -213,12 +213,13 @@ public static async System.Threading.Tasks.Task CreateAsync(
///
/// create
///
- /// The type
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
+ /// Credential type, one of "gcm" or "apn"
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
/// The secret
/// Client to make requests to Twilio
/// A single instance of Credential
@@ -239,12 +240,13 @@ public static CredentialResource Create(CredentialResource.PushServiceEnum type,
///
/// create
///
- /// The type
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
+ /// Credential type, one of "gcm" or "apn"
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
/// The secret
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Credential
@@ -373,11 +375,12 @@ public static async System.Threading.Tasks.Task UpdateAsync(
/// update
///
/// The sid
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
/// The secret
/// Client to make requests to Twilio
/// A single instance of Credential
@@ -399,11 +402,12 @@ public static CredentialResource Update(string pathSid,
/// update
///
/// The sid
- /// The friendly_name
- /// The certificate
- /// The private_key
- /// The sandbox
- /// The api_key
+ /// Friendly name for stored credential
+ /// [APN only] URL encoded representation of the certificate, e.
+ /// [APN only] URL encoded representation of the private key, e.
+ /// [APN only] use this credential for sending to production or sandbox APNs
+ /// [GCM only] This is the "API key" for project from Google Developer console for your GCM
+ /// Service application credential
/// The secret
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Credential
@@ -506,43 +510,43 @@ public static CredentialResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account[/console] responsible for this resource.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The friendly_name
+ /// The human-readable name of this resource.
///
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
///
- /// The type
+ /// Indicates which push notifications service this credential is for - either gcm or apn
///
[JsonProperty("type")]
[JsonConverter(typeof(StringEnumConverter))]
public CredentialResource.PushServiceEnum Type { get; private set; }
///
- /// The sandbox
+ /// [APN only] true when this resource should use the sandbox APN service.
///
[JsonProperty("sandbox")]
public string Sandbox { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The url
+ /// An absolute URL for this credential resource.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.cs
index 7bee669f9..ade096e59 100644
--- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.cs
@@ -67,11 +67,11 @@ public class CreateInviteOptions : IOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public string Identity { get; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
public string RoleSid { get; set; }
@@ -80,7 +80,7 @@ public class CreateInviteOptions : IOptions
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
public CreateInviteOptions(string pathServiceSid, string pathChannelSid, string identity)
{
PathServiceSid = pathServiceSid;
@@ -122,7 +122,7 @@ public class ReadInviteOptions : ReadOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public List Identity { get; set; }
diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteResource.cs
index e53400eee..43f0a8ede 100644
--- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteResource.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteResource.cs
@@ -141,8 +141,8 @@ public static async System.Threading.Tasks.Task CreateAsync(Crea
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// A single instance of Invite
public static InviteResource Create(string pathServiceSid,
@@ -161,8 +161,8 @@ public static InviteResource Create(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Invite
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -225,7 +225,7 @@ public static async System.Threading.Tasks.Task> Rea
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -247,7 +247,7 @@ public static ResourceSet Read(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -418,42 +418,42 @@ public static InviteResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account[/console] responsible for this member.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The channel_sid
+ /// The unique id of the Channel for this member.
///
[JsonProperty("channel_sid")]
public string ChannelSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this member belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
[JsonProperty("identity")]
public string Identity { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
[JsonProperty("role_sid")]
public string RoleSid { get; private set; }
@@ -463,7 +463,7 @@ public static InviteResource FromJson(string json)
[JsonProperty("created_by")]
public string CreatedBy { get; private set; }
///
- /// The url
+ /// An absolute URL for this member.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.cs
index fae91669a..f8caca3d3 100644
--- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.cs
@@ -67,11 +67,11 @@ public class CreateMemberOptions : IOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public string Identity { get; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
public string RoleSid { get; set; }
@@ -80,7 +80,7 @@ public class CreateMemberOptions : IOptions
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
public CreateMemberOptions(string pathServiceSid, string pathChannelSid, string identity)
{
PathServiceSid = pathServiceSid;
@@ -122,7 +122,7 @@ public class ReadMemberOptions : ReadOptions
///
public string PathChannelSid { get; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
public List Identity { get; set; }
@@ -217,11 +217,11 @@ public class UpdateMemberOptions : IOptions
///
public string PathSid { get; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
public string RoleSid { get; set; }
///
- /// The last_consumed_message_index
+ /// An Integer representing index of the last Message this Member has read within this Channel
///
public int? LastConsumedMessageIndex { get; set; }
diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberResource.cs
index a400ff311..9f22cd991 100644
--- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberResource.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberResource.cs
@@ -141,8 +141,8 @@ public static async System.Threading.Tasks.Task CreateAsync(Crea
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// A single instance of Member
public static MemberResource Create(string pathServiceSid,
@@ -161,8 +161,8 @@ public static MemberResource Create(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
- /// The role_sid
+ /// A unique string identifier for this User in this Service.
+ /// The Role assigned to this member.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Member
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -225,7 +225,7 @@ public static async System.Threading.Tasks.Task> Rea
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -247,7 +247,7 @@ public static ResourceSet Read(string pathServiceSid,
///
/// The service_sid
/// The channel_sid
- /// The identity
+ /// A unique string identifier for this User in this Service.
/// Page size
/// Record limit
/// Client to make requests to Twilio
@@ -445,8 +445,9 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upda
/// The service_sid
/// The channel_sid
/// The sid
- /// The role_sid
- /// The last_consumed_message_index
+ /// The Role assigned to this member.
+ /// An Integer representing index of the last Message this Member has read
+ /// within this Channel
/// Client to make requests to Twilio
/// A single instance of Member
public static MemberResource Update(string pathServiceSid,
@@ -467,8 +468,9 @@ public static MemberResource Update(string pathServiceSid,
/// The service_sid
/// The channel_sid
/// The sid
- /// The role_sid
- /// The last_consumed_message_index
+ /// The Role assigned to this member.
+ /// An Integer representing index of the last Message this Member has read
+ /// within this Channel
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Member
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -502,57 +504,57 @@ public static MemberResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this member.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The channel_sid
+ /// The unique id of the Channel for this member.
///
[JsonProperty("channel_sid")]
public string ChannelSid { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this member belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The identity
+ /// A unique string identifier for this User in this Service.
///
[JsonProperty("identity")]
public string Identity { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The role_sid
+ /// The Role assigned to this member.
///
[JsonProperty("role_sid")]
public string RoleSid { get; private set; }
///
- /// The last_consumed_message_index
+ /// An Integer representing index of the last Message this Member has read within this Channel
///
[JsonProperty("last_consumed_message_index")]
public int? LastConsumedMessageIndex { get; private set; }
///
- /// The last_consumption_timestamp
+ /// An ISO8601 based timestamp string representing the datetime of the last Message read event for this Member within this Channel
///
[JsonProperty("last_consumption_timestamp")]
public DateTime? LastConsumptionTimestamp { get; private set; }
///
- /// The url
+ /// An absolute URL for this member.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.cs
index 0dd147b82..261d233a7 100644
--- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.cs
@@ -224,11 +224,11 @@ public class UpdateMessageOptions : IOptions
///
public string PathSid { get; }
///
- /// The body
+ /// The new message body string.
///
public string Body { get; set; }
///
- /// The attributes
+ /// The new attributes metadata field you can use to store any data you wish.
///
public string Attributes { get; set; }
diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageResource.cs
index 1a1ee96d5..8d16429c1 100644
--- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageResource.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageResource.cs
@@ -463,8 +463,8 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd
/// The service_sid
/// The channel_sid
/// The sid
- /// The body
- /// The attributes
+ /// The new message body string.
+ /// The new attributes metadata field you can use to store any data you wish.
/// Client to make requests to Twilio
/// A single instance of Message
public static MessageResource Update(string pathServiceSid,
@@ -485,8 +485,8 @@ public static MessageResource Update(string pathServiceSid,
/// The service_sid
/// The channel_sid
/// The sid
- /// The body
- /// The attributes
+ /// The new message body string.
+ /// The new attributes metadata field you can use to store any data you wish.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Message
public static async System.Threading.Tasks.Task UpdateAsync(string pathServiceSid,
@@ -520,27 +520,27 @@ public static MessageResource FromJson(string json)
}
///
- /// The sid
+ /// A 34 character string that uniquely identifies this resource.
///
[JsonProperty("sid")]
public string Sid { get; private set; }
///
- /// The account_sid
+ /// The unique id of the Account responsible for this message.
///
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
///
- /// The attributes
+ /// An optional string metadata field you can use to store any data you wish.
///
[JsonProperty("attributes")]
public string Attributes { get; private set; }
///
- /// The service_sid
+ /// The unique id of the Service this message belongs to.
///
[JsonProperty("service_sid")]
public string ServiceSid { get; private set; }
///
- /// The to
+ /// The unique id of the Channel this message was sent to.
///
[JsonProperty("to")]
public string To { get; private set; }
@@ -550,37 +550,37 @@ public static MessageResource FromJson(string json)
[JsonProperty("channel_sid")]
public string ChannelSid { get; private set; }
///
- /// The date_created
+ /// The date that this resource was created.
///
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
///
- /// The date_updated
+ /// The date that this resource was last updated.
///
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
///
- /// The was_edited
+ /// true if the message has been updated since it was created.
///
[JsonProperty("was_edited")]
public bool? WasEdited { get; private set; }
///
- /// The from
+ /// The identity of the message's author.
///
[JsonProperty("from")]
public string From { get; private set; }
///
- /// The body
+ /// The contents of the message.
///
[JsonProperty("body")]
public string Body { get; private set; }
///
- /// The index
+ /// The index of the message within the Channel
///
[JsonProperty("index")]
public int? Index { get; private set; }
///
- /// The url
+ /// An absolute URL for this message.
///
[JsonProperty("url")]
public Uri Url { get; private set; }
diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.cs
index 3c8ade711..704142b6c 100644
--- a/src/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.cs
@@ -92,19 +92,19 @@ public class CreateChannelOptions : IOptions
///
public string PathServiceSid { get; }
///
- /// The friendly_name
+ /// A human-readable name for the Channel.
///
public string FriendlyName { get; set; }
///
- /// The unique_name
+ /// A unique, addressable name for the Channel.
///
public string UniqueName { get; set; }
///
- /// The attributes
+ /// An optional metadata field you can use to store any data you wish.
///
public string Attributes { get; set; }
///
- /// The type
+ /// The visibility of the channel - public or private.
///
public ChannelResource.ChannelTypeEnum Type { get; set; }
@@ -205,15 +205,15 @@ public class UpdateChannelOptions : IOptions
///
public string PathSid { get; }
///
- /// The friendly_name
+ /// A human-readable name for the Channel.
///
public string FriendlyName { get; set; }
///
- /// The unique_name
+ /// A unique, addressable name for the Channel.
///
public string UniqueName { get; set; }
///
- /// The attributes
+ /// An optional metadata field you can use to store any data you wish.
///
public string Attributes { get; set; }
diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/ChannelResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/ChannelResource.cs
index 8962c4411..953df398c 100644
--- a/src/Twilio/Rest/IpMessaging/V1/Service/ChannelResource.cs
+++ b/src/Twilio/Rest/IpMessaging/V1/Service/ChannelResource.cs
@@ -218,10 +218,10 @@ public static async System.Threading.Tasks.Task CreateAsync(Cre
/// create
///
/// The service_sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
- /// The type
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
+ /// The visibility of the channel - public or private.
/// Client to make requests to Twilio
/// A single instance of Channel
public static ChannelResource Create(string pathServiceSid,
@@ -240,10 +240,10 @@ public static ChannelResource Create(string pathServiceSid,
/// create
///
/// The service_sid
- /// The friendly_name
- /// The unique_name
- /// The attributes
- /// The type
+ /// A human-readable name for the Channel.
+ /// A unique, addressable name for the Channel.
+ /// An optional metadata field you can use to store any data you wish.
+ /// The visibility of the channel - public or private.
/// Client to make requests to Twilio
/// Task that resolves to A single instance of Channel
public static async System.Threading.Tasks.Task CreateAsync(string pathServiceSid,
@@ -446,9 +446,9 @@ public static async System.Threading.Tasks.Task