Skip to content

Commit 4297659

Browse files
committed
[Librarian] Regenerated @ 517c6276943255de674e1d20cdae01266b89160c dc7e93834d14ebcc1f96c25b9fbc8af35330f99a
1 parent 399e1e3 commit 4297659

File tree

283 files changed

+1079
-761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

283 files changed

+1079
-761
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+
[2024-01-08] Version 9.0.0-rc.1
7+
-------------------------------
8+
**Library - Chore**
9+
- [PR #743](https://github.com/twilio/twilio-python/pull/743): sync with main. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
10+
11+
612
[2023-12-06] Version 9.0.0-rc.0
713
---------------------------
814
- Release Candidate preparation

twilio/rest/__init__.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
from twilio.rest.ip_messaging import IpMessaging
2929
from twilio.rest.lookups import Lookups
3030
from twilio.rest.media import Media
31+
from twilio.rest.preview_messaging import PreviewMessaging
3132
from twilio.rest.messaging import Messaging
3233
from twilio.rest.microvisor import Microvisor
3334
from twilio.rest.monitor import Monitor
3435
from twilio.rest.notify import Notify
3536
from twilio.rest.numbers import Numbers
3637
from twilio.rest.preview import Preview
37-
from twilio.rest.preview_messaging import PreviewMessaging
3838
from twilio.rest.pricing import Pricing
3939
from twilio.rest.proxy import Proxy
4040
from twilio.rest.routes import Routes
@@ -137,13 +137,13 @@ def __init__(
137137
self._ip_messaging: Optional["IpMessaging"] = None
138138
self._lookups: Optional["Lookups"] = None
139139
self._media: Optional["Media"] = None
140+
self._preview_messaging: Optional["PreviewMessaging"] = None
140141
self._messaging: Optional["Messaging"] = None
141142
self._microvisor: Optional["Microvisor"] = None
142143
self._monitor: Optional["Monitor"] = None
143144
self._notify: Optional["Notify"] = None
144145
self._numbers: Optional["Numbers"] = None
145146
self._preview: Optional["Preview"] = None
146-
self._preview_messaging: Optional["PreviewMessaging"] = None
147147
self._pricing: Optional["Pricing"] = None
148148
self._proxy: Optional["Proxy"] = None
149149
self._routes: Optional["Routes"] = None
@@ -354,6 +354,19 @@ def media(self) -> "Media":
354354
self._media = Media(self)
355355
return self._media
356356

357+
@property
358+
def preview_messaging(self) -> "PreviewMessaging":
359+
"""
360+
Access the PreviewMessaging Twilio Domain
361+
362+
:returns: PreviewMessaging Twilio Domain
363+
"""
364+
if self._preview_messaging is None:
365+
from twilio.rest.preview_messaging import PreviewMessaging
366+
367+
self._preview_messaging = PreviewMessaging(self)
368+
return self._preview_messaging
369+
357370
@property
358371
def messaging(self) -> "Messaging":
359372
"""
@@ -432,19 +445,6 @@ def preview(self) -> "Preview":
432445
self._preview = Preview(self)
433446
return self._preview
434447

435-
@property
436-
def preview_messaging(self) -> "PreviewMessaging":
437-
"""
438-
Access the Preview Messaging Twilio Domain
439-
440-
:returns: Preview Messaging Twilio Domain
441-
"""
442-
if self._preview_messaging is None:
443-
from twilio.rest.preview_messaging import PreviewMessaging
444-
445-
self._preview_messaging = PreviewMessaging(self)
446-
return self._preview_messaging
447-
448448
@property
449449
def pricing(self) -> "Pricing":
450450
"""

twilio/rest/accounts/v1/credential/aws.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ def create(
321321
322322
:returns: The created AwsInstance
323323
"""
324+
324325
data = values.of(
325326
{
326327
"Credentials": credentials,
@@ -352,6 +353,7 @@ async def create_async(
352353
353354
:returns: The created AwsInstance
354355
"""
356+
355357
data = values.of(
356358
{
357359
"Credentials": credentials,

twilio/rest/accounts/v1/credential/public_key.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ def create(
325325
326326
:returns: The created PublicKeyInstance
327327
"""
328+
328329
data = values.of(
329330
{
330331
"PublicKey": public_key,
@@ -356,6 +357,7 @@ async def create_async(
356357
357358
:returns: The created PublicKeyInstance
358359
"""
360+
359361
data = values.of(
360362
{
361363
"PublicKey": public_key,

twilio/rest/accounts/v1/safelist.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def create(self, phone_number: str) -> SafelistInstance:
6464
6565
:returns: The created SafelistInstance
6666
"""
67+
6768
data = values.of(
6869
{
6970
"PhoneNumber": phone_number,
@@ -86,6 +87,7 @@ async def create_async(self, phone_number: str) -> SafelistInstance:
8687
8788
:returns: The created SafelistInstance
8889
"""
90+
8991
data = values.of(
9092
{
9193
"PhoneNumber": phone_number,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ def create(
821821
822822
:returns: The created AccountInstance
823823
"""
824+
824825
data = values.of(
825826
{
826827
"FriendlyName": friendly_name,
@@ -845,6 +846,7 @@ async def create_async(
845846
846847
:returns: The created AccountInstance
847848
"""
849+
848850
data = values.of(
849851
{
850852
"FriendlyName": friendly_name,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ def create(
513513
514514
:returns: The created AddressInstance
515515
"""
516+
516517
data = values.of(
517518
{
518519
"CustomerName": customer_name,
@@ -567,6 +568,7 @@ async def create_async(
567568
568569
:returns: The created AddressInstance
569570
"""
571+
570572
data = values.of(
571573
{
572574
"CustomerName": customer_name,

twilio/rest/api/v2010/account/application.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ def create(
602602
603603
:returns: The created ApplicationInstance
604604
"""
605+
605606
data = values.of(
606607
{
607608
"ApiVersion": api_version,
@@ -674,6 +675,7 @@ async def create_async(
674675
675676
:returns: The created ApplicationInstance
676677
"""
678+
677679
data = values.of(
678680
{
679681
"ApiVersion": api_version,

twilio/rest/api/v2010/account/authorized_connect_app.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
"""
1414

1515

16+
from datetime import datetime
1617
from typing import Any, Dict, List, Optional, Union, Iterator, AsyncIterator
17-
from twilio.base import values
18+
from twilio.base import deserialize, values
1819
from twilio.base.instance_context import InstanceContext
1920
from twilio.base.instance_resource import InstanceResource
2021
from twilio.base.list_resource import ListResource
@@ -34,6 +35,8 @@ class Permission(object):
3435
:ivar connect_app_friendly_name: The name of the Connect App.
3536
:ivar connect_app_homepage_url: The public URL for the Connect App.
3637
:ivar connect_app_sid: The SID that we assigned to the Connect App.
38+
:ivar date_created: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
39+
:ivar date_updated: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
3740
:ivar permissions: The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
3841
:ivar uri: The URI of the resource, relative to `https://api.twilio.com`.
3942
"""
@@ -61,6 +64,12 @@ def __init__(
6164
"connect_app_homepage_url"
6265
)
6366
self.connect_app_sid: Optional[str] = payload.get("connect_app_sid")
67+
self.date_created: Optional[datetime] = deserialize.rfc2822_datetime(
68+
payload.get("date_created")
69+
)
70+
self.date_updated: Optional[datetime] = deserialize.rfc2822_datetime(
71+
payload.get("date_updated")
72+
)
6473
self.permissions: Optional[
6574
List["AuthorizedConnectAppInstance.Permission"]
6675
] = payload.get("permissions")

0 commit comments

Comments
 (0)