Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR azure-mgmt-hdinsight] [HDInsight]Fix Error Response Structure #11896

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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