Skip to content

Commit 32b65be

Browse files
committed
[Librarian] Regenerated @ 24dcf52b3ba6769ea21d08329aa544a79742b6c2
1 parent ca4a180 commit 32b65be

File tree

15 files changed

+71
-1147
lines changed

15 files changed

+71
-1147
lines changed

CHANGES.md

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

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

6+
[2023-11-17] Version 8.10.2
7+
---------------------------
8+
**Library - Chore**
9+
- [PR #733](https://github.com/twilio/twilio-python/pull/733): bumping aiohttp from 3.8.5 to 3.8.6. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
10+
11+
**Api**
12+
- Update documentation to reflect RiskCheck GA
13+
14+
**Messaging**
15+
- Add tollfree edit_allowed and edit_reason fields
16+
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
17+
18+
**Taskrouter**
19+
- Add container attribute to task_queue_bulk_real_time_statistics endpoint
20+
21+
**Trusthub**
22+
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
23+
- Add new optional field notification_email to compliance_tollfree_inquiry.json
24+
25+
**Verify**
26+
- Add `Tags` optional parameter on Verification creation.
27+
28+
629
[2023-11-06] Version 8.10.1
730
---------------------------
831
**Flex**

twilio/rest/__init__.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
from twilio.rest.monitor import Monitor
3434
from twilio.rest.notify import Notify
3535
from twilio.rest.numbers import Numbers
36-
from twilio.rest.oauth import Oauth
3736
from twilio.rest.preview import Preview
3837
from twilio.rest.pricing import Pricing
3938
from twilio.rest.proxy import Proxy
@@ -142,7 +141,6 @@ def __init__(
142141
self._monitor: Optional["Monitor"] = None
143142
self._notify: Optional["Notify"] = None
144143
self._numbers: Optional["Numbers"] = None
145-
self._oauth: Optional["Oauth"] = None
146144
self._preview: Optional["Preview"] = None
147145
self._pricing: Optional["Pricing"] = None
148146
self._proxy: Optional["Proxy"] = None
@@ -419,19 +417,6 @@ def numbers(self) -> "Numbers":
419417
self._numbers = Numbers(self)
420418
return self._numbers
421419

422-
@property
423-
def oauth(self) -> "Oauth":
424-
"""
425-
Access the Oauth Twilio Domain
426-
427-
:returns: Oauth Twilio Domain
428-
"""
429-
if self._oauth is None:
430-
from twilio.rest.oauth import Oauth
431-
432-
self._oauth = Oauth(self)
433-
return self._oauth
434-
435420
@property
436421
def preview(self) -> "Preview":
437422
"""

twilio/rest/insights/v1/call/annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ConnectivityIssue(object):
4545
:ivar call_score: Specifies the Call Score, if available. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
4646
:ivar comment: Specifies any comments pertaining to the call. Twilio does not treat this field as PII, so no PII should be included in comments.
4747
:ivar incident: Incident or support ticket associated with this call. The `incident` property is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.
48-
:ivar url: The URL of this resource.
48+
:ivar url:
4949
"""
5050

5151
def __init__(self, version: Version, payload: Dict[str, Any], call_sid: str):

twilio/rest/messaging/v1/service/channel_sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ChannelSenderInstance(InstanceResource):
3434
:ivar country_code: The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number.
3535
:ivar date_created: The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
3636
:ivar date_updated: The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
37-
:ivar url:
37+
:ivar url: The absolute URL of the ChannelSender resource.
3838
"""
3939

4040
def __init__(

twilio/rest/messaging/v1/tollfree_verification.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class Status(object):
7171
:ivar rejection_reason: The rejection reason given when a Tollfree Verification has been rejected.
7272
:ivar error_code: The error code given when a Tollfree Verification has been rejected.
7373
:ivar edit_expiration: The date and time when the ability to edit a rejected verification expires.
74+
:ivar edit_allowed: If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
7475
:ivar resource_links: The URLs of the documents associated with the Tollfree Verification resource.
7576
:ivar external_reference_id: An optional external reference ID supplied by customer and echoed back on status retrieval.
7677
"""
@@ -145,6 +146,7 @@ def __init__(
145146
self.edit_expiration: Optional[datetime] = deserialize.iso8601_datetime(
146147
payload.get("edit_expiration")
147148
)
149+
self.edit_allowed: Optional[bool] = payload.get("edit_allowed")
148150
self.resource_links: Optional[Dict[str, object]] = payload.get("resource_links")
149151
self.external_reference_id: Optional[str] = payload.get("external_reference_id")
150152

@@ -228,6 +230,7 @@ def update(
228230
business_contact_last_name: Union[str, object] = values.unset,
229231
business_contact_email: Union[str, object] = values.unset,
230232
business_contact_phone: Union[str, object] = values.unset,
233+
edit_reason: Union[str, object] = values.unset,
231234
) -> "TollfreeVerificationInstance":
232235
"""
233236
Update the TollfreeVerificationInstance
@@ -252,6 +255,7 @@ def update(
252255
:param business_contact_last_name: The last name of the contact for the business or organization using the Tollfree number.
253256
:param business_contact_email: The email address of the contact for the business or organization using the Tollfree number.
254257
:param business_contact_phone: The phone number of the contact for the business or organization using the Tollfree number.
258+
:param edit_reason: Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
255259
256260
:returns: The updated TollfreeVerificationInstance
257261
"""
@@ -276,6 +280,7 @@ def update(
276280
business_contact_last_name=business_contact_last_name,
277281
business_contact_email=business_contact_email,
278282
business_contact_phone=business_contact_phone,
283+
edit_reason=edit_reason,
279284
)
280285

281286
async def update_async(
@@ -302,6 +307,7 @@ async def update_async(
302307
business_contact_last_name: Union[str, object] = values.unset,
303308
business_contact_email: Union[str, object] = values.unset,
304309
business_contact_phone: Union[str, object] = values.unset,
310+
edit_reason: Union[str, object] = values.unset,
305311
) -> "TollfreeVerificationInstance":
306312
"""
307313
Asynchronous coroutine to update the TollfreeVerificationInstance
@@ -326,6 +332,7 @@ async def update_async(
326332
:param business_contact_last_name: The last name of the contact for the business or organization using the Tollfree number.
327333
:param business_contact_email: The email address of the contact for the business or organization using the Tollfree number.
328334
:param business_contact_phone: The phone number of the contact for the business or organization using the Tollfree number.
335+
:param edit_reason: Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
329336
330337
:returns: The updated TollfreeVerificationInstance
331338
"""
@@ -350,6 +357,7 @@ async def update_async(
350357
business_contact_last_name=business_contact_last_name,
351358
business_contact_email=business_contact_email,
352359
business_contact_phone=business_contact_phone,
360+
edit_reason=edit_reason,
353361
)
354362

355363
def __repr__(self) -> str:
@@ -464,6 +472,7 @@ def update(
464472
business_contact_last_name: Union[str, object] = values.unset,
465473
business_contact_email: Union[str, object] = values.unset,
466474
business_contact_phone: Union[str, object] = values.unset,
475+
edit_reason: Union[str, object] = values.unset,
467476
) -> TollfreeVerificationInstance:
468477
"""
469478
Update the TollfreeVerificationInstance
@@ -488,6 +497,7 @@ def update(
488497
:param business_contact_last_name: The last name of the contact for the business or organization using the Tollfree number.
489498
:param business_contact_email: The email address of the contact for the business or organization using the Tollfree number.
490499
:param business_contact_phone: The phone number of the contact for the business or organization using the Tollfree number.
500+
:param edit_reason: Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
491501
492502
:returns: The updated TollfreeVerificationInstance
493503
"""
@@ -513,6 +523,7 @@ def update(
513523
"BusinessContactLastName": business_contact_last_name,
514524
"BusinessContactEmail": business_contact_email,
515525
"BusinessContactPhone": business_contact_phone,
526+
"EditReason": edit_reason,
516527
}
517528
)
518529

@@ -550,6 +561,7 @@ async def update_async(
550561
business_contact_last_name: Union[str, object] = values.unset,
551562
business_contact_email: Union[str, object] = values.unset,
552563
business_contact_phone: Union[str, object] = values.unset,
564+
edit_reason: Union[str, object] = values.unset,
553565
) -> TollfreeVerificationInstance:
554566
"""
555567
Asynchronous coroutine to update the TollfreeVerificationInstance
@@ -574,6 +586,7 @@ async def update_async(
574586
:param business_contact_last_name: The last name of the contact for the business or organization using the Tollfree number.
575587
:param business_contact_email: The email address of the contact for the business or organization using the Tollfree number.
576588
:param business_contact_phone: The phone number of the contact for the business or organization using the Tollfree number.
589+
:param edit_reason: Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
577590
578591
:returns: The updated TollfreeVerificationInstance
579592
"""
@@ -599,6 +612,7 @@ async def update_async(
599612
"BusinessContactLastName": business_contact_last_name,
600613
"BusinessContactEmail": business_contact_email,
601614
"BusinessContactPhone": business_contact_phone,
615+
"EditReason": edit_reason,
602616
}
603617
)
604618

twilio/rest/oauth/OauthBase.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

twilio/rest/oauth/v1/__init__.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)