huaweicloudsdkworkspace 3.1.110__py2.py3-none-any.whl → 3.1.112__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkworkspace might be problematic. Click here for more details.
- huaweicloudsdkworkspace/v2/__init__.py +4 -0
- huaweicloudsdkworkspace/v2/model/__init__.py +4 -0
- huaweicloudsdkworkspace/v2/model/attach_users_info.py +202 -0
- huaweicloudsdkworkspace/v2/model/connect_desktops_info.py +202 -0
- huaweicloudsdkworkspace/v2/model/list_desktops_connect_status_request.py +202 -0
- huaweicloudsdkworkspace/v2/model/list_desktops_connect_status_response.py +145 -0
- huaweicloudsdkworkspace/v2/workspace_async_client.py +72 -0
- huaweicloudsdkworkspace/v2/workspace_client.py +72 -0
- {huaweicloudsdkworkspace-3.1.110.dist-info → huaweicloudsdkworkspace-3.1.112.dist-info}/METADATA +2 -2
- {huaweicloudsdkworkspace-3.1.110.dist-info → huaweicloudsdkworkspace-3.1.112.dist-info}/RECORD +13 -9
- {huaweicloudsdkworkspace-3.1.110.dist-info → huaweicloudsdkworkspace-3.1.112.dist-info}/LICENSE +0 -0
- {huaweicloudsdkworkspace-3.1.110.dist-info → huaweicloudsdkworkspace-3.1.112.dist-info}/WHEEL +0 -0
- {huaweicloudsdkworkspace-3.1.110.dist-info → huaweicloudsdkworkspace-3.1.112.dist-info}/top_level.txt +0 -0
|
@@ -41,6 +41,7 @@ from huaweicloudsdkworkspace.v2.model.attach_instances_req import AttachInstance
|
|
|
41
41
|
from huaweicloudsdkworkspace.v2.model.attach_instances_request import AttachInstancesRequest
|
|
42
42
|
from huaweicloudsdkworkspace.v2.model.attach_instances_response import AttachInstancesResponse
|
|
43
43
|
from huaweicloudsdkworkspace.v2.model.attach_instances_user_info import AttachInstancesUserInfo
|
|
44
|
+
from huaweicloudsdkworkspace.v2.model.attach_users_info import AttachUsersInfo
|
|
44
45
|
from huaweicloudsdkworkspace.v2.model.auth_assist_enum import AuthAssistEnum
|
|
45
46
|
from huaweicloudsdkworkspace.v2.model.auth_server_access_mode import AuthServerAccessMode
|
|
46
47
|
from huaweicloudsdkworkspace.v2.model.availability_zone_info import AvailabilityZoneInfo
|
|
@@ -90,6 +91,7 @@ from huaweicloudsdkworkspace.v2.model.change_desktop_network_request import Chan
|
|
|
90
91
|
from huaweicloudsdkworkspace.v2.model.change_desktop_network_response import ChangeDesktopNetworkResponse
|
|
91
92
|
from huaweicloudsdkworkspace.v2.model.change_user_status_request import ChangeUserStatusRequest
|
|
92
93
|
from huaweicloudsdkworkspace.v2.model.change_user_status_response import ChangeUserStatusResponse
|
|
94
|
+
from huaweicloudsdkworkspace.v2.model.connect_desktops_info import ConnectDesktopsInfo
|
|
93
95
|
from huaweicloudsdkworkspace.v2.model.create_access_policy_req import CreateAccessPolicyReq
|
|
94
96
|
from huaweicloudsdkworkspace.v2.model.create_access_policy_request import CreateAccessPolicyRequest
|
|
95
97
|
from huaweicloudsdkworkspace.v2.model.create_access_policy_response import CreateAccessPolicyResponse
|
|
@@ -182,6 +184,8 @@ from huaweicloudsdkworkspace.v2.model.list_desktop_name_policy_request import Li
|
|
|
182
184
|
from huaweicloudsdkworkspace.v2.model.list_desktop_name_policy_response import ListDesktopNamePolicyResponse
|
|
183
185
|
from huaweicloudsdkworkspace.v2.model.list_desktop_usage_metric_request import ListDesktopUsageMetricRequest
|
|
184
186
|
from huaweicloudsdkworkspace.v2.model.list_desktop_usage_metric_response import ListDesktopUsageMetricResponse
|
|
187
|
+
from huaweicloudsdkworkspace.v2.model.list_desktops_connect_status_request import ListDesktopsConnectStatusRequest
|
|
188
|
+
from huaweicloudsdkworkspace.v2.model.list_desktops_connect_status_response import ListDesktopsConnectStatusResponse
|
|
185
189
|
from huaweicloudsdkworkspace.v2.model.list_desktops_detail_request import ListDesktopsDetailRequest
|
|
186
190
|
from huaweicloudsdkworkspace.v2.model.list_desktops_detail_response import ListDesktopsDetailResponse
|
|
187
191
|
from huaweicloudsdkworkspace.v2.model.list_desktops_eips_request import ListDesktopsEipsRequest
|
|
@@ -39,6 +39,7 @@ from huaweicloudsdkworkspace.v2.model.attach_instances_req import AttachInstance
|
|
|
39
39
|
from huaweicloudsdkworkspace.v2.model.attach_instances_request import AttachInstancesRequest
|
|
40
40
|
from huaweicloudsdkworkspace.v2.model.attach_instances_response import AttachInstancesResponse
|
|
41
41
|
from huaweicloudsdkworkspace.v2.model.attach_instances_user_info import AttachInstancesUserInfo
|
|
42
|
+
from huaweicloudsdkworkspace.v2.model.attach_users_info import AttachUsersInfo
|
|
42
43
|
from huaweicloudsdkworkspace.v2.model.auth_assist_enum import AuthAssistEnum
|
|
43
44
|
from huaweicloudsdkworkspace.v2.model.auth_server_access_mode import AuthServerAccessMode
|
|
44
45
|
from huaweicloudsdkworkspace.v2.model.availability_zone_info import AvailabilityZoneInfo
|
|
@@ -88,6 +89,7 @@ from huaweicloudsdkworkspace.v2.model.change_desktop_network_request import Chan
|
|
|
88
89
|
from huaweicloudsdkworkspace.v2.model.change_desktop_network_response import ChangeDesktopNetworkResponse
|
|
89
90
|
from huaweicloudsdkworkspace.v2.model.change_user_status_request import ChangeUserStatusRequest
|
|
90
91
|
from huaweicloudsdkworkspace.v2.model.change_user_status_response import ChangeUserStatusResponse
|
|
92
|
+
from huaweicloudsdkworkspace.v2.model.connect_desktops_info import ConnectDesktopsInfo
|
|
91
93
|
from huaweicloudsdkworkspace.v2.model.create_access_policy_req import CreateAccessPolicyReq
|
|
92
94
|
from huaweicloudsdkworkspace.v2.model.create_access_policy_request import CreateAccessPolicyRequest
|
|
93
95
|
from huaweicloudsdkworkspace.v2.model.create_access_policy_response import CreateAccessPolicyResponse
|
|
@@ -180,6 +182,8 @@ from huaweicloudsdkworkspace.v2.model.list_desktop_name_policy_request import Li
|
|
|
180
182
|
from huaweicloudsdkworkspace.v2.model.list_desktop_name_policy_response import ListDesktopNamePolicyResponse
|
|
181
183
|
from huaweicloudsdkworkspace.v2.model.list_desktop_usage_metric_request import ListDesktopUsageMetricRequest
|
|
182
184
|
from huaweicloudsdkworkspace.v2.model.list_desktop_usage_metric_response import ListDesktopUsageMetricResponse
|
|
185
|
+
from huaweicloudsdkworkspace.v2.model.list_desktops_connect_status_request import ListDesktopsConnectStatusRequest
|
|
186
|
+
from huaweicloudsdkworkspace.v2.model.list_desktops_connect_status_response import ListDesktopsConnectStatusResponse
|
|
183
187
|
from huaweicloudsdkworkspace.v2.model.list_desktops_detail_request import ListDesktopsDetailRequest
|
|
184
188
|
from huaweicloudsdkworkspace.v2.model.list_desktops_detail_response import ListDesktopsDetailResponse
|
|
185
189
|
from huaweicloudsdkworkspace.v2.model.list_desktops_eips_request import ListDesktopsEipsRequest
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AttachUsersInfo:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'id': 'str',
|
|
21
|
+
'name': 'str',
|
|
22
|
+
'user_group': 'str',
|
|
23
|
+
'type': 'str'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'id': 'id',
|
|
28
|
+
'name': 'name',
|
|
29
|
+
'user_group': 'user_group',
|
|
30
|
+
'type': 'type'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, id=None, name=None, user_group=None, type=None):
|
|
34
|
+
"""AttachUsersInfo
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param id: 当type字段为USER时,填写用户id;当type字段为GROUP时,填写用户组id,后端服务会校验组id是否存在;
|
|
39
|
+
:type id: str
|
|
40
|
+
:param name: 桌面分配对象的名称,当type类型USER时填写用户名字;当type类型GROUP时填写用户组名称。 - 当type类型USER时:桌面所属的用户,当桌面分配成功后此用户可以登录该桌面。只允许输入大写字母、小写字母、数字、中划线(-)和下划线(_)。域类型为LITE_AD时,使用小写字母或者大写字母开头,长度范围为[1-20]。当域类型为LOCAL_AD时,用户名可以使用小写字母或者大写字母或者数字开头,长度范围为[1-64]。Windows桌面用户最长支持20个字符,Linux桌面用户最长支持64个字符。后端服务会校验用户名是否存在,并且用户名不能与机器名重复。 - 当type类型GROUP时:只能为中文、字母、数字及特殊符号-_。
|
|
41
|
+
:type name: str
|
|
42
|
+
:param user_group: 桌面用户所属的用户组。 - sudo:Linux管理员组。 - default:Linux默认用户组。 - administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。 - users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。
|
|
43
|
+
:type user_group: str
|
|
44
|
+
:param type: 对象类型,可选值为: - USER:用户。 - GROUP:用户组。
|
|
45
|
+
:type type: str
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._id = None
|
|
51
|
+
self._name = None
|
|
52
|
+
self._user_group = None
|
|
53
|
+
self._type = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
if id is not None:
|
|
57
|
+
self.id = id
|
|
58
|
+
if name is not None:
|
|
59
|
+
self.name = name
|
|
60
|
+
if user_group is not None:
|
|
61
|
+
self.user_group = user_group
|
|
62
|
+
if type is not None:
|
|
63
|
+
self.type = type
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def id(self):
|
|
67
|
+
"""Gets the id of this AttachUsersInfo.
|
|
68
|
+
|
|
69
|
+
当type字段为USER时,填写用户id;当type字段为GROUP时,填写用户组id,后端服务会校验组id是否存在;
|
|
70
|
+
|
|
71
|
+
:return: The id of this AttachUsersInfo.
|
|
72
|
+
:rtype: str
|
|
73
|
+
"""
|
|
74
|
+
return self._id
|
|
75
|
+
|
|
76
|
+
@id.setter
|
|
77
|
+
def id(self, id):
|
|
78
|
+
"""Sets the id of this AttachUsersInfo.
|
|
79
|
+
|
|
80
|
+
当type字段为USER时,填写用户id;当type字段为GROUP时,填写用户组id,后端服务会校验组id是否存在;
|
|
81
|
+
|
|
82
|
+
:param id: The id of this AttachUsersInfo.
|
|
83
|
+
:type id: str
|
|
84
|
+
"""
|
|
85
|
+
self._id = id
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def name(self):
|
|
89
|
+
"""Gets the name of this AttachUsersInfo.
|
|
90
|
+
|
|
91
|
+
桌面分配对象的名称,当type类型USER时填写用户名字;当type类型GROUP时填写用户组名称。 - 当type类型USER时:桌面所属的用户,当桌面分配成功后此用户可以登录该桌面。只允许输入大写字母、小写字母、数字、中划线(-)和下划线(_)。域类型为LITE_AD时,使用小写字母或者大写字母开头,长度范围为[1-20]。当域类型为LOCAL_AD时,用户名可以使用小写字母或者大写字母或者数字开头,长度范围为[1-64]。Windows桌面用户最长支持20个字符,Linux桌面用户最长支持64个字符。后端服务会校验用户名是否存在,并且用户名不能与机器名重复。 - 当type类型GROUP时:只能为中文、字母、数字及特殊符号-_。
|
|
92
|
+
|
|
93
|
+
:return: The name of this AttachUsersInfo.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._name
|
|
97
|
+
|
|
98
|
+
@name.setter
|
|
99
|
+
def name(self, name):
|
|
100
|
+
"""Sets the name of this AttachUsersInfo.
|
|
101
|
+
|
|
102
|
+
桌面分配对象的名称,当type类型USER时填写用户名字;当type类型GROUP时填写用户组名称。 - 当type类型USER时:桌面所属的用户,当桌面分配成功后此用户可以登录该桌面。只允许输入大写字母、小写字母、数字、中划线(-)和下划线(_)。域类型为LITE_AD时,使用小写字母或者大写字母开头,长度范围为[1-20]。当域类型为LOCAL_AD时,用户名可以使用小写字母或者大写字母或者数字开头,长度范围为[1-64]。Windows桌面用户最长支持20个字符,Linux桌面用户最长支持64个字符。后端服务会校验用户名是否存在,并且用户名不能与机器名重复。 - 当type类型GROUP时:只能为中文、字母、数字及特殊符号-_。
|
|
103
|
+
|
|
104
|
+
:param name: The name of this AttachUsersInfo.
|
|
105
|
+
:type name: str
|
|
106
|
+
"""
|
|
107
|
+
self._name = name
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def user_group(self):
|
|
111
|
+
"""Gets the user_group of this AttachUsersInfo.
|
|
112
|
+
|
|
113
|
+
桌面用户所属的用户组。 - sudo:Linux管理员组。 - default:Linux默认用户组。 - administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。 - users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。
|
|
114
|
+
|
|
115
|
+
:return: The user_group of this AttachUsersInfo.
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._user_group
|
|
119
|
+
|
|
120
|
+
@user_group.setter
|
|
121
|
+
def user_group(self, user_group):
|
|
122
|
+
"""Sets the user_group of this AttachUsersInfo.
|
|
123
|
+
|
|
124
|
+
桌面用户所属的用户组。 - sudo:Linux管理员组。 - default:Linux默认用户组。 - administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。 - users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。
|
|
125
|
+
|
|
126
|
+
:param user_group: The user_group of this AttachUsersInfo.
|
|
127
|
+
:type user_group: str
|
|
128
|
+
"""
|
|
129
|
+
self._user_group = user_group
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def type(self):
|
|
133
|
+
"""Gets the type of this AttachUsersInfo.
|
|
134
|
+
|
|
135
|
+
对象类型,可选值为: - USER:用户。 - GROUP:用户组。
|
|
136
|
+
|
|
137
|
+
:return: The type of this AttachUsersInfo.
|
|
138
|
+
:rtype: str
|
|
139
|
+
"""
|
|
140
|
+
return self._type
|
|
141
|
+
|
|
142
|
+
@type.setter
|
|
143
|
+
def type(self, type):
|
|
144
|
+
"""Sets the type of this AttachUsersInfo.
|
|
145
|
+
|
|
146
|
+
对象类型,可选值为: - USER:用户。 - GROUP:用户组。
|
|
147
|
+
|
|
148
|
+
:param type: The type of this AttachUsersInfo.
|
|
149
|
+
:type type: str
|
|
150
|
+
"""
|
|
151
|
+
self._type = type
|
|
152
|
+
|
|
153
|
+
def to_dict(self):
|
|
154
|
+
"""Returns the model properties as a dict"""
|
|
155
|
+
result = {}
|
|
156
|
+
|
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
158
|
+
value = getattr(self, attr)
|
|
159
|
+
if isinstance(value, list):
|
|
160
|
+
result[attr] = list(map(
|
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
162
|
+
value
|
|
163
|
+
))
|
|
164
|
+
elif hasattr(value, "to_dict"):
|
|
165
|
+
result[attr] = value.to_dict()
|
|
166
|
+
elif isinstance(value, dict):
|
|
167
|
+
result[attr] = dict(map(
|
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
|
170
|
+
value.items()
|
|
171
|
+
))
|
|
172
|
+
else:
|
|
173
|
+
if attr in self.sensitive_list:
|
|
174
|
+
result[attr] = "****"
|
|
175
|
+
else:
|
|
176
|
+
result[attr] = value
|
|
177
|
+
|
|
178
|
+
return result
|
|
179
|
+
|
|
180
|
+
def to_str(self):
|
|
181
|
+
"""Returns the string representation of the model"""
|
|
182
|
+
import simplejson as json
|
|
183
|
+
if six.PY2:
|
|
184
|
+
import sys
|
|
185
|
+
reload(sys)
|
|
186
|
+
sys.setdefaultencoding("utf-8")
|
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
188
|
+
|
|
189
|
+
def __repr__(self):
|
|
190
|
+
"""For `print`"""
|
|
191
|
+
return self.to_str()
|
|
192
|
+
|
|
193
|
+
def __eq__(self, other):
|
|
194
|
+
"""Returns true if both objects are equal"""
|
|
195
|
+
if not isinstance(other, AttachUsersInfo):
|
|
196
|
+
return False
|
|
197
|
+
|
|
198
|
+
return self.__dict__ == other.__dict__
|
|
199
|
+
|
|
200
|
+
def __ne__(self, other):
|
|
201
|
+
"""Returns true if both objects are not equal"""
|
|
202
|
+
return not self == other
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ConnectDesktopsInfo:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'desktop_id': 'str',
|
|
21
|
+
'desktop_name': 'str',
|
|
22
|
+
'connect_status': 'str',
|
|
23
|
+
'attach_users': 'list[AttachUsersInfo]'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'desktop_id': 'desktop_id',
|
|
28
|
+
'desktop_name': 'desktop_name',
|
|
29
|
+
'connect_status': 'connect_status',
|
|
30
|
+
'attach_users': 'attach_users'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, desktop_id=None, desktop_name=None, connect_status=None, attach_users=None):
|
|
34
|
+
"""ConnectDesktopsInfo
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param desktop_id: 桌面id。
|
|
39
|
+
:type desktop_id: str
|
|
40
|
+
:param desktop_name: 桌面名称。
|
|
41
|
+
:type desktop_name: str
|
|
42
|
+
:param connect_status: 桌面的登录状态。 - UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。 - REGISTERED:表示桌面注册以后,等待用户连接的状态。 - CONNECTED:表示用户已经成功登录,正在使用桌面。 - DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。
|
|
43
|
+
:type connect_status: str
|
|
44
|
+
:param attach_users: 桌面已分配的用户或用户组信息列表。
|
|
45
|
+
:type attach_users: list[:class:`huaweicloudsdkworkspace.v2.AttachUsersInfo`]
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._desktop_id = None
|
|
51
|
+
self._desktop_name = None
|
|
52
|
+
self._connect_status = None
|
|
53
|
+
self._attach_users = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
if desktop_id is not None:
|
|
57
|
+
self.desktop_id = desktop_id
|
|
58
|
+
if desktop_name is not None:
|
|
59
|
+
self.desktop_name = desktop_name
|
|
60
|
+
if connect_status is not None:
|
|
61
|
+
self.connect_status = connect_status
|
|
62
|
+
if attach_users is not None:
|
|
63
|
+
self.attach_users = attach_users
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def desktop_id(self):
|
|
67
|
+
"""Gets the desktop_id of this ConnectDesktopsInfo.
|
|
68
|
+
|
|
69
|
+
桌面id。
|
|
70
|
+
|
|
71
|
+
:return: The desktop_id of this ConnectDesktopsInfo.
|
|
72
|
+
:rtype: str
|
|
73
|
+
"""
|
|
74
|
+
return self._desktop_id
|
|
75
|
+
|
|
76
|
+
@desktop_id.setter
|
|
77
|
+
def desktop_id(self, desktop_id):
|
|
78
|
+
"""Sets the desktop_id of this ConnectDesktopsInfo.
|
|
79
|
+
|
|
80
|
+
桌面id。
|
|
81
|
+
|
|
82
|
+
:param desktop_id: The desktop_id of this ConnectDesktopsInfo.
|
|
83
|
+
:type desktop_id: str
|
|
84
|
+
"""
|
|
85
|
+
self._desktop_id = desktop_id
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def desktop_name(self):
|
|
89
|
+
"""Gets the desktop_name of this ConnectDesktopsInfo.
|
|
90
|
+
|
|
91
|
+
桌面名称。
|
|
92
|
+
|
|
93
|
+
:return: The desktop_name of this ConnectDesktopsInfo.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._desktop_name
|
|
97
|
+
|
|
98
|
+
@desktop_name.setter
|
|
99
|
+
def desktop_name(self, desktop_name):
|
|
100
|
+
"""Sets the desktop_name of this ConnectDesktopsInfo.
|
|
101
|
+
|
|
102
|
+
桌面名称。
|
|
103
|
+
|
|
104
|
+
:param desktop_name: The desktop_name of this ConnectDesktopsInfo.
|
|
105
|
+
:type desktop_name: str
|
|
106
|
+
"""
|
|
107
|
+
self._desktop_name = desktop_name
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def connect_status(self):
|
|
111
|
+
"""Gets the connect_status of this ConnectDesktopsInfo.
|
|
112
|
+
|
|
113
|
+
桌面的登录状态。 - UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。 - REGISTERED:表示桌面注册以后,等待用户连接的状态。 - CONNECTED:表示用户已经成功登录,正在使用桌面。 - DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。
|
|
114
|
+
|
|
115
|
+
:return: The connect_status of this ConnectDesktopsInfo.
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._connect_status
|
|
119
|
+
|
|
120
|
+
@connect_status.setter
|
|
121
|
+
def connect_status(self, connect_status):
|
|
122
|
+
"""Sets the connect_status of this ConnectDesktopsInfo.
|
|
123
|
+
|
|
124
|
+
桌面的登录状态。 - UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。 - REGISTERED:表示桌面注册以后,等待用户连接的状态。 - CONNECTED:表示用户已经成功登录,正在使用桌面。 - DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。
|
|
125
|
+
|
|
126
|
+
:param connect_status: The connect_status of this ConnectDesktopsInfo.
|
|
127
|
+
:type connect_status: str
|
|
128
|
+
"""
|
|
129
|
+
self._connect_status = connect_status
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def attach_users(self):
|
|
133
|
+
"""Gets the attach_users of this ConnectDesktopsInfo.
|
|
134
|
+
|
|
135
|
+
桌面已分配的用户或用户组信息列表。
|
|
136
|
+
|
|
137
|
+
:return: The attach_users of this ConnectDesktopsInfo.
|
|
138
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.AttachUsersInfo`]
|
|
139
|
+
"""
|
|
140
|
+
return self._attach_users
|
|
141
|
+
|
|
142
|
+
@attach_users.setter
|
|
143
|
+
def attach_users(self, attach_users):
|
|
144
|
+
"""Sets the attach_users of this ConnectDesktopsInfo.
|
|
145
|
+
|
|
146
|
+
桌面已分配的用户或用户组信息列表。
|
|
147
|
+
|
|
148
|
+
:param attach_users: The attach_users of this ConnectDesktopsInfo.
|
|
149
|
+
:type attach_users: list[:class:`huaweicloudsdkworkspace.v2.AttachUsersInfo`]
|
|
150
|
+
"""
|
|
151
|
+
self._attach_users = attach_users
|
|
152
|
+
|
|
153
|
+
def to_dict(self):
|
|
154
|
+
"""Returns the model properties as a dict"""
|
|
155
|
+
result = {}
|
|
156
|
+
|
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
158
|
+
value = getattr(self, attr)
|
|
159
|
+
if isinstance(value, list):
|
|
160
|
+
result[attr] = list(map(
|
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
162
|
+
value
|
|
163
|
+
))
|
|
164
|
+
elif hasattr(value, "to_dict"):
|
|
165
|
+
result[attr] = value.to_dict()
|
|
166
|
+
elif isinstance(value, dict):
|
|
167
|
+
result[attr] = dict(map(
|
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
|
170
|
+
value.items()
|
|
171
|
+
))
|
|
172
|
+
else:
|
|
173
|
+
if attr in self.sensitive_list:
|
|
174
|
+
result[attr] = "****"
|
|
175
|
+
else:
|
|
176
|
+
result[attr] = value
|
|
177
|
+
|
|
178
|
+
return result
|
|
179
|
+
|
|
180
|
+
def to_str(self):
|
|
181
|
+
"""Returns the string representation of the model"""
|
|
182
|
+
import simplejson as json
|
|
183
|
+
if six.PY2:
|
|
184
|
+
import sys
|
|
185
|
+
reload(sys)
|
|
186
|
+
sys.setdefaultencoding("utf-8")
|
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
188
|
+
|
|
189
|
+
def __repr__(self):
|
|
190
|
+
"""For `print`"""
|
|
191
|
+
return self.to_str()
|
|
192
|
+
|
|
193
|
+
def __eq__(self, other):
|
|
194
|
+
"""Returns true if both objects are equal"""
|
|
195
|
+
if not isinstance(other, ConnectDesktopsInfo):
|
|
196
|
+
return False
|
|
197
|
+
|
|
198
|
+
return self.__dict__ == other.__dict__
|
|
199
|
+
|
|
200
|
+
def __ne__(self, other):
|
|
201
|
+
"""Returns true if both objects are not equal"""
|
|
202
|
+
return not self == other
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListDesktopsConnectStatusRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'user_names': 'list[str]',
|
|
21
|
+
'connect_status': 'str',
|
|
22
|
+
'offset': 'int',
|
|
23
|
+
'limit': 'int'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'user_names': 'user_names',
|
|
28
|
+
'connect_status': 'connect_status',
|
|
29
|
+
'offset': 'offset',
|
|
30
|
+
'limit': 'limit'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, user_names=None, connect_status=None, offset=None, limit=None):
|
|
34
|
+
"""ListDesktopsConnectStatusRequest
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param user_names: 桌面所属用户,批量筛选,最多不超过100个用户。
|
|
39
|
+
:type user_names: list[str]
|
|
40
|
+
:param connect_status: 桌面的登录状态。 - UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。 - REGISTERED:表示桌面注册以后,等待用户连接的状态。 - CONNECTED:表示用户已经成功登录,正在使用桌面。 - DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。
|
|
41
|
+
:type connect_status: str
|
|
42
|
+
:param offset: 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。
|
|
43
|
+
:type offset: int
|
|
44
|
+
:param limit: 查询结果中想要返回的信息条目数量,用于分页查询,取值范围0-2000,默认值100。
|
|
45
|
+
:type limit: int
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._user_names = None
|
|
51
|
+
self._connect_status = None
|
|
52
|
+
self._offset = None
|
|
53
|
+
self._limit = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
if user_names is not None:
|
|
57
|
+
self.user_names = user_names
|
|
58
|
+
if connect_status is not None:
|
|
59
|
+
self.connect_status = connect_status
|
|
60
|
+
if offset is not None:
|
|
61
|
+
self.offset = offset
|
|
62
|
+
if limit is not None:
|
|
63
|
+
self.limit = limit
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def user_names(self):
|
|
67
|
+
"""Gets the user_names of this ListDesktopsConnectStatusRequest.
|
|
68
|
+
|
|
69
|
+
桌面所属用户,批量筛选,最多不超过100个用户。
|
|
70
|
+
|
|
71
|
+
:return: The user_names of this ListDesktopsConnectStatusRequest.
|
|
72
|
+
:rtype: list[str]
|
|
73
|
+
"""
|
|
74
|
+
return self._user_names
|
|
75
|
+
|
|
76
|
+
@user_names.setter
|
|
77
|
+
def user_names(self, user_names):
|
|
78
|
+
"""Sets the user_names of this ListDesktopsConnectStatusRequest.
|
|
79
|
+
|
|
80
|
+
桌面所属用户,批量筛选,最多不超过100个用户。
|
|
81
|
+
|
|
82
|
+
:param user_names: The user_names of this ListDesktopsConnectStatusRequest.
|
|
83
|
+
:type user_names: list[str]
|
|
84
|
+
"""
|
|
85
|
+
self._user_names = user_names
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def connect_status(self):
|
|
89
|
+
"""Gets the connect_status of this ListDesktopsConnectStatusRequest.
|
|
90
|
+
|
|
91
|
+
桌面的登录状态。 - UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。 - REGISTERED:表示桌面注册以后,等待用户连接的状态。 - CONNECTED:表示用户已经成功登录,正在使用桌面。 - DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。
|
|
92
|
+
|
|
93
|
+
:return: The connect_status of this ListDesktopsConnectStatusRequest.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._connect_status
|
|
97
|
+
|
|
98
|
+
@connect_status.setter
|
|
99
|
+
def connect_status(self, connect_status):
|
|
100
|
+
"""Sets the connect_status of this ListDesktopsConnectStatusRequest.
|
|
101
|
+
|
|
102
|
+
桌面的登录状态。 - UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。 - REGISTERED:表示桌面注册以后,等待用户连接的状态。 - CONNECTED:表示用户已经成功登录,正在使用桌面。 - DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。
|
|
103
|
+
|
|
104
|
+
:param connect_status: The connect_status of this ListDesktopsConnectStatusRequest.
|
|
105
|
+
:type connect_status: str
|
|
106
|
+
"""
|
|
107
|
+
self._connect_status = connect_status
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def offset(self):
|
|
111
|
+
"""Gets the offset of this ListDesktopsConnectStatusRequest.
|
|
112
|
+
|
|
113
|
+
从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。
|
|
114
|
+
|
|
115
|
+
:return: The offset of this ListDesktopsConnectStatusRequest.
|
|
116
|
+
:rtype: int
|
|
117
|
+
"""
|
|
118
|
+
return self._offset
|
|
119
|
+
|
|
120
|
+
@offset.setter
|
|
121
|
+
def offset(self, offset):
|
|
122
|
+
"""Sets the offset of this ListDesktopsConnectStatusRequest.
|
|
123
|
+
|
|
124
|
+
从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。
|
|
125
|
+
|
|
126
|
+
:param offset: The offset of this ListDesktopsConnectStatusRequest.
|
|
127
|
+
:type offset: int
|
|
128
|
+
"""
|
|
129
|
+
self._offset = offset
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def limit(self):
|
|
133
|
+
"""Gets the limit of this ListDesktopsConnectStatusRequest.
|
|
134
|
+
|
|
135
|
+
查询结果中想要返回的信息条目数量,用于分页查询,取值范围0-2000,默认值100。
|
|
136
|
+
|
|
137
|
+
:return: The limit of this ListDesktopsConnectStatusRequest.
|
|
138
|
+
:rtype: int
|
|
139
|
+
"""
|
|
140
|
+
return self._limit
|
|
141
|
+
|
|
142
|
+
@limit.setter
|
|
143
|
+
def limit(self, limit):
|
|
144
|
+
"""Sets the limit of this ListDesktopsConnectStatusRequest.
|
|
145
|
+
|
|
146
|
+
查询结果中想要返回的信息条目数量,用于分页查询,取值范围0-2000,默认值100。
|
|
147
|
+
|
|
148
|
+
:param limit: The limit of this ListDesktopsConnectStatusRequest.
|
|
149
|
+
:type limit: int
|
|
150
|
+
"""
|
|
151
|
+
self._limit = limit
|
|
152
|
+
|
|
153
|
+
def to_dict(self):
|
|
154
|
+
"""Returns the model properties as a dict"""
|
|
155
|
+
result = {}
|
|
156
|
+
|
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
158
|
+
value = getattr(self, attr)
|
|
159
|
+
if isinstance(value, list):
|
|
160
|
+
result[attr] = list(map(
|
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
162
|
+
value
|
|
163
|
+
))
|
|
164
|
+
elif hasattr(value, "to_dict"):
|
|
165
|
+
result[attr] = value.to_dict()
|
|
166
|
+
elif isinstance(value, dict):
|
|
167
|
+
result[attr] = dict(map(
|
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
|
170
|
+
value.items()
|
|
171
|
+
))
|
|
172
|
+
else:
|
|
173
|
+
if attr in self.sensitive_list:
|
|
174
|
+
result[attr] = "****"
|
|
175
|
+
else:
|
|
176
|
+
result[attr] = value
|
|
177
|
+
|
|
178
|
+
return result
|
|
179
|
+
|
|
180
|
+
def to_str(self):
|
|
181
|
+
"""Returns the string representation of the model"""
|
|
182
|
+
import simplejson as json
|
|
183
|
+
if six.PY2:
|
|
184
|
+
import sys
|
|
185
|
+
reload(sys)
|
|
186
|
+
sys.setdefaultencoding("utf-8")
|
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
188
|
+
|
|
189
|
+
def __repr__(self):
|
|
190
|
+
"""For `print`"""
|
|
191
|
+
return self.to_str()
|
|
192
|
+
|
|
193
|
+
def __eq__(self, other):
|
|
194
|
+
"""Returns true if both objects are equal"""
|
|
195
|
+
if not isinstance(other, ListDesktopsConnectStatusRequest):
|
|
196
|
+
return False
|
|
197
|
+
|
|
198
|
+
return self.__dict__ == other.__dict__
|
|
199
|
+
|
|
200
|
+
def __ne__(self, other):
|
|
201
|
+
"""Returns true if both objects are not equal"""
|
|
202
|
+
return not self == other
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListDesktopsConnectStatusResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'desktops': 'list[ConnectDesktopsInfo]',
|
|
22
|
+
'total_count': 'int'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'desktops': 'desktops',
|
|
27
|
+
'total_count': 'total_count'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, desktops=None, total_count=None):
|
|
31
|
+
"""ListDesktopsConnectStatusResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param desktops: 桌面登录信息列表。
|
|
36
|
+
:type desktops: list[:class:`huaweicloudsdkworkspace.v2.ConnectDesktopsInfo`]
|
|
37
|
+
:param total_count: 桌面总数。
|
|
38
|
+
:type total_count: int
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
super(ListDesktopsConnectStatusResponse, self).__init__()
|
|
42
|
+
|
|
43
|
+
self._desktops = None
|
|
44
|
+
self._total_count = None
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
if desktops is not None:
|
|
48
|
+
self.desktops = desktops
|
|
49
|
+
if total_count is not None:
|
|
50
|
+
self.total_count = total_count
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def desktops(self):
|
|
54
|
+
"""Gets the desktops of this ListDesktopsConnectStatusResponse.
|
|
55
|
+
|
|
56
|
+
桌面登录信息列表。
|
|
57
|
+
|
|
58
|
+
:return: The desktops of this ListDesktopsConnectStatusResponse.
|
|
59
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.ConnectDesktopsInfo`]
|
|
60
|
+
"""
|
|
61
|
+
return self._desktops
|
|
62
|
+
|
|
63
|
+
@desktops.setter
|
|
64
|
+
def desktops(self, desktops):
|
|
65
|
+
"""Sets the desktops of this ListDesktopsConnectStatusResponse.
|
|
66
|
+
|
|
67
|
+
桌面登录信息列表。
|
|
68
|
+
|
|
69
|
+
:param desktops: The desktops of this ListDesktopsConnectStatusResponse.
|
|
70
|
+
:type desktops: list[:class:`huaweicloudsdkworkspace.v2.ConnectDesktopsInfo`]
|
|
71
|
+
"""
|
|
72
|
+
self._desktops = desktops
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def total_count(self):
|
|
76
|
+
"""Gets the total_count of this ListDesktopsConnectStatusResponse.
|
|
77
|
+
|
|
78
|
+
桌面总数。
|
|
79
|
+
|
|
80
|
+
:return: The total_count of this ListDesktopsConnectStatusResponse.
|
|
81
|
+
:rtype: int
|
|
82
|
+
"""
|
|
83
|
+
return self._total_count
|
|
84
|
+
|
|
85
|
+
@total_count.setter
|
|
86
|
+
def total_count(self, total_count):
|
|
87
|
+
"""Sets the total_count of this ListDesktopsConnectStatusResponse.
|
|
88
|
+
|
|
89
|
+
桌面总数。
|
|
90
|
+
|
|
91
|
+
:param total_count: The total_count of this ListDesktopsConnectStatusResponse.
|
|
92
|
+
:type total_count: int
|
|
93
|
+
"""
|
|
94
|
+
self._total_count = total_count
|
|
95
|
+
|
|
96
|
+
def to_dict(self):
|
|
97
|
+
"""Returns the model properties as a dict"""
|
|
98
|
+
result = {}
|
|
99
|
+
|
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
101
|
+
value = getattr(self, attr)
|
|
102
|
+
if isinstance(value, list):
|
|
103
|
+
result[attr] = list(map(
|
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
105
|
+
value
|
|
106
|
+
))
|
|
107
|
+
elif hasattr(value, "to_dict"):
|
|
108
|
+
result[attr] = value.to_dict()
|
|
109
|
+
elif isinstance(value, dict):
|
|
110
|
+
result[attr] = dict(map(
|
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
|
113
|
+
value.items()
|
|
114
|
+
))
|
|
115
|
+
else:
|
|
116
|
+
if attr in self.sensitive_list:
|
|
117
|
+
result[attr] = "****"
|
|
118
|
+
else:
|
|
119
|
+
result[attr] = value
|
|
120
|
+
|
|
121
|
+
return result
|
|
122
|
+
|
|
123
|
+
def to_str(self):
|
|
124
|
+
"""Returns the string representation of the model"""
|
|
125
|
+
import simplejson as json
|
|
126
|
+
if six.PY2:
|
|
127
|
+
import sys
|
|
128
|
+
reload(sys)
|
|
129
|
+
sys.setdefaultencoding("utf-8")
|
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
131
|
+
|
|
132
|
+
def __repr__(self):
|
|
133
|
+
"""For `print`"""
|
|
134
|
+
return self.to_str()
|
|
135
|
+
|
|
136
|
+
def __eq__(self, other):
|
|
137
|
+
"""Returns true if both objects are equal"""
|
|
138
|
+
if not isinstance(other, ListDesktopsConnectStatusResponse):
|
|
139
|
+
return False
|
|
140
|
+
|
|
141
|
+
return self.__dict__ == other.__dict__
|
|
142
|
+
|
|
143
|
+
def __ne__(self, other):
|
|
144
|
+
"""Returns true if both objects are not equal"""
|
|
145
|
+
return not self == other
|
|
@@ -1709,6 +1709,78 @@ class WorkspaceAsyncClient(Client):
|
|
|
1709
1709
|
|
|
1710
1710
|
return http_info
|
|
1711
1711
|
|
|
1712
|
+
def list_desktops_connect_status_async(self, request):
|
|
1713
|
+
"""查询桌面登录状态列表
|
|
1714
|
+
|
|
1715
|
+
查询桌面登录状态列表。
|
|
1716
|
+
|
|
1717
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
:param request: Request instance for ListDesktopsConnectStatus
|
|
1721
|
+
:type request: :class:`huaweicloudsdkworkspace.v2.ListDesktopsConnectStatusRequest`
|
|
1722
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.ListDesktopsConnectStatusResponse`
|
|
1723
|
+
"""
|
|
1724
|
+
http_info = self._list_desktops_connect_status_http_info(request)
|
|
1725
|
+
return self._call_api(**http_info)
|
|
1726
|
+
|
|
1727
|
+
def list_desktops_connect_status_async_invoker(self, request):
|
|
1728
|
+
http_info = self._list_desktops_connect_status_http_info(request)
|
|
1729
|
+
return AsyncInvoker(self, http_info)
|
|
1730
|
+
|
|
1731
|
+
def _list_desktops_connect_status_http_info(self, request):
|
|
1732
|
+
http_info = {
|
|
1733
|
+
"method": "GET",
|
|
1734
|
+
"resource_path": "/v2/{project_id}/connect-desktops",
|
|
1735
|
+
"request_type": request.__class__.__name__,
|
|
1736
|
+
"response_type": "ListDesktopsConnectStatusResponse"
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1740
|
+
|
|
1741
|
+
cname = None
|
|
1742
|
+
|
|
1743
|
+
collection_formats = {}
|
|
1744
|
+
|
|
1745
|
+
path_params = {}
|
|
1746
|
+
|
|
1747
|
+
query_params = []
|
|
1748
|
+
if 'user_names' in local_var_params:
|
|
1749
|
+
query_params.append(('user_names', local_var_params['user_names']))
|
|
1750
|
+
collection_formats['user_names'] = 'csv'
|
|
1751
|
+
if 'connect_status' in local_var_params:
|
|
1752
|
+
query_params.append(('connect_status', local_var_params['connect_status']))
|
|
1753
|
+
if 'offset' in local_var_params:
|
|
1754
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
1755
|
+
if 'limit' in local_var_params:
|
|
1756
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
1757
|
+
|
|
1758
|
+
header_params = {}
|
|
1759
|
+
|
|
1760
|
+
form_params = {}
|
|
1761
|
+
|
|
1762
|
+
body = None
|
|
1763
|
+
if isinstance(request, SdkStreamRequest):
|
|
1764
|
+
body = request.get_file_stream()
|
|
1765
|
+
|
|
1766
|
+
response_headers = []
|
|
1767
|
+
|
|
1768
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1769
|
+
['application/json'])
|
|
1770
|
+
|
|
1771
|
+
auth_settings = []
|
|
1772
|
+
|
|
1773
|
+
http_info["cname"] = cname
|
|
1774
|
+
http_info["collection_formats"] = collection_formats
|
|
1775
|
+
http_info["path_params"] = path_params
|
|
1776
|
+
http_info["query_params"] = query_params
|
|
1777
|
+
http_info["header_params"] = header_params
|
|
1778
|
+
http_info["post_params"] = form_params
|
|
1779
|
+
http_info["body"] = body
|
|
1780
|
+
http_info["response_headers"] = response_headers
|
|
1781
|
+
|
|
1782
|
+
return http_info
|
|
1783
|
+
|
|
1712
1784
|
def list_desktops_detail_async(self, request):
|
|
1713
1785
|
"""查询桌面详情列表
|
|
1714
1786
|
|
|
@@ -1709,6 +1709,78 @@ class WorkspaceClient(Client):
|
|
|
1709
1709
|
|
|
1710
1710
|
return http_info
|
|
1711
1711
|
|
|
1712
|
+
def list_desktops_connect_status(self, request):
|
|
1713
|
+
"""查询桌面登录状态列表
|
|
1714
|
+
|
|
1715
|
+
查询桌面登录状态列表。
|
|
1716
|
+
|
|
1717
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1718
|
+
|
|
1719
|
+
:param request: Request instance for ListDesktopsConnectStatus
|
|
1720
|
+
:type request: :class:`huaweicloudsdkworkspace.v2.ListDesktopsConnectStatusRequest`
|
|
1721
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.ListDesktopsConnectStatusResponse`
|
|
1722
|
+
"""
|
|
1723
|
+
http_info = self._list_desktops_connect_status_http_info(request)
|
|
1724
|
+
return self._call_api(**http_info)
|
|
1725
|
+
|
|
1726
|
+
def list_desktops_connect_status_invoker(self, request):
|
|
1727
|
+
http_info = self._list_desktops_connect_status_http_info(request)
|
|
1728
|
+
return SyncInvoker(self, http_info)
|
|
1729
|
+
|
|
1730
|
+
@classmethod
|
|
1731
|
+
def _list_desktops_connect_status_http_info(cls, request):
|
|
1732
|
+
http_info = {
|
|
1733
|
+
"method": "GET",
|
|
1734
|
+
"resource_path": "/v2/{project_id}/connect-desktops",
|
|
1735
|
+
"request_type": request.__class__.__name__,
|
|
1736
|
+
"response_type": "ListDesktopsConnectStatusResponse"
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1740
|
+
|
|
1741
|
+
cname = None
|
|
1742
|
+
|
|
1743
|
+
collection_formats = {}
|
|
1744
|
+
|
|
1745
|
+
path_params = {}
|
|
1746
|
+
|
|
1747
|
+
query_params = []
|
|
1748
|
+
if 'user_names' in local_var_params:
|
|
1749
|
+
query_params.append(('user_names', local_var_params['user_names']))
|
|
1750
|
+
collection_formats['user_names'] = 'csv'
|
|
1751
|
+
if 'connect_status' in local_var_params:
|
|
1752
|
+
query_params.append(('connect_status', local_var_params['connect_status']))
|
|
1753
|
+
if 'offset' in local_var_params:
|
|
1754
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
1755
|
+
if 'limit' in local_var_params:
|
|
1756
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
1757
|
+
|
|
1758
|
+
header_params = {}
|
|
1759
|
+
|
|
1760
|
+
form_params = {}
|
|
1761
|
+
|
|
1762
|
+
body = None
|
|
1763
|
+
if isinstance(request, SdkStreamRequest):
|
|
1764
|
+
body = request.get_file_stream()
|
|
1765
|
+
|
|
1766
|
+
response_headers = []
|
|
1767
|
+
|
|
1768
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1769
|
+
['application/json'])
|
|
1770
|
+
|
|
1771
|
+
auth_settings = []
|
|
1772
|
+
|
|
1773
|
+
http_info["cname"] = cname
|
|
1774
|
+
http_info["collection_formats"] = collection_formats
|
|
1775
|
+
http_info["path_params"] = path_params
|
|
1776
|
+
http_info["query_params"] = query_params
|
|
1777
|
+
http_info["header_params"] = header_params
|
|
1778
|
+
http_info["post_params"] = form_params
|
|
1779
|
+
http_info["body"] = body
|
|
1780
|
+
http_info["response_headers"] = response_headers
|
|
1781
|
+
|
|
1782
|
+
return http_info
|
|
1783
|
+
|
|
1712
1784
|
def list_desktops_detail(self, request):
|
|
1713
1785
|
"""查询桌面详情列表
|
|
1714
1786
|
|
{huaweicloudsdkworkspace-3.1.110.dist-info → huaweicloudsdkworkspace-3.1.112.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkworkspace
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.112
|
|
4
4
|
Summary: Workspace
|
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
6
|
Author: HuaweiCloud SDK
|
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.112
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
{huaweicloudsdkworkspace-3.1.110.dist-info → huaweicloudsdkworkspace-3.1.112.dist-info}/RECORD
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
huaweicloudsdkworkspace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
huaweicloudsdkworkspace/v2/__init__.py,sha256=
|
|
3
|
-
huaweicloudsdkworkspace/v2/workspace_async_client.py,sha256=
|
|
4
|
-
huaweicloudsdkworkspace/v2/workspace_client.py,sha256=
|
|
5
|
-
huaweicloudsdkworkspace/v2/model/__init__.py,sha256=
|
|
2
|
+
huaweicloudsdkworkspace/v2/__init__.py,sha256=xSdKP9elG2c-3qwrv9mfM_IT96gs8F2EjQxEzvBYY5c,33217
|
|
3
|
+
huaweicloudsdkworkspace/v2/workspace_async_client.py,sha256=vLInKp384df11s4zZAuVzh7jJeYxYxf7_2_3FE27v38,244594
|
|
4
|
+
huaweicloudsdkworkspace/v2/workspace_client.py,sha256=kq2cF0ebnNIh9NNEUFwpkDUg1A3BLysjjXIJmBj406c,244697
|
|
5
|
+
huaweicloudsdkworkspace/v2/model/__init__.py,sha256=czzxkbbaAVSqerhTIy-6Ff43CCoAF8_B3Pbv6DPAYiQ,33095
|
|
6
6
|
huaweicloudsdkworkspace/v2/model/access_policy_detail_info.py,sha256=IUDhfa-8D_b5U-bHF7Mt98BokuLqc0EvkvkN0tAqK8E,6089
|
|
7
7
|
huaweicloudsdkworkspace/v2/model/access_policy_info.py,sha256=yWW3l7exK5IeiBFTzrqcIZhezqqxsCDW7v1ItMv2quo,4338
|
|
8
8
|
huaweicloudsdkworkspace/v2/model/access_policy_object.py,sha256=mw_an1YHdWcDrPlfatFKip6Ls34nF_ckN-4RqX-Zhdw,4915
|
|
@@ -39,6 +39,7 @@ huaweicloudsdkworkspace/v2/model/attach_instances_req.py,sha256=3sIVkqV0-jk91qOS
|
|
|
39
39
|
huaweicloudsdkworkspace/v2/model/attach_instances_request.py,sha256=RvsqAnK7mPjcgu8iwFjGwLaE1-nUtzmFGtOwNvmlQKE,3149
|
|
40
40
|
huaweicloudsdkworkspace/v2/model/attach_instances_response.py,sha256=x0QDonPxGVK183diVJYoBw_ZXb1OvUpPaiUh4A0l5A8,3232
|
|
41
41
|
huaweicloudsdkworkspace/v2/model/attach_instances_user_info.py,sha256=AX2iOVwmdOZ6ziNRZ80NyiXwG78kCJGFjWS4Rde_dug,8051
|
|
42
|
+
huaweicloudsdkworkspace/v2/model/attach_users_info.py,sha256=i47wJ0oAUW9x4PAwFDRUdrqOv8qIO62QrpQ_RglLPUc,8965
|
|
42
43
|
huaweicloudsdkworkspace/v2/model/auth_assist_enum.py,sha256=-SbzteHIwGOcIxgvFa9fElCgLQPgKLDcPlwClvWK0x4,2415
|
|
43
44
|
huaweicloudsdkworkspace/v2/model/auth_server_access_mode.py,sha256=7476HY4fAxJHl8RGWaYxefu5xW8OIt2WwuLiu0YNerM,2449
|
|
44
45
|
huaweicloudsdkworkspace/v2/model/availability_zone_info.py,sha256=1Yh_nwQAvCvTrxK6dm2g_dCVetx44JW4hLblOmLsmtk,8865
|
|
@@ -88,6 +89,7 @@ huaweicloudsdkworkspace/v2/model/change_desktop_network_request.py,sha256=dwnyr5
|
|
|
88
89
|
huaweicloudsdkworkspace/v2/model/change_desktop_network_response.py,sha256=wPb4RJcV4tMgyr3mkgjQ4PfNIi31CG1XtWpkZ9Eq7n4,3209
|
|
89
90
|
huaweicloudsdkworkspace/v2/model/change_user_status_request.py,sha256=fQ2tjSCMzxzprDMDcBUAYUl8PawyKFlCK_-kl2vw60s,3854
|
|
90
91
|
huaweicloudsdkworkspace/v2/model/change_user_status_response.py,sha256=bBJ1dg0C405UaGOAmoRHAM1e0-0LzpKUpEZiOiZ8qFM,2447
|
|
92
|
+
huaweicloudsdkworkspace/v2/model/connect_desktops_info.py,sha256=NvzH14DjgoduMf1ezCKrmK4y_LD80ViKUk8XvkphNH4,7336
|
|
91
93
|
huaweicloudsdkworkspace/v2/model/create_access_policy_req.py,sha256=Wlgi59SSDyPO63gT3YQOm4MDMxprIcnWCraGgYtBN94,4384
|
|
92
94
|
huaweicloudsdkworkspace/v2/model/create_access_policy_request.py,sha256=EPfsZ1_l4ePF71l1oUDFcKza-E_YuZ4jSUgbYRKSht8,3185
|
|
93
95
|
huaweicloudsdkworkspace/v2/model/create_access_policy_response.py,sha256=vAHXX5-rBYqtixoOR9-CaAnI6APP_hzhywcO5m7uHKA,2455
|
|
@@ -180,6 +182,8 @@ huaweicloudsdkworkspace/v2/model/list_desktop_name_policy_request.py,sha256=HZPk
|
|
|
180
182
|
huaweicloudsdkworkspace/v2/model/list_desktop_name_policy_response.py,sha256=Qo5lb3WiAj2w3aellMrEkhjbdkRqvDc-dEEgpazVI5U,4810
|
|
181
183
|
huaweicloudsdkworkspace/v2/model/list_desktop_usage_metric_request.py,sha256=5shGCZClcRqNTS0yRnf_WdWPKYtKdQZhyYh5Zq5imTA,14831
|
|
182
184
|
huaweicloudsdkworkspace/v2/model/list_desktop_usage_metric_response.py,sha256=I0z_qU5Aqy-NVrSLs6yCC5K2Z_4dhjgX66JF5yO89R8,4111
|
|
185
|
+
huaweicloudsdkworkspace/v2/model/list_desktops_connect_status_request.py,sha256=ZovRfeOnKN8Vxxz1zWER1YOGTXRZlGyK4AK7liZwbDc,7743
|
|
186
|
+
huaweicloudsdkworkspace/v2/model/list_desktops_connect_status_response.py,sha256=JELkNnpmmyXef3p8b9ffGjc5Kh083nV9EAa2WBZMlWI,4432
|
|
183
187
|
huaweicloudsdkworkspace/v2/model/list_desktops_detail_request.py,sha256=2NhK5bCjrkuEaZQ07n1VyPidUaSMy_RtXyaa1mB5ZHI,20635
|
|
184
188
|
huaweicloudsdkworkspace/v2/model/list_desktops_detail_response.py,sha256=LoLQWRCL0xqNk1EMH60_2vJMuOFZ-jpItrH42hyon5w,4322
|
|
185
189
|
huaweicloudsdkworkspace/v2/model/list_desktops_eips_request.py,sha256=9raQjVqmpqHGO_5aaLErQzbu2DAV6xy2Tie6cSQ2dLM,9482
|
|
@@ -347,8 +351,8 @@ huaweicloudsdkworkspace/v2/model/volume_detail.py,sha256=EadIl0qszTD9oQEGiRlmZrb
|
|
|
347
351
|
huaweicloudsdkworkspace/v2/model/vpc.py,sha256=rKqAU5vZK4Y059h5LIFxWfWefxsgiERApZaw3Wm5qlY,4099
|
|
348
352
|
huaweicloudsdkworkspace/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
349
353
|
huaweicloudsdkworkspace/v2/region/workspace_region.py,sha256=sQ3AfV2rupDNT_nxIFCCXOLNLg-jtEI6B4CSXUYeof8,2359
|
|
350
|
-
huaweicloudsdkworkspace-3.1.
|
|
351
|
-
huaweicloudsdkworkspace-3.1.
|
|
352
|
-
huaweicloudsdkworkspace-3.1.
|
|
353
|
-
huaweicloudsdkworkspace-3.1.
|
|
354
|
-
huaweicloudsdkworkspace-3.1.
|
|
354
|
+
huaweicloudsdkworkspace-3.1.112.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
355
|
+
huaweicloudsdkworkspace-3.1.112.dist-info/METADATA,sha256=EKGh_1gKaIWNklvIVdGtL-Ttzp1R5PzD58YSEatPZA4,1153
|
|
356
|
+
huaweicloudsdkworkspace-3.1.112.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
357
|
+
huaweicloudsdkworkspace-3.1.112.dist-info/top_level.txt,sha256=Iqj0R-5g-jAYosVE4_il8rB8wRuaDb2fefMXUBmIAs4,24
|
|
358
|
+
huaweicloudsdkworkspace-3.1.112.dist-info/RECORD,,
|
{huaweicloudsdkworkspace-3.1.110.dist-info → huaweicloudsdkworkspace-3.1.112.dist-info}/LICENSE
RENAMED
|
File without changes
|
{huaweicloudsdkworkspace-3.1.110.dist-info → huaweicloudsdkworkspace-3.1.112.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|