class Twilio::REST::Api::V2010::AccountContext::SipList::DomainContext::CredentialListMappingContext
Public Class Methods
new(version, account_sid, domain_sid, sid)
click to toggle source
Initialize the CredentialListMappingContext
@param [Version] version Version
that contains the resource @param [String] account_sid The unique id of the
{Account}[https://www.twilio.com/docs/iam/api/account] responsible for this resource.
@param [String] domain_sid A 34 character string that uniquely identifies the
SIP Domain that includes the resource to fetch.
@param [String] sid A 34 character string that uniquely identifies the resource
to fetch.
@return [CredentialListMappingContext] CredentialListMappingContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb 184 def initialize(version, account_sid, domain_sid, sid) 185 super(version) 186 187 # Path Solution 188 @solution = {account_sid: account_sid, domain_sid: domain_sid, sid: sid, } 189 @uri = "/Accounts/#{@solution[:account_sid]}/SIP/Domains/#{@solution[:domain_sid]}/CredentialListMappings/#{@solution[:sid]}.json" 190 end
Public Instance Methods
delete()
click to toggle source
Delete the CredentialListMappingInstance
@return [Boolean] true if delete succeeds, false otherwise
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb 210 def delete 211 @version.delete('DELETE', @uri) 212 end
fetch()
click to toggle source
Fetch the CredentialListMappingInstance
@return [CredentialListMappingInstance] Fetched CredentialListMappingInstance
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb 195 def fetch 196 payload = @version.fetch('GET', @uri) 197 198 CredentialListMappingInstance.new( 199 @version, 200 payload, 201 account_sid: @solution[:account_sid], 202 domain_sid: @solution[:domain_sid], 203 sid: @solution[:sid], 204 ) 205 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb 223 def inspect 224 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 225 "#<Twilio.Api.V2010.CredentialListMappingContext #{context}>" 226 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb 216 def to_s 217 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 218 "#<Twilio.Api.V2010.CredentialListMappingContext #{context}>" 219 end