Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class HanaInstance(Resource):
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar location: Resource location
:vartype location: str
:param location: Resource location
:type location: str
:ivar tags: Resource tags
:vartype tags: dict[str, str]
:param hardware_profile: Specifies the hardware settings for the HANA
Expand All @@ -50,9 +50,9 @@ class HanaInstance(Resource):
:vartype proximity_placement_group: str
:ivar hw_revision: Hardware revision of a HANA instance
:vartype hw_revision: str
:ivar partner_node_id: ARM ID of another HanaInstance that will share a
:param partner_node_id: ARM ID of another HanaInstance that will share a
network with this HanaInstance
:vartype partner_node_id: str
:type partner_node_id: str
:ivar provisioning_state: State of provisioning of the HanaInstance.
Possible values include: 'Accepted', 'Creating', 'Updating', 'Failed',
'Succeeded', 'Deleting', 'Migrating'
Expand All @@ -64,13 +64,11 @@ class HanaInstance(Resource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'readonly': True},
'tags': {'readonly': True},
'hana_instance_id': {'readonly': True},
'power_state': {'readonly': True},
'proximity_placement_group': {'readonly': True},
'hw_revision': {'readonly': True},
'partner_node_id': {'readonly': True},
'provisioning_state': {'readonly': True},
}

Expand Down Expand Up @@ -102,5 +100,5 @@ def __init__(self, **kwargs):
self.power_state = None
self.proximity_placement_group = None
self.hw_revision = None
self.partner_node_id = None
self.partner_node_id = kwargs.get('partner_node_id', None)
self.provisioning_state = None
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class HanaInstance(Resource):
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar location: Resource location
:vartype location: str
:param location: Resource location
:type location: str
:ivar tags: Resource tags
:vartype tags: dict[str, str]
:param hardware_profile: Specifies the hardware settings for the HANA
Expand All @@ -50,9 +50,9 @@ class HanaInstance(Resource):
:vartype proximity_placement_group: str
:ivar hw_revision: Hardware revision of a HANA instance
:vartype hw_revision: str
:ivar partner_node_id: ARM ID of another HanaInstance that will share a
:param partner_node_id: ARM ID of another HanaInstance that will share a
network with this HanaInstance
:vartype partner_node_id: str
:type partner_node_id: str
:ivar provisioning_state: State of provisioning of the HanaInstance.
Possible values include: 'Accepted', 'Creating', 'Updating', 'Failed',
'Succeeded', 'Deleting', 'Migrating'
Expand All @@ -64,13 +64,11 @@ class HanaInstance(Resource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'readonly': True},
'tags': {'readonly': True},
'hana_instance_id': {'readonly': True},
'power_state': {'readonly': True},
'proximity_placement_group': {'readonly': True},
'hw_revision': {'readonly': True},
'partner_node_id': {'readonly': True},
'provisioning_state': {'readonly': True},
}

Expand All @@ -92,8 +90,8 @@ class HanaInstance(Resource):
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
}

def __init__(self, *, hardware_profile=None, storage_profile=None, os_profile=None, network_profile=None, **kwargs) -> None:
super(HanaInstance, self).__init__(**kwargs)
def __init__(self, *, location: str=None, hardware_profile=None, storage_profile=None, os_profile=None, network_profile=None, partner_node_id: str=None, **kwargs) -> None:
super(HanaInstance, self).__init__(location=location, **kwargs)
self.hardware_profile = hardware_profile
self.storage_profile = storage_profile
self.os_profile = os_profile
Expand All @@ -102,5 +100,5 @@ def __init__(self, *, hardware_profile=None, storage_profile=None, os_profile=No
self.power_state = None
self.proximity_placement_group = None
self.hw_revision = None
self.partner_node_id = None
self.partner_node_id = partner_node_id
self.provisioning_state = None
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,14 @@
class IpAddress(Model):
"""Specifies the IP address of the network interface.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar ip_address: Specifies the IP address of the network interface.
:vartype ip_address: str
:param ip_address: Specifies the IP address of the network interface.
:type ip_address: str
"""

_validation = {
'ip_address': {'readonly': True},
}

_attribute_map = {
'ip_address': {'key': 'ipAddress', 'type': 'str'},
}

def __init__(self, **kwargs):
super(IpAddress, self).__init__(**kwargs)
self.ip_address = None
self.ip_address = kwargs.get('ip_address', None)
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,14 @@
class IpAddress(Model):
"""Specifies the IP address of the network interface.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar ip_address: Specifies the IP address of the network interface.
:vartype ip_address: str
:param ip_address: Specifies the IP address of the network interface.
:type ip_address: str
"""

_validation = {
'ip_address': {'readonly': True},
}

_attribute_map = {
'ip_address': {'key': 'ipAddress', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
def __init__(self, *, ip_address: str=None, **kwargs) -> None:
super(IpAddress, self).__init__(**kwargs)
self.ip_address = None
self.ip_address = ip_address
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,20 @@ class OSProfile(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar computer_name: Specifies the host OS name of the HANA instance.
:vartype computer_name: str
:param computer_name: Specifies the host OS name of the HANA instance.
:type computer_name: str
:ivar os_type: This property allows you to specify the type of the OS.
:vartype os_type: str
:ivar version: Specifies version of operating system.
:vartype version: str
:ivar ssh_public_key: Specifies the SSH public key used to access the
:param ssh_public_key: Specifies the SSH public key used to access the
operating system.
:vartype ssh_public_key: str
:type ssh_public_key: str
"""

_validation = {
'computer_name': {'readonly': True},
'os_type': {'readonly': True},
'version': {'readonly': True},
'ssh_public_key': {'readonly': True},
}

_attribute_map = {
Expand All @@ -45,7 +43,7 @@ class OSProfile(Model):

def __init__(self, **kwargs):
super(OSProfile, self).__init__(**kwargs)
self.computer_name = None
self.computer_name = kwargs.get('computer_name', None)
self.os_type = None
self.version = None
self.ssh_public_key = None
self.ssh_public_key = kwargs.get('ssh_public_key', None)
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,20 @@ class OSProfile(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar computer_name: Specifies the host OS name of the HANA instance.
:vartype computer_name: str
:param computer_name: Specifies the host OS name of the HANA instance.
:type computer_name: str
:ivar os_type: This property allows you to specify the type of the OS.
:vartype os_type: str
:ivar version: Specifies version of operating system.
:vartype version: str
:ivar ssh_public_key: Specifies the SSH public key used to access the
:param ssh_public_key: Specifies the SSH public key used to access the
operating system.
:vartype ssh_public_key: str
:type ssh_public_key: str
"""

_validation = {
'computer_name': {'readonly': True},
'os_type': {'readonly': True},
'version': {'readonly': True},
'ssh_public_key': {'readonly': True},
}

_attribute_map = {
Expand All @@ -43,9 +41,9 @@ class OSProfile(Model):
'ssh_public_key': {'key': 'sshPublicKey', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
def __init__(self, *, computer_name: str=None, ssh_public_key: str=None, **kwargs) -> None:
super(OSProfile, self).__init__(**kwargs)
self.computer_name = None
self.computer_name = computer_name
self.os_type = None
self.version = None
self.ssh_public_key = None
self.ssh_public_key = ssh_public_key
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Resource(Model):
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar location: Resource location
:vartype location: str
:param location: Resource location
:type location: str
:ivar tags: Resource tags
:vartype tags: dict[str, str]
"""
Expand All @@ -34,7 +34,6 @@ class Resource(Model):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'readonly': True},
'tags': {'readonly': True},
}

Expand All @@ -51,5 +50,5 @@ def __init__(self, **kwargs):
self.id = None
self.name = None
self.type = None
self.location = None
self.location = kwargs.get('location', None)
self.tags = None
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Resource(Model):
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar location: Resource location
:vartype location: str
:param location: Resource location
:type location: str
:ivar tags: Resource tags
:vartype tags: dict[str, str]
"""
Expand All @@ -34,7 +34,6 @@ class Resource(Model):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'readonly': True},
'tags': {'readonly': True},
}

Expand All @@ -46,10 +45,10 @@ class Resource(Model):
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, **kwargs) -> None:
def __init__(self, *, location: str=None, **kwargs) -> None:
super(Resource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.location = None
self.location = location
self.tags = None
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.7.0"
VERSION = "0.6.0"
Copy link

Choose a reason for hiding this comment

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

Why is this version getting downgraded?