class Twilio::REST::Api::V2010::AccountContext::SipList::DomainContext::AuthTypesList::AuthTypeCallsList::AuthCallsCredentialListMappingContext

Public Class Methods

new(version, account_sid, domain_sid, sid) click to toggle source

Initialize the AuthCallsCredentialListMappingContext @param [Version] version Version that contains the resource @param [String] account_sid The SID of the

{Account}[https://www.twilio.com/docs/iam/api/account] that created the
CredentialListMapping resource to fetch.

@param [String] domain_sid The SID of the SIP domain that contains the resource

to fetch.

@param [String] sid The Twilio-provided string that uniquely identifies the

CredentialListMapping resource to fetch.

@return [AuthCallsCredentialListMappingContext] AuthCallsCredentialListMappingContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb
187 def initialize(version, account_sid, domain_sid, sid)
188   super(version)
189 
190   # Path Solution
191   @solution = {account_sid: account_sid, domain_sid: domain_sid, sid: sid, }
192   @uri = "/Accounts/#{@solution[:account_sid]}/SIP/Domains/#{@solution[:domain_sid]}/Auth/Calls/CredentialListMappings/#{@solution[:sid]}.json"
193 end

Public Instance Methods

delete() click to toggle source

Delete the AuthCallsCredentialListMappingInstance @return [Boolean] true if delete succeeds, false otherwise

    # File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb
213 def delete
214    @version.delete('DELETE', @uri)
215 end
fetch() click to toggle source

Fetch the AuthCallsCredentialListMappingInstance @return [AuthCallsCredentialListMappingInstance] Fetched AuthCallsCredentialListMappingInstance

    # File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb
198 def fetch
199   payload = @version.fetch('GET', @uri)
200 
201   AuthCallsCredentialListMappingInstance.new(
202       @version,
203       payload,
204       account_sid: @solution[:account_sid],
205       domain_sid: @solution[:domain_sid],
206       sid: @solution[:sid],
207   )
208 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb
226 def inspect
227   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
228   "#<Twilio.Api.V2010.AuthCallsCredentialListMappingContext #{context}>"
229 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb
219 def to_s
220   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
221   "#<Twilio.Api.V2010.AuthCallsCredentialListMappingContext #{context}>"
222 end