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

Updating Rooms to include Collaborator Role. #39788

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion sdk/communication/azure-communication-rooms/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "python",
"TagPrefix": "python/communication/azure-communication-rooms",
"Tag": "python/communication/azure-communication-rooms_8232264a76"
"Tag": "python/communication/azure-communication-rooms_eb8f5163a4"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
V2023_06_14 = "2023-06-14"
V2024_04_15 = "2024-04-15"
V2025_03_07 = "2025-03-07"


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

from ._client import AzureCommunicationRoomsService
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._client import AzureCommunicationRoomsService # type: ignore

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AzureCommunicationRoomsService",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

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

from copy import deepcopy
from typing import Any
from typing_extensions import Self

from azure.core import PipelineClient
from azure.core.pipeline import policies
Expand All @@ -16,7 +17,7 @@
from .operations import ParticipantsOperations, RoomsOperations


class AzureCommunicationRoomsService: # pylint: disable=client-accepts-api-version-keyword
class AzureCommunicationRoomsService:
"""Azure Communication Room Service.

:ivar rooms: RoomsOperations operations
Expand All @@ -25,7 +26,7 @@ class AzureCommunicationRoomsService: # pylint: disable=client-accepts-api-vers
:vartype participants: azure.communication.rooms.operations.ParticipantsOperations
:param endpoint: The endpoint of the Azure Communication resource. Required.
:type endpoint: str
:keyword api_version: Api Version. Default value is "2024-04-15". Note that overriding this
:keyword api_version: Api Version. Default value is "2025-03-07". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand Down Expand Up @@ -89,7 +90,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
def close(self) -> None:
self._client.close()

def __enter__(self) -> "AzureCommunicationRoomsService":
def __enter__(self) -> Self:
self._client.__enter__()
return self

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

Expand All @@ -19,13 +19,13 @@ class AzureCommunicationRoomsServiceConfiguration: # pylint: disable=too-many-i

:param endpoint: The endpoint of the Azure Communication resource. Required.
:type endpoint: str
:keyword api_version: Api Version. Default value is "2024-04-15". Note that overriding this
:keyword api_version: Api Version. Default value is "2025-03-07". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

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

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------

"""Customize generated code here.
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
Expand Down
Loading