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

Public Class Methods

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

Initialize the AuthCallsIpAccessControlListMappingInstance @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

IpAccessControlListMapping resource to fetch.

@return [AuthCallsIpAccessControlListMappingInstance] AuthCallsIpAccessControlListMappingInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_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

account_sid() click to toggle source

@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_ip_access_control_list_mapping.rb
284 def account_sid
285   @properties['account_sid']
286 end
context() click to toggle source

Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return [AuthCallsIpAccessControlListMappingContext] AuthCallsIpAccessControlListMappingContext for this AuthCallsIpAccessControlListMappingInstance

    # File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb
270 def context
271   unless @instance_context
272     @instance_context = AuthCallsIpAccessControlListMappingContext.new(
273         @version,
274         @params['account_sid'],
275         @params['domain_sid'],
276         @params['sid'],
277     )
278   end
279   @instance_context
280 end
date_created() click to toggle source

@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_ip_access_control_list_mapping.rb
290 def date_created
291   @properties['date_created']
292 end
date_updated() click to toggle source

@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_ip_access_control_list_mapping.rb
296 def date_updated
297   @properties['date_updated']
298 end
delete() click to toggle source

Delete the AuthCallsIpAccessControlListMappingInstance @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_ip_access_control_list_mapping.rb
322 def delete
323   context.delete
324 end
fetch() click to toggle source

Fetch the AuthCallsIpAccessControlListMappingInstance @return [AuthCallsIpAccessControlListMappingInstance] Fetched AuthCallsIpAccessControlListMappingInstance

    # File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb
315 def fetch
316   context.fetch
317 end
friendly_name() click to toggle source

@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_ip_access_control_list_mapping.rb
302 def friendly_name
303   @properties['friendly_name']
304 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_ip_access_control_list_mapping.rb
335 def inspect
336   values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
337   "<Twilio.Api.V2010.AuthCallsIpAccessControlListMappingInstance #{values}>"
338 end
sid() click to toggle source

@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_ip_access_control_list_mapping.rb
308 def sid
309   @properties['sid']
310 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_ip_access_control_list_mapping.rb
328 def to_s
329   values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
330   "<Twilio.Api.V2010.AuthCallsIpAccessControlListMappingInstance #{values}>"
331 end