-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: preview changes by twiml gather
- Loading branch information
1 parent
748fc5c
commit e804280
Showing
16 changed files
with
520 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* This code was generated by | ||
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
* | ||
* Twilio - Iam | ||
* This is the public Twilio REST API. | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator. | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
using System; | ||
using System.Collections.Generic; | ||
using Twilio.Base; | ||
using Twilio.Converters; | ||
|
||
|
||
|
||
|
||
namespace Twilio.Rest.Iam.V1 | ||
{ | ||
|
||
/// <summary> Create a new Signing Key for the account making the request. </summary> | ||
public class CreateKeyOptions : IOptions<KeyResource> | ||
{ | ||
|
||
///<summary> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. </summary> | ||
public string AccountSid { get; } | ||
|
||
///<summary> A descriptive string that you create to describe the resource. It can be up to 64 characters long. </summary> | ||
public string FriendlyName { get; set; } | ||
|
||
|
||
public KeyResource.KeytypeEnum KeyType { get; set; } | ||
|
||
///<summary> The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys). </summary> | ||
public object Policy { get; set; } | ||
|
||
|
||
/// <summary> Construct a new CreateNewKeyOptions </summary> | ||
/// <param name="accountSid"> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. </param> | ||
public CreateKeyOptions(string accountSid) | ||
{ | ||
AccountSid = accountSid; | ||
} | ||
|
||
|
||
/// <summary> Generate the necessary parameters </summary> | ||
public List<KeyValuePair<string, string>> GetParams() | ||
{ | ||
var p = new List<KeyValuePair<string, string>>(); | ||
|
||
if (AccountSid != null) | ||
{ | ||
p.Add(new KeyValuePair<string, string>("AccountSid", AccountSid)); | ||
} | ||
if (FriendlyName != null) | ||
{ | ||
p.Add(new KeyValuePair<string, string>("FriendlyName", FriendlyName)); | ||
} | ||
if (KeyType != null) | ||
{ | ||
p.Add(new KeyValuePair<string, string>("KeyType", KeyType.ToString())); | ||
} | ||
if (Policy != null) | ||
{ | ||
p.Add(new KeyValuePair<string, string>("Policy", Serializers.JsonObject(Policy))); | ||
} | ||
return p; | ||
} | ||
|
||
|
||
|
||
} | ||
} | ||
|
Oops, something went wrong.