huaweicloudsdkworkspace 3.1.123__py2.py3-none-any.whl → 3.1.125__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.125.dist-info}/METADATA +2 -2
  60. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/RECORD +63 -9
  61. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/WHEEL +1 -1
  62. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/LICENSE +0 -0
  63. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,288 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RebuildDesktopPoolReq:
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
+ 'image_type': 'str',
21
+ 'image_id': 'str',
22
+ 'os_type': 'str',
23
+ 'delay_time': 'int',
24
+ 'message': 'str',
25
+ 'order_id': 'str',
26
+ 'is_fix': 'bool'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'image_type': 'image_type',
31
+ 'image_id': 'image_id',
32
+ 'os_type': 'os_type',
33
+ 'delay_time': 'delay_time',
34
+ 'message': 'message',
35
+ 'order_id': 'order_id',
36
+ 'is_fix': 'is_fix'
37
+ }
38
+
39
+ def __init__(self, image_type=None, image_id=None, os_type=None, delay_time=None, message=None, order_id=None, is_fix=None):
40
+ """RebuildDesktopPoolReq
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param image_type: 镜像类型。
45
+ :type image_type: str
46
+ :param image_id: 模板ID。
47
+ :type image_id: str
48
+ :param os_type: os类型。
49
+ :type os_type: str
50
+ :param delay_time: 立即重建时给用户预留的保存数据的时间(单位:分钟)。
51
+ :type delay_time: int
52
+ :param message: 下发重建系统盘任务时,给用户发送的提示信息。
53
+ :type message: str
54
+ :param order_id: 订单ID,包周期桌面重建系统盘,涉及收费镜像时需传
55
+ :type order_id: str
56
+ :param is_fix: 是否是修复行为,修复行为只修复镜像ID与桌面池镜像ID不一致的桌面,用于桌面池切换镜像失败场景的修复。
57
+ :type is_fix: bool
58
+ """
59
+
60
+
61
+
62
+ self._image_type = None
63
+ self._image_id = None
64
+ self._os_type = None
65
+ self._delay_time = None
66
+ self._message = None
67
+ self._order_id = None
68
+ self._is_fix = None
69
+ self.discriminator = None
70
+
71
+ if image_type is not None:
72
+ self.image_type = image_type
73
+ self.image_id = image_id
74
+ if os_type is not None:
75
+ self.os_type = os_type
76
+ if delay_time is not None:
77
+ self.delay_time = delay_time
78
+ if message is not None:
79
+ self.message = message
80
+ if order_id is not None:
81
+ self.order_id = order_id
82
+ if is_fix is not None:
83
+ self.is_fix = is_fix
84
+
85
+ @property
86
+ def image_type(self):
87
+ """Gets the image_type of this RebuildDesktopPoolReq.
88
+
89
+ 镜像类型。
90
+
91
+ :return: The image_type of this RebuildDesktopPoolReq.
92
+ :rtype: str
93
+ """
94
+ return self._image_type
95
+
96
+ @image_type.setter
97
+ def image_type(self, image_type):
98
+ """Sets the image_type of this RebuildDesktopPoolReq.
99
+
100
+ 镜像类型。
101
+
102
+ :param image_type: The image_type of this RebuildDesktopPoolReq.
103
+ :type image_type: str
104
+ """
105
+ self._image_type = image_type
106
+
107
+ @property
108
+ def image_id(self):
109
+ """Gets the image_id of this RebuildDesktopPoolReq.
110
+
111
+ 模板ID。
112
+
113
+ :return: The image_id of this RebuildDesktopPoolReq.
114
+ :rtype: str
115
+ """
116
+ return self._image_id
117
+
118
+ @image_id.setter
119
+ def image_id(self, image_id):
120
+ """Sets the image_id of this RebuildDesktopPoolReq.
121
+
122
+ 模板ID。
123
+
124
+ :param image_id: The image_id of this RebuildDesktopPoolReq.
125
+ :type image_id: str
126
+ """
127
+ self._image_id = image_id
128
+
129
+ @property
130
+ def os_type(self):
131
+ """Gets the os_type of this RebuildDesktopPoolReq.
132
+
133
+ os类型。
134
+
135
+ :return: The os_type of this RebuildDesktopPoolReq.
136
+ :rtype: str
137
+ """
138
+ return self._os_type
139
+
140
+ @os_type.setter
141
+ def os_type(self, os_type):
142
+ """Sets the os_type of this RebuildDesktopPoolReq.
143
+
144
+ os类型。
145
+
146
+ :param os_type: The os_type of this RebuildDesktopPoolReq.
147
+ :type os_type: str
148
+ """
149
+ self._os_type = os_type
150
+
151
+ @property
152
+ def delay_time(self):
153
+ """Gets the delay_time of this RebuildDesktopPoolReq.
154
+
155
+ 立即重建时给用户预留的保存数据的时间(单位:分钟)。
156
+
157
+ :return: The delay_time of this RebuildDesktopPoolReq.
158
+ :rtype: int
159
+ """
160
+ return self._delay_time
161
+
162
+ @delay_time.setter
163
+ def delay_time(self, delay_time):
164
+ """Sets the delay_time of this RebuildDesktopPoolReq.
165
+
166
+ 立即重建时给用户预留的保存数据的时间(单位:分钟)。
167
+
168
+ :param delay_time: The delay_time of this RebuildDesktopPoolReq.
169
+ :type delay_time: int
170
+ """
171
+ self._delay_time = delay_time
172
+
173
+ @property
174
+ def message(self):
175
+ """Gets the message of this RebuildDesktopPoolReq.
176
+
177
+ 下发重建系统盘任务时,给用户发送的提示信息。
178
+
179
+ :return: The message of this RebuildDesktopPoolReq.
180
+ :rtype: str
181
+ """
182
+ return self._message
183
+
184
+ @message.setter
185
+ def message(self, message):
186
+ """Sets the message of this RebuildDesktopPoolReq.
187
+
188
+ 下发重建系统盘任务时,给用户发送的提示信息。
189
+
190
+ :param message: The message of this RebuildDesktopPoolReq.
191
+ :type message: str
192
+ """
193
+ self._message = message
194
+
195
+ @property
196
+ def order_id(self):
197
+ """Gets the order_id of this RebuildDesktopPoolReq.
198
+
199
+ 订单ID,包周期桌面重建系统盘,涉及收费镜像时需传
200
+
201
+ :return: The order_id of this RebuildDesktopPoolReq.
202
+ :rtype: str
203
+ """
204
+ return self._order_id
205
+
206
+ @order_id.setter
207
+ def order_id(self, order_id):
208
+ """Sets the order_id of this RebuildDesktopPoolReq.
209
+
210
+ 订单ID,包周期桌面重建系统盘,涉及收费镜像时需传
211
+
212
+ :param order_id: The order_id of this RebuildDesktopPoolReq.
213
+ :type order_id: str
214
+ """
215
+ self._order_id = order_id
216
+
217
+ @property
218
+ def is_fix(self):
219
+ """Gets the is_fix of this RebuildDesktopPoolReq.
220
+
221
+ 是否是修复行为,修复行为只修复镜像ID与桌面池镜像ID不一致的桌面,用于桌面池切换镜像失败场景的修复。
222
+
223
+ :return: The is_fix of this RebuildDesktopPoolReq.
224
+ :rtype: bool
225
+ """
226
+ return self._is_fix
227
+
228
+ @is_fix.setter
229
+ def is_fix(self, is_fix):
230
+ """Sets the is_fix of this RebuildDesktopPoolReq.
231
+
232
+ 是否是修复行为,修复行为只修复镜像ID与桌面池镜像ID不一致的桌面,用于桌面池切换镜像失败场景的修复。
233
+
234
+ :param is_fix: The is_fix of this RebuildDesktopPoolReq.
235
+ :type is_fix: bool
236
+ """
237
+ self._is_fix = is_fix
238
+
239
+ def to_dict(self):
240
+ """Returns the model properties as a dict"""
241
+ result = {}
242
+
243
+ for attr, _ in six.iteritems(self.openapi_types):
244
+ value = getattr(self, attr)
245
+ if isinstance(value, list):
246
+ result[attr] = list(map(
247
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
248
+ value
249
+ ))
250
+ elif hasattr(value, "to_dict"):
251
+ result[attr] = value.to_dict()
252
+ elif isinstance(value, dict):
253
+ result[attr] = dict(map(
254
+ lambda item: (item[0], item[1].to_dict())
255
+ if hasattr(item[1], "to_dict") else item,
256
+ value.items()
257
+ ))
258
+ else:
259
+ if attr in self.sensitive_list:
260
+ result[attr] = "****"
261
+ else:
262
+ result[attr] = value
263
+
264
+ return result
265
+
266
+ def to_str(self):
267
+ """Returns the string representation of the model"""
268
+ import simplejson as json
269
+ if six.PY2:
270
+ import sys
271
+ reload(sys)
272
+ sys.setdefaultencoding("utf-8")
273
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
274
+
275
+ def __repr__(self):
276
+ """For `print`"""
277
+ return self.to_str()
278
+
279
+ def __eq__(self, other):
280
+ """Returns true if both objects are equal"""
281
+ if not isinstance(other, RebuildDesktopPoolReq):
282
+ return False
283
+
284
+ return self.__dict__ == other.__dict__
285
+
286
+ def __ne__(self, other):
287
+ """Returns true if both objects are not equal"""
288
+ return not self == other
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RebuildDesktopPoolRequest:
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
+ 'service_transaction_id': 'str',
21
+ 'pool_id': 'str',
22
+ 'body': 'RebuildDesktopPoolReq'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'service_transaction_id': 'Service-Transaction-Id',
27
+ 'pool_id': 'pool_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, service_transaction_id=None, pool_id=None, body=None):
32
+ """RebuildDesktopPoolRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param service_transaction_id: CBC接口回调时,请求头里带上的业务ID
37
+ :type service_transaction_id: str
38
+ :param pool_id: 桌面池ID。
39
+ :type pool_id: str
40
+ :param body: Body of the RebuildDesktopPoolRequest
41
+ :type body: :class:`huaweicloudsdkworkspace.v2.RebuildDesktopPoolReq`
42
+ """
43
+
44
+
45
+
46
+ self._service_transaction_id = None
47
+ self._pool_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ if service_transaction_id is not None:
52
+ self.service_transaction_id = service_transaction_id
53
+ self.pool_id = pool_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def service_transaction_id(self):
59
+ """Gets the service_transaction_id of this RebuildDesktopPoolRequest.
60
+
61
+ CBC接口回调时,请求头里带上的业务ID
62
+
63
+ :return: The service_transaction_id of this RebuildDesktopPoolRequest.
64
+ :rtype: str
65
+ """
66
+ return self._service_transaction_id
67
+
68
+ @service_transaction_id.setter
69
+ def service_transaction_id(self, service_transaction_id):
70
+ """Sets the service_transaction_id of this RebuildDesktopPoolRequest.
71
+
72
+ CBC接口回调时,请求头里带上的业务ID
73
+
74
+ :param service_transaction_id: The service_transaction_id of this RebuildDesktopPoolRequest.
75
+ :type service_transaction_id: str
76
+ """
77
+ self._service_transaction_id = service_transaction_id
78
+
79
+ @property
80
+ def pool_id(self):
81
+ """Gets the pool_id of this RebuildDesktopPoolRequest.
82
+
83
+ 桌面池ID。
84
+
85
+ :return: The pool_id of this RebuildDesktopPoolRequest.
86
+ :rtype: str
87
+ """
88
+ return self._pool_id
89
+
90
+ @pool_id.setter
91
+ def pool_id(self, pool_id):
92
+ """Sets the pool_id of this RebuildDesktopPoolRequest.
93
+
94
+ 桌面池ID。
95
+
96
+ :param pool_id: The pool_id of this RebuildDesktopPoolRequest.
97
+ :type pool_id: str
98
+ """
99
+ self._pool_id = pool_id
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this RebuildDesktopPoolRequest.
104
+
105
+ :return: The body of this RebuildDesktopPoolRequest.
106
+ :rtype: :class:`huaweicloudsdkworkspace.v2.RebuildDesktopPoolReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this RebuildDesktopPoolRequest.
113
+
114
+ :param body: The body of this RebuildDesktopPoolRequest.
115
+ :type body: :class:`huaweicloudsdkworkspace.v2.RebuildDesktopPoolReq`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, RebuildDesktopPoolRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other
@@ -0,0 +1,232 @@
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 RebuildDesktopPoolResponse(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
+ 'job_id': 'str',
22
+ 'get_job_endpoint': 'str',
23
+ 'max_provision_time': 'int',
24
+ 'min_provision_time': 'int',
25
+ 'periodic_query_time': 'int'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'job_id': 'job_id',
30
+ 'get_job_endpoint': 'get_job_endpoint',
31
+ 'max_provision_time': 'max_provision_time',
32
+ 'min_provision_time': 'min_provision_time',
33
+ 'periodic_query_time': 'periodic_query_time'
34
+ }
35
+
36
+ def __init__(self, job_id=None, get_job_endpoint=None, max_provision_time=None, min_provision_time=None, periodic_query_time=None):
37
+ """RebuildDesktopPoolResponse
38
+
39
+ The model defined in huaweicloud sdk
40
+
41
+ :param job_id: 重建系统盘总任务id。
42
+ :type job_id: str
43
+ :param get_job_endpoint: 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果。
44
+ :type get_job_endpoint: str
45
+ :param max_provision_time: 在线开通最大时间。
46
+ :type max_provision_time: int
47
+ :param min_provision_time: 开通最小时间(云服务最快开通时长,或一般开通时长)。
48
+ :type min_provision_time: int
49
+ :param periodic_query_time: Job周期性查询时间。
50
+ :type periodic_query_time: int
51
+ """
52
+
53
+ super(RebuildDesktopPoolResponse, self).__init__()
54
+
55
+ self._job_id = None
56
+ self._get_job_endpoint = None
57
+ self._max_provision_time = None
58
+ self._min_provision_time = None
59
+ self._periodic_query_time = None
60
+ self.discriminator = None
61
+
62
+ if job_id is not None:
63
+ self.job_id = job_id
64
+ if get_job_endpoint is not None:
65
+ self.get_job_endpoint = get_job_endpoint
66
+ if max_provision_time is not None:
67
+ self.max_provision_time = max_provision_time
68
+ if min_provision_time is not None:
69
+ self.min_provision_time = min_provision_time
70
+ if periodic_query_time is not None:
71
+ self.periodic_query_time = periodic_query_time
72
+
73
+ @property
74
+ def job_id(self):
75
+ """Gets the job_id of this RebuildDesktopPoolResponse.
76
+
77
+ 重建系统盘总任务id。
78
+
79
+ :return: The job_id of this RebuildDesktopPoolResponse.
80
+ :rtype: str
81
+ """
82
+ return self._job_id
83
+
84
+ @job_id.setter
85
+ def job_id(self, job_id):
86
+ """Sets the job_id of this RebuildDesktopPoolResponse.
87
+
88
+ 重建系统盘总任务id。
89
+
90
+ :param job_id: The job_id of this RebuildDesktopPoolResponse.
91
+ :type job_id: str
92
+ """
93
+ self._job_id = job_id
94
+
95
+ @property
96
+ def get_job_endpoint(self):
97
+ """Gets the get_job_endpoint of this RebuildDesktopPoolResponse.
98
+
99
+ 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果。
100
+
101
+ :return: The get_job_endpoint of this RebuildDesktopPoolResponse.
102
+ :rtype: str
103
+ """
104
+ return self._get_job_endpoint
105
+
106
+ @get_job_endpoint.setter
107
+ def get_job_endpoint(self, get_job_endpoint):
108
+ """Sets the get_job_endpoint of this RebuildDesktopPoolResponse.
109
+
110
+ 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果。
111
+
112
+ :param get_job_endpoint: The get_job_endpoint of this RebuildDesktopPoolResponse.
113
+ :type get_job_endpoint: str
114
+ """
115
+ self._get_job_endpoint = get_job_endpoint
116
+
117
+ @property
118
+ def max_provision_time(self):
119
+ """Gets the max_provision_time of this RebuildDesktopPoolResponse.
120
+
121
+ 在线开通最大时间。
122
+
123
+ :return: The max_provision_time of this RebuildDesktopPoolResponse.
124
+ :rtype: int
125
+ """
126
+ return self._max_provision_time
127
+
128
+ @max_provision_time.setter
129
+ def max_provision_time(self, max_provision_time):
130
+ """Sets the max_provision_time of this RebuildDesktopPoolResponse.
131
+
132
+ 在线开通最大时间。
133
+
134
+ :param max_provision_time: The max_provision_time of this RebuildDesktopPoolResponse.
135
+ :type max_provision_time: int
136
+ """
137
+ self._max_provision_time = max_provision_time
138
+
139
+ @property
140
+ def min_provision_time(self):
141
+ """Gets the min_provision_time of this RebuildDesktopPoolResponse.
142
+
143
+ 开通最小时间(云服务最快开通时长,或一般开通时长)。
144
+
145
+ :return: The min_provision_time of this RebuildDesktopPoolResponse.
146
+ :rtype: int
147
+ """
148
+ return self._min_provision_time
149
+
150
+ @min_provision_time.setter
151
+ def min_provision_time(self, min_provision_time):
152
+ """Sets the min_provision_time of this RebuildDesktopPoolResponse.
153
+
154
+ 开通最小时间(云服务最快开通时长,或一般开通时长)。
155
+
156
+ :param min_provision_time: The min_provision_time of this RebuildDesktopPoolResponse.
157
+ :type min_provision_time: int
158
+ """
159
+ self._min_provision_time = min_provision_time
160
+
161
+ @property
162
+ def periodic_query_time(self):
163
+ """Gets the periodic_query_time of this RebuildDesktopPoolResponse.
164
+
165
+ Job周期性查询时间。
166
+
167
+ :return: The periodic_query_time of this RebuildDesktopPoolResponse.
168
+ :rtype: int
169
+ """
170
+ return self._periodic_query_time
171
+
172
+ @periodic_query_time.setter
173
+ def periodic_query_time(self, periodic_query_time):
174
+ """Sets the periodic_query_time of this RebuildDesktopPoolResponse.
175
+
176
+ Job周期性查询时间。
177
+
178
+ :param periodic_query_time: The periodic_query_time of this RebuildDesktopPoolResponse.
179
+ :type periodic_query_time: int
180
+ """
181
+ self._periodic_query_time = periodic_query_time
182
+
183
+ def to_dict(self):
184
+ """Returns the model properties as a dict"""
185
+ result = {}
186
+
187
+ for attr, _ in six.iteritems(self.openapi_types):
188
+ value = getattr(self, attr)
189
+ if isinstance(value, list):
190
+ result[attr] = list(map(
191
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
+ value
193
+ ))
194
+ elif hasattr(value, "to_dict"):
195
+ result[attr] = value.to_dict()
196
+ elif isinstance(value, dict):
197
+ result[attr] = dict(map(
198
+ lambda item: (item[0], item[1].to_dict())
199
+ if hasattr(item[1], "to_dict") else item,
200
+ value.items()
201
+ ))
202
+ else:
203
+ if attr in self.sensitive_list:
204
+ result[attr] = "****"
205
+ else:
206
+ result[attr] = value
207
+
208
+ return result
209
+
210
+ def to_str(self):
211
+ """Returns the string representation of the model"""
212
+ import simplejson as json
213
+ if six.PY2:
214
+ import sys
215
+ reload(sys)
216
+ sys.setdefaultencoding("utf-8")
217
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
218
+
219
+ def __repr__(self):
220
+ """For `print`"""
221
+ return self.to_str()
222
+
223
+ def __eq__(self, other):
224
+ """Returns true if both objects are equal"""
225
+ if not isinstance(other, RebuildDesktopPoolResponse):
226
+ return False
227
+
228
+ return self.__dict__ == other.__dict__
229
+
230
+ def __ne__(self, other):
231
+ """Returns true if both objects are not equal"""
232
+ return not self == other