huaweicloudsdkworkspace 3.1.123__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.

Files changed (63) hide show
  1. huaweicloudsdkworkspace/v2/__init__.py +54 -0
  2. huaweicloudsdkworkspace/v2/model/__init__.py +54 -0
  3. huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_req.py +144 -0
  4. huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_request.py +168 -0
  5. huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_response.py +319 -0
  6. huaweicloudsdkworkspace/v2/model/authorized_objects.py +227 -0
  7. huaweicloudsdkworkspace/v2/model/autoscale_policy.py +202 -0
  8. huaweicloudsdkworkspace/v2/model/base_error.py +144 -0
  9. huaweicloudsdkworkspace/v2/model/batch_delete_user_req.py +114 -0
  10. huaweicloudsdkworkspace/v2/model/batch_delete_user_request.py +111 -0
  11. huaweicloudsdkworkspace/v2/model/batch_delete_user_response.py +85 -0
  12. huaweicloudsdkworkspace/v2/model/cbc_callback_rsp.py +289 -0
  13. huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request.py +139 -0
  14. huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request_body.py +143 -0
  15. huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_response.py +85 -0
  16. huaweicloudsdkworkspace/v2/model/create_desktop_pool_req.py +708 -0
  17. huaweicloudsdkworkspace/v2/model/create_desktop_pool_request.py +140 -0
  18. huaweicloudsdkworkspace/v2/model/create_desktop_pool_response.py +116 -0
  19. huaweicloudsdkworkspace/v2/model/create_desktop_rsp.py +115 -0
  20. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_request.py +114 -0
  21. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_response.py +85 -0
  22. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_req.py +115 -0
  23. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_request.py +139 -0
  24. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_response.py +116 -0
  25. huaweicloudsdkworkspace/v2/model/desktop_pool_action_req.py +143 -0
  26. huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_request.py +139 -0
  27. huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_response.py +116 -0
  28. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_req.py +143 -0
  29. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_request.py +168 -0
  30. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_response.py +116 -0
  31. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_req.py +144 -0
  32. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_request.py +168 -0
  33. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_response.py +319 -0
  34. huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_request.py +172 -0
  35. huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_response.py +145 -0
  36. huaweicloudsdkworkspace/v2/model/list_desktop_pools_request.py +260 -0
  37. huaweicloudsdkworkspace/v2/model/list_desktop_pools_response.py +145 -0
  38. huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_request.py +201 -0
  39. huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_response.py +203 -0
  40. huaweicloudsdkworkspace/v2/model/pool_desktops_detail_info.py +1147 -0
  41. huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_req.py +288 -0
  42. huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_request.py +168 -0
  43. huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_response.py +232 -0
  44. huaweicloudsdkworkspace/v2/model/resize_desktop_extend_param.py +115 -0
  45. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_job_response.py +144 -0
  46. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_req.py +197 -0
  47. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_request.py +168 -0
  48. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_response.py +174 -0
  49. huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_request.py +114 -0
  50. huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_response.py +887 -0
  51. huaweicloudsdkworkspace/v2/model/simple_desktop_pool_info.py +886 -0
  52. huaweicloudsdkworkspace/v2/model/update_desktop_pool_attributes_req.py +372 -0
  53. huaweicloudsdkworkspace/v2/model/update_desktop_pool_request.py +139 -0
  54. huaweicloudsdkworkspace/v2/model/update_desktop_pool_response.py +85 -0
  55. huaweicloudsdkworkspace/v2/model/volume_add_info.py +200 -0
  56. huaweicloudsdkworkspace/v2/model/volume_info.py +229 -0
  57. huaweicloudsdkworkspace/v2/workspace_async_client.py +1091 -0
  58. huaweicloudsdkworkspace/v2/workspace_client.py +1091 -0
  59. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/METADATA +2 -2
  60. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/RECORD +63 -9
  61. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/WHEEL +1 -1
  62. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/LICENSE +0 -0
  63. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,886 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SimpleDesktopPoolInfo:
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
+ 'type': 'str',
23
+ 'description': 'str',
24
+ 'created_time': 'str',
25
+ 'charging_mode': 'str',
26
+ 'desktop_count': 'int',
27
+ 'desktop_used': 'int',
28
+ 'on_demand_desktop_num': 'int',
29
+ 'availability_zone': 'str',
30
+ 'subnet_id': 'str',
31
+ 'product': 'ProductInfo',
32
+ 'image_id': 'str',
33
+ 'image_name': 'str',
34
+ 'image_os_type': 'str',
35
+ 'image_os_version': 'str',
36
+ 'image_os_platform': 'str',
37
+ 'image_product_code': 'str',
38
+ 'root_volume': 'VolumeInfo',
39
+ 'data_volumes': 'list[VolumeInfo]',
40
+ 'security_groups': 'list[SecurityGroup]',
41
+ 'disconnected_retention_period': 'int',
42
+ 'enable_autoscale': 'bool',
43
+ 'autoscale_policy': 'AutoscalePolicy',
44
+ 'status': 'str',
45
+ 'enterprise_project_id': 'str',
46
+ 'in_maintenance_mode': 'bool',
47
+ 'desktop_name_policy_id': 'str'
48
+ }
49
+
50
+ attribute_map = {
51
+ 'id': 'id',
52
+ 'name': 'name',
53
+ 'type': 'type',
54
+ 'description': 'description',
55
+ 'created_time': 'created_time',
56
+ 'charging_mode': 'charging_mode',
57
+ 'desktop_count': 'desktop_count',
58
+ 'desktop_used': 'desktop_used',
59
+ 'on_demand_desktop_num': 'on_demand_desktop_num',
60
+ 'availability_zone': 'availability_zone',
61
+ 'subnet_id': 'subnet_id',
62
+ 'product': 'product',
63
+ 'image_id': 'image_id',
64
+ 'image_name': 'image_name',
65
+ 'image_os_type': 'image_os_type',
66
+ 'image_os_version': 'image_os_version',
67
+ 'image_os_platform': 'image_os_platform',
68
+ 'image_product_code': 'image_product_code',
69
+ 'root_volume': 'root_volume',
70
+ 'data_volumes': 'data_volumes',
71
+ 'security_groups': 'security_groups',
72
+ 'disconnected_retention_period': 'disconnected_retention_period',
73
+ 'enable_autoscale': 'enable_autoscale',
74
+ 'autoscale_policy': 'autoscale_policy',
75
+ 'status': 'status',
76
+ 'enterprise_project_id': 'enterprise_project_id',
77
+ 'in_maintenance_mode': 'in_maintenance_mode',
78
+ 'desktop_name_policy_id': 'desktop_name_policy_id'
79
+ }
80
+
81
+ def __init__(self, id=None, name=None, type=None, description=None, created_time=None, charging_mode=None, desktop_count=None, desktop_used=None, on_demand_desktop_num=None, availability_zone=None, subnet_id=None, product=None, image_id=None, image_name=None, image_os_type=None, image_os_version=None, image_os_platform=None, image_product_code=None, root_volume=None, data_volumes=None, security_groups=None, disconnected_retention_period=None, enable_autoscale=None, autoscale_policy=None, status=None, enterprise_project_id=None, in_maintenance_mode=None, desktop_name_policy_id=None):
82
+ """SimpleDesktopPoolInfo
83
+
84
+ The model defined in huaweicloud sdk
85
+
86
+ :param id: 桌面池ID。
87
+ :type id: str
88
+ :param name: 桌面池名称。
89
+ :type name: str
90
+ :param type: 桌面池类型。DYNAMIC:动态池,STATIC:静态池。
91
+ :type type: str
92
+ :param description: 桌面池描述。
93
+ :type description: str
94
+ :param created_time: 创建时间,格式为:UTC格式,例如“2022-05-11T11:45:42.000Z”。
95
+ :type created_time: str
96
+ :param charging_mode: 计费模式,0:包周期,1:按需。
97
+ :type charging_mode: str
98
+ :param desktop_count: 桌面池总桌面数量。
99
+ :type desktop_count: int
100
+ :param desktop_used: 桌面池绑定用户的桌面个数。
101
+ :type desktop_used: int
102
+ :param on_demand_desktop_num: 桌面池按需桌面个数(不包含删除中的桌面)。
103
+ :type on_demand_desktop_num: int
104
+ :param availability_zone: 可用区。
105
+ :type availability_zone: str
106
+ :param subnet_id: 子网ID。
107
+ :type subnet_id: str
108
+ :param product:
109
+ :type product: :class:`huaweicloudsdkworkspace.v2.ProductInfo`
110
+ :param image_id: 镜像ID。
111
+ :type image_id: str
112
+ :param image_name: 镜像名称。
113
+ :type image_name: str
114
+ :param image_os_type: 镜像OS类型。
115
+ :type image_os_type: str
116
+ :param image_os_version: 镜像OS版本。
117
+ :type image_os_version: str
118
+ :param image_os_platform: 镜像OS平台。
119
+ :type image_os_platform: str
120
+ :param image_product_code: 镜像的productCode(specCode)。
121
+ :type image_product_code: str
122
+ :param root_volume:
123
+ :type root_volume: :class:`huaweicloudsdkworkspace.v2.VolumeInfo`
124
+ :param data_volumes: 数据盘列表。
125
+ :type data_volumes: list[:class:`huaweicloudsdkworkspace.v2.VolumeInfo`]
126
+ :param security_groups: 桌面安全组。
127
+ :type security_groups: list[:class:`huaweicloudsdkworkspace.v2.SecurityGroup`]
128
+ :param disconnected_retention_period: 动态池桌面断连多少分钟内,保留用户与桌面的绑定关系,超时后自动解绑。
129
+ :type disconnected_retention_period: int
130
+ :param enable_autoscale: 桌面池是否开启弹性伸缩类型,为false则表示不开启弹性伸缩,为true则表示开启弹性伸缩。
131
+ :type enable_autoscale: bool
132
+ :param autoscale_policy:
133
+ :type autoscale_policy: :class:`huaweicloudsdkworkspace.v2.AutoscalePolicy`
134
+ :param status: 桌面池状态。 - STEADY:稳态 - TEMPORARY:临时态 - EXIST_FROZEN:存在冻结桌面 - UNKNOWN:未知态
135
+ :type status: str
136
+ :param enterprise_project_id: 企业项目ID
137
+ :type enterprise_project_id: str
138
+ :param in_maintenance_mode: 桌面池是否处于管理员维护模式
139
+ :type in_maintenance_mode: bool
140
+ :param desktop_name_policy_id: 策略id,用于指定生成桌面名称策略。
141
+ :type desktop_name_policy_id: str
142
+ """
143
+
144
+
145
+
146
+ self._id = None
147
+ self._name = None
148
+ self._type = None
149
+ self._description = None
150
+ self._created_time = None
151
+ self._charging_mode = None
152
+ self._desktop_count = None
153
+ self._desktop_used = None
154
+ self._on_demand_desktop_num = None
155
+ self._availability_zone = None
156
+ self._subnet_id = None
157
+ self._product = None
158
+ self._image_id = None
159
+ self._image_name = None
160
+ self._image_os_type = None
161
+ self._image_os_version = None
162
+ self._image_os_platform = None
163
+ self._image_product_code = None
164
+ self._root_volume = None
165
+ self._data_volumes = None
166
+ self._security_groups = None
167
+ self._disconnected_retention_period = None
168
+ self._enable_autoscale = None
169
+ self._autoscale_policy = None
170
+ self._status = None
171
+ self._enterprise_project_id = None
172
+ self._in_maintenance_mode = None
173
+ self._desktop_name_policy_id = None
174
+ self.discriminator = None
175
+
176
+ if id is not None:
177
+ self.id = id
178
+ if name is not None:
179
+ self.name = name
180
+ if type is not None:
181
+ self.type = type
182
+ if description is not None:
183
+ self.description = description
184
+ if created_time is not None:
185
+ self.created_time = created_time
186
+ if charging_mode is not None:
187
+ self.charging_mode = charging_mode
188
+ if desktop_count is not None:
189
+ self.desktop_count = desktop_count
190
+ if desktop_used is not None:
191
+ self.desktop_used = desktop_used
192
+ if on_demand_desktop_num is not None:
193
+ self.on_demand_desktop_num = on_demand_desktop_num
194
+ if availability_zone is not None:
195
+ self.availability_zone = availability_zone
196
+ if subnet_id is not None:
197
+ self.subnet_id = subnet_id
198
+ if product is not None:
199
+ self.product = product
200
+ if image_id is not None:
201
+ self.image_id = image_id
202
+ if image_name is not None:
203
+ self.image_name = image_name
204
+ if image_os_type is not None:
205
+ self.image_os_type = image_os_type
206
+ if image_os_version is not None:
207
+ self.image_os_version = image_os_version
208
+ if image_os_platform is not None:
209
+ self.image_os_platform = image_os_platform
210
+ if image_product_code is not None:
211
+ self.image_product_code = image_product_code
212
+ if root_volume is not None:
213
+ self.root_volume = root_volume
214
+ if data_volumes is not None:
215
+ self.data_volumes = data_volumes
216
+ if security_groups is not None:
217
+ self.security_groups = security_groups
218
+ if disconnected_retention_period is not None:
219
+ self.disconnected_retention_period = disconnected_retention_period
220
+ if enable_autoscale is not None:
221
+ self.enable_autoscale = enable_autoscale
222
+ if autoscale_policy is not None:
223
+ self.autoscale_policy = autoscale_policy
224
+ if status is not None:
225
+ self.status = status
226
+ if enterprise_project_id is not None:
227
+ self.enterprise_project_id = enterprise_project_id
228
+ if in_maintenance_mode is not None:
229
+ self.in_maintenance_mode = in_maintenance_mode
230
+ if desktop_name_policy_id is not None:
231
+ self.desktop_name_policy_id = desktop_name_policy_id
232
+
233
+ @property
234
+ def id(self):
235
+ """Gets the id of this SimpleDesktopPoolInfo.
236
+
237
+ 桌面池ID。
238
+
239
+ :return: The id of this SimpleDesktopPoolInfo.
240
+ :rtype: str
241
+ """
242
+ return self._id
243
+
244
+ @id.setter
245
+ def id(self, id):
246
+ """Sets the id of this SimpleDesktopPoolInfo.
247
+
248
+ 桌面池ID。
249
+
250
+ :param id: The id of this SimpleDesktopPoolInfo.
251
+ :type id: str
252
+ """
253
+ self._id = id
254
+
255
+ @property
256
+ def name(self):
257
+ """Gets the name of this SimpleDesktopPoolInfo.
258
+
259
+ 桌面池名称。
260
+
261
+ :return: The name of this SimpleDesktopPoolInfo.
262
+ :rtype: str
263
+ """
264
+ return self._name
265
+
266
+ @name.setter
267
+ def name(self, name):
268
+ """Sets the name of this SimpleDesktopPoolInfo.
269
+
270
+ 桌面池名称。
271
+
272
+ :param name: The name of this SimpleDesktopPoolInfo.
273
+ :type name: str
274
+ """
275
+ self._name = name
276
+
277
+ @property
278
+ def type(self):
279
+ """Gets the type of this SimpleDesktopPoolInfo.
280
+
281
+ 桌面池类型。DYNAMIC:动态池,STATIC:静态池。
282
+
283
+ :return: The type of this SimpleDesktopPoolInfo.
284
+ :rtype: str
285
+ """
286
+ return self._type
287
+
288
+ @type.setter
289
+ def type(self, type):
290
+ """Sets the type of this SimpleDesktopPoolInfo.
291
+
292
+ 桌面池类型。DYNAMIC:动态池,STATIC:静态池。
293
+
294
+ :param type: The type of this SimpleDesktopPoolInfo.
295
+ :type type: str
296
+ """
297
+ self._type = type
298
+
299
+ @property
300
+ def description(self):
301
+ """Gets the description of this SimpleDesktopPoolInfo.
302
+
303
+ 桌面池描述。
304
+
305
+ :return: The description of this SimpleDesktopPoolInfo.
306
+ :rtype: str
307
+ """
308
+ return self._description
309
+
310
+ @description.setter
311
+ def description(self, description):
312
+ """Sets the description of this SimpleDesktopPoolInfo.
313
+
314
+ 桌面池描述。
315
+
316
+ :param description: The description of this SimpleDesktopPoolInfo.
317
+ :type description: str
318
+ """
319
+ self._description = description
320
+
321
+ @property
322
+ def created_time(self):
323
+ """Gets the created_time of this SimpleDesktopPoolInfo.
324
+
325
+ 创建时间,格式为:UTC格式,例如“2022-05-11T11:45:42.000Z”。
326
+
327
+ :return: The created_time of this SimpleDesktopPoolInfo.
328
+ :rtype: str
329
+ """
330
+ return self._created_time
331
+
332
+ @created_time.setter
333
+ def created_time(self, created_time):
334
+ """Sets the created_time of this SimpleDesktopPoolInfo.
335
+
336
+ 创建时间,格式为:UTC格式,例如“2022-05-11T11:45:42.000Z”。
337
+
338
+ :param created_time: The created_time of this SimpleDesktopPoolInfo.
339
+ :type created_time: str
340
+ """
341
+ self._created_time = created_time
342
+
343
+ @property
344
+ def charging_mode(self):
345
+ """Gets the charging_mode of this SimpleDesktopPoolInfo.
346
+
347
+ 计费模式,0:包周期,1:按需。
348
+
349
+ :return: The charging_mode of this SimpleDesktopPoolInfo.
350
+ :rtype: str
351
+ """
352
+ return self._charging_mode
353
+
354
+ @charging_mode.setter
355
+ def charging_mode(self, charging_mode):
356
+ """Sets the charging_mode of this SimpleDesktopPoolInfo.
357
+
358
+ 计费模式,0:包周期,1:按需。
359
+
360
+ :param charging_mode: The charging_mode of this SimpleDesktopPoolInfo.
361
+ :type charging_mode: str
362
+ """
363
+ self._charging_mode = charging_mode
364
+
365
+ @property
366
+ def desktop_count(self):
367
+ """Gets the desktop_count of this SimpleDesktopPoolInfo.
368
+
369
+ 桌面池总桌面数量。
370
+
371
+ :return: The desktop_count of this SimpleDesktopPoolInfo.
372
+ :rtype: int
373
+ """
374
+ return self._desktop_count
375
+
376
+ @desktop_count.setter
377
+ def desktop_count(self, desktop_count):
378
+ """Sets the desktop_count of this SimpleDesktopPoolInfo.
379
+
380
+ 桌面池总桌面数量。
381
+
382
+ :param desktop_count: The desktop_count of this SimpleDesktopPoolInfo.
383
+ :type desktop_count: int
384
+ """
385
+ self._desktop_count = desktop_count
386
+
387
+ @property
388
+ def desktop_used(self):
389
+ """Gets the desktop_used of this SimpleDesktopPoolInfo.
390
+
391
+ 桌面池绑定用户的桌面个数。
392
+
393
+ :return: The desktop_used of this SimpleDesktopPoolInfo.
394
+ :rtype: int
395
+ """
396
+ return self._desktop_used
397
+
398
+ @desktop_used.setter
399
+ def desktop_used(self, desktop_used):
400
+ """Sets the desktop_used of this SimpleDesktopPoolInfo.
401
+
402
+ 桌面池绑定用户的桌面个数。
403
+
404
+ :param desktop_used: The desktop_used of this SimpleDesktopPoolInfo.
405
+ :type desktop_used: int
406
+ """
407
+ self._desktop_used = desktop_used
408
+
409
+ @property
410
+ def on_demand_desktop_num(self):
411
+ """Gets the on_demand_desktop_num of this SimpleDesktopPoolInfo.
412
+
413
+ 桌面池按需桌面个数(不包含删除中的桌面)。
414
+
415
+ :return: The on_demand_desktop_num of this SimpleDesktopPoolInfo.
416
+ :rtype: int
417
+ """
418
+ return self._on_demand_desktop_num
419
+
420
+ @on_demand_desktop_num.setter
421
+ def on_demand_desktop_num(self, on_demand_desktop_num):
422
+ """Sets the on_demand_desktop_num of this SimpleDesktopPoolInfo.
423
+
424
+ 桌面池按需桌面个数(不包含删除中的桌面)。
425
+
426
+ :param on_demand_desktop_num: The on_demand_desktop_num of this SimpleDesktopPoolInfo.
427
+ :type on_demand_desktop_num: int
428
+ """
429
+ self._on_demand_desktop_num = on_demand_desktop_num
430
+
431
+ @property
432
+ def availability_zone(self):
433
+ """Gets the availability_zone of this SimpleDesktopPoolInfo.
434
+
435
+ 可用区。
436
+
437
+ :return: The availability_zone of this SimpleDesktopPoolInfo.
438
+ :rtype: str
439
+ """
440
+ return self._availability_zone
441
+
442
+ @availability_zone.setter
443
+ def availability_zone(self, availability_zone):
444
+ """Sets the availability_zone of this SimpleDesktopPoolInfo.
445
+
446
+ 可用区。
447
+
448
+ :param availability_zone: The availability_zone of this SimpleDesktopPoolInfo.
449
+ :type availability_zone: str
450
+ """
451
+ self._availability_zone = availability_zone
452
+
453
+ @property
454
+ def subnet_id(self):
455
+ """Gets the subnet_id of this SimpleDesktopPoolInfo.
456
+
457
+ 子网ID。
458
+
459
+ :return: The subnet_id of this SimpleDesktopPoolInfo.
460
+ :rtype: str
461
+ """
462
+ return self._subnet_id
463
+
464
+ @subnet_id.setter
465
+ def subnet_id(self, subnet_id):
466
+ """Sets the subnet_id of this SimpleDesktopPoolInfo.
467
+
468
+ 子网ID。
469
+
470
+ :param subnet_id: The subnet_id of this SimpleDesktopPoolInfo.
471
+ :type subnet_id: str
472
+ """
473
+ self._subnet_id = subnet_id
474
+
475
+ @property
476
+ def product(self):
477
+ """Gets the product of this SimpleDesktopPoolInfo.
478
+
479
+ :return: The product of this SimpleDesktopPoolInfo.
480
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ProductInfo`
481
+ """
482
+ return self._product
483
+
484
+ @product.setter
485
+ def product(self, product):
486
+ """Sets the product of this SimpleDesktopPoolInfo.
487
+
488
+ :param product: The product of this SimpleDesktopPoolInfo.
489
+ :type product: :class:`huaweicloudsdkworkspace.v2.ProductInfo`
490
+ """
491
+ self._product = product
492
+
493
+ @property
494
+ def image_id(self):
495
+ """Gets the image_id of this SimpleDesktopPoolInfo.
496
+
497
+ 镜像ID。
498
+
499
+ :return: The image_id of this SimpleDesktopPoolInfo.
500
+ :rtype: str
501
+ """
502
+ return self._image_id
503
+
504
+ @image_id.setter
505
+ def image_id(self, image_id):
506
+ """Sets the image_id of this SimpleDesktopPoolInfo.
507
+
508
+ 镜像ID。
509
+
510
+ :param image_id: The image_id of this SimpleDesktopPoolInfo.
511
+ :type image_id: str
512
+ """
513
+ self._image_id = image_id
514
+
515
+ @property
516
+ def image_name(self):
517
+ """Gets the image_name of this SimpleDesktopPoolInfo.
518
+
519
+ 镜像名称。
520
+
521
+ :return: The image_name of this SimpleDesktopPoolInfo.
522
+ :rtype: str
523
+ """
524
+ return self._image_name
525
+
526
+ @image_name.setter
527
+ def image_name(self, image_name):
528
+ """Sets the image_name of this SimpleDesktopPoolInfo.
529
+
530
+ 镜像名称。
531
+
532
+ :param image_name: The image_name of this SimpleDesktopPoolInfo.
533
+ :type image_name: str
534
+ """
535
+ self._image_name = image_name
536
+
537
+ @property
538
+ def image_os_type(self):
539
+ """Gets the image_os_type of this SimpleDesktopPoolInfo.
540
+
541
+ 镜像OS类型。
542
+
543
+ :return: The image_os_type of this SimpleDesktopPoolInfo.
544
+ :rtype: str
545
+ """
546
+ return self._image_os_type
547
+
548
+ @image_os_type.setter
549
+ def image_os_type(self, image_os_type):
550
+ """Sets the image_os_type of this SimpleDesktopPoolInfo.
551
+
552
+ 镜像OS类型。
553
+
554
+ :param image_os_type: The image_os_type of this SimpleDesktopPoolInfo.
555
+ :type image_os_type: str
556
+ """
557
+ self._image_os_type = image_os_type
558
+
559
+ @property
560
+ def image_os_version(self):
561
+ """Gets the image_os_version of this SimpleDesktopPoolInfo.
562
+
563
+ 镜像OS版本。
564
+
565
+ :return: The image_os_version of this SimpleDesktopPoolInfo.
566
+ :rtype: str
567
+ """
568
+ return self._image_os_version
569
+
570
+ @image_os_version.setter
571
+ def image_os_version(self, image_os_version):
572
+ """Sets the image_os_version of this SimpleDesktopPoolInfo.
573
+
574
+ 镜像OS版本。
575
+
576
+ :param image_os_version: The image_os_version of this SimpleDesktopPoolInfo.
577
+ :type image_os_version: str
578
+ """
579
+ self._image_os_version = image_os_version
580
+
581
+ @property
582
+ def image_os_platform(self):
583
+ """Gets the image_os_platform of this SimpleDesktopPoolInfo.
584
+
585
+ 镜像OS平台。
586
+
587
+ :return: The image_os_platform of this SimpleDesktopPoolInfo.
588
+ :rtype: str
589
+ """
590
+ return self._image_os_platform
591
+
592
+ @image_os_platform.setter
593
+ def image_os_platform(self, image_os_platform):
594
+ """Sets the image_os_platform of this SimpleDesktopPoolInfo.
595
+
596
+ 镜像OS平台。
597
+
598
+ :param image_os_platform: The image_os_platform of this SimpleDesktopPoolInfo.
599
+ :type image_os_platform: str
600
+ """
601
+ self._image_os_platform = image_os_platform
602
+
603
+ @property
604
+ def image_product_code(self):
605
+ """Gets the image_product_code of this SimpleDesktopPoolInfo.
606
+
607
+ 镜像的productCode(specCode)。
608
+
609
+ :return: The image_product_code of this SimpleDesktopPoolInfo.
610
+ :rtype: str
611
+ """
612
+ return self._image_product_code
613
+
614
+ @image_product_code.setter
615
+ def image_product_code(self, image_product_code):
616
+ """Sets the image_product_code of this SimpleDesktopPoolInfo.
617
+
618
+ 镜像的productCode(specCode)。
619
+
620
+ :param image_product_code: The image_product_code of this SimpleDesktopPoolInfo.
621
+ :type image_product_code: str
622
+ """
623
+ self._image_product_code = image_product_code
624
+
625
+ @property
626
+ def root_volume(self):
627
+ """Gets the root_volume of this SimpleDesktopPoolInfo.
628
+
629
+ :return: The root_volume of this SimpleDesktopPoolInfo.
630
+ :rtype: :class:`huaweicloudsdkworkspace.v2.VolumeInfo`
631
+ """
632
+ return self._root_volume
633
+
634
+ @root_volume.setter
635
+ def root_volume(self, root_volume):
636
+ """Sets the root_volume of this SimpleDesktopPoolInfo.
637
+
638
+ :param root_volume: The root_volume of this SimpleDesktopPoolInfo.
639
+ :type root_volume: :class:`huaweicloudsdkworkspace.v2.VolumeInfo`
640
+ """
641
+ self._root_volume = root_volume
642
+
643
+ @property
644
+ def data_volumes(self):
645
+ """Gets the data_volumes of this SimpleDesktopPoolInfo.
646
+
647
+ 数据盘列表。
648
+
649
+ :return: The data_volumes of this SimpleDesktopPoolInfo.
650
+ :rtype: list[:class:`huaweicloudsdkworkspace.v2.VolumeInfo`]
651
+ """
652
+ return self._data_volumes
653
+
654
+ @data_volumes.setter
655
+ def data_volumes(self, data_volumes):
656
+ """Sets the data_volumes of this SimpleDesktopPoolInfo.
657
+
658
+ 数据盘列表。
659
+
660
+ :param data_volumes: The data_volumes of this SimpleDesktopPoolInfo.
661
+ :type data_volumes: list[:class:`huaweicloudsdkworkspace.v2.VolumeInfo`]
662
+ """
663
+ self._data_volumes = data_volumes
664
+
665
+ @property
666
+ def security_groups(self):
667
+ """Gets the security_groups of this SimpleDesktopPoolInfo.
668
+
669
+ 桌面安全组。
670
+
671
+ :return: The security_groups of this SimpleDesktopPoolInfo.
672
+ :rtype: list[:class:`huaweicloudsdkworkspace.v2.SecurityGroup`]
673
+ """
674
+ return self._security_groups
675
+
676
+ @security_groups.setter
677
+ def security_groups(self, security_groups):
678
+ """Sets the security_groups of this SimpleDesktopPoolInfo.
679
+
680
+ 桌面安全组。
681
+
682
+ :param security_groups: The security_groups of this SimpleDesktopPoolInfo.
683
+ :type security_groups: list[:class:`huaweicloudsdkworkspace.v2.SecurityGroup`]
684
+ """
685
+ self._security_groups = security_groups
686
+
687
+ @property
688
+ def disconnected_retention_period(self):
689
+ """Gets the disconnected_retention_period of this SimpleDesktopPoolInfo.
690
+
691
+ 动态池桌面断连多少分钟内,保留用户与桌面的绑定关系,超时后自动解绑。
692
+
693
+ :return: The disconnected_retention_period of this SimpleDesktopPoolInfo.
694
+ :rtype: int
695
+ """
696
+ return self._disconnected_retention_period
697
+
698
+ @disconnected_retention_period.setter
699
+ def disconnected_retention_period(self, disconnected_retention_period):
700
+ """Sets the disconnected_retention_period of this SimpleDesktopPoolInfo.
701
+
702
+ 动态池桌面断连多少分钟内,保留用户与桌面的绑定关系,超时后自动解绑。
703
+
704
+ :param disconnected_retention_period: The disconnected_retention_period of this SimpleDesktopPoolInfo.
705
+ :type disconnected_retention_period: int
706
+ """
707
+ self._disconnected_retention_period = disconnected_retention_period
708
+
709
+ @property
710
+ def enable_autoscale(self):
711
+ """Gets the enable_autoscale of this SimpleDesktopPoolInfo.
712
+
713
+ 桌面池是否开启弹性伸缩类型,为false则表示不开启弹性伸缩,为true则表示开启弹性伸缩。
714
+
715
+ :return: The enable_autoscale of this SimpleDesktopPoolInfo.
716
+ :rtype: bool
717
+ """
718
+ return self._enable_autoscale
719
+
720
+ @enable_autoscale.setter
721
+ def enable_autoscale(self, enable_autoscale):
722
+ """Sets the enable_autoscale of this SimpleDesktopPoolInfo.
723
+
724
+ 桌面池是否开启弹性伸缩类型,为false则表示不开启弹性伸缩,为true则表示开启弹性伸缩。
725
+
726
+ :param enable_autoscale: The enable_autoscale of this SimpleDesktopPoolInfo.
727
+ :type enable_autoscale: bool
728
+ """
729
+ self._enable_autoscale = enable_autoscale
730
+
731
+ @property
732
+ def autoscale_policy(self):
733
+ """Gets the autoscale_policy of this SimpleDesktopPoolInfo.
734
+
735
+ :return: The autoscale_policy of this SimpleDesktopPoolInfo.
736
+ :rtype: :class:`huaweicloudsdkworkspace.v2.AutoscalePolicy`
737
+ """
738
+ return self._autoscale_policy
739
+
740
+ @autoscale_policy.setter
741
+ def autoscale_policy(self, autoscale_policy):
742
+ """Sets the autoscale_policy of this SimpleDesktopPoolInfo.
743
+
744
+ :param autoscale_policy: The autoscale_policy of this SimpleDesktopPoolInfo.
745
+ :type autoscale_policy: :class:`huaweicloudsdkworkspace.v2.AutoscalePolicy`
746
+ """
747
+ self._autoscale_policy = autoscale_policy
748
+
749
+ @property
750
+ def status(self):
751
+ """Gets the status of this SimpleDesktopPoolInfo.
752
+
753
+ 桌面池状态。 - STEADY:稳态 - TEMPORARY:临时态 - EXIST_FROZEN:存在冻结桌面 - UNKNOWN:未知态
754
+
755
+ :return: The status of this SimpleDesktopPoolInfo.
756
+ :rtype: str
757
+ """
758
+ return self._status
759
+
760
+ @status.setter
761
+ def status(self, status):
762
+ """Sets the status of this SimpleDesktopPoolInfo.
763
+
764
+ 桌面池状态。 - STEADY:稳态 - TEMPORARY:临时态 - EXIST_FROZEN:存在冻结桌面 - UNKNOWN:未知态
765
+
766
+ :param status: The status of this SimpleDesktopPoolInfo.
767
+ :type status: str
768
+ """
769
+ self._status = status
770
+
771
+ @property
772
+ def enterprise_project_id(self):
773
+ """Gets the enterprise_project_id of this SimpleDesktopPoolInfo.
774
+
775
+ 企业项目ID
776
+
777
+ :return: The enterprise_project_id of this SimpleDesktopPoolInfo.
778
+ :rtype: str
779
+ """
780
+ return self._enterprise_project_id
781
+
782
+ @enterprise_project_id.setter
783
+ def enterprise_project_id(self, enterprise_project_id):
784
+ """Sets the enterprise_project_id of this SimpleDesktopPoolInfo.
785
+
786
+ 企业项目ID
787
+
788
+ :param enterprise_project_id: The enterprise_project_id of this SimpleDesktopPoolInfo.
789
+ :type enterprise_project_id: str
790
+ """
791
+ self._enterprise_project_id = enterprise_project_id
792
+
793
+ @property
794
+ def in_maintenance_mode(self):
795
+ """Gets the in_maintenance_mode of this SimpleDesktopPoolInfo.
796
+
797
+ 桌面池是否处于管理员维护模式
798
+
799
+ :return: The in_maintenance_mode of this SimpleDesktopPoolInfo.
800
+ :rtype: bool
801
+ """
802
+ return self._in_maintenance_mode
803
+
804
+ @in_maintenance_mode.setter
805
+ def in_maintenance_mode(self, in_maintenance_mode):
806
+ """Sets the in_maintenance_mode of this SimpleDesktopPoolInfo.
807
+
808
+ 桌面池是否处于管理员维护模式
809
+
810
+ :param in_maintenance_mode: The in_maintenance_mode of this SimpleDesktopPoolInfo.
811
+ :type in_maintenance_mode: bool
812
+ """
813
+ self._in_maintenance_mode = in_maintenance_mode
814
+
815
+ @property
816
+ def desktop_name_policy_id(self):
817
+ """Gets the desktop_name_policy_id of this SimpleDesktopPoolInfo.
818
+
819
+ 策略id,用于指定生成桌面名称策略。
820
+
821
+ :return: The desktop_name_policy_id of this SimpleDesktopPoolInfo.
822
+ :rtype: str
823
+ """
824
+ return self._desktop_name_policy_id
825
+
826
+ @desktop_name_policy_id.setter
827
+ def desktop_name_policy_id(self, desktop_name_policy_id):
828
+ """Sets the desktop_name_policy_id of this SimpleDesktopPoolInfo.
829
+
830
+ 策略id,用于指定生成桌面名称策略。
831
+
832
+ :param desktop_name_policy_id: The desktop_name_policy_id of this SimpleDesktopPoolInfo.
833
+ :type desktop_name_policy_id: str
834
+ """
835
+ self._desktop_name_policy_id = desktop_name_policy_id
836
+
837
+ def to_dict(self):
838
+ """Returns the model properties as a dict"""
839
+ result = {}
840
+
841
+ for attr, _ in six.iteritems(self.openapi_types):
842
+ value = getattr(self, attr)
843
+ if isinstance(value, list):
844
+ result[attr] = list(map(
845
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
846
+ value
847
+ ))
848
+ elif hasattr(value, "to_dict"):
849
+ result[attr] = value.to_dict()
850
+ elif isinstance(value, dict):
851
+ result[attr] = dict(map(
852
+ lambda item: (item[0], item[1].to_dict())
853
+ if hasattr(item[1], "to_dict") else item,
854
+ value.items()
855
+ ))
856
+ else:
857
+ if attr in self.sensitive_list:
858
+ result[attr] = "****"
859
+ else:
860
+ result[attr] = value
861
+
862
+ return result
863
+
864
+ def to_str(self):
865
+ """Returns the string representation of the model"""
866
+ import simplejson as json
867
+ if six.PY2:
868
+ import sys
869
+ reload(sys)
870
+ sys.setdefaultencoding("utf-8")
871
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
872
+
873
+ def __repr__(self):
874
+ """For `print`"""
875
+ return self.to_str()
876
+
877
+ def __eq__(self, other):
878
+ """Returns true if both objects are equal"""
879
+ if not isinstance(other, SimpleDesktopPoolInfo):
880
+ return False
881
+
882
+ return self.__dict__ == other.__dict__
883
+
884
+ def __ne__(self, other):
885
+ """Returns true if both objects are not equal"""
886
+ return not self == other