Skip to content

Commit dff3077

Browse files
[AutoRelease] t2-communication-2023-11-15-90986(can only be merged by SDK owner) (#33175)
* code and test * update-test-case * Update assets.json * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent cda1adf commit dff3077

File tree

67 files changed

+3149
-79
lines changed

Some content is hidden

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

67 files changed

+3149
-79
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.0b2 (2023-12-18)
4+
5+
### Features Added
6+
7+
- Added operation group SuppressionListAddressesOperations
8+
- Added operation group SuppressionListsOperations
9+
310
## 2.1.0b1 (2023-09-19)
411

512
### Features Added

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,3 @@ Code samples for this package can be found at:
5959
If you encounter any bugs or have suggestions, please file an issue in the
6060
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
6161
section of the project.
62-
63-
64-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-communication%2FREADME.png)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "5dd1107d5f2be8d600325d795450e1d854fbe7e8",
2+
"commit": "0dd49a444195fef7f3555cad038cb7665cbd928c",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"AssetsRepo": "Azure/azure-sdk-assets",
3+
"AssetsRepoPrefixPath": "python",
4+
"TagPrefix": "python/communication/azure-mgmt-communication",
5+
"Tag": "python/communication/azure-mgmt-communication_0841c8df2d"
6+
}

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

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

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

3032

31-
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword
33+
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
3234
"""REST API for Azure Communication Services.
3335
3436
:ivar operations: Operations operations
@@ -42,13 +44,18 @@ class CommunicationServiceManagementClient: # pylint: disable=client-accepts-ap
4244
:vartype email_services: azure.mgmt.communication.operations.EmailServicesOperations
4345
:ivar sender_usernames: SenderUsernamesOperations operations
4446
: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
4552
:param credential: Credential needed for the client to connect to Azure. Required.
4653
:type credential: ~azure.core.credentials.TokenCredential
4754
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
4855
:type subscription_id: str
4956
:param base_url: Service URL. Default value is "https://management.azure.com".
5057
:type base_url: str
51-
:keyword api_version: Api Version. Default value is "2023-04-01-preview". Note that overriding
58+
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
5259
this default value may result in unsupported behavior.
5360
:paramtype api_version: str
5461
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -80,6 +87,12 @@ def __init__(
8087
self.sender_usernames = SenderUsernamesOperations(
8188
self._client, self._config, self._serialize, self._deserialize
8289
)
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+
)
8396

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

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

Lines changed: 2 additions & 2 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-04-01-preview". Note that overriding
32+
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
3333
this 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-04-01-preview")
39+
api_version: str = kwargs.pop("api_version", "2023-06-01-preview")
4040

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

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.0b1"
9+
VERSION = "2.1.0b2"

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

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

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

3032

31-
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword
33+
class CommunicationServiceManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
3234
"""REST API for Azure Communication Services.
3335
3436
:ivar operations: Operations operations
@@ -42,13 +44,18 @@ class CommunicationServiceManagementClient: # pylint: disable=client-accepts-ap
4244
:vartype email_services: azure.mgmt.communication.aio.operations.EmailServicesOperations
4345
:ivar sender_usernames: SenderUsernamesOperations operations
4446
: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
4552
:param credential: Credential needed for the client to connect to Azure. Required.
4653
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
4754
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
4855
:type subscription_id: str
4956
:param base_url: Service URL. Default value is "https://management.azure.com".
5057
:type base_url: str
51-
:keyword api_version: Api Version. Default value is "2023-04-01-preview". Note that overriding
58+
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
5259
this default value may result in unsupported behavior.
5360
:paramtype api_version: str
5461
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -80,6 +87,12 @@ def __init__(
8087
self.sender_usernames = SenderUsernamesOperations(
8188
self._client, self._config, self._serialize, self._deserialize
8289
)
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+
)
8396

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

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

Lines changed: 2 additions & 2 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-04-01-preview". Note that overriding
32+
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
3333
this 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-04-01-preview")
39+
api_version: str = kwargs.pop("api_version", "2023-06-01-preview")
4040

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

sdk/communication/azure-mgmt-communication/azure/mgmt/communication/aio/operations/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
from ._domains_operations import DomainsOperations
1212
from ._email_services_operations import EmailServicesOperations
1313
from ._sender_usernames_operations import SenderUsernamesOperations
14+
from ._suppression_lists_operations import SuppressionListsOperations
15+
from ._suppression_list_addresses_operations import SuppressionListAddressesOperations
1416

1517
from ._patch import __all__ as _patch_all
1618
from ._patch import * # pylint: disable=unused-wildcard-import
@@ -22,6 +24,8 @@
2224
"DomainsOperations",
2325
"EmailServicesOperations",
2426
"SenderUsernamesOperations",
27+
"SuppressionListsOperations",
28+
"SuppressionListAddressesOperations",
2529
]
2630
__all__.extend([p for p in _patch_all if p not in __all__])
2731
_patch_sdk()

0 commit comments

Comments
 (0)