-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from c812a4906aa6d74fcc75144fb569dfe1abed6873 (#1945)
Add disk details to storage profile Make possible to provide more detailed information about the storage devices attached to a given hana instance.
- Loading branch information
1 parent
3411051
commit 5be6553
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters