Skip to content

Commit bdf669d

Browse files
author
SDKAuto
committed
CodeGen from PR 18940 in Azure/azure-rest-api-specs
Merge 0338b741e73e2b5dc5fa783e666f292258766e02 into f07a80688b1b43cf9ffc1db1a8858a42fd3184b3
1 parent ef2609e commit bdf669d

28 files changed

+2041
-881
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.7.2",
33
"use": [
4-
"@autorest/python@5.12.0",
4+
"@autorest/python@5.13.0",
55
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "3f59f46d112c58cb8f6231732e88848f0f97872c",
7+
"commit": "cc41dde8963f0f730d8c9acb2fa81e155f74810a",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/batch/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
9+
"autorest_command": "autorest specification/batch/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
1010
"readme": "specification/batch/resource-manager/readme.md"
1111
}

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, Optional, TYPE_CHECKING
10+
from typing import Any, TYPE_CHECKING
11+
12+
from msrest import Deserializer, Serializer
1113

1214
from azure.core.rest import HttpRequest, HttpResponse
1315
from azure.mgmt.core import ARMPipelineClient
14-
from msrest import Deserializer, Serializer
1516

1617
from . import models
1718
from ._configuration import BatchManagementClientConfiguration
@@ -21,7 +22,7 @@
2122
# pylint: disable=unused-import,ungrouped-imports
2223
from azure.core.credentials import TokenCredential
2324

24-
class BatchManagementClient:
25+
class BatchManagementClient: # pylint: disable=too-many-instance-attributes
2526
"""Batch Client.
2627
2728
:ivar batch_account: BatchAccountOperations operations
@@ -48,8 +49,11 @@ class BatchManagementClient:
4849
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
4950
00000000-0000-0000-0000-000000000000).
5051
:type subscription_id: str
51-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
52+
:param base_url: Service URL. Default value is "https://management.azure.com".
5253
:type base_url: str
54+
:keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this
55+
default value may result in unsupported behavior.
56+
:paramtype api_version: str
5357
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
5458
Retry-After header is present.
5559
"""
@@ -81,7 +85,7 @@ def __init__(
8185

8286
def _send_request(
8387
self,
84-
request, # type: HttpRequest
88+
request: HttpRequest,
8589
**kwargs: Any
8690
) -> HttpResponse:
8791
"""Runs the network request through the client's chained policies.

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@
1919
from azure.core.credentials import TokenCredential
2020

2121

22-
class BatchManagementClientConfiguration(Configuration):
22+
class BatchManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for BatchManagementClient.
2424
2525
Note that all parameters used to create this instance are saved as instance
2626
attributes.
2727
2828
:param credential: Credential needed for the client to connect to Azure.
2929
:type credential: ~azure.core.credentials.TokenCredential
30-
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
30+
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
31+
00000000-0000-0000-0000-000000000000).
3132
:type subscription_id: str
33+
:keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this
34+
default value may result in unsupported behavior.
35+
:paramtype api_version: str
3236
"""
3337

3438
def __init__(
@@ -38,14 +42,16 @@ def __init__(
3842
**kwargs: Any
3943
) -> None:
4044
super(BatchManagementClientConfiguration, self).__init__(**kwargs)
45+
api_version = kwargs.pop('api_version', "2022-06-01") # type: str
46+
4147
if credential is None:
4248
raise ValueError("Parameter 'credential' must not be None.")
4349
if subscription_id is None:
4450
raise ValueError("Parameter 'subscription_id' must not be None.")
4551

4652
self.credential = credential
4753
self.subscription_id = subscription_id
48-
self.api_version = "2022-01-01"
54+
self.api_version = api_version
4955
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5056
kwargs.setdefault('sdk_moniker', 'mgmt-batch/{}'.format(VERSION))
5157
self._configure(**kwargs)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2022-01-01",
3-
"total_api_version_list": ["2022-01-01"],
2+
"chosen_version": "2022-06-01",
3+
"total_api_version_list": ["2022-06-01"],
44
"client": {
55
"name": "BatchManagementClient",
66
"filename": "_batch_management_client",
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"BatchManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14-
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"BatchManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"BatchManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"BatchManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_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 = "16.1.0"
9+
VERSION = "14.0.0b1"

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, Awaitable, Optional, TYPE_CHECKING
10+
from typing import Any, Awaitable, TYPE_CHECKING
11+
12+
from msrest import Deserializer, Serializer
1113

1214
from azure.core.rest import AsyncHttpResponse, HttpRequest
1315
from azure.mgmt.core import AsyncARMPipelineClient
14-
from msrest import Deserializer, Serializer
1516

1617
from .. import models
1718
from ._configuration import BatchManagementClientConfiguration
@@ -21,7 +22,7 @@
2122
# pylint: disable=unused-import,ungrouped-imports
2223
from azure.core.credentials_async import AsyncTokenCredential
2324

24-
class BatchManagementClient:
25+
class BatchManagementClient: # pylint: disable=too-many-instance-attributes
2526
"""Batch Client.
2627
2728
:ivar batch_account: BatchAccountOperations operations
@@ -48,8 +49,11 @@ class BatchManagementClient:
4849
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
4950
00000000-0000-0000-0000-000000000000).
5051
:type subscription_id: str
51-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
52+
:param base_url: Service URL. Default value is "https://management.azure.com".
5253
:type base_url: str
54+
:keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this
55+
default value may result in unsupported behavior.
56+
:paramtype api_version: str
5357
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
5458
Retry-After header is present.
5559
"""

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@
1919
from azure.core.credentials_async import AsyncTokenCredential
2020

2121

22-
class BatchManagementClientConfiguration(Configuration):
22+
class BatchManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for BatchManagementClient.
2424
2525
Note that all parameters used to create this instance are saved as instance
2626
attributes.
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: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
30+
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
31+
00000000-0000-0000-0000-000000000000).
3132
:type subscription_id: str
33+
:keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this
34+
default value may result in unsupported behavior.
35+
:paramtype api_version: str
3236
"""
3337

3438
def __init__(
@@ -38,14 +42,16 @@ def __init__(
3842
**kwargs: Any
3943
) -> None:
4044
super(BatchManagementClientConfiguration, self).__init__(**kwargs)
45+
api_version = kwargs.pop('api_version', "2022-06-01") # type: str
46+
4147
if credential is None:
4248
raise ValueError("Parameter 'credential' must not be None.")
4349
if subscription_id is None:
4450
raise ValueError("Parameter 'subscription_id' must not be None.")
4551

4652
self.credential = credential
4753
self.subscription_id = subscription_id
48-
self.api_version = "2022-01-01"
54+
self.api_version = api_version
4955
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5056
kwargs.setdefault('sdk_moniker', 'mgmt-batch/{}'.format(VERSION))
5157
self._configure(**kwargs)

0 commit comments

Comments
 (0)