Skip to content

Commit 283d4eb

Browse files
authored
Generated from 701da77d01a90167c39f2c02497391ab9d07ef51 (#2629)
Fix Python conf of servermanager
1 parent eaaa584 commit 283d4eb

File tree

56 files changed

+5028
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+5028
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .server_management import ServerManagement
13+
from .version import VERSION
14+
15+
__all__ = ['ServerManagement']
16+
17+
__version__ = VERSION
18+
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from .resource_py3 import Resource
14+
from .encryption_jwk_resource_py3 import EncryptionJwkResource
15+
from .gateway_status_py3 import GatewayStatus
16+
from .gateway_resource_py3 import GatewayResource
17+
from .gateway_profile_py3 import GatewayProfile
18+
from .gateway_parameters_py3 import GatewayParameters
19+
from .node_resource_py3 import NodeResource
20+
from .node_parameters_py3 import NodeParameters
21+
from .session_resource_py3 import SessionResource
22+
from .session_parameters_py3 import SessionParameters
23+
from .version_py3 import Version
24+
from .power_shell_session_resource_py3 import PowerShellSessionResource
25+
from .prompt_field_description_py3 import PromptFieldDescription
26+
from .power_shell_command_result_py3 import PowerShellCommandResult
27+
from .power_shell_command_results_py3 import PowerShellCommandResults
28+
from .power_shell_command_status_py3 import PowerShellCommandStatus
29+
from .power_shell_session_resources_py3 import PowerShellSessionResources
30+
from .power_shell_command_parameters_py3 import PowerShellCommandParameters
31+
from .prompt_message_response_py3 import PromptMessageResponse
32+
from .power_shell_tab_completion_parameters_py3 import PowerShellTabCompletionParameters
33+
from .power_shell_tab_completion_results_py3 import PowerShellTabCompletionResults
34+
from .error_py3 import Error, ErrorException
35+
except (SyntaxError, ImportError):
36+
from .resource import Resource
37+
from .encryption_jwk_resource import EncryptionJwkResource
38+
from .gateway_status import GatewayStatus
39+
from .gateway_resource import GatewayResource
40+
from .gateway_profile import GatewayProfile
41+
from .gateway_parameters import GatewayParameters
42+
from .node_resource import NodeResource
43+
from .node_parameters import NodeParameters
44+
from .session_resource import SessionResource
45+
from .session_parameters import SessionParameters
46+
from .version import Version
47+
from .power_shell_session_resource import PowerShellSessionResource
48+
from .prompt_field_description import PromptFieldDescription
49+
from .power_shell_command_result import PowerShellCommandResult
50+
from .power_shell_command_results import PowerShellCommandResults
51+
from .power_shell_command_status import PowerShellCommandStatus
52+
from .power_shell_session_resources import PowerShellSessionResources
53+
from .power_shell_command_parameters import PowerShellCommandParameters
54+
from .prompt_message_response import PromptMessageResponse
55+
from .power_shell_tab_completion_parameters import PowerShellTabCompletionParameters
56+
from .power_shell_tab_completion_results import PowerShellTabCompletionResults
57+
from .error import Error, ErrorException
58+
from .gateway_resource_paged import GatewayResourcePaged
59+
from .node_resource_paged import NodeResourcePaged
60+
from .server_management_enums import (
61+
UpgradeMode,
62+
RetentionPeriod,
63+
CredentialDataFormat,
64+
PromptFieldType,
65+
GatewayExpandOption,
66+
PowerShellExpandOption,
67+
)
68+
69+
__all__ = [
70+
'Resource',
71+
'EncryptionJwkResource',
72+
'GatewayStatus',
73+
'GatewayResource',
74+
'GatewayProfile',
75+
'GatewayParameters',
76+
'NodeResource',
77+
'NodeParameters',
78+
'SessionResource',
79+
'SessionParameters',
80+
'Version',
81+
'PowerShellSessionResource',
82+
'PromptFieldDescription',
83+
'PowerShellCommandResult',
84+
'PowerShellCommandResults',
85+
'PowerShellCommandStatus',
86+
'PowerShellSessionResources',
87+
'PowerShellCommandParameters',
88+
'PromptMessageResponse',
89+
'PowerShellTabCompletionParameters',
90+
'PowerShellTabCompletionResults',
91+
'Error', 'ErrorException',
92+
'GatewayResourcePaged',
93+
'NodeResourcePaged',
94+
'UpgradeMode',
95+
'RetentionPeriod',
96+
'CredentialDataFormat',
97+
'PromptFieldType',
98+
'GatewayExpandOption',
99+
'PowerShellExpandOption',
100+
]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class EncryptionJwkResource(Model):
16+
"""The public key of the gateway.
17+
18+
:param kty:
19+
:type kty: str
20+
:param alg:
21+
:type alg: str
22+
:param e:
23+
:type e: str
24+
:param n:
25+
:type n: str
26+
"""
27+
28+
_attribute_map = {
29+
'kty': {'key': 'kty', 'type': 'str'},
30+
'alg': {'key': 'alg', 'type': 'str'},
31+
'e': {'key': 'e', 'type': 'str'},
32+
'n': {'key': 'n', 'type': 'str'},
33+
}
34+
35+
def __init__(self, **kwargs):
36+
super(EncryptionJwkResource, self).__init__(**kwargs)
37+
self.kty = kwargs.get('kty', None)
38+
self.alg = kwargs.get('alg', None)
39+
self.e = kwargs.get('e', None)
40+
self.n = kwargs.get('n', None)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class EncryptionJwkResource(Model):
16+
"""The public key of the gateway.
17+
18+
:param kty:
19+
:type kty: str
20+
:param alg:
21+
:type alg: str
22+
:param e:
23+
:type e: str
24+
:param n:
25+
:type n: str
26+
"""
27+
28+
_attribute_map = {
29+
'kty': {'key': 'kty', 'type': 'str'},
30+
'alg': {'key': 'alg', 'type': 'str'},
31+
'e': {'key': 'e', 'type': 'str'},
32+
'n': {'key': 'n', 'type': 'str'},
33+
}
34+
35+
def __init__(self, *, kty: str=None, alg: str=None, e: str=None, n: str=None, **kwargs) -> None:
36+
super(EncryptionJwkResource, self).__init__(**kwargs)
37+
self.kty = kty
38+
self.alg = alg
39+
self.e = e
40+
self.n = n
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
from msrest.exceptions import HttpOperationError
14+
15+
16+
class Error(Model):
17+
"""Error message.
18+
19+
:param code:
20+
:type code: int
21+
:param message:
22+
:type message: str
23+
:param fields:
24+
:type fields: str
25+
"""
26+
27+
_attribute_map = {
28+
'code': {'key': 'code', 'type': 'int'},
29+
'message': {'key': 'message', 'type': 'str'},
30+
'fields': {'key': 'fields', 'type': 'str'},
31+
}
32+
33+
def __init__(self, **kwargs):
34+
super(Error, self).__init__(**kwargs)
35+
self.code = kwargs.get('code', None)
36+
self.message = kwargs.get('message', None)
37+
self.fields = kwargs.get('fields', None)
38+
39+
40+
class ErrorException(HttpOperationError):
41+
"""Server responsed with exception of type: 'Error'.
42+
43+
:param deserialize: A deserializer
44+
:param response: Server response to be deserialized.
45+
"""
46+
47+
def __init__(self, deserialize, response, *args):
48+
49+
super(ErrorException, self).__init__(deserialize, response, 'Error', *args)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
from msrest.exceptions import HttpOperationError
14+
15+
16+
class Error(Model):
17+
"""Error message.
18+
19+
:param code:
20+
:type code: int
21+
:param message:
22+
:type message: str
23+
:param fields:
24+
:type fields: str
25+
"""
26+
27+
_attribute_map = {
28+
'code': {'key': 'code', 'type': 'int'},
29+
'message': {'key': 'message', 'type': 'str'},
30+
'fields': {'key': 'fields', 'type': 'str'},
31+
}
32+
33+
def __init__(self, *, code: int=None, message: str=None, fields: str=None, **kwargs) -> None:
34+
super(Error, self).__init__(**kwargs)
35+
self.code = code
36+
self.message = message
37+
self.fields = fields
38+
39+
40+
class ErrorException(HttpOperationError):
41+
"""Server responsed with exception of type: 'Error'.
42+
43+
:param deserialize: A deserializer
44+
:param response: Server response to be deserialized.
45+
"""
46+
47+
def __init__(self, deserialize, response, *args):
48+
49+
super(ErrorException, self).__init__(deserialize, response, 'Error', *args)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class GatewayParameters(Model):
16+
"""Collection of parameters for operations on a gateway resource.
17+
18+
:param location: Location of the resource.
19+
:type location: str
20+
:param tags: Resource tags.
21+
:type tags: object
22+
:param upgrade_mode: The upgradeMode property gives the flexibility to
23+
gateway to auto upgrade itself. If properties value not specified, then we
24+
assume upgradeMode = Automatic. Possible values include: 'Manual',
25+
'Automatic'
26+
:type upgrade_mode: str or ~azure.mgmt.servermanagement.models.UpgradeMode
27+
"""
28+
29+
_attribute_map = {
30+
'location': {'key': 'location', 'type': 'str'},
31+
'tags': {'key': 'tags', 'type': 'object'},
32+
'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'UpgradeMode'},
33+
}
34+
35+
def __init__(self, **kwargs):
36+
super(GatewayParameters, self).__init__(**kwargs)
37+
self.location = kwargs.get('location', None)
38+
self.tags = kwargs.get('tags', None)
39+
self.upgrade_mode = kwargs.get('upgrade_mode', None)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class GatewayParameters(Model):
16+
"""Collection of parameters for operations on a gateway resource.
17+
18+
:param location: Location of the resource.
19+
:type location: str
20+
:param tags: Resource tags.
21+
:type tags: object
22+
:param upgrade_mode: The upgradeMode property gives the flexibility to
23+
gateway to auto upgrade itself. If properties value not specified, then we
24+
assume upgradeMode = Automatic. Possible values include: 'Manual',
25+
'Automatic'
26+
:type upgrade_mode: str or ~azure.mgmt.servermanagement.models.UpgradeMode
27+
"""
28+
29+
_attribute_map = {
30+
'location': {'key': 'location', 'type': 'str'},
31+
'tags': {'key': 'tags', 'type': 'object'},
32+
'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'UpgradeMode'},
33+
}
34+
35+
def __init__(self, *, location: str=None, tags=None, upgrade_mode=None, **kwargs) -> None:
36+
super(GatewayParameters, self).__init__(**kwargs)
37+
self.location = location
38+
self.tags = tags
39+
self.upgrade_mode = upgrade_mode

0 commit comments

Comments
 (0)