class Twilio::REST::Supersim::V1::NetworkAccessProfileContext::NetworkAccessProfileNetworkContext

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

Public Class Methods

new(version, network_access_profile_sid, sid) click to toggle source

Initialize the NetworkAccessProfileNetworkContext @param [Version] version Version that contains the resource @param [String] network_access_profile_sid The unique string that identifies the

Network Access Profile resource.

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

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
180 def initialize(version, network_access_profile_sid, sid)
181   super(version)
182 
183   # Path Solution
184   @solution = {network_access_profile_sid: network_access_profile_sid, sid: sid, }
185   @uri = "/NetworkAccessProfiles/#{@solution[:network_access_profile_sid]}/Networks/#{@solution[:sid]}"
186 end

Public Instance Methods

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
191 def delete
192    @version.delete('DELETE', @uri)
193 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
198 def fetch
199   payload = @version.fetch('GET', @uri)
200 
201   NetworkAccessProfileNetworkInstance.new(
202       @version,
203       payload,
204       network_access_profile_sid: @solution[:network_access_profile_sid],
205       sid: @solution[:sid],
206   )
207 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
218 def inspect
219   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
220   "#<Twilio.Supersim.V1.NetworkAccessProfileNetworkContext #{context}>"
221 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
211 def to_s
212   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
213   "#<Twilio.Supersim.V1.NetworkAccessProfileNetworkContext #{context}>"
214 end