8000 [Librarian] Regenerated @ 46bc80dd352bb45f85c1a940695572374669174e · githubib/twilio-python@511d943 · GitHub
[go: up one dir, main page]

Skip to content

Commit 511d943

Browse files
committed
[Librarian] Regenerated @ 46bc80dd352bb45f85c1a940695572374669174e
1 parent 9eee1ca commit 511d943

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ twilio-python Changelog
33

44
Here you can see the full list of changes between each twilio-python release.
55

6+
[2020-07-22] Version 6.44.1
7+
---------------------------
8+
**Api**
9+
- Add optional Click Tracking and Scheduling parameters to Create action of Message resource
10+
11+
**Supersim**
12+
- Add callback_url and callback_method parameters to Sim resource update request
13+
14+
615
[2020-07-08] Version 6.44.0
716
---------------------------
817
**Library - Feature**

twilio/rest/api/v2010/account/message/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ class AddressRetention(object):
428428
class TrafficType(object):
429429
FREE = "free"
430430

431+
class ScheduleType(object):
432+
FIXED = "fixed"
433+
OPTIMIZE = "optimize"
434+
431435
def __init__(self, version, payload, account_sid, sid=None):
432436
"""
433437
Initialize the MessageInstance

twilio/rest/supersim/v1/sim.py

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,18 +236,27 @@ def fetch(self):
236236
return SimInstance(self._version, payload, sid=self._solution['sid'], )
237237

238238
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):
240241
"""
241242
Update the SimInstance
242243
243244
:param unicode unique_name: An application-defined string that uniquely identifies the resource
244245
:param SimInstance.StatusUpdate status: The new status of the Super SIM
245246
: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
246249
247250
:returns: The updated SimInstance
248251
:rtype: twilio.rest.supersim.v1.sim.SimInstance
249252
"""
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+
})
251260

252261
payload = self._version.update(method='POST', uri=self._uri, data=data, )
253262

@@ -402,18 +411,27 @@ def fetch(self):
402411
return self._proxy.fetch()
403412

404413
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):
406416
"""
407417
Update the SimInstance
408418
409419
:param unicode unique_name: An application-defined string that uniquely identifies the resource
410420
:param SimInstance.StatusUpdate status: The new status of the Super SIM
411421
: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
412424
413425
:returns: The updated SimInstance
414426
:rtype: twilio.rest.supersim.v1.sim.SimInstance
415427
"""
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+
)
417435

418436
def __repr__(self):
419437
"""

0 commit comments

Comments
 (0)
0