8000 [Librarian] Regenerated @ ebd20455c6ba7a39370f83dd977eff437b85d062 · anilktechie/twilio-python@38fc401 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38fc401

Browse files
committed
[Librarian] Regenerated @ ebd20455c6ba7a39370f83dd977eff437b85d062
1 parent abd7477 commit 38fc401

File tree

46 files changed

+784
-314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+784
-314
lines changed

CHANGES.md

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

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

6+
[2018-12-17] Version 6.22.0
7+
----------------------------
8+
**Authy**
9+
- Reverted the change to `FactorType` and `FormType`, avoiding conflicts with Helper Libraries reserved words (`type`) **(breaking change)**
10+
11+
**Proxy**
12+
- Remove incorrect parameter for Session List
13+
14+
**Studio**
15+
- Support date created filtering on list of executions
16+
17+
**Taskrouter**
18+
- Adding ability to Create, Modify and Delete Task Channels.
19+
20+
**Verify**
21+
- Add `SkipSmsToLandlines`, `TtsName`, `DtmfInputRequired` optional parameters on Service resource creation or update.
22+
23+
**Wireless**
24+
- Added delete action on Command resource.
25+
- Added delete action on Sim resource.
26+
27+
**Twiml**
28+
- Change `currency` from enum to string for `Pay` **(breaking change)**
29+
30+
631
[2018-11-30] Version 6.21.0
732
----------------------------
833
**Api**

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

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def test_read_full_response(self):
3636
{
3737
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3838
"api_version": "2010-04-01",
39-
"auth_type": "",
40-
"date_created": "Fri, 06 Sep 2013 18:48:50 -0000",
41-
"date_updated": "Fri, 06 Sep 2013 18:48:50 -0000",
42-
"domain_name": "dunder-mifflin-scranton.api.twilio.com",
39+
"auth_type": "IP_ACL",
40+
"date_created": "Mon, 20 Jul 2015 17:27:10 +0000",
41+
"date_updated": "Mon, 20 Jul 2015 17:27:10 +0000",
42+
"domain_name": "dunder-mifflin-scranton.sip.twilio.com",
4343
"friendly_name": "Scranton Office",
4444
"sip_registration": true,
4545
"sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -56,6 +56,8 @@ def test_read_full_response(self):
5656
"voice_url": "https://dundermifflin.example.com/twilio/app.php"
5757
}
5858
],
59+
"start": 0,
60+
"end": 0,
5961
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains.json?PageSize=50&Page=0",
6062
"next_page_uri": null,
6163
"page": 0,
@@ -78,6 +80,8 @@ def test_read_empty_response(self):
7880
'''
7981
{
8082
"domains": [],
83+
"start": 0,
84+
"end": 0,
8185
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains.json?PageSize=50&Page=0",
8286
"next_page_uri": null,
8387
"page": 0,
@@ -118,8 +122,8 @@ def test_create_response(self):
118122
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
119123
"api_version": "2010-04-01",
120124
"auth_type": "IP_ACL",
121-
"date_created": "Fri, 06 Sep 2013 19:18:30 -0000",
122-
"date_updated": "Fri, 06 Sep 2013 19:18:30 -0000",
125+
"date_created": "Mon, 20 Jul 2015 17:27:10 +0000",
126+
"date_updated": "Mon, 20 Jul 2015 17:27:10 +0000",
123127
"domain_name": "dunder-mifflin-scranton.sip.twilio.com",
124128
"friendly_name": "Scranton Office",
125129
"sip_registration": true,
@@ -166,8 +170,8 @@ def test_fetch_response(self):
166170
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
167171
"api_version": "2010-04-01",
168172
"auth_type": "IP_ACL",
169-
"date_created": "Fri, 06 Sep 2013 19:18:30 -0000",
170-
"date_updated": "Fri, 06 Sep 2013 19:18:30 -0000",
173+
"date_created": "Mon, 20 Jul 2015 17:27:10 +0000",
174+
"date_updated": "Mon, 20 Jul 2015 17:27:10 +0000",
171175
"domain_name": "dunder-mifflin-scranton.sip.twilio.com",
172176
"friendly_name": "Scranton Office",
173177
"sip_registration": true,
@@ -214,11 +218,11 @@ def test_update_response(self):
214218
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
215219
"api_version": "2010-04-01",
216220
"auth_type": "IP_ACL",
217-
"date_created": "Fri, 06 Sep 2013 19:18:30 -0000",
218-
"date_updated": "Fri, 06 Sep 2013 19:18:30 -0000",
221+
"date_created": "Mon, 20 Jul 2015 17:27:10 +0000",
222+
"date_updated": "Mon, 20 Jul 2015 17:27:10 +0000",
219223
"domain_name": "dunder-mifflin-scranton.sip.twilio.com",
220224
"friendly_name": "Scranton Office",
221-
"sip_registration": false,
225+
"sip_registration": true,
222226
"sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
223227
"subresource_uris": {
224228
"credential_list_mappings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings.json",

tests/integration/authy/v1/service/entity/factor/test_challenge.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_create_response(self):
4747
"responded_reason": "none",
4848
"details": "Hi! Mr. John Doe, would you like to sign up?",
4949
"hidden_details": "Hidden details about the sign up",
50-
"type": "sms",
50+
"factor_type": "sms",
5151
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges/YCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
5252
}
5353
'''
@@ -120,7 +120,7 @@ def test_fetch_sid_response(self):
120120
"responded_reason": "none",
121121
"details": "details",
122122
"hidden_details": "hidden_details",
123-
"type": "sms",
123+
"factor_type": "sms",
124124
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges/YCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
125125
}
126126
'''
@@ -152,7 +152,7 @@ def test_fetch_latest_response(self):
152152
"responded_reason": "none",
153153
"details": "details",
154154
"hidden_details": "hidden_details",
155-
"type": "sms",
155+
"factor_type": "sms",
156156
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges/YCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
157157
}
158158
'''
@@ -198,7 +198,7 @@ def test_verify_sid_response(self):
198198
"responded_reason": "none",
199199
"details": "Hi! Mr. John Doe, would you like to sign up?",
200200
"hidden_details": "Hidden details about the sign up",
201-
"type": "sms",
201+
"factor_type": "sms",
202202
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges/YCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
203203
}
204204
'''
@@ -230,7 +230,7 @@ def test_verify_latest_response(self):
230230
"responded_reason": "none",
231231
"details": "Hi! Mr. John Doe, would you like to sign up?",
232232
"hidden_details": "Hidden details about the sign up",
233-
"type": "sms",
233+
"factor_type": "sms",
234234
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges/YCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
235235
}
236236
'''

tests/integration/authy/v1/service/entity/test_factor.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def test_create_request(self):
2020
with self.assertRaises(TwilioException):
2121
self.client.authy.v1.services(sid="ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
2222
.entities(identity="identity") \
23-
.factors.create(binding="binding", friendly_name="friendly_name", type="app-push")
23+
.factors.create(binding="binding", friendly_name="friendly_name", factor_type="app-push")
2424

25-
values = {'Binding': "binding", 'FriendlyName': "friendly_name", 'Type': "app-push", }
25+
values = {'Binding': "binding", 'FriendlyName': "friendly_name", 'FactorType': "app-push", }
2626

2727
self.holodeck.assert_has_request(Request(
2828
'post',
@@ -44,7 +44,7 @@ def test_create_response(self):
4444
"date_updated": "2015-07-30T20:00:00Z",
4545
"friendly_name": "friendly_name",
4646
"status": "unverified",
47-
"type": "sms",
47+
"factor_type": "sms",
4848
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4949
"links": {
5050
"challenges": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges"
@@ -55,7 +55,7 @@ def test_create_response(self):
5555

5656
actual = self.client.authy.v1.services(sid="ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
5757
.entities(identity="identity") \
58-
.factors.create(binding="binding", friendly_name="friendly_name", type="app-push")
58+
.factors.create(binding="binding", friendly_name="friendly_name", factor_type="app-push")
5959

6060
self.assertIsNotNone(actual)
6161

@@ -111,7 +111,7 @@ def test_fetch_response(self):
111111
"date_updated": "2015-07-30T20:00:00Z",
112112
"friendly_name": "friendly_name",
113113
"status": "unverified",
114-
"type": "sms",
114+
"factor_type": "sms",
115115
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
116116
"links": {
117117
"challenges": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges"
@@ -180,7 +180,7 @@ def test_read_full_response(self):
180180
"date_updated": "2015-07-30T20:00:00Z",
181181
"friendly_name": "friendly_name",
182182
"status": "unverified",
183-
"type": "sms",
183+
"factor_type": "sms",
184184
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
185185
"links": {
186186
"challenges": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges"
@@ -233,7 +233,7 @@ def test_verify_response(self):
233233
"date_updated": "2015-07-30T20:00:00Z",
234234
"friendly_name": "friendly_name",
235235
"status": "verified",
236-
"type": "sms",
236+
"factor_type": "sms",
237237
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
238238
"links": {
239239
"challenges": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges"

tests/integration/authy/v1/test_form.py

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

2020
with self.assertRaises(TwilioException):
21-
self.client.authy.v1.forms(type="form-app-push").fetch()
21+
self.client.authy.v1.forms(form_type="form-app-push").fetch()
2222

2323
self.holodeck.assert_has_request(Request(
2424
'get',
@@ -30,7 +30,7 @@ def test_fetch_response(self):
3030
200,
3131
'''
3232
{
33-
"type": "form-sms",
33+
"form_type": "form-sms",
3434
"forms": {
3535
"create_factor": {},
3636
"verify_factor": {},
@@ -42,6 +42,6 @@ def test_fetch_response(self):
4242
'''
4343
))
4444

45-
actual = self.client.authy.v1.forms(type="form-app-push").fetch()
45+
actual = self.client.authy.v1.forms(form_type="form-app-push").fetch()
4646

4747
self.assertIsNotNone(actual)

tests/integration/messaging/v1/test_service.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ def test_create_response(self):
5454
"links": {
5555
"phone_numbers": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers",
5656
"short_codes": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ShortCodes",
57-
"alpha_senders": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AlphaSenders"
57+
"alpha_senders": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AlphaSenders",
58+
"messages": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages",
59+
"broadcasts": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Broadcasts"
5860
},
5961
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
6062
}
@@ -102,7 +104,9 @@ def test_update_response(self):
102104
"links": {
103105
"phone_numbers": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers",
104106
"short_codes": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ShortCodes",
105-
"alpha_senders": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AlphaSenders"
107+
"alpha_senders": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AlphaSenders",
108+
"messages": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages",
109+
"broadcasts": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Broadcasts"
106110
},
107111
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
108112
}
@@ -161,7 +165,9 @@ def test_read_full_response(self):
161165
"links": {
162166
"phone_numbers": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers",
163167
"short_codes": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ShortCodes",
164-
"alpha_senders": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AlphaSenders"
168+
"alpha_senders": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AlphaSenders",
169+
"messages": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages",
170+
"broadcasts": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Broadcasts"
165171
},
166172
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
167173
}
@@ -211,7 +217,9 @@ def test_fetch_response(self):
211217
"links": {
212218
"phone_numbers": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers",
213219
"short_codes": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ShortCodes",
214-
"alpha_senders": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AlphaSenders"
220+
"alpha_senders": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AlphaSenders",
221+
"messages": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages",
222+
"broadcasts": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Broadcasts"
215223
},
216224
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
217225
}

0 commit comments

Comments
 (0)
0