Class: Twilio::REST::Supersim::V1::NetworkAccessProfileContext::NetworkAccessProfileNetworkInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Supersim::V1::NetworkAccessProfileContext::NetworkAccessProfileNetworkInstance
- Defined in:
- lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
Instance Method Summary collapse
-
#context ⇒ NetworkAccessProfileNetworkContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#delete ⇒ Boolean
Delete the NetworkAccessProfileNetworkInstance.
-
#fetch ⇒ NetworkAccessProfileNetworkInstance
Fetch the NetworkAccessProfileNetworkInstance.
-
#friendly_name ⇒ String
A human readable identifier of the Network this resource refers to.
-
#identifiers ⇒ Array<Hash>
Array of objects identifying the [MCC-MNCs](en.wikipedia.org/wiki/Mobile_country_code) that are included in the Network resource.
-
#initialize(version, payload, network_access_profile_sid: nil, sid: nil) ⇒ NetworkAccessProfileNetworkInstance
constructor
Initialize the NetworkAccessProfileNetworkInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#iso_country ⇒ String
The [ISO country code](en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resource.
-
#network_access_profile_sid ⇒ String
The unique string that identifies the Network resource’s Network Access Profile resource.
-
#sid ⇒ String
The unique string that identifies the Network resource.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The absolute URL of the Network resource.
Constructor Details
#initialize(version, payload, network_access_profile_sid: nil, sid: nil) ⇒ NetworkAccessProfileNetworkInstance
Initialize the NetworkAccessProfileNetworkInstance
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 243 def initialize(version, payload , network_access_profile_sid: nil, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'network_access_profile_sid' => payload['network_access_profile_sid'], 'friendly_name' => payload['friendly_name'], 'iso_country' => payload['iso_country'], 'identifiers' => payload['identifiers'], 'url' => payload['url'], } # Context @instance_context = nil @params = { 'network_access_profile_sid' => network_access_profile_sid || @properties['network_access_profile_sid'] ,'sid' => sid || @properties['sid'] , } end |
Instance Method Details
#context ⇒ NetworkAccessProfileNetworkContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
265 266 267 268 269 270 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 265 def context unless @instance_context @instance_context = NetworkAccessProfileNetworkContext.new(@version , @params['network_access_profile_sid'], @params['sid']) end @instance_context end |
#delete ⇒ Boolean
Delete the NetworkAccessProfileNetworkInstance
311 312 313 314 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 311 def delete context.delete end |
#fetch ⇒ NetworkAccessProfileNetworkInstance
Fetch the NetworkAccessProfileNetworkInstance
319 320 321 322 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 319 def fetch context.fetch end |
#friendly_name ⇒ String
Returns A human readable identifier of the Network this resource refers to.
286 287 288 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 286 def friendly_name @properties['friendly_name'] end |
#identifiers ⇒ Array<Hash>
Returns Array of objects identifying the [MCC-MNCs](en.wikipedia.org/wiki/Mobile_country_code) that are included in the Network resource.
298 299 300 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 298 def identifiers @properties['identifiers'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
333 334 335 336 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 333 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Supersim.V1.NetworkAccessProfileNetworkInstance #{values}>" end |
#iso_country ⇒ String
Returns The [ISO country code](en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resource.
292 293 294 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 292 def iso_country @properties['iso_country'] end |
#network_access_profile_sid ⇒ String
Returns The unique string that identifies the Network resource’s Network Access Profile resource.
280 281 282 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 280 def network_access_profile_sid @properties['network_access_profile_sid'] end |
#sid ⇒ String
Returns The unique string that identifies the Network resource.
274 275 276 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 274 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
326 327 328 329 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 326 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Supersim.V1.NetworkAccessProfileNetworkInstance #{values}>" end |
#url ⇒ String
Returns The absolute URL of the Network resource.
304 305 306 |
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 304 def url @properties['url'] end |