Skip to content

Commit a51127d

Browse files
azure-sdkChenxiJiang333msyyc
authored
[AutoRelease] t2-communication-2024-02-28-44167(can only be merged by SDK owner) (#34493)
* code and test * Update assets.json * Update assets.json * fix live test * Update setup.py --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: msyyc <[email protected]>
1 parent 400c0c2 commit a51127d

File tree

74 files changed

+96
-5719
lines changed

Some content is hidden

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

74 files changed

+96
-5719
lines changed

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

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

3+
## 2.1.0 (2024-03-18)
4+
5+
### Features Added
6+
7+
- Model CommunicationServiceResource has a new parameter identity
8+
- Model CommunicationServiceResourceUpdate has a new parameter identity
9+
310
## 2.1.0b2 (2023-12-18)
411

512
### Features Added

sdk/communication/azure-mgmt-communication/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

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

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

1313
### Prerequisites
1414

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

1818
### Install the package
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "0dd49a444195fef7f3555cad038cb7665cbd928c",
2+
"commit": "3fb13fb1eeb2e0fac532e241de516550d3b65ee8",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [
66
"@autorest/[email protected]",
77
"@autorest/[email protected]"
88
],
9-
"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/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
9+
"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/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
1010
"readme": "specification/communication/resource-manager/readme.md"
1111
}

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

Lines changed: 2 additions & 2 deletions
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-mgmt-communication",
5-
"Tag": "python/communication/azure-mgmt-communication_0841c8df2d"
6-
}
5+
"Tag": "python/communication/azure-mgmt-communication_1245c1c24a"
6+
}

sdk/communication/azure-mgmt-communication/azure/mgmt/communication/_communication_service_management_client.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@
2121
EmailServicesOperations,
2222
Operations,
2323
SenderUsernamesOperations,
24-
SuppressionListAddressesOperations,
25-
SuppressionListsOperations,
2624
)
2725

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

3230

33-
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
31+
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword
3432
"""REST API for Azure Communication Services.
3533
3634
:ivar operations: Operations operations
@@ -44,19 +42,14 @@ class CommunicationServiceManagementClient: # pylint: disable=client-accepts-ap
4442
:vartype email_services: azure.mgmt.communication.operations.EmailServicesOperations
4543
:ivar sender_usernames: SenderUsernamesOperations operations
4644
:vartype sender_usernames: azure.mgmt.communication.operations.SenderUsernamesOperations
47-
:ivar suppression_lists: SuppressionListsOperations operations
48-
:vartype suppression_lists: azure.mgmt.communication.operations.SuppressionListsOperations
49-
:ivar suppression_list_addresses: SuppressionListAddressesOperations operations
50-
:vartype suppression_list_addresses:
51-
azure.mgmt.communication.operations.SuppressionListAddressesOperations
5245
:param credential: Credential needed for the client to connect to Azure. Required.
5346
:type credential: ~azure.core.credentials.TokenCredential
5447
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
5548
:type subscription_id: str
5649
:param base_url: Service URL. Default value is "https://management.azure.com".
5750
:type base_url: str
58-
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
59-
this default value may result in unsupported behavior.
51+
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
52+
default value may result in unsupported behavior.
6053
:paramtype api_version: str
6154
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6255
Retry-After header is present.
@@ -87,12 +80,6 @@ def __init__(
8780
self.sender_usernames = SenderUsernamesOperations(
8881
self._client, self._config, self._serialize, self._deserialize
8982
)
90-
self.suppression_lists = SuppressionListsOperations(
91-
self._client, self._config, self._serialize, self._deserialize
92-
)
93-
self.suppression_list_addresses = SuppressionListAddressesOperations(
94-
self._client, self._config, self._serialize, self._deserialize
95-
)
9683

9784
def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
9885
"""Runs the network request through the client's chained policies.

sdk/communication/azure-mgmt-communication/azure/mgmt/communication/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ class CommunicationServiceManagementClientConfiguration(Configuration): # pylin
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
33-
this default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
33+
default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

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

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

sdk/communication/azure-mgmt-communication/azure/mgmt/communication/_metadata.json

Lines changed: 0 additions & 63 deletions
This file was deleted.

sdk/communication/azure-mgmt-communication/azure/mgmt/communication/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.1.0b2"
9+
VERSION = "2.1.0"

sdk/communication/azure-mgmt-communication/azure/mgmt/communication/aio/_communication_service_management_client.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@
2121
EmailServicesOperations,
2222
Operations,
2323
SenderUsernamesOperations,
24-
SuppressionListAddressesOperations,
25-
SuppressionListsOperations,
2624
)
2725

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

3230

33-
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
31+
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword
3432
"""REST API for Azure Communication Services.
3533
3634
:ivar operations: Operations operations
@@ -44,19 +42,14 @@ class CommunicationServiceManagementClient: # pylint: disable=client-accepts-ap
4442
:vartype email_services: azure.mgmt.communication.aio.operations.EmailServicesOperations
4543
:ivar sender_usernames: SenderUsernamesOperations operations
4644
:vartype sender_usernames: azure.mgmt.communication.aio.operations.SenderUsernamesOperations
47-
:ivar suppression_lists: SuppressionListsOperations operations
48-
:vartype suppression_lists: azure.mgmt.communication.aio.operations.SuppressionListsOperations
49-
:ivar suppression_list_addresses: SuppressionListAddressesOperations operations
50-
:vartype suppression_list_addresses:
51-
azure.mgmt.communication.aio.operations.SuppressionListAddressesOperations
5245
:param credential: Credential needed for the client to connect to Azure. Required.
5346
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
5447
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
5548
:type subscription_id: str
5649
:param base_url: Service URL. Default value is "https://management.azure.com".
5750
:type base_url: str
58-
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
59-
this default value may result in unsupported behavior.
51+
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
52+
default value may result in unsupported behavior.
6053
:paramtype api_version: str
6154
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6255
Retry-After header is present.
@@ -87,12 +80,6 @@ def __init__(
8780
self.sender_usernames = SenderUsernamesOperations(
8881
self._client, self._config, self._serialize, self._deserialize
8982
)
90-
self.suppression_lists = SuppressionListsOperations(
91-
self._client, self._config, self._serialize, self._deserialize
92-
)
93-
self.suppression_list_addresses = SuppressionListAddressesOperations(
94-
self._client, self._config, self._serialize, self._deserialize
95-
)
9683

9784
def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
9885
"""Runs the network request through the client's chained policies.

sdk/communication/azure-mgmt-communication/azure/mgmt/communication/aio/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ class CommunicationServiceManagementClientConfiguration(Configuration): # pylin
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3030
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
33-
this default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
33+
default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

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

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

0 commit comments

Comments
 (0)