class

Twilio::KeysApi

Inherits Reference / Object

Constants

CREATE_NEW_KEY_MAX_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_NEW_KEY_MIN_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_NEW_KEY_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
DELETE_KEY_MAX_LENGTH_FOR_ACCOUNT_SID = 34
DELETE_KEY_MAX_LENGTH_FOR_SID = 34
DELETE_KEY_MIN_LENGTH_FOR_ACCOUNT_SID = 34
DELETE_KEY_MIN_LENGTH_FOR_SID = 34
DELETE_KEY_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
DELETE_KEY_PATTERN_FOR_SID = /^SK[0-9a-fA-F]{32}$/
FETCH_KEY_MAX_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_KEY_MAX_LENGTH_FOR_SID = 34
FETCH_KEY_MIN_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_KEY_MIN_LENGTH_FOR_SID = 34
FETCH_KEY_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
FETCH_KEY_PATTERN_FOR_SID = /^SK[0-9a-fA-F]{32}$/
LIST_KEY_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_KEY_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_KEY_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_KEY_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_KEY_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
UPDATE_KEY_MAX_LENGTH_FOR_ACCOUNT_SID = 34
UPDATE_KEY_MAX_LENGTH_FOR_SID = 34
UPDATE_KEY_MIN_LENGTH_FOR_ACCOUNT_SID = 34
UPDATE_KEY_MIN_LENGTH_FOR_SID = 34
UPDATE_KEY_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
UPDATE_KEY_PATTERN_FOR_SID = /^SK[0-9a-fA-F]{32}$/

Constructors

new(api_client : Twilio::ApiClient = ApiClient.default)
Source

Instance methods

account_sid
Source
account_sid=(account_sid : String)
Source
api_client
Source
api_client=(api_client : ApiClient)
Source
build_api_request_for_create_new_key(*, account_sid : String | Nil = @account_sid, friendly_name : String | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_delete_key(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_fetch_key(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_list_key(*, account_sid : String | Nil = @account_sid, page_size : Int32 | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_update_key(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, friendly_name : String | Nil = nil) : Crest::Request

@return Crest::Request

Source
client_side_validation?(*args, **options)
Source
client_side_validation?(*args, **options, &)
Source
create_new_key(*, account_sid : String | Nil = @account_sid, friendly_name : String | Nil = nil) : Twilio::NewKey

@required @param account_sid [String?] The SID of the Account that will be responsible for the new Key resource. @optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return [Twilio::NewKey]

Source
create_new_key(*, account_sid : String | Nil = @account_sid, friendly_name : String | Nil = nil, &block : Crest::Response -> ) : Nil

@required @param account_sid [String?] The SID of the Account that will be responsible for the new Key resource. @optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return nil

Source
create_new_key_with_http_info(*, account_sid : String | Nil = @account_sid, friendly_name : String | Nil = nil) : Tuple(Twilio::NewKey, Int32, Hash(String, Array(String) | String))

@required @param account_sid [String?] The SID of the Account that will be responsible for the new Key resource. @optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return [Tuple(Twilio::NewKey, Integer, Hash)] Twilio::NewKey, response status code and response headers

Source
debugging?(*args, **options)
Source
debugging?(*args, **options, &)
Source
delete_key(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Nil

@required @param account_sid [String?] The SID of the Account that created the Key resources to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Key resource to delete. @return [Nil]

Source
delete_key(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil

@required @param account_sid [String?] The SID of the Account that created the Key resources to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Key resource to delete. @return nil

Source
delete_key_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Tuple(Nil, Int32, Hash(String, Array(String) | String))

@required @param account_sid [String?] The SID of the Account that created the Key resources to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Key resource to delete. @return [Tuple(Nil, Integer, Hash)] Nil, response status code and response headers

Source
fetch_key(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Twilio::Key

@required @param account_sid [String?] The SID of the Account that created the Key resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Key resource to fetch. @return [Twilio::Key]

Source
fetch_key(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil

@required @param account_sid [String?] The SID of the Account that created the Key resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Key resource to fetch. @return nil

Source
fetch_key_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Tuple(Twilio::Key, Int32, Hash(String, Array(String) | String))

@required @param account_sid [String?] The SID of the Account that created the Key resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Key resource to fetch. @return [Tuple(Twilio::Key, Integer, Hash)] Twilio::Key, response status code and response headers

Source
list_key(*, account_sid : String | Nil = @account_sid, page_size : Int32 | Nil = nil) : Twilio::ListKeyResponse

@required @param account_sid [String?] The SID of the Account that created the Key resources to read. @optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000. @return [Twilio::ListKeyResponse]

Source
list_key(*, account_sid : String | Nil = @account_sid, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil

@required @param account_sid [String?] The SID of the Account that created the Key resources to read. @optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000. @return nil

Source
list_key_with_http_info(*, account_sid : String | Nil = @account_sid, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListKeyResponse, Int32, Hash(String, Array(String) | String))

@required @param account_sid [String?] The SID of the Account that created the Key resources to read. @optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000. @return [Tuple(Twilio::ListKeyResponse, Integer, Hash)] Twilio::ListKeyResponse, response status code and response headers

Source
update_key(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, friendly_name : String | Nil = nil) : Twilio::Key

@required @param account_sid [String?] The SID of the Account that created the Key resources to update. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Key resource to update. @optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return [Twilio::Key]

Source
update_key(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, friendly_name : String | Nil = nil, &block : Crest::Response -> ) : Nil

@required @param account_sid [String?] The SID of the Account that created the Key resources to update. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Key resource to update. @optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return nil

Source
update_key_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, friendly_name : String | Nil = nil) : Tuple(Twilio::Key, Int32, Hash(String, Array(String) | String))

@required @param account_sid [String?] The SID of the Account that created the Key resources to update. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Key resource to update. @optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return [Tuple(Twilio::Key, Integer, Hash)] Twilio::Key, response status code and response headers

Source