Skip to content

Commit

Permalink
Update Communication Chat Swagger & Tests Record (#20578)
Browse files Browse the repository at this point in the history
* update swagger
* update changelog
  • Loading branch information
LuChen-Microsoft committed Sep 10, 2021
1 parent 71871eb commit bd89c09
Show file tree
Hide file tree
Showing 49 changed files with 3,478 additions and 2,536 deletions.
3 changes: 3 additions & 0 deletions sdk/communication/azure-communication-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release History

## 1.1.0 (Unreleased)
- Updated `azure-communication-chat` version.

## 1.1.0b1 (2021-08-16)

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(
super(AzureCommunicationChatServiceConfiguration, self).__init__(**kwargs)

self.endpoint = endpoint
self.api_version = "2021-04-05-preview6"
self.api_version = "2021-09-07"
kwargs.setdefault('sdk_moniker', 'azurecommunicationchatservice/{}'.format(VERSION))
self._configure(**kwargs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(
super(AzureCommunicationChatServiceConfiguration, self).__init__(**kwargs)

self.endpoint = endpoint
self.api_version = "2021-04-05-preview6"
self.api_version = "2021-09-07"
kwargs.setdefault('sdk_moniker', 'azurecommunicationchatservice/{}'.format(VERSION))
self._configure(**kwargs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def create_chat_thread(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -146,7 +146,7 @@ def list_chat_threads(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -230,7 +230,7 @@ async def delete_chat_thread(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def list_chat_read_receipts(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -162,7 +162,7 @@ async def send_chat_read_receipt(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -228,7 +228,7 @@ async def send_chat_message(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -301,7 +301,7 @@ def list_chat_messages(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -390,7 +390,7 @@ async def get_chat_message(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -458,7 +458,7 @@ async def update_chat_message(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/merge-patch+json")
accept = "application/json"

Expand Down Expand Up @@ -525,7 +525,7 @@ async def delete_chat_message(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -590,7 +590,7 @@ def list_chat_participants(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -680,7 +680,7 @@ async def remove_chat_participant(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -746,7 +746,7 @@ async def add_chat_participants(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -815,7 +815,7 @@ async def update_chat_thread_properties(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/merge-patch+json")
accept = "application/json"

Expand Down Expand Up @@ -878,7 +878,7 @@ async def get_chat_thread_properties(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -942,7 +942,7 @@ async def send_typing_notification(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def create_chat_thread(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -152,7 +152,7 @@ def list_chat_threads(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -237,7 +237,7 @@ def delete_chat_thread(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def list_chat_read_receipts(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -168,7 +168,7 @@ def send_chat_read_receipt(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -235,7 +235,7 @@ def send_chat_message(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -309,7 +309,7 @@ def list_chat_messages(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -399,7 +399,7 @@ def get_chat_message(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -468,7 +468,7 @@ def update_chat_message(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/merge-patch+json")
accept = "application/json"

Expand Down Expand Up @@ -536,7 +536,7 @@ def delete_chat_message(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -602,7 +602,7 @@ def list_chat_participants(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -693,7 +693,7 @@ def remove_chat_participant(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -760,7 +760,7 @@ def add_chat_participants(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -830,7 +830,7 @@ def update_chat_thread_properties(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/merge-patch+json")
accept = "application/json"

Expand Down Expand Up @@ -894,7 +894,7 @@ def get_chat_thread_properties(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -959,7 +959,7 @@ def send_typing_notification(
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-05-preview6"
api_version = "2021-09-07"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
4 changes: 2 additions & 2 deletions sdk/communication/azure-communication-chat/swagger/SWAGGER.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ autorest SWAGGER.md
### Settings

```yaml
tag: package-chat-2021-04-05-preview6
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/29e0c9624a8e60138127457f2e863bb4a9ba1419/specification/communication/data-plane/Chat/readme.md
tag: package-chat-2021-09-07
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/communication/data-plane/Chat/readme.md
output-folder: ../azure/communication/chat/_generated
namespace: azure.communication.chat
no-namespace-folders: true
Expand Down
Loading

0 comments on commit bd89c09

Please sign in to comment.