8000 [Librarian] Regenerated @ 34db42966e7d800a21645c7cfb4f09b35870cef1 · thecodeflash/twilio-python@715e1b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 715e1b1

Browse files
committed
[Librarian] Regenerated @ 34db42966e7d800a21645c7cfb4f09b35870cef1
1 parent c501e64 commit 715e1b1

File tree

17 files changed

+435
-118
lines changed

17 file 8000 s changed

+435
-118
lines changed

CHANGES.md

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

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

6+
[2017-11-17] Version 6.9.0
7+
---------------------------
8+
**Sync**
9+
- Add TTL support for Sync objects *(breaking change)*
10+
- The required `data` parameter on the following actions is now optional: "Update Document", "Update Map Item", "Update List Item"
11+
- New actions available for updating TTL of Sync objects: "Update List", "Update Map", "Update Stream"
12+
13+
**Video**
14+
- [bi] Rename `RoomParticipant` to `Participant`
15+
- Add Recording Settings resource
16+
- Expose EncryptionKey and MediaExternalLocation properties in Recording resource
17+
18+
619
[2017-11-10] Version 6.8.4
720
---------------------------
821
**Accounts**

tests/integration/sync/v1/service/sync_list/test_sync_list_item.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_fetch_response(self):
3636
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3737
"created_by": "created_by",
3838
"data": {},
39+
"date_expires": "2015-07-30T21:00:00Z",
3940
"date_created": "2015-07-30T20:00:00Z",
4041
"date_updated": "2015-07-30T20:00:00Z",
4142
"index": 100,
@@ -102,6 +103,7 @@ def test_create_response(self):
102103
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
103104
"created_by": "created_by",
104105
"data": {},
106+
"date_expires": "2015-07-30T21:00:00Z",
105107
"date_created": "2015-07-30T20:00:00Z",
106108
"date_updated": "2015-07-30T20:00:00Z",
107109
"index": 100,
@@ -167,6 +169,7 @@ def test_read_full_response(self):
167169
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
168170
"created_by": "created_by",
169171
"data": {},
172+
"date_expires": "2015-07-30T21:00:00Z",
170173
"date_created": "2015-07-30T20:00:00Z",
171174
"date_updated": "2015-07-30T20:00:00Z",
172175
"index": 100,
@@ -201,14 +204,11 @@ def test_update_request(self):
201204
with self.assertRaises(TwilioException):
202205
self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
203206
.sync_lists(sid="ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
204-
.sync_list_items(index=1).update(data="{}")
205-
206-
values = {'Data': serialize.object("{}")}
207+
.sync_list_items(index=1).update()
207208

208209
self.holodeck.assert_has_request(Request(
209210
'post',
210211
'https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/1',
211-
data=values,
212212
))
213213

214214
def test_update_response(self):
@@ -219,6 +219,7 @@ def test_update_response(self):
219219
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
220220
"created_by": "created_by",
221221
"data": {},
222+
"date_expires": "2015-07-30T21:00:00Z",
222223
"date_created": "2015-07-30T20:00:00Z",
223224
"date_updated": "2015-07-30T20:00:00Z",
224225
"index": 100,
@@ -232,6 +233,6 @@ def test_update_response(self):
232233

233234
actual = self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
234235
.sync_lists(sid="ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
235-
.sync_list_items(index=1).update(data="{}")
236+
.sync_list_items(index=1).update()
236237

237238
self.assertIsNotNone(actual)

tests/integration/sync/v1/service/sync_map/test_sync_map_item.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_fetch_response(self):
3636
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3737
"created_by": "created_by",
3838
"data": {},
39+
"date_expires": "2015-07-30T21:00:00Z",
3940
"date_created": "2015-07-30T20:00:00Z",
4041
"date_updated": "2015-07-30T20:00:00Z",
4142
"key": "key",
@@ -102,6 +103,7 @@ def test_create_response(self):
102103
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
103104
"created_by": "created_by",
104105
"data": {},
106+
"date_expires": "2015-07-30T21:00:00Z",
105107
"date_created": "2015-07-30T20:00:00Z",
106108
"date_updated": "2015-07-30T20:00:00Z",
107109
"key": "key",
@@ -167,6 +169,7 @@ def test_read_full_response(self):
167169
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
168170
"created_by": "created_by",
169171
"data": {},
172+
"date_expires": "2015-07-30T21:00:00Z",
170173
"date_created": "2015-07-30T20:00:00Z",
171174
"date_updated": "2015-07-30T20:00:00Z",
172175
"key": "key",
@@ -201,14 +204,11 @@ def test_update_request(self):
201204
with self.assertRaises(TwilioException):
202205
self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
203206
.sync_maps(sid="MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
204-
.sync_map_items(key="key").update(data="{}")
205-
206-
values = {'Data': serialize.object("{}")}
207+
.sync_map_items(key="key").update()
207208

208209
self.holodeck.assert_has_request(Request(
209210
'post',
210211
'https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/key',
211-
data=values,
212212
))
213213

214214
def test_update_response(self):
@@ -219,6 +219,7 @@ def test_update_response(self):
219219
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
220220
"created_by": "created_by",
221221
"data": {},
222+
"date_expires": "2015-07-30T21:00:00Z",
222223
"date_created": "2015-07-30T20:00:00Z",
223224
"date_updated": "2015-07-30T20:00:00Z",
224225
"key": "key",
@@ -232,6 +233,6 @@ def test_update_response(self):
232233

233234
actual = self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
234235
.sync_maps(sid="MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
235-
.sync_map_items(key="key").update(data="{}")
236+
.sync_map_items(key="key").update()
236237

237238
self.assertIsNotNone(actual)

tests/integration/sync/v1/service/test_document.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from tests import IntegrationTestCase
1010
from tests.holodeck import Request
11-
from twilio.base import serialize
1211
from twilio.base.exceptions import TwilioException
1312
from twilio.http.response import Response
1413

@@ -35,6 +34,7 @@ def test_fetch_response(self):
3534
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3635
"created_by": "created_by",
3736
"data": {},
37+
"date_expires": "2015-07-30T21:00:00Z",
3838
"date_created": "2015-07-30T20:00:00Z",
3939
"date_updated": "2015-07-30T20:00:00Z",
4040
"revision": "revision",
@@ -97,6 +97,7 @@ def test_create_response(self):
9797
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
9898
"created_by": "created_by",
9999
"data": {},
100+
"date_expires": "2015-07-30T21:00:00Z",
100101
"date_created": "2015-07-30T20:00:00Z",
101102
"date_updated": "2015-07-30T20:00:00Z",
102103
"revision": "revision",
@@ -162,6 +163,7 @@ def test_read_full_response(self):
162163
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
163164
"created_by": "created_by",
164165
"data": {},
166+
"date_expires": "2015-07-30T21:00:00Z",
165167
"date_created": "2015-07-30T20:00:00Z",
166168
"date_updated": "2015-07-30T20:00:00Z",
167169
"revision": "revision",
@@ -197,14 +199,11 @@ def test_update_request(self):
197199

198200
with self.assertRaises(TwilioException):
199201
self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
200-
.documents(sid="ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(data="{}")
201-
202-
values = {'Data': serialize.object("{}")}
202+
.documents(sid="ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
203203

204204
self.holodeck.assert_has_request(Request(
205205
'post',
206206
'https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents/ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
207-
data=values,
208207
))
209208

210209
def test_update_response(self):
@@ -215,6 +214,7 @@ def test_update_response(self):
215214
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
216215
"created_by": "created_by",
217216
"data": {},
217+
"date_expires": "2015-07-30T21:00:00Z",
218218
"date_created": "2015-07-30T20:00:00Z",
219219
"date_updated": "2015-07-30T20:00:00Z",
220220
"revision": "revision",
@@ -230,6 +230,6 @@ def test_update_response(self):
230230
))
231231

232232
actual = self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
233-
.documents(sid="ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(data="{}")
233+
.documents(sid="ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
234234

235235
self.assertIsNotNone(actual)

tests/integration/sync/v1/service/test_sync_list.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_fetch_response(self):
3333
{
3434
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3535
"created_by": "created_by",
36+
"date_expires": "2015-07-30T21:00:00Z",
3637
"date_created": "2015-07-30T20:00:00Z",
3738
"date_updated": "2015-07-30T20:00:00Z",
3839
"links": {
@@ -95,6 +96,7 @@ def test_create_response(self):
9596
{
9697
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
9798
"created_by": "created_by",
99+
"date_expires": "2015-07-30T21:00:00Z",
98100
"date_created": "2015-07-30T20:00:00Z",
99101
"date_updated": "2015-07-30T20:00:00Z",
100102
"links": {
@@ -115,6 +117,46 @@ def test_create_response(self):
115117

116118
self.assertIsNotNone(actual)
117119

120+
def test_update_request(self):
121+
self.holodeck.mock(Response(500, ''))
122+
123+
with self.assertRaises(TwilioException):
124+
self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
125+
.sync_lists(sid="ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
126+
127+
self.holodeck.assert_has_request(Request(
128+
'post',
129+
'https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
130+
))
131+
132+
def test_update_response(self):
133+
self.holodeck.mock(Response(
134+
200,
135+
'''
136+
{
137+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
138+
"created_by": "created_by",
139+
"date_expires": "2015-07-30T21:00:00Z",
140+
"date_created": "2015-07-30T20:00:00Z",
141+
"date_updated": "2015-07-30T20:00:00Z",
142+
"links": {
143+
"items": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items",
144+
"permissions": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Permissions"
145+
},
146+
"revision": "revision",
147+
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
148+
"sid": "ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
149+
"unique_name": "unique_name",
150+
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
151+
}
152+
'''
153+
))
154+
155+
actual = self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
156+
.sync_lists(sid="ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
157+
158+
self.assertIsNotNone(actual)
159+
118160
def test_list_request(self):
119161
self.holodeck.mock(Response(500, ''))
120162

@@ -160,6 +202,7 @@ def test_read_full_response(self):
160202
{
161203
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
162204
"created_by": "created_by",
205+
"date_expires": "2015-07-30T21:00:00Z",
163206
"date_created": "2015-07-30T20:00:00Z",
164207
"date_updated": "2015-07-30T20:00:00Z",
165208
"links": {

tests/integration/sync/v1/service/test_sync_map.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_fetch_response(self):
3333
{
3434
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3535
"created_by": "created_by",
36+
"date_expires": "2015-07-30T21:00:00Z",
3637
"date_created": "2015-07-30T20:00:00Z",
3738
"date_updated": "2015-07-30T20:00:00Z",
3839
"links": {
@@ -95,6 +96,7 @@ def test_create_response(self):
9596
{
9697
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
9798
"created_by": "created_by",
99+
"date_expires": "2015-07-30T21:00:00Z",
98100
"date_created": "2015-07-30T20:00:00Z",
99101
"date_updated": "2015-07-30T20:00:00Z",
100102
"links": {
@@ -115,6 +117,46 @@ def test_create_response(self):
115117

116118
self.assertIsNotNone(actual)
117119

120+
def test_update_request(self):
121+
self.holodeck.mock(Response(500, ''))
122+
123+
with self.assertRaises(TwilioException):
124+
self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
125+
.sync_maps(sid="MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
126+
127+
self.holodeck.assert_has_request(Request(
128+
'post',
129+
'https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
130+
))
131+
132+
def test_update_response(self):
133+
self.holodeck.mock(Response(
134+
200,
135+
'''
136+
{
137+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
138+
"created_by": "created_by",
139+
"date_expires": "2015-07-30T21:00:00Z",
140+
"date_created": "2015-07-30T20:00:00Z",
141+
"date_updated": "2015-07-30T20:00:00Z",
142+
"links": {
143+
"items": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items",
144+
"permissions": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Permissions"
145+
},
146+
"revision": "revision",
147+
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
148+
"sid": "MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
149+
"unique_name": "unique_name",
150+
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
151+
}
152+
'''
153+
))
154+
155+
actual = self.client.sync.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
156+
.sync_maps(sid="MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
157+
158+
self.assertIsNotNone(actual)
159+
118160
def test_list_request(self):
119161
self.holodeck.mock(Response(500, ''))
120162

@@ -160,6 +202,7 @@ def test_read_full_response(self):
160202
{
161203
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
162204
"created_by": "created_by",
205+
"date_expires": "2015-07-30T21:00:00Z",
163206
"date_created": "2015-07-30T20:00:00Z",
164207
"date_updated": "2015-07-30T20:00:00Z",
165208
"links": {

0 commit comments

Comments
 (0)
0