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

[AutoRelease] t2-communication-2024-02-28-44167(can only be merged by SDK owner) #34493

Merged
Merged
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
7 changes: 7 additions & 0 deletions sdk/communication/azure-mgmt-communication/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release History

## 2.1.0 (2024-03-18)

### Features Added

- Model CommunicationServiceResource has a new parameter identity
- Model CommunicationServiceResourceUpdate has a new parameter identity

## 2.1.0b2 (2023-12-18)

### Features Added
Expand Down
4 changes: 2 additions & 2 deletions sdk/communication/azure-mgmt-communication/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Communication Management Client Library.
This package has been tested with Python 3.7+.
This package has been tested with Python 3.8+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_
Expand All @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For

### Prerequisites

- Python 3.7+ is required to use this package.
- Python 3.8+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand Down
4 changes: 2 additions & 2 deletions sdk/communication/azure-mgmt-communication/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "0dd49a444195fef7f3555cad038cb7665cbd928c",
"commit": "3fb13fb1eeb2e0fac532e241de516550d3b65ee8",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
],
"autorest_command": "autorest specification/communication/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/communication/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --tag=package-2023-04 --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"readme": "specification/communication/resource-manager/readme.md"
}
4 changes: 2 additions & 2 deletions sdk/communication/azure-mgmt-communication/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-mgmt-communication",
"Tag": "python/communication/azure-mgmt-communication_0841c8df2d"
}
"Tag": "python/communication/azure-mgmt-communication_1245c1c24a"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@
EmailServicesOperations,
Operations,
SenderUsernamesOperations,
SuppressionListAddressesOperations,
SuppressionListsOperations,
)

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword
"""REST API for Azure Communication Services.

:ivar operations: Operations operations
Expand All @@ -44,19 +42,14 @@ class CommunicationServiceManagementClient: # pylint: disable=client-accepts-ap
:vartype email_services: azure.mgmt.communication.operations.EmailServicesOperations
:ivar sender_usernames: SenderUsernamesOperations operations
:vartype sender_usernames: azure.mgmt.communication.operations.SenderUsernamesOperations
:ivar suppression_lists: SuppressionListsOperations operations
:vartype suppression_lists: azure.mgmt.communication.operations.SuppressionListsOperations
:ivar suppression_list_addresses: SuppressionListAddressesOperations operations
:vartype suppression_list_addresses:
azure.mgmt.communication.operations.SuppressionListAddressesOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -87,12 +80,6 @@ def __init__(
self.sender_usernames = SenderUsernamesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.suppression_lists = SuppressionListsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.suppression_list_addresses = SuppressionListAddressesOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class CommunicationServiceManagementClientConfiguration(Configuration): # pylin
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(CommunicationServiceManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-06-01-preview")
api_version: str = kwargs.pop("api_version", "2023-04-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0b2"
VERSION = "2.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@
EmailServicesOperations,
Operations,
SenderUsernamesOperations,
SuppressionListAddressesOperations,
SuppressionListsOperations,
)

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential


class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword
"""REST API for Azure Communication Services.

:ivar operations: Operations operations
Expand All @@ -44,19 +42,14 @@ class CommunicationServiceManagementClient: # pylint: disable=client-accepts-ap
:vartype email_services: azure.mgmt.communication.aio.operations.EmailServicesOperations
:ivar sender_usernames: SenderUsernamesOperations operations
:vartype sender_usernames: azure.mgmt.communication.aio.operations.SenderUsernamesOperations
:ivar suppression_lists: SuppressionListsOperations operations
:vartype suppression_lists: azure.mgmt.communication.aio.operations.SuppressionListsOperations
:ivar suppression_list_addresses: SuppressionListAddressesOperations operations
:vartype suppression_list_addresses:
azure.mgmt.communication.aio.operations.SuppressionListAddressesOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -87,12 +80,6 @@ def __init__(
self.sender_usernames = SenderUsernamesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.suppression_lists = SuppressionListsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.suppression_list_addresses = SuppressionListAddressesOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class CommunicationServiceManagementClientConfiguration(Configuration): # pylin
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(CommunicationServiceManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-06-01-preview")
api_version: str = kwargs.pop("api_version", "2023-04-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from ._domains_operations import DomainsOperations
from ._email_services_operations import EmailServicesOperations
from ._sender_usernames_operations import SenderUsernamesOperations
from ._suppression_lists_operations import SuppressionListsOperations
from ._suppression_list_addresses_operations import SuppressionListAddressesOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand All @@ -24,8 +22,6 @@
"DomainsOperations",
"EmailServicesOperations",
"SenderUsernamesOperations",
"SuppressionListsOperations",
"SuppressionListAddressesOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Loading