Skip to content

Commit 396e794

Browse files
changlong-liuSDK Automation
andauthored
Sdk automation/azure mgmt storage (Azure#13232)
* Update from release/v3 * version 11.2.0 Co-authored-by: SDK Automation <[email protected]>
1 parent 308b9e9 commit 396e794

File tree

9 files changed

+235
-218
lines changed

9 files changed

+235
-218
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Release History
22

3-
## 11.1.0 (2020-6-22)
3+
## 11.2.0 (2020-08-20)
4+
5+
**Features**
6+
7+
- Model RestorePolicyProperties has a new parameter min_restore_time
8+
9+
## 11.1.0 (2020-06-22)
410

511
**Features**
612

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is the Microsoft Azure Storage Management Client Library.
44
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5-
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
5+
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)
66

77

88
# Usage

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,28 +2921,33 @@ class RestorePolicyProperties(Model):
29212921
:param days: how long this blob can be restored. It should be great than
29222922
zero and less than DeleteRetentionPolicy.days.
29232923
:type days: int
2924-
:ivar last_enabled_time: Returns the date and time the restore policy was
2925-
last enabled.
2924+
:ivar last_enabled_time: Deprecated in favor of minRestoreTime property.
29262925
:vartype last_enabled_time: datetime
2926+
:ivar min_restore_time: Returns the minimum date and time that the restore
2927+
can be started.
2928+
:vartype min_restore_time: datetime
29272929
"""
29282930

29292931
_validation = {
29302932
'enabled': {'required': True},
29312933
'days': {'maximum': 365, 'minimum': 1},
29322934
'last_enabled_time': {'readonly': True},
2935+
'min_restore_time': {'readonly': True},
29332936
}
29342937

29352938
_attribute_map = {
29362939
'enabled': {'key': 'enabled', 'type': 'bool'},
29372940
'days': {'key': 'days', 'type': 'int'},
29382941
'last_enabled_time': {'key': 'lastEnabledTime', 'type': 'iso-8601'},
2942+
'min_restore_time': {'key': 'minRestoreTime', 'type': 'iso-8601'},
29392943
}
29402944

29412945
def __init__(self, **kwargs):
29422946
super(RestorePolicyProperties, self).__init__(**kwargs)
29432947
self.enabled = kwargs.get('enabled', None)
29442948
self.days = kwargs.get('days', None)
29452949
self.last_enabled_time = None
2950+
self.min_restore_time = None
29462951

29472952

29482953
class Restriction(Model):

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,28 +2921,33 @@ class RestorePolicyProperties(Model):
29212921
:param days: how long this blob can be restored. It should be great than
29222922
zero and less than DeleteRetentionPolicy.days.
29232923
:type days: int
2924-
:ivar last_enabled_time: Returns the date and time the restore policy was
2925-
last enabled.
2924+
:ivar last_enabled_time: Deprecated in favor of minRestoreTime property.
29262925
:vartype last_enabled_time: datetime
2926+
:ivar min_restore_time: Returns the minimum date and time that the restore
2927+
can be started.
2928+
:vartype min_restore_time: datetime
29272929
"""
29282930

29292931
_validation = {
29302932
'enabled': {'required': True},
29312933
'days': {'maximum': 365, 'minimum': 1},
29322934
'last_enabled_time': {'readonly': True},
2935+
'min_restore_time': {'readonly': True},
29332936
}
29342937

29352938
_attribute_map = {
29362939
'enabled': {'key': 'enabled', 'type': 'bool'},
29372940
'days': {'key': 'days', 'type': 'int'},
29382941
'last_enabled_time': {'key': 'lastEnabledTime', 'type': 'iso-8601'},
2942+
'min_restore_time': {'key': 'minRestoreTime', 'type': 'iso-8601'},
29392943
}
29402944

29412945
def __init__(self, *, enabled: bool, days: int=None, **kwargs) -> None:
29422946
super(RestorePolicyProperties, self).__init__(**kwargs)
29432947
self.enabled = enabled
29442948
self.days = days
29452949
self.last_enabled_time = None
2950+
self.min_restore_time = None
29462951

29472952

29482953
class Restriction(Model):

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,8 @@ def delete_immutability_policy(
791791
"""Aborts an unlocked immutability policy. The response of delete has
792792
immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is
793793
required for this operation. Deleting a locked immutability policy is
794-
not allowed, only way is to delete the container after deleting all
795-
blobs inside the container.
794+
not allowed, the only way is to delete the container after deleting all
795+
expired blobs inside the policy locked container.
796796
797797
:param resource_group_name: The name of the resource group within the
798798
user's subscription. The name is case insensitive.

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 = "11.1.0"
8+
VERSION = "11.2.0"

sdk/storage/azure-mgmt-storage/tests/recordings/test_cli_mgmt_storage.test_storage.yaml

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

sdk/storage/azure-mgmt-storage/tests/recordings/test_mgmt_storage.test_storage_accounts.yaml

Lines changed: 51 additions & 50 deletions
Large diffs are not rendered by default.

sdk/storage/azure-mgmt-storage/tests/recordings/test_mgmt_storage.test_storage_usage.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ interactions:
99
Connection:
1010
- keep-alive
1111
User-Agent:
12-
- python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16
13-
msrest_azure/0.6.3 azure-mgmt-storage/11.1.0 Azure-SDK-For-Python
12+
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3
13+
azure-mgmt-storage/11.2.0 Azure-SDK-For-Python
1414
accept-language:
1515
- en-US
1616
method: GET
1717
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/usages?api-version=2019-06-01
1818
response:
1919
body:
20-
string: '{"value":[{"unit":"Count","currentValue":1,"limit":250,"name":{"value":"StorageAccounts","localizedValue":"Storage
20+
string: '{"value":[{"unit":"Count","currentValue":4,"limit":250,"name":{"value":"StorageAccounts","localizedValue":"Storage
2121
Accounts"}}]}'
2222
headers:
2323
cache-control:
@@ -27,7 +27,7 @@ interactions:
2727
content-type:
2828
- application/json
2929
date:
30-
- Sun, 28 Jun 2020 03:01:11 GMT
30+
- Thu, 20 Aug 2020 01:11:38 GMT
3131
expires:
3232
- '-1'
3333
pragma:

0 commit comments

Comments
 (0)