Skip to content

Commit

Permalink
[AutoPR] hanaonazure/resource-manager (#4390)
Browse files Browse the repository at this point in the history
* [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

* updated changelog and versioning
  • Loading branch information
AutorestCI authored and lmazuel committed Feb 25, 2019
1 parent 92c9f6f commit 4907e5e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 21 deletions.
7 changes: 7 additions & 0 deletions azure-mgmt-hanaonazure/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
++++++++++++++++++

Expand Down
19 changes: 0 additions & 19 deletions azure-mgmt-hanaonazure/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/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
=====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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):
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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:
Expand All @@ -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
3 changes: 1 addition & 2 deletions azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.3.2"

VERSION = "0.4.0"

0 comments on commit 4907e5e

Please sign in to comment.