Skip to content

Commit 4deec3e

Browse files
msyycSDKAutoRAY-316
authored
[AutoRelease] t2-storage-2021-04-13-34265 (#18003)
* CodeGen from PR 13881 in Azure/azure-rest-api-specs storage readme t2 config (#13881) * storage readme t2 config * storage t2 config * version,CHANGELOG * test Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed Lei <[email protected]>
1 parent 28545a0 commit 4deec3e

File tree

219 files changed

+29336
-2227
lines changed

Some content is hidden

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

219 files changed

+29336
-2227
lines changed

sdk/storage/azure-mgmt-storage/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Release History
22

3+
## 17.1.0 (2021-04-13)
4+
5+
**Features**
6+
7+
- Model StorageAccountKey has a new parameter creation_time
8+
- Model StorageAccountUpdateParameters has a new parameter sas_policy
9+
- Model StorageAccountUpdateParameters has a new parameter key_policy
10+
- Model StorageAccountCreateParameters has a new parameter sas_policy
11+
- Model StorageAccountCreateParameters has a new parameter key_policy
12+
- Model StorageAccount has a new parameter sas_policy
13+
- Model StorageAccount has a new parameter key_policy
14+
- Model StorageAccount has a new parameter key_creation_time
15+
316
## 17.0.0 (2021-02-20)
417

518
**Features**

sdk/storage/azure-mgmt-storage/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "3.0.6369",
3+
"use": "@autorest/[email protected]",
4+
"commit": "8eebce5afef155e2216e12b036c2ccb856a331c3",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/storage/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] --version=3.0.6369",
7+
"readme": "specification/storage/resource-manager/readme.md"
8+
}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88
# Changes may cause incorrect behavior and will be lost if the code is
99
# regenerated.
1010
# --------------------------------------------------------------------------
11-
from typing import Any
11+
from typing import TYPE_CHECKING
1212

1313
from azure.core.configuration import Configuration
1414
from azure.core.pipeline import policies
1515
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1616

1717
from ._version import VERSION
1818

19+
if TYPE_CHECKING:
20+
# pylint: disable=unused-import,ungrouped-imports
21+
from typing import Any
22+
23+
from azure.core.credentials import TokenCredential
1924

2025
class StorageManagementClientConfiguration(Configuration):
2126
"""Configuration for StorageManagementClient.

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py

Lines changed: 79 additions & 9 deletions
Large diffs are not rendered by default.

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "17.0.0"
8+
VERSION = "17.1.0"

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88
# Changes may cause incorrect behavior and will be lost if the code is
99
# regenerated.
1010
# --------------------------------------------------------------------------
11-
from typing import Any
11+
from typing import Any, TYPE_CHECKING
1212

1313
from azure.core.configuration import Configuration
1414
from azure.core.pipeline import policies
1515
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1616

1717
from .._version import VERSION
1818

19+
if TYPE_CHECKING:
20+
# pylint: disable=unused-import,ungrouped-imports
21+
from azure.core.credentials_async import AsyncTokenCredential
1922

2023
class StorageManagementClientConfiguration(Configuration):
2124
"""Configuration for StorageManagementClient.
@@ -31,8 +34,8 @@ class StorageManagementClientConfiguration(Configuration):
3134

3235
def __init__(
3336
self,
34-
credential, # type: "AsyncTokenCredential"
35-
subscription_id, # type: str
37+
credential: "AsyncTokenCredential",
38+
subscription_id: str,
3639
**kwargs # type: Any
3740
) -> None:
3841
if credential is None:

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/aio/_storage_management_client.py

Lines changed: 79 additions & 11 deletions
Large diffs are not rendered by default.

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77
from .v2018_02_01.models import *
8-
from .v2021_01_01.models import *
8+
from .v2021_02_01.models import *

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# --------------------------------------------------------------------------
88

99
from ._storage_management import StorageManagement
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
1013
__all__ = ['StorageManagement']
1114

1215
try:

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/_configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from ._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from typing import Any
1820

1921
from azure.core.credentials import TokenCredential
2022

21-
VERSION = "unknown"
2223

2324
class StorageManagementConfiguration(Configuration):
2425
"""Configuration for StorageManagement.

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

Lines changed: 56 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"custom_base_url": null,
1010
"azure_arm": true,
1111
"has_lro_operations": true,
12-
"client_side_validation": true
12+
"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\"]}}, \"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\"]}}}"
1315
},
1416
"global_parameters": {
1517
"sync": {
@@ -28,35 +30,81 @@
2830
},
2931
"async": {
3032
"credential": {
31-
"signature": "credential, # type: \"AsyncTokenCredential\"",
33+
"signature": "credential: \"AsyncTokenCredential\",",
3234
"description": "Credential needed for the client to connect to Azure.",
3335
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
3436
"required": true
3537
},
3638
"subscription_id": {
37-
"signature": "subscription_id, # type: str",
39+
"signature": "subscription_id: str,",
3840
"description": "Subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
3941
"docstring_type": "str",
4042
"required": true
4143
}
4244
},
4345
"constant": {
4446
},
45-
"call": "credential, subscription_id"
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
4690
},
4791
"config": {
4892
"credential": true,
4993
"credential_scopes": ["https://management.azure.com/.default"],
5094
"credential_default_policy_type": "BearerTokenCredentialPolicy",
5195
"credential_default_policy_type_has_async_version": true,
52-
"credential_key_header_name": null
96+
"credential_key_header_name": null,
97+
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
98+
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
5399
},
54100
"operation_groups": {
55101
"storage_accounts": "StorageAccountsOperations",
56102
"usage": "UsageOperations"
57103
},
58104
"operation_mixins": {
59-
},
60-
"sync_imports": "None",
61-
"async_imports": "None"
105+
"sync_imports": "None",
106+
"async_imports": "None",
107+
"operations": {
108+
}
109+
}
62110
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __init__(
5353

5454
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
5555
self._serialize = Serializer(client_models)
56+
self._serialize.client_side_validation = False
5657
self._deserialize = Deserializer(client_models)
5758

5859
self.storage_accounts = StorageAccountsOperations(
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
VERSION = "17.1.0"

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from .._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from azure.core.credentials_async import AsyncTokenCredential
1820

19-
VERSION = "unknown"
2021

2122
class StorageManagementConfiguration(Configuration):
2223
"""Configuration for StorageManagement.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def __init__(
5050

5151
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
5252
self._serialize = Serializer(client_models)
53+
self._serialize.client_side_validation = False
5354
self._deserialize = Deserializer(client_models)
5455

5556
self.storage_accounts = StorageAccountsOperations(

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/aio/operations/_storage_accounts_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ async def begin_create(
181181
:type parameters: ~azure.mgmt.storage.v2015_06_15.models.StorageAccountCreateParameters
182182
:keyword callable cls: A custom type or function that will be passed the direct response
183183
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
184-
:keyword polling: True for ARMPolling, False for no polling, or a
185-
polling object for personal polling strategy
184+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
185+
False for no polling, or your own initialized polling object for a personal polling strategy.
186186
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
187187
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
188188
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of cls(response)

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/operations/_storage_accounts_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def begin_create(
188188
:type parameters: ~azure.mgmt.storage.v2015_06_15.models.StorageAccountCreateParameters
189189
:keyword callable cls: A custom type or function that will be passed the direct response
190190
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
191-
:keyword polling: True for ARMPolling, False for no polling, or a
192-
polling object for personal polling strategy
191+
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
192+
False for no polling, or your own initialized polling object for a personal polling strategy.
193193
:paramtype polling: bool or ~azure.core.polling.PollingMethod
194194
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
195195
:return: An instance of LROPoller that returns either StorageAccount or the result of cls(response)

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# --------------------------------------------------------------------------
88

99
from ._storage_management_client import StorageManagementClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
1013
__all__ = ['StorageManagementClient']
1114

1215
try:

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/_configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from ._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from typing import Any
1820

1921
from azure.core.credentials import TokenCredential
2022

21-
VERSION = "unknown"
2223

2324
class StorageManagementClientConfiguration(Configuration):
2425
"""Configuration for StorageManagementClient.

0 commit comments

Comments
 (0)