huaweicloudsdkdwr 3.1.151__py2.py3-none-any.whl → 3.1.153__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 huaweicloudsdkdwr might be problematic. Click here for more details.

Files changed (96) hide show
  1. huaweicloudsdkdwr/v1/__init__.py +91 -0
  2. huaweicloudsdkdwr/v1/dwr_async_client.py +1519 -0
  3. huaweicloudsdkdwr/v1/dwr_client.py +1516 -0
  4. huaweicloudsdkdwr/v1/model/__init__.py +88 -0
  5. huaweicloudsdkdwr/v1/model/build_progress.py +231 -0
  6. huaweicloudsdkdwr/v1/model/charge_info.py +230 -0
  7. huaweicloudsdkdwr/v1/model/collection_base_info.py +142 -0
  8. huaweicloudsdkdwr/v1/model/create_collection_body.py +281 -0
  9. huaweicloudsdkdwr/v1/model/create_collection_request.py +111 -0
  10. huaweicloudsdkdwr/v1/model/create_collection_response.py +145 -0
  11. huaweicloudsdkdwr/v1/model/create_index_body.py +166 -0
  12. huaweicloudsdkdwr/v1/model/create_index_request.py +111 -0
  13. huaweicloudsdkdwr/v1/model/create_index_response.py +145 -0
  14. huaweicloudsdkdwr/v1/model/create_store_body.py +248 -0
  15. huaweicloudsdkdwr/v1/model/create_store_data.py +335 -0
  16. huaweicloudsdkdwr/v1/model/create_store_request.py +111 -0
  17. huaweicloudsdkdwr/v1/model/create_store_response.py +170 -0
  18. huaweicloudsdkdwr/v1/model/decribe_collection_data.py +315 -0
  19. huaweicloudsdkdwr/v1/model/delete_collection_request.py +111 -0
  20. huaweicloudsdkdwr/v1/model/delete_collection_response.py +145 -0
  21. huaweicloudsdkdwr/v1/model/delete_entities_body.py +170 -0
  22. huaweicloudsdkdwr/v1/model/delete_entities_request.py +111 -0
  23. huaweicloudsdkdwr/v1/model/delete_entities_response.py +145 -0
  24. huaweicloudsdkdwr/v1/model/delete_index_body.py +170 -0
  25. huaweicloudsdkdwr/v1/model/delete_index_request.py +111 -0
  26. huaweicloudsdkdwr/v1/model/delete_index_response.py +145 -0
  27. huaweicloudsdkdwr/v1/model/delete_store_data.py +114 -0
  28. huaweicloudsdkdwr/v1/model/delete_store_request.py +111 -0
  29. huaweicloudsdkdwr/v1/model/delete_store_response.py +170 -0
  30. huaweicloudsdkdwr/v1/model/describe_collection_request.py +111 -0
  31. huaweicloudsdkdwr/v1/model/describe_collection_response.py +170 -0
  32. huaweicloudsdkdwr/v1/model/describe_index_body.py +170 -0
  33. huaweicloudsdkdwr/v1/model/describe_index_request.py +111 -0
  34. huaweicloudsdkdwr/v1/model/describe_index_response.py +170 -0
  35. huaweicloudsdkdwr/v1/model/describe_index_respose_data.py +171 -0
  36. huaweicloudsdkdwr/v1/model/describe_job_body.py +114 -0
  37. huaweicloudsdkdwr/v1/model/describe_job_request.py +111 -0
  38. huaweicloudsdkdwr/v1/model/describe_job_response.py +170 -0
  39. huaweicloudsdkdwr/v1/model/describe_store_data.py +364 -0
  40. huaweicloudsdkdwr/v1/model/describe_store_request.py +111 -0
  41. huaweicloudsdkdwr/v1/model/describe_store_response.py +170 -0
  42. huaweicloudsdkdwr/v1/model/field.py +229 -0
  43. huaweicloudsdkdwr/v1/model/field_data.py +198 -0
  44. huaweicloudsdkdwr/v1/model/flavor.py +142 -0
  45. huaweicloudsdkdwr/v1/model/get_index_progress_body.py +170 -0
  46. huaweicloudsdkdwr/v1/model/get_index_progress_response_data.py +167 -0
  47. huaweicloudsdkdwr/v1/model/get_progress_request.py +111 -0
  48. huaweicloudsdkdwr/v1/model/get_progress_response.py +170 -0
  49. huaweicloudsdkdwr/v1/model/hybrid_search_body.py +278 -0
  50. huaweicloudsdkdwr/v1/model/hybrid_search_request.py +111 -0
  51. huaweicloudsdkdwr/v1/model/hybrid_search_response.py +174 -0
  52. huaweicloudsdkdwr/v1/model/index_desc.py +200 -0
  53. huaweicloudsdkdwr/v1/model/index_params.py +171 -0
  54. huaweicloudsdkdwr/v1/model/insert_entities_body.py +170 -0
  55. huaweicloudsdkdwr/v1/model/insert_entities_request.py +111 -0
  56. huaweicloudsdkdwr/v1/model/insert_entities_response.py +170 -0
  57. huaweicloudsdkdwr/v1/model/insert_entities_response_data.py +143 -0
  58. huaweicloudsdkdwr/v1/model/job_data.py +316 -0
  59. huaweicloudsdkdwr/v1/model/list_collection_data.py +143 -0
  60. huaweicloudsdkdwr/v1/model/list_collection_details.py +260 -0
  61. huaweicloudsdkdwr/v1/model/list_collections_body.py +143 -0
  62. huaweicloudsdkdwr/v1/model/list_collections_request.py +111 -0
  63. huaweicloudsdkdwr/v1/model/list_collections_response.py +170 -0
  64. huaweicloudsdkdwr/v1/model/list_jobs_data.py +115 -0
  65. huaweicloudsdkdwr/v1/model/list_jobs_request.py +231 -0
  66. huaweicloudsdkdwr/v1/model/list_jobs_response.py +170 -0
  67. huaweicloudsdkdwr/v1/model/list_stores_request.py +84 -0
  68. huaweicloudsdkdwr/v1/model/list_stores_response.py +174 -0
  69. huaweicloudsdkdwr/v1/model/load_collection_body.py +142 -0
  70. huaweicloudsdkdwr/v1/model/load_collection_request.py +111 -0
  71. huaweicloudsdkdwr/v1/model/load_collection_response.py +145 -0
  72. huaweicloudsdkdwr/v1/model/primary_field.py +142 -0
  73. huaweicloudsdkdwr/v1/model/query_entities_body.py +257 -0
  74. huaweicloudsdkdwr/v1/model/query_entities_request.py +111 -0
  75. huaweicloudsdkdwr/v1/model/query_entities_response.py +174 -0
  76. huaweicloudsdkdwr/v1/model/release_collection_request.py +111 -0
  77. huaweicloudsdkdwr/v1/model/release_collection_response.py +145 -0
  78. huaweicloudsdkdwr/v1/model/rerank.py +143 -0
  79. huaweicloudsdkdwr/v1/model/search_entities_body.py +343 -0
  80. huaweicloudsdkdwr/v1/model/search_entities_request.py +111 -0
  81. huaweicloudsdkdwr/v1/model/search_entities_response.py +174 -0
  82. huaweicloudsdkdwr/v1/model/store_info.py +114 -0
  83. huaweicloudsdkdwr/v1/model/sub_search.py +258 -0
  84. huaweicloudsdkdwr/v1/model/upsert_entities_body.py +170 -0
  85. huaweicloudsdkdwr/v1/model/upsert_entities_request.py +111 -0
  86. huaweicloudsdkdwr/v1/model/upsert_entities_response.py +170 -0
  87. huaweicloudsdkdwr/v1/model/upsert_entities_response_data.py +143 -0
  88. huaweicloudsdkdwr/v1/region/__init__.py +0 -0
  89. huaweicloudsdkdwr/v1/region/dwr_region.py +37 -0
  90. huaweicloudsdkdwr/v3/region/dwr_region.py +6 -0
  91. {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.153.dist-info}/METADATA +2 -2
  92. huaweicloudsdkdwr-3.1.153.dist-info/RECORD +169 -0
  93. huaweicloudsdkdwr-3.1.151.dist-info/RECORD +0 -80
  94. {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.153.dist-info}/LICENSE +0 -0
  95. {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.153.dist-info}/WHEEL +0 -0
  96. {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.153.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,315 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DecribeCollectionData:
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
+ 'store_name': 'str',
21
+ 'collection_name': 'str',
22
+ 'fields': 'list[FieldData]',
23
+ 'load_status': 'str',
24
+ 'description': 'str',
25
+ 'params': 'dict(str, object)',
26
+ 'indexes': 'list[IndexParams]',
27
+ 'entity_num': 'int'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'store_name': 'store_name',
32
+ 'collection_name': 'collection_name',
33
+ 'fields': 'fields',
34
+ 'load_status': 'load_status',
35
+ 'description': 'description',
36
+ 'params': 'params',
37
+ 'indexes': 'indexes',
38
+ 'entity_num': 'entity_num'
39
+ }
40
+
41
+ def __init__(self, store_name=None, collection_name=None, fields=None, load_status=None, description=None, params=None, indexes=None, entity_num=None):
42
+ r"""DecribeCollectionData
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param store_name: 知识仓实例名称
47
+ :type store_name: str
48
+ :param collection_name: collection名字
49
+ :type collection_name: str
50
+ :param fields: collection各个field信息
51
+ :type fields: list[:class:`huaweicloudsdkdwr.v1.FieldData`]
52
+ :param load_status: 标识当前Collection加载状态。 1、LoadStateLoaded:表示当前Collection已准备就绪,可正常使用。 2、LoadStateLoading:表示当前Collection正在load。 3、LoadStateNotLoad:表示collection未加载。
53
+ :type load_status: str
54
+ :param description: Collection 的描述信息
55
+ :type description: str
56
+ :param params: collection参数: shards_num partitions_num max_length
57
+ :type params: dict(str, object)
58
+ :param indexes: collection中各个索引信息
59
+ :type indexes: list[:class:`huaweicloudsdkdwr.v1.IndexParams`]
60
+ :param entity_num: collection中的entity数量
61
+ :type entity_num: int
62
+ """
63
+
64
+
65
+
66
+ self._store_name = None
67
+ self._collection_name = None
68
+ self._fields = None
69
+ self._load_status = None
70
+ self._description = None
71
+ self._params = None
72
+ self._indexes = None
73
+ self._entity_num = None
74
+ self.discriminator = None
75
+
76
+ self.store_name = store_name
77
+ self.collection_name = collection_name
78
+ self.fields = fields
79
+ if load_status is not None:
80
+ self.load_status = load_status
81
+ if description is not None:
82
+ self.description = description
83
+ if params is not None:
84
+ self.params = params
85
+ if indexes is not None:
86
+ self.indexes = indexes
87
+ if entity_num is not None:
88
+ self.entity_num = entity_num
89
+
90
+ @property
91
+ def store_name(self):
92
+ r"""Gets the store_name of this DecribeCollectionData.
93
+
94
+ 知识仓实例名称
95
+
96
+ :return: The store_name of this DecribeCollectionData.
97
+ :rtype: str
98
+ """
99
+ return self._store_name
100
+
101
+ @store_name.setter
102
+ def store_name(self, store_name):
103
+ r"""Sets the store_name of this DecribeCollectionData.
104
+
105
+ 知识仓实例名称
106
+
107
+ :param store_name: The store_name of this DecribeCollectionData.
108
+ :type store_name: str
109
+ """
110
+ self._store_name = store_name
111
+
112
+ @property
113
+ def collection_name(self):
114
+ r"""Gets the collection_name of this DecribeCollectionData.
115
+
116
+ collection名字
117
+
118
+ :return: The collection_name of this DecribeCollectionData.
119
+ :rtype: str
120
+ """
121
+ return self._collection_name
122
+
123
+ @collection_name.setter
124
+ def collection_name(self, collection_name):
125
+ r"""Sets the collection_name of this DecribeCollectionData.
126
+
127
+ collection名字
128
+
129
+ :param collection_name: The collection_name of this DecribeCollectionData.
130
+ :type collection_name: str
131
+ """
132
+ self._collection_name = collection_name
133
+
134
+ @property
135
+ def fields(self):
136
+ r"""Gets the fields of this DecribeCollectionData.
137
+
138
+ collection各个field信息
139
+
140
+ :return: The fields of this DecribeCollectionData.
141
+ :rtype: list[:class:`huaweicloudsdkdwr.v1.FieldData`]
142
+ """
143
+ return self._fields
144
+
145
+ @fields.setter
146
+ def fields(self, fields):
147
+ r"""Sets the fields of this DecribeCollectionData.
148
+
149
+ collection各个field信息
150
+
151
+ :param fields: The fields of this DecribeCollectionData.
152
+ :type fields: list[:class:`huaweicloudsdkdwr.v1.FieldData`]
153
+ """
154
+ self._fields = fields
155
+
156
+ @property
157
+ def load_status(self):
158
+ r"""Gets the load_status of this DecribeCollectionData.
159
+
160
+ 标识当前Collection加载状态。 1、LoadStateLoaded:表示当前Collection已准备就绪,可正常使用。 2、LoadStateLoading:表示当前Collection正在load。 3、LoadStateNotLoad:表示collection未加载。
161
+
162
+ :return: The load_status of this DecribeCollectionData.
163
+ :rtype: str
164
+ """
165
+ return self._load_status
166
+
167
+ @load_status.setter
168
+ def load_status(self, load_status):
169
+ r"""Sets the load_status of this DecribeCollectionData.
170
+
171
+ 标识当前Collection加载状态。 1、LoadStateLoaded:表示当前Collection已准备就绪,可正常使用。 2、LoadStateLoading:表示当前Collection正在load。 3、LoadStateNotLoad:表示collection未加载。
172
+
173
+ :param load_status: The load_status of this DecribeCollectionData.
174
+ :type load_status: str
175
+ """
176
+ self._load_status = load_status
177
+
178
+ @property
179
+ def description(self):
180
+ r"""Gets the description of this DecribeCollectionData.
181
+
182
+ Collection 的描述信息
183
+
184
+ :return: The description of this DecribeCollectionData.
185
+ :rtype: str
186
+ """
187
+ return self._description
188
+
189
+ @description.setter
190
+ def description(self, description):
191
+ r"""Sets the description of this DecribeCollectionData.
192
+
193
+ Collection 的描述信息
194
+
195
+ :param description: The description of this DecribeCollectionData.
196
+ :type description: str
197
+ """
198
+ self._description = description
199
+
200
+ @property
201
+ def params(self):
202
+ r"""Gets the params of this DecribeCollectionData.
203
+
204
+ collection参数: shards_num partitions_num max_length
205
+
206
+ :return: The params of this DecribeCollectionData.
207
+ :rtype: dict(str, object)
208
+ """
209
+ return self._params
210
+
211
+ @params.setter
212
+ def params(self, params):
213
+ r"""Sets the params of this DecribeCollectionData.
214
+
215
+ collection参数: shards_num partitions_num max_length
216
+
217
+ :param params: The params of this DecribeCollectionData.
218
+ :type params: dict(str, object)
219
+ """
220
+ self._params = params
221
+
222
+ @property
223
+ def indexes(self):
224
+ r"""Gets the indexes of this DecribeCollectionData.
225
+
226
+ collection中各个索引信息
227
+
228
+ :return: The indexes of this DecribeCollectionData.
229
+ :rtype: list[:class:`huaweicloudsdkdwr.v1.IndexParams`]
230
+ """
231
+ return self._indexes
232
+
233
+ @indexes.setter
234
+ def indexes(self, indexes):
235
+ r"""Sets the indexes of this DecribeCollectionData.
236
+
237
+ collection中各个索引信息
238
+
239
+ :param indexes: The indexes of this DecribeCollectionData.
240
+ :type indexes: list[:class:`huaweicloudsdkdwr.v1.IndexParams`]
241
+ """
242
+ self._indexes = indexes
243
+
244
+ @property
245
+ def entity_num(self):
246
+ r"""Gets the entity_num of this DecribeCollectionData.
247
+
248
+ collection中的entity数量
249
+
250
+ :return: The entity_num of this DecribeCollectionData.
251
+ :rtype: int
252
+ """
253
+ return self._entity_num
254
+
255
+ @entity_num.setter
256
+ def entity_num(self, entity_num):
257
+ r"""Sets the entity_num of this DecribeCollectionData.
258
+
259
+ collection中的entity数量
260
+
261
+ :param entity_num: The entity_num of this DecribeCollectionData.
262
+ :type entity_num: int
263
+ """
264
+ self._entity_num = entity_num
265
+
266
+ def to_dict(self):
267
+ """Returns the model properties as a dict"""
268
+ result = {}
269
+
270
+ for attr, _ in six.iteritems(self.openapi_types):
271
+ value = getattr(self, attr)
272
+ if isinstance(value, list):
273
+ result[attr] = list(map(
274
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
275
+ value
276
+ ))
277
+ elif hasattr(value, "to_dict"):
278
+ result[attr] = value.to_dict()
279
+ elif isinstance(value, dict):
280
+ result[attr] = dict(map(
281
+ lambda item: (item[0], item[1].to_dict())
282
+ if hasattr(item[1], "to_dict") else item,
283
+ value.items()
284
+ ))
285
+ else:
286
+ if attr in self.sensitive_list:
287
+ result[attr] = "****"
288
+ else:
289
+ result[attr] = value
290
+
291
+ return result
292
+
293
+ def to_str(self):
294
+ """Returns the string representation of the model"""
295
+ import simplejson as json
296
+ if six.PY2:
297
+ import sys
298
+ reload(sys)
299
+ sys.setdefaultencoding("utf-8")
300
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
301
+
302
+ def __repr__(self):
303
+ """For `print`"""
304
+ return self.to_str()
305
+
306
+ def __eq__(self, other):
307
+ """Returns true if both objects are equal"""
308
+ if not isinstance(other, DecribeCollectionData):
309
+ return False
310
+
311
+ return self.__dict__ == other.__dict__
312
+
313
+ def __ne__(self, other):
314
+ """Returns true if both objects are not equal"""
315
+ 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 DeleteCollectionRequest:
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': 'CollectionBaseInfo'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ r"""DeleteCollectionRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the DeleteCollectionRequest
33
+ :type body: :class:`huaweicloudsdkdwr.v1.CollectionBaseInfo`
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
+ r"""Gets the body of this DeleteCollectionRequest.
47
+
48
+ :return: The body of this DeleteCollectionRequest.
49
+ :rtype: :class:`huaweicloudsdkdwr.v1.CollectionBaseInfo`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ r"""Sets the body of this DeleteCollectionRequest.
56
+
57
+ :param body: The body of this DeleteCollectionRequest.
58
+ :type body: :class:`huaweicloudsdkdwr.v1.CollectionBaseInfo`
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, DeleteCollectionRequest):
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,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 DeleteCollectionResponse(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
+ 'code': 'str',
22
+ 'message': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'code': 'code',
27
+ 'message': 'message'
28
+ }
29
+
30
+ def __init__(self, code=None, message=None):
31
+ r"""DeleteCollectionResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param code: 返回码
36
+ :type code: str
37
+ :param message: 描述信息
38
+ :type message: str
39
+ """
40
+
41
+ super(DeleteCollectionResponse, self).__init__()
42
+
43
+ self._code = None
44
+ self._message = None
45
+ self.discriminator = None
46
+
47
+ if code is not None:
48
+ self.code = code
49
+ if message is not None:
50
+ self.message = message
51
+
52
+ @property
53
+ def code(self):
54
+ r"""Gets the code of this DeleteCollectionResponse.
55
+
56
+ 返回码
57
+
58
+ :return: The code of this DeleteCollectionResponse.
59
+ :rtype: str
60
+ """
61
+ return self._code
62
+
63
+ @code.setter
64
+ def code(self, code):
65
+ r"""Sets the code of this DeleteCollectionResponse.
66
+
67
+ 返回码
68
+
69
+ :param code: The code of this DeleteCollectionResponse.
70
+ :type code: str
71
+ """
72
+ self._code = code
73
+
74
+ @property
75
+ def message(self):
76
+ r"""Gets the message of this DeleteCollectionResponse.
77
+
78
+ 描述信息
79
+
80
+ :return: The message of this DeleteCollectionResponse.
81
+ :rtype: str
82
+ """
83
+ return self._message
84
+
85
+ @message.setter
86
+ def message(self, message):
87
+ r"""Sets the message of this DeleteCollectionResponse.
88
+
89
+ 描述信息
90
+
91
+ :param message: The message of this DeleteCollectionResponse.
92
+ :type message: str
93
+ """
94
+ self._message = message
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, DeleteCollectionResponse):
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