Skip to content

Commit 48b7fdb

Browse files
author
SDKAuto
committed
CodeGen from PR 18960 in Azure/azure-rest-api-specs
Merge bde5d9a009b242f98312cd9b3ba393a187c1d49e into a416080c85111fbe4e0a483a1b99f1126ca6e97c
1 parent d698c15 commit 48b7fdb

File tree

511 files changed

+30317
-15787
lines changed

Some content is hidden

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

511 files changed

+30317
-15787
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": "3026119ab41bbce77275cfa3a1afbabf43af5aea",
7+
"commit": "a84a8a93ec5277c42a48cde1bfb8c06b834fde3c",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/storage/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.12.0 --use=@autorest/[email protected] --version=3.7.2",
9+
"autorest_command": "autorest specification/storage/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/storage/resource-manager/readme.md"
1111
}

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_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 StorageManagementClientConfiguration
2021

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/aio/_storage_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 StorageManagementClientConfiguration
2021

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/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 StorageManagementConfiguration(Configuration):
22+
class StorageManagementConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for StorageManagement.
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 the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
30+
:param subscription_id: Subscription credentials which uniquely identify the 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(StorageManagementConfiguration, 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-storage/{}'.format(VERSION))
5157
self._configure(**kwargs)

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/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\": [\"StorageManagementConfiguration\"]}}, \"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\": [\"StorageManagementConfiguration\"]}}, \"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\": [\"StorageManagementConfiguration\"]}, \"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\": [\"StorageManagementConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/_storage_management.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, 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 StorageManagementConfiguration
@@ -33,8 +34,11 @@ class StorageManagement:
3334
:param subscription_id: Subscription credentials which uniquely identify the Microsoft Azure
3435
subscription. The subscription ID forms part of the URI for every service call.
3536
:type subscription_id: str
36-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
37+
:param base_url: Service URL. Default value is "https://management.azure.com".
3738
:type base_url: str
39+
:keyword api_version: Api Version. Default value is "2015-06-15". Note that overriding this
40+
default value may result in unsupported behavior.
41+
:paramtype api_version: str
3842
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
3943
Retry-After header is present.
4044
"""
@@ -59,7 +63,7 @@ def __init__(
5963

6064
def _send_request(
6165
self,
62-
request, # type: HttpRequest
66+
request: HttpRequest,
6367
**kwargs: Any
6468
) -> HttpResponse:
6569
"""Runs the network request through the client's chained policies.

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/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 = "20.0.0"
9+
VERSION = "1.0.0b1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/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 StorageManagementConfiguration(Configuration):
22+
class StorageManagementConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for StorageManagement.
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 the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
30+
:param subscription_id: Subscription credentials which uniquely identify the 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(StorageManagementConfiguration, 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-storage/{}'.format(VERSION))
5157
self._configure(**kwargs)

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/aio/_storage_management.py

Lines changed: 7 additions & 3 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 StorageManagementConfiguration
@@ -34,8 +35,11 @@ class StorageManagement:
3435
:param subscription_id: Subscription credentials which uniquely identify the Microsoft Azure
3536
subscription. The subscription ID forms part of the URI for every service call.
3637
:type subscription_id: str
37-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
38+
:param base_url: Service URL. Default value is "https://management.azure.com".
3839
:type base_url: str
40+
:keyword api_version: Api Version. Default value is "2015-06-15". Note that overriding this
41+
default value may result in unsupported behavior.
42+
:paramtype api_version: str
3943
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4044
Retry-After header is present.
4145
"""

0 commit comments

Comments
 (0)