Skip to content

Commit

Permalink
[Librarian] Regenerated @ 1baa147fbfa3bf2798f86ec43796ef1df42570d4 a3…
Browse files Browse the repository at this point in the history
…170b07f36450c6d179edf9b044cbf5f6b94e3a
  • Loading branch information
twilio-dx committed May 24, 2024
1 parent 3863205 commit 663ca13
Show file tree
Hide file tree
Showing 37 changed files with 3,928 additions and 963 deletions.
46 changes: 46 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,52 @@ twilio-python Changelog

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

[2024-05-24] Version 9.1.0
--------------------------
**Library - Chore**
- [PR #789](https://github.com/twilio/twilio-python/pull/789): [Snyk] Security upgrade aiohttp from 3.8.6 to 3.9.4. Thanks to [@twilio-product-security](https://github.com/twilio-product-security)!

**Library - Fix**
- [PR #716](https://github.com/twilio/twilio-python/pull/716): Connection pool is full, discarding connection. Thanks to [@lightiverson](https://github.com/lightiverson)!

**Api**
- Add ie1 as supported region for UserDefinedMessage and UserDefinedMessageSubscription.

**Flex**
- Adding validated field to `plugin_versions`
- Corrected the data type for `runtime_domain`, `call_recording_webhook_url`, `crm_callback_url`, `crm_fallback_url`, `flex_url` in Flex Configuration
- Making `routing` optional in Create Interactions endpoint

**Intelligence**
- Expose operator authoring apis to public visibility
- Deleted `language_code` parameter from updating service in v2 **(breaking change)**
- Add read_only_attached_operator_sids to v2 services

**Numbers**
- Add API endpoint for GET Porting Webhook Configurations By Account SID
- Remove bulk portability api under version `/v1`. **(breaking change)**
- Removed porting_port_in_fetch.json files and move the content into porting_port_in.json files
- Add API endpoint to deleting Webhook Configurations
- Add Get Phone Number by Port in request SID and Phone Number SID api
- Add Create Porting webhook configuration API
- Added bundle_sid and losing_carrier_information fields to Create PortInRequest api to support Japan porting

**Taskrouter**
- Add back `routing_target` property to tasks
- Add back `ignore_capacity` property to tasks
- Removing `routing_target` property to tasks due to revert
- Removing `ignore_capacity` property to tasks due to revert
- Add `routing_target` property to tasks
- Add `ignore_capacity` property to tasks

**Trusthub**
- Add new field errors to bundle as part of public API response in customer_profile.json and trust_product.json **(breaking change)**
- Add themeSetId field in compliance_tollfree_inquiry.

**Verify**
- Update `friendly_name` description on service docs


[2024-04-18] Version 9.0.5
--------------------------
**Library - Chore**
Expand Down
15 changes: 0 additions & 15 deletions twilio/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from twilio.rest.intelligence import Intelligence
from twilio.rest.ip_messaging import IpMessaging
from twilio.rest.lookups import Lookups
from twilio.rest.preview_messaging import PreviewMessaging
from twilio.rest.messaging import Messaging
from twilio.rest.microvisor import Microvisor
from twilio.rest.monitor import Monitor
Expand Down Expand Up @@ -135,7 +134,6 @@ def __init__(
self._intelligence: Optional["Intelligence"] = None
self._ip_messaging: Optional["IpMessaging"] = None
self._lookups: Optional["Lookups"] = None
self._preview_messaging: Optional["PreviewMessaging"] = None
self._messaging: Optional["Messaging"] = None
self._microvisor: Optional["Microvisor"] = None
self._monitor: Optional["Monitor"] = None
Expand Down Expand Up @@ -327,19 +325,6 @@ def lookups(self) -> "Lookups":
self._lookups = Lookups(self)
return self._lookups

@property
def preview_messaging(self) -> "PreviewMessaging":
"""
Access the PreviewMessaging Twilio Domain
:returns: PreviewMessaging Twilio Domain
"""
if self._preview_messaging is None:
from twilio.rest.preview_messaging import PreviewMessaging

self._preview_messaging = PreviewMessaging(self)
return self._preview_messaging

@property
def messaging(self) -> "Messaging":
"""
Expand Down
2 changes: 1 addition & 1 deletion twilio/rest/api/v2010/account/message/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class UpdateStatus(object):
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource
:ivar num_media: The number of media files associated with the Message resource.
:ivar status:
:ivar messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) associated with the Message resource. The value is `null` if a Messaging Service was not used.
:ivar messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) associated with the Message resource. A unique default value is assigned if a Messaging Service is not used.
:ivar sid: The unique, Twilio-provided string that identifies the Message resource.
:ivar date_sent: The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message was sent. For an outgoing message, this is when Twilio sent the message. For an incoming message, this is when Twilio sent the HTTP request to your incoming message webhook URL.
:ivar date_created: The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message resource was created
Expand Down
11 changes: 11 additions & 0 deletions twilio/rest/content/ContentBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from twilio.base.domain import Domain
from twilio.rest import Client
from twilio.rest.content.v1 import V1
from twilio.rest.content.v2 import V2


class ContentBase(Domain):
Expand All @@ -26,6 +27,7 @@ def __init__(self, twilio: Client):
"""
super().__init__(twilio, "https://content.twilio.com")
self._v1: Optional[V1] = None
self._v2: Optional[V2] = None

@property
def v1(self) -> V1:
Expand All @@ -36,6 +38,15 @@ def v1(self) -> V1:
self._v1 = V1(self)
return self._v1

@property
def v2(self) -> V2:
"""
:returns: Versions v2 of Content
"""
if self._v2 is None:
self._v2 = V2(self)
return self._v2

def __repr__(self) -> str:
"""
Provide a friendly representation
Expand Down
51 changes: 51 additions & 0 deletions twilio/rest/content/v2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
r"""
This code was generated by
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
Twilio - Content
This is the public Twilio REST API.
NOTE: This class is auto generated by OpenAPI Generator.
https://openapi-generator.tech
Do not edit the class manually.
"""

from typing import Optional
from twilio.base.version import Version
from twilio.base.domain import Domain
from twilio.rest.content.v2.content import ContentList
from twilio.rest.content.v2.content_and_approvals import ContentAndApprovalsList


class V2(Version):

def __init__(self, domain: Domain):
"""
Initialize the V2 version of Content
:param domain: The Twilio.content domain
"""
super().__init__(domain, "v2")
self._contents: Optional[ContentList] = None
self._content_and_approvals: Optional[ContentAndApprovalsList] = None

@property
def contents(self) -> ContentList:
if self._contents is None:
self._contents = ContentList(self)
return self._contents

@property
def content_and_approvals(self) -> ContentAndApprovalsList:
if self._content_and_approvals is None:
self._content_and_approvals = ContentAndApprovalsList(self)
return self._content_and_approvals

def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly representation
"""
return "<Twilio.Content.V2>"
Loading

0 comments on commit 663ca13

Please sign in to comment.