From 17397024d4f05748c7c18b4695bf285e1016a114 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 19 Feb 2019 14:46:50 -0800 Subject: [PATCH 1/2] [AutoPR hanaonazure/resource-manager] Add hwRevision field to HanaInstance definition (#4353) * Generated from 9ffa7e0a53d818040bd7837b807250518b533fac Add hwRevision field to HanaInstance definition * Packaging update of azure-mgmt-hanaonazure --- azure-mgmt-hanaonazure/README.rst | 19 ------------------- .../mgmt/hanaonazure/models/hana_instance.py | 5 +++++ .../hanaonazure/models/hana_instance_py3.py | 5 +++++ .../azure/mgmt/hanaonazure/version.py | 2 +- 4 files changed, 11 insertions(+), 20 deletions(-) diff --git a/azure-mgmt-hanaonazure/README.rst b/azure-mgmt-hanaonazure/README.rst index 107775d425a7..fa448c24655a 100644 --- a/azure-mgmt-hanaonazure/README.rst +++ b/azure-mgmt-hanaonazure/README.rst @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see For a more complete set of Azure libraries, see the `azure `__ bundle package. -Compatibility -============= - -**IMPORTANT**: If you have an earlier version of the azure package -(version < 1.0), you should uninstall it before installing this package. - -You can check the version using pip: - -.. code:: shell - - pip freeze - -If you see azure==0.11.0 (or any version below 1.0), uninstall it first: - -.. code:: shell - - pip uninstall azure - - Usage ===== diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py index 6ddd4ea189f0..9ea4b0bb5e78 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py @@ -48,6 +48,8 @@ class HanaInstance(Resource): ~azure.mgmt.hanaonazure.models.HanaInstancePowerStateEnum :ivar proximity_placement_group: Resource proximity placement group :vartype proximity_placement_group: str + :ivar hw_revision: Hardware revision of a HANA instance + :vartype hw_revision: str """ _validation = { @@ -59,6 +61,7 @@ class HanaInstance(Resource): 'hana_instance_id': {'readonly': True}, 'power_state': {'readonly': True}, 'proximity_placement_group': {'readonly': True}, + 'hw_revision': {'readonly': True}, } _attribute_map = { @@ -74,6 +77,7 @@ class HanaInstance(Resource): 'hana_instance_id': {'key': 'properties.hanaInstanceId', 'type': 'str'}, 'power_state': {'key': 'properties.powerState', 'type': 'str'}, 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'str'}, + 'hw_revision': {'key': 'properties.hwRevision', 'type': 'str'}, } def __init__(self, **kwargs): @@ -85,3 +89,4 @@ def __init__(self, **kwargs): self.hana_instance_id = None self.power_state = None self.proximity_placement_group = None + self.hw_revision = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance_py3.py index a947a62f4f69..6628a200b84f 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance_py3.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance_py3.py @@ -48,6 +48,8 @@ class HanaInstance(Resource): ~azure.mgmt.hanaonazure.models.HanaInstancePowerStateEnum :ivar proximity_placement_group: Resource proximity placement group :vartype proximity_placement_group: str + :ivar hw_revision: Hardware revision of a HANA instance + :vartype hw_revision: str """ _validation = { @@ -59,6 +61,7 @@ class HanaInstance(Resource): 'hana_instance_id': {'readonly': True}, 'power_state': {'readonly': True}, 'proximity_placement_group': {'readonly': True}, + 'hw_revision': {'readonly': True}, } _attribute_map = { @@ -74,6 +77,7 @@ class HanaInstance(Resource): 'hana_instance_id': {'key': 'properties.hanaInstanceId', 'type': 'str'}, 'power_state': {'key': 'properties.powerState', 'type': 'str'}, 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'str'}, + 'hw_revision': {'key': 'properties.hwRevision', 'type': 'str'}, } def __init__(self, *, hardware_profile=None, storage_profile=None, os_profile=None, network_profile=None, **kwargs) -> None: @@ -85,3 +89,4 @@ def __init__(self, *, hardware_profile=None, storage_profile=None, os_profile=No self.hana_instance_id = None self.power_state = None self.proximity_placement_group = None + self.hw_revision = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py index 5acf888ec624..e0ec669828cb 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.3.2" +VERSION = "0.1.0" From 725dcf9948b24b5d887841ba342aedac03e258d4 Mon Sep 17 00:00:00 2001 From: Isabella Cai Date: Thu, 21 Feb 2019 13:40:15 -0800 Subject: [PATCH 2/2] updated changelog and versioning --- azure-mgmt-hanaonazure/HISTORY.rst | 7 +++++++ azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/azure-mgmt-hanaonazure/HISTORY.rst b/azure-mgmt-hanaonazure/HISTORY.rst index deba98621b78..af129fd6e19a 100644 --- a/azure-mgmt-hanaonazure/HISTORY.rst +++ b/azure-mgmt-hanaonazure/HISTORY.rst @@ -3,6 +3,13 @@ Release History =============== +0.4.0 (2019-02-21) +++++++++++++++++++ + +**Features** + +- Model HanaInstance has a new parameter hw_revision + 0.3.2 (2019-01-29) ++++++++++++++++++ diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py index e0ec669828cb..7e15bc578c31 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py @@ -9,5 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" - +VERSION = "0.4.0"