10000 [Librarian] Regenerated @ 08c0904bec7ba6e5da9e5db6c4e0f74dfc97fb10 · Siris4/twilio-python@4eb8c08 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4eb8c08

Browse files
committed
[Librarian] Regenerated @ 08c0904bec7ba6e5da9e5db6c4e0f74dfc97fb10
1 parent d25c43c commit 4eb8c08

File tree

8 files changed

+419
-23
lines changed

8 files changed

+419
-23
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+
[2023-12-14] Version 8.11.0
7+
---------------------------
8+
**Library - Chore**
9+
- [PR #741](https://github.com/twilio/twilio-python/pull/741): upgrade to python 3.12. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
10+
- [PR #740](https://github.com/twilio/twilio-python/pull/740): bump aiohttp. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
11+
12+
**Api**
13+
- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
14+
15+
**Events**
16+
- Marked as GA
17+
18+
**Insights**
19+
- decommission voice-qualitystats-endpoint role
20+
21+
**Numbers**
22+
- Add Get Port In request api
23+
24+
**Taskrouter**
25+
- Add `jitter_buffer_size` param in update reservation
26+
27+
**Trusthub**
28+
- Add additional optional fields in compliance_tollfree_inquiry.json
29+
30+
**Verify**
31+
- Remove `Tags` from Public Docs **(breaking change)**
32+
33+
634
[2023-12-01] Version 8.10.3
735
---------------------------
836
**Verify**

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

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

1515

16-
from datetime import datetime
1716
from typing import Any, Dict, List, Optional, Union, Iterator, AsyncIterator
18-
from twilio.base import deserialize, values
17+
from twilio.base import values
1918
from twilio.base.instance_context import InstanceContext
2019
from twilio.base.instance_resource import InstanceResource
2120
from twilio.base.list_resource import ListResource
@@ -35,8 +34,6 @@ class Permission(object):
3534
:ivar connect_app_friendly_name: The name of the Connect App.
3635
:ivar connect_app_homepage_url: The public URL for the Connect App.
3736
: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.
4037
:ivar permissions: The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
4138
:ivar uri: The URI of the resource, relative to `https://api.twilio.com`.
4239
"""
@@ -64,12 +61,6 @@ def __init__(
6461
"connect_app_homepage_url"
6562
)
6663
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-
)
7364
self.permissions: Optional[
7465
List["AuthorizedConnectAppInstance.Permission"]
7566
] = payload.get("permissions")

twilio/rest/events/v1/subscription/subscribed_event.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SubscribedEventInstance(InstanceResource):
2727
"""
2828
:ivar account_sid: The unique SID identifier of the Account.
2929
:ivar type: Type of event being subscribed to.
30-
:ivar schema_version: The schema version that the subscription should use.
30+
:ivar schema_version: The schema version that the Subscription should use.
3131
:ivar subscription_sid: The unique SID identifier of the Subscription.
3232
:ivar url: The URL of this resource.
3333
"""
@@ -113,7 +113,7 @@ def update(
113113
"""
114114
Update the SubscribedEventInstance
115115
116-
:param schema_version: The schema version that the subscription should use.
116+
:param schema_version: The schema version that the Subscription should use.
117117
118118
:returns: The updated SubscribedEventInstance
119119
"""
@@ -127,7 +127,7 @@ async def update_async(
127127
"""
128128
Asynchronous coroutine to update the SubscribedEventInstance
129129
130-
:param schema_version: The schema version that the subscription should use.
130+
:param schema_version: The schema version that the Subscription should use.
131131
132132
:returns: The updated SubscribedEventInstance
133133
"""
@@ -235,7 +235,7 @@ def update(
235235
"""
236236
Update the SubscribedEventInstance
237237
238-
:param schema_version: The schema version that the subscription should use.
238+
:param schema_version: The schema version that the Subscription should use.
239239
240240
:returns: The updated SubscribedEventInstance
241241
"""
@@ -264,7 +264,7 @@ async def update_async(
264264
"""
265265
Asynchronous coroutine to update the SubscribedEventInstance
266266
267-
:param schema_version: The schema version that the subscription should use.
267+
:param schema_version: The schema version that the Subscription should use.
268268
269269
:returns: The updated SubscribedEventInstance
270270
"""
@@ -343,7 +343,7 @@ def create(
343343
Create the SubscribedEventInstance
344344
345345
:param type: Type of event being subscribed to.
346-
:param schema_version: The schema version that the subscription should use.
346+
:param schema_version: The schema version that the Subscription should use.
347347
348348
:returns: The created SubscribedEventInstance
349349
"""
@@ -371,7 +371,7 @@ async def create_async(
371371
Asynchronously create the SubscribedEventInstance
372372
373373
:param type: Type of event being subscribed to.
374-
:param schema_version: The schema version that the subscription should use.
374+
:param schema_version: The schema version that the Subscription should use.
375375
376376
:returns: The created SubscribedEventInstance
377377
"""

twilio/rest/numbers/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.numbers.v1.bulk_eligibility import BulkEligibilityList
1919
from twilio.rest.numbers.v1.porting_bulk_portability import PortingBulkPortabilityList
20+
from twilio.rest.numbers.v1.porting_port_in_fetch import PortingPortInFetchList
2021
from twilio.rest.numbers.v1.porting_portability import PortingPortabilityList
2122

2223

@@ -30,6 +31,7 @@ def __init__(self, domain: Domain):
3031
super().__init__(domain, "v1")
3132
self._bulk_eligibilities: Optional[BulkEligibilityList] = None
3233
self._porting_bulk_portabilities: Optional[PortingBulkPortabilityList] = None
34+
self._porting_port_ins: Optional[PortingPortInFetchList] = None
3335
self._porting_portabilities: Optional[PortingPortabilityList] = None
3436

3537
@property
@@ -44,6 +46,12 @@ def porting_bulk_portabilities(self) -> PortingBulkPortabilityList:
4446
self._porting_bulk_portabilities = PortingBulkPortabilityList(self)
4547
return self._porting_bulk_portabilities
4648

49+
@property
50+
def porting_port_ins(self) -> PortingPortInFetchList:
51+
if self._porting_port_ins is None:
52+
self._porting_port_ins = PortingPortInFetchList(self)
53+
return self._porting_port_ins
54+
4755
@property
4856
def porting_portabilities(self) -> PortingPortabilityList:
4957
if self._porting_portabilities is None:
Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
r"""
2+
This code was generated by
3+
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
7+
Twilio - Numbers
8+
This is the public Twilio REST API.
9+
10+
NOTE: This class is auto generated by OpenAPI Generator.
11+
https://openapi-generator.tech
12+
Do not edit the class manually.
13+
"""
14+
15+
16+
from datetime import date
17+
from typing import Any, Dict, List, Optional
18+
from twilio.base import deserialize
19+
from twilio.base.instance_context import InstanceContext
20+
from twilio.base.instance_resource import InstanceResource
21+
from twilio.base.list_resource import ListResource
22+
from twilio.base.version import Version
23+
24+
25+
class PortingPortInFetchInstance(InstanceResource):
26+
27+
"""
28+
:ivar port_in_request_sid: The SID of the Port In request. This is a unique identifier of the port in request.
29+
:ivar url: The URL of this Port In request
30+
:ivar account_sid: The Account SID that the numbers will be added to after they are ported into Twilio.
31+
:ivar notification_emails: List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
32+
:ivar target_port_in_date: Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
33+
:ivar target_port_in_time_range_start: Minimum hour in the future needs to be established with the Ops team for validation.
34+
:ivar target_port_in_time_range_end: Maximum hour in the future needs to be established with the Ops team for validation.
35+
:ivar losing_carrier_information: The information for the losing carrier.
36+
:ivar phone_numbers: The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
37+
:ivar documents: The list of documents SID referencing a utility bills
38+
"""
39+
40+
def __init__(
41+
self,
42+
version: Version,
43+
payload: Dict[str, Any],
44+
port_in_request_sid: Optional[str] = None,
45+
):
46+
super().__init__(version)
47+
48+
self.port_in_request_sid: Optional[str] = payload.get("port_in_request_sid")
49+
self.url: Optional[str] = payload.get("url")
50+
self.account_sid: Optional[str] = payload.get("account_sid")
51+
self.notification_emails: Optional[List[str]] = payload.get(
52+
"notification_emails"
53+
)
54+
self.target_port_in_date: Optional[date] = deserialize.iso8601_date(
55+
payload.get("target_port_in_date")
56+
)
57+
self.target_port_in_time_range_start: Optional[str] = payload.get(
58+
"target_port_in_time_range_start"
59+
)
60+
self.target_port_in_time_range_end: Optional[str] = payload.get(
61+
"target_port_in_time_range_end"
62+
)
63+
self.losing_carrier_information: Optional[Dict[str, object]] = payload.get(
64+
"losing_carrier_information"
65+
)
66+
self.phone_numbers: Optional[List[object]] = payload.get("phone_numbers")
67+
self.documents: Optional[List[str]] = payload.get("documents")
68+
69+
self._solution = {
70+
"port_in_request_sid": port_in_request_sid or self.port_in_request_sid,
71+
}
72+
self._context: Optional[PortingPortInFetchContext] = None
73+
74+
@property
75+
def _proxy(self) -> "PortingPortInFetchContext":
76+
"""
77+
Generate an instance context for the instance, the context is capable of
78+
performing various actions. All instance actions are proxied to the context
79+
80+
:returns: PortingPortInFetchContext for this PortingPortInFetchInstance
81+
"""
82+
if self._context is None:
83+
self._context = PortingPortInFetchContext(
84+
self._version,
85+
port_in_request_sid=self._solution["port_in_request_sid"],
86+
)
87+
return self._context
88+
89+
def fetch(self) -> "PortingPortInFetchInstance":
90+
"""
91+
Fetch the PortingPortInFetchInstance
92+
93+
94+
:returns: The fetched PortingPortInFetchInstance
95+
"""
96+
return self._proxy.fetch()
97+
98+
async def fetch_async(self) -> "PortingPortInFetchInstance":
99+
"""
100+
Asynchronous coroutine to fetch the PortingPortInFetchInstance
101+
102+
103+
:returns: The fetched PortingPortInFetchInstance
104+
"""
105+
return await self._proxy.fetch_async()
106+
107+
def __repr__(self) -> str:
108+
"""
109+
Provide a friendly representation
110+
111+
:returns: Machine friendly representation
112+
"""
113+
context = " ".join("{}={}".format(k, v) for k, v in self._solution.items())
114+
return "<Twilio.Numbers.V1.PortingPortInFetchInstance {}>".format(context)
115+
116+
117+
class PortingPortInFetchContext(InstanceContext):
118+
def __init__(self, version: Version, port_in_request_sid: str):
119+
"""
120+
Initialize the PortingPortInFetchContext
121+
122+
:param version: Version that contains the resource
123+
:param port_in_request_sid: The SID of the Port In request. This is a unique identifier of the port in request.
124+
"""
125+
super().__init__(version)
126+
127+
# Path Solution
128+
self._solution = {
129+
"port_in_request_sid": port_in_request_sid,
130+
}
131+
self._uri = "/Porting/PortIn/{port_in_request_sid}".format(**self._solution)
132+
133+
def fetch(self) -> PortingPortInFetchInstance:
134+
"""
135+
Fetch the PortingPortInFetchInstance
136+
137+
138+
:returns: The fetched PortingPortInFetchInstance
139+
"""
140+
141+
payload = self._version.fetch(
142+
method="GET",
143+
uri=self._uri,
144+
)
145+
146+
return PortingPortInFetchInstance(
147+
self._version,
148+
payload,
149+
port_in_request_sid=self._solution["port_in_request_sid"],
150+
)
151+
152+
async def fetch_async(self) -> PortingPortInFetchInstance:
153+
"""
154+
Asynchronous coroutine to fetch the PortingPortInFetchInstance
155+
156+
157+
:returns: The fetched PortingPortInFetchInstance
158+
"""
159+
160+
payload = await self._version.fetch_async(
161+
method="GET",
162+
uri=self._uri,
163+
)
164+
165+
return PortingPortInFetchInstance(
166+
self._version,
167+
payload,
168+
port_in_request_sid=self._solution["port_in_request_sid"],
169+
)
170+
171+
def __repr__(self) -> str:
172+
"""
173+
Provide a friendly representation
174+
175+
:returns: Machine friendly representation
176+
"""
177+
context = " ".join("{}={}".format(k, v) for k, v in self._solution.items())
178+
return "<Twilio.Numbers.V1.PortingPortInFetchContext {}>".format(context)
179+
180+
181+
class PortingPortInFetchList(ListResource):
182+
def __init__(self, version: Version):
183+
"""
184+
Initialize the PortingPortInFetchList
185+
186+
:param version: Version that contains the resource
187+
188+
"""
189+
super().__init__(version)
190+
191+
def get(self, port_in_request_sid: str) -> PortingPortInFetchContext:
192+
"""
193+
Constructs a PortingPortInFetchContext
194+
195+
:param port_in_request_sid: The SID of the Port In request. This is a unique identifier of the port in request.
196+
"""
197+
return PortingPortInFetchContext(
198+
self._version, port_in_request_sid=port_in_request_sid
199+
)
200+
201+
def __call__(self, port_in_request_sid: str) -> PortingPortInFetchContext:
202+
"""
203+
Constructs a PortingPortInFetchContext
204+
205+
:param port_in_request_sid: The SID of the Port In request. This is a unique identifier of the port in request.
206+
"""
207+
return PortingPortInFetchContext(
208+
self._version, port_in_request_sid=port_in_request_sid
209+
)
210+
211+
def __repr__(self) -> str:
212+
"""
213+
Provide a friendly representation
214+
215+
:returns: Machine friendly representation
216+
"""
217+
return "<Twilio.Numbers.V1.PortingPortInFetchList>"

0 commit comments

Comments
 (0)
0