huaweicloudsdkdwr 3.1.155__py2.py3-none-any.whl → 3.1.157__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 (76) hide show
  1. huaweicloudsdkdwr/v1/__init__.py +7 -5
  2. huaweicloudsdkdwr/v1/dwr_async_client.py +266 -266
  3. huaweicloudsdkdwr/v1/dwr_client.py +266 -266
  4. huaweicloudsdkdwr/v1/model/__init__.py +7 -5
  5. huaweicloudsdkdwr/v1/model/build_progress.py +15 -15
  6. huaweicloudsdkdwr/v1/model/charge_info.py +15 -15
  7. huaweicloudsdkdwr/v1/model/collection_base_info.py +6 -6
  8. huaweicloudsdkdwr/v1/model/create_collection_body.py +18 -18
  9. huaweicloudsdkdwr/v1/model/create_collection_response.py +6 -6
  10. huaweicloudsdkdwr/v1/model/create_index_body.py +6 -6
  11. huaweicloudsdkdwr/v1/model/create_index_response.py +6 -6
  12. huaweicloudsdkdwr/v1/model/create_store_body.py +12 -12
  13. huaweicloudsdkdwr/v1/model/create_store_data.py +21 -21
  14. huaweicloudsdkdwr/v1/model/create_store_response.py +6 -6
  15. huaweicloudsdkdwr/v1/model/decribe_collection_data.py +102 -73
  16. huaweicloudsdkdwr/v1/model/delete_collection_response.py +6 -6
  17. huaweicloudsdkdwr/v1/model/delete_entities_body.py +9 -9
  18. huaweicloudsdkdwr/v1/model/delete_entities_response.py +6 -6
  19. huaweicloudsdkdwr/v1/model/delete_index_body.py +9 -9
  20. huaweicloudsdkdwr/v1/model/delete_index_response.py +6 -6
  21. huaweicloudsdkdwr/v1/model/delete_store_data.py +3 -3
  22. huaweicloudsdkdwr/v1/model/delete_store_response.py +6 -6
  23. huaweicloudsdkdwr/v1/model/describe_collection_response.py +6 -6
  24. huaweicloudsdkdwr/v1/model/describe_index_body.py +9 -9
  25. huaweicloudsdkdwr/v1/model/{describe_index_respose_data.py → describe_index_data.py} +27 -32
  26. huaweicloudsdkdwr/v1/model/describe_index_response.py +10 -10
  27. huaweicloudsdkdwr/v1/model/describe_job_body.py +3 -3
  28. huaweicloudsdkdwr/v1/model/describe_job_response.py +6 -6
  29. huaweicloudsdkdwr/v1/model/describe_store_response.py +10 -10
  30. huaweicloudsdkdwr/v1/model/entities_data.py +114 -0
  31. huaweicloudsdkdwr/v1/model/field.py +15 -15
  32. huaweicloudsdkdwr/v1/model/field_data.py +102 -15
  33. huaweicloudsdkdwr/v1/model/flavor.py +6 -6
  34. huaweicloudsdkdwr/v1/model/get_index_progress_body.py +9 -9
  35. huaweicloudsdkdwr/v1/model/{get_index_progress_response_data.py → get_progress_data.py} +21 -21
  36. huaweicloudsdkdwr/v1/model/get_progress_response.py +10 -10
  37. huaweicloudsdkdwr/v1/model/hybrid_search_body.py +20 -16
  38. huaweicloudsdkdwr/v1/model/hybrid_search_response.py +11 -15
  39. huaweicloudsdkdwr/v1/model/index_desc.py +14 -16
  40. huaweicloudsdkdwr/v1/model/index_params.py +9 -9
  41. huaweicloudsdkdwr/v1/model/insert_entities_body.py +9 -9
  42. huaweicloudsdkdwr/v1/model/{insert_entities_response_data.py → insert_entities_data.py} +17 -17
  43. huaweicloudsdkdwr/v1/model/insert_entities_response.py +10 -10
  44. huaweicloudsdkdwr/v1/model/job_data.py +24 -24
  45. huaweicloudsdkdwr/v1/model/list_collection_data.py +6 -6
  46. huaweicloudsdkdwr/v1/model/list_collection_details.py +18 -18
  47. huaweicloudsdkdwr/v1/model/list_collections_body.py +6 -6
  48. huaweicloudsdkdwr/v1/model/list_collections_response.py +6 -6
  49. huaweicloudsdkdwr/v1/model/list_jobs_data.py +3 -3
  50. huaweicloudsdkdwr/v1/model/list_jobs_request.py +15 -15
  51. huaweicloudsdkdwr/v1/model/list_jobs_response.py +6 -6
  52. huaweicloudsdkdwr/v1/model/list_store_data.py +114 -0
  53. huaweicloudsdkdwr/v1/model/list_stores_response.py +11 -15
  54. huaweicloudsdkdwr/v1/model/load_collection_body.py +6 -6
  55. huaweicloudsdkdwr/v1/model/load_collection_response.py +6 -6
  56. huaweicloudsdkdwr/v1/model/primary_field.py +6 -6
  57. huaweicloudsdkdwr/v1/model/query_entities_body.py +18 -18
  58. huaweicloudsdkdwr/v1/model/query_entities_response.py +11 -15
  59. huaweicloudsdkdwr/v1/model/release_collection_response.py +6 -6
  60. huaweicloudsdkdwr/v1/model/rerank.py +6 -6
  61. huaweicloudsdkdwr/v1/model/search_entities_body.py +27 -27
  62. huaweicloudsdkdwr/v1/model/search_entities_response.py +11 -15
  63. huaweicloudsdkdwr/v1/model/store_data.py +364 -0
  64. huaweicloudsdkdwr/v1/model/store_info.py +3 -3
  65. huaweicloudsdkdwr/v1/model/sub_search.py +18 -18
  66. huaweicloudsdkdwr/v1/model/upsert_entities_body.py +9 -9
  67. huaweicloudsdkdwr/v1/model/{upsert_entities_response_data.py → upsert_entities_data.py} +18 -19
  68. huaweicloudsdkdwr/v1/model/upsert_entities_response.py +10 -10
  69. huaweicloudsdkdwr/v1/region/dwr_region.py +6 -0
  70. huaweicloudsdkdwr/v3/region/dwr_region.py +6 -0
  71. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/METADATA +2 -2
  72. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/RECORD +75 -73
  73. huaweicloudsdkdwr/v1/model/describe_store_data.py +0 -364
  74. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/LICENSE +0 -0
  75. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/WHEEL +0 -0
  76. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.157.dist-info}/top_level.txt +0 -0
@@ -45,23 +45,23 @@ class SearchEntitiesBody:
45
45
 
46
46
  The model defined in huaweicloud sdk
47
47
 
48
- :param store_name: 知识仓实例名称
48
+ :param store_name: **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
49
49
  :type store_name: str
50
- :param collection_name: collection名称
50
+ :param collection_name: **参数解释:** collection名称,知识仓内唯一。 **约束限制:** 长度范围为1到255个字符,支持字母、数字、中划线(-)和下划线(_),大小写敏感。第一个字符只能够是下划线(_)和字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
51
51
  :type collection_name: str
52
- :param output_fields: 配置需返回的字段。
52
+ :param output_fields: **参数解释:** field名称列表,配置需与搜索结果一起返回的字段。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** [ ],不返回任何额外的字段数据。
53
53
  :type output_fields: list[str]
54
- :param top_k: 返回个数限制
54
+ :param top_k: **参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 与offset取值的总和应小于16384。 **取值范围:** `[1, 16384]` **默认取值:** 10
55
55
  :type top_k: int
56
- :param offset: 搜索结果中要跳过的entity数。
56
+ :param offset: **参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:** 与top_k取值的总和应小于16384。 **取值范围:** 大于等于0 **默认取值:** 0
57
57
  :type offset: int
58
- :param filter: 设置过滤表达式。 filter的表达式格式为详见Filter规则
58
+ :param filter: **参数解释:** 用于过滤匹配entity的标量过滤条件。可以将此设置为空字符串以跳过标量过滤。 **约束限制:** 要构建标量过滤条件,请参阅filter表达式规则。 **取值范围:** 不涉及。 **默认取值:** 空字符串,不进行标量过滤。
59
59
  :type filter: str
60
- :param vector: 需要搜索的向量数据
60
+ :param vector: **参数解释:** 要搜索的向量字段数据。 **约束限制:** 与collection field schema中定义的对应向量字段的类型和维度一致。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
61
61
  :type vector: list[float]
62
- :param vector_field: 表示要查询的向量列名字
62
+ :param vector_field: **参数解释:** 要搜索的向量字段名称。 **约束限制:** 必须是collection field schema中存在的向量字段名称。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
63
63
  :type vector_field: str
64
- :param params: 向量查询自定义参数: ef:每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(对HNSW生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(对HANNS生效) - nprobe: 返回的最近的聚类单元的数量。(对IVF_FLAT生效) - radius:查询范围的半径,若指定则进行range查询。
64
+ :param params: **参数解释:** 额外的搜索参数配置。 可以配置的参数: - ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) - radius:查询范围的半径,若指定则进行range查询。 **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] radius: [0, 1.0] **默认取值:** ef: top_k + offset search_list: topk_k + offset
65
65
  :type params: dict(str, object)
66
66
  """
67
67
 
@@ -97,7 +97,7 @@ class SearchEntitiesBody:
97
97
  def store_name(self):
98
98
  r"""Gets the store_name of this SearchEntitiesBody.
99
99
 
100
- 知识仓实例名称
100
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
101
101
 
102
102
  :return: The store_name of this SearchEntitiesBody.
103
103
  :rtype: str
@@ -108,7 +108,7 @@ class SearchEntitiesBody:
108
108
  def store_name(self, store_name):
109
109
  r"""Sets the store_name of this SearchEntitiesBody.
110
110
 
111
- 知识仓实例名称
111
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
112
112
 
113
113
  :param store_name: The store_name of this SearchEntitiesBody.
114
114
  :type store_name: str
@@ -119,7 +119,7 @@ class SearchEntitiesBody:
119
119
  def collection_name(self):
120
120
  r"""Gets the collection_name of this SearchEntitiesBody.
121
121
 
122
- collection名称
122
+ **参数解释:** collection名称,知识仓内唯一。 **约束限制:** 长度范围为1到255个字符,支持字母、数字、中划线(-)和下划线(_),大小写敏感。第一个字符只能够是下划线(_)和字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
123
123
 
124
124
  :return: The collection_name of this SearchEntitiesBody.
125
125
  :rtype: str
@@ -130,7 +130,7 @@ class SearchEntitiesBody:
130
130
  def collection_name(self, collection_name):
131
131
  r"""Sets the collection_name of this SearchEntitiesBody.
132
132
 
133
- collection名称
133
+ **参数解释:** collection名称,知识仓内唯一。 **约束限制:** 长度范围为1到255个字符,支持字母、数字、中划线(-)和下划线(_),大小写敏感。第一个字符只能够是下划线(_)和字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
134
134
 
135
135
  :param collection_name: The collection_name of this SearchEntitiesBody.
136
136
  :type collection_name: str
@@ -141,7 +141,7 @@ class SearchEntitiesBody:
141
141
  def output_fields(self):
142
142
  r"""Gets the output_fields of this SearchEntitiesBody.
143
143
 
144
- 配置需返回的字段。
144
+ **参数解释:** field名称列表,配置需与搜索结果一起返回的字段。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** [ ],不返回任何额外的字段数据。
145
145
 
146
146
  :return: The output_fields of this SearchEntitiesBody.
147
147
  :rtype: list[str]
@@ -152,7 +152,7 @@ class SearchEntitiesBody:
152
152
  def output_fields(self, output_fields):
153
153
  r"""Sets the output_fields of this SearchEntitiesBody.
154
154
 
155
- 配置需返回的字段。
155
+ **参数解释:** field名称列表,配置需与搜索结果一起返回的字段。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** [ ],不返回任何额外的字段数据。
156
156
 
157
157
  :param output_fields: The output_fields of this SearchEntitiesBody.
158
158
  :type output_fields: list[str]
@@ -163,7 +163,7 @@ class SearchEntitiesBody:
163
163
  def top_k(self):
164
164
  r"""Gets the top_k of this SearchEntitiesBody.
165
165
 
166
- 返回个数限制
166
+ **参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 与offset取值的总和应小于16384。 **取值范围:** `[1, 16384]` **默认取值:** 10
167
167
 
168
168
  :return: The top_k of this SearchEntitiesBody.
169
169
  :rtype: int
@@ -174,7 +174,7 @@ class SearchEntitiesBody:
174
174
  def top_k(self, top_k):
175
175
  r"""Sets the top_k of this SearchEntitiesBody.
176
176
 
177
- 返回个数限制
177
+ **参数解释:** 返回的entity个数限制。可以将此参数与offset结合使用以启用分页。 **约束限制:** 与offset取值的总和应小于16384。 **取值范围:** `[1, 16384]` **默认取值:** 10
178
178
 
179
179
  :param top_k: The top_k of this SearchEntitiesBody.
180
180
  :type top_k: int
@@ -185,7 +185,7 @@ class SearchEntitiesBody:
185
185
  def offset(self):
186
186
  r"""Gets the offset of this SearchEntitiesBody.
187
187
 
188
- 搜索结果中要跳过的entity数。
188
+ **参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:** 与top_k取值的总和应小于16384。 **取值范围:** 大于等于0 **默认取值:** 0
189
189
 
190
190
  :return: The offset of this SearchEntitiesBody.
191
191
  :rtype: int
@@ -196,7 +196,7 @@ class SearchEntitiesBody:
196
196
  def offset(self, offset):
197
197
  r"""Sets the offset of this SearchEntitiesBody.
198
198
 
199
- 搜索结果中要跳过的entity数。
199
+ **参数解释:** 在搜索结果中跳过的记录数。可以将此参数与 top_k 参数结合使用以启用分页。 **约束限制:** 与top_k取值的总和应小于16384。 **取值范围:** 大于等于0 **默认取值:** 0
200
200
 
201
201
  :param offset: The offset of this SearchEntitiesBody.
202
202
  :type offset: int
@@ -207,7 +207,7 @@ class SearchEntitiesBody:
207
207
  def filter(self):
208
208
  r"""Gets the filter of this SearchEntitiesBody.
209
209
 
210
- 设置过滤表达式。 filter的表达式格式为详见Filter规则
210
+ **参数解释:** 用于过滤匹配entity的标量过滤条件。可以将此设置为空字符串以跳过标量过滤。 **约束限制:** 要构建标量过滤条件,请参阅filter表达式规则。 **取值范围:** 不涉及。 **默认取值:** 空字符串,不进行标量过滤。
211
211
 
212
212
  :return: The filter of this SearchEntitiesBody.
213
213
  :rtype: str
@@ -218,7 +218,7 @@ class SearchEntitiesBody:
218
218
  def filter(self, filter):
219
219
  r"""Sets the filter of this SearchEntitiesBody.
220
220
 
221
- 设置过滤表达式。 filter的表达式格式为详见Filter规则
221
+ **参数解释:** 用于过滤匹配entity的标量过滤条件。可以将此设置为空字符串以跳过标量过滤。 **约束限制:** 要构建标量过滤条件,请参阅filter表达式规则。 **取值范围:** 不涉及。 **默认取值:** 空字符串,不进行标量过滤。
222
222
 
223
223
  :param filter: The filter of this SearchEntitiesBody.
224
224
  :type filter: str
@@ -229,7 +229,7 @@ class SearchEntitiesBody:
229
229
  def vector(self):
230
230
  r"""Gets the vector of this SearchEntitiesBody.
231
231
 
232
- 需要搜索的向量数据
232
+ **参数解释:** 要搜索的向量字段数据。 **约束限制:** 与collection field schema中定义的对应向量字段的类型和维度一致。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
233
233
 
234
234
  :return: The vector of this SearchEntitiesBody.
235
235
  :rtype: list[float]
@@ -240,7 +240,7 @@ class SearchEntitiesBody:
240
240
  def vector(self, vector):
241
241
  r"""Sets the vector of this SearchEntitiesBody.
242
242
 
243
- 需要搜索的向量数据
243
+ **参数解释:** 要搜索的向量字段数据。 **约束限制:** 与collection field schema中定义的对应向量字段的类型和维度一致。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
244
244
 
245
245
  :param vector: The vector of this SearchEntitiesBody.
246
246
  :type vector: list[float]
@@ -251,7 +251,7 @@ class SearchEntitiesBody:
251
251
  def vector_field(self):
252
252
  r"""Gets the vector_field of this SearchEntitiesBody.
253
253
 
254
- 表示要查询的向量列名字
254
+ **参数解释:** 要搜索的向量字段名称。 **约束限制:** 必须是collection field schema中存在的向量字段名称。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
255
255
 
256
256
  :return: The vector_field of this SearchEntitiesBody.
257
257
  :rtype: str
@@ -262,7 +262,7 @@ class SearchEntitiesBody:
262
262
  def vector_field(self, vector_field):
263
263
  r"""Sets the vector_field of this SearchEntitiesBody.
264
264
 
265
- 表示要查询的向量列名字
265
+ **参数解释:** 要搜索的向量字段名称。 **约束限制:** 必须是collection field schema中存在的向量字段名称。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
266
266
 
267
267
  :param vector_field: The vector_field of this SearchEntitiesBody.
268
268
  :type vector_field: str
@@ -273,7 +273,7 @@ class SearchEntitiesBody:
273
273
  def params(self):
274
274
  r"""Gets the params of this SearchEntitiesBody.
275
275
 
276
- 向量查询自定义参数: ef:每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(对HNSW生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(对HANNS生效) - nprobe: 返回的最近的聚类单元的数量。(对IVF_FLAT生效) - radius:查询范围的半径,若指定则进行range查询。
276
+ **参数解释:** 额外的搜索参数配置。 可以配置的参数: - ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) - radius:查询范围的半径,若指定则进行range查询。 **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] radius: [0, 1.0] **默认取值:** ef: top_k + offset search_list: topk_k + offset
277
277
 
278
278
  :return: The params of this SearchEntitiesBody.
279
279
  :rtype: dict(str, object)
@@ -284,7 +284,7 @@ class SearchEntitiesBody:
284
284
  def params(self, params):
285
285
  r"""Sets the params of this SearchEntitiesBody.
286
286
 
287
- 向量查询自定义参数: ef:每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(对HNSW生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(对HANNS生效) - nprobe: 返回的最近的聚类单元的数量。(对IVF_FLAT生效) - radius:查询范围的半径,若指定则进行range查询。
287
+ **参数解释:** 额外的搜索参数配置。 可以配置的参数: - ef: 每个查询的邻居候选集大小。候选集越大,搜索的精度越高,但是搜索时间也会随之增加。(仅对HNSW索引类型生效) - search_list: 候选列表的大小,越大召回率越高,但性能会下降。(仅对HANNS索引类型生效) - radius:查询范围的半径,若指定则进行range查询。 **约束限制:** 不涉及。 **取值范围:** ef: [top_k + offset, int32_max] search_list: [top_k + offset, int32_max] radius: [0, 1.0] **默认取值:** ef: top_k + offset search_list: topk_k + offset
288
288
 
289
289
  :param params: The params of this SearchEntitiesBody.
290
290
  :type params: dict(str, object)
@@ -20,7 +20,7 @@ class SearchEntitiesResponse(SdkResponse):
20
20
  openapi_types = {
21
21
  'code': 'str',
22
22
  'message': 'str',
23
- 'data': 'dict(str, list[dict(str, object)])'
23
+ 'data': 'EntitiesData'
24
24
  }
25
25
 
26
26
  attribute_map = {
@@ -34,12 +34,12 @@ class SearchEntitiesResponse(SdkResponse):
34
34
 
35
35
  The model defined in huaweicloud sdk
36
36
 
37
- :param code: 返回码
37
+ :param code: **参数解释:** 返回码。参见错误码章节。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
38
38
  :type code: str
39
- :param message: 描述信息
39
+ :param message: **参数解释:** 描述信息 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
40
40
  :type message: str
41
- :param data: 响应数据
42
- :type data: dict(str, list[dict(str, object)])
41
+ :param data:
42
+ :type data: :class:`huaweicloudsdkdwr.v1.EntitiesData`
43
43
  """
44
44
 
45
45
  super(SearchEntitiesResponse, self).__init__()
@@ -60,7 +60,7 @@ class SearchEntitiesResponse(SdkResponse):
60
60
  def code(self):
61
61
  r"""Gets the code of this SearchEntitiesResponse.
62
62
 
63
- 返回码
63
+ **参数解释:** 返回码。参见错误码章节。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
64
64
 
65
65
  :return: The code of this SearchEntitiesResponse.
66
66
  :rtype: str
@@ -71,7 +71,7 @@ class SearchEntitiesResponse(SdkResponse):
71
71
  def code(self, code):
72
72
  r"""Sets the code of this SearchEntitiesResponse.
73
73
 
74
- 返回码
74
+ **参数解释:** 返回码。参见错误码章节。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
75
75
 
76
76
  :param code: The code of this SearchEntitiesResponse.
77
77
  :type code: str
@@ -82,7 +82,7 @@ class SearchEntitiesResponse(SdkResponse):
82
82
  def message(self):
83
83
  r"""Gets the message of this SearchEntitiesResponse.
84
84
 
85
- 描述信息
85
+ **参数解释:** 描述信息 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
86
86
 
87
87
  :return: The message of this SearchEntitiesResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class SearchEntitiesResponse(SdkResponse):
93
93
  def message(self, message):
94
94
  r"""Sets the message of this SearchEntitiesResponse.
95
95
 
96
- 描述信息
96
+ **参数解释:** 描述信息 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
97
97
 
98
98
  :param message: The message of this SearchEntitiesResponse.
99
99
  :type message: str
@@ -104,10 +104,8 @@ class SearchEntitiesResponse(SdkResponse):
104
104
  def data(self):
105
105
  r"""Gets the data of this SearchEntitiesResponse.
106
106
 
107
- 响应数据
108
-
109
107
  :return: The data of this SearchEntitiesResponse.
110
- :rtype: dict(str, list[dict(str, object)])
108
+ :rtype: :class:`huaweicloudsdkdwr.v1.EntitiesData`
111
109
  """
112
110
  return self._data
113
111
 
@@ -115,10 +113,8 @@ class SearchEntitiesResponse(SdkResponse):
115
113
  def data(self, data):
116
114
  r"""Sets the data of this SearchEntitiesResponse.
117
115
 
118
- 响应数据
119
-
120
116
  :param data: The data of this SearchEntitiesResponse.
121
- :type data: dict(str, list[dict(str, object)])
117
+ :type data: :class:`huaweicloudsdkdwr.v1.EntitiesData`
122
118
  """
123
119
  self._data = data
124
120
 
@@ -0,0 +1,364 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class StoreData:
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
+ 'id': 'str',
21
+ 'store_name': 'str',
22
+ 'status': 'str',
23
+ 'create_time': 'str',
24
+ 'region': 'str',
25
+ 'availability_zones': 'list[str]',
26
+ 'flavor': 'Flavor',
27
+ 'charge_info': 'ChargeInfo',
28
+ 'description': 'str',
29
+ 'private_link': 'str'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'id': 'id',
34
+ 'store_name': 'store_name',
35
+ 'status': 'status',
36
+ 'create_time': 'create_time',
37
+ 'region': 'region',
38
+ 'availability_zones': 'availability_zones',
39
+ 'flavor': 'flavor',
40
+ 'charge_info': 'charge_info',
41
+ 'description': 'description',
42
+ 'private_link': 'private_link'
43
+ }
44
+
45
+ def __init__(self, id=None, store_name=None, status=None, create_time=None, region=None, availability_zones=None, flavor=None, charge_info=None, description=None, private_link=None):
46
+ r"""StoreData
47
+
48
+ The model defined in huaweicloud sdk
49
+
50
+ :param id: **参数解释:** 知识仓实例id。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
51
+ :type id: str
52
+ :param store_name: **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
53
+ :type store_name: str
54
+ :param status: **参数解释:** 知识仓实例状态。 **约束限制:** 不涉及。 **取值范围:** CREATING:创建中 NORMAL:正常 CREATED_FAILED:创建失败 ABNORMAL:异常 FROZEN:被冻结 DISK_FULL:存储空间已满 DROPPING:删除中 DELETE_FAILED:删除失败 **默认取值:** 不涉及。
55
+ :type status: str
56
+ :param create_time: **参数解释:** 创建时间。 **约束限制:** 格式为“yyyy-mm-ddThh:mm:ssZ”。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
57
+ :type create_time: str
58
+ :param region: **参数解释:** 区域ID。 **约束限制**: 不涉及。 **取值范围:** 取值:非空,请参见地区和终端节点。 **默认取值:** 不涉及。
59
+ :type region: str
60
+ :param availability_zones: **参数解释:** 可用区ID列表,支持1个,或者多个。 **约束限制:** 不涉及。
61
+ :type availability_zones: list[str]
62
+ :param flavor:
63
+ :type flavor: :class:`huaweicloudsdkdwr.v1.Flavor`
64
+ :param charge_info:
65
+ :type charge_info: :class:`huaweicloudsdkdwr.v1.ChargeInfo`
66
+ :param description: **参数解释:** 知识仓实例描述信息。 **约束限制:** 有效长度0-255 **取值范围:** 不涉及。 **默认取值:** 不涉及。
67
+ :type description: str
68
+ :param private_link: **参数解释:** 知识仓实例的私网链接信息,参考\"VPCEP终端节点对接LMS知识仓实例\"。 **约束限制:** 当前不支持公网访问。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
69
+ :type private_link: str
70
+ """
71
+
72
+
73
+
74
+ self._id = None
75
+ self._store_name = None
76
+ self._status = None
77
+ self._create_time = None
78
+ self._region = None
79
+ self._availability_zones = None
80
+ self._flavor = None
81
+ self._charge_info = None
82
+ self._description = None
83
+ self._private_link = None
84
+ self.discriminator = None
85
+
86
+ self.id = id
87
+ self.store_name = store_name
88
+ self.status = status
89
+ if create_time is not None:
90
+ self.create_time = create_time
91
+ if region is not None:
92
+ self.region = region
93
+ if availability_zones is not None:
94
+ self.availability_zones = availability_zones
95
+ if flavor is not None:
96
+ self.flavor = flavor
97
+ if charge_info is not None:
98
+ self.charge_info = charge_info
99
+ if description is not None:
100
+ self.description = description
101
+ self.private_link = private_link
102
+
103
+ @property
104
+ def id(self):
105
+ r"""Gets the id of this StoreData.
106
+
107
+ **参数解释:** 知识仓实例id。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
108
+
109
+ :return: The id of this StoreData.
110
+ :rtype: str
111
+ """
112
+ return self._id
113
+
114
+ @id.setter
115
+ def id(self, id):
116
+ r"""Sets the id of this StoreData.
117
+
118
+ **参数解释:** 知识仓实例id。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
119
+
120
+ :param id: The id of this StoreData.
121
+ :type id: str
122
+ """
123
+ self._id = id
124
+
125
+ @property
126
+ def store_name(self):
127
+ r"""Gets the store_name of this StoreData.
128
+
129
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
130
+
131
+ :return: The store_name of this StoreData.
132
+ :rtype: str
133
+ """
134
+ return self._store_name
135
+
136
+ @store_name.setter
137
+ def store_name(self, store_name):
138
+ r"""Sets the store_name of this StoreData.
139
+
140
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
141
+
142
+ :param store_name: The store_name of this StoreData.
143
+ :type store_name: str
144
+ """
145
+ self._store_name = store_name
146
+
147
+ @property
148
+ def status(self):
149
+ r"""Gets the status of this StoreData.
150
+
151
+ **参数解释:** 知识仓实例状态。 **约束限制:** 不涉及。 **取值范围:** CREATING:创建中 NORMAL:正常 CREATED_FAILED:创建失败 ABNORMAL:异常 FROZEN:被冻结 DISK_FULL:存储空间已满 DROPPING:删除中 DELETE_FAILED:删除失败 **默认取值:** 不涉及。
152
+
153
+ :return: The status of this StoreData.
154
+ :rtype: str
155
+ """
156
+ return self._status
157
+
158
+ @status.setter
159
+ def status(self, status):
160
+ r"""Sets the status of this StoreData.
161
+
162
+ **参数解释:** 知识仓实例状态。 **约束限制:** 不涉及。 **取值范围:** CREATING:创建中 NORMAL:正常 CREATED_FAILED:创建失败 ABNORMAL:异常 FROZEN:被冻结 DISK_FULL:存储空间已满 DROPPING:删除中 DELETE_FAILED:删除失败 **默认取值:** 不涉及。
163
+
164
+ :param status: The status of this StoreData.
165
+ :type status: str
166
+ """
167
+ self._status = status
168
+
169
+ @property
170
+ def create_time(self):
171
+ r"""Gets the create_time of this StoreData.
172
+
173
+ **参数解释:** 创建时间。 **约束限制:** 格式为“yyyy-mm-ddThh:mm:ssZ”。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
174
+
175
+ :return: The create_time of this StoreData.
176
+ :rtype: str
177
+ """
178
+ return self._create_time
179
+
180
+ @create_time.setter
181
+ def create_time(self, create_time):
182
+ r"""Sets the create_time of this StoreData.
183
+
184
+ **参数解释:** 创建时间。 **约束限制:** 格式为“yyyy-mm-ddThh:mm:ssZ”。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
185
+
186
+ :param create_time: The create_time of this StoreData.
187
+ :type create_time: str
188
+ """
189
+ self._create_time = create_time
190
+
191
+ @property
192
+ def region(self):
193
+ r"""Gets the region of this StoreData.
194
+
195
+ **参数解释:** 区域ID。 **约束限制**: 不涉及。 **取值范围:** 取值:非空,请参见地区和终端节点。 **默认取值:** 不涉及。
196
+
197
+ :return: The region of this StoreData.
198
+ :rtype: str
199
+ """
200
+ return self._region
201
+
202
+ @region.setter
203
+ def region(self, region):
204
+ r"""Sets the region of this StoreData.
205
+
206
+ **参数解释:** 区域ID。 **约束限制**: 不涉及。 **取值范围:** 取值:非空,请参见地区和终端节点。 **默认取值:** 不涉及。
207
+
208
+ :param region: The region of this StoreData.
209
+ :type region: str
210
+ """
211
+ self._region = region
212
+
213
+ @property
214
+ def availability_zones(self):
215
+ r"""Gets the availability_zones of this StoreData.
216
+
217
+ **参数解释:** 可用区ID列表,支持1个,或者多个。 **约束限制:** 不涉及。
218
+
219
+ :return: The availability_zones of this StoreData.
220
+ :rtype: list[str]
221
+ """
222
+ return self._availability_zones
223
+
224
+ @availability_zones.setter
225
+ def availability_zones(self, availability_zones):
226
+ r"""Sets the availability_zones of this StoreData.
227
+
228
+ **参数解释:** 可用区ID列表,支持1个,或者多个。 **约束限制:** 不涉及。
229
+
230
+ :param availability_zones: The availability_zones of this StoreData.
231
+ :type availability_zones: list[str]
232
+ """
233
+ self._availability_zones = availability_zones
234
+
235
+ @property
236
+ def flavor(self):
237
+ r"""Gets the flavor of this StoreData.
238
+
239
+ :return: The flavor of this StoreData.
240
+ :rtype: :class:`huaweicloudsdkdwr.v1.Flavor`
241
+ """
242
+ return self._flavor
243
+
244
+ @flavor.setter
245
+ def flavor(self, flavor):
246
+ r"""Sets the flavor of this StoreData.
247
+
248
+ :param flavor: The flavor of this StoreData.
249
+ :type flavor: :class:`huaweicloudsdkdwr.v1.Flavor`
250
+ """
251
+ self._flavor = flavor
252
+
253
+ @property
254
+ def charge_info(self):
255
+ r"""Gets the charge_info of this StoreData.
256
+
257
+ :return: The charge_info of this StoreData.
258
+ :rtype: :class:`huaweicloudsdkdwr.v1.ChargeInfo`
259
+ """
260
+ return self._charge_info
261
+
262
+ @charge_info.setter
263
+ def charge_info(self, charge_info):
264
+ r"""Sets the charge_info of this StoreData.
265
+
266
+ :param charge_info: The charge_info of this StoreData.
267
+ :type charge_info: :class:`huaweicloudsdkdwr.v1.ChargeInfo`
268
+ """
269
+ self._charge_info = charge_info
270
+
271
+ @property
272
+ def description(self):
273
+ r"""Gets the description of this StoreData.
274
+
275
+ **参数解释:** 知识仓实例描述信息。 **约束限制:** 有效长度0-255 **取值范围:** 不涉及。 **默认取值:** 不涉及。
276
+
277
+ :return: The description of this StoreData.
278
+ :rtype: str
279
+ """
280
+ return self._description
281
+
282
+ @description.setter
283
+ def description(self, description):
284
+ r"""Sets the description of this StoreData.
285
+
286
+ **参数解释:** 知识仓实例描述信息。 **约束限制:** 有效长度0-255 **取值范围:** 不涉及。 **默认取值:** 不涉及。
287
+
288
+ :param description: The description of this StoreData.
289
+ :type description: str
290
+ """
291
+ self._description = description
292
+
293
+ @property
294
+ def private_link(self):
295
+ r"""Gets the private_link of this StoreData.
296
+
297
+ **参数解释:** 知识仓实例的私网链接信息,参考\"VPCEP终端节点对接LMS知识仓实例\"。 **约束限制:** 当前不支持公网访问。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
298
+
299
+ :return: The private_link of this StoreData.
300
+ :rtype: str
301
+ """
302
+ return self._private_link
303
+
304
+ @private_link.setter
305
+ def private_link(self, private_link):
306
+ r"""Sets the private_link of this StoreData.
307
+
308
+ **参数解释:** 知识仓实例的私网链接信息,参考\"VPCEP终端节点对接LMS知识仓实例\"。 **约束限制:** 当前不支持公网访问。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
309
+
310
+ :param private_link: The private_link of this StoreData.
311
+ :type private_link: str
312
+ """
313
+ self._private_link = private_link
314
+
315
+ def to_dict(self):
316
+ """Returns the model properties as a dict"""
317
+ result = {}
318
+
319
+ for attr, _ in six.iteritems(self.openapi_types):
320
+ value = getattr(self, attr)
321
+ if isinstance(value, list):
322
+ result[attr] = list(map(
323
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
324
+ value
325
+ ))
326
+ elif hasattr(value, "to_dict"):
327
+ result[attr] = value.to_dict()
328
+ elif isinstance(value, dict):
329
+ result[attr] = dict(map(
330
+ lambda item: (item[0], item[1].to_dict())
331
+ if hasattr(item[1], "to_dict") else item,
332
+ value.items()
333
+ ))
334
+ else:
335
+ if attr in self.sensitive_list:
336
+ result[attr] = "****"
337
+ else:
338
+ result[attr] = value
339
+
340
+ return result
341
+
342
+ def to_str(self):
343
+ """Returns the string representation of the model"""
344
+ import simplejson as json
345
+ if six.PY2:
346
+ import sys
347
+ reload(sys)
348
+ sys.setdefaultencoding("utf-8")
349
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
350
+
351
+ def __repr__(self):
352
+ """For `print`"""
353
+ return self.to_str()
354
+
355
+ def __eq__(self, other):
356
+ """Returns true if both objects are equal"""
357
+ if not isinstance(other, StoreData):
358
+ return False
359
+
360
+ return self.__dict__ == other.__dict__
361
+
362
+ def __ne__(self, other):
363
+ """Returns true if both objects are not equal"""
364
+ return not self == other
@@ -29,7 +29,7 @@ class StoreInfo:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param store_name: 知识仓实例名称,全域唯一。 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。
32
+ :param store_name: **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
33
33
  :type store_name: str
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class StoreInfo:
44
44
  def store_name(self):
45
45
  r"""Gets the store_name of this StoreInfo.
46
46
 
47
- 知识仓实例名称,全域唯一。 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。
47
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
48
48
 
49
49
  :return: The store_name of this StoreInfo.
50
50
  :rtype: str
@@ -55,7 +55,7 @@ class StoreInfo:
55
55
  def store_name(self, store_name):
56
56
  r"""Sets the store_name of this StoreInfo.
57
57
 
58
- 知识仓实例名称,全域唯一。 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。
58
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
59
59
 
60
60
  :param store_name: The store_name of this StoreInfo.
61
61
  :type store_name: str