lib/twilio-ruby/rest/supersim/v1/sim.rb in twilio-ruby-5.40.1 vs lib/twilio-ruby/rest/supersim/v1/sim.rb in twilio-ruby-5.40.2
- old
+ new
@@ -28,11 +28,11 @@
##
# Lists SimInstance records from the API as a list.
# Unlike stream(), this operation is eager and will load `limit` records into
# memory before returning.
# @param [sim.Status] status The status of the Sim resources to read. Can be
- # `new`, `active`, `inactive`, or `scheduled`.
+ # `new`, `ready`, `active`, `inactive`, or `scheduled`.
# @param [String] fleet The SID or unique name of the Fleet to which a list of
# Sims are assigned.
# @param [String] iccid The
# [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID)
# associated with a Super SIM to filter the list by. Passing this parameter will
@@ -51,11 +51,11 @@
##
# Streams SimInstance records from the API as an Enumerable.
# This operation lazily loads records as efficiently as possible until the limit
# is reached.
# @param [sim.Status] status The status of the Sim resources to read. Can be
- # `new`, `active`, `inactive`, or `scheduled`.
+ # `new`, `ready`, `active`, `inactive`, or `scheduled`.
# @param [String] fleet The SID or unique name of the Fleet to which a list of
# Sims are assigned.
# @param [String] iccid The
# [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID)
# associated with a Super SIM to filter the list by. Passing this parameter will
@@ -91,11 +91,11 @@
##
# Retrieve a single page of SimInstance records from the API.
# Request is executed immediately.
# @param [sim.Status] status The status of the Sim resources to read. Can be
- # `new`, `active`, `inactive`, or `scheduled`.
+ # `new`, `ready`, `active`, `inactive`, or `scheduled`.
# @param [String] fleet The SID or unique name of the Fleet to which a list of
# Sims are assigned.
# @param [String] iccid The
# [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID)
# associated with a Super SIM to filter the list by. Passing this parameter will
@@ -199,27 +199,32 @@
# Update the SimInstance
# @param [String] unique_name An application-defined string that uniquely
# identifies the resource. It can be used in place of the resource's `sid` in the
# URL to address the resource.
# @param [sim.StatusUpdate] status The new status of the resource. Can be:
- # `active` or `inactive`. See the [Super SIM Status
+ # `ready`, `active`, or `inactive`. See the [Super SIM Status
# Values](https://www.twilio.com/docs/iot/supersim/api/sim-resource#status-values)
# for more info.
# @param [String] fleet The SID or unique name of the Fleet to which the SIM
# resource should be assigned.
# @param [String] callback_url The URL we should call using the `callback_method`
# after an asynchronous update has finished.
# @param [String] callback_method The HTTP method we should use to call
# `callback_url`. Can be: `GET` or `POST` and the default is POST.
+ # @param [String] account_sid The SID of the Account to which the Sim resource
+ # should belong. The Account SID can only be that of the requesting Account or
+ # that of a Subaccount of the requesting Account. Only valid when the Sim
+ # resource's status is new.
# @return [SimInstance] Updated SimInstance
- def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :unset, callback_method: :unset)
+ def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :unset, callback_method: :unset, account_sid: :unset)
data = Twilio::Values.of({
'UniqueName' => unique_name,
'Status' => status,
'Fleet' => fleet,
'CallbackUrl' => callback_url,
'CallbackMethod' => callback_method,
+ 'AccountSid' => account_sid,
})
payload = @version.update('POST', @uri, data: data)
SimInstance.new(@version, payload, sid: @solution[:sid], )
@@ -346,26 +351,31 @@
# Update the SimInstance
# @param [String] unique_name An application-defined string that uniquely
# identifies the resource. It can be used in place of the resource's `sid` in the
# URL to address the resource.
# @param [sim.StatusUpdate] status The new status of the resource. Can be:
- # `active` or `inactive`. See the [Super SIM Status
+ # `ready`, `active`, or `inactive`. See the [Super SIM Status
# Values](https://www.twilio.com/docs/iot/supersim/api/sim-resource#status-values)
# for more info.
# @param [String] fleet The SID or unique name of the Fleet to which the SIM
# resource should be assigned.
# @param [String] callback_url The URL we should call using the `callback_method`
# after an asynchronous update has finished.
# @param [String] callback_method The HTTP method we should use to call
# `callback_url`. Can be: `GET` or `POST` and the default is POST.
+ # @param [String] account_sid The SID of the Account to which the Sim resource
+ # should belong. The Account SID can only be that of the requesting Account or
+ # that of a Subaccount of the requesting Account. Only valid when the Sim
+ # resource's status is new.
# @return [SimInstance] Updated SimInstance
- def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :unset, callback_method: :unset)
+ def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :unset, callback_method: :unset, account_sid: :unset)
context.update(
unique_name: unique_name,
status: status,
fleet: fleet,
callback_url: callback_url,
callback_method: callback_method,
+ account_sid: account_sid,
)
end
##
# Provide a user friendly representation
\ No newline at end of file