8000 [Librarian] Regenerated @ c6bce2f9b2a989c29277cc026a304f9835ec257a · thecodeflash/twilio-python@088bf4c · GitHub
[go: up one dir, main page]

Skip to content

Commit 088bf4c

Browse files
committed
[Librarian] Regenerated @ c6bce2f9b2a989c29277cc026a304f9835ec257a
1 parent 2e012d7 commit 088bf4c

File tree

14 files changed

+387
-77
lines changed

14 files changed

+387
-77
lines changed

CHANGES.md

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

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

6+
[2017-12-01] Version 6.9.1
7+
---------------------------
8+
**Api**
9+
- Use the correct properties for Dependent Phone Numbers of an Address *(breaking change)*
10+
- Update Call Recordings with the correct properties
11+
12+
**Preview**
13+
- Add `status` and `email` query param filters for AuthorizationDocument list endpoint
14+
15+
**Proxy**
16+
- Added DELETE support to Interaction
17+
- Standardized enum values to dash-case
18+
- Rename Service#friendly_name to Service#unique_name
19+
20+
**Video**
21+
- Remove beta flag from `media_region` and `video_codecs`
22+
23+
**Wireless**
24+
- Bug fix: Changed `operator_mcc` and `operator_mnc` in `DataSessions` subresource from `integer` to `string`
25+
26+
627
[2017-11-17] Version 6.9.0
728
---------------------------
829
**Sync**

tests/integration/api/v2010/account/address/test_dependent_phone_number.py

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,36 @@ def test_read_full_response(self):
3434
{
3535
"dependent_phone_numbers": [
3636
{
37+
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
39+
"friendly_name": "3197004499318",
40+
"phone_number": "+3197004499318",
41+
"voice_url": null,
42+
"voice_method": "POST",
43+
"voice_fallback_url": null,
44+
"voice_fallback_method": "POST",
45+
"voice_caller_id_lookup": false,
46+
"date_created": "Thu, 23 Feb 2017 10:26:31 -0800",
47+
"date_updated": "Thu, 23 Feb 2017 10:26:31 -0800",
48+
"sms_url": "",
49+
"sms_method": "POST",
50+
"sms_fallback_url": "",
51+
"sms_fallback_method": "POST",
3752
"address_requirements": "any",
3853
"capabilities": {
39-
"MMS": "false",
40-
"SMS": "true",
41-
"voice": "true"
54+
"Voice": false,
55+
"SMS": true,
56+
"MMS": false
4257
},
43-
"friendly_name": "(510) 555-1212",
44-
"iso_country": "US",
45-
"lata": "722",
46-
"latitude": "37.780000",
47-
"longitude": "-122.380000",
48-
"phone_number": "+15105551212",
49-
"postal_code": "94703",
50-
"rate_center": "OKLD TRNID",
51-
"region": "CA"
58+
"status_callback": "",
59+
"status_callback_method": "POST",
60+
"api_version": "2010-04-01",
61+
"voice_application_sid": null,
62+
"sms_application_sid": "",
63+
"trunk_sid": null,
64+
"emergency_status": "Inactive",
65+
"emergency_address_sid": null,
66+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
5267
}
5368
],
5469
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DependentPhoneNumbers.json?Page=0&PageSize=50",

tests/integration/api/v2010/account/call/test_recording.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ def test_fetch_response(self):
3838
"date_created": "Mon, 22 Aug 2011 20:58:45 +0000",
3939
"date_updated": "Mon, 22 Aug 2011 20:58:45 +0000",
4040
"duration": "6",
41-
"price": null,
4241
"sid": "REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
42+
"price": "0.04",
43+
"price_unit": "USD",
44+
"status": "completed",
45+
"channels": 1,
46+
"source": "Trunking",
4347
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
4448
"encryption_details": {
4549
"encryption_public_key_sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -116,8 +120,12 @@ def test_read_full_response(self):
116120
"date_created": "Mon, 22 Aug 2011 20:58:45 +0000",
117121
"date_updated": "Mon, 22 Aug 2011 20:58:45 +0000",
118122
"duration": "6",
119-
"price": null,
120123
"sid": "REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
124+
"price": "0.04",
125+
"price_unit": "USD",
126+
"status": "completed",
127+
"channels": 1,
128+
"source": "Trunking",
121129
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
122130
"encryption_details": {
123131
"encryption_public_key_sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",

tests/integration/proxy/v1/service/session/test_interaction.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,28 @@ def test_read_empty_response(self):
9898
.interactions.list()
9999

100100
self.assertIsNotNone(actual)
101+
102+
def test_delete_request(self):
103+
self.holodeck.mock(Response(500, ''))
104+
105+
with self.assertRaises(TwilioException):
106+
self.client.proxy.v1.services(sid="KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
107+
.sessions(sid="KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
108+
.interactions(sid="KIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
109+
110+
self.holodeck.assert_has_request(Request(
111+
'delete',
112+
'https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sessions/KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Interactions/KIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
113+
))
114+
115+
def test_delete_response(self):
116+
self.holodeck.mock(Response(
117+
204,
118+
None,
119+
))
120+
121+
actual = self.client.proxy.v1.services(sid="KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
122+
.sessions(sid="KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
123+
.interactions(sid="KIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
124+
125+
self.assertTrue(actual)

tests/integration/proxy/v1/test_service.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_fetch_response(self):
3232
{
3333
"sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3434
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
35-
"friendly_name": "friendly_name",
35+
"unique_name": "unique_name",
3636
"default_ttl": 3600,
3737
"callback_url": "http://www.example.com",
3838
"geo_match_level": "country",
@@ -93,11 +93,14 @@ def test_create_request(self):
9393
self.holodeck.mock(Response(500, ''))
9494

9595
with self.assertRaises(TwilioException):
96-
self.client.proxy.v1.services.create()
96+
self.client.proxy.v1.services.create(unique_name="unique_name")
97+
98+
values = {'UniqueName': "unique_name"}
9799

98100
self.holodeck.assert_has_request(Request(
99101
'post',
100102
'https://proxy.twilio.com/v1/Services',
103+
data=values,
101104
))
102105

103106
def test_create_response(self):
@@ -107,7 +110,7 @@ def test_create_response(self):
107110
{
108111
"sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
109112
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
110-
"friendly_name": "friendly_name",
113+
"unique_name": "unique_name",
111114
"default_ttl": 3600,
112115
"callback_url": "http://www.example.com",
113116
"geo_match_level": "country",
@@ -126,7 +129,7 @@ def test_create_response(self):
126129
'''
127130
))
128131

129-
actual = self.client.proxy.v1.services.create()
132+
actual = self.client.proxy.v1.services.create(unique_name="unique_name")
130133

131134
self.assertIsNotNone(actual)
132135

@@ -169,7 +172,7 @@ def test_update_response(self):
169172
{
170173
"sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
171174
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
172-
"friendly_name": "friendly_name",
175+
"unique_name": "unique_name",
173176
"default_ttl": 3600,
174177
"callback_url": "http://www.example.com",
175178
"geo_match_level": "country",

tests/integration/video/v1/test_room.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def test_fetch_response(self):
4646
"video_codecs": [
4747
"VP8"
4848
],
49+
"media_region": "us1",
4950
"end_time": "2015-07-30T20:00:00Z",
5051
"url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaa 93C6 aaaaaaaaaaaaaaaaaaaaaa",
5152
"links": {
@@ -92,6 +93,7 @@ def test_create_response(self):
9293
"video_codecs": [
9394
"VP8"
9495
],
96+
"media_region": "us1",
9597
"end_time": "2015-07-30T20:00:00Z",
9698
"url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
9799
"links": {
@@ -164,6 +166,7 @@ def test_read_with_status_response(self):
164166
"video_codecs": [
165167
"VP8"
166168
],
169+
"media_region": "us1",
167170
"url": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c",
168171
"links": {
169172
"participants": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Participants",
@@ -222,6 +225,7 @@ def test_update_response(self):
222225
"video_codecs": [
223226
"VP8"
224227
],
228+
"media_region": "us1",
225229
"end_time": "2015-07-30T20:00:00Z",
226230
"duration": 10,
227231
"url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",

tests/integration/wireless/v1/sim/test_data_session.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def test_fetch_response(self):
3737
"sim_sid": "DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3838
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3939
"radio_link": "LTE",
40-
"operator_mcc": 0,
41-
"operator_mnc": 0,
40+
"operator_mcc": "",
41+
"operator_mnc": "",
4242
"operator_country": "",
4343
"operator_name": "",
4444
"cell_id": "",
@@ -54,8 +54,8 @@ def test_fetch_response(self):
5454
"sim_sid": "DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5555
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5656
"radio_link": "3G",
57-
"operator_mcc": 0,
58-
"operator_mnc": 0,
57+
"operator_mcc": "",
58+
"operator_mnc": "",
5959
"operator_country": "",
6060
"operator_name": "",
6161
"cell_id": "",

0 commit comments

Comments
 (0)
0