Skip to content

Commit 67941f8

Browse files
author
SDKAuto
committed
CodeGen from PR 15864 in Azure/azure-rest-api-specs
Merge 7a3ef8b3787608dec68648704eab6a86ee266172 into 6223e02
1 parent fd80cb7 commit 67941f8

21 files changed

+474
-58
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.4.2",
2+
"autorest": "3.4.5",
33
"use": [
4-
"@autorest/[email protected].0",
5-
"@autorest/[email protected].1"
4+
"@autorest/[email protected].4",
5+
"@autorest/[email protected].2"
66
],
7-
"commit": "74c8e0649bf06efe190743fa091bb71e23f5b3e1",
7+
"commit": "b8aad62696a1dd30867662e975b056ff59a91fb5",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/signalr/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].0 --use=@autorest/[email protected].1 --version=3.4.2",
9+
"autorest_command": "autorest specification/signalr/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].4 --use=@autorest/[email protected].2 --version=3.4.5",
1010
"readme": "specification/signalr/resource-manager/readme.md"
1111
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-04-01-preview",
3-
"total_api_version_list": ["2021-04-01-preview"],
2+
"chosen_version": "2021-09-01-preview",
3+
"total_api_version_list": ["2021-09-01-preview"],
44
"client": {
55
"name": "SignalRManagementClient",
66
"filename": "_signal_rmanagement_client",

sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/_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.0b2"
9+
VERSION = "1.0.0b1"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

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

sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def list(
5757
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
5858
}
5959
error_map.update(kwargs.pop('error_map', {}))
60-
api_version = "2021-04-01-preview"
60+
api_version = "2021-09-01-preview"
6161
accept = "application/json"
6262

6363
def prepare_request(next_link=None):

sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/aio/operations/_signal_r_operations.py

Lines changed: 70 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def check_name_availability(
6565
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6666
}
6767
error_map.update(kwargs.pop('error_map', {}))
68-
api_version = "2021-04-01-preview"
68+
api_version = "2021-09-01-preview"
6969
content_type = kwargs.pop("content_type", "application/json")
7070
accept = "application/json"
7171

@@ -122,7 +122,7 @@ def list_by_subscription(
122122
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
123123
}
124124
error_map.update(kwargs.pop('error_map', {}))
125-
api_version = "2021-04-01-preview"
125+
api_version = "2021-09-01-preview"
126126
accept = "application/json"
127127

128128
def prepare_request(next_link=None):
@@ -193,7 +193,7 @@ def list_by_resource_group(
193193
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
194194
}
195195
error_map.update(kwargs.pop('error_map', {}))
196-
api_version = "2021-04-01-preview"
196+
api_version = "2021-09-01-preview"
197197
accept = "application/json"
198198

199199
def prepare_request(next_link=None):
@@ -268,7 +268,7 @@ async def get(
268268
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
269269
}
270270
error_map.update(kwargs.pop('error_map', {}))
271-
api_version = "2021-04-01-preview"
271+
api_version = "2021-09-01-preview"
272272
accept = "application/json"
273273

274274
# Construct URL
@@ -317,7 +317,7 @@ async def _create_or_update_initial(
317317
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
318318
}
319319
error_map.update(kwargs.pop('error_map', {}))
320-
api_version = "2021-04-01-preview"
320+
api_version = "2021-09-01-preview"
321321
content_type = kwargs.pop("content_type", "application/json")
322322
accept = "application/json"
323323

@@ -447,7 +447,7 @@ async def _delete_initial(
447447
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
448448
}
449449
error_map.update(kwargs.pop('error_map', {}))
450-
api_version = "2021-04-01-preview"
450+
api_version = "2021-09-01-preview"
451451
accept = "application/json"
452452

453453
# Construct URL
@@ -558,7 +558,7 @@ async def _update_initial(
558558
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
559559
}
560560
error_map.update(kwargs.pop('error_map', {}))
561-
api_version = "2021-04-01-preview"
561+
api_version = "2021-09-01-preview"
562562
content_type = kwargs.pop("content_type", "application/json")
563563
accept = "application/json"
564564

@@ -697,7 +697,7 @@ async def list_keys(
697697
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
698698
}
699699
error_map.update(kwargs.pop('error_map', {}))
700-
api_version = "2021-04-01-preview"
700+
api_version = "2021-09-01-preview"
701701
accept = "application/json"
702702

703703
# Construct URL
@@ -746,7 +746,7 @@ async def _regenerate_key_initial(
746746
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
747747
}
748748
error_map.update(kwargs.pop('error_map', {}))
749-
api_version = "2021-04-01-preview"
749+
api_version = "2021-09-01-preview"
750750
content_type = kwargs.pop("content_type", "application/json")
751751
accept = "application/json"
752752

@@ -872,7 +872,7 @@ async def _restart_initial(
872872
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
873873
}
874874
error_map.update(kwargs.pop('error_map', {}))
875-
api_version = "2021-04-01-preview"
875+
api_version = "2021-09-01-preview"
876876
accept = "application/json"
877877

878878
# Construct URL
@@ -970,3 +970,63 @@ def get_long_running_output(pipeline_response):
970970
else:
971971
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
972972
begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart'} # type: ignore
973+
974+
async def list_skus(
975+
self,
976+
resource_group_name: str,
977+
resource_name: str,
978+
**kwargs: Any
979+
) -> "_models.SkuList":
980+
"""List all available skus of the resource.
981+
982+
:param resource_group_name: The name of the resource group that contains the resource. You can
983+
obtain this value from the Azure Resource Manager API or the portal.
984+
:type resource_group_name: str
985+
:param resource_name: The name of the resource.
986+
:type resource_name: str
987+
:keyword callable cls: A custom type or function that will be passed the direct response
988+
:return: SkuList, or the result of cls(response)
989+
:rtype: ~azure.mgmt.signalr.models.SkuList
990+
:raises: ~azure.core.exceptions.HttpResponseError
991+
"""
992+
cls = kwargs.pop('cls', None) # type: ClsType["_models.SkuList"]
993+
error_map = {
994+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
995+
}
996+
error_map.update(kwargs.pop('error_map', {}))
997+
api_version = "2021-09-01-preview"
998+
accept = "application/json"
999+
1000+
# Construct URL
1001+
url = self.list_skus.metadata['url'] # type: ignore
1002+
path_format_arguments = {
1003+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
1004+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
1005+
'resourceName': self._serialize.url("resource_name", resource_name, 'str'),
1006+
}
1007+
url = self._client.format_url(url, **path_format_arguments)
1008+
1009+
# Construct parameters
1010+
query_parameters = {} # type: Dict[str, Any]
1011+
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
1012+
1013+
# Construct headers
1014+
header_parameters = {} # type: Dict[str, Any]
1015+
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
1016+
1017+
request = self._client.get(url, query_parameters, header_parameters)
1018+
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
1019+
response = pipeline_response.http_response
1020+
1021+
if response.status_code not in [200]:
1022+
map_error(status_code=response.status_code, response=response, error_map=error_map)
1023+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
1024+
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
1025+
1026+
deserialized = self._deserialize('SkuList', pipeline_response)
1027+
1028+
if cls:
1029+
return cls(pipeline_response, deserialized, {})
1030+
1031+
return deserialized
1032+
list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/skus'} # type: ignore

sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/aio/operations/_signal_rprivate_endpoint_connections_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def list(
6666
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6767
}
6868
error_map.update(kwargs.pop('error_map', {}))
69-
api_version = "2021-04-01-preview"
69+
api_version = "2021-09-01-preview"
7070
accept = "application/json"
7171

7272
def prepare_request(next_link=None):
@@ -145,7 +145,7 @@ async def get(
145145
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
146146
}
147147
error_map.update(kwargs.pop('error_map', {}))
148-
api_version = "2021-04-01-preview"
148+
api_version = "2021-09-01-preview"
149149
accept = "application/json"
150150

151151
# Construct URL
@@ -212,7 +212,7 @@ async def update(
212212
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
213213
}
214214
error_map.update(kwargs.pop('error_map', {}))
215-
api_version = "2021-04-01-preview"
215+
api_version = "2021-09-01-preview"
216216
content_type = kwargs.pop("content_type", "application/json")
217217
accept = "application/json"
218218

@@ -267,7 +267,7 @@ async def _delete_initial(
267267
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
268268
}
269269
error_map.update(kwargs.pop('error_map', {}))
270-
api_version = "2021-04-01-preview"
270+
api_version = "2021-09-01-preview"
271271
accept = "application/json"
272272

273273
# Construct URL

sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/aio/operations/_signal_rprivate_link_resources_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def list(
6464
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6565
}
6666
error_map.update(kwargs.pop('error_map', {}))
67-
api_version = "2021-04-01-preview"
67+
api_version = "2021-09-01-preview"
6868
accept = "application/json"
6969

7070
def prepare_request(next_link=None):

sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/aio/operations/_signal_rshared_private_link_resources_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def list(
6666
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6767
}
6868
error_map.update(kwargs.pop('error_map', {}))
69-
api_version = "2021-04-01-preview"
69+
api_version = "2021-09-01-preview"
7070
accept = "application/json"
7171

7272
def prepare_request(next_link=None):
@@ -145,7 +145,7 @@ async def get(
145145
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
146146
}
147147
error_map.update(kwargs.pop('error_map', {}))
148-
api_version = "2021-04-01-preview"
148+
api_version = "2021-09-01-preview"
149149
accept = "application/json"
150150

151151
# Construct URL
@@ -196,7 +196,7 @@ async def _create_or_update_initial(
196196
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
197197
}
198198
error_map.update(kwargs.pop('error_map', {}))
199-
api_version = "2021-04-01-preview"
199+
api_version = "2021-09-01-preview"
200200
content_type = kwargs.pop("content_type", "application/json")
201201
accept = "application/json"
202202

@@ -332,7 +332,7 @@ async def _delete_initial(
332332
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
333333
}
334334
error_map.update(kwargs.pop('error_map', {}))
335-
api_version = "2021-04-01-preview"
335+
api_version = "2021-09-01-preview"
336336
accept = "application/json"
337337

338338
# Construct URL

0 commit comments

Comments
 (0)