8000 [Librarian] Regenerated @ 66a6fecc266dc74d9d1e47d28f09eff1210be8f0 · RoadRunner11/twilio-python@68acfd5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 68acfd5

Browse files
committed
[Librarian] Regenerated @ 66a6fecc266dc74d9d1e47d28f09eff1210be8f0
1 parent 7da4492 commit 68acfd5

File tree

19 files changed

+1099
-21
lines changed

19 files changed

+1099
-21
lines changed

CHANGES.md

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

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

6+
[2021-03-24] Version 6.55.0
7+
---------------------------
8+
**Api**
9+
- Added optional parameter `CallToken` for create calls api
10+
- Add optional property `time_limit` in the call create request.
11+
12+
**Bulkexports**
13+
- adding two new fields with job api queue_position and estimated_completion_time
14+
15+
**Events**
16+
- Add new endpoints to manage subscribed_events in subscriptions
17+
18+
**Numbers**
19+
- Remove feature flags for RegulatoryCompliance endpoints
20+
21+
**Supersim**
22+
- Add SmsCommands resource
23+
- Add fields `SmsCommandsUrl`, `SmsCommandsMethod` and `SmsCommandsEnabled` to a Fleet resource
24+
25+
**Taskrouter**
26+
- Add `If-Match` Header based on ETag for Task Update
27+
- Add `ETag` as Response Headers to Tasks and Reservations
28+
29+
**Video**
30+
- Recording rule beta flag **(breaking change)**
31+
- [Rooms] Add RecordingRules param to Rooms
32+
33+
634
[2021-03-15] Version 6.54.0
735
---------------------------
836
**Library - Chore**

tests/integration/bulkexports/v1/export/test_export_custom_job.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def test_read_full_response(self):
7474
"end_day": "end_day",
7575
"webhook_url": "webhook_url",
7676
"email": "email",
77-
"resource_type": "resource_type"
77+
"resource_type": "resource_type",
78+
"job_queue_position": "1",
79+
"estimated_completion_time": "2021-03-15T20:20:14.547"
7880
}
7981
]
8082
}
@@ -114,7 +116,9 @@ def test_create_response(self):
114116
"end_day": "end_day",
115117
"webhook_url": "webhook_url",
116118
"email": "email",
117-
"resource_type": "resource_type"
119+
"resource_type": "resource_type",
120+
"job_queue_position": "1",
121+
"estimated_completion_time": "2021-03-15T20:20:14.547"
118122
}
119123
'''
120124
))

tests/integration/bulkexports/v1/export/test_job.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def test_fetch_response(self):
4040
"webhook_url": "webhook_url",
4141
"webhook_method": "webhook_method",
4242
"email": "email",
43-
"resource_type": "resource_type"
43+
"resource_type": "resource_type",
44+
"job_queue_position": "1",
45+
"estimated_completion_time": "2021-03-15T20:20:14.547"
4446
}
4547
'''
4648
))

tests/integration/events/v1/subscription/test_subscribed_event.py

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,122 @@ def test_read_results_response(self):
8888
.subscribed_events.list()
8989

9090
self.assertIsNotNone(actual)
91+
92+
def test_create_request(self):
93+
self.holodeck.mock(Response(500, ''))
94+
95+
with self.assertRaises(TwilioException):
96+
self.client.events.v1.subscriptions("DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
97+
.subscribed_events.create(type="type")
98+
99+
values = {'Type': "type", }
100+
101+
self.holodeck.assert_has_request(Request(
102+
'post',
103+
'https://events.twilio.com/v1/Subscriptions/DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SubscribedEvents',
104+
data=values,
105+
))
106+
107+
def test_create_response(self):
108+
self.holodeck.mock(Response(
109+
201,
110+
'''
111+
{
112+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
113+
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
114+
"type": "event.type",
115+
"version": 2,
116+
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/event.type"
117+
}
118+
'''
119+
))
120+
121+
actual = self.client.events.v1.subscriptions("DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
122+
.subscribed_events.create(type="type")
123+
124+
self.assertIsNotNone(actual)
125+
126+
def test_fetch_request(self):
127+
self.holodeck.mock(Response(500, ''))
128+
129+
with self.assertRaises(TwilioException):
130+
self.client.events.v1.subscriptions("DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
131+
.subscribed_events("type").fetch()
132+
133+
self.holodeck.assert_has_request(Request(
134+
'get',
135+
'https://events.twilio.com/v1/Subscriptions/DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SubscribedEvents/type',
136+
))
137+
138+
def test_fetch_response(self):
139+
self.holodeck.mock(Response(
140+
200,
141+
'''
142+
{
143+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
144+
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
145+
"type": "event.type",
146+
"version": 2,
147+
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/event.type"
148+
}
149+
'''
150+
))
151+
152+
actual = self.client.events.v1.subscriptions("DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
153+
.subscribed_events("type").fetch()
154+
155+
self.assertIsNotNone(actual)
156+
157+
def test_update_request(self):
158+
self.holodeck.mock(Response(500, ''))
159+
160+
with self.assertRaises(TwilioException):
161+
self.client.events.v1.subscriptions("DFXXXXXXXXXX 10000 XXXXXXXXXXXXXXXXXXXXXX") \
162+
.subscribed_events("type").update()
163+
164+
self.holodeck.assert_has_request(Request(
165+
'post',
166+
'https://events.twilio.com/v1/Subscriptions/DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SubscribedEvents/type',
167+
))
168+
169+
def test_update_response(self):
170+
self.holodeck.mock(Response(
171+
200,
172+
'''
173+
{
174+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
175+
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
176+
"type": "event.type",
177+
"version": 2,
178+
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/event.type"
179+
}
180+
'''
181+
))
182+
183+
actual = self.client.events.v1.subscriptions("DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
184+
.subscribed_events("type").update()
185+
186+
self.assertIsNotNone(actual)
187+
188+
def test_delete_request(self):
189+
self.holodeck.mock(Response(500, ''))
190+
191+
with self.assertRaises(TwilioException):
192+
self.client.events.v1.subscriptions("DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
193+
.subscribed_events("type").delete()
194+
195+
self.holodeck.assert_has_request(Request(
196+
'delete',
197+
'https://events.twilio.com/v1/Subscriptions/DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SubscribedEvents/type',
198+
))
199+
200+
def test_delete_response(self):
201+
self.holodeck.mock(Response(
202+
204,
203+
None,
204+
))
205+
206+
actual = self.client.events.v1.subscriptions("DFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
207+
.subscribed_events("type").delete()
208+
209+
self.assertTrue(actual)

tests/integration/supersim/v1/test_fleet.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ def test_create_response(self):
4343
"commands_enabled": true,
4444
"commands_method": "GET",
4545
"commands_url": "https://google.com",
46+
"sms_commands_enabled": true,
47+
"sms_commands_method": "GET",
48+
"sms_commands_url": "https://google.com",
4649
"ip_commands_method": "GET",
4750
"ip_commands_url": "https://google.com",
4851
"network_access_profile_sid": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -82,6 +85,9 @@ def test_fetch_response(self):
8285
"commands_enabled": true,
8386
"commands_method": "POST",
8487
"commands_url": null,
88+
"sms_commands_enabled": true,
89+
"sms_commands_method": "POST",
90+
"sms_commands_url": null,
8591
"ip_commands_method": "POST",
8692
"ip_commands_url": null,
8793
"network_access_profile_sid": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -155,6 +161,9 @@ def test_read_full_response(self):
155161
"commands_enabled": true,
156162
"commands_method": "POST",
157163
"commands_url": null,
164+
"sms_commands_enabled": true,
165+
"sms_commands_method": "POST",
166+
"sms_commands_url": null,
158167
"ip_commands_method": "POST",
159168
"ip_commands_url": null,
160169
"network_access_profile_sid": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -196,6 +205,9 @@ def test_update_unique_name_response(self):
196205
"commands_enabled": true,
197206
"commands_method": "POST",
198207
"commands_url": null,
208+
"sms_commands_enabled": true,
209+
"sms_commands_method": "POST",
210+
"sms_commands_url": null,
199211
"ip_commands_method": "POST",
200212
"ip_commands_url": null,
201213
"network_access_profile_sid": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",

0 commit comments

Comments
 (0)
0