Skip to content

Commit 2148ca4

Browse files
author
SDKAuto
committed
CodeGen from PR 18581 in Azure/azure-rest-api-specs
Merge 7f29b38856774493127a162f283bc09623b7ef42 into a7f91f93af6a62ddfe7f3b37a69645e90acdb65e
1 parent 4cfe46e commit 2148ca4

File tree

1,015 files changed

+95217
-53995
lines changed

Some content is hidden

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

1,015 files changed

+95217
-53995
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/[email protected]"
66
],
7-
"commit": "0105ac02e25089e55a7d4126f8fd303f9415b115",
7+
"commit": "2b2825e52b1d68a0f320a4269ffdcfe3f2d1b079",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/compute/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/[email protected] --version=3.7.2",
9+
"autorest_command": "autorest specification/compute/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/[email protected] --version=3.7.2",
1010
"readme": "specification/compute/resource-manager/readme.md"
1111
}

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
from typing import TYPE_CHECKING
1313

14+
from msrest import Deserializer, Serializer
15+
1416
from azure.mgmt.core import ARMPipelineClient
1517
from azure.profiles import KnownProfiles, ProfileDefinition
1618
from azure.profiles.multiapiclient import MultiApiClientMixin
17-
from msrest import Deserializer, Serializer
1819

1920
from ._configuration import ComputeManagementClientConfiguration
2021

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_compute_management_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
from typing import Any, Optional, TYPE_CHECKING
1313

14+
from msrest import Deserializer, Serializer
15+
1416
from azure.mgmt.core import AsyncARMPipelineClient
1517
from azure.profiles import KnownProfiles, ProfileDefinition
1618
from azure.profiles.multiapiclient import MultiApiClientMixin
17-
from msrest import Deserializer, Serializer
1819

1920
from ._configuration import ComputeManagementClientConfiguration
2021

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_compute_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 ComputeManagementClientConfiguration
@@ -21,7 +22,7 @@
2122
# pylint: disable=unused-import,ungrouped-imports
2223
from azure.core.credentials import TokenCredential
2324

24-
class ComputeManagementClient:
25+
class ComputeManagementClient: # pylint: disable=too-many-instance-attributes
2526
"""Compute Client.
2627
2728
:ivar availability_sets: AvailabilitySetsOperations operations
@@ -54,8 +55,11 @@ class ComputeManagementClient:
5455
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
5556
subscription. The subscription ID forms part of the URI for every service call.
5657
:type subscription_id: str
57-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
58+
:param base_url: Service URL. Default value is "https://management.azure.com".
5859
:type base_url: str
60+
:keyword api_version: Api Version. Default value is "2015-06-15". Note that overriding this
61+
default value may result in unsupported behavior.
62+
:paramtype api_version: str
5963
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6064
Retry-After header is present.
6165
"""
@@ -87,7 +91,7 @@ def __init__(
8791

8892
def _send_request(
8993
self,
90-
request, # type: HttpRequest
94+
request: HttpRequest,
9195
**kwargs: Any
9296
) -> HttpResponse:
9397
"""Runs the network request through the client's chained policies.

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_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 ComputeManagementClientConfiguration(Configuration):
22+
class ComputeManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for ComputeManagementClient.
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: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
30+
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
31+
subscription. The subscription ID forms part of the URI for every service call.
3132
:type subscription_id: str
33+
:keyword api_version: Api Version. Default value is "2015-06-15". 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(ComputeManagementClientConfiguration, self).__init__(**kwargs)
45+
api_version = kwargs.pop('api_version', "2015-06-15") # 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 = "2015-06-15"
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-compute/{}'.format(VERSION))
5157
self._configure(**kwargs)

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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\": [\"ComputeManagementClientConfiguration\"]}}, \"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\": [\"ComputeManagementClientConfiguration\"]}}, \"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\": [\"ComputeManagementClientConfiguration\"]}, \"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\": [\"ComputeManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_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 = "26.1.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_compute_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 ComputeManagementClientConfiguration
@@ -21,7 +22,7 @@
2122
# pylint: disable=unused-import,ungrouped-imports
2223
from azure.core.credentials_async import AsyncTokenCredential
2324

24-
class ComputeManagementClient:
25+
class ComputeManagementClient: # pylint: disable=too-many-instance-attributes
2526
"""Compute Client.
2627
2728
:ivar availability_sets: AvailabilitySetsOperations operations
@@ -55,8 +56,11 @@ class ComputeManagementClient:
5556
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
5657
subscription. The subscription ID forms part of the URI for every service call.
5758
:type subscription_id: str
58-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
59+
:param base_url: Service URL. Default value is "https://management.azure.com".
5960
:type base_url: str
61+
:keyword api_version: Api Version. Default value is "2015-06-15". Note that overriding this
62+
default value may result in unsupported behavior.
63+
:paramtype api_version: str
6064
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6165
Retry-After header is present.
6266
"""

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/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 ComputeManagementClientConfiguration(Configuration):
22+
class ComputeManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for ComputeManagementClient.
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: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
30+
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
31+
subscription. The subscription ID forms part of the URI for every service call.
3132
:type subscription_id: str
33+
:keyword api_version: Api Version. Default value is "2015-06-15". 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(ComputeManagementClientConfiguration, self).__init__(**kwargs)
45+
api_version = kwargs.pop('api_version', "2015-06-15") # 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 = "2015-06-15"
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-compute/{}'.format(VERSION))
5157
self._configure(**kwargs)

0 commit comments

Comments
 (0)