8000 [Librarian] Regenerated @ 36666be96315587760af943d4fe939d892f128d7 · githubib/twilio-python@a89ff43 · GitHub
[go: up one dir, main page]

Skip to content

Commit a89ff43

Browse files
committed
[Librarian] Regenerated @ 36666be96315587760af943d4fe939d892f128d7
1 parent 793554c commit a89ff43

File tree

9 files changed

+87
-114
lines changed

9 files changed

+87
-114
lines changed

CHANGES.md

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

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

6+
[2019-09-18] Version 6.31.0
7+
----------------------------
8+
**Numbers**
9+
- Add v2 of the Identites API
10+
11+
**Preview**
12+
- Changed authentication method for SDK Trusted Comms endpoints: `/CPS`, `/CurrentCall`, and `/Devices`. Please use `Authorization: Bearer <xCNAM JWT>` **(breaking change)**
13+
14+
**Voice**
15+
- Add Recordings endpoints
16+
17+
618
[2019-09-04] Version 6.30.0
719
----------------------------
820
**Api**

VERSIONS.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ all changes to the helper library. It is strongly encouraged that you pin at
55
least the major version and potentially the minor version to avoid pulling in
66
breaking changes.
77

8-
Semantic Versions take the form of `MAJOR`.`MINOR`.`PATCH`
8+
Semantic Versions take the form of `MAJOR.MINOR.PATCH`
99

10-
When bugs are fixed in the library in a backwards compatible way, the `PATCH`
10+
When bugs are fixed in the library in a backwards-compatible way, the `PATCH`
1111
level will be incremented by one. When new features are added to the library
12-
in a backwards compatible way, the `PATCH` level will be incremented by one.
12+
in a backwards-compatible way, the `PATCH` level will be incremented by one.
1313
`PATCH` changes should _not_ break your code and are generally safe for upgrade.
1414

1515
When a new large feature set comes online or a small breaking change is
@@ -19,18 +19,17 @@ change for upgrade. These backwards-incompatible changes will generally be
1919
limited to a small number of function signature changes.
2020

2121
The `MAJOR` version is used to indicate the family of technology represented by
22-
the helper library. Breaking changes that requires extensive reworking of code
23-
will case the `MAJOR` version to be incremented by one, and the `MINOR` and
22+
the helper library. Breaking changes that require extensive reworking of code
23+
will cause the `MAJOR` version to be incremented by one, and the `MINOR` and
2424
`PATCH` versions will be reset to zero. Twilio understands that this can be very
2525
disruptive, so we will only introduce this type of breaking change when
2626
absolutely necessary. New `MAJOR` versions will be communicated in advance with
2727
`Release Candidates` and a schedule.
2828

2929
## Supported Versions
3030

31-
`twilio-python` follows an evergreen model of support. New features and
32-
functionality will only be added to the current version. The current version -
33-
1 will continue to be supported with bug fixes and security updates, but no new
34-
features.
31+
Only the current `MAJOR` version of `twilio-python` is supported. New
32+
features, functionality, bug fixes, and security updates will only be added to
33+
the current `MAJOR` version.
3534

36-
[semver]: http://semver.org/
35+
[semver]: https://semver.org

tests/integration/monitor/v1/test_alert.py

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ def test_fetch_response(self):
4545
"resource_sid": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4646
"response_body": "response_body",
4747
"response_headers": "response_headers",
48+
"request_headers": "request_headers",
4849
"sid": "NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa F438 ",
49-
"url": "https://monitor.twilio.com/v1/Alerts/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
50+
"url": "https://monitor.twilio.com/v1/Alerts/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
51+
"service_sid": "PNe2cd757cd5257b0217a447933a0290d2"
5052
}
5153
'''
5254
))
@@ -55,27 +57,6 @@ def test_fetch_response(self):
5557

5658
self.assertIsNotNone(actual)
5759

58-
def test_delete_request(self):
59-
self.holodeck.mock(Response(500, ''))
60-
61-
with self.assertRaises(TwilioException):
62-
self.client.monitor.v1.alerts(sid="NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete()
63-
64-
self.holodeck.assert_has_request(Request(
65-
'delete',
66-
'https://monitor.twilio.com/v1/Alerts/NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
67-
))
68-
69-
def test_delete_response(self):
70-
self.holodeck.mock(Response(
71-
204,
72-
None,
73-
))
74-
75-
actual = self.client.monitor.v1.alerts(sid="NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete()
76-
77-
self.assertTrue(actual)
78-
7960
def test_list_request(self):
8061
self.holodeck.mock(Response(500, ''))
8162

@@ -130,7 +111,8 @@ def test_read_full_response(self):
130111
"request_url": "http://www.example.com",
131112
"resource_sid": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
132113
"sid": "NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
133-
"url": "https://monitor.twilio.com/v1/Alerts/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
114+
"url": "https://monitor.twilio.com/v1/Alerts/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
115+
"service_sid": "PNe2cd757cd5257b0217a447933a0290d2"
134116
}
135117
],
136118
"meta": {

twilio/rest/conversations/v1/conversation/__init__.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919

2020

2121
class ConversationList(ListResource):
22-
""" PLEASE NOTE that this class contains preview products that are subject
23-
to change. Use them with caution. If you currently do not have developer
24-
preview access, please contact help@twilio.com. """
22+
""" PLEASE NOTE that this class contains beta products that are subject to
23+
change. Use them with caution. """
2524

2625
def __init__(self, version):
2726
"""
@@ -183,9 +182,8 @@ def __repr__(self):
183182

184183

185184
class ConversationPage(Page):
186-
""" PLEASE NOTE that this class contains preview products that are subject
187-
to change. Use them with caution. If you currently do not have developer
188-
preview access, please contact help@twilio.com. """
185+
""" PLEASE NOTE that this class contains beta products that are subject to
186+
change. Use them with caution. """
189187

190188
def __init__(self, version, response, solution):
191189
"""
@@ -224,9 +222,8 @@ def __repr__(self):
224222

225223

226224
class ConversationContext(InstanceContext):
227-
""" PLEASE NOTE that this class contains preview products that are subject
228-
to change. Use them with caution. If you currently do not have developer
229-
preview access, please contact help@twilio.com. """
225+
""" PLEASE NOTE that this class contains beta products that are subject to
226+
change. Use them with caution. """
230227

231228
def __init__(self, version, sid):
232229
"""
@@ -351,9 +348,8 @@ def __repr__(self):
351348

352349

353350
class ConversationInstance(InstanceResource):
354-
""" PLEASE NOTE that this class contains preview products that are subject
355-
to change. Use them with caution. If you currently do not have developer
356-
preview access, please contact help@twilio.com. """
351+
""" PLEASE NOTE that this class contains beta products that are subject to
352+
change. Use them with caution. """
357353

358354
class WebhookEnabledType(object):
359355
TRUE = "true"

twilio/rest/conversations/v1/conversation/message.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616

1717

1818
class MessageList(ListResource):
19-
""" PLEASE NOTE that this class contains preview products that are subject
20-
to change. Use them with caution. If you currently do not have developer
21-
preview access, please contact help@twilio.com. """
19+
""" PLEASE NOTE that this class contains beta products that are subject to
20+
change. Use them with caution. """
2221

2322
def __init__(self, version, conversation_sid):
2423
"""
@@ -181,9 +180,8 @@ def __repr__(self):
181180

182181

183182
class MessagePage(Page):
184-
""" PLEASE NOTE that this class contains preview products that are subject
185-
to change. Use them with caution. If you currently do not have developer
186-
preview access, please contact help@twilio.com. """
183+
""" PLEASE NOTE that this class contains beta products that are subject to
184+
change. Use them with caution. """
187185

188186
def __init__(self, version, response, solution):
189187
"""
@@ -223,9 +221,8 @@ def __repr__(self):
223221

224222

225223
class MessageContext(InstanceContext):
226-
""" PLEASE NOTE that this class contains preview products that are subject
227-
to change. Use them with caution. If you currently do not have developer
228-
preview access, please contact help@twilio.com. """
224+
""" PLEASE NOTE that this class contains beta products that are subject to
225+
change. Use them with caution. """
229226

230227
def __init__(self, version, conversation_sid, sid):
231228
"""
@@ -323,9 +320,8 @@ def __repr__(self):
323320

324321

325322
class MessageInstance(InstanceResource):
326-
""" PLEASE NOTE that this class contains preview products that are subject
327-
to change. Use them with caution. If you currently do not have developer
328-
preview access, please contact help@twilio.com. """
323+
""" PLEASE NOTE that this class contains beta products that are subject to
324+
change. Use them with caution. """
329325

330326
class WebhookEnabledType(object):
331327
TRUE = "true"

twilio/rest/conversations/v1/conversation/participant.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616

1717

1818
class ParticipantList(ListResource):
19-
""" PLEASE NOTE that this class contains preview products that are subject
20-
to change. Use them with caution. If you currently do not have developer
21-
preview access, please contact help@twilio.com. """
19+
""" PLEASE NOTE that this class contains beta products that are subject to
20+
change. Use them with caution. """
2221

2322
def __init__(self, version, conversation_sid):
2423
"""
@@ -196,9 +195,8 @@ def __repr__(self):
196195

197196

198197
class ParticipantPage(Page):
199-
""" PLEASE NOTE that this class contains preview products that are subject
200-
to change. Use them with caution. If you currently do not have developer
201-
preview access, please contact help@twilio.com. """
198+
""" PLEASE NOTE that this class contains beta products that are subject to
199+
change. Use them with caution. """
202200

203201
def __init__(self, version, response, solution):
204202
"""
@@ -242,9 +240,8 @@ def __repr__(self):
242240

243241

244242
class ParticipantContext(InstanceContext):
245-
""" PLEASE NOTE that this class contains preview products that are subject
246-
to change. Use them with caution. If you currently do not have developer
247-
preview access, please contact help@twilio.com. """
243+
""" PLEASE NOTE that this class contains beta products that are subject to
244+
change. Use them with caution. """
248245

249246
def __init__(self, version, conversation_sid, sid):
250247
"""
@@ -337,9 +334,8 @@ def __repr__(self):
337334

338335

339336
class ParticipantInstance(InstanceResource):
340-
""" PLEASE NOTE that this class contains preview products that are subject
341-
to change. Use them with caution. If you currently do not have developer
342-
preview access, please contact help@twilio.com. """
337+
""" PLEASE NOTE that this class contains beta products that are subject to
338+
change. Use them with caution. """
343339

344340
class WebhookEnabledType(object):
345341
TRUE = "true"

twilio/rest/conversations/v1/conversation/webhook.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616

1717

1818
class WebhookList(ListResource):
19-
""" PLEASE NOTE that this class contains preview products that are subject
20-
to change. Use them with caution. If you currently do not have developer
21-
preview access, please contact help@twilio.com. """
19+
""" PLEASE NOTE that this class contains beta products that are subject to
20+
change. Use them with caution. """
2221

2322
def __init__(self, version, conversation_sid):
2423
"""
@@ -188,9 +187,8 @@ def __repr__(self):
188187

189188

190189
class WebhookPage(Page):
191-
""" PLEASE NOTE that this class contains preview products that are subject
192-
to change. Use them with caution. If you currently do not have developer
193-
preview access, please contact help@twilio.com. """
190+
""" PLEASE NOTE that this class contains beta products that are subject to
191+
change. Use them with caution. """
194192

195193
def __init__(self, version, response, solution):
196194
"""
@@ -230,9 +228,8 @@ def __repr__(self):
230228

231229

232230
class WebhookContext(InstanceContext):
233-
""" PLEASE NOTE that this class contains preview products that are subject
234-
to change. Use them with caution. If you currently do not have developer
235-
preview access, please contact help@twilio.com. """
231+
""" PLEASE NOTE that this class contains beta products that are subject to
232+
change. Use them with caution. """
236233

237234
def __init__(self, version, conversation_sid, sid):
238235
"""
@@ -332,9 +329,8 @@ def __repr__(self):
332329

333330

334331
class WebhookInstance(InstanceResource):
335-
""" PLEASE NOTE that this class contains preview products that are subject
336-
to change. Use them with caution. If you currently do not have developer
337-
preview access, please contact help@twilio.com. """
332+
""" PLEASE NOTE that this class contains beta products that are subject to
333+
change. Use them with caution. """
338334

339335
class Target(object):
340336
WEBHOOK = "webhook"

twilio/rest/conversations/v1/webhook.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515

1616

1717
class WebhookList(ListResource):
18-
""" PLEASE NOTE that this class contains preview products that are subject
19-
to change. Use them with caution. If you currently do not have developer
20-
preview access, please contact help@twilio.com. """
18+
""" PLEASE NOTE that this class contains beta products that are subject to
19+
change. Use them with caution. """
2120

2221
def __init__(self, version):
2322
"""
@@ -62,9 +61,8 @@ def __repr__(self):
6261

6362

6463
class WebhookPage(Page):
65-
""" PLEASE NOTE that this class contains preview products that are subject
66-
to change. Use them with caution. If you currently do not have developer
67-
preview access, please contact help@twilio.com. """
64+
""" PLEASE NOTE that this class contains beta products that are subject to
65+
change. Use them with caution. """
6866

6967
def __init__(self, version, response, solution):
7068
"""
@@ -103,9 +101,8 @@ def __repr__(self):
103101

104102

105103
class WebhookContext(InstanceContext):
106-
""" PLEASE NOTE that this class contains preview products that are subject
107-
to change. Use them with caution. If you currently do not have developer
108-
preview access, please contact help@twilio.com. """
104+
""" PLEASE NOTE that this class contains beta products that are subject to
105+
change. Use them with caution. """
109106

110107
def __init__(self, version):
111108
"""
@@ -182,9 +179,8 @@ def __repr__(self):
182179

183180

184181
class WebhookInstance(InstanceResource):
185-
""" PLEASE NOTE that this class contains preview products that are subject
186-
to change. Use them with caution. If you currently do not have developer
187-
preview access, please contact help@twilio.com. """
182+
""" PLEASE NOTE that this class contains beta products that are subject to
183+
change. Use them with caution. """
188184

189185
class Target(object):
190186
WEBHOOK = "webhook"

0 commit comments

Comments
 (0)
0