Skip to content

Commit

Permalink
Generated from 789855bf56cd2feb3087c8df21e99c091648f6a5
Browse files Browse the repository at this point in the history
Fix Error Response Structure
  • Loading branch information
SDK Automation committed Jun 5, 2020
1 parent 34f67a3 commit ddbee68
Show file tree
Hide file tree
Showing 27 changed files with 20,813 additions and 16,329 deletions.
6 changes: 6 additions & 0 deletions sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.5.0 (2020-05-29)

**Features**

- Added operation group VirtualMachinesOperations

## 1.4.0 (2020-01-16)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
from ._models_py3 import GatewaySettings
from ._models_py3 import HardwareProfile
from ._models_py3 import HostInfo
from ._models_py3 import HostInfoListResult
from ._models_py3 import KafkaRestProperties
from ._models_py3 import LinuxOperatingSystemProfile
from ._models_py3 import LocalizedName
Expand Down Expand Up @@ -128,7 +127,6 @@
from ._models import GatewaySettings
from ._models import HardwareProfile
from ._models import HostInfo
from ._models import HostInfoListResult
from ._models import KafkaRestProperties
from ._models import LinuxOperatingSystemProfile
from ._models import LocalizedName
Expand Down Expand Up @@ -221,7 +219,6 @@
'GatewaySettings',
'HardwareProfile',
'HostInfo',
'HostInfoListResult',
'KafkaRestProperties',
'LinuxOperatingSystemProfile',
'LocalizedName',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1338,22 +1338,6 @@ def __init__(self, **kwargs):
self.name = kwargs.get('name', None)


class HostInfoListResult(Model):
"""Result of the request to list cluster hosts.
:param value: The list of cluster hosts.
:type value: list[~azure.mgmt.hdinsight.models.HostInfo]
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[HostInfo]'},
}

def __init__(self, **kwargs):
super(HostInfoListResult, self).__init__(**kwargs)
self.value = kwargs.get('value', None)


class KafkaRestProperties(Model):
"""The kafka rest proxy configuration which contains AAD security group
information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1338,22 +1338,6 @@ def __init__(self, *, name: str=None, **kwargs) -> None:
self.name = name


class HostInfoListResult(Model):
"""Result of the request to list cluster hosts.
:param value: The list of cluster hosts.
:type value: list[~azure.mgmt.hdinsight.models.HostInfo]
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[HostInfo]'},
}

def __init__(self, *, value=None, **kwargs) -> None:
super(HostInfoListResult, self).__init__(**kwargs)
self.value = value


class KafkaRestProperties(Model):
"""The kafka rest proxy configuration which contains AAD security group
information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def list_hosts(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HostInfoListResult or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.hdinsight.models.HostInfoListResult or
:return: list or ClientRawResponse if raw=true
:rtype: list[~azure.mgmt.hdinsight.models.HostInfo] or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`ErrorResponseException<azure.mgmt.hdinsight.models.ErrorResponseException>`
Expand Down Expand Up @@ -91,7 +91,7 @@ def list_hosts(

deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HostInfoListResult', response)
deserialized = self._deserialize('[HostInfo]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "1.4.0"
VERSION = "1.5.0"

1 change: 1 addition & 0 deletions sdk/hdinsight/azure-mgmt-hdinsight/dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
-e ../../core/azure-core
-e ../../keyvault/azure-keyvault-keys
-e ../../keyvault/azure-mgmt-keyvault
-e ../../loganalytics/azure-mgmt-loganalytics
-e ../../resources/azure-mgmt-msi/
Loading

0 comments on commit ddbee68

Please sign in to comment.