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

Skip to content

Commit f1c82f8

Browse files
committed
[Librarian] Regenerated @ c1a7d536285c92cf710a2947929f704a27409602
1 parent 31bf309 commit f1c82f8

File tree

13 files changed

+110
-26
lines changed

13 files changed

+110
-26
lines changed

CHANGES.md

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

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

6+
[2017-10-20] Version 6.8.1
7+
---------------------------
8+
**Api**
9+
- Add `address_sid` param to IncomingPhoneNumbers create and update
10+
- Add 'fax_enabled' option for Phone Number Search
11+
12+
613
[2017-10-13] Version 6.8.0
714
---------------------------
815
**Api**

tests/integration/api/v2010/account/incoming_phone_number/test_local.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_read_full_response(self):
3838
{
3939
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4040
"address_requirements": "none",
41+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4142
"api_version": "2010-04-01",
4243
"beta": null,
4344
"capabilities": {
@@ -140,6 +141,7 @@ def test_create_response(self):
140141
{
141142
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
142143
"address_requirements": "none",
144+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
143145
"api_version": "2010-04-01",
144146
"beta": false,
145147
"capabilities": {

tests/integration/api/v2010/account/incoming_phone_number/test_mobile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_read_full_response(self):
3838
8000 {
3939
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4040
"address_requirements": "none",
41+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4142
"api_version": "2010-04-01",
4243
"beta": null,
4344
"capabilities": {
@@ -140,6 +141,7 @@ def test_create_response(self):
140141
{
141142
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
142143
"address_requirements": "none",
144+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
143145
"api_version": "2010-04-01",
144146
"beta": false,
145147
"capabilities": {

tests/integration/api/v2010/account/incoming_phone_number/test_toll_free.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_read_full_response(self):
3838
{
3939
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4040
"address_requirements": "none",
41+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4142
"api_version": "2010-04-01",
4243
"beta": null,
4344
"capabilities": {
@@ -140,6 +141,7 @@ def test_create_response(self):
140141
{
141142
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
142143
"address_requirements": "none",
144+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
143145
"api_version": "2010-04-01",
144146
"beta": false,
145147
"capabilities": {

tests/integration/api/v2010/account/test_incoming_phone_number.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_update_response(self):
3333
{
3434
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3535
"address_requirements": "none",
36+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3637
"api_version": "2010-04-01",
3738
"beta": false,
3839
"capabilities": {
@@ -92,6 +93,7 @@ def test_fetch_response(self):
9293
{
9394
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
9495
"address_requirements": "none",
96+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
9597
"api_version": "2010-04-01",
9698
"beta": false,
9799
"capabilities": {
@@ -178,6 +180,7 @@ def test_read_full_response(self):
178180
{
179181
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
180182
"address_requirements": "none",
183+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
181184
"api_version": "2010-04-01",
182185
"beta": null,
183186
"capabilities": {
@@ -274,6 +277,7 @@ def test_create_response(self):
274277
{
275278
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
276279
"address_requirements": "none",
280+
"address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
277281
"api_version": "2010-04-01",
278282
"beta": false,
279283
"capabilities": {

twilio/rest/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Client(object):
1818
""" A client for accessing the Twilio API. """
1919

2020
def __init__(self, username=None, password=None, account_sid=None, region=None,
21-
http_client=None, environment=None, request_hooks=None):
21+
http_client=None, environment=None):
2222
"""
2323
Initializes the Twilio Client
2424
@@ -48,7 +48,7 @@ def __init__(self, username=None, password=None, account_sid=None, region=None,
4848

4949
self.auth = (self.username, self.password)
5050
""" :type : tuple(str, str) """
51-
self.http_client = http_client or TwilioHttpClient(request_hooks=request_hooks)
51+
self.http_client = http_client or TwilioHttpClient()
5252
""" :type : HttpClient """
5353

5454
# Domains

twilio/rest/api/v2010/account/available_phone_number/local.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def stream(self, area_code=values.unset, contains=values.unset,
4545
near_number=values.unset, near_lat_long=values.unset,
4646
distance=values.unset, in_postal_code=values.unset,
4747
in_region=values.unset, in_rate_center=values.unset,
48-
in_lata=values.unset, in_locality=values.unset, limit=None,
49-
page_size=None):
48+
in_lata=values.unset, in_locality=values.unset,
49+
fax_enabled=values.unset, limit=None, page_size=None):
5050
"""
5151
Streams LocalInstance records from the API as a generator stream.
5252
This operation lazily loads records as efficiently as possible until the limit
@@ -70,6 +70,7 @@ def stream(self, area_code=values.unset, contains=values.unset,
7070
:param unicode in_rate_center: The in_rate_center
7171
:param unicode in_lata: The in_lata
7272
:param unicode in_locality: The in_locality
73+
:param bool fax_enabled: The fax_enabled
7374
:param int limit: Upper limit for the number of records to return. stream()
7475
guarantees to never return more than limit. Default is no limit
7576
:param int page_size: Number of records to fetch per request, when not set will use
@@ -100,6 +101,7 @@ def stream(self, area_code=values.unset, contains=values.unset,
100101
in_rate_center=in_rate_center,
101102
in_lata=in_lata,
102103
in_locality=in_locality,
104+
fax_enabled=fax_enabled,
103105
page_size=limits['page_size'],
104106
)
105107

@@ -113,8 +115,8 @@ def list(self, area_code=values.unset, contains=values.unset,
113115
near_number=values.unset, near_lat_long=values.unset,
114116
distance=values.unset, in_postal_code=values.unset,
115117
in_region=values.unset, in_rate_center=values.unset,
116-
in_lata=values.unset, in_locality=values.unset, limit=None,
117-
page_size=None):
118+
in_lata=values.unset, in_locality=values.unset,
119+
fax_enabled=values.unset, limit=None, page_size=None):
118120
"""
119121
Lists LocalInstance records from the API as a list.
120122
Unlike stream(), this operation is eager and will load `limit` records into
@@ -137,6 +139,7 @@ def list(self, area_code=values.unset, contains=values.unset,
137139
:param unicode in_rate_center: The in_rate_center
138140
:param unicode in_lata: The in_lata
139141
:param unicode in_locality: The in_locality
142+
:param bool fax_enabled: The fax_enabled
140143
:param int limit: Upper limit for the number of records to return. list() guarantees
141144
never to return more than limit. Default is no limit
142145
:param int page_size: Number of records to fetch per request, when not set will use
@@ -165,6 +168,7 @@ def list(self, area_code=values.unset, contains=values.unset,
165168
in_rate_center=in_rate_center,
166169
in_lata=in_lata,
167170
in_locality=in_locality,
171+
fax_enabled=fax_enabled,
168172
limit=limit,
169173
page_size=page_size,
170174
))
@@ -178,8 +182,8 @@ def page(self, area_code=values.unset, contains=values.unset,
178182
distance=values.unset, in_postal_code=values.unset,
179183
in_region=values.unset, in_rate_center=values.unset,
180184
in_lata=values.unset, in_locality=values.unset,
181-
page_token=values.unset, page_number=values.unset,
182-
page_size=values.unset):
185+
fax_enabled=values.unset, page_token=values.unset,
186+
page_number=values.unset, page_size=values.unset):
183187
"""
184188
Retrieve a single page of LocalInstance records from the API.
185189
Request is executed immediately
@@ -201,6 +205,7 @@ def page(self, area_code=values.unset, contains=values.unset,
201205
:param unicode in_rate_center: The in_rate_center
202206
:param unicode in_lata: The in_lata
203207
:param unicode in_locality: The in_locality
208+
:param bool fax_enabled: The fax_enabled
204209
:param str page_token: PageToken provided by the API
205210
:param int page_number: Page Number, this value is simply for client state
206211
:param int page_size: Number of records to return, defaults to 50
@@ -226,6 +231,7 @@ def page(self, area_code=values.unset, contains=values.unset,
226231
'InRateCenter': in_rate_center,
227232
'InLata': in_lata,
228233
'InLocality': in_locality,
234+
'FaxEnabled': fax_enabled,
229235
'PageToken': page_token,
230236
'Page': page_number,
231237
'PageSize': page_size,

twilio/rest/api/v2010/account/available_phone_number/mobile.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def stream(self, area_code=values.unset, contains=values.unset,
4545
near_number=values.unset, near_lat_long=values.unset,
4646
distance=values.unset, in_postal_code=values.unset,
4747
in_region=values.unset, in_rate_center=values.unset,
48-
in_lata=values.unset, in_locality=values.unset, limit=None,
49-
page_size=None):
48+
in_lata=values.unset, in_locality=values.unset,
49+
fax_enabled=values.unset, limit=None, page_size=None):
5050
"""
5151
Streams MobileInstance records from the API as a generator stream.
5252
This operation lazily loads records as efficiently as possible until the limit
@@ -70,6 +70,7 @@ def stream(self, area_code=values.unset, contains=values.unset,
7070
:param unicode in_rate_center: The in_rate_center
7171
:param unicode in_lata: The in_lata
7272
:param unicode in_locality: The in_locality
73+ F438
:param bool fax_enabled: The fax_enabled
7374
:param int limit: Upper limit for the number of records to return. stream()
7475
guarantees to never return more than limit. Default is no limit
7576
:param int page_size: Number of records to fetch per request, when not set will use
@@ -100,6 +101,7 @@ def stream(self, area_code=values.unset, contains=values.unset,
100101
in_rate_center=in_rate_center,
101102
in_lata=in_lata,
102103
in_locality=in_locality,
104+
fax_enabled=fax_enabled,
103105
page_size=limits['page_size'],
104106
)
105107

@@ -113,8 +115,8 @@ def list(self, area_code=values.unset, contains=values.unset,
113115
near_number=values.unset, near_lat_long=values.unset,
114116
distance=values.unset, in_postal_code=values.unset,
115117
in_region=values.unset, in_rate_center=values.unset,
116-
in_lata=values.unset, in_locality=values.unset, limit=None,
117-
page_size=None):
118+
in_lata=values.unset, in_locality=values.unset,
119+
fax_enabled=values.unset, limit=None, page_size=None):
118120
"""
119121
Lists MobileInstance records from the API as a list.
120122
Unlike stream(), this operation is eager and will load `limit` records into
@@ -137,6 +139,7 @@ def list(self, area_code=values.unset, contains=values.unset,
137139
:param unicode in_rate_center: The in_rate_center
138140
:param unicode in_lata: The in_lata
139141
:param unicode in_locality: The in_locality
142+
:param bool fax_enabled: The fax_enabled
140143
:param int limit: Upper limit for the number of records to return. list() guarantees
141144
never to return more than limit. Default is no limit
142145
:param int page_size: Number of records to fetch per request, when not set will use
@@ -165,6 +168,7 @@ def list(self, area_code=values.unset, contains=values.unset,
165168
in_rate_center=in_rate_center,
166169
in_lata=in_lata,
167170
in_locality=in_locality,
171+
fax_enabled=fax_enabled,
168172
limit=limit,
169173
page_size=page_size,
170174
))
@@ -178,8 +182,8 @@ def page(self, area_code=values.unset, contains=values.unset,
178182
distance=values.unset, in_postal_code=values.unset,
179183
in_region=values.unset, in_rate_center=values.unset,
180184
in_lata=values.unset, in_locality=values.unset,
181-
page_token=values.unset, page_number=values.unset,
182-
page_size=values.unset):
185+
fax_enabled=values.unset, page_token=values.unset,
186+
page_number=values.unset, page_size=values.unset):
183187
"""
184188
Retrieve a single page of MobileInstance records from the API.
185189
Request is executed immediately
@@ -201,6 +205,7 @@ def page(self, area_code=values.unset, contains=values.unset,
201205
:param unicode in_rate_center: The in_rate_center
202206
:param unicode in_lata: The in_lata
203207
:param unicode in_locality: The in_locality
208+
:param bool fax_enabled: The fax_enabled
204209
:param str page_token: PageToken provided by the API
205210
:param int page_number: Page Number, this value is simply for client state
206211
:param int page_size: Number of records to return, defaults to 50
@@ -226,6 +231,7 @@ def page(self, area_code=values.unset, contains=values.unset,
226231
'InRateCenter': in_rate_center,
227232
'InLata': in_lata,
228233
'InLocality': in_locality,
234+
'FaxEnabled': fax_enabled,
229235
'PageToken': page_token,
230236
'Page': page_number,
231237
'PageSize': page_size,

twilio/rest/api/v2010/account/available_phone_number/toll_free.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def stream(self, area_code=values.unset, contains=values.unset,
4545
near_number=values.unset, near_lat_long=values.unset,
4646
distance=values.unset, in_postal_code=values.unset,
4747
in_region=values.unset, in_rate_center=values.unset,
48-
in_lata=values.unset, in_locality=values.unset, limit=None,
49-
page_size=None):
48+
in_lata=values.unset, in_locality=values.unset,
49+
fax_enabled=values.unset, limit=None, page_size=None):
5050
"""
5151
Streams TollFreeInstance records from the API as a generator stream.
5252
This operation lazily loads records as efficiently as possible until the limit
@@ -70,6 +70,7 @@ def stream(self, area_code=values.unset, contains=values.unset,
7070
:param unicode in_rate_center: The in_rate_center
7171
:param unicode in_lata: The in_lata
7272
:param unicode in_locality: The in_locality
73+
:param bool fax_enabled: The fax_enabled
7374
:param int limit: Upper limit for the number of records to return. stream()
7475
guarantees to never return more than limit. Default is no limit
7576
:param int page_size: Number of records to fetch per request, when not set will use
@@ -100,6 +101,7 @@ def stream(self, area_code=values.unset, contains=values.unset,
100101
in_rate_center=in_rate_center,
101102
in_lata=in_lata,
102103
in_locality=in_locality,
104+
fax_enabled=fax_enabled,
103105
page_size=limits['page_size'],
104106
)
105107

@@ -113,8 +115,8 @@ def list(self, area_code=values.unset, contains=values.unset,
113115
near_number=values.unset, near_lat_long=values.unset,
114116
distance=values.unset, in_postal_code=values.unset,
115117
in_region=values.unset, in_rate_center=values.unset,
116-
in_lata=values.unset, in_locality=values.unset, limit=None,
117-
page_size=None):
118+
in_lata=values.unset, in_locality=values.unset,
119+
fax_enabled=values.unset, limit=None, page_size=None):
118120
"""
119121
Lists TollFreeInstance records from the API as a list.
120122
Unlike stream(), this operation is eager and will load `limit` records into
@@ -137,6 +139,7 @@ def list(self, area_code=values.unset, contains=values.unset,
137139
:param unicode in_rate_center: The in_rate_center
138140
:param unicode in_lata: The in_lata
139141
:param unicode in_locality: The in_locality
142+
:param bool fax_enabled: The fax_enabled
140143
:param int limit: Upper limit for the number of records to return. list() guarantees
141144
never to return more than limit. Default is no limit
142145
:param int page_size: Number of records to fetch per request, when not set will use
@@ -165,6 +168,7 @@ def list(self, area_code=values.unset, contains=values.unset,
165168
in_rate_center=in_rate_center,
166169
in_lata=in_lata,
167170
in_locality=in_locality,
171+
fax_enabled=fax_enabled,
168172
limit=limit,
169173
page_size=page_size,
170174
))
@@ -178,8 +182,8 @@ def page(self, area_code=values.unset, contains=values.unset,
178182
distance=values.unset, in_postal_code=values.unset,
179183
in_region=values.unset, in_rate_center=values.unset,
180184
in_lata=values.unset, in_locality=values.unset,
181-
page_token=values.unset, page_number=values.unset,
182-
page_size=values.unset):
185+
fax_enabled=values.unset, page_token=values.unset,
186+
page_number=values.unset, page_size=values.unset):
183187
"""
184188
Retrieve a single page of TollFreeInstance records from the API.
185189
Request is executed immediately
@@ -201,6 +205,7 @@ def page(self, area_code=values.unset, contains=values.unset,
201205
:param unicode in_rate_center: The in_rate_center
202206
:param unicode in_lata: The in_lata
203207
:param unicode in_locality: The in_locality
208+
:param bool fax_enabled: The fax_enabled
204209
:param str page_token: PageToken provided by the API
205210
:param int page_number: Page Number, this value is simply for client state
206211
:param int page_size: Number of records to return, defaults to 50
@@ -226,6 +231,7 @@ def page(self, area_code=values.unset, contains=values.unset,
226231
'InRateCenter': in_rate_center,
227232
'InLata': in_lata,
228233
'InLocality': in_locality,
234+
'FaxEnabled': fax_enabled,
229235
'PageToken': page_token,
230236
'Page': page_number,
231237
'PageSize': page_size,

0 commit comments

Comments
 (0)
0