Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Rename child twiml methods to be the tag name and deprecate old methods #504

Merged
merged 2 commits into from
Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public class CreateChallengeOptions : IOptions<ChallengeResource>
/// Hidden details provided to contextualize the Challenge
/// </summary>
public string HiddenDetails { get; set; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }
eshanholtz marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// Construct a new CreateChallengeOptions
Expand Down Expand Up @@ -106,6 +110,10 @@ public class DeleteChallengeOptions : IOptions<ChallengeResource>
/// A string that uniquely identifies this Challenge.
/// </summary>
public string PathSid { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new DeleteChallengeOptions
Expand Down Expand Up @@ -156,6 +164,10 @@ public class FetchChallengeOptions : IOptions<ChallengeResource>
/// A string that uniquely identifies this Challenge, or `latest`.
/// </summary>
public string PathSid { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new FetchChallengeOptions
Expand Down Expand Up @@ -210,6 +222,10 @@ public class UpdateChallengeOptions : IOptions<ChallengeResource>
/// Optional payload to verify the Challenge
/// </summary>
public string AuthPayload { get; set; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new UpdateChallengeOptions
Expand Down
20 changes: 20 additions & 0 deletions src/Twilio/Rest/Authy/V1/Service/Entity/FactorOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public class CreateFactorOptions : IOptions<FactorResource>
/// The Type of this Factor
/// </summary>
public FactorResource.FactorTypesEnum FactorType { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new CreateFactorOptions
Expand Down Expand Up @@ -106,6 +110,10 @@ public class DeleteFactorOptions : IOptions<FactorResource>
/// A string that uniquely identifies this Factor.
/// </summary>
public string PathSid { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new DeleteFactorOptions
Expand Down Expand Up @@ -150,6 +158,10 @@ public class FetchFactorOptions : IOptions<FactorResource>
/// A string that uniquely identifies this Factor.
/// </summary>
public string PathSid { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new FetchFactorOptions
Expand Down Expand Up @@ -190,6 +202,10 @@ public class ReadFactorOptions : ReadOptions<FactorResource>
/// Unique identity of the Entity
/// </summary>
public string PathIdentity { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new ReadFactorOptions
Expand Down Expand Up @@ -241,6 +257,10 @@ public class UpdateFactorOptions : IOptions<FactorResource>
/// Optional payload to verify the Factor for the first time
/// </summary>
public string AuthPayload { get; set; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new UpdateFactorOptions
Expand Down
16 changes: 16 additions & 0 deletions src/Twilio/Rest/Authy/V1/Service/EntityOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ public class CreateEntityOptions : IOptions<EntityResource>
/// Unique identity of the Entity
/// </summary>
public string Identity { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new CreateEntityOptions
Expand Down Expand Up @@ -70,6 +74,10 @@ public class DeleteEntityOptions : IOptions<EntityResource>
/// Unique identity of the Entity
/// </summary>
public string PathIdentity { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new DeleteEntityOptions
Expand Down Expand Up @@ -108,6 +116,10 @@ public class FetchEntityOptions : IOptions<EntityResource>
/// Unique identity of the Entity
/// </summary>
public string PathIdentity { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new FetchEntityOptions
Expand Down Expand Up @@ -142,6 +154,10 @@ public class ReadEntityOptions : ReadOptions<EntityResource>
/// Service Sid.
/// </summary>
public string PathServiceSid { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new ReadEntityOptions
Expand Down
21 changes: 21 additions & 0 deletions src/Twilio/Rest/Authy/V1/ServiceOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public class CreateServiceOptions : IOptions<ServiceResource>
/// A human readable description of this resource.
/// </summary>
public string FriendlyName { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new CreateServiceOptions
Expand Down Expand Up @@ -60,6 +64,10 @@ public class DeleteServiceOptions : IOptions<ServiceResource>
/// A string that uniquely identifies this Service.
/// </summary>
public string PathSid { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new DeleteServiceOptions
Expand Down Expand Up @@ -92,6 +100,10 @@ public class FetchServiceOptions : IOptions<ServiceResource>
/// A string that uniquely identifies this Service.
/// </summary>
public string PathSid { get; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new FetchServiceOptions
Expand Down Expand Up @@ -120,6 +132,11 @@ public List<KeyValuePair<string, string>> GetParams()
/// </summary>
public class ReadServiceOptions : ReadOptions<ServiceResource>
{
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Generate the necessary parameters
/// </summary>
Expand Down Expand Up @@ -151,6 +168,10 @@ public class UpdateServiceOptions : IOptions<ServiceResource>
/// A human readable description of this resource.
/// </summary>
public string FriendlyName { get; set; }
/// <summary>
/// The Twilio-Authy-Sandbox-Mode HTTP request header
/// </summary>
public string TwilioAuthySandboxMode { get; }

/// <summary>
/// Construct a new UpdateServiceOptions
Expand Down
12 changes: 12 additions & 0 deletions src/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ public class CreateMemberOptions : IOptions<MemberResource>
/// A valid JSON string that contains application-specific data
/// </summary>
public string Attributes { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public MemberResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new CreateMemberOptions
Expand Down Expand Up @@ -220,6 +224,10 @@ public class DeleteMemberOptions : IOptions<MemberResource>
/// The SID of the Member resource to delete
/// </summary>
public string PathSid { get; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public MemberResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new DeleteMemberOptions
Expand Down Expand Up @@ -285,6 +293,10 @@ public class UpdateMemberOptions : IOptions<MemberResource>
/// A valid JSON string that contains application-specific data
/// </summary>
public string Attributes { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public MemberResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new UpdateMemberOptions
Expand Down
12 changes: 12 additions & 0 deletions src/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ public class CreateMessageOptions : IOptions<MessageResource>
/// The Media Sid to be attached to the new Message
/// </summary>
public string MediaSid { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public MessageResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new CreateMessageOptions
Expand Down Expand Up @@ -216,6 +220,10 @@ public class DeleteMessageOptions : IOptions<MessageResource>
/// The SID of the Message resource to delete
/// </summary>
public string PathSid { get; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public MessageResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new DeleteMessageOptions
Expand Down Expand Up @@ -281,6 +289,10 @@ public class UpdateMessageOptions : IOptions<MessageResource>
/// The Identity of the message's author
/// </summary>
public string From { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public MessageResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new UpdateMessageOptions
Expand Down
12 changes: 12 additions & 0 deletions src/Twilio/Rest/Chat/V2/Service/ChannelOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public class DeleteChannelOptions : IOptions<ChannelResource>
/// The SID of the Channel resource to delete
/// </summary>
public string PathSid { get; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public ChannelResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new DeleteChannelOptions
Expand Down Expand Up @@ -119,6 +123,10 @@ public class CreateChannelOptions : IOptions<ChannelResource>
/// The identity of the User that created the Channel
/// </summary>
public string CreatedBy { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public ChannelResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new CreateChannelOptions
Expand Down Expand Up @@ -255,6 +263,10 @@ public class UpdateChannelOptions : IOptions<ChannelResource>
/// The identity of the User that created the Channel
/// </summary>
public string CreatedBy { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public ChannelResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new UpdateChannelOptions
Expand Down
8 changes: 8 additions & 0 deletions src/Twilio/Rest/Chat/V2/Service/UserOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public class CreateUserOptions : IOptions<UserResource>
/// A string to describe the new resource
/// </summary>
public string FriendlyName { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public UserResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new CreateUserOptions
Expand Down Expand Up @@ -207,6 +211,10 @@ public class UpdateUserOptions : IOptions<UserResource>
/// A string to describe the resource
/// </summary>
public string FriendlyName { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public UserResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new UpdateUserOptions
Expand Down
12 changes: 12 additions & 0 deletions src/Twilio/Rest/Conversations/V1/Conversation/MessageOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public class CreateMessageOptions : IOptions<MessageResource>
/// The Media Sid to be attached to the new Message.
/// </summary>
public string MediaSid { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public MessageResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new CreateMessageOptions
Expand Down Expand Up @@ -131,6 +135,10 @@ public class UpdateMessageOptions : IOptions<MessageResource>
/// A string metadata field you can use to store any data you wish.
/// </summary>
public string Attributes { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public MessageResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new UpdateMessageOptions
Expand Down Expand Up @@ -193,6 +201,10 @@ public class DeleteMessageOptions : IOptions<MessageResource>
/// A 34 character string that uniquely identifies this resource.
/// </summary>
public string PathSid { get; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public MessageResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new DeleteMessageOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public class CreateParticipantOptions : IOptions<ParticipantResource>
/// The address of the Twilio phone number that is used in Group MMS.
/// </summary>
public string MessagingBindingProjectedAddress { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public ParticipantResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new CreateParticipantOptions
Expand Down Expand Up @@ -132,6 +136,10 @@ public class UpdateParticipantOptions : IOptions<ParticipantResource>
/// An optional string metadata field you can use to store any data you wish.
/// </summary>
public string Attributes { get; set; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public ParticipantResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new UpdateParticipantOptions
Expand Down Expand Up @@ -184,6 +192,10 @@ public class DeleteParticipantOptions : IOptions<ParticipantResource>
/// A 34 character string that uniquely identifies this resource.
/// </summary>
public string PathSid { get; }
/// <summary>
/// The X-Twilio-Webhook-Enabled HTTP request header
/// </summary>
public ParticipantResource.WebhookEnabledTypeEnum XTwilioWebhookEnabled { get; }

/// <summary>
/// Construct a new DeleteParticipantOptions
Expand Down
Loading