Skip to content

Commit 0c95e03

Browse files
author
SDKAuto
committed
CodeGen from PR 15406 in Azure/azure-rest-api-specs
Merge c6fca61200efee8d63f7b3b64d3a6a4b80eba87b into 88e7838
1 parent e9f8c6a commit 0c95e03

21 files changed

+235
-261
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.3.0",
3-
"use": "@autorest/[email protected]",
4-
"commit": "a4f67651dcaef459afabb647a05a45a5fbb72ffe",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "e198df86d6cf230252e39b77a370d537e4b3b736",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/webpubsub/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/python@5.6.6 --version=3.3.0",
9+
"autorest_command": "autorest specification/webpubsub/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/python@5.8.4 --use=@autorest/[email protected] --version=3.4.5",
710
"readme": "specification/webpubsub/resource-manager/readme.md"
811
}

sdk/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/_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-06-01-preview"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-webpubsub/{}'.format(VERSION))
5454
self._configure(**kwargs)

sdk/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/_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-06-01-preview",
3+
"total_api_version_list": ["2021-06-01-preview"],
44
"client": {
55
"name": "WebPubSubManagementClient",
66
"filename": "_web_pub_sub_management_client",

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

sdk/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/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-06-01-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-webpubsub/{}'.format(VERSION))
5151
self._configure(**kwargs)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4343

4444
def list(
4545
self,
46-
**kwargs
46+
**kwargs: Any
4747
) -> AsyncIterable["_models.OperationList"]:
4848
"""Lists all of the available REST API operations of the Microsoft.SignalRService provider.
4949
@@ -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-06-01-preview"
6161
accept = "application/json"
6262

6363
def prepare_request(next_link=None):

sdk/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/aio/operations/_usages_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4444
def list(
4545
self,
4646
location: str,
47-
**kwargs
47+
**kwargs: Any
4848
) -> AsyncIterable["_models.SignalRServiceUsageList"]:
4949
"""List resource usage quotas by location.
5050
@@ -60,7 +60,7 @@ def list(
6060
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6161
}
6262
error_map.update(kwargs.pop('error_map', {}))
63-
api_version = "2021-04-01-preview"
63+
api_version = "2021-06-01-preview"
6464
accept = "application/json"
6565

6666
def prepare_request(next_link=None):

sdk/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/aio/operations/_web_pub_sub_operations.py

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def check_name_availability(
4747
self,
4848
location: str,
4949
parameters: "_models.NameAvailabilityParameters",
50-
**kwargs
50+
**kwargs: Any
5151
) -> "_models.NameAvailability":
5252
"""Checks that the resource name is valid and is not already in use.
5353
@@ -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-06-01-preview"
6969
content_type = kwargs.pop("content_type", "application/json")
7070
accept = "application/json"
7171

@@ -108,7 +108,7 @@ async def check_name_availability(
108108

109109
def list_by_subscription(
110110
self,
111-
**kwargs
111+
**kwargs: Any
112112
) -> AsyncIterable["_models.WebPubSubResourceList"]:
113113
"""Handles requests to list all resources in a subscription.
114114
@@ -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-06-01-preview"
126126
accept = "application/json"
127127

128128
def prepare_request(next_link=None):
@@ -176,7 +176,7 @@ async def get_next(next_link=None):
176176
def list_by_resource_group(
177177
self,
178178
resource_group_name: str,
179-
**kwargs
179+
**kwargs: Any
180180
) -> AsyncIterable["_models.WebPubSubResourceList"]:
181181
"""Handles requests to list all resources in a resource group.
182182
@@ -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-06-01-preview"
197197
accept = "application/json"
198198

199199
def prepare_request(next_link=None):
@@ -249,7 +249,7 @@ async def get(
249249
self,
250250
resource_group_name: str,
251251
resource_name: str,
252-
**kwargs
252+
**kwargs: Any
253253
) -> "_models.WebPubSubResource":
254254
"""Get the resource and its properties.
255255
@@ -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-06-01-preview"
272272
accept = "application/json"
273273

274274
# Construct URL
@@ -310,14 +310,14 @@ async def _create_or_update_initial(
310310
resource_group_name: str,
311311
resource_name: str,
312312
parameters: "_models.WebPubSubResource",
313-
**kwargs
313+
**kwargs: Any
314314
) -> Optional["_models.WebPubSubResource"]:
315315
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WebPubSubResource"]]
316316
error_map = {
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-06-01-preview"
321321
content_type = kwargs.pop("content_type", "application/json")
322322
accept = "application/json"
323323

@@ -369,7 +369,7 @@ async def begin_create_or_update(
369369
resource_group_name: str,
370370
resource_name: str,
371371
parameters: "_models.WebPubSubResource",
372-
**kwargs
372+
**kwargs: Any
373373
) -> AsyncLROPoller["_models.WebPubSubResource"]:
374374
"""Create or update a resource.
375375
@@ -382,8 +382,8 @@ async def begin_create_or_update(
382382
:type parameters: ~azure.mgmt.webpubsub.models.WebPubSubResource
383383
:keyword callable cls: A custom type or function that will be passed the direct response
384384
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
385-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
386-
False for no polling, or your own initialized polling object for a personal polling strategy.
385+
:keyword polling: By default, your polling method will be AsyncARMPolling.
386+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
387387
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
388388
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
389389
:return: An instance of AsyncLROPoller that returns either WebPubSubResource or the result of cls(response)
@@ -440,14 +440,14 @@ async def _delete_initial(
440440
self,
441441
resource_group_name: str,
442442
resource_name: str,
443-
**kwargs
443+
**kwargs: Any
444444
) -> None:
445445
cls = kwargs.pop('cls', None) # type: ClsType[None]
446446
error_map = {
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-06-01-preview"
451451
accept = "application/json"
452452

453453
# Construct URL
@@ -485,7 +485,7 @@ async def begin_delete(
485485
self,
486486
resource_group_name: str,
487487
resource_name: str,
488-
**kwargs
488+
**kwargs: Any
489489
) -> AsyncLROPoller[None]:
490490
"""Operation to delete a resource.
491491
@@ -496,8 +496,8 @@ async def begin_delete(
496496
:type resource_name: str
497497
:keyword callable cls: A custom type or function that will be passed the direct response
498498
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
499-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
500-
False for no polling, or your own initialized polling object for a personal polling strategy.
499+
:keyword polling: By default, your polling method will be AsyncARMPolling.
500+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
501501
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
502502
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
503503
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -551,14 +551,14 @@ async def _update_initial(
551551
resource_group_name: str,
552552
resource_name: str,
553553
parameters: "_models.WebPubSubResource",
554-
**kwargs
554+
**kwargs: Any
555555
) -> Optional["_models.WebPubSubResource"]:
556556
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WebPubSubResource"]]
557557
error_map = {
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-06-01-preview"
562562
content_type = kwargs.pop("content_type", "application/json")
563563
accept = "application/json"
564564

@@ -607,7 +607,7 @@ async def begin_update(
607607
resource_group_name: str,
608608
resource_name: str,
609609
parameters: "_models.WebPubSubResource",
610-
**kwargs
610+
**kwargs: Any
611611
) -> AsyncLROPoller["_models.WebPubSubResource"]:
612612
"""Operation to update an exiting resource.
613613
@@ -620,8 +620,8 @@ async def begin_update(
620620
:type parameters: ~azure.mgmt.webpubsub.models.WebPubSubResource
621621
:keyword callable cls: A custom type or function that will be passed the direct response
622622
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
623-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
624-
False for no polling, or your own initialized polling object for a personal polling strategy.
623+
:keyword polling: By default, your polling method will be AsyncARMPolling.
624+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
625625
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
626626
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
627627
:return: An instance of AsyncLROPoller that returns either WebPubSubResource or the result of cls(response)
@@ -678,7 +678,7 @@ async def list_keys(
678678
self,
679679
resource_group_name: str,
680680
resource_name: str,
681-
**kwargs
681+
**kwargs: Any
682682
) -> "_models.WebPubSubKeys":
683683
"""Get the access keys of the resource.
684684
@@ -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-06-01-preview"
701701
accept = "application/json"
702702

703703
# Construct URL
@@ -739,14 +739,14 @@ async def _regenerate_key_initial(
739739
resource_group_name: str,
740740
resource_name: str,
741741
parameters: "_models.RegenerateKeyParameters",
742-
**kwargs
742+
**kwargs: Any
743743
) -> "_models.WebPubSubKeys":
744744
cls = kwargs.pop('cls', None) # type: ClsType["_models.WebPubSubKeys"]
745745
error_map = {
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-06-01-preview"
750750
content_type = kwargs.pop("content_type", "application/json")
751751
accept = "application/json"
752752

@@ -793,7 +793,7 @@ async def begin_regenerate_key(
793793
resource_group_name: str,
794794
resource_name: str,
795795
parameters: "_models.RegenerateKeyParameters",
796-
**kwargs
796+
**kwargs: Any
797797
) -> AsyncLROPoller["_models.WebPubSubKeys"]:
798798
"""Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated
799799
at the same time.
@@ -807,8 +807,8 @@ async def begin_regenerate_key(
807807
:type parameters: ~azure.mgmt.webpubsub.models.RegenerateKeyParameters
808808
:keyword callable cls: A custom type or function that will be passed the direct response
809809
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
810-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
811-
False for no polling, or your own initialized polling object for a personal polling strategy.
810+
:keyword polling: By default, your polling method will be AsyncARMPolling.
811+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
812812
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
813813
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
814814
:return: An instance of AsyncLROPoller that returns either WebPubSubKeys or the result of cls(response)
@@ -865,14 +865,14 @@ async def _restart_initial(
865865
self,
866866
resource_group_name: str,
867867
resource_name: str,
868-
**kwargs
868+
**kwargs: Any
869869
) -> None:
870870
cls = kwargs.pop('cls', None) # type: ClsType[None]
871871
error_map = {
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-06-01-preview"
876876
accept = "application/json"
877877

878878
# Construct URL
@@ -910,7 +910,7 @@ async def begin_restart(
910910
self,
911911
resource_group_name: str,
912912
resource_name: str,
913-
**kwargs
913+
**kwargs: Any
914914
) -> AsyncLROPoller[None]:
915915
"""Operation to restart a resource.
916916
@@ -921,8 +921,8 @@ async def begin_restart(
921921
:type resource_name: str
922922
:keyword callable cls: A custom type or function that will be passed the direct response
923923
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
924-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
925-
False for no polling, or your own initialized polling object for a personal polling strategy.
924+
:keyword polling: By default, your polling method will be AsyncARMPolling.
925+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
926926
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
927927
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
928928
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)

0 commit comments

Comments
 (0)