8000 [Librarian] Regenerated @ af850518a6e9112cf3465e59b2b9b4914f0f8b18 · BioComputing/twilio-python@89d7cce · GitHub
[go: up one dir, main page]

Skip to content

Commit 89d7cce

Browse files
committed
[Librarian] Regenerated @ af850518a6e9112cf3465e59b2b9b4914f0f8b18
1 parent 338547d commit 89d7cce

File tree

15 files changed

+354
-156
lines changed

15 files changed

+354
-156
lines changed

CHANGES.md

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

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

6+
[2018-07-16] Version 6.15.0
7+
----------------------------
8+
**Library**
9+
- PR #436: Add request body validation. Thanks to @cjcodes!
10+
11+
**Twiml**
12+
- Add support for SSML on Say verb, the message body is changed to be optional **(breaking change)**
13+
14+
615
[2018-07-11] Version 6.14.10
716
-----------------------------
817
**Api**

tests/integration/api/v2010/account/sip/ip_access_control_list/test_ip_address.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_read_full_response(self):
4242
"date_updated": "Mon, 20 Jul 2015 17:27:10 +0000",
4343
"friendly_name": "friendly_name",
4444
"ip_access_control_list_sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
45-
"ip_address": "ip_address",
45+
"ip_address": "192.168.1.1",
4646
"cidr_prefix_length": 32,
4747
"sid": "IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4848
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses/IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
@@ -117,7 +117,7 @@ def test_create_response(self):
117117
"date_updated": "Mon, 20 Jul 2015 17:27:10 +0000",
118118
"friendly_name": "friendly_name",
119119
"ip_access_control_list_sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
120-
"ip_address": "ip_address",
120+
"ip_address": "192.168.1.1",
121121
"cidr_prefix_length": 32,
122122
"sid": "IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
123123
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses/IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
@@ -156,7 +156,7 @@ def test_fetch_response(self):
156156
"date_updated": "Mon, 20 Jul 2015 17:27:10 +0000",
157157
"friendly_name": "friendly_name",
158158
"ip_access_control_list_sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
159-
"ip_address": "ip_address",
159+
"ip_address": "192.168.1.1",
160160
"cidr_prefix_length": 32,
161161
"sid": "IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
162162
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses/IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
@@ -195,7 +195,7 @@ def test_update_response(self):
195195
"date_updated": "Mon, 20 Jul 2015 17:27:10 +0000",
196196
"friendly_name": "friendly_name",
197197
"ip_access_control_list_sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
198-
"ip_address": "ip_address",
198+
"ip_address": "192.168.1.1",
199199
"cidr_prefix_length": 32,
200200
"sid": "IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
201201
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses/IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"

twilio/rest/api/v2010/account/call/recording.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self, version, account_sid, call_sid):
3838
def create(self, recording_status_callback_event=values.unset,
3939
recording_status_callback=values.unset,
4040
recording_status_callback_method=values.unset, trim=values.unset,
41-
recording_channels=values.unset, play_beep=values.unset):
41+
recording_channels=values.unset):
4242
"""
4343
Create a new RecordingInstance
4444
@@ -47,7 +47,6 @@ def create(self, recording_status_callback_event=values.unset,
4747
:param unicode recording_status_callback_method: The recording_status_callback_method
4848
:param unicode trim: Whether to trim the silence in the recording
4949
:param unicode recording_channels: The recording_channels
50-
:param bool play_beep: Whether to play beeps for recording status changes
5150
5251
:returns: Newly created RecordingInstance
5352
:rtype: twilio.rest.api.v2010.account.call.recording.RecordingInstance
@@ -58,7 +57,6 @@ def create(self, recording_status_callback_event=values.unset,
5857
'RecordingStatusCallbackMethod': recording_status_callback_method,
5958
'Trim': trim,
6059
'RecordingChannels': recording_channels,
61-
'PlayBeep': play_beep,
6260
})
6361

6462
payload = self._version.create(

twilio/rest/api/v2010/account/usage/record/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def stream(self, category=values.unset, start_date=values.unset,
6363
:param RecordInstance.Category category: Only include usage of a given category
6464
:param date start_date: Filter by start date
6565
:param date end_date: Filter by end date
66-
:param bool include_subaccounts: The include_subaccounts
66+
:param bool include_subaccounts: Include usage from the master account and all subaccounts
6767
:param int limit: Upper limit for the number of records to return. stream()
6868
guarantees to never return more than limit. Default is no limit
6969
:param int page_size: Number of records to fetch per request, when not set will use
@@ -97,7 +97,7 @@ def list(self, category=values.unset, start_date=values.unset,
9797
:param RecordInstance.Category category: Only include usage of a given category
9898
:param date start_date: Filter by start date
9999
:param date end_date: Filter by end date
100-
:param bool include_subaccounts: The include_subaccounts
100+
:param bool include_subaccounts: Include usage from the master account and all subaccounts
101101
:param int limit: Upper limit for the number of records to return. list() guarantees
102102
never to return more than limit. Default is no limit
103103
:param int page_size: Number of records to fetch per request, when not set will use
@@ -128,7 +128,7 @@ def page(self, category=values.unset, start_date=values.unset,
128128
:param RecordInstance.Category category: Only include usage of a given category
129129
:param date start_date: Filter by start date
130130
:param date end_date: Filter by end date
131-
:param bool include_subaccounts: The include_subaccounts
131+
:param bool include_subaccounts: Include usage from the master account and all subaccounts
132132
:param str page_token: PageToken provided by the API
133133
:param int page_number: Page Number, this value is simply for client state
134134
:param int page_size: Number of records to return, defaults to 50

twilio/rest/monitor/v1/event.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ def stream(self, actor_sid=values.unset, event_type=values.unset,
4343
is reached.
4444
The results are returned as a generator, so this operation is memory efficient.
4545
46-
:param unicode actor_sid: The actor_sid
47-
:param unicode event_type: The event_type
48-
:param unicode resource_sid: The resource_sid
49-
:param unicode source_ip_address: The source_ip_address
50-
:param datetime start_date: The start_date
51-
:param datetime end_date: The end_date
46+
:param unicode actor_sid: Only include Events initiated by this Actor
47+
:param unicode event_type: Only include Events of this EventType
48+
:param unicode resource_sid: Only include Events referring to this resource
49+
:param unicode source_ip_address: Only include Events that originated from this IP address
50+
:param datetime start_date: Only show events on or after this date
51+
:param datetime end_date: Only show events on or before this date
5252
:param int limit: Upper limit for the number of records to return. stream()
5353
guarantees to never return more than limit. Default is no limit
5454
:param int page_size: Number of records to fetch per request, when not set will use
@@ -82,12 +82,12 @@ def list(self, actor_sid=values.unset, event_type=values.unset,
8282
Unlike stream(), this operation is eager and will load `limit` records into
8383
memory before returning.
8484
85-
:param unicode actor_sid: The actor_sid
86-
:param unicode event_type: The event_type
87-
:param unicode resource_sid: The resource_sid
88-
:param unicode source_ip_address: The source_ip_address
89-
:param datetime start_date: The start_date
90-
:param datetime end_date: The end_date
85+
:param unicode actor_sid: Only include Events initiated by this Actor
86+
:param unicode event_type: Only include Events of this EventType
87+
:param unicode resource_sid: Only include Events referring to this resource
88+
:param unicode source_ip_address: Only include Events that originated from this IP address
89+
:param datetime start_date: Only show events on or after this date
90+
:param datetime end_date: Only show events on or before this date
9191
:param int limit: Upper limit for the number of records to return. list() guarantees
9292
never to return more than limit. Default is no limit
9393
:param int page_size: Number of records to fetch per request, when not set will use
@@ -118,12 +118,12 @@ def page(self, actor_sid=values.unset, event_type=values.unset,
118118
Retrieve a single page of EventInstance records from the API.
119119
Request is executed immediately
120120
121-
:param unicode actor_sid: The actor_sid
122-
:param unicode event_type: The event_type
123-
:param unicode resource_sid: The resource_sid
124-
:param unicode source_ip_address: The source_ip_address
125-
:param datetime start_date: The start_date
126-
:param datetime end_date: The end_date
121+
:param unicode actor_sid: Only include Events initiated by this Actor
122+
:param unicode event_type: Only include Events of this EventType
123+
:param unicode resource_sid: Only include Events referring to this resource
124+
:param unicode source_ip_address: Only include Events that originated from this IP address
125+
:param datetime start_date: Only show events on or after this date
126+
:param datetime end_date: Only show events on or before this date
127127
:param str page_token: PageToken provided by the API
128128
:param int page_number: Page Number, this value is simply for client state
129129
:param int page_size: Number of records to return, defaults to 50
@@ -172,7 +172,7 @@ def get(self, sid):
172172
"""
173173
Constructs a EventContext
174174
175-
:param sid: The sid
175+
:param sid: A 34 character string that uniquely identifies this event.
176176
177177
:returns: twilio.rest.monitor.v1.event.EventContext
178178
:rtype: twilio.rest.monitor.v1.event.EventContext
@@ -183,7 +183,7 @@ def __call__(self, sid):
183183
"""
184184
Constructs a EventContext
185185
186-
:param sid: The sid
186+
:param sid: A 34 character string that uniquely identifies this event.
187187
188188
:returns: twilio.rest.monitor.v1.event.EventContext
189189
:rtype: twilio.rest.monitor.v1.event.EventContext
@@ -247,7 +247,7 @@ def __init__(self, version, sid):
247247
Initialize the EventContext
248248
249249
:param Version version: Version that contains the resource
250-
:param sid: The sid
250+
:param sid: A 34 character string that uniquely identifies this event.
251251
252252
:returns: twilio.rest.monitor.v1.event.EventContext
253253
:rtype: twilio.rest.monitor.v1.event.EventContext
@@ -336,23 +336,23 @@ def _proxy(self):
336336
@property
337337
def account_sid(self):
338338
"""
339-
:returns: The account_sid
339+
:returns: A 34 character string identifying the Account for which this Event was recorded.
340340
:rtype: unicode
341341
"""
342342
return self._properties['account_sid']
343343

344344
@property
345345
def actor_sid(self):
346346
"""
347-
:returns: The actor_sid
347+
:returns: If available, a 34 character string identifying the actor that caused this event. May be null.
348348
:rtype: unicode
349349
"""
350350
return self._properties['actor_sid']
351351

352352
@property
353353
def actor_type(self):
354354
"""
355-
:returns: The actor_type
355+
:returns: The type of actor that caused this event
356356
:rtype: unicode
357357
"""
358358
return self._properties['actor_type']
@@ -368,39 +368,39 @@ def description(self):
368368
@property
369369
def event_data(self):
370370
"""
371-
:returns: The event_data
371+
:returns: A freeform json object encoding additional data about the event
372372
:rtype: dict
373373
"""
374374
return self._properties['event_data']
375375

376376
@property
377377
def event_date(self):
378378
"""
379-
:returns: The event_date
379+
:returns: The date-time the event was recorded
380380
:rtype: datetime
381381
"""
382382
return self._properties['event_date']
383383

384384
@property
385385
def event_type(self):
386386
"""
387-
:returns: The event_type
387+
:returns: The event's type, as a string.
388388
:rtype: unicode
389389
"""
390390
return self._properties['event_type']
391391

392392
@property
393393
def resource_sid(self):
394394
"""
395-
:returns: The resource_sid
395+
:returns: A 34 character string identifying the resource that was affected.
396396
:rtype: unicode
397397
"""
398398
return self._properties['resource_sid']
399399

400400
@property
401401
def resource_type(self):
402402
"""
403-
:returns: The resource_type
403+
:returns: The type of resource that was affected
404404
:rtype: unicode
405405
"""
406406
return self._properties['resource_type']
@@ -424,7 +424,7 @@ def source(self):
424424
@property
425425
def source_ip_address(self):
426426
"""
427-
:returns: The source_ip_address
427+
:returns: The IP address of the source
428428
:rtype: unicode
429429
"""
430430
return self._properties['source_ip_address']

twilio/rest/preview/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,18 +180,18 @@ def hosted_number_orders(self):
180180
return self.hosted_numbers.hosted_number_orders
181181

182182
@property
183-
def available_add_ons(self):
183+
def installed_add_ons(self):
184184
"""
185-
:rtype: twilio.rest.preview.marketplace.available_add_on.AvailableAddOnList
185+
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
186186
"""
187-
return self.marketplace.available_add_ons
187+
return self.marketplace.installed_add_ons
188188

189189
@property
190-
def installed_add_ons(self):
190+
def available_add_ons(self):
191191
"""
192-
:rtype: twilio.rest.preview.marketplace.installed_add_on.InstalledAddOnList
192+
:rtype: twilio.rest.preview.marketplace.available_add_on.AvailableAddOnList
193193
"""
194-
return self.marketplace.installed_add_ons
194+
return self.marketplace.available_add_ons
195195

196196
@property
197197
def services(self):

twilio/rest/preview/marketplace/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,8 @@ def __init__(self, domain):
2222
"""
2323
super(Marketplace, self).__init__(domain)
2424
self.version = 'marketplace'
25-
self._available_add_ons = None
2625
self._installed_add_ons = None
27-
28-
@property
29-
def available_add_ons(self):
30-
"""
31-
:rtype: twilio.rest.preview.marketplace.available_add_on.AvailableAddOnList
32-
"""
33-
if self._available_add_ons is None:
34-
self._available_add_ons = AvailableAddOnList(self)
35-
return self._available_add_ons
26+
self._available_add_ons = None
3627

3728
@property
3829
def installed_add_ons(self):
@@ -43,6 +34,15 @@ def installed_add_ons(self):
4334
self._installed_add_ons = InstalledAddOnList(self)
4435
return self._installed_add_ons
4536

37+
@property
38+
def available_add_ons(self):
39+
"""
40+
:rtype: twilio.rest.preview.marketplace.available_add_on.AvailableAddOnList
41+
"""
42+
if self._available_add_ons is None:
43+
self._available_add_ons = AvailableAddOnList(self)
44+
return self._available_add_ons
45+
4646
def __repr__(self):
4747
"""
4848
Provide a friendly representation

0 commit comments

Comments
 (0)
0