8000 [Librarian] Regenerated @ 20a59bb267206b3171a14db34a41e1865b87e1ed · dialex-com/twilio-python@a54d792 · GitHub
[go: up one dir, main page]

Skip to content

Commit a54d792

Browse files
committed
[Librarian] Regenerated @ 20a59bb267206b3171a14db34a41e1865b87e1ed
1 parent 1a0d02d commit a54d792

File tree

10 files changed

+73
-46
lines changed

10 files changed

+73
-46
lines changed

CHANGES.md

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

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

6+
[2020-04-29] Version 6.39.0
7+
---------------------------
8+
**Library - Feature**
9+
- [PR #517](https://github.com/twilio/twilio-python/pull/517): add details to TwilioRestException. Thanks to [@ashish-s](https://github.com/ashish-s)!
10+
11+
**Preview**
12+
- Added `Dispatch` version to `preview`
13+
14+
**Studio**
15+
- Reroute Create Execution for V2 to the V2 downstream
16+
17+
**Supersim**
18+
- Add Networks resource
19+
20+
621
[2020-04-15] Version 6.38.1
722
---------------------------
823
**Library - Chore**

tests/integration/conversations/v1/test_conversation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def test_create_response(self):
4040
"attributes": "{ \\"topic\\": \\"feedback\\" }",
4141
"date_created": "2015-12-16T22:18:37Z",
4242
"date_updated": "2015-12-16T22:18:38Z",
43+
"state": "inactive",
4344
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4445
"links": {
4546
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
@@ -80,6 +81,7 @@ def test_update_response(self):
8081
"attributes": "{ \\"topic\\": \\"feedback\\" }",
8182
"date_created": "2015-12-16T22:18:37Z",
8283
"date_updated": "2015-12-16T22:18:38Z",
84+
"state": "inactive",
8385
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
8486
"links": {
8587
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
@@ -141,6 +143,7 @@ def test_fetch_response(self):
141143
"attributes": "{ \\"topic\\": \\"feedback\\" }",
142144
"date_created": "2015-12-16T22:18:37Z",
143145
"date_updated": "2015-12-16T22:18:38Z",
146+
"state": "active",
144147
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
145148
"links": {
146149
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
@@ -181,6 +184,7 @@ def test_read_full_response(self):
181184
"attributes": "{ \\"topic\\": \\"feedback\\" }",
182185
"date_created": "2015-12-16T22:18:37Z",
183186
"date_updated": "2015-12-16T22:18:38Z",
187+
"state": "active",
184188
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
185189
"links": {
186190
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",

tests/integration/serverless/v1/service/asset/test_asset_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_fetch_response(self):
7474
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
7575
"service_sid": "ZS00000000000000000000000000000000",
7676
"asset_sid": "ZH00000000000000000000000000000000",
77-
"path": "test-path",
77+
"path": "/test-path",
7878
"visibility": "public",
7979
"date_created": "2018-11-10T20:00:00Z",
8080
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Assets/ZH00000000000000000000000000000000/Versions/ZN00000000000000000000000000000000"

tests/integration/serverless/v1/service/function/test_function_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_fetch_response(self):
7474
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
7575
"service_sid": "ZS00000000000000000000000000000000",
7676
"function_sid": "ZH00000000000000000000000000000000",
77-
"path": "test-path",
77+
"path": "/test-path",
7878
"visibility": "public",
7979
"date_created": "2018-11-10T20:00:00Z",
8080
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Functions/ZH00000000000000000000000000000000/Versions/ZN00000000000000000000000000000000",

tests/integration/serverless/v1/service/test_build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_fetch_response(self):
7777
"service_sid": "ZS00000000000000000000000000000000",
7878
"asset_sid": "ZH00000000000000000000000000000000",
7979
"date_created": "2018-11-10T20:00:00Z",
80-
"path": "asset-path",
80+
"path": "/asset-path",
8181
"visibility": "PUBLIC"
8282
}
8383
],
@@ -88,7 +88,7 @@ def test_fetch_response(self):
8888
"service_sid": "ZS00000000000000000000000000000000",
8989
"function_sid": "ZH00000000000000000000000000000001",
9090
"date_created": "2018-11-10T20:00:00Z",
91-
"path": "function-path",
91+
"path": "/function-path",
9292
"visibility": "PUBLIC"
9393
}
9494
],
@@ -161,7 +161,7 @@ def test_create_response(self):
161161
"service_sid": "ZS00000000000000000000000000000000",
162162
"asset_sid": "ZH00000000000000000000000000000000",
163163
"date_created": "2018-11-10T20:00:00Z",
164-
"path": "asset-path",
164+
"path": "/asset-path",
165165
"visibility": "PUBLIC"
166166
}
167167
],
@@ -172,7 +172,7 @@ def test_create_response(self):
172172
"service_sid": "ZS00000000000000000000000000000000",
173173
"function_sid": "ZH00000000000000000000000000000001",
174174
"date_created": "2018-11-10T20:00:00Z",
175-
"path": "function-path",
175+
"path": "/function-path",
176176
"visibility": "PUBLIC"
177177
}
178178
],

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ def __init__(self, version, account_sid):
3838

3939
def create(self, to, status_callback=values.unset, application_sid=values.unset,
4040
max_price=values.unset, provide_feedback=values.unset,
41-
validity_period=values.unset, force_delivery=values.unset,
42-
content_retention=values.unset, address_retention=values.unset,
43-
smart_encoded=values.unset, persistent_action=values.unset,
44-
from_=values.unset, messaging_service_sid=values.unset,
45-
body=values.unset, media_url=values.unset):
41+
attempt=values.unset, validity_period=values.unset,
42+
force_delivery=values.unset, content_retention=values.unset,
43+
address_retention=values.unset, smart_encoded=values.unset,
44+
persistent_action=values.unset, from_=values.unset,
45+
messaging_service_sid=values.unset, body=values.unset,
46+
media_url=values.unset):
4647
"""
4748
Create the MessageInstance
4849
@@ -51,6 +52,7 @@ def create(self, to, status_callback=values.unset, application_sid=values.unset,
5152
:param unicode application_sid: The application to use for callbacks
5253
:param unicode max_price: The total maximum price up to 4 decimal places in US dollars acceptable for the message to be delivered.
5354
:param bool provide_feedback: Whether to confirm delivery of the message
55+
:param unicode attempt: Total numer of attempts made , this inclusive to send out the message
5456
:param unicode validity_period: The number of seconds that the message can remain in our outgoing queue.
5557
:param bool force_delivery: Reserved
5658
:param MessageInstance.ContentRetention content_retention: Determines if the message content can be stored or redacted based on privacy settings
@@ -75,6 +77,7 @@ def create(self, to, status_callback=values.unset, application_sid=values.unset,
7577
'ApplicationSid': application_sid,
7678
'MaxPrice': max_price,
7779
'ProvideFeedback': provide_feedback,
80+
'Attempt': attempt,
7881
'ValidityPeriod': validity_period,
7982
'ForceDelivery': force_delivery,
8083
'ContentRetention': content_retention,

twilio/rest/conversations/v1/conversation/__init__.py

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def __init__(self, version):
3939

4040
def create(self, friendly_name=values.unset, date_created=values.unset,
4141
date_updated=values.unset, messaging_service_sid=values.unset,
42-
attributes=values.unset, x_twilio_webhook_enabled=values.unset):
42+
attributes=values.unset, state=values.unset,
43+
x_twilio_webhook_enabled=values.unset):
4344
"""
4445
Create the ConversationInstance
4546
@@ -48,6 +49,7 @@ def create(self, friendly_name=values.unset, date_created=values.unset,
4849
:param datetime date_updated: The date that this resource was last updated.
4950
:param unicode messaging_service_sid: The unique id of the SMS Service this conversation belongs to.
5051
:param unicode attributes: An optional string metadata field you can use to store any data you wish.
52+
:param ConversationInstance.State state: Current state of this conversation.
5153
:param ConversationInstance.WebhookEnabledType x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
5254
5355
:returns: The created ConversationInstance
@@ -59,6 +61,7 @@ def create(self, friendly_name=values.unset, date_created=values.unset,
5961
'DateUpdated': serialize.iso8601_datetime(date_updated),
6062
'MessagingServiceSid': messaging_service_sid,
6163
'Attributes': attributes,
64+
'State': state,
6265
})
6366
headers = values.of({'X-Twilio-Webhook-Enabled': x_twilio_webhook_enabled, })
6467

@@ -242,7 +245,7 @@ def __init__(self, version, sid):
242245

243246
def update(self, friendly_name=values.unset, date_created=values.unset,
244247
date_updated=values.unset, attributes=values.unset,
245-
messaging_service_sid=values.unset,
248+
messaging_service_sid=values.unset, state=values.unset,
246249
x_twilio_webhook_enabled=values.unset):
247250
"""
248251
Update the ConversationInstance
@@ -252,6 +255,7 @@ def update(self, friendly_name=values.unset, date_created=values.unset,
252255
:param datetime date_updated: The date that this resource was last updated.
253256
:param unicode attributes: An optional string metadata field you can use to store any data you wish.
254257
:param unicode messaging_service_sid: The unique id of the SMS Service this conversation belongs to.
258+
:param ConversationInstance.State state: Current state of this conversation.
255259
:param ConversationInstance.WebhookEnabledType x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
256260
257261
:returns: The updated ConversationInstance
@@ -263,6 +267,7 @@ def update(self, friendly_name=values.unset, date_created=values.unset,
263267
'DateUpdated': serialize.iso8601_datetime(date_updated),
264268
'Attributes': attributes,
265269
'MessagingServiceSid': messaging_service_sid,
270+
'State': state,
266271
})
267272
headers = values.of({'X-Twilio-Webhook-Enabled': x_twilio_webhook_enabled, })
268273

@@ -349,6 +354,11 @@ class WebhookEnabledType(object):
349354
TRUE = "true"
350355
FALSE = "false"
351356

357+
class State(object):
358+
INACTIVE = "inactive"
359+
ACTIVE = "active"
360+
CLOSED = "closed"
361+
352362
def __init__(self, version, payload, sid=None):
353363
"""
354364
Initialize the ConversationInstance
@@ -366,6 +376,7 @@ def __init__(self, version, payload, sid=None):
366376
'sid': payload.get('sid'),
367377
'friendly_name': payload.get('friendly_name'),
368378
'attributes': payload.get('attributes'),
379+
'state': payload.get('state'),
369380
'date_created': deserialize.iso8601_datetime(payload.get('date_created')),
370381
'date_updated': deserialize.iso8601_datetime(payload.get('date_updated')),
371382
'url': payload.get('url'),
@@ -437,6 +448,14 @@ def attributes(self):
437448
"""
438449
return self._properties['attributes']
439450

451+
@property
452+
def state(self):
453+
"""
454+
:returns: Current state of this conversation.
455+
:rtype: ConversationInstance.State
456+
"""
457+
return self._properties['state']
458+
440459
@property
441460
def date_created(self):
442461
"""
@@ -471,7 +490,7 @@ def links(self):
471490

472491
def update(self, friendly_name=values.unset, date_created=values.unset,
473492
date_updated=values.unset, attributes=values.unset,
474-
messaging_service_sid=values.unset,
493+
messaging_service_sid=values.unset, state=values.unset,
475494
x_twilio_webhook_enabled=values.unset):
476495
"""
477496
Update the ConversationInstance
@@ -481,6 +500,7 @@ def update(self, friendly_name=values.unset, date_created=values.unset,
481500
:param datetime date_updated: The date that this resource was last updated.
482501
:param unicode attributes: An optional string metadata field you can use to store any data you wish.
483502
:param unicode messaging_service_sid: The unique id of the SMS Service this conversation belongs to.
503+
:param ConversationInstance.State state: Current state of this conversation.
484504
:param ConversationInstance.WebhookEnabledType x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
485505
486506
:returns: The updated ConversationInstance
@@ -492,6 +512,7 @@ def update(self, friendly_name=values.unset, date_created=values.unset,
492512
date_updated=date_updated,
493513
attributes=attributes,
494514
messaging_service_sid=messaging_service_sid,
515+
state=state,
495516
x_twilio_webhook_enabled=x_twilio_webhook_enabled,
496517
)
497518

twilio/rest/flex_api/v1/flex_flow.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def create(self, friendly_name, chat_service_sid, channel_type,
144144
:param unicode integration_timeout: The task timeout in seconds for a new task
145145
:param unicode integration_priority: The task priority of a new task
146146
:param bool integration_creation_on_message: Whether to create a task when the first message arrives
147-
:param bool long_lived: Whether new channels are long-lived
148-
:param bool janitor_enabled: Boolean flag for enabling or disabling the Janitor
147+
:param bool long_lived: Reuse this chat channel for future interactions with a contact
148+
:param bool janitor_enabled: Remove active Proxy sessions if the corresponding Task is deleted
149149
:param unicode integration_retry_count: The number of times to retry the webhook if the first attempt fails
150150
151151
:returns: The created FlexFlowInstance
@@ -304,8 +304,8 @@ def update(self, friendly_name=values.unset, chat_service_sid=values.unset,
304304
:param unicode integration_timeout: The task timeout in seconds for a new task
305305
:param unicode integration_priority: The task priority of a new task
306306
:param bool integration_creation_on_message: Whether to create a task when the first message arrives
307-
:param bool long_lived: Whether new channels created are long-lived
308-
:param bool janitor_enabled: Boolean flag for enabling or disabling the Janitor
307+
:param bool long_lived: Reuse this chat channel for future interactions with a contact
308+
:param bool janitor_enabled: Remove active Proxy sessions if the corresponding Task is deleted.
309309
:param unicode integration_retry_count: The number of times to retry the webhook if the first attempt fails
310310
311311
:returns: The updated FlexFlowInstance
@@ -506,15 +506,15 @@ def integration(self):
506506
@property
507507
def long_lived(self):
508508
"""
509-
:returns: Whether new channels are long-lived
509+
:returns: Re-use this chat channel for future interactions with a contact
510510
:rtype: bool
511511
"""
512512
return self._properties['long_lived']
513513

514514
@property
515515
def janitor_enabled(self):
516516
"""
517-
:returns: Boolean flag for enabling or disabling the Janitor
517+
:returns: Remove active Proxy sessions if the corresponding Task is deleted.
518518
:rtype: bool
519519
"""
520520
return self._properties['janitor_enabled']
@@ -564,8 +564,8 @@ def update(self, friendly_name=values.unset, chat_service_sid=values.unset,
564564
:param unicode integration_timeout: The task timeout in seconds for a new task
565565
:param unicode integration_priority: The task priority of a new task
566566
:param bool integration_creation_on_message: Whether to create a task when the first message arrives
567-
:param bool long_lived: Whether new channels created are long-lived
568-
:param bool janitor_enabled: Boolean flag for enabling or disabling the Janitor
567+
:param bool long_lived: Reuse this chat channel for future interactions with a contact
568+
:param bool janitor_enabled: Remove active Proxy sessions if the corresponding Task is deleted.
569569
:param unicode integration_retry_count: The number of times to retry the webhook if the first attempt fails
570570
571571
:returns: The updated FlexFlowInstance

twilio/rest/video/v1/composition_settings.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515

1616
class CompositionSettingsList(ListResource):
17-
""" PLEASE NOTE that this class contains preview products that are subject
18-
to change. Use them with caution. If you currently do not have developer
19-
preview access, please contact help@twilio.com. """
17+
""" """
2018

2119
def __init__(self, version):
2220
"""
@@ -61,9 +59,7 @@ def __repr__(self):
6159

6260

6361
class CompositionSettingsPage(Page):
64-
""" PLEASE NOTE that this class contains preview products that are subject
65-
to change. Use them with caution. If you currently do not have developer
66-
preview access, please contact help@twilio.com. """
62+
""" """
6763

6864
def __init__(self, version, response, solution):
6965
"""
@@ -102,9 +98,7 @@ def __repr__(self):
10298

10399

104100
class CompositionSettingsContext(InstanceContext):
105-
""" PLEASE NOTE that this class contains preview products that are subject
106-
to change. Use them with caution. If you currently do not have developer
107-
preview access, please contact help@twilio.com. """
101+
""" """
108102

109103
def __init__(self, version):
110104
"""
@@ -173,9 +167,7 @@ def __repr__(self):
173167

174168

175169
class CompositionSettingsInstance(InstanceResource):
176-
""" PLEASE NOTE that this class contains preview products that are subject
177-
to change. Use them with caution. If you currently do not have developer
178-
preview access, please contact help@twilio.com. """
170+
""" """
179171

180172
def __init__(self, version, payload):
181173
"""

twilio/rest/video/v1/recording_settings.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515

1616
class RecordingSettingsList(ListResource):
17-
""" PLEASE NOTE that this class contains preview products that are subject
18-
to change. Use them with caution. If you currently do not have developer
19-
preview access, please contact help@twilio.com. """
17+
""" """
2018

2119
def __init__(self, version):
2220
"""
@@ -61,9 +59,7 @@ def __repr__(self):
6159

6260

6361
class RecordingSettingsPage(Page):
64-
""" PLEASE NOTE that this class contains preview products that are subject
65-
to change. Use them with caution. If you currently do not have developer
66-
preview access, please contact help@twilio.com. """
62+
""" """
6763

6864
def __init__(self, version, response, solution):
6965
"""
@@ -102,9 +98,7 @@ def __repr__(self):
10298

10399

104100
class RecordingSettingsContext(InstanceContext):
105-
""" PLEASE NOTE that this class contains preview products that are subject
106-
to change. Use them with caution. If you currently do not have developer
107-
preview access, please contact help@twilio.com. """
101+
""" """
108102

109103
def __init__(self, version):
110104
"""
@@ -173,9 +167,7 @@ def __repr__(self):
173167

174168

175169
class RecordingSettingsInstance(InstanceResource):
176-
""" PLEASE NOTE that this class contains preview products that are subject
177-
to change. Use them with caution. If you currently do not have developer
178-
preview access, please contact help@twilio.com. """
170+
""" """
179171

180172
def __init__(self, version, payload):
181173
"""

0 commit comments

Comments
 (0)
0