class Twilio::REST::Supersim::V1::NetworkAccessProfileContext::NetworkAccessProfileNetworkInstance

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

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

Initialize the NetworkAccessProfileNetworkInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] network_access_profile_sid The unique string that identifies the

Network resource's Network Access Profile resource.

@param [String] sid The SID of the Network resource to fetch. @return [NetworkAccessProfileNetworkInstance] NetworkAccessProfileNetworkInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
235 def initialize(version, payload, network_access_profile_sid: nil, sid: nil)
236   super(version)
237 
238   # Marshaled Properties
239   @properties = {
240       'sid' => payload['sid'],
241       'network_access_profile_sid' => payload['network_access_profile_sid'],
242       'friendly_name' => payload['friendly_name'],
243       'iso_country' => payload['iso_country'],
244       'identifiers' => payload['identifiers'],
245       'url' => payload['url'],
246   }
247 
248   # Context
249   @instance_context = nil
250   @params = {
251       'network_access_profile_sid' => network_access_profile_sid,
252       'sid' => sid || @properties['sid'],
253   }
254 end

Public Instance Methods

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 [NetworkAccessProfileNetworkContext] NetworkAccessProfileNetworkContext for this NetworkAccessProfileNetworkInstance

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
260 def context
261   unless @instance_context
262     @instance_context = NetworkAccessProfileNetworkContext.new(
263         @version,
264         @params['network_access_profile_sid'],
265         @params['sid'],
266     )
267   end
268   @instance_context
269 end
delete() click to toggle source

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

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
310 def delete
311   context.delete
312 end
fetch() click to toggle source

Fetch the NetworkAccessProfileNetworkInstance @return [NetworkAccessProfileNetworkInstance] Fetched NetworkAccessProfileNetworkInstance

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
317 def fetch
318   context.fetch
319 end
friendly_name() click to toggle source

@return [String] A human readable identifier of this resource

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
285 def friendly_name
286   @properties['friendly_name']
287 end
identifiers() click to toggle source

@return [Array] The MCC/MNCs included in the resource

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
297 def identifiers
298   @properties['identifiers']
299 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
330 def inspect
331   values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
332   "<Twilio.Supersim.V1.NetworkAccessProfileNetworkInstance #{values}>"
333 end
iso_country() click to toggle source

@return [String] The ISO country code of the Network resource

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
291 def iso_country
292   @properties['iso_country']
293 end
network_access_profile_sid() click to toggle source

@return [String] The unique string that identifies the Network Access Profile resource

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
279 def network_access_profile_sid
280   @properties['network_access_profile_sid']
281 end
sid() click to toggle source

@return [String] The unique string that identifies the resource

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
273 def sid
274   @properties['sid']
275 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
323 def to_s
324   values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
325   "<Twilio.Supersim.V1.NetworkAccessProfileNetworkInstance #{values}>"
326 end
url() click to toggle source

@return [String] The absolute URL of the resource

    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
303 def url
304   @properties['url']
305 end