Skip to content

Commit 601b4a7

Browse files
authored
azure-mgmt-hanaonazure 0.1.1 (#2027)
* 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. * Generated from c812a4906aa6d74fcc75144fb569dfe1abed6873 (#2001) Add disk details to storage profile Make possible to provide more detailed information about the storage devices attached to a given hana instance. * Generated from 7c7a22dda64c00af26b50e6cc8e20d12a3c39d70 (#2543) Update HanaOnAzure example files for change Update HanaInstances_List.json Update HanaInstances_ListByResourceGroup.json * Generated from aae33879dd931f84a39c4f29856f25a4929becb5 (#2565) HanaOnAzure: Remove incorrectly-added SKU from enum No examples need to be updated because none made use of the incorrect SKU * HanaOnAzure 0.1.1
1 parent 3411051 commit 601b4a7

File tree

10 files changed

+89
-12
lines changed

10 files changed

+89
-12
lines changed

azure-mgmt-hanaonazure/HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
Release History
44
===============
55

6+
0.1.1 (2018-05-17)
7+
++++++++++++++++++
8+
9+
- Update HanaHardwareTypeNamesEnum and HanaInstanceSizeNamesEnum
10+
- Add os_disks to storage_profile
11+
612
0.1.0 (2018-01-17)
713
++++++++++++++++++
814

azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from .resource import Resource
1313
from .hardware_profile import HardwareProfile
14+
from .disk import Disk
1415
from .storage_profile import StorageProfile
1516
from .os_profile import OSProfile
1617
from .ip_address import IpAddress
@@ -29,6 +30,7 @@
2930
__all__ = [
3031
'Resource',
3132
'HardwareProfile',
33+
'Disk',
3234
'StorageProfile',
3335
'OSProfile',
3436
'IpAddress',
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class Disk(Model):
16+
"""Specifies the disk information fo the HANA instance.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:param name: The disk name.
22+
:type name: str
23+
:param disk_size_gb: Specifies the size of an empty data disk in
24+
gigabytes.
25+
:type disk_size_gb: int
26+
:ivar lun: Specifies the logical unit number of the data disk. This value
27+
is used to identify data disks within the VM and therefore must be unique
28+
for each data disk attached to a VM.
29+
:vartype lun: int
30+
"""
31+
32+
_validation = {
33+
'lun': {'readonly': True},
34+
}
35+
36+
_attribute_map = {
37+
'name': {'key': 'name', 'type': 'str'},
38+
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
39+
'lun': {'key': 'lun', 'type': 'int'},
40+
}
41+
42+
def __init__(self, name=None, disk_size_gb=None):
43+
super(Disk, self).__init__()
44+
self.name = name
45+
self.disk_size_gb = disk_size_gb
46+
self.lun = None

azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_management_client_enums.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
class HanaHardwareTypeNamesEnum(Enum):
1616

1717
cisco_ucs = "Cisco_UCS"
18+
hpe = "HPE"
1819

1920

2021
class HanaInstanceSizeNamesEnum(Enum):
@@ -25,3 +26,14 @@ class HanaInstanceSizeNamesEnum(Enum):
2526
s144 = "S144"
2627
s192 = "S192"
2728
s192m = "S192m"
29+
s192xm = "S192xm"
30+
s384 = "S384"
31+
s384m = "S384m"
32+
s384xm = "S384xm"
33+
s384xxm = "S384xxm"
34+
s576m = "S576m"
35+
s576xm = "S576xm"
36+
s768 = "S768"
37+
s768m = "S768m"
38+
s768xm = "S768xm"
39+
s960m = "S960m"

azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ class HardwareProfile(Model):
1818
Variables are only populated by the server, and will be ignored when
1919
sending a request.
2020
21-
:ivar hardware_type: Name of the hardware type (vendor and/or thrie
22-
product name). Possible values include: 'Cisco_UCS'
21+
:ivar hardware_type: Name of the hardware type (vendor and/or their
22+
product name). Possible values include: 'Cisco_UCS', 'HPE'
2323
:vartype hardware_type: str or
2424
~azure.mgmt.hanaonazure.models.HanaHardwareTypeNamesEnum
2525
:ivar hana_instance_size: Specifies the HANA instance SKU. Possible values
26-
include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m'
26+
include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm',
27+
'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m',
28+
'S768xm', 'S960m'
2729
:vartype hana_instance_size: str or
2830
~azure.mgmt.hanaonazure.models.HanaInstanceSizeNamesEnum
2931
"""

azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/ip_address.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class IpAddress(Model):
16-
"""IpAddress.
16+
"""Specifies the IP address of the network interaface.
1717
1818
Variables are only populated by the server, and will be ignored when
1919
sending a request.

azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/storage_profile.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class StorageProfile(Model):
2020
2121
:ivar nfs_ip_address: IP Address to connect to storage.
2222
:vartype nfs_ip_address: str
23+
:param os_disks: Specifies information about the operating system disk
24+
used by the hana instance.
25+
:type os_disks: list[~azure.mgmt.hanaonazure.models.Disk]
2326
"""
2427

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

2932
_attribute_map = {
3033
'nfs_ip_address': {'key': 'nfsIpAddress', 'type': 'str'},
34+
'os_disks': {'key': 'osDisks', 'type': '[Disk]'},
3135
}
3236

33-
def __init__(self):
37+
def __init__(self, os_disks=None):
3438
super(StorageProfile, self).__init__()
3539
self.nfs_ip_address = None
40+
self.os_disks = os_disks

azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/hana_instances_operations.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class HanaInstancesOperations(object):
2121
:param client: Client for service requests.
2222
:param config: Configuration of service client.
2323
:param serializer: An object model serializer.
24-
:param deserializer: An objec model deserializer.
24+
:param deserializer: An object model deserializer.
2525
:ivar api_version: Client API version. Constant value: "2017-11-03-preview".
2626
"""
2727

@@ -59,7 +59,7 @@ def internal_paging(next_link=None, raw=False):
5959

6060
if not next_link:
6161
# Construct URL
62-
url = '/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/hanaInstances'
62+
url = self.list.metadata['url']
6363
path_format_arguments = {
6464
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
6565
}
@@ -102,6 +102,7 @@ def internal_paging(next_link=None, raw=False):
102102
return client_raw_response
103103

104104
return deserialized
105+
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/hanaInstances'}
105106

106107
def list_by_resource_group(
107108
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
@@ -129,7 +130,7 @@ def internal_paging(next_link=None, raw=False):
129130

130131
if not next_link:
131132
# Construct URL
132-
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances'
133+
url = self.list_by_resource_group.metadata['url']
133134
path_format_arguments = {
134135
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
135136
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str')
@@ -173,6 +174,7 @@ def internal_paging(next_link=None, raw=False):
173174
return client_raw_response
174175

175176
return deserialized
177+
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances'}
176178

177179
def get(
178180
self, resource_group_name, hana_instance_name, custom_headers=None, raw=False, **operation_config):
@@ -197,7 +199,7 @@ def get(
197199
:class:`ErrorResponseException<azure.mgmt.hanaonazure.models.ErrorResponseException>`
198200
"""
199201
# Construct URL
200-
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}'
202+
url = self.get.metadata['url']
201203
path_format_arguments = {
202204
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
203205
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
@@ -236,3 +238,4 @@ def get(
236238
return client_raw_response
237239

238240
return deserialized
241+
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}'}

azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/operations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Operations(object):
2121
:param client: Client for service requests.
2222
:param config: Configuration of service client.
2323
:param serializer: An object model serializer.
24-
:param deserializer: An objec model deserializer.
24+
:param deserializer: An object model deserializer.
2525
:ivar api_version: Client API version. Constant value: "2017-11-03-preview".
2626
"""
2727

@@ -55,7 +55,7 @@ def internal_paging(next_link=None, raw=False):
5555

5656
if not next_link:
5757
# Construct URL
58-
url = '/providers/Microsoft.HanaOnAzure/operations'
58+
url = self.list.metadata['url']
5959

6060
# Construct parameters
6161
query_parameters = {}
@@ -94,3 +94,4 @@ def internal_paging(next_link=None, raw=False):
9494
return client_raw_response
9595

9696
return deserialized
97+
list.metadata = {'url': '/providers/Microsoft.HanaOnAzure/operations'}

azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "0.1.0"
12+
VERSION = "0.1.1"
1313

0 commit comments

Comments
 (0)