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,145 @@
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 ListDesktopPoolAuthorizedObjectsResponse(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
+ 'objects': 'list[AuthorizedObjects]',
22
+ 'total_count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'objects': 'objects',
27
+ 'total_count': 'total_count'
28
+ }
29
+
30
+ def __init__(self, objects=None, total_count=None):
31
+ """ListDesktopPoolAuthorizedObjectsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param objects: 授权对象
36
+ :type objects: list[:class:`huaweicloudsdkworkspace.v2.AuthorizedObjects`]
37
+ :param total_count: 满足条件的用户、用户组总数
38
+ :type total_count: int
39
+ """
40
+
41
+ super(ListDesktopPoolAuthorizedObjectsResponse, self).__init__()
42
+
43
+ self._objects = None
44
+ self._total_count = None
45
+ self.discriminator = None
46
+
47
+ if objects is not None:
48
+ self.objects = objects
49
+ if total_count is not None:
50
+ self.total_count = total_count
51
+
52
+ @property
53
+ def objects(self):
54
+ """Gets the objects of this ListDesktopPoolAuthorizedObjectsResponse.
55
+
56
+ 授权对象
57
+
58
+ :return: The objects of this ListDesktopPoolAuthorizedObjectsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkworkspace.v2.AuthorizedObjects`]
60
+ """
61
+ return self._objects
62
+
63
+ @objects.setter
64
+ def objects(self, objects):
65
+ """Sets the objects of this ListDesktopPoolAuthorizedObjectsResponse.
66
+
67
+ 授权对象
68
+
69
+ :param objects: The objects of this ListDesktopPoolAuthorizedObjectsResponse.
70
+ :type objects: list[:class:`huaweicloudsdkworkspace.v2.AuthorizedObjects`]
71
+ """
72
+ self._objects = objects
73
+
74
+ @property
75
+ def total_count(self):
76
+ """Gets the total_count of this ListDesktopPoolAuthorizedObjectsResponse.
77
+
78
+ 满足条件的用户、用户组总数
79
+
80
+ :return: The total_count of this ListDesktopPoolAuthorizedObjectsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total_count
84
+
85
+ @total_count.setter
86
+ def total_count(self, total_count):
87
+ """Sets the total_count of this ListDesktopPoolAuthorizedObjectsResponse.
88
+
89
+ 满足条件的用户、用户组总数
90
+
91
+ :param total_count: The total_count of this ListDesktopPoolAuthorizedObjectsResponse.
92
+ :type total_count: int
93
+ """
94
+ self._total_count = total_count
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListDesktopPoolAuthorizedObjectsResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -0,0 +1,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListDesktopPoolsRequest:
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
+ 'enterprise_project_id': 'str',
23
+ 'offset': 'int',
24
+ 'limit': 'int',
25
+ 'in_maintenance_mode': 'bool'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'name': 'name',
30
+ 'type': 'type',
31
+ 'enterprise_project_id': 'enterprise_project_id',
32
+ 'offset': 'offset',
33
+ 'limit': 'limit',
34
+ 'in_maintenance_mode': 'in_maintenance_mode'
35
+ }
36
+
37
+ def __init__(self, name=None, type=None, enterprise_project_id=None, offset=None, limit=None, in_maintenance_mode=None):
38
+ """ListDesktopPoolsRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param name: 桌面池名称。
43
+ :type name: str
44
+ :param type: 桌面池类型,DYNAMIC:动态池,STATIC:静态池。
45
+ :type type: str
46
+ :param enterprise_project_id: 企业项目ID
47
+ :type enterprise_project_id: str
48
+ :param offset: 用于分页查询,查询的起始记录序号,从0开始。
49
+ :type offset: int
50
+ :param limit: 用于分页查询,取值范围0-1000,默认值1000。
51
+ :type limit: int
52
+ :param in_maintenance_mode: 按照维护状态过滤
53
+ :type in_maintenance_mode: bool
54
+ """
55
+
56
+
57
+
58
+ self._name = None
59
+ self._type = None
60
+ self._enterprise_project_id = None
61
+ self._offset = None
62
+ self._limit = None
63
+ self._in_maintenance_mode = None
64
+ self.discriminator = None
65
+
66
+ if name is not None:
67
+ self.name = name
68
+ if type is not None:
69
+ self.type = type
70
+ if enterprise_project_id is not None:
71
+ self.enterprise_project_id = enterprise_project_id
72
+ if offset is not None:
73
+ self.offset = offset
74
+ if limit is not None:
75
+ self.limit = limit
76
+ if in_maintenance_mode is not None:
77
+ self.in_maintenance_mode = in_maintenance_mode
78
+
79
+ @property
80
+ def name(self):
81
+ """Gets the name of this ListDesktopPoolsRequest.
82
+
83
+ 桌面池名称。
84
+
85
+ :return: The name of this ListDesktopPoolsRequest.
86
+ :rtype: str
87
+ """
88
+ return self._name
89
+
90
+ @name.setter
91
+ def name(self, name):
92
+ """Sets the name of this ListDesktopPoolsRequest.
93
+
94
+ 桌面池名称。
95
+
96
+ :param name: The name of this ListDesktopPoolsRequest.
97
+ :type name: str
98
+ """
99
+ self._name = name
100
+
101
+ @property
102
+ def type(self):
103
+ """Gets the type of this ListDesktopPoolsRequest.
104
+
105
+ 桌面池类型,DYNAMIC:动态池,STATIC:静态池。
106
+
107
+ :return: The type of this ListDesktopPoolsRequest.
108
+ :rtype: str
109
+ """
110
+ return self._type
111
+
112
+ @type.setter
113
+ def type(self, type):
114
+ """Sets the type of this ListDesktopPoolsRequest.
115
+
116
+ 桌面池类型,DYNAMIC:动态池,STATIC:静态池。
117
+
118
+ :param type: The type of this ListDesktopPoolsRequest.
119
+ :type type: str
120
+ """
121
+ self._type = type
122
+
123
+ @property
124
+ def enterprise_project_id(self):
125
+ """Gets the enterprise_project_id of this ListDesktopPoolsRequest.
126
+
127
+ 企业项目ID
128
+
129
+ :return: The enterprise_project_id of this ListDesktopPoolsRequest.
130
+ :rtype: str
131
+ """
132
+ return self._enterprise_project_id
133
+
134
+ @enterprise_project_id.setter
135
+ def enterprise_project_id(self, enterprise_project_id):
136
+ """Sets the enterprise_project_id of this ListDesktopPoolsRequest.
137
+
138
+ 企业项目ID
139
+
140
+ :param enterprise_project_id: The enterprise_project_id of this ListDesktopPoolsRequest.
141
+ :type enterprise_project_id: str
142
+ """
143
+ self._enterprise_project_id = enterprise_project_id
144
+
145
+ @property
146
+ def offset(self):
147
+ """Gets the offset of this ListDesktopPoolsRequest.
148
+
149
+ 用于分页查询,查询的起始记录序号,从0开始。
150
+
151
+ :return: The offset of this ListDesktopPoolsRequest.
152
+ :rtype: int
153
+ """
154
+ return self._offset
155
+
156
+ @offset.setter
157
+ def offset(self, offset):
158
+ """Sets the offset of this ListDesktopPoolsRequest.
159
+
160
+ 用于分页查询,查询的起始记录序号,从0开始。
161
+
162
+ :param offset: The offset of this ListDesktopPoolsRequest.
163
+ :type offset: int
164
+ """
165
+ self._offset = offset
166
+
167
+ @property
168
+ def limit(self):
169
+ """Gets the limit of this ListDesktopPoolsRequest.
170
+
171
+ 用于分页查询,取值范围0-1000,默认值1000。
172
+
173
+ :return: The limit of this ListDesktopPoolsRequest.
174
+ :rtype: int
175
+ """
176
+ return self._limit
177
+
178
+ @limit.setter
179
+ def limit(self, limit):
180
+ """Sets the limit of this ListDesktopPoolsRequest.
181
+
182
+ 用于分页查询,取值范围0-1000,默认值1000。
183
+
184
+ :param limit: The limit of this ListDesktopPoolsRequest.
185
+ :type limit: int
186
+ """
187
+ self._limit = limit
188
+
189
+ @property
190
+ def in_maintenance_mode(self):
191
+ """Gets the in_maintenance_mode of this ListDesktopPoolsRequest.
192
+
193
+ 按照维护状态过滤
194
+
195
+ :return: The in_maintenance_mode of this ListDesktopPoolsRequest.
196
+ :rtype: bool
197
+ """
198
+ return self._in_maintenance_mode
199
+
200
+ @in_maintenance_mode.setter
201
+ def in_maintenance_mode(self, in_maintenance_mode):
202
+ """Sets the in_maintenance_mode of this ListDesktopPoolsRequest.
203
+
204
+ 按照维护状态过滤
205
+
206
+ :param in_maintenance_mode: The in_maintenance_mode of this ListDesktopPoolsRequest.
207
+ :type in_maintenance_mode: bool
208
+ """
209
+ self._in_maintenance_mode = in_maintenance_mode
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, ListDesktopPoolsRequest):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ return not self == other
@@ -0,0 +1,145 @@
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 ListDesktopPoolsResponse(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
+ 'total_count': 'int',
22
+ 'desktop_pools': 'list[SimpleDesktopPoolInfo]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'total_count': 'total_count',
27
+ 'desktop_pools': 'desktop_pools'
28
+ }
29
+
30
+ def __init__(self, total_count=None, desktop_pools=None):
31
+ """ListDesktopPoolsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param total_count: 总数。
36
+ :type total_count: int
37
+ :param desktop_pools: 桌面池信息。
38
+ :type desktop_pools: list[:class:`huaweicloudsdkworkspace.v2.SimpleDesktopPoolInfo`]
39
+ """
40
+
41
+ super(ListDesktopPoolsResponse, self).__init__()
42
+
43
+ self._total_count = None
44
+ self._desktop_pools = None
45
+ self.discriminator = None
46
+
47
+ if total_count is not None:
48
+ self.total_count = total_count
49
+ if desktop_pools is not None:
50
+ self.desktop_pools = desktop_pools
51
+
52
+ @property
53
+ def total_count(self):
54
+ """Gets the total_count of this ListDesktopPoolsResponse.
55
+
56
+ 总数。
57
+
58
+ :return: The total_count of this ListDesktopPoolsResponse.
59
+ :rtype: int
60
+ """
61
+ return self._total_count
62
+
63
+ @total_count.setter
64
+ def total_count(self, total_count):
65
+ """Sets the total_count of this ListDesktopPoolsResponse.
66
+
67
+ 总数。
68
+
69
+ :param total_count: The total_count of this ListDesktopPoolsResponse.
70
+ :type total_count: int
71
+ """
72
+ self._total_count = total_count
73
+
74
+ @property
75
+ def desktop_pools(self):
76
+ """Gets the desktop_pools of this ListDesktopPoolsResponse.
77
+
78
+ 桌面池信息。
79
+
80
+ :return: The desktop_pools of this ListDesktopPoolsResponse.
81
+ :rtype: list[:class:`huaweicloudsdkworkspace.v2.SimpleDesktopPoolInfo`]
82
+ """
83
+ return self._desktop_pools
84
+
85
+ @desktop_pools.setter
86
+ def desktop_pools(self, desktop_pools):
87
+ """Sets the desktop_pools of this ListDesktopPoolsResponse.
88
+
89
+ 桌面池信息。
90
+
91
+ :param desktop_pools: The desktop_pools of this ListDesktopPoolsResponse.
92
+ :type desktop_pools: list[:class:`huaweicloudsdkworkspace.v2.SimpleDesktopPoolInfo`]
93
+ """
94
+ self._desktop_pools = desktop_pools
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListDesktopPoolsResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other