8000 [Librarian] Regenerated @ 0f0b2504f7166f971139be89ca896dc5c087def3 · SavanGowda/twilio-python@fff4a66 · GitHub
[go: up one dir, main page]

Skip to content

Commit fff4a66

Browse files
committed
[Librarian] Regenerated @ 0f0b2504f7166f971139be89ca896dc5c087def3
1 parent 2f2818a commit fff4a66

File tree

10 files changed

+61
-57
lines changed

10 files changed

+61
-57
lines changed

CHANGES.md

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

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

6+
[2019-10-16] Version 6.32.0
7+
---------------------------
8+
**Library**
9+
- [PR #482](https://github.com/twilio/twilio-python/pull/482): Update a few property types in the lookups and trunking responses. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
10+
- [PR #483](https://github.com/twilio/twilio-python/pull/483): Update instance property marshaling to allow missing properties. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
11+
- [PR #484](https://github.com/twilio/twilio-python/pull/484): Feature/remove socks dependency. Thanks to [@Kerl1310](https://github.com/Kerl1310)!
12+
- [PR #481](https://github.com/twilio/twilio-python/pull/481): Change typehint for `PhoneNumberInstance.carrier`. Thanks to [@NCPlayz](https://github.com/NCPlayz)!
13+
- [PR #480](https://github.com/twilio/twilio-python/pull/480): Auto-deploy via Travis CI upon tagged commit to master. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
14+
- [PR #479](https://github.com/twilio/twilio-python/pull/479): breaking: Correct video composition date types. Thanks to [@childish-sambino](https://github.com/childish-sambino)! **(breaking change)**
15+
16+
**Api**
17+
- Add new property `attempt` to sms_messages
18+
- Fixed a typo in the documentation for Feedback outcome enum **(breaking change)**
19+
- Update the call price to be optional for deserializing **(breaking change)**
20+
21+
**Flex**
22+
- Added `JanitorEnabled` attribute to Flex Flow
23+
- Change `features_enabled` Flex Configuration key to private **(breaking change)**
24+
25+
**Supersim**
26+
- Add Fetch endpoint to Fleets resource for Super Sim Pilot
27+
- Allow assigning a Sim to a Fleet for Super Sim Pilot
28+
- Add Create endpoint to Fleets resource for Super Sim Pilot
29+
30+
**Twiml**
31+
- Update `<Conference>` rename "whisper" attribute to "coach" **(breaking change)**
32+
33+
634
[2019-10-02] Version 6.31.1
735
---------------------------
836
**Library**

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_read_full_response(self):
9999
{
100100
"end": 0,
101101
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0",
102-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=100",
102+
"previous_page_uri": null,
103103
"next_page_uri": null,
104104
"notifications": [
105105
{
@@ -116,15 +116,12 @@ def test_read_full_response(self):
116116
"request_method": null,
117117
"request_url": "",
118118
"sid": "NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
119-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
119+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
120120
}
121121
],
122-
"num_pages": 101,
123122
"page": 0,
124123
"page_size": 1,
125-
"previous_page_uri": null,
126124
"start": 0,
127-
"total": 101,
128125
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0"
129126
}
130127
'''
@@ -142,15 +139,12 @@ def test_read_empty_response(self):
142139
{
143140
"end": 0,
144141
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0",
145-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=100",
146142
"next_page_uri": null,
147143
"notifications": [],
148-
"num_pages": 101,
149144
"page": 0,
150145
"page_size": 1,
151146
"previous_page_uri": null,
152147
"start": 0,
153-
"total": 101,
154148
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0"
155149
}
156150
'''

tests/integration/autopilot/v1/assistant/test_query.py

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ def test_fetch_response(self):
4040
"sample_sid": "UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4141
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4242
"results": {
43-
"task": {
44-
"name": "name",
45-
"task_sid": "UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
46-
"confidence": 0.9
47-
},
43+
"task": "name",
4844
"fields": [
4945
{
5046
"name": "name",
@@ -118,11 +114,7 @@ def test_read_full_response(self):
118114
"sample_sid": "UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
119115
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
120116
"results": {
121-
"task": {
122-
"name": "name",
123-
"task_sid": "UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
124-
"confidence": 0.9
125-
},
117+
"task": "name",
126118
"fields": [
127119
{
128120
"name": "name",
@@ -184,11 +176,7 @@ def test_create_response(self):
184176
"sample_sid": "UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
185177
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
186178
"results": {
187-
"task": {
188-
"name": "name",
189-
"task_sid": "UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
190-
"confidence": 0.9
191-
},
179+
"task": "name",
192180
"fields": [
193181
{
194182
"name": "name",
@@ -236,11 +224,7 @@ def test_update_response(self):
236224
"sample_sid": "UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
237225
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
238226
"results": {
239-
"task": {
240-
"name": "name",
241-
"task_sid": "UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
242-
"confidence": 0.9
243-
},
227+
"task": "name",
244228
"fields": [
245229
{
246230
"name": "name",

tests/integration/flex_api/v1/test_configuration.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ def test_fetch_response(self):
142142
"workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
143143
}
144144
},
145-
"features_enabled": [
146-
"some_feature",
147-
"another_feature"
148-
],
149145
"serverless_service_sids": [
150146
"ZSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
151147
"ZSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
@@ -287,10 +283,6 @@ def test_create_response(self):
287283
"workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
288284
}
289285
},
290-
"features_enabled": [
291-
"some_feature",
292-
"another_feature"
293-
],
294286
"serverless_service_sids": [
295287
"ZSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
296288
"ZSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
@@ -432,10 +424,6 @@ def test_update_response(self):
432424
"workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
433425
}
434426
},
435-
"features_enabled": [
436-
"some_feature",
437-
"another_feature"
438-
],
439427
"serverless_service_sids": [
440428
"ZSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
441429
"ZSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"

tests/integration/flex_api/v1/test_flex_flow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def test_read_full_response(self):
5555
"flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
5656
},
5757
"long_lived": true,
58+
"janitor_enabled": true,
5859
"url": "https://flex-api.twilio.com/v1/FlexFlows/FOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
5960
}
6061
]
@@ -119,6 +120,7 @@ def test_fetch_response(self):
119120
"flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
120121
},
121122
"long_lived": true,
123+
"janitor_enabled": true,
122124
"url": "https://flex-api.twilio.com/v1/FlexFlows/FOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
123125
}
124126
'''
@@ -165,6 +167,7 @@ def test_create_response(self):
165167
"flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
166168
},
167169
"long_lived": true,
170+
"janitor_enabled": true,
168171
"url": "https://flex-api.twilio.com/v1/FlexFlows/FOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
169172
}
170173
'''
@@ -204,6 +207,7 @@ def test_update_response(self):
204207
"flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
205208
},
206209
"long_lived": true,
210+
"janitor_enabled": true,
207211
"url": "https://flex-api.twilio.com/v1/FlexFlows/FOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
208212
}
209213
'''

twilio/rest/api/v2010/account/message/feedback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class FeedbackInstance(InstanceResource):
118118

119119
class Outcome(object):
120120
CONFIRMED = "confirmed"
121-
UMCONFIRMED = "umconfirmed"
121+
UNCONFIRMED = "unconfirmed"
122122

123123
def __init__(self, version, payload, account_sid, message_sid):
124124
"""

twilio/rest/autopilot/v1/assistant/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def date_updated(self):
410410
@property
411411
def results(self):
412412
"""
413-
:returns: The natural language analysis results that include the Task recognized, the confidence score, and a list of identified Fields
413+
:returns: The natural language analysis results that include the Task recognized and a list of identified Fields
414414
:rtype: dict
415415
"""
416416
return self._properties['results']

twilio/rest/flex_api/v1/configuration.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ def __init__(self, version, payload):
231231
'plugin_service_attributes': payload.get('plugin_service_attributes'),
232232
'integrations': payload.get('integrations'),
233233
'outbound_call_flows': payload.get('outbound_call_flows'),
234-
'features_enabled': payload.get('features_enabled'),
235234
'serverless_service_sids': payload.get('serverless_service_sids'),
236235
'url': payload.get('url'),
237236
}
@@ -509,14 +508,6 @@ def outbound_call_flows(self):
509508
"""
510509
return self._properties['outbound_call_flows']
511510

512-
@property
513-
def features_enabled(self):
514-
"""
515-
:returns: The list of enabled features
516-
:rtype: unicode
517-
"""
518-
return self._properties['features_enabled']
519-
520511
@property
521512
def serverless_service_sids(self):
522513
"""

twilio/rest/flex_api/v1/flex_flow.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def create(self, friendly_name, chat_service_sid, channel_type,
129129
integration_channel=values.unset, integration_timeout=values.unset,
130130
integration_priority=values.unset,
131131
integration_creation_on_message=values.unset,
132-
long_lived=values.unset):
132+
long_lived=values.unset, janitor_enabled=values.unset):
133133
"""
134134
Create a new FlexFlowInstance
135135
@@ -148,6 +148,7 @@ def create(self, friendly_name, chat_service_sid, channel_type,
148148
:param unicode integration_priority: The task priority of a new task
149149
:param bool integration_creation_on_message: Whether to create a task when the first message arrives
150150
:param bool long_lived: Whether new channels are long-lived
151+
:param bool janitor_enabled: Boolean flag for enabling or disabling the Janitor
151152
152153
:returns: Newly created FlexFlowInstance
153154
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowInstance
@@ -168,6 +169,7 @@ def create(self, friendly_name, chat_service_sid, channel_type,
168169
'Integration.Priority': integration_priority,
169170
'Integration.CreationOnMessage': integration_creation_on_message,
170171
'LongLived': long_lived,
172+
'JanitorEnabled': janitor_enabled,
171173
})
172174

173175
payload = self._version.create(
@@ -294,7 +296,7 @@ def update(self, friendly_name=values.unset, chat_service_sid=values.unset,
294296
integration_channel=values.unset, integration_timeout=values.unset,
295297
integration_priority=values.unset,
296298
integration_creation_on_message=values.unset,
297-
long_lived=values.unset):
299+
long_lived=values.unset, janitor_enabled=values.unset):
298300
"""
299301
Update the FlexFlowInstance
300302
@@ -313,6 +315,7 @@ def update(self, friendly_name=values.unset, chat_service_sid=values.unset,
313315
:param unicode integration_priority: The task priority of a new task
314316
:param bool integration_creation_on_message: Whether to create a task when the first message arrives
315317
:param bool long_lived: Whether new channels created are long-lived
318+
:param bool janitor_enabled: Boolean flag for enabling or disabling the Janitor
316319
317320
:returns: Updated FlexFlowInstance
318321
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowInstance
@@ -333,6 +336,7 @@ def update(self, friendly_name=values.unset, chat_service_sid=values.unset,
333336
'Integration.Priority': integration_priority,
334337
'Integration.CreationOnMessage': integration_creation_on_message,
335338
'LongLived': long_lived,
339+
'JanitorEnabled': janitor_enabled,
336340
})
337341

338342
payload = self._version.update(
@@ -402,6 +406,7 @@ def __init__(self, version, payload, sid=None):
402406
'integration_type': payload.get('integration_type'),
403407
'integration': payload.get('integration'),
404408
'long_lived': payload.get('long_lived'),
409+
'janitor_enabled': payload.get('janitor_enabled'),
405410
'url': payload.get('url'),
406411
}
407412

@@ -518,6 +523,14 @@ def long_lived(self):
518523
"""
519524
return self._properties['long_lived']
520525

526+
@property
527+
def janitor_enabled(self):
528+
"""
529+
:returns: Boolean flag for enabling or disabling the Janitor
530+
:rtype: bool
531+
"""
532+
return self._properties['janitor_enabled']
533+
521534
@property
522535
def url(self):
523536
"""
@@ -544,7 +557,7 @@ def update(self, friendly_name=values.unset, chat_service_sid=values.unset,
544557
integration_channel=values.unset, integration_timeout=values.unset,
545558
integration_priority=values.unset,
546559
integration_creation_on_message=values.unset,
547-
long_lived=values.unset):
560+
long_lived=values.unset, janitor_enabled=values.unset):
548561
"""
549562
Update the FlexFlowInstance
550563
@@ -563,6 +576,7 @@ def update(self, friendly_name=values.unset, chat_service_sid=values.unset,
563576
:param unicode integration_priority: The task priority of a new task
564577
:param bool integration_creation_on_message: Whether to create a task when the first message arrives
565578
:param bool long_lived: Whether new channels created are long-lived
579+
:param bool janitor_enabled: Boolean flag for enabling or disabling the Janitor
566580
567581
:returns: Updated FlexFlowInstance
568582
:rtype: twilio.rest.flex_api.v1.flex_flow.FlexFlowInstance
@@ -583,6 +597,7 @@ def update(self, friendly_name=values.unset, chat_service_sid=values.unset,
583597
integration_priority=integration_priority,
584598
integration_creation_on_message=integration_creation_on_message,
585599
long_lived=long_lived,
600+
janitor_enabled=janitor_enabled,
586601
)
587602

588603
def delete(self):

twilio/twiml/voice_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ def client(self, identity=None, url=None, method=None,
10541054
def conference(self, name, muted=None, beep=None,
10551055
start_conference_on_enter=None, end_conference_on_exit=None,
10561056
wait_url=None, wait_method=None, max_participants=None,
1057-
record=None, region=None, whisper=None, trim=None,
1057+
record=None, region=None, coach=None, trim=None,
10581058
status_callback_event=None, status_callback=None,
10591059
status_callback_method=None, recording_status_callback=None,
10601060
recording_status_callback_method=None,
@@ -1073,7 +1073,7 @@ def conference(self, name, muted=None, beep=None,
10731073
:param max_participants: Maximum number of participants
10741074
:param record: Record the conference
10751075
:param region: Conference region
1076-
:param whisper: Call whisper
1076+
:param coach: Call coach
10771077
:param trim: Trim the conference recording
10781078
:param status_callback_event: Events to call status callback URL
10791079
:param status_callback: Status callback URL
@@ -1097,7 +1097,7 @@ def conference(self, name, muted=None, beep=None,
10971097
max_participants=max_participants,
10981098
record=record,
10991099
region=region,
1100-
whisper=whisper,
1100+
coach=coach,
11011101
trim=trim,
11021102
status_callback_event=status_callback_event,
11031103
status_callback=status_callback,

0 commit comments

Comments
 (0)
0