8000 Regenerating for latest definitions · randy3465/twilio-python@ca6e0fd · GitHub
[go: up one dir, main page]

Skip to content

Commit ca6e0fd

Browse files
author
matt
committed
Regenerating for latest definitions
1 parent d43a867 commit ca6e0fd

File tree

32 files changed

+1530
-194
lines changed

32 files changed

+1530
-194
lines changed

tests/integration/api/v2010/account/sip/ip_access_control_list/test_ip_address.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,11 @@ def test_update_request(self):
184184
self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
185185
.sip \
186186
.ip_access_control_lists(sid="ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
187-
.ip_addresses(sid="IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(ip_address="ip_address", friendly_name="friendly_name")
188-
189-
values = {
190-
'IpAddress': "ip_address",
191-
'FriendlyName': "friendly_name",
192-
}
187+
.ip_addresses(sid="IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
193188

194189
self.holodeck.assert_has_request(Request(
195190
'post',
196191
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses/IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json',
197-
data=values,
198192
))
199193

200194
def test_update_response(self):
@@ -217,7 +211,7 @@ def test_update_response(self):
217211
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
218212
.sip \
219213
.ip_access_control_lists(sid="ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
220-
.ip_addresses(sid="IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(ip_address="ip_address", friendly_name="friendly_name")
214+
.ip_addresses(sid="IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
221215

222216
self.assertIsNotNone(actual)
223217

tests/integration/ip_messaging/v1/service/channel/test_message.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,34 @@ def test_list_request(self):
5757
'get',
5858
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages',
5959
))
60+
61+
def test_delete_request(self):
62+
self.holodeck.mock(Response(500, ''))
63+
64+
with self.assertRaises(TwilioException):
65+
self.client.ip_messaging.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
66+
.channels(sid="CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
67+
.messages(sid="IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
68+
69+
self.holodeck.assert_has_request(Request(
70+
'delete',
71+
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
72+
))
73+
74+
def test_update_request(self):
75+
self.holodeck.mock(Response(500, ''))
76+
77+
with self.assertRaises(TwilioException):
78+
self.client.ip_messaging.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
79+
.channels(sid="CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
80+
.messages(sid="IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(body="body")
81+
82+
values = {
83+
'Body': "body",
84+
}
85+
86+
self.holodeck.assert_has_request(Request(
87+
'post',
88+
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
89+
data=values,
90+
))

tests/integration/ip_messaging/v1/service/test_channel.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,11 @@ def test_create_request(self):
8383

8484
with self.assertRaises(TwilioException):
8585
self.client.ip_messaging.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
86-
.channels.create(friendly_name="friendly_name", unique_name="unique_name")
87-
88-
values = {
89-
'FriendlyName': "friendly_name",
90-
'UniqueName': "unique_name",
91-
}
86+
.channels.create()
9287

9388
self.holodeck.assert_has_request(Request(
9489
'post',
9590
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels',
96-
data=values,
9791
))
9892

9993
def test_create_response(self):
@@ -121,7 +115,7 @@ def test_create_response(self):
121115
))
122116

123117
actual = self.client.ip_messaging.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
124-
.channels.create(friendly_name="friendly_name", unique_name="unique_name")
118+
.channels.create()
125119

126120
self.assertIsNotNone(actual)
127121

tests/integration/ip_messaging/v1/service/test_user.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,11 @@ def test_update_request(self):
193193

194194
with self.assertRaises(TwilioException):
195195
self.client.ip_messaging.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
196-
.users(sid="USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(role_sid="RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
197-
198-
values = {
199-
'RoleSid': "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
200-
}
196+
.users(sid="USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
201197

202198
self.holodeck.assert_has_request(Request(
203199
'post',
204200
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
205-
data=values,
206201
))
207202

208203
def test_update_response(self):
@@ -225,6 +220,6 @@ def test_update_response(self):
225220
))
226221

227222
actual = self.client.ip_messaging.v1.services(sid="ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
228-
.users(sid="USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(role_sid="RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
223+
.users(sid="USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
229224

230225
self.assertIsNotNone(actual)

tests/integration/ip_messaging/v1/test_credential.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ def test_create_request(self):
8686
self.holodeck.mock(Response(500, ''))
8787

8888
with self.assertRaises(TwilioException):
89-
self.client.ip_messaging.v1.credentials.create(friendly_name="friendly_name", type="gcm")
89+
self.client.ip_messaging.v1.credentials.create(type="gcm")
9090

9191
values = {
92-
'FriendlyName': "friendly_name",
9392
'Type': "gcm",
9493
}
9594

@@ -116,7 +115,7 @@ def test_create_response(self):
116115
'''
117116
))
118117

119-
actual = self. 1241 client.ip_messaging.v1.credentials.create(friendly_name="friendly_name", type="gcm")
118+
actual = self.client.ip_messaging.v1.credentials.create(type="gcm")
120119

121120
self< F438 /span>.assertIsNotNone(actual)
122121

@@ -156,17 +155,11 @@ def test_update_request(self):
156155
self.holodeck.mock(Response(500, ''))
157156

158157
with self.assertRaises(TwilioException):
159-
self.client.ip_messaging.v1.credentials(sid="CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(friendly_name="friendly_name", type="gcm")
160-
161-
values = {
162-
'FriendlyName': "friendly_name",
163-
'Type': "gcm",
164-
}
158+
self.client.ip_messaging.v1.credentials(sid="CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
165159

166160
self.holodeck.assert_has_request(Request(
167161
'post',
168162
'https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
169-
data=values,
170163
))
171164

172165
def test_update_response(self):
@@ -186,7 +179,7 @@ def test_update_response(self):
186179
'''
187180
))
188181

189-
actual = self.client.ip_messaging.v1.credentials(sid="CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(friendly_name="friendly_name", type="gcm")
182+
actual = self.client.ip_messaging.v1.credentials(sid="CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
190183

191184
self.assertIsNotNone(actual)
192185

tests/integration/notifications/v1/test_credential.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ def test_create_request(self):
8686
self.holodeck.mock(Response(500, ''))
8787

8888
with self.assertRaises(TwilioException):
89-
self.client.notifications.v1.credentials.create(friendly_name="friendly_name", type="gcm")
89+
self.client.notifications.v1.credentials.create(type="gcm")
9090

9191
values = {
92-
'FriendlyName': "friendly_name",
9392
'Type': "gcm",
9493
}
9594

@@ -116,7 +115,7 @@ def test_create_response(self):
116115
'''
117116
))
118117

119-
actual = self.client.notifications.v1.credentials.create(friendly_name="friendly_name", type="gcm")
118+
actual = self.client.notifications.v1.credentials.create(type="gcm")
120119

121120
self.assertIsNotNone(actual)
122121

@@ -156,17 +155,11 @@ def test_update_request(self):
156155
self.holodeck.mock(Response(500, ''))
157156

158157
with self.assertRaises(TwilioException):
159-
self.client.notifications.v1.credentials(sid="CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(friendly_name="friendly_name", type="gcm")
160-
161-
values = {
162-
'FriendlyName': "friendly_name",
163-
'Type': "gcm",
164-
}
158+
self.client.notifications.v1.credentials(sid="CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
165159

166160
self.holodeck.assert_has_request(Request(
167161
'post',
168162
'https://notifications.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
169-
data=values,
170163
))
171164

172165
def test_update_response(self):
@@ -186,7 +179,7 @@ def test_update_response(self):
186179
'''
187180
))
188181

189-
actual = self.client.notifications.v1.credentials(sid="CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(friendly_name="friendly_name", type="gcm")
182+
actual = self.client.notifications.v1.credentials(sid="CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
190183

191184
self.assertIsNotNone(actual)
192185

tests/integration/preview/wireless/device/test_usage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ def test_fetch_request(self):
1818
self.holodeck.mock(Response(500, ''))
1919

2020
with self.assertRaises(TwilioException):
21-
self.client.preview.wireless.devices(sid="sid") \
21+
self.client.preview.wireless.devices(sid="DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
2222
.usage().fetch()
2323

2424
self.holodeck.assert_has_request(Request(
2525
'get',
26-
'https://preview.twilio.com/wireless/Devices/sid/Usage',
26+
'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage',
2727
))

tests/integration/preview/wireless/test_device.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ def test_fetch_request(self):
1818
self.holodeck.mock(Response(500, ''))
1919

2020
with self.assertRaises(TwilioException):
21-
self.client.preview.wireless.devices(sid="sid").fetch()
21+
self.client.preview.wireless.devices(sid="DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
2222

2323
self.holodeck.assert_has_request(Request(
2424
'get',
25-
'https://preview.twilio.com/wireless/Devices/sid',
25+
'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
2626
))
2727

2828
def test_list_request(self):
@@ -56,9 +56,9 @@ def test_update_request(self):
5656
self.holodeck.mock(Response(500, ''))
5757

5858
with self.assertRaises(TwilioException):
59-
self.client.preview.wireless.devices(sid="sid").update()
59+
self.client.preview.wireless.devices(sid="DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
6060

6161
self.holodeck.assert_has_request(Request(
6262
'post',
63-
'https://preview.twilio.com/wireless/Devices/sid',
63+
'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
6464
))

tests/integration/taskrouter/v1/workspace/task/test_reservation.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,11 @@ def test_update_request(self):
144144
with self.assertRaises(TwilioException):
145145
self.client.taskrouter.v1.workspaces(sid="WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
146146
.tasks(sid="WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
147-
.reservations(sid="WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(reservation_status="reservation_status")
148-
149-
values = {
150-
'ReservationStatus': "reservation_status",
151-
}
147+
.reservations(sid="WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
152148

153149
self.holodeck.assert_has_request(Request(
154150
'post',
155151
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
156-
data=values,
157152
))
158153

159154
def test_update_response(self):
@@ -182,6 +177,6 @@ def test_update_response(self):
182177

183178
actual = self.client.taskrouter.v1.workspaces(sid="WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
184179
.tasks(sid="WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
185-
.reservations(sid="WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(reservation_status="reservation_status")
180+
.reservations(sid="WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
186181

187182
self.assertIsNotNone(actual)

tests/integration/taskrouter/v1/workspace/test_workflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,12 @@ def test_create_request(self):
195195

196196
with self.assertRaises(TwilioException):
197197
self.client.taskrouter.v1.workspaces(sid="WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
198-
.workflows.create(friendly_name="friendly_name", configuration="configuration", assignment_callback_url="/example")
198+
.workflows.create(friendly_name="friendly_name", configuration="configuration", assignment_callback_url="https://example.com")
199199

200200
values = {
201201
'FriendlyName': "friendly_name",
202202
'Configuration': "configuration",
203-
'AssignmentCallbackUrl': "/example",
203+
'AssignmentCallbackUrl': "https://example.com",
204204
}
205205

206206
self.holodeck.assert_has_request(Request(
@@ -231,6 +231,6 @@ def test_create_response(self):
231231
))
232232

233233
actual = self.client.taskrouter.v1.workspaces(sid="WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
234-
.workflows.create(friendly_name="friendly_name", configuration="configuration", assignment_callback_url="/example")
234+
.workflows.create(friendly_name="friendly_name", configuration="configuration", assignment_callback_url="https://example.com")
235235

236236
self.assertIsNotNone(actual)

0 commit comments

Comments
 (0)
0