8000 [Librarian] Regenerated @ ffacdca4676a6b497016d64a881c854bbb1af883 · arpittripathi2007/twilio-python@d88e42d · GitHub
[go: up one dir, main page]

Skip to content

Commit d88e42d

Browse files
committed
[Librarian] Regenerated @ ffacdca4676a6b497016d64a881c854bbb1af883
1 parent 4e854d5 commit d88e42d

File tree

4 files changed

+44
-5
lines changed

4 files changed

+44
-5
lines changed

CHANGES.md

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

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

6+
[2018-03-12] Version 6.10.5
7+
----------------------------
8+
**Api**
9+
- Add `caller_id` param to Outbound Calls API
10+
- Release `trim` recording Outbound Calls API functionality in helper libraries
11+
12+
**Video**
13+
- [composer] Add `room_sid` to Composition resource.
14+
15+
**Twiml**
16+
- Adds support for passing in multiple input type enums when setting `input` on `Gather`
17+
18+
619
[2018-02-23] Version 6.10.4
720
----------------------------
821
**Api**

tests/integration/video/v1/test_composition.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_fetch_response(self):
4848
"bitrate": 64,
4949
"size": 4,
5050
"duration": 6,
51+
"room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5152
"url": "https://video.twilio.com/v1/Compositions/CJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5253
"links": {
5354
"media": "https://video.twilio.com/v1/Compositions/CJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media"
@@ -118,6 +119,7 @@ def test_read_results_response(self):
118119
"bitrate": 16,
119120
"size": 55,
120121
"duration": 10,
122+
"room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
121123
"url": "https://video.twilio.com/v1/Compositions/CJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
122124
"links": {
123125
"media": "https://video.twilio.com/v1/Compositions/CJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media"
@@ -195,6 +197,7 @@ def test_create_response(self):
195197
"bitrate": 0,
196198
"size": 0,
197199
"duration": 1,
200+
"room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
198201
"url": "https://video.twilio.com/v1/Compositions/CJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
199202
"links": {
200203
"media": "https://video.twilio.com/v1/Compositions/CJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media"

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def create(self, to, from_, method=values.unset, fallback_url=values.unset,
5252
sip_auth_username=values.unset, sip_auth_password=values.unset,
5353
machine_detection=values.unset,
5454
machine_detection_timeout=values.unset,
55-
recording_status_callback_event=values.unset, url=values.unset,
55+
recording_status_callback_event=values.unset, trim=values.unset,
56+
caller_id=values.unset, url=values.unset,
5657
application_sid=values.unset):
5758
"""
5859
Create a new CallInstance
@@ -77,6 +78,8 @@ def create(self, to, from_, method=values.unset, fallback_url=values.unset,
7778
:param unicode machine_detection: Enable machine detection or end of greeting detection
7879
:param unicode machine_detection_timeout: Number of miliseconds to wait for machine detection
7980
:param unicode recording_status_callback_event: The recording_status_callback_event
81+
:param unicode trim: Set this parameter to control trimming of silence on the recording.
82+
:param unicode caller_id: The phone number, SIP address or Client identifier that made this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`.
8083
:param unicode url: Url from which to fetch TwiML
8184
:param unicode application_sid: ApplicationSid that configures from where to fetch TwiML
8285
@@ -106,6 +109,8 @@ def create(self, to, from_, method=values.unset, fallback_url=values.unset,
106109
'MachineDetection': machine_detection,
107110
'MachineDetectionTimeout': machine_detection_timeout,
108111
'RecordingStatusCallbackEvent': serialize.map(recording_status_callback_event, lambda e: e),
112+
'Trim': trim,
113+
'CallerId': caller_id,
109114
})
110115

111116
payload = self._version.create(

twilio/rest/video/v1/composition/__init__.py

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def __init__(self, version):
3636
self._uri = '/Compositions'.format(**self._solution)
3737

3838
def stream(self, status=values.unset, date_created_after=values.unset,
39-
date_created_before=values.unset, limit=None, page_size=None):
39+
date_created_before=values.unset, room_sid=values.unset, limit=None,
40+
page_size=None):
4041
"""
4142
Streams CompositionInstance records from the API as a generator stream.
4243
This operation lazily loads records as efficiently as possible until the limit
@@ -46,6 +47,7 @@ def stream(self, status=values.unset, date_created_after=values.unset,
4647
:param CompositionInstance.Status status: The status
4748
:param datetime date_created_after: The date_created_after
4849
:param datetime date_created_before: The date_created_before
50+
:param unicode room_sid: The room_sid
4951
:param int limit: Upper limit for the number of records to return. stream()
5052
guarantees to never return more than limit. Default is no limit
5153
:param int page_size: Number of records to fetch per request, when not set will use
@@ -62,13 +64,15 @@ def stream(self, status=values.unset, date_created_after=values.unset,
6264
status=status,
6365
date_created_after=date_created_after,
6466
date_created_before=date_created_before,
67+
room_sid=room_sid,
6568
page_size=limits['page_size'],
6669
)
6770

6871
return self._version.stream(page, limits['limit'], limits['page_limit'])
6972

7073
def list(self, status=values.unset, date_created_after=values.unset,
71-
date_created_before=values.unset, limit=None, page_size=None):
74+
date_created_before=values.unset, room_sid=values.unset, limit=None,
75+
page_size=None):
7276
"""
7377
Lists CompositionInstance records from the API as a list.
7478
Unlike stream(), this operation is eager and will load `limit` records into
@@ -77,6 +81,7 @@ def list(self, status=values.unset, date_created_after=values.unset,
7781
:param CompositionInstance.Status status: The status
7882
:param datetime date_created_after: The date_created_after
7983
:param datetime date_created_before: The date_created_before
84+
:param unicode room_sid: The room_sid
8085
:param int limit: Upper limit for the number of records to return. list() guarantees
8186
never to return more than limit. Default is no limit
8287
:param int page_size: Number of records to fetch per request, when not set will use
@@ -91,20 +96,23 @@ def list(self, status=values.unset, date_created_after=values.unset,
9196
status=status,
9297
date_created_after=date_created_after,
9398
date_created_before=date_created_before,
99+
room_sid=room_sid,
94100
limit=limit,
95101
page_size=page_size,
96102
))
97103

98104
def page(self, status=values.unset, date_created_after=values.unset,
99-
date_created_before=values.unset, page_token=values.unset,
100-
page_number=values.unset, page_size=values.unset):
105+
date_created_before=values.unset, room_sid=values.unset,
106+
page_token=values.unset, page_number=values.unset,
107+
page_size=values.unset):
101108
"""
102109
Retrieve a single page of CompositionInstance records from the API.
103110
Request is executed immediately
104111
105112
:param CompositionInstance.Status status: The status
106113
:param datetime date_created_after: The date_created_after
107114
:param datetime date_created_before: The date_created_before
115+
:param unicode room_sid: The room_sid
108116
:param str page_token: PageToken provided by the API
109117
:param int page_number: Page Number, this value is simply for client state
110118
:param int page_size: Number of records to return, defaults to 50
@@ -116,6 +124,7 @@ def page(self, status=values.unset, date_created_after=values.unset,
116124
'Status': status,
117125
'DateCreatedAfter': serialize.iso8601_datetime(date_created_after),
118126
'DateCreatedBefore': serialize.iso8601_datetime(date_created_before),
127+
'RoomSid': room_sid,
119128
'PageToken': page_token,
120129
'Page': page_number,
121130
'PageSize': page_size,
@@ -374,6 +383,7 @@ def __init__(self, version, payload, sid=None):
374383
'size': deserialize.integer(payload['size']),
375384
'duration': deserialize.integer(payload['duration']),
376385
'url': payload['url'],
386+
'room_sid': payload['room_sid'],
377387
'links': payload['links'],
378388
}
379389

@@ -514,6 +524,14 @@ def url(self):
514524
"""
515525
return self._properties['url']
516526

527+
@property
528+
def room_sid(self):
529+
"""
530+
:returns: The room_sid
531+
:rtype: unicode
532+
"""
533+
return self._properties['room_sid']
534+
517535
@property
518536
def links(self):
519537
"""

0 commit comments

Comments
 (0)
0