huaweicloudsdkworkspace 3.1.122__py2.py3-none-any.whl → 3.1.124__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 +54 -0
- huaweicloudsdkworkspace/v2/model/__init__.py +54 -0
- huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_req.py +144 -0
- huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_response.py +319 -0
- huaweicloudsdkworkspace/v2/model/authorized_objects.py +227 -0
- huaweicloudsdkworkspace/v2/model/autoscale_policy.py +202 -0
- huaweicloudsdkworkspace/v2/model/base_error.py +144 -0
- huaweicloudsdkworkspace/v2/model/batch_delete_user_req.py +114 -0
- huaweicloudsdkworkspace/v2/model/batch_delete_user_request.py +111 -0
- huaweicloudsdkworkspace/v2/model/batch_delete_user_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/cbc_callback_rsp.py +289 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request.py +139 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request_body.py +143 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_req.py +708 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_request.py +140 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_response.py +116 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_rsp.py +115 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_request.py +114 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_req.py +115 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_request.py +139 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_response.py +116 -0
- huaweicloudsdkworkspace/v2/model/desktop_pool_action_req.py +143 -0
- huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_request.py +139 -0
- huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_response.py +116 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_req.py +143 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_response.py +116 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_req.py +144 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_response.py +319 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_request.py +172 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_response.py +145 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_pools_request.py +260 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_pools_response.py +145 -0
- huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_request.py +201 -0
- huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_response.py +203 -0
- huaweicloudsdkworkspace/v2/model/pool_desktops_detail_info.py +1147 -0
- huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_req.py +288 -0
- huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_response.py +232 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_extend_param.py +115 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_pool_job_response.py +144 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_pool_req.py +197 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_pool_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_pool_response.py +174 -0
- huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_request.py +114 -0
- huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_response.py +887 -0
- huaweicloudsdkworkspace/v2/model/simple_desktop_pool_info.py +886 -0
- huaweicloudsdkworkspace/v2/model/update_desktop_pool_attributes_req.py +372 -0
- huaweicloudsdkworkspace/v2/model/update_desktop_pool_request.py +139 -0
- huaweicloudsdkworkspace/v2/model/update_desktop_pool_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/volume_add_info.py +200 -0
- huaweicloudsdkworkspace/v2/model/volume_info.py +229 -0
- huaweicloudsdkworkspace/v2/workspace_async_client.py +1091 -0
- huaweicloudsdkworkspace/v2/workspace_client.py +1091 -0
- {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/METADATA +2 -2
- {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/RECORD +63 -9
- {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/WHEEL +1 -1
- {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/LICENSE +0 -0
- {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CbcCallbackRsp:
|
|
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
|
+
'error_code': 'str',
|
|
21
|
+
'error_msg': 'str',
|
|
22
|
+
'cbc_job_id': 'str',
|
|
23
|
+
'get_job_endpoint': 'str',
|
|
24
|
+
'max_provision_time': 'int',
|
|
25
|
+
'min_provision_time': 'int',
|
|
26
|
+
'periodic_query_time': 'int'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
attribute_map = {
|
|
30
|
+
'error_code': 'error_code',
|
|
31
|
+
'error_msg': 'error_msg',
|
|
32
|
+
'cbc_job_id': 'cbcJobId',
|
|
33
|
+
'get_job_endpoint': 'getJobEndpoint',
|
|
34
|
+
'max_provision_time': 'maxProvisionTime',
|
|
35
|
+
'min_provision_time': 'minProvisionTime',
|
|
36
|
+
'periodic_query_time': 'periodicQueryTime'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
def __init__(self, error_code=None, error_msg=None, cbc_job_id=None, get_job_endpoint=None, max_provision_time=None, min_provision_time=None, periodic_query_time=None):
|
|
40
|
+
"""CbcCallbackRsp
|
|
41
|
+
|
|
42
|
+
The model defined in huaweicloud sdk
|
|
43
|
+
|
|
44
|
+
:param error_code: 错误码,失败时返回。
|
|
45
|
+
:type error_code: str
|
|
46
|
+
:param error_msg: 错误描述。
|
|
47
|
+
:type error_msg: str
|
|
48
|
+
:param cbc_job_id: 创建云桌面总任务ID,CBC根据此ID定期查询任务是否成功
|
|
49
|
+
:type cbc_job_id: str
|
|
50
|
+
:param get_job_endpoint: 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果
|
|
51
|
+
:type get_job_endpoint: str
|
|
52
|
+
:param max_provision_time: 在线开通最大时间 在maxProvisionTime时间范围内,CBC会周期性的查询云服务开通结果;超过maxProvisionTime还没有开通成功,CBC会发失败工单,人工去分析处理。 单位:分钟。 如果为空,CBC默认为6小时。 取值范围(0,43200],即30天。
|
|
53
|
+
:type max_provision_time: int
|
|
54
|
+
:param min_provision_time: 开通最小时间(云服务最快开通时长,或一般开通时长) 获取到JobId后,经过minProvisionTime时间后,才来查询获取云服务开通结果。如果为空,云运营平台获取到JobId后,就去查询云服务开通结果。 单位:分钟。 取值范围:(0, 43200)
|
|
55
|
+
:type min_provision_time: int
|
|
56
|
+
:param periodic_query_time: Job周期性查询时间,默认2分钟查询一次 云运营平台会使用getJobEndpoint(Job查询接口)、每隔periodicQueryTime时间去查询云服务开通结果。 单位:分钟。 如果为空,则使用CBC默认的间隔时间(1分钟,2分钟,4分钟……15分钟)来查询云服务开通结果。 取值范围:(0, 43200)
|
|
57
|
+
:type periodic_query_time: int
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
self._error_code = None
|
|
63
|
+
self._error_msg = None
|
|
64
|
+
self._cbc_job_id = None
|
|
65
|
+
self._get_job_endpoint = None
|
|
66
|
+
self._max_provision_time = None
|
|
67
|
+
self._min_provision_time = None
|
|
68
|
+
self._periodic_query_time = None
|
|
69
|
+
self.discriminator = None
|
|
70
|
+
|
|
71
|
+
if error_code is not None:
|
|
72
|
+
self.error_code = error_code
|
|
73
|
+
if error_msg is not None:
|
|
74
|
+
self.error_msg = error_msg
|
|
75
|
+
if cbc_job_id is not None:
|
|
76
|
+
self.cbc_job_id = cbc_job_id
|
|
77
|
+
if get_job_endpoint is not None:
|
|
78
|
+
self.get_job_endpoint = get_job_endpoint
|
|
79
|
+
if max_provision_time is not None:
|
|
80
|
+
self.max_provision_time = max_provision_time
|
|
81
|
+
if min_provision_time is not None:
|
|
82
|
+
self.min_provision_time = min_provision_time
|
|
83
|
+
if periodic_query_time is not None:
|
|
84
|
+
self.periodic_query_time = periodic_query_time
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def error_code(self):
|
|
88
|
+
"""Gets the error_code of this CbcCallbackRsp.
|
|
89
|
+
|
|
90
|
+
错误码,失败时返回。
|
|
91
|
+
|
|
92
|
+
:return: The error_code of this CbcCallbackRsp.
|
|
93
|
+
:rtype: str
|
|
94
|
+
"""
|
|
95
|
+
return self._error_code
|
|
96
|
+
|
|
97
|
+
@error_code.setter
|
|
98
|
+
def error_code(self, error_code):
|
|
99
|
+
"""Sets the error_code of this CbcCallbackRsp.
|
|
100
|
+
|
|
101
|
+
错误码,失败时返回。
|
|
102
|
+
|
|
103
|
+
:param error_code: The error_code of this CbcCallbackRsp.
|
|
104
|
+
:type error_code: str
|
|
105
|
+
"""
|
|
106
|
+
self._error_code = error_code
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def error_msg(self):
|
|
110
|
+
"""Gets the error_msg of this CbcCallbackRsp.
|
|
111
|
+
|
|
112
|
+
错误描述。
|
|
113
|
+
|
|
114
|
+
:return: The error_msg of this CbcCallbackRsp.
|
|
115
|
+
:rtype: str
|
|
116
|
+
"""
|
|
117
|
+
return self._error_msg
|
|
118
|
+
|
|
119
|
+
@error_msg.setter
|
|
120
|
+
def error_msg(self, error_msg):
|
|
121
|
+
"""Sets the error_msg of this CbcCallbackRsp.
|
|
122
|
+
|
|
123
|
+
错误描述。
|
|
124
|
+
|
|
125
|
+
:param error_msg: The error_msg of this CbcCallbackRsp.
|
|
126
|
+
:type error_msg: str
|
|
127
|
+
"""
|
|
128
|
+
self._error_msg = error_msg
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def cbc_job_id(self):
|
|
132
|
+
"""Gets the cbc_job_id of this CbcCallbackRsp.
|
|
133
|
+
|
|
134
|
+
创建云桌面总任务ID,CBC根据此ID定期查询任务是否成功
|
|
135
|
+
|
|
136
|
+
:return: The cbc_job_id of this CbcCallbackRsp.
|
|
137
|
+
:rtype: str
|
|
138
|
+
"""
|
|
139
|
+
return self._cbc_job_id
|
|
140
|
+
|
|
141
|
+
@cbc_job_id.setter
|
|
142
|
+
def cbc_job_id(self, cbc_job_id):
|
|
143
|
+
"""Sets the cbc_job_id of this CbcCallbackRsp.
|
|
144
|
+
|
|
145
|
+
创建云桌面总任务ID,CBC根据此ID定期查询任务是否成功
|
|
146
|
+
|
|
147
|
+
:param cbc_job_id: The cbc_job_id of this CbcCallbackRsp.
|
|
148
|
+
:type cbc_job_id: str
|
|
149
|
+
"""
|
|
150
|
+
self._cbc_job_id = cbc_job_id
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
def get_job_endpoint(self):
|
|
154
|
+
"""Gets the get_job_endpoint of this CbcCallbackRsp.
|
|
155
|
+
|
|
156
|
+
云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果
|
|
157
|
+
|
|
158
|
+
:return: The get_job_endpoint of this CbcCallbackRsp.
|
|
159
|
+
:rtype: str
|
|
160
|
+
"""
|
|
161
|
+
return self._get_job_endpoint
|
|
162
|
+
|
|
163
|
+
@get_job_endpoint.setter
|
|
164
|
+
def get_job_endpoint(self, get_job_endpoint):
|
|
165
|
+
"""Sets the get_job_endpoint of this CbcCallbackRsp.
|
|
166
|
+
|
|
167
|
+
云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果
|
|
168
|
+
|
|
169
|
+
:param get_job_endpoint: The get_job_endpoint of this CbcCallbackRsp.
|
|
170
|
+
:type get_job_endpoint: str
|
|
171
|
+
"""
|
|
172
|
+
self._get_job_endpoint = get_job_endpoint
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
def max_provision_time(self):
|
|
176
|
+
"""Gets the max_provision_time of this CbcCallbackRsp.
|
|
177
|
+
|
|
178
|
+
在线开通最大时间 在maxProvisionTime时间范围内,CBC会周期性的查询云服务开通结果;超过maxProvisionTime还没有开通成功,CBC会发失败工单,人工去分析处理。 单位:分钟。 如果为空,CBC默认为6小时。 取值范围(0,43200],即30天。
|
|
179
|
+
|
|
180
|
+
:return: The max_provision_time of this CbcCallbackRsp.
|
|
181
|
+
:rtype: int
|
|
182
|
+
"""
|
|
183
|
+
return self._max_provision_time
|
|
184
|
+
|
|
185
|
+
@max_provision_time.setter
|
|
186
|
+
def max_provision_time(self, max_provision_time):
|
|
187
|
+
"""Sets the max_provision_time of this CbcCallbackRsp.
|
|
188
|
+
|
|
189
|
+
在线开通最大时间 在maxProvisionTime时间范围内,CBC会周期性的查询云服务开通结果;超过maxProvisionTime还没有开通成功,CBC会发失败工单,人工去分析处理。 单位:分钟。 如果为空,CBC默认为6小时。 取值范围(0,43200],即30天。
|
|
190
|
+
|
|
191
|
+
:param max_provision_time: The max_provision_time of this CbcCallbackRsp.
|
|
192
|
+
:type max_provision_time: int
|
|
193
|
+
"""
|
|
194
|
+
self._max_provision_time = max_provision_time
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
def min_provision_time(self):
|
|
198
|
+
"""Gets the min_provision_time of this CbcCallbackRsp.
|
|
199
|
+
|
|
200
|
+
开通最小时间(云服务最快开通时长,或一般开通时长) 获取到JobId后,经过minProvisionTime时间后,才来查询获取云服务开通结果。如果为空,云运营平台获取到JobId后,就去查询云服务开通结果。 单位:分钟。 取值范围:(0, 43200)
|
|
201
|
+
|
|
202
|
+
:return: The min_provision_time of this CbcCallbackRsp.
|
|
203
|
+
:rtype: int
|
|
204
|
+
"""
|
|
205
|
+
return self._min_provision_time
|
|
206
|
+
|
|
207
|
+
@min_provision_time.setter
|
|
208
|
+
def min_provision_time(self, min_provision_time):
|
|
209
|
+
"""Sets the min_provision_time of this CbcCallbackRsp.
|
|
210
|
+
|
|
211
|
+
开通最小时间(云服务最快开通时长,或一般开通时长) 获取到JobId后,经过minProvisionTime时间后,才来查询获取云服务开通结果。如果为空,云运营平台获取到JobId后,就去查询云服务开通结果。 单位:分钟。 取值范围:(0, 43200)
|
|
212
|
+
|
|
213
|
+
:param min_provision_time: The min_provision_time of this CbcCallbackRsp.
|
|
214
|
+
:type min_provision_time: int
|
|
215
|
+
"""
|
|
216
|
+
self._min_provision_time = min_provision_time
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
def periodic_query_time(self):
|
|
220
|
+
"""Gets the periodic_query_time of this CbcCallbackRsp.
|
|
221
|
+
|
|
222
|
+
Job周期性查询时间,默认2分钟查询一次 云运营平台会使用getJobEndpoint(Job查询接口)、每隔periodicQueryTime时间去查询云服务开通结果。 单位:分钟。 如果为空,则使用CBC默认的间隔时间(1分钟,2分钟,4分钟……15分钟)来查询云服务开通结果。 取值范围:(0, 43200)
|
|
223
|
+
|
|
224
|
+
:return: The periodic_query_time of this CbcCallbackRsp.
|
|
225
|
+
:rtype: int
|
|
226
|
+
"""
|
|
227
|
+
return self._periodic_query_time
|
|
228
|
+
|
|
229
|
+
@periodic_query_time.setter
|
|
230
|
+
def periodic_query_time(self, periodic_query_time):
|
|
231
|
+
"""Sets the periodic_query_time of this CbcCallbackRsp.
|
|
232
|
+
|
|
233
|
+
Job周期性查询时间,默认2分钟查询一次 云运营平台会使用getJobEndpoint(Job查询接口)、每隔periodicQueryTime时间去查询云服务开通结果。 单位:分钟。 如果为空,则使用CBC默认的间隔时间(1分钟,2分钟,4分钟……15分钟)来查询云服务开通结果。 取值范围:(0, 43200)
|
|
234
|
+
|
|
235
|
+
:param periodic_query_time: The periodic_query_time of this CbcCallbackRsp.
|
|
236
|
+
:type periodic_query_time: int
|
|
237
|
+
"""
|
|
238
|
+
self._periodic_query_time = periodic_query_time
|
|
239
|
+
|
|
240
|
+
def to_dict(self):
|
|
241
|
+
"""Returns the model properties as a dict"""
|
|
242
|
+
result = {}
|
|
243
|
+
|
|
244
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
245
|
+
value = getattr(self, attr)
|
|
246
|
+
if isinstance(value, list):
|
|
247
|
+
result[attr] = list(map(
|
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
249
|
+
value
|
|
250
|
+
))
|
|
251
|
+
elif hasattr(value, "to_dict"):
|
|
252
|
+
result[attr] = value.to_dict()
|
|
253
|
+
elif isinstance(value, dict):
|
|
254
|
+
result[attr] = dict(map(
|
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
|
257
|
+
value.items()
|
|
258
|
+
))
|
|
259
|
+
else:
|
|
260
|
+
if attr in self.sensitive_list:
|
|
261
|
+
result[attr] = "****"
|
|
262
|
+
else:
|
|
263
|
+
result[attr] = value
|
|
264
|
+
|
|
265
|
+
return result
|
|
266
|
+
|
|
267
|
+
def to_str(self):
|
|
268
|
+
"""Returns the string representation of the model"""
|
|
269
|
+
import simplejson as json
|
|
270
|
+
if six.PY2:
|
|
271
|
+
import sys
|
|
272
|
+
reload(sys)
|
|
273
|
+
sys.setdefaultencoding("utf-8")
|
|
274
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
275
|
+
|
|
276
|
+
def __repr__(self):
|
|
277
|
+
"""For `print`"""
|
|
278
|
+
return self.to_str()
|
|
279
|
+
|
|
280
|
+
def __eq__(self, other):
|
|
281
|
+
"""Returns true if both objects are equal"""
|
|
282
|
+
if not isinstance(other, CbcCallbackRsp):
|
|
283
|
+
return False
|
|
284
|
+
|
|
285
|
+
return self.__dict__ == other.__dict__
|
|
286
|
+
|
|
287
|
+
def __ne__(self, other):
|
|
288
|
+
"""Returns true if both objects are not equal"""
|
|
289
|
+
return not self == other
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateDesktopPoolAuthorizedObjectsRequest:
|
|
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
|
+
'pool_id': 'str',
|
|
21
|
+
'body': 'CreateDesktopPoolAuthorizedObjectsRequestBody'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'pool_id': 'pool_id',
|
|
26
|
+
'body': 'body'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, pool_id=None, body=None):
|
|
30
|
+
"""CreateDesktopPoolAuthorizedObjectsRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param pool_id: 桌面池ID。
|
|
35
|
+
:type pool_id: str
|
|
36
|
+
:param body: Body of the CreateDesktopPoolAuthorizedObjectsRequest
|
|
37
|
+
:type body: :class:`huaweicloudsdkworkspace.v2.CreateDesktopPoolAuthorizedObjectsRequestBody`
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._pool_id = None
|
|
43
|
+
self._body = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.pool_id = pool_id
|
|
47
|
+
if body is not None:
|
|
48
|
+
self.body = body
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def pool_id(self):
|
|
52
|
+
"""Gets the pool_id of this CreateDesktopPoolAuthorizedObjectsRequest.
|
|
53
|
+
|
|
54
|
+
桌面池ID。
|
|
55
|
+
|
|
56
|
+
:return: The pool_id of this CreateDesktopPoolAuthorizedObjectsRequest.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._pool_id
|
|
60
|
+
|
|
61
|
+
@pool_id.setter
|
|
62
|
+
def pool_id(self, pool_id):
|
|
63
|
+
"""Sets the pool_id of this CreateDesktopPoolAuthorizedObjectsRequest.
|
|
64
|
+
|
|
65
|
+
桌面池ID。
|
|
66
|
+
|
|
67
|
+
:param pool_id: The pool_id of this CreateDesktopPoolAuthorizedObjectsRequest.
|
|
68
|
+
:type pool_id: str
|
|
69
|
+
"""
|
|
70
|
+
self._pool_id = pool_id
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def body(self):
|
|
74
|
+
"""Gets the body of this CreateDesktopPoolAuthorizedObjectsRequest.
|
|
75
|
+
|
|
76
|
+
:return: The body of this CreateDesktopPoolAuthorizedObjectsRequest.
|
|
77
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.CreateDesktopPoolAuthorizedObjectsRequestBody`
|
|
78
|
+
"""
|
|
79
|
+
return self._body
|
|
80
|
+
|
|
81
|
+
@body.setter
|
|
82
|
+
def body(self, body):
|
|
83
|
+
"""Sets the body of this CreateDesktopPoolAuthorizedObjectsRequest.
|
|
84
|
+
|
|
85
|
+
:param body: The body of this CreateDesktopPoolAuthorizedObjectsRequest.
|
|
86
|
+
:type body: :class:`huaweicloudsdkworkspace.v2.CreateDesktopPoolAuthorizedObjectsRequestBody`
|
|
87
|
+
"""
|
|
88
|
+
self._body = body
|
|
89
|
+
|
|
90
|
+
def to_dict(self):
|
|
91
|
+
"""Returns the model properties as a dict"""
|
|
92
|
+
result = {}
|
|
93
|
+
|
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
95
|
+
value = getattr(self, attr)
|
|
96
|
+
if isinstance(value, list):
|
|
97
|
+
result[attr] = list(map(
|
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
99
|
+
value
|
|
100
|
+
))
|
|
101
|
+
elif hasattr(value, "to_dict"):
|
|
102
|
+
result[attr] = value.to_dict()
|
|
103
|
+
elif isinstance(value, dict):
|
|
104
|
+
result[attr] = dict(map(
|
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
|
107
|
+
value.items()
|
|
108
|
+
))
|
|
109
|
+
else:
|
|
110
|
+
if attr in self.sensitive_list:
|
|
111
|
+
result[attr] = "****"
|
|
112
|
+
else:
|
|
113
|
+
result[attr] = value
|
|
114
|
+
|
|
115
|
+
return result
|
|
116
|
+
|
|
117
|
+
def to_str(self):
|
|
118
|
+
"""Returns the string representation of the model"""
|
|
119
|
+
import simplejson as json
|
|
120
|
+
if six.PY2:
|
|
121
|
+
import sys
|
|
122
|
+
reload(sys)
|
|
123
|
+
sys.setdefaultencoding("utf-8")
|
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
125
|
+
|
|
126
|
+
def __repr__(self):
|
|
127
|
+
"""For `print`"""
|
|
128
|
+
return self.to_str()
|
|
129
|
+
|
|
130
|
+
def __eq__(self, other):
|
|
131
|
+
"""Returns true if both objects are equal"""
|
|
132
|
+
if not isinstance(other, CreateDesktopPoolAuthorizedObjectsRequest):
|
|
133
|
+
return False
|
|
134
|
+
|
|
135
|
+
return self.__dict__ == other.__dict__
|
|
136
|
+
|
|
137
|
+
def __ne__(self, other):
|
|
138
|
+
"""Returns true if both objects are not equal"""
|
|
139
|
+
return not self == other
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateDesktopPoolAuthorizedObjectsRequestBody:
|
|
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
|
+
'objects': 'list[AuthorizedObjects]',
|
|
21
|
+
'action': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'objects': 'objects',
|
|
26
|
+
'action': 'action'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, objects=None, action=None):
|
|
30
|
+
"""CreateDesktopPoolAuthorizedObjectsRequestBody
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param objects: 要授权的用户/用户组。
|
|
35
|
+
:type objects: list[:class:`huaweicloudsdkworkspace.v2.AuthorizedObjects`]
|
|
36
|
+
:param action: 执行动作,ADD:增加授权用户/用户组,REMOVE:移除已授权用户/用户组
|
|
37
|
+
:type action: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._objects = None
|
|
43
|
+
self._action = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if objects is not None:
|
|
47
|
+
self.objects = objects
|
|
48
|
+
self.action = action
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def objects(self):
|
|
52
|
+
"""Gets the objects of this CreateDesktopPoolAuthorizedObjectsRequestBody.
|
|
53
|
+
|
|
54
|
+
要授权的用户/用户组。
|
|
55
|
+
|
|
56
|
+
:return: The objects of this CreateDesktopPoolAuthorizedObjectsRequestBody.
|
|
57
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.AuthorizedObjects`]
|
|
58
|
+
"""
|
|
59
|
+
return self._objects
|
|
60
|
+
|
|
61
|
+
@objects.setter
|
|
62
|
+
def objects(self, objects):
|
|
63
|
+
"""Sets the objects of this CreateDesktopPoolAuthorizedObjectsRequestBody.
|
|
64
|
+
|
|
65
|
+
要授权的用户/用户组。
|
|
66
|
+
|
|
67
|
+
:param objects: The objects of this CreateDesktopPoolAuthorizedObjectsRequestBody.
|
|
68
|
+
:type objects: list[:class:`huaweicloudsdkworkspace.v2.AuthorizedObjects`]
|
|
69
|
+
"""
|
|
70
|
+
self._objects = objects
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def action(self):
|
|
74
|
+
"""Gets the action of this CreateDesktopPoolAuthorizedObjectsRequestBody.
|
|
75
|
+
|
|
76
|
+
执行动作,ADD:增加授权用户/用户组,REMOVE:移除已授权用户/用户组
|
|
77
|
+
|
|
78
|
+
:return: The action of this CreateDesktopPoolAuthorizedObjectsRequestBody.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._action
|
|
82
|
+
|
|
83
|
+
@action.setter
|
|
84
|
+
def action(self, action):
|
|
85
|
+
"""Sets the action of this CreateDesktopPoolAuthorizedObjectsRequestBody.
|
|
86
|
+
|
|
87
|
+
执行动作,ADD:增加授权用户/用户组,REMOVE:移除已授权用户/用户组
|
|
88
|
+
|
|
89
|
+
:param action: The action of this CreateDesktopPoolAuthorizedObjectsRequestBody.
|
|
90
|
+
:type action: str
|
|
91
|
+
"""
|
|
92
|
+
self._action = action
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
"""Returns the model properties as a dict"""
|
|
96
|
+
result = {}
|
|
97
|
+
|
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
99
|
+
value = getattr(self, attr)
|
|
100
|
+
if isinstance(value, list):
|
|
101
|
+
result[attr] = list(map(
|
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
103
|
+
value
|
|
104
|
+
))
|
|
105
|
+
elif hasattr(value, "to_dict"):
|
|
106
|
+
result[attr] = value.to_dict()
|
|
107
|
+
elif isinstance(value, dict):
|
|
108
|
+
result[attr] = dict(map(
|
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
|
111
|
+
value.items()
|
|
112
|
+
))
|
|
113
|
+
else:
|
|
114
|
+
if attr in self.sensitive_list:
|
|
115
|
+
result[attr] = "****"
|
|
116
|
+
else:
|
|
117
|
+
result[attr] = value
|
|
118
|
+
|
|
119
|
+
return result
|
|
120
|
+
|
|
121
|
+
def to_str(self):
|
|
122
|
+
"""Returns the string representation of the model"""
|
|
123
|
+
import simplejson as json
|
|
124
|
+
if six.PY2:
|
|
125
|
+
import sys
|
|
126
|
+
reload(sys)
|
|
127
|
+
sys.setdefaultencoding("utf-8")
|
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
129
|
+
|
|
130
|
+
def __repr__(self):
|
|
131
|
+
"""For `print`"""
|
|
132
|
+
return self.to_str()
|
|
133
|
+
|
|
134
|
+
def __eq__(self, other):
|
|
135
|
+
"""Returns true if both objects are equal"""
|
|
136
|
+
if not isinstance(other, CreateDesktopPoolAuthorizedObjectsRequestBody):
|
|
137
|
+
return False
|
|
138
|
+
|
|
139
|
+
return self.__dict__ == other.__dict__
|
|
140
|
+
|
|
141
|
+
def __ne__(self, other):
|
|
142
|
+
"""Returns true if both objects are not equal"""
|
|
143
|
+
return not self == other
|
|
@@ -0,0 +1,85 @@
|
|
|
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 CreateDesktopPoolAuthorizedObjectsResponse(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
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
"""CreateDesktopPoolAuthorizedObjectsResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
super(CreateDesktopPoolAuthorizedObjectsResponse, self).__init__()
|
|
34
|
+
self.discriminator = None
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""Returns the model properties as a dict"""
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
if six.PY2:
|
|
67
|
+
import sys
|
|
68
|
+
reload(sys)
|
|
69
|
+
sys.setdefaultencoding("utf-8")
|
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
71
|
+
|
|
72
|
+
def __repr__(self):
|
|
73
|
+
"""For `print`"""
|
|
74
|
+
return self.to_str()
|
|
75
|
+
|
|
76
|
+
def __eq__(self, other):
|
|
77
|
+
"""Returns true if both objects are equal"""
|
|
78
|
+
if not isinstance(other, CreateDesktopPoolAuthorizedObjectsResponse):
|
|
79
|
+
return False
|
|
80
|
+
|
|
81
|
+
return self.__dict__ == other.__dict__
|
|
82
|
+
|
|
83
|
+
def __ne__(self, other):
|
|
84
|
+
"""Returns true if both objects are not equal"""
|
|
85
|
+
return not self == other
|