huaweicloudsdkworkspace 3.1.122__py2.py3-none-any.whl → 3.1.124__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of huaweicloudsdkworkspace might be problematic. Click here for more details.

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.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/METADATA +2 -2
  60. {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/RECORD +63 -9
  61. {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/WHEEL +1 -1
  62. {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/LICENSE +0 -0
  63. {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AutoscalePolicy:
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
+ 'autoscale_type': 'str',
21
+ 'max_auto_created': 'int',
22
+ 'min_idle': 'int',
23
+ 'once_auto_created': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'autoscale_type': 'autoscale_type',
28
+ 'max_auto_created': 'max_auto_created',
29
+ 'min_idle': 'min_idle',
30
+ 'once_auto_created': 'once_auto_created'
31
+ }
32
+
33
+ def __init__(self, autoscale_type=None, max_auto_created=None, min_idle=None, once_auto_created=None):
34
+ """AutoscalePolicy
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param autoscale_type: 弹性伸缩类型,ACCESS_CREATED:接入时创建,AUTO_CREATED:弹性伸缩。
39
+ :type autoscale_type: str
40
+ :param max_auto_created: 自动创建桌面上限
41
+ :type max_auto_created: int
42
+ :param min_idle: 空闲桌面低于多少时开始自动创建桌面
43
+ :type min_idle: int
44
+ :param once_auto_created: 一次自动创建桌面的数量
45
+ :type once_auto_created: int
46
+ """
47
+
48
+
49
+
50
+ self._autoscale_type = None
51
+ self._max_auto_created = None
52
+ self._min_idle = None
53
+ self._once_auto_created = None
54
+ self.discriminator = None
55
+
56
+ if autoscale_type is not None:
57
+ self.autoscale_type = autoscale_type
58
+ if max_auto_created is not None:
59
+ self.max_auto_created = max_auto_created
60
+ if min_idle is not None:
61
+ self.min_idle = min_idle
62
+ if once_auto_created is not None:
63
+ self.once_auto_created = once_auto_created
64
+
65
+ @property
66
+ def autoscale_type(self):
67
+ """Gets the autoscale_type of this AutoscalePolicy.
68
+
69
+ 弹性伸缩类型,ACCESS_CREATED:接入时创建,AUTO_CREATED:弹性伸缩。
70
+
71
+ :return: The autoscale_type of this AutoscalePolicy.
72
+ :rtype: str
73
+ """
74
+ return self._autoscale_type
75
+
76
+ @autoscale_type.setter
77
+ def autoscale_type(self, autoscale_type):
78
+ """Sets the autoscale_type of this AutoscalePolicy.
79
+
80
+ 弹性伸缩类型,ACCESS_CREATED:接入时创建,AUTO_CREATED:弹性伸缩。
81
+
82
+ :param autoscale_type: The autoscale_type of this AutoscalePolicy.
83
+ :type autoscale_type: str
84
+ """
85
+ self._autoscale_type = autoscale_type
86
+
87
+ @property
88
+ def max_auto_created(self):
89
+ """Gets the max_auto_created of this AutoscalePolicy.
90
+
91
+ 自动创建桌面上限
92
+
93
+ :return: The max_auto_created of this AutoscalePolicy.
94
+ :rtype: int
95
+ """
96
+ return self._max_auto_created
97
+
98
+ @max_auto_created.setter
99
+ def max_auto_created(self, max_auto_created):
100
+ """Sets the max_auto_created of this AutoscalePolicy.
101
+
102
+ 自动创建桌面上限
103
+
104
+ :param max_auto_created: The max_auto_created of this AutoscalePolicy.
105
+ :type max_auto_created: int
106
+ """
107
+ self._max_auto_created = max_auto_created
108
+
109
+ @property
110
+ def min_idle(self):
111
+ """Gets the min_idle of this AutoscalePolicy.
112
+
113
+ 空闲桌面低于多少时开始自动创建桌面
114
+
115
+ :return: The min_idle of this AutoscalePolicy.
116
+ :rtype: int
117
+ """
118
+ return self._min_idle
119
+
120
+ @min_idle.setter
121
+ def min_idle(self, min_idle):
122
+ """Sets the min_idle of this AutoscalePolicy.
123
+
124
+ 空闲桌面低于多少时开始自动创建桌面
125
+
126
+ :param min_idle: The min_idle of this AutoscalePolicy.
127
+ :type min_idle: int
128
+ """
129
+ self._min_idle = min_idle
130
+
131
+ @property
132
+ def once_auto_created(self):
133
+ """Gets the once_auto_created of this AutoscalePolicy.
134
+
135
+ 一次自动创建桌面的数量
136
+
137
+ :return: The once_auto_created of this AutoscalePolicy.
138
+ :rtype: int
139
+ """
140
+ return self._once_auto_created
141
+
142
+ @once_auto_created.setter
143
+ def once_auto_created(self, once_auto_created):
144
+ """Sets the once_auto_created of this AutoscalePolicy.
145
+
146
+ 一次自动创建桌面的数量
147
+
148
+ :param once_auto_created: The once_auto_created of this AutoscalePolicy.
149
+ :type once_auto_created: int
150
+ """
151
+ self._once_auto_created = once_auto_created
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, AutoscalePolicy):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ 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 BaseError:
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
+ 'error_code': 'str',
21
+ 'error_msg': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'error_code': 'error_code',
26
+ 'error_msg': 'error_msg'
27
+ }
28
+
29
+ def __init__(self, error_code=None, error_msg=None):
30
+ """BaseError
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param error_code: 错误码,失败时返回。
35
+ :type error_code: str
36
+ :param error_msg: 错误描述。
37
+ :type error_msg: str
38
+ """
39
+
40
+
41
+
42
+ self._error_code = None
43
+ self._error_msg = None
44
+ self.discriminator = None
45
+
46
+ if error_code is not None:
47
+ self.error_code = error_code
48
+ if error_msg is not None:
49
+ self.error_msg = error_msg
50
+
51
+ @property
52
+ def error_code(self):
53
+ """Gets the error_code of this BaseError.
54
+
55
+ 错误码,失败时返回。
56
+
57
+ :return: The error_code of this BaseError.
58
+ :rtype: str
59
+ """
60
+ return self._error_code
61
+
62
+ @error_code.setter
63
+ def error_code(self, error_code):
64
+ """Sets the error_code of this BaseError.
65
+
66
+ 错误码,失败时返回。
67
+
68
+ :param error_code: The error_code of this BaseError.
69
+ :type error_code: str
70
+ """
71
+ self._error_code = error_code
72
+
73
+ @property
74
+ def error_msg(self):
75
+ """Gets the error_msg of this BaseError.
76
+
77
+ 错误描述。
78
+
79
+ :return: The error_msg of this BaseError.
80
+ :rtype: str
81
+ """
82
+ return self._error_msg
83
+
84
+ @error_msg.setter
85
+ def error_msg(self, error_msg):
86
+ """Sets the error_msg of this BaseError.
87
+
88
+ 错误描述。
89
+
90
+ :param error_msg: The error_msg of this BaseError.
91
+ :type error_msg: str
92
+ """
93
+ self._error_msg = error_msg
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, BaseError):
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,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchDeleteUserReq:
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
+ 'user_ids': 'list[str]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'user_ids': 'user_ids'
25
+ }
26
+
27
+ def __init__(self, user_ids=None):
28
+ """BatchDeleteUserReq
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param user_ids: 桌面用户ID列表。
33
+ :type user_ids: list[str]
34
+ """
35
+
36
+
37
+
38
+ self._user_ids = None
39
+ self.discriminator = None
40
+
41
+ self.user_ids = user_ids
42
+
43
+ @property
44
+ def user_ids(self):
45
+ """Gets the user_ids of this BatchDeleteUserReq.
46
+
47
+ 桌面用户ID列表。
48
+
49
+ :return: The user_ids of this BatchDeleteUserReq.
50
+ :rtype: list[str]
51
+ """
52
+ return self._user_ids
53
+
54
+ @user_ids.setter
55
+ def user_ids(self, user_ids):
56
+ """Sets the user_ids of this BatchDeleteUserReq.
57
+
58
+ 桌面用户ID列表。
59
+
60
+ :param user_ids: The user_ids of this BatchDeleteUserReq.
61
+ :type user_ids: list[str]
62
+ """
63
+ self._user_ids = user_ids
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, BatchDeleteUserReq):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchDeleteUserRequest:
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
+ 'body': 'BatchDeleteUserReq'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ """BatchDeleteUserRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the BatchDeleteUserRequest
33
+ :type body: :class:`huaweicloudsdkworkspace.v2.BatchDeleteUserReq`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ """Gets the body of this BatchDeleteUserRequest.
47
+
48
+ :return: The body of this BatchDeleteUserRequest.
49
+ :rtype: :class:`huaweicloudsdkworkspace.v2.BatchDeleteUserReq`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ """Sets the body of this BatchDeleteUserRequest.
56
+
57
+ :param body: The body of this BatchDeleteUserRequest.
58
+ :type body: :class:`huaweicloudsdkworkspace.v2.BatchDeleteUserReq`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, BatchDeleteUserRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,85 @@
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 BatchDeleteUserResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """BatchDeleteUserResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(BatchDeleteUserResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, BatchDeleteUserResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other