Skip to content

Commit

Permalink
[AutoPR] hanaonazure/resource-manager (#4967)
Browse files Browse the repository at this point in the history
* [AutoPR hanaonazure/resource-manager] Updating the schema to adhere to the new design changes (#4964)

* Generated from ce2ebf314d3f53f4efb4ff596f30055a60f9d766

Updating the schema to adhere to the new design changes

* Generated from a6fb84ae47cee79bebdd85c077728aee2e36c093

Updating the schema to adhere to the new design changes

* ChangeLog
  • Loading branch information
AutorestCI authored and lmazuel committed Apr 26, 2019
1 parent b8fac94 commit 3a37aa4
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 52 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.5.1 (2019-04-26)
++++++++++++++++++

**Bugfixes**

- Fixing incorrect RestAPI descriptio

0.5.0 (2019-04-15)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
HanaHardwareTypeNamesEnum,
HanaInstanceSizeNamesEnum,
HanaInstancePowerStateEnum,
HanaDatabaseContainersEnum,
)

__all__ = [
Expand All @@ -65,5 +64,4 @@
'HanaHardwareTypeNamesEnum',
'HanaInstanceSizeNamesEnum',
'HanaInstancePowerStateEnum',
'HanaDatabaseContainersEnum',
]
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,3 @@ class HanaInstancePowerStateEnum(str, Enum):
stopped = "stopped"
restarting = "restarting"
unknown = "unknown"


class HanaDatabaseContainersEnum(str, Enum):

single = "single"
multiple = "multiple"
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,16 @@
class MonitoringDetails(Model):
"""Details needed to monitor a Hana Instance.
:param hana_vnet: ARM ID of an Azure Vnet with access to the HANA
:param hana_subnet: ARM ID of an Azure Subnet with access to the HANA
instance.
:type hana_vnet: str
:type hana_subnet: str
:param hana_hostname: Hostname of the HANA Instance blade.
:type hana_hostname: str
:param hana_instance_num: A number between 00 and 99, stored as a string
to maintain leading zero.
:type hana_instance_num: str
:param db_container: Either single or multiple depending on the use of
MDC(Multiple Database Containers). Possible values include: 'single',
'multiple'. Default value: "single" .
:type db_container: str or
~azure.mgmt.hanaonazure.models.HanaDatabaseContainersEnum
:param hana_database: Name of the database itself. It only needs to be
specified if using MDC
:type hana_database: str
:param hana_db_name: Name of the database itself.
:type hana_db_name: str
:param hana_db_sql_port: The port number of the tenant DB. Used to connect
to the DB.
:type hana_db_sql_port: int
:param hana_db_username: Username for the HANA database to login to for
monitoring
:type hana_db_username: str
Expand All @@ -40,21 +34,19 @@ class MonitoringDetails(Model):
"""

_attribute_map = {
'hana_vnet': {'key': 'hanaVnet', 'type': 'str'},
'hana_subnet': {'key': 'hanaSubnet', 'type': 'str'},
'hana_hostname': {'key': 'hanaHostname', 'type': 'str'},
'hana_instance_num': {'key': 'hanaInstanceNum', 'type': 'str'},
'db_container': {'key': 'dbContainer', 'type': 'str'},
'hana_database': {'key': 'hanaDatabase', 'type': 'str'},
'hana_db_name': {'key': 'hanaDbName', 'type': 'str'},
'hana_db_sql_port': {'key': 'hanaDbSqlPort', 'type': 'int'},
'hana_db_username': {'key': 'hanaDbUsername', 'type': 'str'},
'hana_db_password': {'key': 'hanaDbPassword', 'type': 'str'},
}

def __init__(self, **kwargs):
super(MonitoringDetails, self).__init__(**kwargs)
self.hana_vnet = kwargs.get('hana_vnet', None)
self.hana_subnet = kwargs.get('hana_subnet', None)
self.hana_hostname = kwargs.get('hana_hostname', None)
self.hana_instance_num = kwargs.get('hana_instance_num', None)
self.db_container = kwargs.get('db_container', "single")
self.hana_database = kwargs.get('hana_database', None)
self.hana_db_name = kwargs.get('hana_db_name', None)
self.hana_db_sql_port = kwargs.get('hana_db_sql_port', None)
self.hana_db_username = kwargs.get('hana_db_username', None)
self.hana_db_password = kwargs.get('hana_db_password', None)
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,16 @@
class MonitoringDetails(Model):
"""Details needed to monitor a Hana Instance.
:param hana_vnet: ARM ID of an Azure Vnet with access to the HANA
:param hana_subnet: ARM ID of an Azure Subnet with access to the HANA
instance.
:type hana_vnet: str
:type hana_subnet: str
:param hana_hostname: Hostname of the HANA Instance blade.
:type hana_hostname: str
:param hana_instance_num: A number between 00 and 99, stored as a string
to maintain leading zero.
:type hana_instance_num: str
:param db_container: Either single or multiple depending on the use of
MDC(Multiple Database Containers). Possible values include: 'single',
'multiple'. Default value: "single" .
:type db_container: str or
~azure.mgmt.hanaonazure.models.HanaDatabaseContainersEnum
:param hana_database: Name of the database itself. It only needs to be
specified if using MDC
:type hana_database: str
:param hana_db_name: Name of the database itself.
:type hana_db_name: str
:param hana_db_sql_port: The port number of the tenant DB. Used to connect
to the DB.
:type hana_db_sql_port: int
:param hana_db_username: Username for the HANA database to login to for
monitoring
:type hana_db_username: str
Expand All @@ -40,21 +34,19 @@ class MonitoringDetails(Model):
"""

_attribute_map = {
'hana_vnet': {'key': 'hanaVnet', 'type': 'str'},
'hana_subnet': {'key': 'hanaSubnet', 'type': 'str'},
'hana_hostname': {'key': 'hanaHostname', 'type': 'str'},
'hana_instance_num': {'key': 'hanaInstanceNum', 'type': 'str'},
'db_container': {'key': 'dbContainer', 'type': 'str'},
'hana_database': {'key': 'hanaDatabase', 'type': 'str'},
'hana_db_name': {'key': 'hanaDbName', 'type': 'str'},
'hana_db_sql_port': {'key': 'hanaDbSqlPort', 'type': 'int'},
'hana_db_username': {'key': 'hanaDbUsername', 'type': 'str'},
'hana_db_password': {'key': 'hanaDbPassword', 'type': 'str'},
}

def __init__(self, *, hana_vnet: str=None, hana_hostname: str=None, hana_instance_num: str=None, db_container="single", hana_database: str=None, hana_db_username: str=None, hana_db_password: str=None, **kwargs) -> None:
def __init__(self, *, hana_subnet: str=None, hana_hostname: str=None, hana_db_name: str=None, hana_db_sql_port: int=None, hana_db_username: str=None, hana_db_password: str=None, **kwargs) -> None:
super(MonitoringDetails, self).__init__(**kwargs)
self.hana_vnet = hana_vnet
self.hana_subnet = hana_subnet
self.hana_hostname = hana_hostname
self.hana_instance_num = hana_instance_num
self.db_container = db_container
self.hana_database = hana_database
self.hana_db_name = hana_db_name
self.hana_db_sql_port = hana_db_sql_port
self.hana_db_username = hana_db_username
self.hana_db_password = hana_db_password
2 changes: 1 addition & 1 deletion azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.5.0"
VERSION = "0.5.1"

0 comments on commit 3a37aa4

Please sign in to comment.