8000 [Librarian] Regenerated @ 5537221b4648c8af3e7008869cb53a926188e1f1 · dialex-com/twilio-python@686d367 · GitHub
[go: up one dir, main page]

Skip to content

Commit 686d367

Browse files
committed
[Librarian] Regenerated @ 5537221b4648c8af3e7008869cb53a926188e1f1
1 parent 2d87f00 commit 686d367

File tree

33 files changed

+5498
-40
lines changed

33 files changed

+5498
-40
lines changed

CHANGES.md

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

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

6+
[2020-05-13] Version 6.40.0
7+
---------------------------
8+
**Library - Feature**
9+
- [PR #520](https://github.com/twilio/twilio-python/pull/520): add regional and edge support. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
10+
11+
**Api**
12+
- Add optional `emergency_caller_sid` parameter to SIP Domain
13+
- Updated `call_reason` optional property to be treated as PII
14+
- Added optional BYOC Trunk Sid property to Sip Domain API resource
15+
16+
**Autopilot**
17+
- Add Restore resource to Autopilot Assistant
18+
19+
**Contacts**
20+
- Added contacts Create API definition
21+
22+
**Events**
23+
- Subscriptions API initial release
24+
25+
**Numbers**
26+
- Add Evaluations API
27+
28+
**Supersim**
29+
- Allow filtering the Fleets resource by Network Access Profile
30+
- Allow assigning a Network Access Profile when creating and updating a Fleet
31+
- Add Network Access Profiles resource
32+
33+
**Verify**
34+
- Add `CustomCode` optional parameter on Verification creation.
35+
- Add delete action on Service resource.
36+
37+
**Voice**
38+
- Added endpoints for BYOC trunks, SIP connection policies and source IP mappings
39+
40+
641
[2020-04-29] Version 6.39.0
742
---------------------------
843
**Library - Feature**

tests/integration/api/v2010/account/sip/test_domain.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ def test_read_full_response(self):
5555
"voice_status_callback_url": null,
5656
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
5757
"emergency_calling_enabled": true,
58-
"secure": true
58+
"secure": true,
59+
"byoc_trunk_sid": "BYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
60+
"emergency_caller_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
5961
}
6062
],
6163
"start": 0,
@@ -142,7 +144,9 @@ def test_create_response(self):
142144
"voice_status_callback_url": null,
143145
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
144146
"emergency_calling_enabled": true,
145-
"secure": true
147+
"secure": true,
148+
"byoc_trunk_sid": "BYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
149+
"emergency_caller_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
146150
}
147151
'''
148152
))
@@ -192,7 +196,9 @@ def test_fetch_response(self):
192196
"voice_status_callback_url": null,
193197
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
194198
"emergency_calling_enabled": true,
195-
"secure": true
199+
"secure": true,
200+
"byoc_trunk_sid": "BYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
201+
"emergency_caller_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
196202
}
197203
'''
198204
))
@@ -242,7 +248,9 @@ def test_update_response(self):
242248
"voice_status_callback_url": null,
243249
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
244250
"emergency_calling_enabled": true,
245-
"secure": true
251+
"secure": true,
252+
"byoc_trunk_sid": "BYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
253+
"emergency_caller_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
246254
}
247255
'''
248256
))

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

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,36 @@ def test_create_response(self):
3131
201,
3232
'''
3333
{
34-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
35-
"date_created": "Fri, 24 Jul 2015 18:43:58 +0000",
36-
"date_updated": "Fri, 24 Jul 2015 18:43:58 +0000",
34+
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
3735
"ice_servers": [
3836
{
39-
"url": "stun:global.stun:3478?transport=udp",
40-
"urls": "stun:global.stun:3478?transport=udp"
37+
"url": "stun:global.stun.twilio.com:3478?transport=udp",
38+
"urls": "stun:global.stun.twilio.com:3478?transport=udp"
39+
},
40+
{
41+
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
42+
"credential": "tE2DajzSJwnsSbc123",
43+
"url": "turn:global.turn.twilio.com:3478?transport=udp",
44+
"urls": "turn:global.turn.twilio.com:3478?transport=udp"
4145
},
4246
{
43-
"credential": "5SR2x8mZK1lTFJW3NVgLGw6UM9C0dja4jI/Hdw3xr+w=",
44-
"url": "turn:global.turn:3478?transport=udp",
45-
"urls": "turn:global.turn:3478?transport=udp",
46-
"username": "cda92e5006c7810494639fc466ecc80182cef8183fdf400f84c4126f3b59d0bb"
47+
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
48+
"credential": "tE2DajzSJwnsSbc123",
49+
"url": "turn:global.turn.twilio.com:3478?transport=tcp",
50+
"urls": "turn:global.turn.twilio.com:3478?transport=tcp"
51+
},
52+
{
53+
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
54+
"credential": "tE2DajzSJwnsSbc123",
55+
"url": "turn:global.turn.twilio.com:443?transport=tcp",
56+
"urls": "turn:global.turn.twilio.com:443?transport=tcp"
4757
}
4858
],
49-
"password": "5SR2x8mZK1lTFJW3NVgLGw6UM9C0dja4jI/Hdw3xr+w=",
59+
"date_updated": "Fri, 01 May 2020 01:42:57 +0000",
60+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5061
"ttl": "86400",
51-
"username": "cda92e5006c7810494639fc466ecc80182cef8183fdf400f84c4126f3b59d0bb"
62+
"date_created": "Fri, 01 May 2020 01:42:57 +0000",
63+
"password": "tE2DajzSJwnsSbc123"
5264
}
5365
'''
5466
))
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# coding=utf-8
2+
r"""
3+
This code was generated by
4+
\ / _ _ _| _ _
5+
| (_)\/(_)(_|\/| |(/_ v1.0.0
6+
/ /
7+
"""
8+
9+
from tests import IntegrationTestCase
10+
from tests.holodeck import Request
11+
from twilio.base.exceptions import TwilioException
12+
from twilio.http.response import Response
13+
14+
15+
class RestoreAssistantTestCase(IntegrationTestCase):
16+
17+
def test_update_request(self):
18+
self.holodeck.mock(Response(500, ''))
19+
20+
with self.assertRaises(TwilioException):
21+
self.client.autopilot.v1.restore_assistant.update(assistant="UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
22+
23+
values = {'Assistant': "UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", }
24+
25+
self.holodeck.assert_has_request(Request(
26+
'post',
27+
'https://autopilot.twilio.com/v1/Assistants/Restore',
28+
data=values,
29+
))
30+
31+
def test_update_response(self):
32+
self.holodeck.mock(Response(
33+
200,
34+
'''
35+
{
36+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
37+
"sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38+
"date_created": "2017-07-04T08:34:00Z",
39+
"date_updated": "2017-07-04T08:34:00Z",
40+
"unique_name": "so-so-unique",
41+
"friendly_name": "so so friendly",
42+
"needs_model_build": false,
43+
"latest_model_build_sid": null,
44+
"log_queries": true,
45+
"development_stage": "in-development",
46+
"callback_url": "https://example.com/callback_url",
47+
"callback_events": "model_build_completed model_build_failed"
48+
}
49+
'''
50+
))
51+
52+
actual = self.client.autopilot.v1.restore_assistant.update(assistant="UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
53+
54+
self.assertIsNotNone(actual)

0 commit comments

Comments
 (0)
0