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,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ExpandDesktopPoolVolumesRequest:
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': 'ExpandDesktopPoolVolumesReq'
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
+ """ExpandDesktopPoolVolumesRequest
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 ExpandDesktopPoolVolumesRequest
41
+ :type body: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolVolumesReq`
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 ExpandDesktopPoolVolumesRequest.
60
+
61
+ CBC接口回调时,请求头里带上的业务ID
62
+
63
+ :return: The service_transaction_id of this ExpandDesktopPoolVolumesRequest.
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 ExpandDesktopPoolVolumesRequest.
71
+
72
+ CBC接口回调时,请求头里带上的业务ID
73
+
74
+ :param service_transaction_id: The service_transaction_id of this ExpandDesktopPoolVolumesRequest.
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 ExpandDesktopPoolVolumesRequest.
82
+
83
+ 桌面池ID。
84
+
85
+ :return: The pool_id of this ExpandDesktopPoolVolumesRequest.
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 ExpandDesktopPoolVolumesRequest.
93
+
94
+ 桌面池ID。
95
+
96
+ :param pool_id: The pool_id of this ExpandDesktopPoolVolumesRequest.
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 ExpandDesktopPoolVolumesRequest.
104
+
105
+ :return: The body of this ExpandDesktopPoolVolumesRequest.
106
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolVolumesReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this ExpandDesktopPoolVolumesRequest.
113
+
114
+ :param body: The body of this ExpandDesktopPoolVolumesRequest.
115
+ :type body: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolVolumesReq`
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, ExpandDesktopPoolVolumesRequest):
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,319 @@
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 ExpandDesktopPoolVolumesResponse(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
+ 'error_code': 'str',
22
+ 'error_msg': 'str',
23
+ 'cbc_job_id': 'str',
24
+ 'get_job_endpoint': 'str',
25
+ 'max_provision_time': 'int',
26
+ 'min_provision_time': 'int',
27
+ 'periodic_query_time': 'int',
28
+ 'job_id': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'error_code': 'error_code',
33
+ 'error_msg': 'error_msg',
34
+ 'cbc_job_id': 'cbcJobId',
35
+ 'get_job_endpoint': 'getJobEndpoint',
36
+ 'max_provision_time': 'maxProvisionTime',
37
+ 'min_provision_time': 'minProvisionTime',
38
+ 'periodic_query_time': 'periodicQueryTime',
39
+ 'job_id': 'job_id'
40
+ }
41
+
42
+ 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, job_id=None):
43
+ """ExpandDesktopPoolVolumesResponse
44
+
45
+ The model defined in huaweicloud sdk
46
+
47
+ :param error_code: 错误码,失败时返回。
48
+ :type error_code: str
49
+ :param error_msg: 错误描述。
50
+ :type error_msg: str
51
+ :param cbc_job_id: 创建云桌面总任务ID,CBC根据此ID定期查询任务是否成功
52
+ :type cbc_job_id: str
53
+ :param get_job_endpoint: 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果
54
+ :type get_job_endpoint: str
55
+ :param max_provision_time: 在线开通最大时间 在maxProvisionTime时间范围内,CBC会周期性的查询云服务开通结果;超过maxProvisionTime还没有开通成功,CBC会发失败工单,人工去分析处理。 单位:分钟。 如果为空,CBC默认为6小时。 取值范围(0,43200],即30天。
56
+ :type max_provision_time: int
57
+ :param min_provision_time: 开通最小时间(云服务最快开通时长,或一般开通时长) 获取到JobId后,经过minProvisionTime时间后,才来查询获取云服务开通结果。如果为空,云运营平台获取到JobId后,就去查询云服务开通结果。 单位:分钟。 取值范围:(0, 43200)
58
+ :type min_provision_time: int
59
+ :param periodic_query_time: Job周期性查询时间,默认2分钟查询一次 云运营平台会使用getJobEndpoint(Job查询接口)、每隔periodicQueryTime时间去查询云服务开通结果。 单位:分钟。 如果为空,则使用CBC默认的间隔时间(1分钟,2分钟,4分钟……15分钟)来查询云服务开通结果。 取值范围:(0, 43200)
60
+ :type periodic_query_time: int
61
+ :param job_id: 任务ID
62
+ :type job_id: str
63
+ """
64
+
65
+ super(ExpandDesktopPoolVolumesResponse, self).__init__()
66
+
67
+ self._error_code = None
68
+ self._error_msg = None
69
+ self._cbc_job_id = None
70
+ self._get_job_endpoint = None
71
+ self._max_provision_time = None
72
+ self._min_provision_time = None
73
+ self._periodic_query_time = None
74
+ self._job_id = None
75
+ self.discriminator = None
76
+
77
+ if error_code is not None:
78
+ self.error_code = error_code
79
+ if error_msg is not None:
80
+ self.error_msg = error_msg
81
+ if cbc_job_id is not None:
82
+ self.cbc_job_id = cbc_job_id
83
+ if get_job_endpoint is not None:
84
+ self.get_job_endpoint = get_job_endpoint
85
+ if max_provision_time is not None:
86
+ self.max_provision_time = max_provision_time
87
+ if min_provision_time is not None:
88
+ self.min_provision_time = min_provision_time
89
+ if periodic_query_time is not None:
90
+ self.periodic_query_time = periodic_query_time
91
+ if job_id is not None:
92
+ self.job_id = job_id
93
+
94
+ @property
95
+ def error_code(self):
96
+ """Gets the error_code of this ExpandDesktopPoolVolumesResponse.
97
+
98
+ 错误码,失败时返回。
99
+
100
+ :return: The error_code of this ExpandDesktopPoolVolumesResponse.
101
+ :rtype: str
102
+ """
103
+ return self._error_code
104
+
105
+ @error_code.setter
106
+ def error_code(self, error_code):
107
+ """Sets the error_code of this ExpandDesktopPoolVolumesResponse.
108
+
109
+ 错误码,失败时返回。
110
+
111
+ :param error_code: The error_code of this ExpandDesktopPoolVolumesResponse.
112
+ :type error_code: str
113
+ """
114
+ self._error_code = error_code
115
+
116
+ @property
117
+ def error_msg(self):
118
+ """Gets the error_msg of this ExpandDesktopPoolVolumesResponse.
119
+
120
+ 错误描述。
121
+
122
+ :return: The error_msg of this ExpandDesktopPoolVolumesResponse.
123
+ :rtype: str
124
+ """
125
+ return self._error_msg
126
+
127
+ @error_msg.setter
128
+ def error_msg(self, error_msg):
129
+ """Sets the error_msg of this ExpandDesktopPoolVolumesResponse.
130
+
131
+ 错误描述。
132
+
133
+ :param error_msg: The error_msg of this ExpandDesktopPoolVolumesResponse.
134
+ :type error_msg: str
135
+ """
136
+ self._error_msg = error_msg
137
+
138
+ @property
139
+ def cbc_job_id(self):
140
+ """Gets the cbc_job_id of this ExpandDesktopPoolVolumesResponse.
141
+
142
+ 创建云桌面总任务ID,CBC根据此ID定期查询任务是否成功
143
+
144
+ :return: The cbc_job_id of this ExpandDesktopPoolVolumesResponse.
145
+ :rtype: str
146
+ """
147
+ return self._cbc_job_id
148
+
149
+ @cbc_job_id.setter
150
+ def cbc_job_id(self, cbc_job_id):
151
+ """Sets the cbc_job_id of this ExpandDesktopPoolVolumesResponse.
152
+
153
+ 创建云桌面总任务ID,CBC根据此ID定期查询任务是否成功
154
+
155
+ :param cbc_job_id: The cbc_job_id of this ExpandDesktopPoolVolumesResponse.
156
+ :type cbc_job_id: str
157
+ """
158
+ self._cbc_job_id = cbc_job_id
159
+
160
+ @property
161
+ def get_job_endpoint(self):
162
+ """Gets the get_job_endpoint of this ExpandDesktopPoolVolumesResponse.
163
+
164
+ 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果
165
+
166
+ :return: The get_job_endpoint of this ExpandDesktopPoolVolumesResponse.
167
+ :rtype: str
168
+ """
169
+ return self._get_job_endpoint
170
+
171
+ @get_job_endpoint.setter
172
+ def get_job_endpoint(self, get_job_endpoint):
173
+ """Sets the get_job_endpoint of this ExpandDesktopPoolVolumesResponse.
174
+
175
+ 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果
176
+
177
+ :param get_job_endpoint: The get_job_endpoint of this ExpandDesktopPoolVolumesResponse.
178
+ :type get_job_endpoint: str
179
+ """
180
+ self._get_job_endpoint = get_job_endpoint
181
+
182
+ @property
183
+ def max_provision_time(self):
184
+ """Gets the max_provision_time of this ExpandDesktopPoolVolumesResponse.
185
+
186
+ 在线开通最大时间 在maxProvisionTime时间范围内,CBC会周期性的查询云服务开通结果;超过maxProvisionTime还没有开通成功,CBC会发失败工单,人工去分析处理。 单位:分钟。 如果为空,CBC默认为6小时。 取值范围(0,43200],即30天。
187
+
188
+ :return: The max_provision_time of this ExpandDesktopPoolVolumesResponse.
189
+ :rtype: int
190
+ """
191
+ return self._max_provision_time
192
+
193
+ @max_provision_time.setter
194
+ def max_provision_time(self, max_provision_time):
195
+ """Sets the max_provision_time of this ExpandDesktopPoolVolumesResponse.
196
+
197
+ 在线开通最大时间 在maxProvisionTime时间范围内,CBC会周期性的查询云服务开通结果;超过maxProvisionTime还没有开通成功,CBC会发失败工单,人工去分析处理。 单位:分钟。 如果为空,CBC默认为6小时。 取值范围(0,43200],即30天。
198
+
199
+ :param max_provision_time: The max_provision_time of this ExpandDesktopPoolVolumesResponse.
200
+ :type max_provision_time: int
201
+ """
202
+ self._max_provision_time = max_provision_time
203
+
204
+ @property
205
+ def min_provision_time(self):
206
+ """Gets the min_provision_time of this ExpandDesktopPoolVolumesResponse.
207
+
208
+ 开通最小时间(云服务最快开通时长,或一般开通时长) 获取到JobId后,经过minProvisionTime时间后,才来查询获取云服务开通结果。如果为空,云运营平台获取到JobId后,就去查询云服务开通结果。 单位:分钟。 取值范围:(0, 43200)
209
+
210
+ :return: The min_provision_time of this ExpandDesktopPoolVolumesResponse.
211
+ :rtype: int
212
+ """
213
+ return self._min_provision_time
214
+
215
+ @min_provision_time.setter
216
+ def min_provision_time(self, min_provision_time):
217
+ """Sets the min_provision_time of this ExpandDesktopPoolVolumesResponse.
218
+
219
+ 开通最小时间(云服务最快开通时长,或一般开通时长) 获取到JobId后,经过minProvisionTime时间后,才来查询获取云服务开通结果。如果为空,云运营平台获取到JobId后,就去查询云服务开通结果。 单位:分钟。 取值范围:(0, 43200)
220
+
221
+ :param min_provision_time: The min_provision_time of this ExpandDesktopPoolVolumesResponse.
222
+ :type min_provision_time: int
223
+ """
224
+ self._min_provision_time = min_provision_time
225
+
226
+ @property
227
+ def periodic_query_time(self):
228
+ """Gets the periodic_query_time of this ExpandDesktopPoolVolumesResponse.
229
+
230
+ Job周期性查询时间,默认2分钟查询一次 云运营平台会使用getJobEndpoint(Job查询接口)、每隔periodicQueryTime时间去查询云服务开通结果。 单位:分钟。 如果为空,则使用CBC默认的间隔时间(1分钟,2分钟,4分钟……15分钟)来查询云服务开通结果。 取值范围:(0, 43200)
231
+
232
+ :return: The periodic_query_time of this ExpandDesktopPoolVolumesResponse.
233
+ :rtype: int
234
+ """
235
+ return self._periodic_query_time
236
+
237
+ @periodic_query_time.setter
238
+ def periodic_query_time(self, periodic_query_time):
239
+ """Sets the periodic_query_time of this ExpandDesktopPoolVolumesResponse.
240
+
241
+ Job周期性查询时间,默认2分钟查询一次 云运营平台会使用getJobEndpoint(Job查询接口)、每隔periodicQueryTime时间去查询云服务开通结果。 单位:分钟。 如果为空,则使用CBC默认的间隔时间(1分钟,2分钟,4分钟……15分钟)来查询云服务开通结果。 取值范围:(0, 43200)
242
+
243
+ :param periodic_query_time: The periodic_query_time of this ExpandDesktopPoolVolumesResponse.
244
+ :type periodic_query_time: int
245
+ """
246
+ self._periodic_query_time = periodic_query_time
247
+
248
+ @property
249
+ def job_id(self):
250
+ """Gets the job_id of this ExpandDesktopPoolVolumesResponse.
251
+
252
+ 任务ID
253
+
254
+ :return: The job_id of this ExpandDesktopPoolVolumesResponse.
255
+ :rtype: str
256
+ """
257
+ return self._job_id
258
+
259
+ @job_id.setter
260
+ def job_id(self, job_id):
261
+ """Sets the job_id of this ExpandDesktopPoolVolumesResponse.
262
+
263
+ 任务ID
264
+
265
+ :param job_id: The job_id of this ExpandDesktopPoolVolumesResponse.
266
+ :type job_id: str
267
+ """
268
+ self._job_id = job_id
269
+
270
+ def to_dict(self):
271
+ """Returns the model properties as a dict"""
272
+ result = {}
273
+
274
+ for attr, _ in six.iteritems(self.openapi_types):
275
+ value = getattr(self, attr)
276
+ if isinstance(value, list):
277
+ result[attr] = list(map(
278
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
279
+ value
280
+ ))
281
+ elif hasattr(value, "to_dict"):
282
+ result[attr] = value.to_dict()
283
+ elif isinstance(value, dict):
284
+ result[attr] = dict(map(
285
+ lambda item: (item[0], item[1].to_dict())
286
+ if hasattr(item[1], "to_dict") else item,
287
+ value.items()
288
+ ))
289
+ else:
290
+ if attr in self.sensitive_list:
291
+ result[attr] = "****"
292
+ else:
293
+ result[attr] = value
294
+
295
+ return result
296
+
297
+ def to_str(self):
298
+ """Returns the string representation of the model"""
299
+ import simplejson as json
300
+ if six.PY2:
301
+ import sys
302
+ reload(sys)
303
+ sys.setdefaultencoding("utf-8")
304
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
305
+
306
+ def __repr__(self):
307
+ """For `print`"""
308
+ return self.to_str()
309
+
310
+ def __eq__(self, other):
311
+ """Returns true if both objects are equal"""
312
+ if not isinstance(other, ExpandDesktopPoolVolumesResponse):
313
+ return False
314
+
315
+ return self.__dict__ == other.__dict__
316
+
317
+ def __ne__(self, other):
318
+ """Returns true if both objects are not equal"""
319
+ return not self == other
@@ -0,0 +1,172 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListDesktopPoolAuthorizedObjectsRequest:
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
+ 'offset': 'int',
22
+ 'limit': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'pool_id': 'pool_id',
27
+ 'offset': 'offset',
28
+ 'limit': 'limit'
29
+ }
30
+
31
+ def __init__(self, pool_id=None, offset=None, limit=None):
32
+ """ListDesktopPoolAuthorizedObjectsRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param pool_id: 桌面池ID。
37
+ :type pool_id: str
38
+ :param offset: 用于分页查询,查询的起始记录序号,从0开始
39
+ :type offset: int
40
+ :param limit: 用于分页查询,返回桌面数量限制。取值范围0-100,默认值是10
41
+ :type limit: int
42
+ """
43
+
44
+
45
+
46
+ self._pool_id = None
47
+ self._offset = None
48
+ self._limit = None
49
+ self.discriminator = None
50
+
51
+ self.pool_id = pool_id
52
+ if offset is not None:
53
+ self.offset = offset
54
+ if limit is not None:
55
+ self.limit = limit
56
+
57
+ @property
58
+ def pool_id(self):
59
+ """Gets the pool_id of this ListDesktopPoolAuthorizedObjectsRequest.
60
+
61
+ 桌面池ID。
62
+
63
+ :return: The pool_id of this ListDesktopPoolAuthorizedObjectsRequest.
64
+ :rtype: str
65
+ """
66
+ return self._pool_id
67
+
68
+ @pool_id.setter
69
+ def pool_id(self, pool_id):
70
+ """Sets the pool_id of this ListDesktopPoolAuthorizedObjectsRequest.
71
+
72
+ 桌面池ID。
73
+
74
+ :param pool_id: The pool_id of this ListDesktopPoolAuthorizedObjectsRequest.
75
+ :type pool_id: str
76
+ """
77
+ self._pool_id = pool_id
78
+
79
+ @property
80
+ def offset(self):
81
+ """Gets the offset of this ListDesktopPoolAuthorizedObjectsRequest.
82
+
83
+ 用于分页查询,查询的起始记录序号,从0开始
84
+
85
+ :return: The offset of this ListDesktopPoolAuthorizedObjectsRequest.
86
+ :rtype: int
87
+ """
88
+ return self._offset
89
+
90
+ @offset.setter
91
+ def offset(self, offset):
92
+ """Sets the offset of this ListDesktopPoolAuthorizedObjectsRequest.
93
+
94
+ 用于分页查询,查询的起始记录序号,从0开始
95
+
96
+ :param offset: The offset of this ListDesktopPoolAuthorizedObjectsRequest.
97
+ :type offset: int
98
+ """
99
+ self._offset = offset
100
+
101
+ @property
102
+ def limit(self):
103
+ """Gets the limit of this ListDesktopPoolAuthorizedObjectsRequest.
104
+
105
+ 用于分页查询,返回桌面数量限制。取值范围0-100,默认值是10
106
+
107
+ :return: The limit of this ListDesktopPoolAuthorizedObjectsRequest.
108
+ :rtype: int
109
+ """
110
+ return self._limit
111
+
112
+ @limit.setter
113
+ def limit(self, limit):
114
+ """Sets the limit of this ListDesktopPoolAuthorizedObjectsRequest.
115
+
116
+ 用于分页查询,返回桌面数量限制。取值范围0-100,默认值是10
117
+
118
+ :param limit: The limit of this ListDesktopPoolAuthorizedObjectsRequest.
119
+ :type limit: int
120
+ """
121
+ self._limit = limit
122
+
123
+ def to_dict(self):
124
+ """Returns the model properties as a dict"""
125
+ result = {}
126
+
127
+ for attr, _ in six.iteritems(self.openapi_types):
128
+ value = getattr(self, attr)
129
+ if isinstance(value, list):
130
+ result[attr] = list(map(
131
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
132
+ value
133
+ ))
134
+ elif hasattr(value, "to_dict"):
135
+ result[attr] = value.to_dict()
136
+ elif isinstance(value, dict):
137
+ result[attr] = dict(map(
138
+ lambda item: (item[0], item[1].to_dict())
139
+ if hasattr(item[1], "to_dict") else item,
140
+ value.items()
141
+ ))
142
+ else:
143
+ if attr in self.sensitive_list:
144
+ result[attr] = "****"
145
+ else:
146
+ result[attr] = value
147
+
148
+ return result
149
+
150
+ def to_str(self):
151
+ """Returns the string representation of the model"""
152
+ import simplejson as json
153
+ if six.PY2:
154
+ import sys
155
+ reload(sys)
156
+ sys.setdefaultencoding("utf-8")
157
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
158
+
159
+ def __repr__(self):
160
+ """For `print`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, ListDesktopPoolAuthorizedObjectsRequest):
166
+ return False
167
+
168
+ return self.__dict__ == other.__dict__
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ return not self == other