Skip to content

Commit

Permalink
Updated swagger paths
Browse files Browse the repository at this point in the history
  • Loading branch information
lsundaralingam committed May 20, 2021
1 parent f283843 commit 5879a07
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 29 deletions.
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 @@ -11,7 +11,7 @@ autorest ./PHONE_NUMBER_SWAGGER.md
### Settings
``` yaml
tag: package-phonenumber-2021-03-07
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/bf081421869ccd31d9fd87084b07a1e246aee310/specification/communication/data-plane/Microsoft.CommunicationServicesPhoneNumbers/readme.md
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/896d05e37dbb00712726620b8d679cc3c3be09fb/specification/communication/data-plane/PhoneNumbers/readme.md
output-folder: ../azure/communication/phonenumbers/_generated
namespace: azure.communication.phonenumbers
license-header: MICROSOFT_MIT_NO_VERSION
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 send(
self,
send_message_request: "_models.SendMessageRequest",
**kwargs
**kwargs: Any
) -> "_models.SmsSendResponse":
"""Sends a SMS message from a phone number that belongs to the authenticated account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ class SmsSendResponseItem(msrest.serialization.Model):
:type message_id: str
:param http_status_code: Required. HTTP Status code.
:type http_status_code: int
:param repeatability_result: The result of a repeatable request with one of the case-
insensitive values accepted or rejected. Possible values include: "accepted", "rejected".
:param repeatability_result: The result of a repeatable request with one of the
case-insensitive values accepted or rejected. Possible values include: "accepted", "rejected".
:type repeatability_result: str or
~azure.communication.sms.models.SmsSendResponseItemRepeatabilityResult
:param successful: Required. Indicates if the message is processed successfully or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ class SmsSendResponseItem(msrest.serialization.Model):
:type message_id: str
:param http_status_code: Required. HTTP Status code.
:type http_status_code: int
:param repeatability_result: The result of a repeatable request with one of the case-
insensitive values accepted or rejected. Possible values include: "accepted", "rejected".
:param repeatability_result: The result of a repeatable request with one of the
case-insensitive values accepted or rejected. Possible values include: "accepted", "rejected".
:type repeatability_result: str or
~azure.communication.sms.models.SmsSendResponseItemRepeatabilityResult
:param successful: Required. Indicates if the message is processed successfully or not.
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-sms-2021-03-07
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/bf081421869ccd31d9fd87084b07a1e246aee310/specification/communication/data-plane/Microsoft.CommunicationServicesSms/readme.md
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/896d05e37dbb00712726620b8d679cc3c3be09fb/specification/communication/data-plane/Sms/readme.md
output-folder: ../azure/communication/sms/_generated
namespace: azure.communication.sms
no-namespace-folders: true
Expand Down

0 comments on commit 5879a07

Please sign in to comment.