8000 [Librarian] Regenerated @ 9e369cf9a8faca3a4590250f768d8ce69a65d0e8 · thecodeflash/twilio-python@3b88307 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b88307

Browse files
committed
[Librarian] Regenerated @ 9e369cf9a8faca3a4590250f768d8ce69a65d0e8
1 parent 46e0d46 commit 3b88307

File tree

34 files changed

+2655
-112
lines changed

34 files changed

+2655
-112
lines changed

CHANGES.md

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

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

6+
[2017-12-15] Version 6.10.0
7+
----------------------------
8+
**Api**
9+
- Add `voip`, `national`, `shared_cost`, and `machine_to_machine` sub-resources to `/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/`
10+
- Add programmable video keys
11+
12+
**Preview**
13+
- Add `verification_type` and `verification_document_sid` to HostedNumberOrders.
14+
15+
**Proxy**
16+
- Fixed typo in session status enum value
17+
18+
**Twiml**
19+
- Fix Dial record property incorrectly typed as accepting TrimEnum values when it actually has its own enum of values. *(breaking change)*
20+
- Add `priority` and `timeout` properties to Task TwiML.
21+
- Add support for `recording_status_callback_event` for Dial verb and for Conference
22+
23+
624
[2017-12-01] Version 6.9.1
725
---------------------------
826
**Api**
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# coding=utf-8
2+
"""
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 MachineToMachineTestCase(IntegrationTestCase):
16+
17+
def test_list_request(self):
18+
self.holodeck.mock(Response(500, ''))
19+
20+
with self.assertRaises(TwilioException):
21+
self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
22+
.available_phone_numbers(country_code="US") \
23+
.machine_to_machine.list()
24+
25+
self.holodeck.assert_has_request(Request(
26+
'get',
27+
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/MachineToMachine.json',
28+
))
29+
30+
def test_read_full_response(self):
31+
self.holodeck.mock(Response(
32+
200,
33+
'''
34+
{
35+
"available_phone_numbers": [
36+
{
37+
"address_requirements": "none",
38+
"beta": false,
39+
"capabilities": {
40+
"mms": false,
41+
"sms": true,
42+
"voice": false
43+
},
44+
"friendly_name": "+4759440374",
45+
"iso_country": "NO",
46+
"lata": null,
47+
"latitude": null,
48+
"locality": null,
49+
"longitude": null,
50+
"phone_number": "+4759440374",
51+
"postal_code": null,
52+
"rate_center": null,
53+
"region": null
54+
}
55+
],
56+
"end": 1,
57+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/MachineToMachine.json?PageSize=50&Page=0",
58+
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/MachineToMachine.json?PageSize=50&Page=0",
59+
"next_page_uri": null,
60+
"num_pages": 1,
61+
"page": 0,
62+
"page_size": 50,
63+
"previous_page_uri": null,
64+
"start": 0,
65+
"total": 1,
66+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/MachineToMachine.json?PageSize=1"
67+
}
68+
'''
69+
))
70+
71+
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
72+
.available_phone_numbers(country_code="US") \
73+
.machine_to_machine.list()
74+
75+
self.assertIsNotNone(actual)
76+
77+
def test_read_empty_response(self):
78+
self.holodeck.mock(Response(
79+
200,
80+
'''
81+
{
82+
"available_phone_numbers": [],
83+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/MachineToMachine.json?PageSize=50&Page=0",
84+
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/MachineToMachine.json?PageSize=50&Page=0",
85+
"next_page_uri": null,
86+
"num_pages": 1,
87+
"page": 0,
88+
"page_size": 50,
89+
"previous_page_uri": null,
90+
"start": 0,
91+
"total": 1,
92+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/MachineToMachine.json?PageSize=1"
93+
}
94+
'''
95+
))
96+
97+
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
98+
.available_phone_numbers(country_code="US") \
99+
.machine_to_machine.list()
100+
101+
self.assertIsNotNone(actual)
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# coding=utf-8
2+
"""
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 NationalTestCase(IntegrationTestCase):
16+
17+
def test_list_request(self):
18+
self.holodeck.mock(Response(500, ''))
19+
20+
with self.assertRaises(TwilioException):
21+
self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
22+
.available_phone_numbers(country_code="US") \
23+
.national.list()
24+
25+
self.holodeck.assert_has_request(Request(
26+
'get',
27+
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/National.json',
28+
))
29+
30+
def test_read_full_response(self):
31+
self.holodeck.mock(Response(
32+
200,
33+
'''
34+
{
35+
"available_phone_numbers": [
36+
{
37+
"address_requirements": "none",
38+
"beta": false,
39+
"capabilities": {
40+
"mms": false,
41+
"sms": true,
42+
"voice": false
43+
},
44+
"friendly_name": "+4759440374",
45+
"iso_country": "NO",
46+
"lata": null,
47+
"latitude": null,
48+
"locality": null,
49+
"longitude": null,
50+
"phone_number": "+4759440374",
51+
"postal_code": null,
52+
"rate_center": null,
53+
"region": null
54+
}
55+
],
56+
"end": 1,
57+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/National.json?PageSize=50&Page=0",
58+
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/National.json?PageSize=50&Page=0",
59+
"next_page_uri": null,
60+
"num_pages": 1,
61+
"page": 0,
62+
"page_size": 50,
63+
"previous_page_uri": null,
64+
"start": 0,
65+
"total": 1,
66+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/National.json?PageSize=1"
67+
}
68+
'''
69+
))
70+
71+
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
72+
.available_phone_numbers(country_code="US") \
73+
.national.list()
74+
75+
self.assertIsNotNone(actual)
76+
77+
def test_read_empty_response(self):
78+
self.holodeck.mock(Response(
79+
200,
80+
'''
81+
{
82+
"available_phone_numbers": [],
83+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/National.json?PageSize=50&Page=0",
84+
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/National.json?PageSize=50&Page=0",
85+
"next_page_uri": null,
86+
"num_pages": 1,
87+
"page": 0,
88+
"page_size": 50,
89+
"previous_page_uri": null,
90+
"start": 0,
91+
"total": 1,
92+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/National.json?PageSize=1"
93+
}
94+
'''
95+
))
96+
97+
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
98+
.available_phone_numbers(country_code="US") \
99+
.national.list()
100+
101+
self.assertIsNotNone(actual)
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# coding=utf-8
2+
"""
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 SharedCostTestCase(IntegrationTestCase):
16+
17+
def test_list_request(self):
18+
self.holodeck.mock(Response(500, ''))
19+
20+
with self.assertRaises(TwilioException):
21+
self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
22+
.available_phone_numbers(country_code="US") \
23+
.shared_cost.list()
24+
25+
self.holodeck.assert_has_request(Request(
26+
'get',
27+
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/SharedCost.json',
28+
))
29+
30+
def test_read_full_response(self):
31+
self.holodeck.mock(Response(
32+
200,
33+
'''
34+
{
35+
"available_phone_numbers": [
36+
{
37+
"address_requirements": "none",
38+
"beta": false,
39+
"capabilities": {
40+
"mms": false,
41+
"sms": true,
42+
"voice": false
43+
},
44+
"friendly_name": "+4759440374",
45+
"iso_country": "NO",
46+
"lata": null,
47+
"latitude": null,
48+
"locality": null,
49+
"longitude": null,
50+
"phone_number": "+4759440374",
51+
"postal_code": null,
52+
"rate_center": null,
53+
"region": null
54+
}
55+
],
56+
"end": 1,
57+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/SharedCost.json?PageSize=50&Page=0",
58+
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/SharedCost.json?PageSize=50&Page=0",
59+
"next_page_uri": null,
60+
"num_pages": 1,
61+
"page": 0,
62+
"page_size": 50,
63+
"previous_page_uri": null,
64+
"start": 0,
65+
"total": 1,
66+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/SharedCost.json?PageSize=1"
67+
}
68+
'''
69+
))
70+
71+
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
72+
.available_phone_numbers(country_code="US") \
73+
.shared_cost.list()
74+
75+
self.assertIsNotNone(actual)
76+
77+
def test_read_empty_response(self):
78+
self.holodeck.mock(Response(
79+
200,
80+
'''
81+
{
82+
"available_phone_numbers": [],
83+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/SharedCost.json?PageSize=50&Page=0",
84+
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/SharedCost.json?PageSize=50&Page=0",
85+
"next_page_uri": null,
86+
"num_pages": 1,
87+
"page": 0,
88+
"page_size": 50,
89+
"previous_page_uri": null,
90+
"start": 0,
91+
"total": 1,
92+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/SharedCost.json?PageSize=1"
93+
}
94+
'''
95+
))
96+
97+
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
98+
.available_phone_numbers(country_code="US") \
99+
.shared_cost.list()
100+
101+
self.assertIsNotNone(actual)

0 commit comments

Comments
 (0)
0