Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Communication]: Updated swagger paths #18839

Merged
merged 1 commit into from
May 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def create_chat_thread(
self,
create_chat_thread_request: "_models.CreateChatThreadRequest",
repeatability_request_id: Optional[str] = None,
**kwargs
**kwargs: Any
) -> "_models.CreateChatThreadResult":
"""Creates a chat thread.

Expand Down Expand Up @@ -120,7 +120,7 @@ def list_chat_threads(
self,
max_page_size: Optional[int] = None,
start_time: Optional[datetime.datetime] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ChatThreadsItemCollection"]:
"""Gets the list of chat threads of a user.

Expand Down Expand Up @@ -207,7 +207,7 @@ async def get_next(next_link=None):
async def delete_chat_thread(
self,
chat_thread_id: str,
**kwargs
**kwargs: Any
) -> None:
"""Deletes a thread.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def list_chat_read_receipts(
chat_thread_id: str,
max_page_size: Optional[int] = None,
skip: Optional[int] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ChatMessageReadReceiptsCollection"]:
"""Gets chat message read receipts for a thread.

Expand Down Expand Up @@ -137,7 +137,7 @@ async def send_chat_read_receipt(
self,
chat_thread_id: str,
send_read_receipt_request: "_models.SendReadReceiptRequest",
**kwargs
**kwargs: Any
) -> None:
"""Sends a read receipt event to a thread, on behalf of a user.

Expand Down Expand Up @@ -203,7 +203,7 @@ async def send_chat_message(
self,
chat_thread_id: str,
send_chat_message_request: "_models.SendChatMessageRequest",
**kwargs
**kwargs: Any
) -> "_models.SendChatMessageResult":
"""Sends a message to a thread.

Expand Down Expand Up @@ -273,7 +273,7 @@ def list_chat_messages(
chat_thread_id: str,
max_page_size: Optional[int] = None,
start_time: Optional[datetime.datetime] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ChatMessagesCollection"]:
"""Gets a list of messages from a thread.

Expand Down Expand Up @@ -365,7 +365,7 @@ async def get_chat_message(
self,
chat_thread_id: str,
chat_message_id: str,
**kwargs
**kwargs: Any
) -> "_models.ChatMessage":
"""Gets a message by id.

Expand Down Expand Up @@ -431,7 +431,7 @@ async def update_chat_message(
chat_thread_id: str,
chat_message_id: str,
update_chat_message_request: "_models.UpdateChatMessageRequest",
**kwargs
**kwargs: Any
) -> None:
"""Updates a message.

Expand Down Expand Up @@ -500,7 +500,7 @@ async def delete_chat_message(
self,
chat_thread_id: str,
chat_message_id: str,
**kwargs
**kwargs: Any
) -> None:
"""Deletes a message.

Expand Down Expand Up @@ -561,7 +561,7 @@ async def delete_chat_message(
async def send_typing_notification(
self,
chat_thread_id: str,
**kwargs
**kwargs: Any
) -> None:
"""Posts a typing event to a thread, on behalf of a user.

Expand Down Expand Up @@ -621,7 +621,7 @@ def list_chat_participants(
chat_thread_id: str,
max_page_size: Optional[int] = None,
skip: Optional[int] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ChatParticipantsCollection"]:
"""Gets the participants of a thread.

Expand Down Expand Up @@ -712,7 +712,7 @@ async def remove_chat_participant(
self,
chat_thread_id: str,
participant_communication_identifier: "_models.CommunicationIdentifierModel",
**kwargs
**kwargs: Any
) -> None:
"""Remove a participant from a thread.

Expand Down Expand Up @@ -779,7 +779,7 @@ async def add_chat_participants(
self,
chat_thread_id: str,
add_chat_participants_request: "_models.AddChatParticipantsRequest",
**kwargs
**kwargs: Any
) -> "_models.AddChatParticipantsResult":
"""Adds thread participants to a thread. If participants already exist, no change occurs.

Expand Down Expand Up @@ -848,7 +848,7 @@ async def update_chat_thread_properties(
self,
chat_thread_id: str,
update_chat_thread_request: "_models.UpdateChatThreadRequest",
**kwargs
**kwargs: Any
) -> None:
"""Updates a thread's properties.

Expand Down Expand Up @@ -913,7 +913,7 @@ async def update_chat_thread_properties(
async def get_chat_thread_properties(
self,
chat_thread_id: str,
**kwargs
**kwargs: Any
) -> "_models.ChatThreadProperties":
"""Gets a chat thread's properties.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ autorest SWAGGER.md

```yaml
tag: package-chat-2021-03-07
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/bf081421869ccd31d9fd87084b07a1e246aee310/specification/communication/data-plane/Microsoft.CommunicationServicesChat/readme.md
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/896d05e37dbb00712726620b8d679cc3c3be09fb/specification/communication/data-plane/Chat/readme.md
output-folder: ../azure/communication/chat/_generated
namespace: azure.communication.chat
no-namespace-folders: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
async def create(
self,
create_token_with_scopes: Optional[List[Union[str, "_models.CommunicationTokenScope"]]] = None,
**kwargs
**kwargs: Any
) -> "_models.CommunicationIdentityAccessTokenResult":
"""Create a new identity.

Expand Down Expand Up @@ -108,7 +108,7 @@ async def create(
async def delete(
self,
id: str,
**kwargs
**kwargs: Any
) -> None:
"""Delete the identity, revoke all tokens for the identity and delete all associated data.

Expand Down Expand Up @@ -162,7 +162,7 @@ async def delete(
async def revoke_access_tokens(
self,
id: str,
**kwargs
**kwargs: Any
) -> None:
"""Revoke all access tokens for the specific identity.

Expand Down Expand Up @@ -217,7 +217,7 @@ async def issue_access_token(
self,
id: str,
scopes: List[Union[str, "_models.CommunicationTokenScope"]],
**kwargs
**kwargs: Any
) -> "_models.CommunicationIdentityAccessToken":
"""Issue a new token for an identity.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ autorest ./SWAGGER.md
### Settings
``` yaml
tag: package-2021-03-07
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/bf081421869ccd31d9fd87084b07a1e246aee310/specification/communication/data-plane/Microsoft.CommunicationServicesIdentity/readme.md
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/896d05e37dbb00712726620b8d679cc3c3be09fb/specification/communication/data-plane/Identity/readme.md
output-folder: ../azure/communication/identity/_generated/
namespace: azure.communication.identity
license-header: MICROSOFT_MIT_NO_VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def _search_available_phone_numbers_initial(
self,
country_code: str,
body: "_models.PhoneNumberSearchRequest",
**kwargs
**kwargs: Any
) -> "_models.PhoneNumberSearchResult":
cls = kwargs.pop('cls', None) # type: ClsType["_models.PhoneNumberSearchResult"]
error_map = {
Expand Down Expand Up @@ -103,7 +103,7 @@ async def begin_search_available_phone_numbers(
self,
country_code: str,
body: "_models.PhoneNumberSearchRequest",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.PhoneNumberSearchResult"]:
"""Search for available phone numbers to purchase.

Expand All @@ -115,15 +115,15 @@ async def begin_search_available_phone_numbers(
:type body: ~azure.communication.phonenumbers.models.PhoneNumberSearchRequest
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncLROBasePolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncLROBasePolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either PhoneNumberSearchResult or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.communication.phonenumbers.models.PhoneNumberSearchResult]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod]
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.PhoneNumberSearchResult"]
lro_delay = kwargs.pop(
'polling_interval',
Expand Down Expand Up @@ -176,7 +176,7 @@ def get_long_running_output(pipeline_response):
async def get_search_result(
self,
search_id: str,
**kwargs
**kwargs: Any
) -> "_models.PhoneNumberSearchResult":
"""Gets a phone number search result by search id.

Expand Down Expand Up @@ -233,7 +233,7 @@ async def get_search_result(
async def _purchase_phone_numbers_initial(
self,
search_id: Optional[str] = None,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -287,7 +287,7 @@ async def _purchase_phone_numbers_initial(
async def begin_purchase_phone_numbers(
self,
search_id: Optional[str] = None,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Purchases phone numbers.

Expand All @@ -297,15 +297,15 @@ async def begin_purchase_phone_numbers(
:type search_id: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncLROBasePolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncLROBasePolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod]
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType[None]
lro_delay = kwargs.pop(
'polling_interval',
Expand Down Expand Up @@ -347,7 +347,7 @@ def get_long_running_output(pipeline_response):
async def get_operation(
self,
operation_id: str,
**kwargs
**kwargs: Any
) -> "_models.PhoneNumberOperation":
"""Gets an operation by its id.

Expand Down Expand Up @@ -406,7 +406,7 @@ async def get_operation(
async def cancel_operation(
self,
operation_id: str,
**kwargs
**kwargs: Any
) -> None:
"""Cancels an operation by its id.

Expand Down Expand Up @@ -462,7 +462,7 @@ async def _update_capabilities_initial(
phone_number: str,
calling: Optional[Union[str, "_models.PhoneNumberCapabilityType"]] = None,
sms: Optional[Union[str, "_models.PhoneNumberCapabilityType"]] = None,
**kwargs
**kwargs: Any
) -> "_models.PurchasedPhoneNumber":
cls = kwargs.pop('cls', None) # type: ClsType["_models.PurchasedPhoneNumber"]
error_map = {
Expand Down Expand Up @@ -525,7 +525,7 @@ async def begin_update_capabilities(
phone_number: str,
calling: Optional[Union[str, "_models.PhoneNumberCapabilityType"]] = None,
sms: Optional[Union[str, "_models.PhoneNumberCapabilityType"]] = None,
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.PurchasedPhoneNumber"]:
"""Updates the capabilities of a phone number.

Expand All @@ -540,15 +540,15 @@ async def begin_update_capabilities(
:type sms: str or ~azure.communication.phonenumbers.models.PhoneNumberCapabilityType
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncLROBasePolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncLROBasePolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either PurchasedPhoneNumber or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.communication.phonenumbers.models.PurchasedPhoneNumber]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod]
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.PurchasedPhoneNumber"]
lro_delay = kwargs.pop(
'polling_interval',
Expand Down Expand Up @@ -602,7 +602,7 @@ def get_long_running_output(pipeline_response):
async def get_by_number(
self,
phone_number: str,
**kwargs
**kwargs: Any
) -> "_models.PurchasedPhoneNumber":
"""Gets the details of the given purchased phone number.

Expand Down Expand Up @@ -660,7 +660,7 @@ async def get_by_number(
async def _release_phone_number_initial(
self,
phone_number: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -708,7 +708,7 @@ async def _release_phone_number_initial(
async def begin_release_phone_number(
self,
phone_number: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Releases a purchased phone number.

Expand All @@ -718,15 +718,15 @@ async def begin_release_phone_number(
:type phone_number: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncLROBasePolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncLROBasePolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod]
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType[None]
lro_delay = kwargs.pop(
'polling_interval',
Expand Down Expand Up @@ -770,7 +770,7 @@ def list_phone_numbers(
self,
skip: Optional[int] = 0,
top: Optional[int] = 100,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.PurchasedPhoneNumbers"]:
"""Gets the list of all purchased phone numbers.

Expand Down
Loading