Class: Twilio::REST::Supersim::V1::EsimProfileInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Supersim::V1::EsimProfileInstance
- Defined in:
- lib/twilio-ruby/rest/supersim/v1/esim_profile.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the Account to which the eSIM Profile resource belongs.
-
#context ⇒ EsimProfileContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#date_created ⇒ Time
The ISO 8601 date and time in GMT when the resource was created.
-
#date_updated ⇒ Time
The ISO 8601 date and time in GMT when the resource was last updated.
-
#eid ⇒ String
Identifier of the eUICC that can claim the eSIM Profile.
-
#error_code ⇒ String
Code indicating the failure if the download of the SIM Profile failed and the eSIM Profile is in ‘failed` state.
-
#error_message ⇒ String
Error message describing the failure if the download of the SIM Profile failed and the eSIM Profile is in ‘failed` state.
-
#fetch ⇒ EsimProfileInstance
Fetch the EsimProfileInstance.
-
#iccid ⇒ String
The ICCID associated with the Sim resource.
-
#initialize(version, payload, sid: nil) ⇒ EsimProfileInstance
constructor
Initialize the EsimProfileInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#sid ⇒ String
The unique string that identifies the resource.
-
#sim_sid ⇒ String
The SID of the Sim resource that this eSIM Profile controls.
-
#smdp_plus_address ⇒ String
Address of the SM-DP+ server from which the Profile will be downloaded.
-
#status ⇒ esim_profile.Status
The status of the eSIM Profile.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The absolute URL of the eSIM Profile resource.
Constructor Details
#initialize(version, payload, sid: nil) ⇒ EsimProfileInstance
Initialize the EsimProfileInstance
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 241 def initialize(version, payload, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'iccid' => payload['iccid'], 'sim_sid' => payload['sim_sid'], 'status' => payload['status'], 'eid' => payload['eid'], 'smdp_plus_address' => payload['smdp_plus_address'], 'error_code' => payload['error_code'], 'error_message' => payload['error_message'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'url' => payload['url'], } # Context @instance_context = nil @params = {'sid' => sid || @properties['sid'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the Account to which the eSIM Profile resource belongs.
284 285 286 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 284 def account_sid @properties['account_sid'] end |
#context ⇒ EsimProfileContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
269 270 271 272 273 274 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 269 def context unless @instance_context @instance_context = EsimProfileContext.new(@version, @params['sid'], ) end @instance_context end |
#date_created ⇒ Time
Returns The ISO 8601 date and time in GMT when the resource was created.
332 333 334 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 332 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The ISO 8601 date and time in GMT when the resource was last updated.
338 339 340 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 338 def date_updated @properties['date_updated'] end |
#eid ⇒ String
Returns Identifier of the eUICC that can claim the eSIM Profile.
308 309 310 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 308 def eid @properties['eid'] end |
#error_code ⇒ String
Returns Code indicating the failure if the download of the SIM Profile failed and the eSIM Profile is in ‘failed` state.
320 321 322 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 320 def error_code @properties['error_code'] end |
#error_message ⇒ String
Returns Error message describing the failure if the download of the SIM Profile failed and the eSIM Profile is in ‘failed` state.
326 327 328 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 326 def @properties['error_message'] end |
#fetch ⇒ EsimProfileInstance
Fetch the EsimProfileInstance
351 352 353 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 351 def fetch context.fetch end |
#iccid ⇒ String
Returns The ICCID associated with the Sim resource.
290 291 292 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 290 def iccid @properties['iccid'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
364 365 366 367 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 364 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Supersim.V1.EsimProfileInstance #{values}>" end |
#sid ⇒ String
Returns The unique string that identifies the resource.
278 279 280 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 278 def sid @properties['sid'] end |
#sim_sid ⇒ String
Returns The SID of the Sim resource that this eSIM Profile controls.
296 297 298 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 296 def sim_sid @properties['sim_sid'] end |
#smdp_plus_address ⇒ String
Returns Address of the SM-DP+ server from which the Profile will be downloaded.
314 315 316 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 314 def smdp_plus_address @properties['smdp_plus_address'] end |
#status ⇒ esim_profile.Status
Returns The status of the eSIM Profile.
302 303 304 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 302 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
357 358 359 360 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 357 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Supersim.V1.EsimProfileInstance #{values}>" end |
#url ⇒ String
Returns The absolute URL of the eSIM Profile resource.
344 345 346 |
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 344 def url @properties['url'] end |