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,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ResizeDesktopExtendParam:
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
+ 'is_auto_pay': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'is_auto_pay': 'is_auto_pay'
25
+ }
26
+
27
+ def __init__(self, is_auto_pay=None):
28
+ """ResizeDesktopExtendParam
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param is_auto_pay: 是否自动付款,下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。默认为false。
33
+ :type is_auto_pay: str
34
+ """
35
+
36
+
37
+
38
+ self._is_auto_pay = None
39
+ self.discriminator = None
40
+
41
+ if is_auto_pay is not None:
42
+ self.is_auto_pay = is_auto_pay
43
+
44
+ @property
45
+ def is_auto_pay(self):
46
+ """Gets the is_auto_pay of this ResizeDesktopExtendParam.
47
+
48
+ 是否自动付款,下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。默认为false。
49
+
50
+ :return: The is_auto_pay of this ResizeDesktopExtendParam.
51
+ :rtype: str
52
+ """
53
+ return self._is_auto_pay
54
+
55
+ @is_auto_pay.setter
56
+ def is_auto_pay(self, is_auto_pay):
57
+ """Sets the is_auto_pay of this ResizeDesktopExtendParam.
58
+
59
+ 是否自动付款,下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。默认为false。
60
+
61
+ :param is_auto_pay: The is_auto_pay of this ResizeDesktopExtendParam.
62
+ :type is_auto_pay: str
63
+ """
64
+ self._is_auto_pay = is_auto_pay
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, ResizeDesktopExtendParam):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ResizeDesktopPoolJobResponse:
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
+ 'desktop_id': 'str',
21
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'desktop_id': 'desktop_id',
26
+ 'job_id': 'job_id'
27
+ }
28
+
29
+ def __init__(self, desktop_id=None, job_id=None):
30
+ """ResizeDesktopPoolJobResponse
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param desktop_id: 桌面ID。
35
+ :type desktop_id: str
36
+ :param job_id: 任务ID。
37
+ :type job_id: str
38
+ """
39
+
40
+
41
+
42
+ self._desktop_id = None
43
+ self._job_id = None
44
+ self.discriminator = None
45
+
46
+ if desktop_id is not None:
47
+ self.desktop_id = desktop_id
48
+ if job_id is not None:
49
+ self.job_id = job_id
50
+
51
+ @property
52
+ def desktop_id(self):
53
+ """Gets the desktop_id of this ResizeDesktopPoolJobResponse.
54
+
55
+ 桌面ID。
56
+
57
+ :return: The desktop_id of this ResizeDesktopPoolJobResponse.
58
+ :rtype: str
59
+ """
60
+ return self._desktop_id
61
+
62
+ @desktop_id.setter
63
+ def desktop_id(self, desktop_id):
64
+ """Sets the desktop_id of this ResizeDesktopPoolJobResponse.
65
+
66
+ 桌面ID。
67
+
68
+ :param desktop_id: The desktop_id of this ResizeDesktopPoolJobResponse.
69
+ :type desktop_id: str
70
+ """
71
+ self._desktop_id = desktop_id
72
+
73
+ @property
74
+ def job_id(self):
75
+ """Gets the job_id of this ResizeDesktopPoolJobResponse.
76
+
77
+ 任务ID。
78
+
79
+ :return: The job_id of this ResizeDesktopPoolJobResponse.
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 ResizeDesktopPoolJobResponse.
87
+
88
+ 任务ID。
89
+
90
+ :param job_id: The job_id of this ResizeDesktopPoolJobResponse.
91
+ :type job_id: str
92
+ """
93
+ self._job_id = job_id
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, ResizeDesktopPoolJobResponse):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,197 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ResizeDesktopPoolReq:
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
+ 'product_id': 'str',
21
+ 'order_id': 'str',
22
+ 'mode': 'str',
23
+ 'extend_param': 'ResizeDesktopExtendParam'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'product_id': 'product_id',
28
+ 'order_id': 'order_id',
29
+ 'mode': 'mode',
30
+ 'extend_param': 'extend_param'
31
+ }
32
+
33
+ def __init__(self, product_id=None, order_id=None, mode=None, extend_param=None):
34
+ """ResizeDesktopPoolReq
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param product_id: 目标规格产品ID。
39
+ :type product_id: str
40
+ :param order_id: 订单ID,包周期变更规格时使用。
41
+ :type order_id: str
42
+ :param mode: 是否支持开机状态下执行变更规格操作。固定传值STOP_DESKTOP,如果桌面处于开机状态,会先关机再变更规格。
43
+ :type mode: str
44
+ :param extend_param:
45
+ :type extend_param: :class:`huaweicloudsdkworkspace.v2.ResizeDesktopExtendParam`
46
+ """
47
+
48
+
49
+
50
+ self._product_id = None
51
+ self._order_id = None
52
+ self._mode = None
53
+ self._extend_param = None
54
+ self.discriminator = None
55
+
56
+ self.product_id = product_id
57
+ if order_id is not None:
58
+ self.order_id = order_id
59
+ if mode is not None:
60
+ self.mode = mode
61
+ if extend_param is not None:
62
+ self.extend_param = extend_param
63
+
64
+ @property
65
+ def product_id(self):
66
+ """Gets the product_id of this ResizeDesktopPoolReq.
67
+
68
+ 目标规格产品ID。
69
+
70
+ :return: The product_id of this ResizeDesktopPoolReq.
71
+ :rtype: str
72
+ """
73
+ return self._product_id
74
+
75
+ @product_id.setter
76
+ def product_id(self, product_id):
77
+ """Sets the product_id of this ResizeDesktopPoolReq.
78
+
79
+ 目标规格产品ID。
80
+
81
+ :param product_id: The product_id of this ResizeDesktopPoolReq.
82
+ :type product_id: str
83
+ """
84
+ self._product_id = product_id
85
+
86
+ @property
87
+ def order_id(self):
88
+ """Gets the order_id of this ResizeDesktopPoolReq.
89
+
90
+ 订单ID,包周期变更规格时使用。
91
+
92
+ :return: The order_id of this ResizeDesktopPoolReq.
93
+ :rtype: str
94
+ """
95
+ return self._order_id
96
+
97
+ @order_id.setter
98
+ def order_id(self, order_id):
99
+ """Sets the order_id of this ResizeDesktopPoolReq.
100
+
101
+ 订单ID,包周期变更规格时使用。
102
+
103
+ :param order_id: The order_id of this ResizeDesktopPoolReq.
104
+ :type order_id: str
105
+ """
106
+ self._order_id = order_id
107
+
108
+ @property
109
+ def mode(self):
110
+ """Gets the mode of this ResizeDesktopPoolReq.
111
+
112
+ 是否支持开机状态下执行变更规格操作。固定传值STOP_DESKTOP,如果桌面处于开机状态,会先关机再变更规格。
113
+
114
+ :return: The mode of this ResizeDesktopPoolReq.
115
+ :rtype: str
116
+ """
117
+ return self._mode
118
+
119
+ @mode.setter
120
+ def mode(self, mode):
121
+ """Sets the mode of this ResizeDesktopPoolReq.
122
+
123
+ 是否支持开机状态下执行变更规格操作。固定传值STOP_DESKTOP,如果桌面处于开机状态,会先关机再变更规格。
124
+
125
+ :param mode: The mode of this ResizeDesktopPoolReq.
126
+ :type mode: str
127
+ """
128
+ self._mode = mode
129
+
130
+ @property
131
+ def extend_param(self):
132
+ """Gets the extend_param of this ResizeDesktopPoolReq.
133
+
134
+ :return: The extend_param of this ResizeDesktopPoolReq.
135
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ResizeDesktopExtendParam`
136
+ """
137
+ return self._extend_param
138
+
139
+ @extend_param.setter
140
+ def extend_param(self, extend_param):
141
+ """Sets the extend_param of this ResizeDesktopPoolReq.
142
+
143
+ :param extend_param: The extend_param of this ResizeDesktopPoolReq.
144
+ :type extend_param: :class:`huaweicloudsdkworkspace.v2.ResizeDesktopExtendParam`
145
+ """
146
+ self._extend_param = extend_param
147
+
148
+ def to_dict(self):
149
+ """Returns the model properties as a dict"""
150
+ result = {}
151
+
152
+ for attr, _ in six.iteritems(self.openapi_types):
153
+ value = getattr(self, attr)
154
+ if isinstance(value, list):
155
+ result[attr] = list(map(
156
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
157
+ value
158
+ ))
159
+ elif hasattr(value, "to_dict"):
160
+ result[attr] = value.to_dict()
161
+ elif isinstance(value, dict):
162
+ result[attr] = dict(map(
163
+ lambda item: (item[0], item[1].to_dict())
164
+ if hasattr(item[1], "to_dict") else item,
165
+ value.items()
166
+ ))
167
+ else:
168
+ if attr in self.sensitive_list:
169
+ result[attr] = "****"
170
+ else:
171
+ result[attr] = value
172
+
173
+ return result
174
+
175
+ def to_str(self):
176
+ """Returns the string representation of the model"""
177
+ import simplejson as json
178
+ if six.PY2:
179
+ import sys
180
+ reload(sys)
181
+ sys.setdefaultencoding("utf-8")
182
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
183
+
184
+ def __repr__(self):
185
+ """For `print`"""
186
+ return self.to_str()
187
+
188
+ def __eq__(self, other):
189
+ """Returns true if both objects are equal"""
190
+ if not isinstance(other, ResizeDesktopPoolReq):
191
+ return False
192
+
193
+ return self.__dict__ == other.__dict__
194
+
195
+ def __ne__(self, other):
196
+ """Returns true if both objects are not equal"""
197
+ 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 ResizeDesktopPoolRequest:
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': 'ResizeDesktopPoolReq'
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
+ """ResizeDesktopPoolRequest
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 ResizeDesktopPoolRequest
41
+ :type body: :class:`huaweicloudsdkworkspace.v2.ResizeDesktopPoolReq`
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 ResizeDesktopPoolRequest.
60
+
61
+ CBC接口回调时,请求头里带上的业务ID
62
+
63
+ :return: The service_transaction_id of this ResizeDesktopPoolRequest.
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 ResizeDesktopPoolRequest.
71
+
72
+ CBC接口回调时,请求头里带上的业务ID
73
+
74
+ :param service_transaction_id: The service_transaction_id of this ResizeDesktopPoolRequest.
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 ResizeDesktopPoolRequest.
82
+
83
+ 桌面池ID。
84
+
85
+ :return: The pool_id of this ResizeDesktopPoolRequest.
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 ResizeDesktopPoolRequest.
93
+
94
+ 桌面池ID。
95
+
96
+ :param pool_id: The pool_id of this ResizeDesktopPoolRequest.
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 ResizeDesktopPoolRequest.
104
+
105
+ :return: The body of this ResizeDesktopPoolRequest.
106
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ResizeDesktopPoolReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this ResizeDesktopPoolRequest.
113
+
114
+ :param body: The body of this ResizeDesktopPoolRequest.
115
+ :type body: :class:`huaweicloudsdkworkspace.v2.ResizeDesktopPoolReq`
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, ResizeDesktopPoolRequest):
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