class Twilio::SubAccountsApi

Defined in:

twilio/api/sub_accounts_api.cr

Constant Summary

FETCH_ACCOUNT_MAX_LENGTH_FOR_SID = 34
FETCH_ACCOUNT_MIN_LENGTH_FOR_SID = 34
FETCH_ACCOUNT_PATTERN_FOR_SID = /^AC[0-9a-fA-F]{32}$/
UPDATE_ACCOUNT_MAX_LENGTH_FOR_SID = 34
UPDATE_ACCOUNT_MIN_LENGTH_FOR_SID = 34
UPDATE_ACCOUNT_PATTERN_FOR_SID = /^AC[0-9a-fA-F]{32}$/

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_client : Twilio::ApiClient = ApiClient.default) #

[View source]

Instance Method Detail

def account_sid : String #

[View source]
def account_sid=(account_sid : String) #

[View source]
def api_client : ApiClient #

[View source]
def api_client=(api_client : ApiClient) #

[View source]
def build_api_request_for_fetch_account(*, sid : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_update_account(*, sid : String | Nil = nil, friendly_name : String | Nil = nil, status : Twilio::AccountEnumStatus | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def client_side_validation?(*args, **options) #

[View source]
def client_side_validation?(*args, **options, &) #

[View source]
def debugging?(*args, **options) #

[View source]
def debugging?(*args, **options, &) #

[View source]
def fetch_account(*, sid : String | Nil = nil) : Twilio::Account #

Fetch the account specified by the provided Account Sid @required @param sid [String?] The Account Sid that uniquely identifies the account to fetch @return [Twilio::Account]


[View source]
def fetch_account(*, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Fetch the account specified by the provided Account Sid @required @param sid [String?] The Account Sid that uniquely identifies the account to fetch @return nil


[View source]
def fetch_account_with_http_info(*, sid : String | Nil = nil) : Tuple(Twilio::Account, Int32, Hash(String, Array(String) | String)) #

Fetch the account specified by the provided Account Sid @required @param sid [String?] The Account Sid that uniquely identifies the account to fetch @return [Tuple(Twilio::Account, Integer, Hash)] Twilio::Account, response status code and response headers


[View source]
def update_account(*, sid : String | Nil = nil, friendly_name : String | Nil = nil, status : Twilio::AccountEnumStatus | Nil = nil) : Twilio::Account #

Modify the properties of a given Account @required @param sid [String?] The Account Sid that uniquely identifies the account to update @optional @param friendly_name [String?] Update the human-readable description of this Account @optional @param status [Twilio::AccountEnumStatus?] @return [Twilio::Account]


[View source]
def update_account(*, sid : String | Nil = nil, friendly_name : String | Nil = nil, status : Twilio::AccountEnumStatus | Nil = nil, &block : Crest::Response -> ) : Nil #

Modify the properties of a given Account @required @param sid [String?] The Account Sid that uniquely identifies the account to update @optional @param friendly_name [String?] Update the human-readable description of this Account @optional @param status [Twilio::AccountEnumStatus?] @return nil


[View source]
def update_account_with_http_info(*, sid : String | Nil = nil, friendly_name : String | Nil = nil, status : Twilio::AccountEnumStatus | Nil = nil) : Tuple(Twilio::Account, Int32, Hash(String, Array(String) | String)) #

Modify the properties of a given Account @required @param sid [String?] The Account Sid that uniquely identifies the account to update @optional @param friendly_name [String?] Update the human-readable description of this Account @optional @param status [Twilio::AccountEnumStatus?] @return [Tuple(Twilio::Account, Integer, Hash)] Twilio::Account, response status code and response headers


[View source]