-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] hanaonazure/resource-manager (#3070)
* [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 * Packaging
- Loading branch information
1 parent
ab01fc1
commit 4a62ff7
Showing
32 changed files
with
686 additions
and
69 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
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
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
46 changes: 46 additions & 0 deletions
46
azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/disk_py3.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: 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 |
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
67 changes: 67 additions & 0 deletions
67
azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/display_py3.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,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 |
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
45 changes: 45 additions & 0 deletions
45
azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/error_response_py3.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,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) |
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
Oops, something went wrong.