Skip to content
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
@@ -0,0 +1,18 @@
# 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 .server_management import ServerManagement
from .version import VERSION

__all__ = ['ServerManagement']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# 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.
# --------------------------------------------------------------------------

try:
from .resource_py3 import Resource
from .encryption_jwk_resource_py3 import EncryptionJwkResource
from .gateway_status_py3 import GatewayStatus
from .gateway_resource_py3 import GatewayResource
from .gateway_profile_py3 import GatewayProfile
from .gateway_parameters_py3 import GatewayParameters
from .node_resource_py3 import NodeResource
from .node_parameters_py3 import NodeParameters
from .session_resource_py3 import SessionResource
from .session_parameters_py3 import SessionParameters
from .version_py3 import Version
from .power_shell_session_resource_py3 import PowerShellSessionResource
from .prompt_field_description_py3 import PromptFieldDescription
from .power_shell_command_result_py3 import PowerShellCommandResult
from .power_shell_command_results_py3 import PowerShellCommandResults
from .power_shell_command_status_py3 import PowerShellCommandStatus
from .power_shell_session_resources_py3 import PowerShellSessionResources
from .power_shell_command_parameters_py3 import PowerShellCommandParameters
from .prompt_message_response_py3 import PromptMessageResponse
from .power_shell_tab_completion_parameters_py3 import PowerShellTabCompletionParameters
from .power_shell_tab_completion_results_py3 import PowerShellTabCompletionResults
from .error_py3 import Error, ErrorException
except (SyntaxError, ImportError):
from .resource import Resource
from .encryption_jwk_resource import EncryptionJwkResource
from .gateway_status import GatewayStatus
from .gateway_resource import GatewayResource
from .gateway_profile import GatewayProfile
from .gateway_parameters import GatewayParameters
from .node_resource import NodeResource
from .node_parameters import NodeParameters
from .session_resource import SessionResource
from .session_parameters import SessionParameters
from .version import Version
from .power_shell_session_resource import PowerShellSessionResource
from .prompt_field_description import PromptFieldDescription
from .power_shell_command_result import PowerShellCommandResult
from .power_shell_command_results import PowerShellCommandResults
from .power_shell_command_status import PowerShellCommandStatus
from .power_shell_session_resources import PowerShellSessionResources
from .power_shell_command_parameters import PowerShellCommandParameters
from .prompt_message_response import PromptMessageResponse
from .power_shell_tab_completion_parameters import PowerShellTabCompletionParameters
from .power_shell_tab_completion_results import PowerShellTabCompletionResults
from .error import Error, ErrorException
from .gateway_resource_paged import GatewayResourcePaged
from .node_resource_paged import NodeResourcePaged
from .server_management_enums import (
UpgradeMode,
RetentionPeriod,
CredentialDataFormat,
PromptFieldType,
GatewayExpandOption,
PowerShellExpandOption,
)

__all__ = [
'Resource',
'EncryptionJwkResource',
'GatewayStatus',
'GatewayResource',
'GatewayProfile',
'GatewayParameters',
'NodeResource',
'NodeParameters',
'SessionResource',
'SessionParameters',
'Version',
'PowerShellSessionResource',
'PromptFieldDescription',
'PowerShellCommandResult',
'PowerShellCommandResults',
'PowerShellCommandStatus',
'PowerShellSessionResources',
'PowerShellCommandParameters',
'PromptMessageResponse',
'PowerShellTabCompletionParameters',
'PowerShellTabCompletionResults',
'Error', 'ErrorException',
'GatewayResourcePaged',
'NodeResourcePaged',
'UpgradeMode',
'RetentionPeriod',
'CredentialDataFormat',
'PromptFieldType',
'GatewayExpandOption',
'PowerShellExpandOption',
]
Original file line number Diff line number Diff line change
@@ -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 EncryptionJwkResource(Model):
"""The public key of the gateway.

:param kty:
:type kty: str
:param alg:
:type alg: str
:param e:
:type e: str
:param n:
:type n: str
"""

_attribute_map = {
'kty': {'key': 'kty', 'type': 'str'},
'alg': {'key': 'alg', 'type': 'str'},
'e': {'key': 'e', 'type': 'str'},
'n': {'key': 'n', 'type': 'str'},
}

def __init__(self, **kwargs):
super(EncryptionJwkResource, self).__init__(**kwargs)
self.kty = kwargs.get('kty', None)
self.alg = kwargs.get('alg', None)
self.e = kwargs.get('e', None)
self.n = kwargs.get('n', None)
Original file line number Diff line number Diff line change
@@ -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 EncryptionJwkResource(Model):
"""The public key of the gateway.

:param kty:
:type kty: str
:param alg:
:type alg: str
:param e:
:type e: str
:param n:
:type n: str
"""

_attribute_map = {
'kty': {'key': 'kty', 'type': 'str'},
'alg': {'key': 'alg', 'type': 'str'},
'e': {'key': 'e', 'type': 'str'},
'n': {'key': 'n', 'type': 'str'},
}

def __init__(self, *, kty: str=None, alg: str=None, e: str=None, n: str=None, **kwargs) -> None:
super(EncryptionJwkResource, self).__init__(**kwargs)
self.kty = kty
self.alg = alg
self.e = e
self.n = n
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 Error(Model):
"""Error message.

:param code:
:type code: int
:param message:
:type message: str
:param fields:
:type fields: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'int'},
'message': {'key': 'message', 'type': 'str'},
'fields': {'key': 'fields', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Error, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.fields = kwargs.get('fields', None)


class ErrorException(HttpOperationError):
"""Server responsed with exception of type: 'Error'.

:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(ErrorException, self).__init__(deserialize, response, 'Error', *args)
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 Error(Model):
"""Error message.

:param code:
:type code: int
:param message:
:type message: str
:param fields:
:type fields: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'int'},
'message': {'key': 'message', 'type': 'str'},
'fields': {'key': 'fields', 'type': 'str'},
}

def __init__(self, *, code: int=None, message: str=None, fields: str=None, **kwargs) -> None:
super(Error, self).__init__(**kwargs)
self.code = code
self.message = message
self.fields = fields


class ErrorException(HttpOperationError):
"""Server responsed with exception of type: 'Error'.

:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(ErrorException, self).__init__(deserialize, response, 'Error', *args)
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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 GatewayParameters(Model):
"""Collection of parameters for operations on a gateway resource.

:param location: Location of the resource.
:type location: str
:param tags: Resource tags.
:type tags: object
:param upgrade_mode: The upgradeMode property gives the flexibility to
gateway to auto upgrade itself. If properties value not specified, then we
assume upgradeMode = Automatic. Possible values include: 'Manual',
'Automatic'
:type upgrade_mode: str or ~azure.mgmt.servermanagement.models.UpgradeMode
"""

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'UpgradeMode'},
}

def __init__(self, **kwargs):
super(GatewayParameters, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)
self.upgrade_mode = kwargs.get('upgrade_mode', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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 GatewayParameters(Model):
"""Collection of parameters for operations on a gateway resource.

:param location: Location of the resource.
:type location: str
:param tags: Resource tags.
:type tags: object
:param upgrade_mode: The upgradeMode property gives the flexibility to
gateway to auto upgrade itself. If properties value not specified, then we
assume upgradeMode = Automatic. Possible values include: 'Manual',
'Automatic'
:type upgrade_mode: str or ~azure.mgmt.servermanagement.models.UpgradeMode
"""

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'UpgradeMode'},
}

def __init__(self, *, location: str=None, tags=None, upgrade_mode=None, **kwargs) -> None:
super(GatewayParameters, self).__init__(**kwargs)
self.location = location
self.tags = tags
self.upgrade_mode = upgrade_mode
Loading