8000 [Librarian] Regenerated @ d9b0f7b0297f064eec2f219b29fd4193559c54f3 40… · CodeBoarding/twilio-python@6a576ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a576ae

Browse files
committed
[Librarian] Regenerated @ d9b0f7b0297f064eec2f219b29fd4193559c54f3 405f363a58346c6557d4194de16d9911b797e208
1 parent 5de6bde commit 6a576ae

File tree

11 files changed

+249
-65
lines changed

11 files changed

+249
-65
lines changed

CHANGES.md

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

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

6+
[2025-01-13] Version 9.4.3
7+
--------------------------
8+
**Messaging**
9+
- Adds validity period Default value in service resource documentation
10+
11+
612
[2025-01-09] Version 9.4.2
713
--------------------------
814
**Library - Chore**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def create(
287287
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
288288
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
289289
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
290-
:param intelligence_service: The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
290+
:param intelligence_service: The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
291291
292292
:returns: The created TranscriptionInstance
293293
"""
@@ -362,7 +362,7 @@ async def create_async(
362362
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
363363
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
364364
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
365-
:param intelligence_service: The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
365+
:param intelligence_service: The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
366366
367367
:returns: The created TranscriptionInstance
368368
"""

twilio/rest/conversations/v1/configuration/webhook.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Target(object):
3333
"""
3434
:ivar account_sid: The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
3535
:ivar method:
36-
:ivar filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
36+
:ivar filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
3737
:ivar pre_webhook_url: The absolute url the pre-event webhook request should be sent to.
3838
:ivar post_webhook_url: The absolute url the post-event webhook request should be sent to.
3939
:ivar target:
@@ -97,7 +97,7 @@ def update(
9797
Update the WebhookInstance
9898
9999
:param method: The HTTP method to be used when sending a webhook request.
100-
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
100+
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
101101
:param pre_webhook_url: The absolute url the pre-event webhook request should be sent to.
102102
:param post_webhook_url: The absolute url the post-event webhook request should be sent to.
103103
:param target:
@@ -124,7 +124,7 @@ async def update_async(
124124
Asynchronous coroutine to update the WebhookInstance
125125
126126
:param method: The HTTP method to be used when sending a webhook request.
127-
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
127+
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
128128
:param pre_webhook_url: The absolute url the pre-event webhook request should be sent to.
129129
:param post_webhook_url: The absolute url the post-event webhook request should be sent to.
130130
:param target:
@@ -213,7 +213,7 @@ def update(
213213
Update the WebhookInstance
214214
215215
:param method: The HTTP method to be used when sending a webhook request.
216-
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
216+
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
217217
:param pre_webhook_url: The absolute url the pre-event webhook request should be sent to.
218218
:param post_webhook_url: The absolute url the post-event webhook request should be sent to.
219219
:param target:
@@ -254,7 +254,7 @@ async def update_async(
254254
Asynchronous coroutine to update the WebhookInstance
255255
256256
:param method: The HTTP method to be used when sending a webhook request.
257-
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
257+
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
258258
:param pre_webhook_url: The absolute url the pre-event webhook request should be sent to.
259259
:param post_webhook_url: The absolute url the post-event webhook request should be sent to.
260260
:param target:

twilio/rest/iam/v1/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from twilio.base.domain import Domain
1818
from twilio.rest.iam.v1.api_key import ApiKeyList
1919
from twilio.rest.iam.v1.get_api_keys import GetApiKeysList
20-
from twilio.rest.iam.v1.new_api_key import NewApiKeyList
20+
from twilio.rest.iam.v1.key import KeyList
2121

2222

2323
class V1(Version):
@@ -31,7 +31,7 @@ def __init__(self, domain: Domain):
3131
super().__init__(domain, "v1")
3232
self._api_key: Optional[ApiKeyList] = None
3333
self._get_api_keys: Optional[GetApiKeysList] = None
34-
self._new_api_key: Optional[NewApiKeyList] = None
34+
self._keys: Optional[KeyList] = None
3535

3636
@property
3737
def api_key(self) -> ApiKeyList:
@@ -46,10 +46,10 @@ def get_api_keys(self) -> GetApiKeysList:
4646
return self._get_api_keys
4747

4848
@property
49-
def new_api_key(self) -> NewApiKeyList:
50-
if self._new_api_key is None:
51-
self._new_api_key = NewApiKeyList(self)
52-
return self._new_api_key
49+
def keys(self) -> KeyList:
50+
if self._keys is None:
51+
self._keys = KeyList(self)
52+
return self._keys
5353

5454
def __repr__(self) -> str:
5555
"""

twilio/rest/iam/v1/new_api_key.py renamed to twilio/rest/iam/v1/key.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from twilio.base.version import Version
2222

2323

24-
class NewApiKeyInstance(InstanceResource):
24+
class KeyInstance(InstanceResource):
2525

2626
class Keytype(object):
2727
RESTRICTED = "restricted"
@@ -56,14 +56,14 @@ def __repr__(self) -> str:
5656
:returns: Machine friendly representation
5757
"""
5858

59-
return "<Twilio.Iam.V1.NewApiKeyInstance>"
59+
return "<Twilio.Iam.V1.KeyInstance>"
6060

6161

62-
class NewApiKeyList(ListResource):
62+
class KeyList(ListResource):
6363

6464
def __init__(self, version: Version):
6565
"""
66-
Initialize the NewApiKeyList
66+
Initialize the KeyList
6767
6868
:param version: Version that contains the resource
6969
@@ -76,18 +76,18 @@ def create(
7676
self,
7777
account_sid: str,
7878
friendly_name: Union[str, object] = values.unset,
79-
key_type: Union["NewApiKeyInstance.Keytype", object] = values.unset,
79+
key_type: Union["KeyInstance.Keytype", object] = values.unset,
8080
policy: Union[object, object] = values.unset,
81-
) -> NewApiKeyInstance:
81+
) -> KeyInstance:
8282
"""
83-
Create the NewApiKeyInstance
83+
Create the KeyInstance
8484
8585
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
8686
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
8787
:param key_type:
8888
:param policy: The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
8989
90-
:returns: The created NewApiKeyInstance
90+
:returns: The created KeyInstance
9191
"""
9292

9393
data = values.of(
@@ -108,24 +108,24 @@ def create(
108108
method="POST", uri=self._uri, data=data, headers=headers
109109
)
110110

111-
return NewApiKeyInstance(self._version, payload)
111+
return KeyInstance(self._version, payload)
112112

113113
async def create_async(
114114
self,
115115
account_sid: str,
116116
friendly_name: Union[str, object] = values.unset,
117-
key_type: Union["NewApiKeyInstance.Keytype", object] = values.unset,
117+
key_type: Union["KeyInstance.Keytype", object] = values.unset,
118118
policy: Union[object, object] = values.unset,
119-
) -> NewApiKeyInstance:
119+
) -> KeyInstance:
120120
"""
121-
Asynchronously create the NewApiKeyInstance
121+
Asynchronously create the KeyInstance
122122
123123
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
124124
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
125125
:param key_type:
126126
:param policy: The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
127127
128-
:returns: The created NewApiKeyInstance
128+
:returns: The created KeyInstance
129129
"""
130130

131131
data = values.of(
@@ -146,12 +146,12 @@ async def create_async(
146146
method="POST", uri=self._uri, data=data, headers=headers
147147
)
148148

149-
return NewApiKeyInstance(self._version, payload)
149+
return KeyInstance(self._version, payload)
150150

151151
def __repr__(self) -> str:
152152
"""
153153
Provide a friendly representation
154154
155155
:returns: Machine friendly representation
156156
"""
157-
return "<Twilio.Iam.V1.NewApiKeyList>"
157+
return "<Twilio.Iam.V1.KeyList>"

twilio/rest/marketplace/v1/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from twilio.base.domain import Domain
1818
from twilio.rest.marketplace.v1.available_add_on import AvailableAddOnList
1919
from twilio.rest.marketplace.v1.installed_add_on import InstalledAddOnList
20+
from twilio.rest.marketplace.v1.module_data import ModuleDataList
2021
from twilio.rest.marketplace.v1.module_data_management import ModuleDataManagementList
2122
from twilio.rest.marketplace.v1.referral_conversion import ReferralConversionList
2223

@@ -32,6 +33,7 @@ def __init__(self, domain: Domain):
3233
super().__init__(domain, "v1")
3334
self._available_add_ons: Optional[AvailableAddOnList] = None
3435
self._installed_add_ons: Optional[InstalledAddOnList] = None
36+
self._module_data: Optional[ModuleDataList] = None
3537
self._module_data_management: Optional[ModuleDataManagementList] = None
3638
self._referral_conversion: Optional[ReferralConversionList] = None
3739

@@ -47,6 +49,12 @@ def installed_add_ons(self) -> InstalledAddOnList:
4749
self._installed_add_ons = InstalledAddOnList(self)
4850
return self._installed_add_ons
4951

52+
@property
53+
def module_data(self) -> ModuleDataList:
54+
if self._module_data is None:
55+
self._module_data = ModuleDataList(self)
56+
return self._module_data
57+
5058
@property
5159
def module_data_management(self) -> ModuleDataManagementList:
5260
if self._module_data_management is None:

0 commit comments

Comments
 (0)
0