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

[AutoPR azure-mgmt-hybridcompute] Fix json format by prettier #38

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 @@ -14,7 +14,6 @@

from ._configuration import HybridComputeManagementClientConfiguration
from .operations import MachinesOperations
from .operations import MachineExtensionsOperations
from .operations import Operations
from . import models

Expand All @@ -27,8 +26,6 @@ class HybridComputeManagementClient(SDKClient):

:ivar machines: Machines operations
:vartype machines: azure.mgmt.hybridcompute.operations.MachinesOperations
:ivar machine_extensions: MachineExtensions operations
:vartype machine_extensions: azure.mgmt.hybridcompute.operations.MachineExtensionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.hybridcompute.operations.Operations

Expand All @@ -55,7 +52,5 @@ def __init__(

self.machines = MachinesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.machine_extensions = MachineExtensionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from ._models_py3 import MachineExtension
from ._models_py3 import MachineExtensionInstanceView
from ._models_py3 import MachineExtensionInstanceViewStatus
from ._models_py3 import MachineExtensionsListResult
from ._models_py3 import MachineExtensionUpdate
from ._models_py3 import MachineReconnect
from ._models_py3 import MachineUpdate
Expand All @@ -30,14 +31,14 @@
from ._models import MachineExtension
from ._models import MachineExtensionInstanceView
from ._models import MachineExtensionInstanceViewStatus
from ._models import MachineExtensionsListResult
from ._models import MachineExtensionUpdate
from ._models import MachineReconnect
from ._models import MachineUpdate
from ._models import OperationValue
from ._models import OSProfile
from ._models import Resource
from ._models import UpdateResource
from ._paged_models import MachineExtensionPaged
from ._paged_models import MachinePaged
from ._paged_models import OperationValuePaged
from ._hybrid_compute_management_client_enums import (
Expand All @@ -53,6 +54,7 @@
'MachineExtension',
'MachineExtensionInstanceView',
'MachineExtensionInstanceViewStatus',
'MachineExtensionsListResult',
'MachineExtensionUpdate',
'MachineReconnect',
'MachineUpdate',
Expand All @@ -61,7 +63,6 @@
'Resource',
'UpdateResource',
'MachinePaged',
'MachineExtensionPaged',
'OperationValuePaged',
'StatusTypes',
'StatusLevelTypes',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,27 @@ def __init__(self, **kwargs):
self.time = kwargs.get('time', None)


class MachineExtensionsListResult(Model):
"""Describes the Machine Extensions List Result.

:param value: The list of extensions
:type value: list[~azure.mgmt.hybridcompute.models.MachineExtension]
:param next_link: The uri to fetch the next page of machine extensions.
Call ListNext() with this to fetch the next page of extensions.
:type next_link: str
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[MachineExtension]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

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


class UpdateResource(Model):
"""The Update Resource model definition.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,27 @@ def __init__(self, *, code: str=None, level=None, display_status: str=None, mess
self.time = time


class MachineExtensionsListResult(Model):
"""Describes the Machine Extensions List Result.

:param value: The list of extensions
:type value: list[~azure.mgmt.hybridcompute.models.MachineExtension]
:param next_link: The uri to fetch the next page of machine extensions.
Call ListNext() with this to fetch the next page of extensions.
:type next_link: str
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[MachineExtension]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

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


class UpdateResource(Model):
"""The Update Resource model definition.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,6 @@ class MachinePaged(Paged):
def __init__(self, *args, **kwargs):

super(MachinePaged, self).__init__(*args, **kwargs)
class MachineExtensionPaged(Paged):
"""
A paging container for iterating over a list of :class:`MachineExtension <azure.mgmt.hybridcompute.models.MachineExtension>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[MachineExtension]'}
}

def __init__(self, *args, **kwargs):

super(MachineExtensionPaged, self).__init__(*args, **kwargs)
class OperationValuePaged(Paged):
"""
A paging container for iterating over a list of :class:`OperationValue <azure.mgmt.hybridcompute.models.OperationValue>` object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
# --------------------------------------------------------------------------

from ._machines_operations import MachinesOperations
from ._machine_extensions_operations import MachineExtensionsOperations
from ._operations import Operations

__all__ = [
'MachinesOperations',
'MachineExtensionsOperations',
'Operations',
]
Loading