Skip to content

Commit a496105

Browse files
authored
code and test (Azure#27488)
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent d7426ce commit a496105

File tree

874 files changed

+201186
-105846
lines changed

Some content is hidden

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

874 files changed

+201186
-105846
lines changed

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

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

3+
## 21.0.0 (2022-11-15)
4+
5+
### Features Added
6+
7+
- Model ManagementPolicyBaseBlob has a new parameter tier_to_cold
8+
- Model ManagementPolicyBaseBlob has a new parameter tier_to_hot
9+
- Model ManagementPolicySnapShot has a new parameter tier_to_cold
10+
- Model ManagementPolicySnapShot has a new parameter tier_to_hot
11+
- Model ManagementPolicyVersion has a new parameter tier_to_cold
12+
- Model ManagementPolicyVersion has a new parameter tier_to_hot
13+
14+
### Breaking Changes
15+
16+
- Operation EncryptionScopesOperations.list has a new parameter filter
17+
- Operation EncryptionScopesOperations.list has a new parameter include
18+
- Operation EncryptionScopesOperations.list has a new parameter maxpagesize
19+
- Operation StorageAccountsOperations.begin_failover has a new parameter failover_type
20+
321
## 20.1.0 (2022-08-09)
422

523
**Features**

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include _meta.json
22
recursive-include tests *.py *.json
3+
recursive-include samples *.py *.md
34
include *.md
45
include azure/__init__.py
56
include azure/mgmt/__init__.py
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.7.2",
2+
"commit": "8bcf420c12d61a1639dd470d511e6210869f44b6",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"autorest": "3.9.2",
35
"use": [
4-
"@autorest/python@5.16.0",
5-
"@autorest/modelerfour@4.19.3"
6+
"@autorest/python@6.2.1",
7+
"@autorest/modelerfour@4.24.3"
68
],
7-
"commit": "1b3b9c1dd4d2c875997ea0b392dc71418fb1f28d",
8-
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/storage/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
9+
"autorest_command": "autorest specification/storage/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/storage/resource-manager/readme.md"
1111
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@
1414
patch_sdk()
1515
except ImportError:
1616
pass
17+
18+
from ._version import VERSION
19+
20+
__version__ = VERSION

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

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

1313
from azure.core.configuration import Configuration
1414
from azure.core.pipeline import policies
@@ -18,8 +18,6 @@
1818

1919
if TYPE_CHECKING:
2020
# pylint: disable=unused-import,ungrouped-imports
21-
from typing import Any
22-
2321
from azure.core.credentials import TokenCredential
2422

2523
class StorageManagementClientConfiguration(Configuration):
@@ -28,16 +26,16 @@ class StorageManagementClientConfiguration(Configuration):
2826
Note that all parameters used to create this instance are saved as instance
2927
attributes.
3028
31-
:param credential: Credential needed for the client to connect to Azure.
29+
:param credential: Credential needed for the client to connect to Azure. Required.
3230
:type credential: ~azure.core.credentials.TokenCredential
33-
:param subscription_id: The ID of the target subscription.
31+
:param subscription_id: The ID of the target subscription. Required.
3432
:type subscription_id: str
3533
"""
3634

3735
def __init__(
3836
self,
39-
credential, # type: "TokenCredential"
40-
subscription_id, # type: str
37+
credential: "TokenCredential",
38+
subscription_id: str,
4139
**kwargs # type: Any
4240
):
4341
# type: (...) -> None

0 commit comments

Comments
 (0)