8000 [Librarian] Regenerated @ 42b8ce059dcc13e9d9713dbf88dcec856be2bbc9 · mfreed420/twilio-python@00d2dad · GitHub
[go: up one dir, main page]

Skip to content

Commit 00d2dad

Browse files
committed
[Librarian] Regenerated @ 42b8ce059dcc13e9d9713dbf88dcec856be2bbc9
1 parent 2b659e2 commit 00d2dad

File tree

15 files changed

+210
-1476
lines changed

15 files changed

+210
-1476
lines changed

CHANGES.md

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

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

6+
[2023-05-04] Version 8.2.0
7+
--------------------------
8+
**Conversations**
9+
- Remove `start_date`, `end_date` and `state` query parameters from list operation on Conversations resource **(breaking change)**
10+
11+
**Twiml**
12+
- Add support for new Amazon Polly voices (Q1 2023) for `Say` verb
13+
14+
615
[2023-04-19] Version 8.1.0
716
--------------------------
817
**Library - Chore**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class UpdateStatus(object):
6363
:ivar body: The message text. Can be up to 1,600 characters long.
6464
:ivar num_segments: The number of segments that make up the complete message. A message body that is too large to be sent in a single SMS message is segmented and charged as multiple messages. Inbound messages over 160 characters are reassembled when the message is received. Note: When using a Messaging Service to send messages, `num_segments` will always be 0 in Twilio's response to your API request.
6565
:ivar direction:
66-
:ivar _from: The phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or [Wireless SIM](https://www.twilio.com/docs/wireless/tutorials/communications-guides/how-to-send-and-receive-text-messages) that initiated the message. For incoming messages, this will be the number of the sending phone. For outgoing messages, this value will be one of your Twilio phone numbers or the alphanumeric sender ID used.
66+
:ivar from_: The phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or [Wireless SIM](https://www.twilio.com/docs/wireless/tutorials/communications-guides/how-to-send-and-receive-text-messages) that initiated the message. For incoming messages, this will be the number of the sending phone. For outgoing messages, this value will be one of your Twilio phone numbers or the alphanumeric sender ID used.
6767
:ivar to: The phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format that received the message. For incoming messages, this will be one of your Twilio phone numbers. For outgoing messages, this will be the sending phone.
6868
: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.
6969
:ivar price: The amount billed for the message, in the currency specified by `price_unit`. Note that your account is charged for each segment we send to the handset. Populated after the message has been sent. May not be immediately available.
@@ -94,7 +94,7 @@ def __init__(
9494
self.body: Optional[str] = payload.get("body")
9595
self.num_segments: Optional[str] = payload.get("num_segments")
9696
self.direction: Optional["MessageInstance.Direction"] = payload.get("direction")
97-
self._from: Optional[str] = payload.get("from")
97+
self.from_: Optional[str] = payload.get("from")
9898
self.to: Optional[str] = payload.get("to")
9999
self.date_updated: Optional[datetime] = deserialize.rfc2822_datetime(
100100
payload.get("date_updated")

twilio/rest/conversations/v1/conversation/__init__.py

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,6 @@ async def create_async(
670670

671671
def stream(
672672
self,
673-
start_date: Union[str, object] = values.unset,
674-
end_date: Union[str, object] = values.unset,
675-
state: Union["ConversationInstance.State", object] = values.unset,
676673
limit: Optional[int] = None,
677674
page_size: Optional[int] = None,
678675
) -> Iterator[ConversationInstance]:
@@ -682,9 +679,6 @@ def stream(
682679
is reached.
683680
The results are returned as a generator, so this operation is memory efficient.
684681
685-
:param str start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
686-
:param str end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
687-
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
688682
:param limit: Upper limit for the number of records to return. stream()
689683
guarantees to never return more than limit. Default is no limit
690684
:param page_size: Number of records to fetch per request, when not set will use
@@ -695,20 +689,12 @@ def stream(
695689
:returns: Generator that will yield up to limit results
696690
"""
697691
limits = self._version.read_limits(limit, page_size)
698-
page = self.page(
699-
start_date=start_date,
700-
end_date=end_date,
701-
state=state,
702-
page_size=limits["page_size"],
703-
)
692+
page = self.page(page_size=limits["page_size"])
704693

705694
return self._version.stream(page, limits["limit"])
706695

707696
async def stream_async(
708697
self,
709-
start_date: Union[str, object] = values.unset,
710-
end_date: Union[str, object] = values.unset,
711-
state: Union["ConversationInstance.State", object] = values.unset,
712698
limit: Optional[int] = None,
713699
page_size: Optional[int] = None,
714700
) -> AsyncIterator[ConversationInstance]:
@@ -718,9 +704,6 @@ async def stream_async(
718704
is reached.
719705
The results are returned as a generator, so this operation is memory efficient.
720706
721-
:param str start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
722-
:param str end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
723-
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
724707
:param limit: Upper limit for the number of records to return. stream()
725708
guarantees to never return more than limit. Default is no limit
726709
:param page_size: Number of records to fetch per request, when not set will use
@@ -731,20 +714,12 @@ async def stream_async(
731714
:returns: Generator that will yield up to limit results
732715
"""
733716
limits = self._version.read_limits(limit, page_size)
734-
page = await self.page_async(
735-
start_date=start_date,
736-
end_date=end_date,
737-
state=state,
738-
page_size=limits["page_size"],
739-
)
717+
page = await self.page_async(page_size=limits["page_size"])
740718

741719
return self._version.stream_async(page, limits["limit"])
742720

743721
def list(
744722
self,
745-
start_date: Union[str, object] = values.unset,
746-
end_date: Union[str, object] = values.unset,
747-
state: Union["ConversationInstance.State", object] = values.unset,
748723
limit: Optional[int] = None,
749724
page_size: Optional[int] = None,
750725
) -> List[ConversationInstance]:
@@ -753,9 +728,6 @@ def list(
753728
Unlike stream(), this operation is eager and will load `limit` records into
754729
memory before returning.
755730
756-
:param str start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
757-
:param str end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
758-
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
759731
:param limit: Upper limit for the number of records to return. list() guarantees
760732
never to return more than limit. Default is no limit
761733
:param page_size: Number of records to fetch per request, when not set will use
@@ -767,19 +739,13 @@ def list(
767739
"""
768740
return list(
769741
self.stream(
770-
start_date=start_date,
771-
end_date=end_date,
772-
state=state,
773742
limit=limit,
774743
page_size=page_size,
775744
)
776745
)
777746

778747
async def list_async(
779748
self,
780-
start_date: Union[str, object] = values.unset,
781-
end_date: Union[str, object] = values.unset,
782-
state: Union["ConversationInstance.State", object] = values.unset,
783749
limit: Optional[int] = None,
784750
page_size: Optional[int] = None,
785751
) -> List[ConversationInstance]:
@@ -788,9 +754,6 @@ async def list_async(
788754
Unlike stream(), this operation is eager and will load `limit` records into
789755
memory before returning.
790756
791-
:param str start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
792-
:param str end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
793-
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
794757
:param limit: Upper limit for the number of records to return. list() guarantees
795758
never to return more than limit. Default is no limit
796759
:param page_size: Number of records to fetch per request, when not set will use
@@ -803,19 +766,13 @@ async def list_async(
803766
return [
804767
record
805768
async for record in await self.stream_async(
806-
start_date=start_date,
807-
end_date=end_date,
808-
state=state,
809769
limit=limit,
810770
page_size=page_size,
811771
)
812772
]
813773

814774
def page(
815775
self,
816-
start_date: Union[str, object] = values.unset,
817-
end_date: Union[str, object] = values.unset,
818-
state: Union["ConversationInstance.State", object] = values.unset,
819776
page_token: Union[str, object] = values.unset,
820777
page_number: Union[int, object] = values.unset,
821778
page_size: Union[int, object] = values.unset,
@@ -824,9 +781,6 @@ def page(
824781
Retrieve a single page of ConversationInstance records from the API.
825782
Request is executed immediately
826783
827-
:param start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
828-
:param end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
829-
:param state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
830784
:param page_token: PageToken provided by the API
831785
:param page_number: Page Number, this value is simply for client state
832786
:param page_size: Number of records to return, defaults to 50
@@ -835,9 +789,6 @@ def page(
835789
"""
836790
data = values.of(
837791
{
838-
"StartDate": start_date,
839-
"EndDate": end_date,
840-
"State": state,
841792
"PageToken": page_token,
842793
"Page": page_number,
843794
"PageSize": page_size,
@@ -849,9 +800,6 @@ def page(
849800

850801
async def page_async(
851802
self,
852-
start_date: Union[str, object] = values.unset,
853-
end_date: Union[str, object] = values.unset,
854-
state: Union["ConversationInstance.State", object] = values.unset,
855803
page_token: Union[str, object] = values.unset,
856804
page_number: Union[int, object] = values.unset,
857805
page_size: Union[int, object] = values.unset,
@@ -860,9 +808,6 @@ async def page_async(
860808
Asynchronously retrieve a single page of ConversationInstance records from the API.
861809
Request is executed immediately
862810
863-
:param start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
864-
:param end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
865-
:param state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
866811
:param page_token: PageToken provided by the API
867812
:param page_number: Page Number, this value is simply for client state
868813
:param page_size: Number of records to return, defaults to 50
@@ -871,9 +816,6 @@ async def page_async(
871816
"""
872817
data = values.of(
873818
{
874-
"StartDate": start_date,
875-
"EndDate": end_date,
876-
"State": state,
877819
"PageToken": page_token,
878820
"Page": page_number,
879821
"PageSize": page_size,

0 commit comments

Comments
 (0)
0