Skip to content

Commit bd89c09

Browse files
Update Communication Chat Swagger & Tests Record (Azure#20578)
* update swagger * update changelog
1 parent 71871eb commit bd89c09

File tree

49 files changed

+3478
-2536
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3478
-2536
lines changed

sdk/communication/azure-communication-chat/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Release History
22

3+
## 1.1.0 (Unreleased)
4+
- Updated `azure-communication-chat` version.
5+
36
## 1.1.0b1 (2021-08-16)
47

58
### Added

sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
super(AzureCommunicationChatServiceConfiguration, self).__init__(**kwargs)
3939

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

sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(
3333
super(AzureCommunicationChatServiceConfiguration, self).__init__(**kwargs)
3434

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

sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async def create_chat_thread(
7575
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
7676
}
7777
error_map.update(kwargs.pop('error_map', {}))
78-
api_version = "2021-04-05-preview6"
78+
api_version = "2021-09-07"
7979
content_type = kwargs.pop("content_type", "application/json")
8080
accept = "application/json"
8181

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

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

236236
# Construct URL

sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def list_chat_read_receipts(
7373
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
7474
}
7575
error_map.update(kwargs.pop('error_map', {}))
76-
api_version = "2021-04-05-preview6"
76+
api_version = "2021-09-07"
7777
accept = "application/json"
7878

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

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

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

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

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

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

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

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

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

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

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

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

sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def create_chat_thread(
8080
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
8181
}
8282
error_map.update(kwargs.pop('error_map', {}))
83-
api_version = "2021-04-05-preview6"
83+
api_version = "2021-09-07"
8484
content_type = kwargs.pop("content_type", "application/json")
8585
accept = "application/json"
8686

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

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

243243
# Construct URL

sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def list_chat_read_receipts(
7878
503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)),
7979
}
8080
error_map.update(kwargs.pop('error_map', {}))
81-
api_version = "2021-04-05-preview6"
81+
api_version = "2021-09-07"
8282
accept = "application/json"
8383

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

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

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

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

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

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

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

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

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

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

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

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

sdk/communication/azure-communication-chat/swagger/SWAGGER.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ autorest SWAGGER.md
1616
### Settings
1717

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

0 commit comments

Comments
 (0)