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,708 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateDesktopPoolReq:
|
|
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
|
+
'name': 'str',
|
|
21
|
+
'type': 'str',
|
|
22
|
+
'size': 'int',
|
|
23
|
+
'description': 'str',
|
|
24
|
+
'availability_zone': 'str',
|
|
25
|
+
'product_id': 'str',
|
|
26
|
+
'image_type': 'str',
|
|
27
|
+
'image_id': 'str',
|
|
28
|
+
'root_volume': 'VolumeInfo',
|
|
29
|
+
'data_volumes': 'list[VolumeInfo]',
|
|
30
|
+
'vpc_id': 'str',
|
|
31
|
+
'subnet_ids': 'list[str]',
|
|
32
|
+
'security_groups': 'list[SecurityGroup]',
|
|
33
|
+
'authorized_objects': 'list[AuthorizedObjects]',
|
|
34
|
+
'order_id': 'str',
|
|
35
|
+
'ou_name': 'str',
|
|
36
|
+
'tags': 'list[Tag]',
|
|
37
|
+
'enterprise_project_id': 'str',
|
|
38
|
+
'disconnected_retention_period': 'int',
|
|
39
|
+
'enable_autoscale': 'bool',
|
|
40
|
+
'autoscale_policy': 'AutoscalePolicy',
|
|
41
|
+
'desktop_name_policy_id': 'str'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
'name': 'name',
|
|
46
|
+
'type': 'type',
|
|
47
|
+
'size': 'size',
|
|
48
|
+
'description': 'description',
|
|
49
|
+
'availability_zone': 'availability_zone',
|
|
50
|
+
'product_id': 'product_id',
|
|
51
|
+
'image_type': 'image_type',
|
|
52
|
+
'image_id': 'image_id',
|
|
53
|
+
'root_volume': 'root_volume',
|
|
54
|
+
'data_volumes': 'data_volumes',
|
|
55
|
+
'vpc_id': 'vpc_id',
|
|
56
|
+
'subnet_ids': 'subnet_ids',
|
|
57
|
+
'security_groups': 'security_groups',
|
|
58
|
+
'authorized_objects': 'authorized_objects',
|
|
59
|
+
'order_id': 'order_id',
|
|
60
|
+
'ou_name': 'ou_name',
|
|
61
|
+
'tags': 'tags',
|
|
62
|
+
'enterprise_project_id': 'enterprise_project_id',
|
|
63
|
+
'disconnected_retention_period': 'disconnected_retention_period',
|
|
64
|
+
'enable_autoscale': 'enable_autoscale',
|
|
65
|
+
'autoscale_policy': 'autoscale_policy',
|
|
66
|
+
'desktop_name_policy_id': 'desktop_name_policy_id'
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
def __init__(self, name=None, type=None, size=None, description=None, availability_zone=None, product_id=None, image_type=None, image_id=None, root_volume=None, data_volumes=None, vpc_id=None, subnet_ids=None, security_groups=None, authorized_objects=None, order_id=None, ou_name=None, tags=None, enterprise_project_id=None, disconnected_retention_period=None, enable_autoscale=None, autoscale_policy=None, desktop_name_policy_id=None):
|
|
70
|
+
"""CreateDesktopPoolReq
|
|
71
|
+
|
|
72
|
+
The model defined in huaweicloud sdk
|
|
73
|
+
|
|
74
|
+
:param name: 桌面池名称,桌面池名称必须保证唯一。桌面名称只允许输入中文、大写字母、小写字母、数字、中划线,长度范围为1~255。
|
|
75
|
+
:type name: str
|
|
76
|
+
:param type: 桌面池类型,DYNAMIC:动态池,STATIC:静态池。
|
|
77
|
+
:type type: str
|
|
78
|
+
:param size: 桌面池大小:当前桌面池要创建多少台桌面。
|
|
79
|
+
:type size: int
|
|
80
|
+
:param description: 桌面池描述。
|
|
81
|
+
:type description: str
|
|
82
|
+
:param availability_zone: 可用分区。将桌面创建到指定的可用分区。如果不指定则使用系统随机的可用分区。
|
|
83
|
+
:type availability_zone: str
|
|
84
|
+
:param product_id: 套餐ID。
|
|
85
|
+
:type product_id: str
|
|
86
|
+
:param image_type: 镜像类型。默认值为private。 - private:私有镜像。 - gold:公共镜像。
|
|
87
|
+
:type image_type: str
|
|
88
|
+
:param image_id: 镜像ID,用于私有镜像创建桌面场景,配合product_id使用。
|
|
89
|
+
:type image_id: str
|
|
90
|
+
:param root_volume:
|
|
91
|
+
:type root_volume: :class:`huaweicloudsdkworkspace.v2.VolumeInfo`
|
|
92
|
+
:param data_volumes: 数据盘列表。
|
|
93
|
+
:type data_volumes: list[:class:`huaweicloudsdkworkspace.v2.VolumeInfo`]
|
|
94
|
+
:param vpc_id: 创建桌面时的VPC ID。
|
|
95
|
+
:type vpc_id: str
|
|
96
|
+
:param subnet_ids: 创建桌面使用的子网ID。
|
|
97
|
+
:type subnet_ids: list[str]
|
|
98
|
+
:param security_groups: 桌面使用的安全组,如果不指定则默认使用桌面代理中指定的安全组。
|
|
99
|
+
:type security_groups: list[:class:`huaweicloudsdkworkspace.v2.SecurityGroup`]
|
|
100
|
+
:param authorized_objects: 要授权的用户/用户组列表。
|
|
101
|
+
:type authorized_objects: list[:class:`huaweicloudsdkworkspace.v2.AuthorizedObjects`]
|
|
102
|
+
:param order_id: 包周期订购ID,CBC订购回调时使用。
|
|
103
|
+
:type order_id: str
|
|
104
|
+
:param ou_name: OU名称,在对接AD时使用,需提前在AD中创建OU。
|
|
105
|
+
:type ou_name: str
|
|
106
|
+
:param tags: 标签列表。
|
|
107
|
+
:type tags: list[:class:`huaweicloudsdkworkspace.v2.Tag`]
|
|
108
|
+
:param enterprise_project_id: 企业项目ID,默认\"0\"
|
|
109
|
+
:type enterprise_project_id: str
|
|
110
|
+
:param disconnected_retention_period: 动态池桌面断连多少分钟内,保留用户与桌面的绑定关系,超时后自动解绑。
|
|
111
|
+
:type disconnected_retention_period: int
|
|
112
|
+
:param enable_autoscale: 桌面池是否开启弹性伸缩类型,为false则表示不开启弹性伸缩,为true则表示开启弹性伸缩。
|
|
113
|
+
:type enable_autoscale: bool
|
|
114
|
+
:param autoscale_policy:
|
|
115
|
+
:type autoscale_policy: :class:`huaweicloudsdkworkspace.v2.AutoscalePolicy`
|
|
116
|
+
:param desktop_name_policy_id: 策略id,用于指定生成桌面名称策略。
|
|
117
|
+
:type desktop_name_policy_id: str
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
self._name = None
|
|
123
|
+
self._type = None
|
|
124
|
+
self._size = None
|
|
125
|
+
self._description = None
|
|
126
|
+
self._availability_zone = None
|
|
127
|
+
self._product_id = None
|
|
128
|
+
self._image_type = None
|
|
129
|
+
self._image_id = None
|
|
130
|
+
self._root_volume = None
|
|
131
|
+
self._data_volumes = None
|
|
132
|
+
self._vpc_id = None
|
|
133
|
+
self._subnet_ids = None
|
|
134
|
+
self._security_groups = None
|
|
135
|
+
self._authorized_objects = None
|
|
136
|
+
self._order_id = None
|
|
137
|
+
self._ou_name = None
|
|
138
|
+
self._tags = None
|
|
139
|
+
self._enterprise_project_id = None
|
|
140
|
+
self._disconnected_retention_period = None
|
|
141
|
+
self._enable_autoscale = None
|
|
142
|
+
self._autoscale_policy = None
|
|
143
|
+
self._desktop_name_policy_id = None
|
|
144
|
+
self.discriminator = None
|
|
145
|
+
|
|
146
|
+
self.name = name
|
|
147
|
+
self.type = type
|
|
148
|
+
self.size = size
|
|
149
|
+
if description is not None:
|
|
150
|
+
self.description = description
|
|
151
|
+
if availability_zone is not None:
|
|
152
|
+
self.availability_zone = availability_zone
|
|
153
|
+
self.product_id = product_id
|
|
154
|
+
self.image_type = image_type
|
|
155
|
+
self.image_id = image_id
|
|
156
|
+
self.root_volume = root_volume
|
|
157
|
+
if data_volumes is not None:
|
|
158
|
+
self.data_volumes = data_volumes
|
|
159
|
+
if vpc_id is not None:
|
|
160
|
+
self.vpc_id = vpc_id
|
|
161
|
+
self.subnet_ids = subnet_ids
|
|
162
|
+
if security_groups is not None:
|
|
163
|
+
self.security_groups = security_groups
|
|
164
|
+
if authorized_objects is not None:
|
|
165
|
+
self.authorized_objects = authorized_objects
|
|
166
|
+
if order_id is not None:
|
|
167
|
+
self.order_id = order_id
|
|
168
|
+
if ou_name is not None:
|
|
169
|
+
self.ou_name = ou_name
|
|
170
|
+
if tags is not None:
|
|
171
|
+
self.tags = tags
|
|
172
|
+
if enterprise_project_id is not None:
|
|
173
|
+
self.enterprise_project_id = enterprise_project_id
|
|
174
|
+
if disconnected_retention_period is not None:
|
|
175
|
+
self.disconnected_retention_period = disconnected_retention_period
|
|
176
|
+
if enable_autoscale is not None:
|
|
177
|
+
self.enable_autoscale = enable_autoscale
|
|
178
|
+
if autoscale_policy is not None:
|
|
179
|
+
self.autoscale_policy = autoscale_policy
|
|
180
|
+
if desktop_name_policy_id is not None:
|
|
181
|
+
self.desktop_name_policy_id = desktop_name_policy_id
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
def name(self):
|
|
185
|
+
"""Gets the name of this CreateDesktopPoolReq.
|
|
186
|
+
|
|
187
|
+
桌面池名称,桌面池名称必须保证唯一。桌面名称只允许输入中文、大写字母、小写字母、数字、中划线,长度范围为1~255。
|
|
188
|
+
|
|
189
|
+
:return: The name of this CreateDesktopPoolReq.
|
|
190
|
+
:rtype: str
|
|
191
|
+
"""
|
|
192
|
+
return self._name
|
|
193
|
+
|
|
194
|
+
@name.setter
|
|
195
|
+
def name(self, name):
|
|
196
|
+
"""Sets the name of this CreateDesktopPoolReq.
|
|
197
|
+
|
|
198
|
+
桌面池名称,桌面池名称必须保证唯一。桌面名称只允许输入中文、大写字母、小写字母、数字、中划线,长度范围为1~255。
|
|
199
|
+
|
|
200
|
+
:param name: The name of this CreateDesktopPoolReq.
|
|
201
|
+
:type name: str
|
|
202
|
+
"""
|
|
203
|
+
self._name = name
|
|
204
|
+
|
|
205
|
+
@property
|
|
206
|
+
def type(self):
|
|
207
|
+
"""Gets the type of this CreateDesktopPoolReq.
|
|
208
|
+
|
|
209
|
+
桌面池类型,DYNAMIC:动态池,STATIC:静态池。
|
|
210
|
+
|
|
211
|
+
:return: The type of this CreateDesktopPoolReq.
|
|
212
|
+
:rtype: str
|
|
213
|
+
"""
|
|
214
|
+
return self._type
|
|
215
|
+
|
|
216
|
+
@type.setter
|
|
217
|
+
def type(self, type):
|
|
218
|
+
"""Sets the type of this CreateDesktopPoolReq.
|
|
219
|
+
|
|
220
|
+
桌面池类型,DYNAMIC:动态池,STATIC:静态池。
|
|
221
|
+
|
|
222
|
+
:param type: The type of this CreateDesktopPoolReq.
|
|
223
|
+
:type type: str
|
|
224
|
+
"""
|
|
225
|
+
self._type = type
|
|
226
|
+
|
|
227
|
+
@property
|
|
228
|
+
def size(self):
|
|
229
|
+
"""Gets the size of this CreateDesktopPoolReq.
|
|
230
|
+
|
|
231
|
+
桌面池大小:当前桌面池要创建多少台桌面。
|
|
232
|
+
|
|
233
|
+
:return: The size of this CreateDesktopPoolReq.
|
|
234
|
+
:rtype: int
|
|
235
|
+
"""
|
|
236
|
+
return self._size
|
|
237
|
+
|
|
238
|
+
@size.setter
|
|
239
|
+
def size(self, size):
|
|
240
|
+
"""Sets the size of this CreateDesktopPoolReq.
|
|
241
|
+
|
|
242
|
+
桌面池大小:当前桌面池要创建多少台桌面。
|
|
243
|
+
|
|
244
|
+
:param size: The size of this CreateDesktopPoolReq.
|
|
245
|
+
:type size: int
|
|
246
|
+
"""
|
|
247
|
+
self._size = size
|
|
248
|
+
|
|
249
|
+
@property
|
|
250
|
+
def description(self):
|
|
251
|
+
"""Gets the description of this CreateDesktopPoolReq.
|
|
252
|
+
|
|
253
|
+
桌面池描述。
|
|
254
|
+
|
|
255
|
+
:return: The description of this CreateDesktopPoolReq.
|
|
256
|
+
:rtype: str
|
|
257
|
+
"""
|
|
258
|
+
return self._description
|
|
259
|
+
|
|
260
|
+
@description.setter
|
|
261
|
+
def description(self, description):
|
|
262
|
+
"""Sets the description of this CreateDesktopPoolReq.
|
|
263
|
+
|
|
264
|
+
桌面池描述。
|
|
265
|
+
|
|
266
|
+
:param description: The description of this CreateDesktopPoolReq.
|
|
267
|
+
:type description: str
|
|
268
|
+
"""
|
|
269
|
+
self._description = description
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
def availability_zone(self):
|
|
273
|
+
"""Gets the availability_zone of this CreateDesktopPoolReq.
|
|
274
|
+
|
|
275
|
+
可用分区。将桌面创建到指定的可用分区。如果不指定则使用系统随机的可用分区。
|
|
276
|
+
|
|
277
|
+
:return: The availability_zone of this CreateDesktopPoolReq.
|
|
278
|
+
:rtype: str
|
|
279
|
+
"""
|
|
280
|
+
return self._availability_zone
|
|
281
|
+
|
|
282
|
+
@availability_zone.setter
|
|
283
|
+
def availability_zone(self, availability_zone):
|
|
284
|
+
"""Sets the availability_zone of this CreateDesktopPoolReq.
|
|
285
|
+
|
|
286
|
+
可用分区。将桌面创建到指定的可用分区。如果不指定则使用系统随机的可用分区。
|
|
287
|
+
|
|
288
|
+
:param availability_zone: The availability_zone of this CreateDesktopPoolReq.
|
|
289
|
+
:type availability_zone: str
|
|
290
|
+
"""
|
|
291
|
+
self._availability_zone = availability_zone
|
|
292
|
+
|
|
293
|
+
@property
|
|
294
|
+
def product_id(self):
|
|
295
|
+
"""Gets the product_id of this CreateDesktopPoolReq.
|
|
296
|
+
|
|
297
|
+
套餐ID。
|
|
298
|
+
|
|
299
|
+
:return: The product_id of this CreateDesktopPoolReq.
|
|
300
|
+
:rtype: str
|
|
301
|
+
"""
|
|
302
|
+
return self._product_id
|
|
303
|
+
|
|
304
|
+
@product_id.setter
|
|
305
|
+
def product_id(self, product_id):
|
|
306
|
+
"""Sets the product_id of this CreateDesktopPoolReq.
|
|
307
|
+
|
|
308
|
+
套餐ID。
|
|
309
|
+
|
|
310
|
+
:param product_id: The product_id of this CreateDesktopPoolReq.
|
|
311
|
+
:type product_id: str
|
|
312
|
+
"""
|
|
313
|
+
self._product_id = product_id
|
|
314
|
+
|
|
315
|
+
@property
|
|
316
|
+
def image_type(self):
|
|
317
|
+
"""Gets the image_type of this CreateDesktopPoolReq.
|
|
318
|
+
|
|
319
|
+
镜像类型。默认值为private。 - private:私有镜像。 - gold:公共镜像。
|
|
320
|
+
|
|
321
|
+
:return: The image_type of this CreateDesktopPoolReq.
|
|
322
|
+
:rtype: str
|
|
323
|
+
"""
|
|
324
|
+
return self._image_type
|
|
325
|
+
|
|
326
|
+
@image_type.setter
|
|
327
|
+
def image_type(self, image_type):
|
|
328
|
+
"""Sets the image_type of this CreateDesktopPoolReq.
|
|
329
|
+
|
|
330
|
+
镜像类型。默认值为private。 - private:私有镜像。 - gold:公共镜像。
|
|
331
|
+
|
|
332
|
+
:param image_type: The image_type of this CreateDesktopPoolReq.
|
|
333
|
+
:type image_type: str
|
|
334
|
+
"""
|
|
335
|
+
self._image_type = image_type
|
|
336
|
+
|
|
337
|
+
@property
|
|
338
|
+
def image_id(self):
|
|
339
|
+
"""Gets the image_id of this CreateDesktopPoolReq.
|
|
340
|
+
|
|
341
|
+
镜像ID,用于私有镜像创建桌面场景,配合product_id使用。
|
|
342
|
+
|
|
343
|
+
:return: The image_id of this CreateDesktopPoolReq.
|
|
344
|
+
:rtype: str
|
|
345
|
+
"""
|
|
346
|
+
return self._image_id
|
|
347
|
+
|
|
348
|
+
@image_id.setter
|
|
349
|
+
def image_id(self, image_id):
|
|
350
|
+
"""Sets the image_id of this CreateDesktopPoolReq.
|
|
351
|
+
|
|
352
|
+
镜像ID,用于私有镜像创建桌面场景,配合product_id使用。
|
|
353
|
+
|
|
354
|
+
:param image_id: The image_id of this CreateDesktopPoolReq.
|
|
355
|
+
:type image_id: str
|
|
356
|
+
"""
|
|
357
|
+
self._image_id = image_id
|
|
358
|
+
|
|
359
|
+
@property
|
|
360
|
+
def root_volume(self):
|
|
361
|
+
"""Gets the root_volume of this CreateDesktopPoolReq.
|
|
362
|
+
|
|
363
|
+
:return: The root_volume of this CreateDesktopPoolReq.
|
|
364
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.VolumeInfo`
|
|
365
|
+
"""
|
|
366
|
+
return self._root_volume
|
|
367
|
+
|
|
368
|
+
@root_volume.setter
|
|
369
|
+
def root_volume(self, root_volume):
|
|
370
|
+
"""Sets the root_volume of this CreateDesktopPoolReq.
|
|
371
|
+
|
|
372
|
+
:param root_volume: The root_volume of this CreateDesktopPoolReq.
|
|
373
|
+
:type root_volume: :class:`huaweicloudsdkworkspace.v2.VolumeInfo`
|
|
374
|
+
"""
|
|
375
|
+
self._root_volume = root_volume
|
|
376
|
+
|
|
377
|
+
@property
|
|
378
|
+
def data_volumes(self):
|
|
379
|
+
"""Gets the data_volumes of this CreateDesktopPoolReq.
|
|
380
|
+
|
|
381
|
+
数据盘列表。
|
|
382
|
+
|
|
383
|
+
:return: The data_volumes of this CreateDesktopPoolReq.
|
|
384
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.VolumeInfo`]
|
|
385
|
+
"""
|
|
386
|
+
return self._data_volumes
|
|
387
|
+
|
|
388
|
+
@data_volumes.setter
|
|
389
|
+
def data_volumes(self, data_volumes):
|
|
390
|
+
"""Sets the data_volumes of this CreateDesktopPoolReq.
|
|
391
|
+
|
|
392
|
+
数据盘列表。
|
|
393
|
+
|
|
394
|
+
:param data_volumes: The data_volumes of this CreateDesktopPoolReq.
|
|
395
|
+
:type data_volumes: list[:class:`huaweicloudsdkworkspace.v2.VolumeInfo`]
|
|
396
|
+
"""
|
|
397
|
+
self._data_volumes = data_volumes
|
|
398
|
+
|
|
399
|
+
@property
|
|
400
|
+
def vpc_id(self):
|
|
401
|
+
"""Gets the vpc_id of this CreateDesktopPoolReq.
|
|
402
|
+
|
|
403
|
+
创建桌面时的VPC ID。
|
|
404
|
+
|
|
405
|
+
:return: The vpc_id of this CreateDesktopPoolReq.
|
|
406
|
+
:rtype: str
|
|
407
|
+
"""
|
|
408
|
+
return self._vpc_id
|
|
409
|
+
|
|
410
|
+
@vpc_id.setter
|
|
411
|
+
def vpc_id(self, vpc_id):
|
|
412
|
+
"""Sets the vpc_id of this CreateDesktopPoolReq.
|
|
413
|
+
|
|
414
|
+
创建桌面时的VPC ID。
|
|
415
|
+
|
|
416
|
+
:param vpc_id: The vpc_id of this CreateDesktopPoolReq.
|
|
417
|
+
:type vpc_id: str
|
|
418
|
+
"""
|
|
419
|
+
self._vpc_id = vpc_id
|
|
420
|
+
|
|
421
|
+
@property
|
|
422
|
+
def subnet_ids(self):
|
|
423
|
+
"""Gets the subnet_ids of this CreateDesktopPoolReq.
|
|
424
|
+
|
|
425
|
+
创建桌面使用的子网ID。
|
|
426
|
+
|
|
427
|
+
:return: The subnet_ids of this CreateDesktopPoolReq.
|
|
428
|
+
:rtype: list[str]
|
|
429
|
+
"""
|
|
430
|
+
return self._subnet_ids
|
|
431
|
+
|
|
432
|
+
@subnet_ids.setter
|
|
433
|
+
def subnet_ids(self, subnet_ids):
|
|
434
|
+
"""Sets the subnet_ids of this CreateDesktopPoolReq.
|
|
435
|
+
|
|
436
|
+
创建桌面使用的子网ID。
|
|
437
|
+
|
|
438
|
+
:param subnet_ids: The subnet_ids of this CreateDesktopPoolReq.
|
|
439
|
+
:type subnet_ids: list[str]
|
|
440
|
+
"""
|
|
441
|
+
self._subnet_ids = subnet_ids
|
|
442
|
+
|
|
443
|
+
@property
|
|
444
|
+
def security_groups(self):
|
|
445
|
+
"""Gets the security_groups of this CreateDesktopPoolReq.
|
|
446
|
+
|
|
447
|
+
桌面使用的安全组,如果不指定则默认使用桌面代理中指定的安全组。
|
|
448
|
+
|
|
449
|
+
:return: The security_groups of this CreateDesktopPoolReq.
|
|
450
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.SecurityGroup`]
|
|
451
|
+
"""
|
|
452
|
+
return self._security_groups
|
|
453
|
+
|
|
454
|
+
@security_groups.setter
|
|
455
|
+
def security_groups(self, security_groups):
|
|
456
|
+
"""Sets the security_groups of this CreateDesktopPoolReq.
|
|
457
|
+
|
|
458
|
+
桌面使用的安全组,如果不指定则默认使用桌面代理中指定的安全组。
|
|
459
|
+
|
|
460
|
+
:param security_groups: The security_groups of this CreateDesktopPoolReq.
|
|
461
|
+
:type security_groups: list[:class:`huaweicloudsdkworkspace.v2.SecurityGroup`]
|
|
462
|
+
"""
|
|
463
|
+
self._security_groups = security_groups
|
|
464
|
+
|
|
465
|
+
@property
|
|
466
|
+
def authorized_objects(self):
|
|
467
|
+
"""Gets the authorized_objects of this CreateDesktopPoolReq.
|
|
468
|
+
|
|
469
|
+
要授权的用户/用户组列表。
|
|
470
|
+
|
|
471
|
+
:return: The authorized_objects of this CreateDesktopPoolReq.
|
|
472
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.AuthorizedObjects`]
|
|
473
|
+
"""
|
|
474
|
+
return self._authorized_objects
|
|
475
|
+
|
|
476
|
+
@authorized_objects.setter
|
|
477
|
+
def authorized_objects(self, authorized_objects):
|
|
478
|
+
"""Sets the authorized_objects of this CreateDesktopPoolReq.
|
|
479
|
+
|
|
480
|
+
要授权的用户/用户组列表。
|
|
481
|
+
|
|
482
|
+
:param authorized_objects: The authorized_objects of this CreateDesktopPoolReq.
|
|
483
|
+
:type authorized_objects: list[:class:`huaweicloudsdkworkspace.v2.AuthorizedObjects`]
|
|
484
|
+
"""
|
|
485
|
+
self._authorized_objects = authorized_objects
|
|
486
|
+
|
|
487
|
+
@property
|
|
488
|
+
def order_id(self):
|
|
489
|
+
"""Gets the order_id of this CreateDesktopPoolReq.
|
|
490
|
+
|
|
491
|
+
包周期订购ID,CBC订购回调时使用。
|
|
492
|
+
|
|
493
|
+
:return: The order_id of this CreateDesktopPoolReq.
|
|
494
|
+
:rtype: str
|
|
495
|
+
"""
|
|
496
|
+
return self._order_id
|
|
497
|
+
|
|
498
|
+
@order_id.setter
|
|
499
|
+
def order_id(self, order_id):
|
|
500
|
+
"""Sets the order_id of this CreateDesktopPoolReq.
|
|
501
|
+
|
|
502
|
+
包周期订购ID,CBC订购回调时使用。
|
|
503
|
+
|
|
504
|
+
:param order_id: The order_id of this CreateDesktopPoolReq.
|
|
505
|
+
:type order_id: str
|
|
506
|
+
"""
|
|
507
|
+
self._order_id = order_id
|
|
508
|
+
|
|
509
|
+
@property
|
|
510
|
+
def ou_name(self):
|
|
511
|
+
"""Gets the ou_name of this CreateDesktopPoolReq.
|
|
512
|
+
|
|
513
|
+
OU名称,在对接AD时使用,需提前在AD中创建OU。
|
|
514
|
+
|
|
515
|
+
:return: The ou_name of this CreateDesktopPoolReq.
|
|
516
|
+
:rtype: str
|
|
517
|
+
"""
|
|
518
|
+
return self._ou_name
|
|
519
|
+
|
|
520
|
+
@ou_name.setter
|
|
521
|
+
def ou_name(self, ou_name):
|
|
522
|
+
"""Sets the ou_name of this CreateDesktopPoolReq.
|
|
523
|
+
|
|
524
|
+
OU名称,在对接AD时使用,需提前在AD中创建OU。
|
|
525
|
+
|
|
526
|
+
:param ou_name: The ou_name of this CreateDesktopPoolReq.
|
|
527
|
+
:type ou_name: str
|
|
528
|
+
"""
|
|
529
|
+
self._ou_name = ou_name
|
|
530
|
+
|
|
531
|
+
@property
|
|
532
|
+
def tags(self):
|
|
533
|
+
"""Gets the tags of this CreateDesktopPoolReq.
|
|
534
|
+
|
|
535
|
+
标签列表。
|
|
536
|
+
|
|
537
|
+
:return: The tags of this CreateDesktopPoolReq.
|
|
538
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.Tag`]
|
|
539
|
+
"""
|
|
540
|
+
return self._tags
|
|
541
|
+
|
|
542
|
+
@tags.setter
|
|
543
|
+
def tags(self, tags):
|
|
544
|
+
"""Sets the tags of this CreateDesktopPoolReq.
|
|
545
|
+
|
|
546
|
+
标签列表。
|
|
547
|
+
|
|
548
|
+
:param tags: The tags of this CreateDesktopPoolReq.
|
|
549
|
+
:type tags: list[:class:`huaweicloudsdkworkspace.v2.Tag`]
|
|
550
|
+
"""
|
|
551
|
+
self._tags = tags
|
|
552
|
+
|
|
553
|
+
@property
|
|
554
|
+
def enterprise_project_id(self):
|
|
555
|
+
"""Gets the enterprise_project_id of this CreateDesktopPoolReq.
|
|
556
|
+
|
|
557
|
+
企业项目ID,默认\"0\"
|
|
558
|
+
|
|
559
|
+
:return: The enterprise_project_id of this CreateDesktopPoolReq.
|
|
560
|
+
:rtype: str
|
|
561
|
+
"""
|
|
562
|
+
return self._enterprise_project_id
|
|
563
|
+
|
|
564
|
+
@enterprise_project_id.setter
|
|
565
|
+
def enterprise_project_id(self, enterprise_project_id):
|
|
566
|
+
"""Sets the enterprise_project_id of this CreateDesktopPoolReq.
|
|
567
|
+
|
|
568
|
+
企业项目ID,默认\"0\"
|
|
569
|
+
|
|
570
|
+
:param enterprise_project_id: The enterprise_project_id of this CreateDesktopPoolReq.
|
|
571
|
+
:type enterprise_project_id: str
|
|
572
|
+
"""
|
|
573
|
+
self._enterprise_project_id = enterprise_project_id
|
|
574
|
+
|
|
575
|
+
@property
|
|
576
|
+
def disconnected_retention_period(self):
|
|
577
|
+
"""Gets the disconnected_retention_period of this CreateDesktopPoolReq.
|
|
578
|
+
|
|
579
|
+
动态池桌面断连多少分钟内,保留用户与桌面的绑定关系,超时后自动解绑。
|
|
580
|
+
|
|
581
|
+
:return: The disconnected_retention_period of this CreateDesktopPoolReq.
|
|
582
|
+
:rtype: int
|
|
583
|
+
"""
|
|
584
|
+
return self._disconnected_retention_period
|
|
585
|
+
|
|
586
|
+
@disconnected_retention_period.setter
|
|
587
|
+
def disconnected_retention_period(self, disconnected_retention_period):
|
|
588
|
+
"""Sets the disconnected_retention_period of this CreateDesktopPoolReq.
|
|
589
|
+
|
|
590
|
+
动态池桌面断连多少分钟内,保留用户与桌面的绑定关系,超时后自动解绑。
|
|
591
|
+
|
|
592
|
+
:param disconnected_retention_period: The disconnected_retention_period of this CreateDesktopPoolReq.
|
|
593
|
+
:type disconnected_retention_period: int
|
|
594
|
+
"""
|
|
595
|
+
self._disconnected_retention_period = disconnected_retention_period
|
|
596
|
+
|
|
597
|
+
@property
|
|
598
|
+
def enable_autoscale(self):
|
|
599
|
+
"""Gets the enable_autoscale of this CreateDesktopPoolReq.
|
|
600
|
+
|
|
601
|
+
桌面池是否开启弹性伸缩类型,为false则表示不开启弹性伸缩,为true则表示开启弹性伸缩。
|
|
602
|
+
|
|
603
|
+
:return: The enable_autoscale of this CreateDesktopPoolReq.
|
|
604
|
+
:rtype: bool
|
|
605
|
+
"""
|
|
606
|
+
return self._enable_autoscale
|
|
607
|
+
|
|
608
|
+
@enable_autoscale.setter
|
|
609
|
+
def enable_autoscale(self, enable_autoscale):
|
|
610
|
+
"""Sets the enable_autoscale of this CreateDesktopPoolReq.
|
|
611
|
+
|
|
612
|
+
桌面池是否开启弹性伸缩类型,为false则表示不开启弹性伸缩,为true则表示开启弹性伸缩。
|
|
613
|
+
|
|
614
|
+
:param enable_autoscale: The enable_autoscale of this CreateDesktopPoolReq.
|
|
615
|
+
:type enable_autoscale: bool
|
|
616
|
+
"""
|
|
617
|
+
self._enable_autoscale = enable_autoscale
|
|
618
|
+
|
|
619
|
+
@property
|
|
620
|
+
def autoscale_policy(self):
|
|
621
|
+
"""Gets the autoscale_policy of this CreateDesktopPoolReq.
|
|
622
|
+
|
|
623
|
+
:return: The autoscale_policy of this CreateDesktopPoolReq.
|
|
624
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.AutoscalePolicy`
|
|
625
|
+
"""
|
|
626
|
+
return self._autoscale_policy
|
|
627
|
+
|
|
628
|
+
@autoscale_policy.setter
|
|
629
|
+
def autoscale_policy(self, autoscale_policy):
|
|
630
|
+
"""Sets the autoscale_policy of this CreateDesktopPoolReq.
|
|
631
|
+
|
|
632
|
+
:param autoscale_policy: The autoscale_policy of this CreateDesktopPoolReq.
|
|
633
|
+
:type autoscale_policy: :class:`huaweicloudsdkworkspace.v2.AutoscalePolicy`
|
|
634
|
+
"""
|
|
635
|
+
self._autoscale_policy = autoscale_policy
|
|
636
|
+
|
|
637
|
+
@property
|
|
638
|
+
def desktop_name_policy_id(self):
|
|
639
|
+
"""Gets the desktop_name_policy_id of this CreateDesktopPoolReq.
|
|
640
|
+
|
|
641
|
+
策略id,用于指定生成桌面名称策略。
|
|
642
|
+
|
|
643
|
+
:return: The desktop_name_policy_id of this CreateDesktopPoolReq.
|
|
644
|
+
:rtype: str
|
|
645
|
+
"""
|
|
646
|
+
return self._desktop_name_policy_id
|
|
647
|
+
|
|
648
|
+
@desktop_name_policy_id.setter
|
|
649
|
+
def desktop_name_policy_id(self, desktop_name_policy_id):
|
|
650
|
+
"""Sets the desktop_name_policy_id of this CreateDesktopPoolReq.
|
|
651
|
+
|
|
652
|
+
策略id,用于指定生成桌面名称策略。
|
|
653
|
+
|
|
654
|
+
:param desktop_name_policy_id: The desktop_name_policy_id of this CreateDesktopPoolReq.
|
|
655
|
+
:type desktop_name_policy_id: str
|
|
656
|
+
"""
|
|
657
|
+
self._desktop_name_policy_id = desktop_name_policy_id
|
|
658
|
+
|
|
659
|
+
def to_dict(self):
|
|
660
|
+
"""Returns the model properties as a dict"""
|
|
661
|
+
result = {}
|
|
662
|
+
|
|
663
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
664
|
+
value = getattr(self, attr)
|
|
665
|
+
if isinstance(value, list):
|
|
666
|
+
result[attr] = list(map(
|
|
667
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
668
|
+
value
|
|
669
|
+
))
|
|
670
|
+
elif hasattr(value, "to_dict"):
|
|
671
|
+
result[attr] = value.to_dict()
|
|
672
|
+
elif isinstance(value, dict):
|
|
673
|
+
result[attr] = dict(map(
|
|
674
|
+
lambda item: (item[0], item[1].to_dict())
|
|
675
|
+
if hasattr(item[1], "to_dict") else item,
|
|
676
|
+
value.items()
|
|
677
|
+
))
|
|
678
|
+
else:
|
|
679
|
+
if attr in self.sensitive_list:
|
|
680
|
+
result[attr] = "****"
|
|
681
|
+
else:
|
|
682
|
+
result[attr] = value
|
|
683
|
+
|
|
684
|
+
return result
|
|
685
|
+
|
|
686
|
+
def to_str(self):
|
|
687
|
+
"""Returns the string representation of the model"""
|
|
688
|
+
import simplejson as json
|
|
689
|
+
if six.PY2:
|
|
690
|
+
import sys
|
|
691
|
+
reload(sys)
|
|
692
|
+
sys.setdefaultencoding("utf-8")
|
|
693
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
694
|
+
|
|
695
|
+
def __repr__(self):
|
|
696
|
+
"""For `print`"""
|
|
697
|
+
return self.to_str()
|
|
698
|
+
|
|
699
|
+
def __eq__(self, other):
|
|
700
|
+
"""Returns true if both objects are equal"""
|
|
701
|
+
if not isinstance(other, CreateDesktopPoolReq):
|
|
702
|
+
return False
|
|
703
|
+
|
|
704
|
+
return self.__dict__ == other.__dict__
|
|
705
|
+
|
|
706
|
+
def __ne__(self, other):
|
|
707
|
+
"""Returns true if both objects are not equal"""
|
|
708
|
+
return not self == other
|