Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sdk automation/azure mgmt storage #13232

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion sdk/storage/azure-mgmt-storage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Release History

## 11.1.0 (2020-6-22)
## 11.2.0 (2020-08-20)

**Features**

- Model RestorePolicyProperties has a new parameter min_restore_time

## 11.1.0 (2020-06-22)

**Features**

Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/azure-mgmt-storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it be changed in other sdk?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's only for python sdk



# Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2921,28 +2921,33 @@ class RestorePolicyProperties(Model):
:param days: how long this blob can be restored. It should be great than
zero and less than DeleteRetentionPolicy.days.
:type days: int
:ivar last_enabled_time: Returns the date and time the restore policy was
last enabled.
:ivar last_enabled_time: Deprecated in favor of minRestoreTime property.
:vartype last_enabled_time: datetime
:ivar min_restore_time: Returns the minimum date and time that the restore
can be started.
:vartype min_restore_time: datetime
"""

_validation = {
'enabled': {'required': True},
'days': {'maximum': 365, 'minimum': 1},
'last_enabled_time': {'readonly': True},
'min_restore_time': {'readonly': True},
}

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'days': {'key': 'days', 'type': 'int'},
'last_enabled_time': {'key': 'lastEnabledTime', 'type': 'iso-8601'},
'min_restore_time': {'key': 'minRestoreTime', 'type': 'iso-8601'},
}

def __init__(self, **kwargs):
super(RestorePolicyProperties, self).__init__(**kwargs)
self.enabled = kwargs.get('enabled', None)
self.days = kwargs.get('days', None)
self.last_enabled_time = None
self.min_restore_time = None


class Restriction(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2921,28 +2921,33 @@ class RestorePolicyProperties(Model):
:param days: how long this blob can be restored. It should be great than
zero and less than DeleteRetentionPolicy.days.
:type days: int
:ivar last_enabled_time: Returns the date and time the restore policy was
last enabled.
:ivar last_enabled_time: Deprecated in favor of minRestoreTime property.
:vartype last_enabled_time: datetime
:ivar min_restore_time: Returns the minimum date and time that the restore
can be started.
:vartype min_restore_time: datetime
"""

_validation = {
'enabled': {'required': True},
'days': {'maximum': 365, 'minimum': 1},
'last_enabled_time': {'readonly': True},
'min_restore_time': {'readonly': True},
}

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'days': {'key': 'days', 'type': 'int'},
'last_enabled_time': {'key': 'lastEnabledTime', 'type': 'iso-8601'},
'min_restore_time': {'key': 'minRestoreTime', 'type': 'iso-8601'},
}

def __init__(self, *, enabled: bool, days: int=None, **kwargs) -> None:
super(RestorePolicyProperties, self).__init__(**kwargs)
self.enabled = enabled
self.days = days
self.last_enabled_time = None
self.min_restore_time = None


class Restriction(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,8 @@ def delete_immutability_policy(
"""Aborts an unlocked immutability policy. The response of delete has
immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is
required for this operation. Deleting a locked immutability policy is
not allowed, only way is to delete the container after deleting all
blobs inside the container.
not allowed, the only way is to delete the container after deleting all
expired blobs inside the policy locked container.

:param resource_group_name: The name of the resource group within the
user's subscription. The name is case insensitive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "11.1.0"
VERSION = "11.2.0"

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16
msrest_azure/0.6.3 azure-mgmt-storage/11.1.0 Azure-SDK-For-Python
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3
azure-mgmt-storage/11.2.0 Azure-SDK-For-Python
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/usages?api-version=2019-06-01
response:
body:
string: '{"value":[{"unit":"Count","currentValue":1,"limit":250,"name":{"value":"StorageAccounts","localizedValue":"Storage
string: '{"value":[{"unit":"Count","currentValue":4,"limit":250,"name":{"value":"StorageAccounts","localizedValue":"Storage
Accounts"}}]}'
headers:
cache-control:
Expand All @@ -27,7 +27,7 @@ interactions:
content-type:
- application/json
date:
- Sun, 28 Jun 2020 03:01:11 GMT
- Thu, 20 Aug 2020 01:11:38 GMT
expires:
- '-1'
pragma:
Expand Down