@@ -236,18 +236,27 @@ def fetch(self):
236
236
return SimInstance (self ._version , payload , sid = self ._solution ['sid' ], )
237
237
238
238
def update (self , unique_name = values .unset , status = values .unset ,
239
- fleet = values .unset ):
239
+ fleet = values .unset , callback_url = values .unset ,
240
+ callback_method = values .unset ):
240
241
"""
241
242
Update the SimInstance
242
243
243
244
:param unicode unique_name: An application-defined string that uniquely identifies the resource
244
245
:param SimInstance.StatusUpdate status: The new status of the Super SIM
245
246
:param unicode fleet: The SID or unique name of the Fleet to which the SIM resource should be assigned
247
+ :param unicode callback_url: The URL we should call after the update has finished
248
+ :param unicode callback_method: The HTTP method we should use to call callback_url
246
249
247
250
:returns: The updated SimInstance
248
251
:rtype: twilio.rest.supersim.v1.sim.SimInstance
249
252
"""
250
- data = values .of ({'UniqueName' : unique_name , 'Status' : status , 'Fleet' : fleet , })
253
+ data = values .of ({
254
+ 'UniqueName' : unique_name ,
255
+ 'Status' : status ,
256
+ 'Fleet' : fleet ,
257
+ 'CallbackUrl' : callback_url ,
258
+ 'CallbackMethod' : callback_method ,
259
+ })
251
260
252
261
payload = self ._version .update (method = 'POST' , uri = self ._uri , data = data , )
253
262
@@ -402,18 +411,27 @@ def fetch(self):
402
411
return self ._proxy .fetch ()
403
412
404
413
def update (self , unique_name = values .unset , status = values .unset ,
405
- fleet = values .unset ):
414
+ fleet = values .unset , callback_url = values .unset ,
415
+ callback_method = values .unset ):
406
416
"""
407
417
Update the SimInstance
408
418
409
419
:param unicode unique_name: An application-defined string that uniquely identifies the resource
410
420
:param SimInstance.StatusUpdate status: The new status of the Super SIM
411
421
:param unicode fleet: The SID or unique name of the Fleet to which the SIM resource should be assigned
422
+ :param unicode callback_url: The URL we should call after the update has finished
423
+ :param unicode callback_method: The HTTP method we should use to call callback_url
412
424
413
425
:returns: The updated SimInstance
414
426
:rtype: twilio.rest.supersim.v1.sim.SimInstance
415
427
"""
416
- return self ._proxy .update (unique_name = unique_name , status = status , fleet = fleet , )
428
+ return self ._proxy .update (
429
+ unique_name = unique_name ,
430
+ status = status ,
431
+ fleet = fleet ,
432
+ callback_url = callback_url ,
433
+ callback_method = callback_method ,
434
+ )
417
435
418
436
def __repr__ (self ):
419
437
"""
0 commit comments