Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR hanaonazure/resource-manager] Add Hana storage information #1945

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 @@ -11,6 +11,7 @@

from .resource import Resource
from .hardware_profile import HardwareProfile
from .disk import Disk
from .storage_profile import StorageProfile
from .os_profile import OSProfile
from .ip_address import IpAddress
Expand All @@ -29,6 +30,7 @@
__all__ = [
'Resource',
'HardwareProfile',
'Disk',
'StorageProfile',
'OSProfile',
'IpAddress',
Expand Down
46 changes: 46 additions & 0 deletions azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class Disk(Model):
"""Specifies the disk information fo the HANA instance.

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

:param name: The disk name.
:type name: str
:param disk_size_gb: Specifies the size of an empty data disk in
gigabytes.
:type disk_size_gb: int
:ivar lun: Specifies the logical unit number of the data disk. This value
is used to identify data disks within the VM and therefore must be unique
for each data disk attached to a VM.
:vartype lun: int
"""

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

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'lun': {'key': 'lun', 'type': 'int'},
}

def __init__(self, name=None, disk_size_gb=None):
super(Disk, self).__init__()
self.name = name
self.disk_size_gb = disk_size_gb
self.lun = None
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class IpAddress(Model):
"""IpAddress.
"""Specifies the IP address of the network interaface.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class StorageProfile(Model):

:ivar nfs_ip_address: IP Address to connect to storage.
:vartype nfs_ip_address: str
:param os_disks: Specifies information about the operating system disk
used by the hana instance.
:type os_disks: list[~azure.mgmt.hanaonazure.models.Disk]
"""

_validation = {
Expand All @@ -28,8 +31,10 @@ class StorageProfile(Model):

_attribute_map = {
'nfs_ip_address': {'key': 'nfsIpAddress', 'type': 'str'},
'os_disks': {'key': 'osDisks', 'type': '[Disk]'},
}

def __init__(self):
def __init__(self, os_disks=None):
super(StorageProfile, self).__init__()
self.nfs_ip_address = None
self.os_disks = os_disks