class Twilio::REST::Supersim::V1::NetworkAccessProfileInstance
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Public Class Methods
Initialize the NetworkAccessProfileInstance
@param [Version] version Version
that contains the resource @param [Hash] payload payload that contains response from Twilio
@param [String] sid The SID of the Network Access Profile resource to fetch. @return [NetworkAccessProfileInstance] NetworkAccessProfileInstance
Twilio::REST::InstanceResource::new
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 250 def initialize(version, payload, sid: nil) 251 super(version) 252 253 # Marshaled Properties 254 @properties = { 255 'sid' => payload['sid'], 256 'unique_name' => payload['unique_name'], 257 'account_sid' => payload['account_sid'], 258 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 259 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 260 'url' => payload['url'], 261 'links' => payload['links'], 262 } 263 264 # Context 265 @instance_context = nil 266 @params = {'sid' => sid || @properties['sid'], } 267 end
Public Instance Methods
@return [String] The SID of the Account that the Network Access Profile belongs to
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 294 def account_sid 295 @properties['account_sid'] 296 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 [NetworkAccessProfileContext] NetworkAccessProfileContext
for this NetworkAccessProfileInstance
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 273 def context 274 unless @instance_context 275 @instance_context = NetworkAccessProfileContext.new(@version, @params['sid'], ) 276 end 277 @instance_context 278 end
@return [Time] The ISO 8601 date and time in GMT when the resource was created
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 300 def date_created 301 @properties['date_created'] 302 end
@return [Time] The ISO 8601 date and time in GMT when the resource was last updated
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 306 def date_updated 307 @properties['date_updated'] 308 end
Fetch the NetworkAccessProfileInstance
@return [NetworkAccessProfileInstance] Fetched NetworkAccessProfileInstance
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 325 def fetch 326 context.fetch 327 end
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 353 def inspect 354 values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") 355 "<Twilio.Supersim.V1.NetworkAccessProfileInstance #{values}>" 356 end
@return [String] The links
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 318 def links 319 @properties['links'] 320 end
Access the networks @return [networks] networks
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 340 def networks 341 context.networks 342 end
@return [String] The unique string that identifies the resource
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 282 def sid 283 @properties['sid'] 284 end
Provide a user friendly representation
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 346 def to_s 347 values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") 348 "<Twilio.Supersim.V1.NetworkAccessProfileInstance #{values}>" 349 end
@return [String] An application-defined string that uniquely identifies the resource
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 288 def unique_name 289 @properties['unique_name'] 290 end
Update the NetworkAccessProfileInstance
@param [String] unique_name
The new unique name of the Network Access Profile. @return [NetworkAccessProfileInstance] Updated NetworkAccessProfileInstance
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 333 def update(unique_name: :unset) 334 context.update(unique_name: unique_name, ) 335 end
@return [String] The absolute URL of the resource
# File lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb 312 def url 313 @properties['url'] 314 end