Skip to content

Commit b4a508b

Browse files
authored
Updating Rooms to include Collaborator Role. (#39788)
* Updating Rooms collaborator Role * Updating Rooms collaborator Role * updating sample and tests * updating sample and tests * updating sample and tests * updating tests * updating tests * updating api version * updating change log to the correct version
1 parent c98f1c9 commit b4a508b

25 files changed

+584
-728
lines changed

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

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Release History
22

3-
## 1.1.2 (Unreleased)
3+
## 1.2.0 (2025-03-13)
44

55
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
6+
- General Availability version of participant Collaborator role.
127

138
## 1.1.1 (2024-12-10)
149
- Update azure-code dependency

sdk/communication/azure-communication-rooms/assets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/communication/azure-communication-rooms",
5-
"Tag": "python/communication/azure-communication-rooms_8232264a76"
5+
"Tag": "python/communication/azure-communication-rooms_b02b86defa"
66
}

sdk/communication/azure-communication-rooms/azure/communication/rooms/_api_versions.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1111
V2023_06_14 = "2023-06-14"
1212
V2024_04_15 = "2024-04-15"
13+
V2025_03_13 = "2025-03-13"
1314

1415

15-
DEFAULT_VERSION = ApiVersion.V2024_04_15
16+
DEFAULT_VERSION = ApiVersion.V2025_03_13
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.7, generator: @autorest/python@6.13.7)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.7, generator: @autorest/python@6.28.4)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
6+
# pylint: disable=wrong-import-position
67

7-
from ._client import AzureCommunicationRoomsService
8+
from typing import TYPE_CHECKING
9+
10+
if TYPE_CHECKING:
11+
from ._patch import * # pylint: disable=unused-wildcard-import
12+
13+
from ._client import AzureCommunicationRoomsService # type: ignore
814

915
try:
1016
from ._patch import __all__ as _patch_all
11-
from ._patch import * # pylint: disable=unused-wildcard-import
17+
from ._patch import *
1218
except ImportError:
1319
_patch_all = []
1420
from ._patch import patch_sdk as _patch_sdk
1521

1622
__all__ = [
1723
"AzureCommunicationRoomsService",
1824
]
19-
__all__.extend([p for p in _patch_all if p not in __all__])
25+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2026

2127
_patch_sdk()

sdk/communication/azure-communication-rooms/azure/communication/rooms/_generated/_client.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.7, generator: @autorest/python@6.13.7)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.7, generator: @autorest/python@6.28.4)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

77
from copy import deepcopy
88
from typing import Any
9+
from typing_extensions import Self
910

1011
from azure.core import PipelineClient
1112
from azure.core.pipeline import policies
@@ -16,7 +17,7 @@
1617
from .operations import ParticipantsOperations, RoomsOperations
1718

1819

19-
class AzureCommunicationRoomsService: # pylint: disable=client-accepts-api-version-keyword
20+
class AzureCommunicationRoomsService:
2021
"""Azure Communication Room Service.
2122
2223
:ivar rooms: RoomsOperations operations
@@ -25,7 +26,7 @@ class AzureCommunicationRoomsService: # pylint: disable=client-accepts-api-vers
2526
:vartype participants: azure.communication.rooms.operations.ParticipantsOperations
2627
:param endpoint: The endpoint of the Azure Communication resource. Required.
2728
:type endpoint: str
28-
:keyword api_version: Api Version. Default value is "2024-04-15". Note that overriding this
29+
:keyword api_version: Api Version. Default value is "2025-03-13". Note that overriding this
2930
default value may result in unsupported behavior.
3031
:paramtype api_version: str
3132
"""
@@ -89,7 +90,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
8990
def close(self) -> None:
9091
self._client.close()
9192

92-
def __enter__(self) -> "AzureCommunicationRoomsService":
93+
def __enter__(self) -> Self:
9394
self._client.__enter__()
9495
return self
9596

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.7, generator: @autorest/python@6.13.7)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.7, generator: @autorest/python@6.28.4)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

@@ -19,13 +19,13 @@ class AzureCommunicationRoomsServiceConfiguration: # pylint: disable=too-many-i
1919
2020
:param endpoint: The endpoint of the Azure Communication resource. Required.
2121
:type endpoint: str
22-
:keyword api_version: Api Version. Default value is "2024-04-15". Note that overriding this
22+
:keyword api_version: Api Version. Default value is "2025-03-13". Note that overriding this
2323
default value may result in unsupported behavior.
2424
:paramtype api_version: str
2525
"""
2626

2727
def __init__(self, endpoint: str, **kwargs: Any) -> None:
28-
api_version: str = kwargs.pop("api_version", "2024-04-15")
28+
api_version: str = kwargs.pop("api_version", "2025-03-13")
2929

3030
if endpoint is None:
3131
raise ValueError("Parameter 'endpoint' must not be None.")

sdk/communication/azure-communication-rooms/azure/communication/rooms/_generated/_patch.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) Microsoft Corporation.
33
# Licensed under the MIT License.
44
# ------------------------------------
5+
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

0 commit comments

Comments
 (0)