From f83e91602eae0acb0aad234b643fbc68ce8780af Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 2 Aug 2018 14:48:16 -0700 Subject: [PATCH 1/2] [AutoPR hanaonazure/resource-manager] Added power state to Hana Instance (#3069) * Generated from 49201e1122012eafd505ebcf228a908f85c9146f Added power state to Hana Instance * Generated from b9bb485143557a4cd2d295adde6dcfdd74b741da moved power state under properties * Generated from cd61ee2c6bc8da6444de839e4c5715c815031587 added power state enum --- .../hanaonazure/hana_management_client.py | 6 +- .../azure/mgmt/hanaonazure/models/__init__.py | 37 ++++++--- .../azure/mgmt/hanaonazure/models/disk.py | 8 +- .../azure/mgmt/hanaonazure/models/disk_py3.py | 46 +++++++++++ .../azure/mgmt/hanaonazure/models/display.py | 6 +- .../mgmt/hanaonazure/models/display_py3.py | 67 +++++++++++++++ .../mgmt/hanaonazure/models/error_response.py | 8 +- .../hanaonazure/models/error_response_py3.py | 45 ++++++++++ .../mgmt/hanaonazure/models/hana_instance.py | 19 +++-- .../hanaonazure/models/hana_instance_py3.py | 82 +++++++++++++++++++ .../models/hana_management_client_enums.py | 14 +++- .../hanaonazure/models/hardware_profile.py | 4 +- .../models/hardware_profile_py3.py | 46 +++++++++++ .../mgmt/hanaonazure/models/ip_address.py | 4 +- .../mgmt/hanaonazure/models/ip_address_py3.py | 35 ++++++++ .../hanaonazure/models/network_profile.py | 6 +- .../hanaonazure/models/network_profile_py3.py | 41 ++++++++++ .../mgmt/hanaonazure/models/operation.py | 6 +- .../mgmt/hanaonazure/models/operation_py3.py | 41 ++++++++++ .../mgmt/hanaonazure/models/os_profile.py | 4 +- .../mgmt/hanaonazure/models/os_profile_py3.py | 45 ++++++++++ .../azure/mgmt/hanaonazure/models/resource.py | 4 +- .../mgmt/hanaonazure/models/resource_py3.py | 55 +++++++++++++ .../hanaonazure/models/storage_profile.py | 6 +- .../hanaonazure/models/storage_profile_py3.py | 40 +++++++++ .../operations/hana_instances_operations.py | 20 ++--- .../mgmt/hanaonazure/operations/operations.py | 7 +- .../azure/mgmt/hanaonazure/version.py | 2 +- 28 files changed, 638 insertions(+), 66 deletions(-) create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/display_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/error_response_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/ip_address_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/network_profile_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/operation_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/resource_py3.py create mode 100644 azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/storage_profile_py3.py diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/hana_management_client.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/hana_management_client.py index 4ae425fe40a4..8b660e12b291 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/hana_management_client.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/hana_management_client.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION @@ -52,7 +52,7 @@ def __init__( self.subscription_id = subscription_id -class HanaManagementClient(object): +class HanaManagementClient(SDKClient): """HANA on Azure Client :ivar config: Configuration for client. @@ -77,7 +77,7 @@ def __init__( self, credentials, subscription_id, base_url=None): self.config = HanaManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + super(HanaManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self.api_version = '2017-11-03-preview' diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py index 97f5996fb578..92a1fb68367c 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py @@ -9,22 +9,36 @@ # regenerated. # -------------------------------------------------------------------------- -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 -from .network_profile import NetworkProfile -from .hana_instance import HanaInstance -from .display import Display -from .operation import Operation -from .error_response import ErrorResponse, ErrorResponseException +try: + from .resource_py3 import Resource + from .hardware_profile_py3 import HardwareProfile + from .disk_py3 import Disk + from .storage_profile_py3 import StorageProfile + from .os_profile_py3 import OSProfile + from .ip_address_py3 import IpAddress + from .network_profile_py3 import NetworkProfile + from .hana_instance_py3 import HanaInstance + from .display_py3 import Display + from .operation_py3 import Operation + from .error_response_py3 import ErrorResponse, ErrorResponseException +except (SyntaxError, ImportError): + 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 + from .network_profile import NetworkProfile + from .hana_instance import HanaInstance + from .display import Display + from .operation import Operation + from .error_response import ErrorResponse, ErrorResponseException from .operation_paged import OperationPaged from .hana_instance_paged import HanaInstancePaged from .hana_management_client_enums import ( HanaHardwareTypeNamesEnum, HanaInstanceSizeNamesEnum, + HanaInstancePowerStateEnum, ) __all__ = [ @@ -43,4 +57,5 @@ 'HanaInstancePaged', 'HanaHardwareTypeNamesEnum', 'HanaInstanceSizeNamesEnum', + 'HanaInstancePowerStateEnum', ] diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk.py index 3f532722b1c9..9f1a2df57b27 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk.py @@ -39,8 +39,8 @@ class Disk(Model): '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 + def __init__(self, **kwargs): + super(Disk, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.disk_size_gb = kwargs.get('disk_size_gb', None) self.lun = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk_py3.py new file mode 100644 index 000000000000..aa72032ca814 --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk_py3.py @@ -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: str=None, disk_size_gb: int=None, **kwargs) -> None: + super(Disk, self).__init__(**kwargs) + self.name = name + self.disk_size_gb = disk_size_gb + self.lun = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/display.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/display.py index 417c784cf736..25baa3464325 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/display.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/display.py @@ -20,7 +20,7 @@ class Display(Model): :ivar provider: The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. - Use Title Casing. Begin with “Microsoft” for 1st party services. + Use Title Casing. Begin with "Microsoft" for 1st party services. :vartype provider: str :ivar resource: The localized friendly form of the resource type related to this action/operation. This form should match the public documentation @@ -58,8 +58,8 @@ class Display(Model): 'origin': {'key': 'origin', 'type': 'str'}, } - def __init__(self): - super(Display, self).__init__() + def __init__(self, **kwargs): + super(Display, self).__init__(**kwargs) self.provider = None self.resource = None self.operation = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/display_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/display_py3.py new file mode 100644 index 000000000000..311420d15b7e --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/display_py3.py @@ -0,0 +1,67 @@ +# 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 Display(Model): + """Detailed HANA operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provider: The localized friendly form of the resource provider name. + This form is also expected to include the publisher/company responsible. + Use Title Casing. Begin with "Microsoft" for 1st party services. + :vartype provider: str + :ivar resource: The localized friendly form of the resource type related + to this action/operation. This form should match the public documentation + for the resource provider. Use Title Casing. For examples, refer to the + “name” section. + :vartype resource: str + :ivar operation: The localized friendly name for the operation as shown to + the user. This name should be concise (to fit in drop downs), but clear + (self-documenting). Use Title Casing and include the entity/resource to + which it applies. + :vartype operation: str + :ivar description: The localized friendly description for the operation as + shown to the user. This description should be thorough, yet concise. It + will be used in tool-tips and detailed views. + :vartype description: str + :ivar origin: The intended executor of the operation; governs the display + of the operation in the RBAC UX and the audit logs UX. Default value is + 'user,system' + :vartype origin: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + 'origin': {'readonly': True}, + } + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Display, self).__init__(**kwargs) + self.provider = None + self.resource = None + self.operation = None + self.description = None + self.origin = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/error_response.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/error_response.py index 1a399569811b..b3d490a49503 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/error_response.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/error_response.py @@ -27,10 +27,10 @@ class ErrorResponse(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, code=None, message=None): - super(ErrorResponse, self).__init__() - self.code = code - self.message = message + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) class ErrorResponseException(HttpOperationError): diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/error_response_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/error_response_py3.py new file mode 100644 index 000000000000..5504940d6873 --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/error_response_py3.py @@ -0,0 +1,45 @@ +# 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 +from msrest.exceptions import HttpOperationError + + +class ErrorResponse(Model): + """Describes the format of Error response. + + :param code: Error code + :type code: str + :param message: Error message indicating why the operation failed. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.code = code + self.message = message + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py index e6f634ef83c6..c5e5d27c6bfc 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance.py @@ -42,6 +42,10 @@ class HanaInstance(Resource): :type network_profile: ~azure.mgmt.hanaonazure.models.NetworkProfile :ivar hana_instance_id: Specifies the HANA instance unique ID. :vartype hana_instance_id: str + :ivar power_state: Resource power state. Possible values include: + 'starting', 'started', 'stopping', 'stopped', 'restarting', 'unknown' + :vartype power_state: str or + ~azure.mgmt.hanaonazure.models.HanaInstancePowerStateEnum """ _validation = { @@ -51,6 +55,7 @@ class HanaInstance(Resource): 'location': {'readonly': True}, 'tags': {'readonly': True}, 'hana_instance_id': {'readonly': True}, + 'power_state': {'readonly': True}, } _attribute_map = { @@ -64,12 +69,14 @@ class HanaInstance(Resource): 'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'}, 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, 'hana_instance_id': {'key': 'properties.hanaInstanceId', 'type': 'str'}, + 'power_state': {'key': 'properties.powerState', 'type': 'str'}, } - def __init__(self, hardware_profile=None, storage_profile=None, os_profile=None, network_profile=None): - super(HanaInstance, self).__init__() - self.hardware_profile = hardware_profile - self.storage_profile = storage_profile - self.os_profile = os_profile - self.network_profile = network_profile + def __init__(self, **kwargs): + super(HanaInstance, self).__init__(**kwargs) + self.hardware_profile = kwargs.get('hardware_profile', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.os_profile = kwargs.get('os_profile', None) + self.network_profile = kwargs.get('network_profile', None) self.hana_instance_id = None + self.power_state = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance_py3.py new file mode 100644 index 000000000000..665d12f92664 --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_instance_py3.py @@ -0,0 +1,82 @@ +# 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 .resource_py3 import Resource + + +class HanaInstance(Resource): + """HANA instance info on Azure (ARM properties and HANA properties). + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :ivar location: Resource location + :vartype location: str + :ivar tags: Resource tags + :vartype tags: dict[str, str] + :param hardware_profile: Specifies the hardware settings for the HANA + instance. + :type hardware_profile: ~azure.mgmt.hanaonazure.models.HardwareProfile + :param storage_profile: Specifies the storage settings for the HANA + instance disks. + :type storage_profile: ~azure.mgmt.hanaonazure.models.StorageProfile + :param os_profile: Specifies the operating system settings for the HANA + instance. + :type os_profile: ~azure.mgmt.hanaonazure.models.OSProfile + :param network_profile: Specifies the network settings for the HANA + instance. + :type network_profile: ~azure.mgmt.hanaonazure.models.NetworkProfile + :ivar hana_instance_id: Specifies the HANA instance unique ID. + :vartype hana_instance_id: str + :ivar power_state: Resource power state. Possible values include: + 'starting', 'started', 'stopping', 'stopped', 'restarting', 'unknown' + :vartype power_state: str or + ~azure.mgmt.hanaonazure.models.HanaInstancePowerStateEnum + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + 'hana_instance_id': {'readonly': True}, + 'power_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'hana_instance_id': {'key': 'properties.hanaInstanceId', 'type': 'str'}, + 'power_state': {'key': 'properties.powerState', 'type': 'str'}, + } + + def __init__(self, *, hardware_profile=None, storage_profile=None, os_profile=None, network_profile=None, **kwargs) -> None: + super(HanaInstance, self).__init__(**kwargs) + self.hardware_profile = hardware_profile + self.storage_profile = storage_profile + self.os_profile = os_profile + self.network_profile = network_profile + self.hana_instance_id = None + self.power_state = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_management_client_enums.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_management_client_enums.py index bff5c84bf32f..14c2d7027d1a 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_management_client_enums.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hana_management_client_enums.py @@ -12,13 +12,13 @@ from enum import Enum -class HanaHardwareTypeNamesEnum(Enum): +class HanaHardwareTypeNamesEnum(str, Enum): cisco_ucs = "Cisco_UCS" hpe = "HPE" -class HanaInstanceSizeNamesEnum(Enum): +class HanaInstanceSizeNamesEnum(str, Enum): s72m = "S72m" s144m = "S144m" @@ -37,3 +37,13 @@ class HanaInstanceSizeNamesEnum(Enum): s768m = "S768m" s768xm = "S768xm" s960m = "S960m" + + +class HanaInstancePowerStateEnum(str, Enum): + + starting = "starting" + started = "started" + stopping = "stopping" + stopped = "stopped" + restarting = "restarting" + unknown = "unknown" diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile.py index 05d162766fc5..ed283992ccfa 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile.py @@ -40,7 +40,7 @@ class HardwareProfile(Model): 'hana_instance_size': {'key': 'hanaInstanceSize', 'type': 'str'}, } - def __init__(self): - super(HardwareProfile, self).__init__() + def __init__(self, **kwargs): + super(HardwareProfile, self).__init__(**kwargs) self.hardware_type = None self.hana_instance_size = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile_py3.py new file mode 100644 index 000000000000..09adb7de1e60 --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile_py3.py @@ -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 HardwareProfile(Model): + """Specifies the hardware settings for the HANA instance. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar hardware_type: Name of the hardware type (vendor and/or their + product name). Possible values include: 'Cisco_UCS', 'HPE' + :vartype hardware_type: str or + ~azure.mgmt.hanaonazure.models.HanaHardwareTypeNamesEnum + :ivar hana_instance_size: Specifies the HANA instance SKU. Possible values + include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', + 'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m', + 'S768xm', 'S960m' + :vartype hana_instance_size: str or + ~azure.mgmt.hanaonazure.models.HanaInstanceSizeNamesEnum + """ + + _validation = { + 'hardware_type': {'readonly': True}, + 'hana_instance_size': {'readonly': True}, + } + + _attribute_map = { + 'hardware_type': {'key': 'hardwareType', 'type': 'str'}, + 'hana_instance_size': {'key': 'hanaInstanceSize', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(HardwareProfile, self).__init__(**kwargs) + self.hardware_type = None + self.hana_instance_size = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/ip_address.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/ip_address.py index a69655326ef0..a0d1cb8961ed 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/ip_address.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/ip_address.py @@ -30,6 +30,6 @@ class IpAddress(Model): 'ip_address': {'key': 'ipAddress', 'type': 'str'}, } - def __init__(self): - super(IpAddress, self).__init__() + def __init__(self, **kwargs): + super(IpAddress, self).__init__(**kwargs) self.ip_address = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/ip_address_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/ip_address_py3.py new file mode 100644 index 000000000000..92c31926f971 --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/ip_address_py3.py @@ -0,0 +1,35 @@ +# 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 IpAddress(Model): + """Specifies the IP address of the network interaface. + + 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 + """ + + _validation = { + 'ip_address': {'readonly': True}, + } + + _attribute_map = { + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(IpAddress, self).__init__(**kwargs) + self.ip_address = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/network_profile.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/network_profile.py index b0efb56d7d5a..ba74ee635792 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/network_profile.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/network_profile.py @@ -35,7 +35,7 @@ class NetworkProfile(Model): 'circuit_id': {'key': 'circuitId', 'type': 'str'}, } - def __init__(self, network_interfaces=None): - super(NetworkProfile, self).__init__() - self.network_interfaces = network_interfaces + def __init__(self, **kwargs): + super(NetworkProfile, self).__init__(**kwargs) + self.network_interfaces = kwargs.get('network_interfaces', None) self.circuit_id = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/network_profile_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/network_profile_py3.py new file mode 100644 index 000000000000..42eeddf025c7 --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/network_profile_py3.py @@ -0,0 +1,41 @@ +# 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 NetworkProfile(Model): + """Specifies the network settings for the HANA instance disks. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param network_interfaces: Specifies the network interfaces for the HANA + instance. + :type network_interfaces: list[~azure.mgmt.hanaonazure.models.IpAddress] + :ivar circuit_id: Specifies the circuit id for connecting to express + route. + :vartype circuit_id: str + """ + + _validation = { + 'circuit_id': {'readonly': True}, + } + + _attribute_map = { + 'network_interfaces': {'key': 'networkInterfaces', 'type': '[IpAddress]'}, + 'circuit_id': {'key': 'circuitId', 'type': 'str'}, + } + + def __init__(self, *, network_interfaces=None, **kwargs) -> None: + super(NetworkProfile, self).__init__(**kwargs) + self.network_interfaces = network_interfaces + self.circuit_id = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/operation.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/operation.py index 624602063c98..0c18726636c4 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/operation.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/operation.py @@ -35,7 +35,7 @@ class Operation(Model): 'display': {'key': 'display', 'type': 'Display'}, } - def __init__(self, display=None): - super(Operation, self).__init__() + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) self.name = None - self.display = display + self.display = kwargs.get('display', None) diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/operation_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/operation_py3.py new file mode 100644 index 000000000000..a95d21640f4e --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/operation_py3.py @@ -0,0 +1,41 @@ +# 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 Operation(Model): + """HANA operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the operation being performed on this particular + object. This name should match the action name that appears in RBAC / the + event service. + :vartype name: str + :param display: Displayed HANA operation information + :type display: ~azure.mgmt.hanaonazure.models.Display + """ + + _validation = { + 'name': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'Display'}, + } + + def __init__(self, *, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = display diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile.py index 5fe9e3911c0f..775aa4320575 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile.py @@ -38,8 +38,8 @@ class OSProfile(Model): 'version': {'key': 'version', 'type': 'str'}, } - def __init__(self): - super(OSProfile, self).__init__() + def __init__(self, **kwargs): + super(OSProfile, self).__init__(**kwargs) self.computer_name = None self.os_type = None self.version = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile_py3.py new file mode 100644 index 000000000000..17fbeff93e45 --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/os_profile_py3.py @@ -0,0 +1,45 @@ +# 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 OSProfile(Model): + """Specifies the operating system settings for the HANA instance. + + 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 + :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 + """ + + _validation = { + 'computer_name': {'readonly': True}, + 'os_type': {'readonly': True}, + 'version': {'readonly': True}, + } + + _attribute_map = { + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(OSProfile, self).__init__(**kwargs) + self.computer_name = None + self.os_type = None + self.version = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/resource.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/resource.py index 10f2b7aef9d4..99b32af0d9fe 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/resource.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/resource.py @@ -46,8 +46,8 @@ class Resource(Model): 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self): - super(Resource, self).__init__() + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) self.id = None self.name = None self.type = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/resource_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/resource_py3.py new file mode 100644 index 000000000000..0696665423e1 --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/resource_py3.py @@ -0,0 +1,55 @@ +# 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 Resource(Model): + """The resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :ivar location: Resource location + :vartype location: str + :ivar tags: Resource tags + :vartype tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.tags = None diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/storage_profile.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/storage_profile.py index 037455f5b716..d39fde22aab7 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/storage_profile.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/storage_profile.py @@ -34,7 +34,7 @@ class StorageProfile(Model): 'os_disks': {'key': 'osDisks', 'type': '[Disk]'}, } - def __init__(self, os_disks=None): - super(StorageProfile, self).__init__() + def __init__(self, **kwargs): + super(StorageProfile, self).__init__(**kwargs) self.nfs_ip_address = None - self.os_disks = os_disks + self.os_disks = kwargs.get('os_disks', None) diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/storage_profile_py3.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/storage_profile_py3.py new file mode 100644 index 000000000000..dae247db8738 --- /dev/null +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/storage_profile_py3.py @@ -0,0 +1,40 @@ +# 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 StorageProfile(Model): + """Specifies the storage settings for the HANA instance disks. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :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 = { + 'nfs_ip_address': {'readonly': True}, + } + + _attribute_map = { + 'nfs_ip_address': {'key': 'nfsIpAddress', 'type': 'str'}, + 'os_disks': {'key': 'osDisks', 'type': '[Disk]'}, + } + + def __init__(self, *, os_disks=None, **kwargs) -> None: + super(StorageProfile, self).__init__(**kwargs) + self.nfs_ip_address = None + self.os_disks = os_disks diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/hana_instances_operations.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/hana_instances_operations.py index 90b217293975..0ee39e68ed77 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/hana_instances_operations.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/hana_instances_operations.py @@ -75,7 +75,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -84,9 +84,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -147,7 +146,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -156,9 +155,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -213,7 +211,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -222,8 +220,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/operations.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/operations.py index 3d9de7845b23..6cf82ecc3229 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/operations.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/operations/operations.py @@ -67,7 +67,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -76,9 +76,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py index e7efe25ea7e0..e0ec669828cb 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.1" +VERSION = "0.1.0" From 8e47fdb8e2235b340b76e2ee363df7e820fcbc79 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Mon, 6 Aug 2018 13:17:24 -0700 Subject: [PATCH 2/2] Packaging --- azure-mgmt-hanaonazure/HISTORY.rst | 37 +++++++++++++++++++ azure-mgmt-hanaonazure/README.rst | 4 +- .../azure/mgmt/hanaonazure/version.py | 2 +- azure-mgmt-hanaonazure/sdk_packaging.toml | 6 +++ azure-mgmt-hanaonazure/setup.py | 4 +- 5 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 azure-mgmt-hanaonazure/sdk_packaging.toml diff --git a/azure-mgmt-hanaonazure/HISTORY.rst b/azure-mgmt-hanaonazure/HISTORY.rst index 35b9082e8e69..f9626673a971 100644 --- a/azure-mgmt-hanaonazure/HISTORY.rst +++ b/azure-mgmt-hanaonazure/HISTORY.rst @@ -3,6 +3,43 @@ Release History =============== +0.2.0 (2018-08-06) +++++++++++++++++++ + +**Features** + +- Add power state to Hana instance +- Client class can be used as a context manager to keep the underlying HTTP session open for performance + +**General Breaking changes** + +This version uses a next-generation code generator that *might* introduce breaking changes. + +- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments. + To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments. +- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered. + While this is not a breaking change, the distinctions are important, and are documented here: + https://docs.python.org/3/library/enum.html#others + At a glance: + + - "is" should not be used at all. + - "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be prefered. + +- New Long Running Operation: + + - Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same. + - Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used. + - The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`, + without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`. + - New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`, + the response of the initial call will be returned without polling. + - `polling` parameter accepts instances of subclasses of `msrest.polling.PollingMethod`. + - `add_done_callback` will no longer raise if called after polling is finished, but will instead execute the callback right away. + +**Bugfixes** + +- Compatibility of the sdist with wheel 0.31.0 + 0.1.1 (2018-05-17) ++++++++++++++++++ diff --git a/azure-mgmt-hanaonazure/README.rst b/azure-mgmt-hanaonazure/README.rst index f13617ebc27e..107775d425a7 100644 --- a/azure-mgmt-hanaonazure/README.rst +++ b/azure-mgmt-hanaonazure/README.rst @@ -6,7 +6,7 @@ This is the Microsoft Azure SAP Hana on Azure Management Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5 and 3.6. +This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. @@ -37,7 +37,7 @@ Usage ===== For code examples, see `SAP Hana on Azure Management -`__ +`__ on docs.microsoft.com. diff --git a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py index e0ec669828cb..9bd1dfac7ecb 100644 --- a/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py +++ b/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "0.2.0" diff --git a/azure-mgmt-hanaonazure/sdk_packaging.toml b/azure-mgmt-hanaonazure/sdk_packaging.toml new file mode 100644 index 000000000000..dc6e1c109f6d --- /dev/null +++ b/azure-mgmt-hanaonazure/sdk_packaging.toml @@ -0,0 +1,6 @@ +[packaging] +package_name = "azure-mgmt-hanaonazure" +package_pprint_name = "SAP Hana on Azure Management" +package_doc_id = "hanaonazure" +is_stable = false +is_arm = true diff --git a/azure-mgmt-hanaonazure/setup.py b/azure-mgmt-hanaonazure/setup.py index e5eedde24c28..54224fd5fc36 100644 --- a/azure-mgmt-hanaonazure/setup.py +++ b/azure-mgmt-hanaonazure/setup.py @@ -72,12 +72,14 @@ 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'License :: OSI Approved :: MIT License', ], zip_safe=False, packages=find_packages(exclude=["tests"]), install_requires=[ - 'msrestazure>=0.4.20,<2.0.0', + 'msrest>=0.5.0', + 'msrestazure>=0.4.32,<2.0.0', 'azure-common~=1.1', ], cmdclass=cmdclass