class Twilio::REST::Api::V2010::AccountContext::SipList::DomainContext::AuthTypesList::AuthTypeCallsList::AuthCallsCredentialListMappingInstance
Public Class Methods
Initialize the AuthCallsCredentialListMappingInstance
@param [Version] version Version
that contains the resource @param [Hash] payload payload that contains response from Twilio
@param [String] account_sid
The SID of the
{Account}[https://www.twilio.com/docs/iam/api/account] that created the SipDomain resource.
@param [String] domain_sid The unique string that that we created to identify
the SipDomain resource.
@param [String] sid The Twilio-provided string that uniquely identifies the
CredentialListMapping resource to fetch.
@return [AuthCallsCredentialListMappingInstance] AuthCallsCredentialListMappingInstance
Twilio::REST::InstanceResource::new
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb 245 def initialize(version, payload, account_sid: nil, domain_sid: nil, sid: nil) 246 super(version) 247 248 # Marshaled Properties 249 @properties = { 250 'account_sid' => payload['account_sid'], 251 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), 252 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), 253 'friendly_name' => payload['friendly_name'], 254 'sid' => payload['sid'], 255 } 256 257 # Context 258 @instance_context = nil 259 @params = { 260 'account_sid' => account_sid, 261 'domain_sid' => domain_sid, 262 'sid' => sid || @properties['sid'], 263 } 264 end
Public Instance Methods
@return [String] The SID of the Account that created the resource
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb 284 def account_sid 285 @properties['account_sid'] 286 end
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return [AuthCallsCredentialListMappingContext] AuthCallsCredentialListMappingContext
for this AuthCallsCredentialListMappingInstance
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb 270 def context 271 unless @instance_context 272 @instance_context = AuthCallsCredentialListMappingContext.new( 273 @version, 274 @params['account_sid'], 275 @params['domain_sid'], 276 @params['sid'], 277 ) 278 end 279 @instance_context 280 end
@return [Time] The RFC 2822 date and time in GMT that the resource was created
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb 290 def date_created 291 @properties['date_created'] 292 end
@return [Time] The RFC 2822 date and time in GMT that the resource was last updated
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb 296 def date_updated 297 @properties['date_updated'] 298 end
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 322 def delete 323 context.delete 324 end
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 315 def fetch 316 context.fetch 317 end
@return [String] The string that you assigned to describe the resource
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb 302 def friendly_name 303 @properties['friendly_name'] 304 end
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 335 def inspect 336 values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") 337 "<Twilio.Api.V2010.AuthCallsCredentialListMappingInstance #{values}>" 338 end
@return [String] The unique string that identifies the resource
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb 308 def sid 309 @properties['sid'] 310 end
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 328 def to_s 329 values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") 330 "<Twilio.Api.V2010.AuthCallsCredentialListMappingInstance #{values}>" 331 end