Skip to content

Commit 3328bed

Browse files
committed
[Librarian] Regenerated @ 2f22cf66b98b219baa67a4b7d0e07e40d6faef27
1 parent 2421d5b commit 3328bed

30 files changed

+723
-679
lines changed

CHANGES.md

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

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

6+
[2019-04-24] Version 6.26.2
7+
----------------------------
8+
**Library**
9+
- PR #465: Prepend the repo root to the system paths during doc generation. Thanks to @childish-sambino!
10+
- PR #463: Migrate the README to markdown. Thanks to @childish-sambino!
11+
12+
**Api**
13+
- Add `verified` property to Addresses
14+
15+
**Numbers**
16+
- Add API for Identites and documents
17+
18+
**Proxy**
19+
- Add in use count on number instance
20+
21+
622
[2019-04-12] Version 6.26.1
723
----------------------------
824
**Library**

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_create_response(self):
5454
"sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5555
"street": "4th",
5656
"validated": false,
57+
"verified": false,
5758
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
5859
}
5960
'''
@@ -117,6 +118,7 @@ def test_fetch_response(self):
117118
"sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
118119
"street": "4th",
119120
"validated": false,
121+
"verified": false,
120122
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
121123
}
122124
'''
@@ -157,6 +159,7 @@ def test_update_response(self):
157159
"sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
158160
"street": "4th",
159161
"validated": false,
162+
"verified": false,
160163
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
161164
}
162165
'''
@@ -199,6 +202,7 @@ def test_read_full_response(self):
199202
"sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
200203
"street": "4th",
201204
"validated": false,
205+
"verified": false,
202206
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
203207
}
204208
],

tests/integration/proxy/v1/service/test_phone_number.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def test_create_response(self):
4444
"voice_inbound": false
4545
},
4646
"url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
47-
"is_reserved": false
47+
"is_reserved": false,
48+
"in_use": 0
4849
}
4950
'''
5051
))
@@ -118,7 +119,8 @@ def test_read_full_response(self):
118119
"voice_inbound": false
119120
},
120121
"url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
121-
"is_reserved": false
122+
"is_reserved": false,
123+
"in_use": 0
122124
}
123125
]
124126
}
@@ -160,7 +162,8 @@ def test_fetch_response(self):
160162
"voice_inbound": false
161163
},
162164
"url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
163-
"is_reserved": false
165+
"is_reserved": false,
166+
"in_use": 0
164167
}
165168
'''
166169
))
@@ -200,7 +203,8 @@ def test_update_response(self):
200203
"voice_inbound": false
201204
},
202205
"url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
203-
"is_reserved": true
206+
"is_reserved": true,
207+
"in_use": 0
204208
}
205209
'''
206210
))

twilio/rest/__init__.py

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,24 @@ def __init__(self, username=None, password=None, account_sid=None, region=None,
5959
self._chat = None
6060
self._fax = None
6161
self._flex_api = None
62+
self._insights = None
6263
self._ip_messaging = None
6364
self._lookups = None
65+
self._messaging = None
6466
self._monitor = None
6567
self._notify = None
6668
self._preview = None
6769
self._pricing = None
6870
self._proxy = None
6971
self._serverless = None
72+
self._studio = None
73+
self._sync = None
7074
self._taskrouter = None
7175
self._trunking = None
72-
self._video = None
73-
self._messaging = None
74-
self._wireless = None
75-
self._sync = None
76-
self._studio = None
7776
self._verify = None
77+
self._video = None
7878
self._voice = None
79-
self._insights = None
79+
self._wireless = None
8080

8181
def request(self, method, uri, params=None, data=None, headers=None, auth=None,
8282
timeout=None, allow_redirects=False):
@@ -220,6 +220,19 @@ def flex_api(self):
220220
self._flex_api = FlexApi(self)
221221
return self._flex_api
222222

223+
@property
224+
def insights(self):
225+
"""
226+
Access the Insights Twilio Domain
227+
228+
:returns: Insights Twilio Domain
229+
:rtype: twilio.rest.insights.Insights
230+
"""
231+
if self._insights is None:
232+
from twilio.rest.insights import Insights
233+
self._insights = Insights(self)
234+
return self._insights
235+
223236
@property
224237
def ip_messaging(self):
225238
"""
@@ -246,6 +259,19 @@ def lookups(self):
246259
self._lookups = Lookups(self)
247260
return self._lookups
248261

262+
@property
263+
def messaging(self):
264+
"""
265+
Access the Messaging Twilio Domain
266+
267+
:returns: Messaging Twilio Domain
268+
:rtype: twilio.rest.messaging.Messaging
269+
"""
270+
if self._messaging is None:
271+
from twilio.rest.messaging import Messaging
272+
self._messaging = Messaging(self)
273+
return self._messaging
274+
249275
@property
250276
def monitor(self):
251277
"""
@@ -324,6 +350,32 @@ def serverless(self):
324350
self._serverless = Serverless(self)
325351
return self._serverless
326352

353+
@property
354+
def studio(self):
355+
"""
356+
Access the Studio Twilio Domain
357+
358+
:returns: Studio Twilio Domain
359+
:rtype: twilio.rest.studio.Studio
360+
"""
361+
if self._studio is None:
362+
from twilio.rest.studio import Studio
363+
self._studio = Studio(self)
364+
return self._studio
365+
366+
@property
367+
def sync(self):
368+
"""
369+
Access the Sync Twilio Domain
370+
371+
:returns: Sync Twilio Domain
372+
:rtype: twilio.rest.sync.Sync
373+
"""
374+
if self._sync is None:
375+
from twilio.rest.sync import Sync
376+
self._sync = Sync(self)
377+
return self._sync
378+
327379
@property
328380
def taskrouter(self):
329381
"""
@@ -350,71 +402,6 @@ def trunking(self):
350402
self._trunking = Trunking(self)
351403
return self._trunking
352404

353-
@property
354-
def video(self):
355-
"""
356-
Access the Video Twilio Domain
357-
358-
:returns: Video Twilio Domain
359-
:rtype: twilio.rest.video.Video
360-
"""
361-
if self._video is None:
362-
from twilio.rest.video import Video
363-
self._video = Video(self)
364-
return self._video
365-
366-
@property
367-
def messaging(self):
368-
"""
369-
Access the Messaging Twilio Domain
370-
371-
:returns: Messaging Twilio Domain
372-
:rtype: twilio.rest.messaging.Messaging
373-
"""
374-
if self._messaging is None:
375-
from twilio.rest.messaging import Messaging
376-
self._messaging = Messaging(self)
377-
return self._messaging
378-
379-
@property
380-
def wireless(self):
381-
"""
382-
Access the Wireless Twilio Domain
383-
384-
:returns: Wireless Twilio Domain
385-
:rtype: twilio.rest.wireless.Wireless
386-
"""
387-
if self._wireless is None:
388-
from twilio.rest.wireless import Wireless
389-
self._wireless = Wireless(self)
390-
return self._wireless
391-
392-
@property
393-
def sync(self):
394-
"""
395-
Access the Sync Twilio Domain
396-
397-
:returns: Sync Twilio Domain
398-
:rtype: twilio.rest.sync.Sync
399-
"""
400-
if self._sync is None:
401-
from twilio.rest.sync import Sync
402-
self._sync = Sync(self)
403-
return self._sync
404-
405-
@property
406-
def studio(self):
407-
"""
408-
Access the Studio Twilio Domain
409-
410-
:returns: Studio Twilio Domain
411-
:rtype: twilio.rest.studio.Studio
412-
"""
413-
if self._studio is None:
414-
from twilio.rest.studio import Studio
415-
self._studio = Studio(self)
416-
return self._studio
417-
418405
@property
419406
def verify(self):
420407
"""
@@ -428,6 +415,19 @@ def verify(self):
428415
self._verify = Verify(self)
429416
return self._verify
430417

418+
@property
419+
def video(self):
420+
"""
421+
Access the Video Twilio Domain
422+
423+
:returns: Video Twilio Domain
424+
:rtype: twilio.rest.video.Video
425+
"""
426+
if self._video is None:
427+
from twilio.rest.video import Video
428+
self._video = Video(self)
429+
return self._video
430+
431431
@property
432432
def voice(self):
433433
"""
@@ -442,17 +442,17 @@ def voice(self):
442442
return self._voice
443443

444444
@property
445-
def insights(self):
445+
def wireless(self):
446446
"""
447-
Access the Insights Twilio Domain
447+
Access the Wireless Twilio Domain
448448
449-
:returns: Insights Twilio Domain
450-
:rtype: twilio.rest.insights.Insights
449+
:returns: Wireless Twilio Domain
450+
:rtype: twilio.rest.wireless.Wireless
451451
"""
452-
if self._insights is None:
453-
from twilio.rest.insights import Insights
454-
self._insights = Insights(self)
455-
return self._insights
452+
if self._wireless is None:
453+
from twilio.rest.wireless import Wireless
454+
self._wireless = Wireless(self)
455+
return self._wireless
456456

457457
@property
458458
def addresses(self):

twilio/rest/api/v2010/account/address/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ def __init__(self, version, payload, account_sid, sid=None):
408408
'uri': payload['uri'],
409409
'emergency_enabled': payload['emergency_enabled'],
410410
'validated': payload['validated'],
411+
'verified': payload['verified'],
411412
}
412413

413414
# Context
@@ -543,6 +544,14 @@ def validated(self):
543544
"""
544545
return self._properties['validated']
545546

547+
@property
548+
def verified(self):
549+
"""
550+
:returns: Whether the address has been verified to comply with regulation
551+
:rtype: bool
552+
"""
553+
return self._properties['verified']
554+
546555
def delete(self):
547556
"""
548557
Deletes the AddressInstance

0 commit comments

Comments
 (0)