lib/twilio-ruby/rest/supersim/v1/sim.rb in twilio-ruby-5.39.1 vs lib/twilio-ruby/rest/supersim/v1/sim.rb in twilio-ruby-5.39.2

- old
+ new

@@ -204,13 +204,23 @@ # `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. # @return [SimInstance] Updated SimInstance - def update(unique_name: :unset, status: :unset, fleet: :unset) - data = Twilio::Values.of({'UniqueName' => unique_name, 'Status' => status, 'Fleet' => fleet, }) + def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :unset, callback_method: :unset) + data = Twilio::Values.of({ + 'UniqueName' => unique_name, + 'Status' => status, + 'Fleet' => fleet, + 'CallbackUrl' => callback_url, + 'CallbackMethod' => callback_method, + }) payload = @version.update('POST', @uri, data: data) SimInstance.new(@version, payload, sid: @solution[:sid], ) end @@ -341,12 +351,22 @@ # `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. # @return [SimInstance] Updated SimInstance - def update(unique_name: :unset, status: :unset, fleet: :unset) - context.update(unique_name: unique_name, status: status, fleet: fleet, ) + def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :unset, callback_method: :unset) + context.update( + unique_name: unique_name, + status: status, + fleet: fleet, + callback_url: callback_url, + callback_method: callback_method, + ) end ## # Provide a user friendly representation def to_s \ No newline at end of file