Skip to content

Commit 43fbda0

Browse files
SDKAutoYan Zhang (WICRESOFT NORTH AMERICA LTD)
SDKAuto
and
Yan Zhang (WICRESOFT NORTH AMERICA LTD)
committed
CodeGen from PR 13662 in Azure/azure-rest-api-specs
communication only track2 configure (Azure#13662) Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) <[email protected]>
1 parent e1a2f6e commit 43fbda0

16 files changed

+885
-616
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CommunicationServiceManagementClient(object):
3535
:vartype operation_statuses: communication_service_management_client.operations.OperationStatusesOperations
3636
:param credential: Credential needed for the client to connect to Azure.
3737
:type credential: ~azure.core.credentials.TokenCredential
38-
:param subscription_id: Gets subscription ID which uniquely identifies the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
38+
:param subscription_id: The ID of the target subscription.
3939
:type subscription_id: str
4040
:param str base_url: Service URL
4141
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
@@ -56,6 +56,7 @@ def __init__(
5656

5757
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
5858
self._serialize = Serializer(client_models)
59+
self._serialize.client_side_validation = False
5960
self._deserialize = Deserializer(client_models)
6061

6162
self.operations = Operations(

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,7 +29,7 @@ class CommunicationServiceManagementClientConfiguration(Configuration):
2929
3030
:param credential: Credential needed for the client to connect to Azure.
3131
:type credential: ~azure.core.credentials.TokenCredential
32-
:param subscription_id: Gets subscription ID which uniquely identifies the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
32+
:param subscription_id: The ID of the target subscription.
3333
:type subscription_id: str
3434
"""
3535

@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2020-08-20-preview"
51+
self.api_version = "2020-08-20"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-communication/{}'.format(VERSION))
5454
self._configure(**kwargs)

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
{
2-
"chosen_version": "2020-08-20-preview",
3-
"total_api_version_list": ["2020-08-20-preview"],
2+
"chosen_version": "2020-08-20",
3+
"total_api_version_list": ["2020-08-20"],
44
"client": {
55
"name": "CommunicationServiceManagementClient",
66
"filename": "_communication_service_management_client",
77
"description": "REST API for Azure Communication Services.",
88
"base_url": "\u0027https://management.azure.com\u0027",
99
"custom_base_url": null,
1010
"azure_arm": true,
11-
"has_lro_operations": true
11+
"has_lro_operations": true,
12+
"client_side_validation": false
1213
},
1314
"global_parameters": {
14-
"sync_method": {
15+
"sync": {
1516
"credential": {
16-
"method_signature": "credential, # type: \"TokenCredential\"",
17+
"signature": "credential, # type: \"TokenCredential\"",
1718
"description": "Credential needed for the client to connect to Azure.",
1819
"docstring_type": "~azure.core.credentials.TokenCredential",
1920
"required": true
2021
},
2122
"subscription_id": {
22-
"method_signature": "subscription_id, # type: str",
23-
"description": "Gets subscription ID which uniquely identifies the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
23+
"signature": "subscription_id, # type: str",
24+
"description": "The ID of the target subscription.",
2425
"docstring_type": "str",
2526
"required": true
2627
}
2728
},
28-
"async_method": {
29+
"async": {
2930
"credential": {
30-
"method_signature": "credential, # type: \"AsyncTokenCredential\"",
31+
"signature": "credential, # type: \"AsyncTokenCredential\"",
3132
"description": "Credential needed for the client to connect to Azure.",
3233
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
3334
"required": true
3435
},
3536
"subscription_id": {
36-
"method_signature": "subscription_id, # type: str",
37-
"description": "Gets subscription ID which uniquely identifies the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
37+
"signature": "subscription_id, # type: str",
38+
"description": "The ID of the target subscription.",
3839
"docstring_type": "str",
3940
"required": true
4041
}

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 = "1.0.0b5"
9+
VERSION = "1.0.0"

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class CommunicationServiceManagementClient(object):
3333
:vartype operation_statuses: communication_service_management_client.aio.operations.OperationStatusesOperations
3434
:param credential: Credential needed for the client to connect to Azure.
3535
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
36-
:param subscription_id: Gets subscription ID which uniquely identifies the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
36+
:param subscription_id: The ID of the target subscription.
3737
:type subscription_id: str
3838
:param str base_url: Service URL
3939
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
@@ -53,6 +53,7 @@ def __init__(
5353

5454
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
5555
self._serialize = Serializer(client_models)
56+
self._serialize.client_side_validation = False
5657
self._deserialize = Deserializer(client_models)
5758

5859
self.operations = Operations(

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
@@ -27,7 +27,7 @@ class CommunicationServiceManagementClientConfiguration(Configuration):
2727
2828
:param credential: Credential needed for the client to connect to Azure.
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
30-
:param subscription_id: Gets subscription ID which uniquely identifies the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
30+
:param subscription_id: The ID of the target subscription.
3131
:type subscription_id: str
3232
"""
3333

@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2020-08-20-preview"
48+
self.api_version = "2020-08-20"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-communication/{}'.format(VERSION))
5151
self._configure(**kwargs)

0 commit comments

Comments
 (0)