8000 [Librarian] Regenerated @ ea687051c299d913d47e5ccde2b85955dc738246 · githubib/twilio-python@2192e33 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2192e33

Browse files
committed
[Librarian] Regenerated @ ea687051c299d913d47e5ccde2b85955dc738246
1 parent 19244cf commit 2192e33

File tree

19 files changed

+261
-165
lines changed

19 files changed

+261
-165
lines changed

CHANGES.md

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

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

6+
[2021-03-15] Version 6.54.0
7+
---------------------------
8+
**Library - Chore**
9+
- [PR #563](https://github.com/twilio/twilio-python/pull/563): Add support for python 3.9. Thanks to [@tim-schilling](https://github.com/tim-schilling)!
10+
11+
**Events**
12+
- Set maturity to beta
13+
14+
**Messaging**
15+
- Adjust A2P brand registration status enum **(breaking change)**
16+
17+
**Studio**
18+
- Remove internal safeguards for Studio V2 API usage now that it's GA
19+
20+
**Verify**
21+
- Add support for creating and verifying totp factors. Support for totp factors is behind the `api.verify.totp` beta feature.
22+
23+
**Twiml**
24+
- Add support for `<VirtualAgent>` noun
25+
26+
627
[2021-02-24] Version 6.53.0
728
---------------------------
829
**Library - Chore**

tests/integration/api/v2010/account/test_message.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,42 @@ def test_create_with_messaging_service_response(self):
137137

138138
self.assertIsNotNone(actual)
139139

140+
def test_create_with_queued_status_response(self):
141+
self.holodeck.mock(Response(
142+
201,
143+
'''
144+
{
145+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
146+
"api_version": "2010-04-01",
147+
"body": "Hello! \\ud83d\\udc4d",
148+
"date_created": "Thu, 30 Jul 2015 20:12:31 +0000",
149+
"date_sent": "Thu, 30 Jul 2015 20:12:33 +0000",
150+
"date_updated": "Thu, 30 Jul 2015 20:12:33 +0000",
151+
"direction": "outbound-api",
152+
"error_code": null,
153+
"error_message": null,
154+
"from": "+14155552345",
155+
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
156+
"num_media": "0",
157+
"num_segments": "1",
158+
"price": null,
159+
"price_unit": null,
160+
"sid": "SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
161+
"status": "queued",
162+
"subresource_uris": {
163+
"media": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media.json"
164+
},
165+
"to": "+14155552345",
166+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
167+
}
168+
'''
169+
))
170+
171+
actual = self.client.api.v2010.accounts("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
172+
.messages.create(to="+15558675310")
173+
174+
self.assertIsNotNone(actual)
175+
140176
def test_delete_request(self):
141177
self.holodeck.mock(Response(500, ''))
142178

tests/integration/messaging/v1/test_brand_registration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_fetch_response(self):
3636
"a2p_profile_bundle_sid": "BU3344409f7e067e279523808d267e2d85",
3737
"date_created": "2021-01-27T14:18:35Z",
3838
"date_updated": "2021-01-27T14:18:36Z",
39-
"status": "IN_PROGRESS",
39+
"status": "PENDING",
4040
"tcr_id": "BXXXXXX",
4141
"failure_reason": "Registration error",
4242
"url": "https://messaging.twilio.com/v1/a2p/BrandRegistrations/BN0044409f7e067e279523808d267e2d85"
@@ -81,7 +81,7 @@ def test_read_response(self):
8181
"a2p_profile_bundle_sid": "BU3344409f7e067e279523808d267e2d85",
8282
"date_created": "2021-01-27T14:18:35Z",
8383
"date_updated": "2021-01-27T14:18:36Z",
84-
"status": "IN_PROGRESS",
84+
"status": "APPROVED",
8585
"tcr_id": "BXXXXXX",
8686
"failure_reason": "Registration error",
8787
"url": "https://messaging.twilio.com/v1/a2p/BrandRegistrations/BN0044409f7e067e279523808d267e2d85"

tests/integration/verify/v2/service/entity/test_factor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_create_request(self):
3030
data=values,
3131
))
3232

33-
def test_create_response(self):
33+
def test_create_push_response(self):
3434
self.holodeck.mock(Response(
3535
201,
3636
'''
@@ -100,7 +100,7 @@ def test_fetch_request(self):
100100
'https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/identity/Factors/YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
101101
))
102102

103-
def test_fetch_response(self):
103+
def test_fetch_push_response(self):
104104
self.holodeck.mock(Response(
105105
200,
106106
'''
@@ -228,7 +228,7 @@ def test_update_request(self):
228228
'https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/identity/Factors/YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
229229
))
230230

231-
def test_verify_response(self):
231+
def test_verify_push_response(self):
232232
self.holodeck.mock(Response(
233233
200,
234234
'''

twilio/rest/events/v1/event_type.py

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

1616

1717
class EventTypeList(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
"""
@@ -144,9 +143,8 @@ def __repr__(self):
144143

145144

146145
class EventTypePage(Page):
147-
""" PLEASE NOTE that this class contains preview products that are subject
148-
to change. Use them with caution. If you currently do not have developer
149-
preview access, please contact help@twilio.com. """
146+
""" PLEASE NOTE that this class contains beta products that are subject to
147+
change. Use them with caution. """
150148

151149
def __init__(self, version, response, solution):
152150
"""
@@ -185,9 +183,8 @@ def __repr__(self):
185183

186184

187185
class EventTypeContext(InstanceContext):
188-
""" PLEASE NOTE that this class contains preview products that are subject
189-
to change. Use them with caution. If you currently do not have developer
190-
preview access, please contact help@twilio.com. """
186+
""" PLEASE NOTE that this class contains beta products that are subject to
187+
change. Use them with caution. """
191188

192189
def __init__(self, version, type):
193190
"""
@@ -228,9 +225,8 @@ def __repr__(self):
228225

229226

230227
class EventTypeInstance(InstanceResource):
231-
""" PLEASE NOTE that this class contains preview products that are subject
232-
to change. Use them with caution. If you currently do not have developer
233-
preview access, please contact help@twilio.com. """
228+
""" PLEASE NOTE that this class contains beta products that are subject to
229+
change. Use them with caution. """
234230

235231
def __init__(self, version, payload, type=None):
236232
"""

twilio/rest/events/v1/schema/__init__.py

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

1717

1818
class SchemaList(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):
2423
"""
@@ -67,9 +66,8 @@ def __repr__(self):
6766

6867

6968
class SchemaPage(Page):
70-
""" PLEASE NOTE that this class contains preview products that are subject
71-
to change. Use them with caution. If you currently do not have developer
72-
preview access, please contact help@twilio.com. """
69+
""" PLEASE NOTE that this class contains beta products that are subject to
70+
change. Use them with caution. """
7371

7472
def __init__(self, version, response, solution):
7573
"""
@@ -108,9 +106,8 @@ def __repr__(self):
108106

109107

110108
class SchemaContext(InstanceContext):
111-
""" PLEASE NOTE that this class contains preview products that are subject
112-
to change. Use them with caution. If you currently do not have developer
113-
preview access, please contact help@twilio.com. """
109+
""" PLEASE NOTE that this class contains beta products that are subject to
110+
change. Use them with caution. """
114111

115112
def __init__(self, version, id):
116113
"""
@@ -166,9 +163,8 @@ def __repr__(self):
166163

167164

168165
class SchemaInstance(InstanceResource):
169-
""" PLEASE NOTE that this class contains preview products that are subject
170-
to change. Use them with caution. If you currently do not have developer
171-
preview access, please contact help@twilio.com. """
166+
""" PLEASE NOTE that this class contains beta products that are subject to
167+
change. Use them with caution. """
172168

173169
def __init__(self, version, payload, id=None):
174170
"""

twilio/rest/events/v1/schema/schema_version.py

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

1616

1717
class VersionList(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, id):
2322
"""
@@ -145,9 +144,8 @@ def __repr__(self):
145144

146145

147146
class VersionPage(Page):
148-
""" PLEASE NOTE that this class contains preview products that are subject
149-
to change. Use them with caution. If you currently do not have developer
150-
preview access, please contact help@twilio.com. """
147+
""" PLEASE NOTE that this class contains beta products that are subject to
148+
change. Use them with caution. """
151149

152150
def __init__(self, version, response, solution):
153151
"""
@@ -187,9 +185,8 @@ def __repr__(self):
187185

188186

189187
class VersionContext(InstanceContext):
190-
""" PLEASE NOTE that this class contains preview products that are subject
191-
to change. Use them with caution. If you currently do not have developer
192-
preview access, please contact help@twilio.com. """
188+
""" PLEASE NOTE that this class contains beta products that are subject to
189+
change. Use them with caution. """
193190

194191
def __init__(self, version, id, schema_version):
195192
"""
@@ -236,9 +233,8 @@ def __repr__(self):
236233

237234

238235
class VersionInstance(InstanceResource):
239-
""" PLEASE NOTE that this class contains preview products that are subject
240-
to change. Use them with caution. If you currently do not have developer
241-
preview access, please contact help@twilio.com. """
236+
""" PLEASE NOTE that this class contains beta products that are subject to
237+
change. Use them with caution. """
242238

243239
def __init__(self, version, payload, id, schema_version=None):
244240
"""

twilio/rest/events/v1/sink/__init__.py

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

1919

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

2524
def __init__(self, version):
2625
"""
@@ -168,9 +167,8 @@ def __repr__(self):
168167

169168

170169
class SinkPage(Page):
171-
""" PLEASE NOTE that this class contains preview products that are subject
172-
to change. Use them with caution. If you currently do not have developer
173-
preview access, please contact help@twilio.com. """
170+
""" PLEASE NOTE that this class contains beta products that are subject to
171+
change. Use them with caution. """
174172

175173
def __init__(self, version, response, solution):
176174
"""
@@ -209,9 +207,8 @@ def __repr__(self):
209207

210208

211209
class SinkContext(InstanceContext):
212-
""" PLEASE NOTE that this class contains preview products that are subject
213-
to change. Use them with caution. If you currently do not have developer
214-
preview access, please contact help@twilio.com. """
210+
""" PLEASE NOTE that this class contains beta products that are subject to
211+
change. Use them with caution. """
215212

216213
def __init__(self, version, sid):
217214
"""
@@ -289,9 +286,8 @@ def __repr__(self):
289286

290287

291288
class SinkInstance(InstanceResource):
292-
""" PLEASE NOTE that this class contains preview products that are subject
293-
to change. Use them with caution. If you currently do not have developer
294-
preview access, please contact help@twilio.com. """
289+
""" PLEASE NOTE that this class contains beta products that are subject to
290+
change. Use them with caution. """
295291

296292
class Status(object):
297293
INITIALIZED = "initialized"

twilio/rest/events/v1/sink/sink_test.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313

1414

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

2019
def __init__(self, version, sid):
2120
"""
@@ -55,9 +54,8 @@ def __repr__(self):
5554

5655

5756
class SinkTestPage(Page):
58-
""" PLEASE NOTE that this class contains preview products that are subject
59-
to change. Use them with caution. If you currently do not have developer
60-
preview access, please contact help@twilio.com. """
57+
""" PLEASE NOTE that this class contains beta products that are subject to
58+
change. Use them with caution. """
6159

6260
def __init__(self, version, response, solution):
6361
"""
@@ -97,9 +95,8 @@ def __repr__(self):
9795

9896

9997
class SinkTestInstance(InstanceResource):
100-
""" PLEASE NOTE that this class contains preview products that are subject
101-
to change. Use them with caution. If you currently do not have developer
102-
preview access, please contact help@twilio.com. """
98+
""" PLEASE NOTE that this class contains beta products that are subject to
99+
change. Use them with caution. """
103100

104101
def __init__(self, version, payload, sid):
105102
"""

twilio/rest/events/v1/sink/sink_validate.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313

1414

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

2019
def __init__(self, version, sid):
2120
"""
@@ -59,9 +58,8 @@ def __repr__(self):
5958

6059

6160
class SinkValidatePage(Page):
62-
""" PLEASE NOTE that this class contains preview products that are subject
63-
to change. Use them with caution. If you currently do not have developer
64-
preview access, please contact help@twilio.com. """
61+
""" PLEASE NOTE that this class contains beta products that are subject to
62+
change. Use them with caution. """
6563

6664
def __init__(self, version, response, solution):
6765
"""
@@ -101,9 +99,8 @@ def __repr__(self):
10199

102100

103101
class SinkValidateInstance(InstanceResource):
104-
""" PLEASE NOTE that this class contains preview products that are subject
105-
to change. Use them with caution. If you currently do not have developer
106-
preview access, please contact help@twilio.com. """
102+
""" PLEASE NOTE that this class contains beta products that are subject to
103+
change. Use them with caution. """
107104

108105
def __init__(self, version, payload, sid):
109106
"""

0 commit comments

Comments
 (0)
0