From 14ced022903cb90e3eb46e15dab4bcccc4820558 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 3 Jul 2019 22:56:54 +0000 Subject: [PATCH 1/4] Generated from 00d9e1b50ab5daed68696f0b0c612e912acde7db [Bug fix] Remove read-only constraint for management policy --- .../azure/mgmt/storage/_storage_management_client.py | 3 +-- .../azure-mgmt-storage/azure/mgmt/storage/models.py | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py index 3db1f662464e..6bacfbc7f4d0 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py @@ -14,7 +14,6 @@ from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin -from .version import VERSION from ._configuration import StorageManagementClientConfiguration @@ -51,8 +50,8 @@ class StorageManagementClient(MultiApiClientMixin, SDKClient): _PROFILE_TAG = "azure.mgmt.storage.StorageManagementClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { + None: DEFAULT_API_VERSION, 'usage': '2018-02-01', - None: DEFAULT_API_VERSION }}, _PROFILE_TAG + " latest" ) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/models.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/models.py index 7e77a50bfd13..2020d3f71048 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/models.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/models.py @@ -4,13 +4,5 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2015_06_15.models import * -from .v2016_01_01.models import * -from .v2016_12_01.models import * -from .v2017_06_01.models import * -from .v2017_10_01.models import * from .v2018_02_01.models import * -from .v2018_03_01_preview.models import * -from .v2018_07_01.models import * -from .v2018_11_01.models import * from .v2019_04_01.models import * From fbd7d776170c09b1589a58e77d1eecd81730dbd8 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 3 Jul 2019 23:00:09 +0000 Subject: [PATCH 2/4] Packaging update of azure-mgmt-storage --- sdk/storage/azure-mgmt-storage/README.rst | 2 +- sdk/storage/azure-mgmt-storage/setup.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/storage/azure-mgmt-storage/README.rst b/sdk/storage/azure-mgmt-storage/README.rst index e8a573239aa7..5b9e52dc5b2d 100644 --- a/sdk/storage/azure-mgmt-storage/README.rst +++ b/sdk/storage/azure-mgmt-storage/README.rst @@ -6,7 +6,7 @@ This is the Microsoft Azure Storage Management Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +This package has been tested with Python 2.7, 3.5, 3.6 and 3.7. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. diff --git a/sdk/storage/azure-mgmt-storage/setup.py b/sdk/storage/azure-mgmt-storage/setup.py index 8bef269c261e..8609a1e171a7 100644 --- a/sdk/storage/azure-mgmt-storage/setup.py +++ b/sdk/storage/azure-mgmt-storage/setup.py @@ -64,7 +64,6 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', From 1c9e7bf4be59388160e90b03c9049146e25bb962 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 11 Jul 2019 18:46:54 +0000 Subject: [PATCH 3/4] Generated from 0e6f149f5338b7fe8256adb51584a22aaecdb407 change type to number --- .../mgmt/storage/v2019_04_01/models/_models.py | 12 ++++++------ .../storage/v2019_04_01/models/_models_py3.py | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py index 8861ef04f4fe..e6545c5aad50 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py @@ -490,15 +490,15 @@ class DateAfterCreation(Model): :param days_after_creation_greater_than: Required. Integer value indicating the age in days after creation - :type days_after_creation_greater_than: int + :type days_after_creation_greater_than: float """ _validation = { - 'days_after_creation_greater_than': {'required': True, 'minimum': 0}, + 'days_after_creation_greater_than': {'required': True, 'minimum': 0, 'multiple': 1}, } _attribute_map = { - 'days_after_creation_greater_than': {'key': 'daysAfterCreationGreaterThan', 'type': 'int'}, + 'days_after_creation_greater_than': {'key': 'daysAfterCreationGreaterThan', 'type': 'float'}, } def __init__(self, **kwargs): @@ -513,15 +513,15 @@ class DateAfterModification(Model): :param days_after_modification_greater_than: Required. Integer value indicating the age in days after last modification - :type days_after_modification_greater_than: int + :type days_after_modification_greater_than: float """ _validation = { - 'days_after_modification_greater_than': {'required': True, 'minimum': 0}, + 'days_after_modification_greater_than': {'required': True, 'minimum': 0, 'multiple': 1}, } _attribute_map = { - 'days_after_modification_greater_than': {'key': 'daysAfterModificationGreaterThan', 'type': 'int'}, + 'days_after_modification_greater_than': {'key': 'daysAfterModificationGreaterThan', 'type': 'float'}, } def __init__(self, **kwargs): diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py index 42f4cb5b84f5..d54c1fdfa057 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py @@ -490,18 +490,18 @@ class DateAfterCreation(Model): :param days_after_creation_greater_than: Required. Integer value indicating the age in days after creation - :type days_after_creation_greater_than: int + :type days_after_creation_greater_than: float """ _validation = { - 'days_after_creation_greater_than': {'required': True, 'minimum': 0}, + 'days_after_creation_greater_than': {'required': True, 'minimum': 0, 'multiple': 1}, } _attribute_map = { - 'days_after_creation_greater_than': {'key': 'daysAfterCreationGreaterThan', 'type': 'int'}, + 'days_after_creation_greater_than': {'key': 'daysAfterCreationGreaterThan', 'type': 'float'}, } - def __init__(self, *, days_after_creation_greater_than: int, **kwargs) -> None: + def __init__(self, *, days_after_creation_greater_than: float, **kwargs) -> None: super(DateAfterCreation, self).__init__(**kwargs) self.days_after_creation_greater_than = days_after_creation_greater_than @@ -513,18 +513,18 @@ class DateAfterModification(Model): :param days_after_modification_greater_than: Required. Integer value indicating the age in days after last modification - :type days_after_modification_greater_than: int + :type days_after_modification_greater_than: float """ _validation = { - 'days_after_modification_greater_than': {'required': True, 'minimum': 0}, + 'days_after_modification_greater_than': {'required': True, 'minimum': 0, 'multiple': 1}, } _attribute_map = { - 'days_after_modification_greater_than': {'key': 'daysAfterModificationGreaterThan', 'type': 'int'}, + 'days_after_modification_greater_than': {'key': 'daysAfterModificationGreaterThan', 'type': 'float'}, } - def __init__(self, *, days_after_modification_greater_than: int, **kwargs) -> None: + def __init__(self, *, days_after_modification_greater_than: float, **kwargs) -> None: super(DateAfterModification, self).__init__(**kwargs) self.days_after_modification_greater_than = days_after_modification_greater_than From edaa8bfeef5588af4d05a0312ee7bc19faa252da Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 11 Jul 2019 22:08:22 +0000 Subject: [PATCH 4/4] Generated from 870609e2d01b2e64b589a0eb07e938f19282f4f0 Modify description, remove integer --- .../azure/mgmt/storage/v2019_04_01/models/_models.py | 8 ++++---- .../azure/mgmt/storage/v2019_04_01/models/_models_py3.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py index e6545c5aad50..1ba485897e42 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py @@ -488,8 +488,8 @@ class DateAfterCreation(Model): All required parameters must be populated in order to send to Azure. - :param days_after_creation_greater_than: Required. Integer value - indicating the age in days after creation + :param days_after_creation_greater_than: Required. Value indicating the + age in days after creation :type days_after_creation_greater_than: float """ @@ -511,8 +511,8 @@ class DateAfterModification(Model): All required parameters must be populated in order to send to Azure. - :param days_after_modification_greater_than: Required. Integer value - indicating the age in days after last modification + :param days_after_modification_greater_than: Required. Value indicating + the age in days after last modification :type days_after_modification_greater_than: float """ diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py index d54c1fdfa057..8fa4822992dd 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py @@ -488,8 +488,8 @@ class DateAfterCreation(Model): All required parameters must be populated in order to send to Azure. - :param days_after_creation_greater_than: Required. Integer value - indicating the age in days after creation + :param days_after_creation_greater_than: Required. Value indicating the + age in days after creation :type days_after_creation_greater_than: float """ @@ -511,8 +511,8 @@ class DateAfterModification(Model): All required parameters must be populated in order to send to Azure. - :param days_after_modification_greater_than: Required. Integer value - indicating the age in days after last modification + :param days_after_modification_greater_than: Required. Value indicating + the age in days after last modification :type days_after_modification_greater_than: float """