huaweicloudsdkdwr 3.1.155__py2.py3-none-any.whl → 3.1.156__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 (74) 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 +41 -41
  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} +25 -26
  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-3.1.155.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/METADATA +2 -2
  70. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/RECORD +73 -71
  71. huaweicloudsdkdwr/v1/model/describe_store_data.py +0 -364
  72. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/LICENSE +0 -0
  73. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/WHEEL +0 -0
  74. {huaweicloudsdkdwr-3.1.155.dist-info → huaweicloudsdkdwr-3.1.156.dist-info}/top_level.txt +0 -0
@@ -20,7 +20,7 @@ class DescribeStoreResponse(SdkResponse):
20
20
  openapi_types = {
21
21
  'code': 'str',
22
22
  'message': 'str',
23
- 'data': 'DescribeStoreData'
23
+ 'data': 'StoreData'
24
24
  }
25
25
 
26
26
  attribute_map = {
@@ -34,12 +34,12 @@ class DescribeStoreResponse(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
41
  :param data:
42
- :type data: :class:`huaweicloudsdkdwr.v1.DescribeStoreData`
42
+ :type data: :class:`huaweicloudsdkdwr.v1.StoreData`
43
43
  """
44
44
 
45
45
  super(DescribeStoreResponse, self).__init__()
@@ -60,7 +60,7 @@ class DescribeStoreResponse(SdkResponse):
60
60
  def code(self):
61
61
  r"""Gets the code of this DescribeStoreResponse.
62
62
 
63
- 返回码
63
+ **参数解释:** 返回码。参见错误码章节。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
64
64
 
65
65
  :return: The code of this DescribeStoreResponse.
66
66
  :rtype: str
@@ -71,7 +71,7 @@ class DescribeStoreResponse(SdkResponse):
71
71
  def code(self, code):
72
72
  r"""Sets the code of this DescribeStoreResponse.
73
73
 
74
- 返回码
74
+ **参数解释:** 返回码。参见错误码章节。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
75
75
 
76
76
  :param code: The code of this DescribeStoreResponse.
77
77
  :type code: str
@@ -82,7 +82,7 @@ class DescribeStoreResponse(SdkResponse):
82
82
  def message(self):
83
83
  r"""Gets the message of this DescribeStoreResponse.
84
84
 
85
- 描述信息
85
+ **参数解释:** 描述信息 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
86
86
 
87
87
  :return: The message of this DescribeStoreResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class DescribeStoreResponse(SdkResponse):
93
93
  def message(self, message):
94
94
  r"""Sets the message of this DescribeStoreResponse.
95
95
 
96
- 描述信息
96
+ **参数解释:** 描述信息 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
97
97
 
98
98
  :param message: The message of this DescribeStoreResponse.
99
99
  :type message: str
@@ -105,7 +105,7 @@ class DescribeStoreResponse(SdkResponse):
105
105
  r"""Gets the data of this DescribeStoreResponse.
106
106
 
107
107
  :return: The data of this DescribeStoreResponse.
108
- :rtype: :class:`huaweicloudsdkdwr.v1.DescribeStoreData`
108
+ :rtype: :class:`huaweicloudsdkdwr.v1.StoreData`
109
109
  """
110
110
  return self._data
111
111
 
@@ -114,7 +114,7 @@ class DescribeStoreResponse(SdkResponse):
114
114
  r"""Sets the data of this DescribeStoreResponse.
115
115
 
116
116
  :param data: The data of this DescribeStoreResponse.
117
- :type data: :class:`huaweicloudsdkdwr.v1.DescribeStoreData`
117
+ :type data: :class:`huaweicloudsdkdwr.v1.StoreData`
118
118
  """
119
119
  self._data = data
120
120
 
@@ -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 EntitiesData:
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
+ 'entities': 'list[dict(str, object)]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'entities': 'entities'
25
+ }
26
+
27
+ def __init__(self, entities=None):
28
+ r"""EntitiesData
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param entities: **参数解释:** 查询到的信息。 **约束限制:** 不涉及。
33
+ :type entities: list[dict(str, object)]
34
+ """
35
+
36
+
37
+
38
+ self._entities = None
39
+ self.discriminator = None
40
+
41
+ self.entities = entities
42
+
43
+ @property
44
+ def entities(self):
45
+ r"""Gets the entities of this EntitiesData.
46
+
47
+ **参数解释:** 查询到的信息。 **约束限制:** 不涉及。
48
+
49
+ :return: The entities of this EntitiesData.
50
+ :rtype: list[dict(str, object)]
51
+ """
52
+ return self._entities
53
+
54
+ @entities.setter
55
+ def entities(self, entities):
56
+ r"""Sets the entities of this EntitiesData.
57
+
58
+ **参数解释:** 查询到的信息。 **约束限制:** 不涉及。
59
+
60
+ :param entities: The entities of this EntitiesData.
61
+ :type entities: list[dict(str, object)]
62
+ """
63
+ self._entities = entities
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, EntitiesData):
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
@@ -37,15 +37,15 @@ class Field:
37
37
 
38
38
  The model defined in huaweicloud sdk
39
39
 
40
- :param field_name: 要在集合中创建的字段名称
40
+ :param field_name: **参数解释:** 要在集合中创建的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
41
41
  :type field_name: str
42
- :param data_type: 字段的数据类型;“Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\", \"SparseFloatVector\"
42
+ :param data_type: **参数解释:** 字段的数据类型。 **约束限制:** 不涉及。 **取值范围:** “Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\", \"SparseFloatVector\"。 **默认取值:** 不涉及。
43
43
  :type data_type: str
44
- :param element_data_type: 数组内部的数据类型,当前支持“Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String
44
+ :param element_data_type: **参数解释:** 数组内部的数据类型。 **约束限制:** 在data_type是Array时生效。 **取值范围:** “Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”。 **默认取值:** 不涉及。
45
45
  :type element_data_type: str
46
- :param element_type_params: 如果field为FloatVector类型向量字段,则必须设定维度参数dim: 向量字段的维度,最大支持32,768维 如果field为String类型字段或Array 元素类型为String类型,则可设定字段值最大长度max_length,默认为256 如果field为Array类型字段,则可设定数组最大容量max_capacity,默认为32
46
+ :param element_type_params: **参数解释:** 每个field列的参数。 **约束限制:** 如果field为FloatVector类型向量字段,则必须设定维度参数dim 如果field为String类型字段或Array 元素类型为String类型,则可设定字段值最大长度max_length如果field为Array类型字段,则可设定数组最大容量max_capacity。 **取值范围:** 如果field为FloatVector类型向量字段时,参数dim的有效取值范围是[2-32768]; 如果field为String类型字段或Array 元素类型为String类型, 参数max_length的有效取值范围是[1-65535]; 如果field为Array类型字段,参数max_capacity的有效取值范围是[1-32768] **默认取值:** 如果field为String类型字段或Array 元素类型为String类型, 参数max_length的默认值是256 如果field为Array类型字段,参数max_capacity的默认值是32
47
47
  :type element_type_params: dict(str, object)
48
- :param partition_key: 该字段是否为partition_key,默认false。(如果partition_key为true,data_type仅支持String与Int64);最多只有一个field的partition_key设置为true
48
+ :param partition_key: **参数解释:** 是否将这个filed列设置为分区键。 **约束限制:** 1.只能在数据类型为String与Int64field列上设置分区键; 2.最多只能设置1个field为分区键。 **取值范围:** true,false。 **默认取值:** false。
49
49
  :type partition_key: bool
50
50
  """
51
51
 
@@ -71,7 +71,7 @@ class Field:
71
71
  def field_name(self):
72
72
  r"""Gets the field_name of this Field.
73
73
 
74
- 要在集合中创建的字段名称
74
+ **参数解释:** 要在集合中创建的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
75
75
 
76
76
  :return: The field_name of this Field.
77
77
  :rtype: str
@@ -82,7 +82,7 @@ class Field:
82
82
  def field_name(self, field_name):
83
83
  r"""Sets the field_name of this Field.
84
84
 
85
- 要在集合中创建的字段名称
85
+ **参数解释:** 要在集合中创建的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
86
86
 
87
87
  :param field_name: The field_name of this Field.
88
88
  :type field_name: str
@@ -93,7 +93,7 @@ class Field:
93
93
  def data_type(self):
94
94
  r"""Gets the data_type of this Field.
95
95
 
96
- 字段的数据类型;“Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\", \"SparseFloatVector\"
96
+ **参数解释:** 字段的数据类型。 **约束限制:** 不涉及。 **取值范围:** “Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\", \"SparseFloatVector\"。 **默认取值:** 不涉及。
97
97
 
98
98
  :return: The data_type of this Field.
99
99
  :rtype: str
@@ -104,7 +104,7 @@ class Field:
104
104
  def data_type(self, data_type):
105
105
  r"""Sets the data_type of this Field.
106
106
 
107
- 字段的数据类型;“Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\", \"SparseFloatVector\"
107
+ **参数解释:** 字段的数据类型。 **约束限制:** 不涉及。 **取值范围:** “Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\", \"SparseFloatVector\"。 **默认取值:** 不涉及。
108
108
 
109
109
  :param data_type: The data_type of this Field.
110
110
  :type data_type: str
@@ -115,7 +115,7 @@ class Field:
115
115
  def element_data_type(self):
116
116
  r"""Gets the element_data_type of this Field.
117
117
 
118
- 数组内部的数据类型,当前支持“Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String
118
+ **参数解释:** 数组内部的数据类型。 **约束限制:** 在data_type是Array时生效。 **取值范围:** “Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”。 **默认取值:** 不涉及。
119
119
 
120
120
  :return: The element_data_type of this Field.
121
121
  :rtype: str
@@ -126,7 +126,7 @@ class Field:
126
126
  def element_data_type(self, element_data_type):
127
127
  r"""Sets the element_data_type of this Field.
128
128
 
129
- 数组内部的数据类型,当前支持“Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String
129
+ **参数解释:** 数组内部的数据类型。 **约束限制:** 在data_type是Array时生效。 **取值范围:** “Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”。 **默认取值:** 不涉及。
130
130
 
131
131
  :param element_data_type: The element_data_type of this Field.
132
132
  :type element_data_type: str
@@ -137,7 +137,7 @@ class Field:
137
137
  def element_type_params(self):
138
138
  r"""Gets the element_type_params of this Field.
139
139
 
140
- 如果field为FloatVector类型向量字段,则必须设定维度参数dim: 向量字段的维度,最大支持32,768维 如果field为String类型字段或Array 元素类型为String类型,则可设定字段值最大长度max_length,默认为256 如果field为Array类型字段,则可设定数组最大容量max_capacity,默认为32
140
+ **参数解释:** 每个field列的参数。 **约束限制:** 如果field为FloatVector类型向量字段,则必须设定维度参数dim 如果field为String类型字段或Array 元素类型为String类型,则可设定字段值最大长度max_length如果field为Array类型字段,则可设定数组最大容量max_capacity。 **取值范围:** 如果field为FloatVector类型向量字段时,参数dim的有效取值范围是[2-32768]; 如果field为String类型字段或Array 元素类型为String类型, 参数max_length的有效取值范围是[1-65535]; 如果field为Array类型字段,参数max_capacity的有效取值范围是[1-32768] **默认取值:** 如果field为String类型字段或Array 元素类型为String类型, 参数max_length的默认值是256 如果field为Array类型字段,参数max_capacity的默认值是32
141
141
 
142
142
  :return: The element_type_params of this Field.
143
143
  :rtype: dict(str, object)
@@ -148,7 +148,7 @@ class Field:
148
148
  def element_type_params(self, element_type_params):
149
149
  r"""Sets the element_type_params of this Field.
150
150
 
151
- 如果field为FloatVector类型向量字段,则必须设定维度参数dim: 向量字段的维度,最大支持32,768维 如果field为String类型字段或Array 元素类型为String类型,则可设定字段值最大长度max_length,默认为256 如果field为Array类型字段,则可设定数组最大容量max_capacity,默认为32
151
+ **参数解释:** 每个field列的参数。 **约束限制:** 如果field为FloatVector类型向量字段,则必须设定维度参数dim 如果field为String类型字段或Array 元素类型为String类型,则可设定字段值最大长度max_length如果field为Array类型字段,则可设定数组最大容量max_capacity。 **取值范围:** 如果field为FloatVector类型向量字段时,参数dim的有效取值范围是[2-32768]; 如果field为String类型字段或Array 元素类型为String类型, 参数max_length的有效取值范围是[1-65535]; 如果field为Array类型字段,参数max_capacity的有效取值范围是[1-32768] **默认取值:** 如果field为String类型字段或Array 元素类型为String类型, 参数max_length的默认值是256 如果field为Array类型字段,参数max_capacity的默认值是32
152
152
 
153
153
  :param element_type_params: The element_type_params of this Field.
154
154
  :type element_type_params: dict(str, object)
@@ -159,7 +159,7 @@ class Field:
159
159
  def partition_key(self):
160
160
  r"""Gets the partition_key of this Field.
161
161
 
162
- 该字段是否为partition_key,默认false。(如果partition_key为true,data_type仅支持String与Int64);最多只有一个field的partition_key设置为true
162
+ **参数解释:** 是否将这个filed列设置为分区键。 **约束限制:** 1.只能在数据类型为String与Int64field列上设置分区键; 2.最多只能设置1个field为分区键。 **取值范围:** true,false。 **默认取值:** false。
163
163
 
164
164
  :return: The partition_key of this Field.
165
165
  :rtype: bool
@@ -170,7 +170,7 @@ class Field:
170
170
  def partition_key(self, partition_key):
171
171
  r"""Sets the partition_key of this Field.
172
172
 
173
- 该字段是否为partition_key,默认false。(如果partition_key为true,data_type仅支持String与Int64);最多只有一个field的partition_key设置为true
173
+ **参数解释:** 是否将这个filed列设置为分区键。 **约束限制:** 1.只能在数据类型为String与Int64field列上设置分区键; 2.最多只能设置1个field为分区键。 **取值范围:** true,false。 **默认取值:** false。
174
174
 
175
175
  :param partition_key: The partition_key of this Field.
176
176
  :type partition_key: bool
@@ -20,29 +20,41 @@ class FieldData:
20
20
  'field_name': 'str',
21
21
  'data_type': 'str',
22
22
  'primary_key': 'bool',
23
- 'partition_key': 'bool'
23
+ 'partition_key': 'bool',
24
+ 'dim': 'int',
25
+ 'max_length': 'int',
26
+ 'max_capacity': 'int'
24
27
  }
25
28
 
26
29
  attribute_map = {
27
30
  'field_name': 'field_name',
28
31
  'data_type': 'data_type',
29
32
  'primary_key': 'primary_key',
30
- 'partition_key': 'partition_key'
33
+ 'partition_key': 'partition_key',
34
+ 'dim': 'dim',
35
+ 'max_length': 'max_length',
36
+ 'max_capacity': 'max_capacity'
31
37
  }
32
38
 
33
- def __init__(self, field_name=None, data_type=None, primary_key=None, partition_key=None):
39
+ def __init__(self, field_name=None, data_type=None, primary_key=None, partition_key=None, dim=None, max_length=None, max_capacity=None):
34
40
  r"""FieldData
35
41
 
36
42
  The model defined in huaweicloud sdk
37
43
 
38
- :param field_name: 要在集合中创建的字段名称
44
+ :param field_name: **参数解释:** 要在集合中创建的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
39
45
  :type field_name: str
40
- :param data_type: 字段的数据类型;“Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\",\"SparseFloatVector\"。注意向量类型后会添加维度信息,如\"SparseFloatVector(256)
46
+ :param data_type: **参数解释:** 字段的数据类型。 **约束限制:** 不涉及。 **取值范围:** “Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\", \"SparseFloatVector\"。 **默认取值:** 不涉及。
41
47
  :type data_type: str
42
- :param primary_key: 是否是主键字段
48
+ :param primary_key: **参数解释:** 是否是主键字段。 **约束限制:** 不涉及。 **取值范围:** true,false。 **默认取值:** 不涉及。
43
49
  :type primary_key: bool
44
- :param partition_key: 是否是partition key
50
+ :param partition_key: **参数解释:** 是否是partition key。 **约束限制:** 不涉及。 **取值范围:** true,false。 **默认取值:** 不涉及。
45
51
  :type partition_key: bool
52
+ :param dim: **参数解释:** 向量列的维度值。 **约束限制:** field的数据类型是FloatVector, SparseFloatVector时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
53
+ :type dim: int
54
+ :param max_length: **参数解释:** 字符串列设置的最大长度值。 **约束限制:** field的数据类型是String或者 Array 元素类型为String类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
55
+ :type max_length: int
56
+ :param max_capacity: **参数解释:** 数组列设置的最大容量值。 **约束限制:** field的数据类型是 Array 类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
57
+ :type max_capacity: int
46
58
  """
47
59
 
48
60
 
@@ -51,18 +63,27 @@ class FieldData:
51
63
  self._data_type = None
52
64
  self._primary_key = None
53
65
  self._partition_key = None
66
+ self._dim = None
67
+ self._max_length = None
68
+ self._max_capacity = None
54
69
  self.discriminator = None
55
70
 
56
71
  self.field_name = field_name
57
72
  self.data_type = data_type
58
73
  self.primary_key = primary_key
59
74
  self.partition_key = partition_key
75
+ if dim is not None:
76
+ self.dim = dim
77
+ if max_length is not None:
78
+ self.max_length = max_length
79
+ if max_capacity is not None:
80
+ self.max_capacity = max_capacity
60
81
 
61
82
  @property
62
83
  def field_name(self):
63
84
  r"""Gets the field_name of this FieldData.
64
85
 
65
- 要在集合中创建的字段名称
86
+ **参数解释:** 要在集合中创建的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
66
87
 
67
88
  :return: The field_name of this FieldData.
68
89
  :rtype: str
@@ -73,7 +94,7 @@ class FieldData:
73
94
  def field_name(self, field_name):
74
95
  r"""Sets the field_name of this FieldData.
75
96
 
76
- 要在集合中创建的字段名称
97
+ **参数解释:** 要在集合中创建的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
77
98
 
78
99
  :param field_name: The field_name of this FieldData.
79
100
  :type field_name: str
@@ -84,7 +105,7 @@ class FieldData:
84
105
  def data_type(self):
85
106
  r"""Gets the data_type of this FieldData.
86
107
 
87
- 字段的数据类型;“Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\",\"SparseFloatVector\"。注意向量类型后会添加维度信息,如\"SparseFloatVector(256)
108
+ **参数解释:** 字段的数据类型。 **约束限制:** 不涉及。 **取值范围:** “Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\", \"SparseFloatVector\"。 **默认取值:** 不涉及。
88
109
 
89
110
  :return: The data_type of this FieldData.
90
111
  :rtype: str
@@ -95,7 +116,7 @@ class FieldData:
95
116
  def data_type(self, data_type):
96
117
  r"""Sets the data_type of this FieldData.
97
118
 
98
- 字段的数据类型;“Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\",\"SparseFloatVector\"。注意向量类型后会添加维度信息,如\"SparseFloatVector(256)
119
+ **参数解释:** 字段的数据类型。 **约束限制:** 不涉及。 **取值范围:** “Bool”,“Int8”,“Int16”,“Int32”,“Int64”,“Float”,“String”,“Array”,“JSON”,\"FloatVector\", \"SparseFloatVector\"。 **默认取值:** 不涉及。
99
120
 
100
121
  :param data_type: The data_type of this FieldData.
101
122
  :type data_type: str
@@ -106,7 +127,7 @@ class FieldData:
106
127
  def primary_key(self):
107
128
  r"""Gets the primary_key of this FieldData.
108
129
 
109
- 是否是主键字段
130
+ **参数解释:** 是否是主键字段。 **约束限制:** 不涉及。 **取值范围:** true,false。 **默认取值:** 不涉及。
110
131
 
111
132
  :return: The primary_key of this FieldData.
112
133
  :rtype: bool
@@ -117,7 +138,7 @@ class FieldData:
117
138
  def primary_key(self, primary_key):
118
139
  r"""Sets the primary_key of this FieldData.
119
140
 
120
- 是否是主键字段
141
+ **参数解释:** 是否是主键字段。 **约束限制:** 不涉及。 **取值范围:** true,false。 **默认取值:** 不涉及。
121
142
 
122
143
  :param primary_key: The primary_key of this FieldData.
123
144
  :type primary_key: bool
@@ -128,7 +149,7 @@ class FieldData:
128
149
  def partition_key(self):
129
150
  r"""Gets the partition_key of this FieldData.
130
151
 
131
- 是否是partition key
152
+ **参数解释:** 是否是partition key。 **约束限制:** 不涉及。 **取值范围:** true,false。 **默认取值:** 不涉及。
132
153
 
133
154
  :return: The partition_key of this FieldData.
134
155
  :rtype: bool
@@ -139,13 +160,79 @@ class FieldData:
139
160
  def partition_key(self, partition_key):
140
161
  r"""Sets the partition_key of this FieldData.
141
162
 
142
- 是否是partition key
163
+ **参数解释:** 是否是partition key。 **约束限制:** 不涉及。 **取值范围:** true,false。 **默认取值:** 不涉及。
143
164
 
144
165
  :param partition_key: The partition_key of this FieldData.
145
166
  :type partition_key: bool
146
167
  """
147
168
  self._partition_key = partition_key
148
169
 
170
+ @property
171
+ def dim(self):
172
+ r"""Gets the dim of this FieldData.
173
+
174
+ **参数解释:** 向量列的维度值。 **约束限制:** field的数据类型是FloatVector, SparseFloatVector时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
175
+
176
+ :return: The dim of this FieldData.
177
+ :rtype: int
178
+ """
179
+ return self._dim
180
+
181
+ @dim.setter
182
+ def dim(self, dim):
183
+ r"""Sets the dim of this FieldData.
184
+
185
+ **参数解释:** 向量列的维度值。 **约束限制:** field的数据类型是FloatVector, SparseFloatVector时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
186
+
187
+ :param dim: The dim of this FieldData.
188
+ :type dim: int
189
+ """
190
+ self._dim = dim
191
+
192
+ @property
193
+ def max_length(self):
194
+ r"""Gets the max_length of this FieldData.
195
+
196
+ **参数解释:** 字符串列设置的最大长度值。 **约束限制:** field的数据类型是String或者 Array 元素类型为String类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
197
+
198
+ :return: The max_length of this FieldData.
199
+ :rtype: int
200
+ """
201
+ return self._max_length
202
+
203
+ @max_length.setter
204
+ def max_length(self, max_length):
205
+ r"""Sets the max_length of this FieldData.
206
+
207
+ **参数解释:** 字符串列设置的最大长度值。 **约束限制:** field的数据类型是String或者 Array 元素类型为String类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
208
+
209
+ :param max_length: The max_length of this FieldData.
210
+ :type max_length: int
211
+ """
212
+ self._max_length = max_length
213
+
214
+ @property
215
+ def max_capacity(self):
216
+ r"""Gets the max_capacity of this FieldData.
217
+
218
+ **参数解释:** 数组列设置的最大容量值。 **约束限制:** field的数据类型是 Array 类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
219
+
220
+ :return: The max_capacity of this FieldData.
221
+ :rtype: int
222
+ """
223
+ return self._max_capacity
224
+
225
+ @max_capacity.setter
226
+ def max_capacity(self, max_capacity):
227
+ r"""Sets the max_capacity of this FieldData.
228
+
229
+ **参数解释:** 数组列设置的最大容量值。 **约束限制:** field的数据类型是 Array 类型时生效。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
230
+
231
+ :param max_capacity: The max_capacity of this FieldData.
232
+ :type max_capacity: int
233
+ """
234
+ self._max_capacity = max_capacity
235
+
149
236
  def to_dict(self):
150
237
  """Returns the model properties as a dict"""
151
238
  result = {}
@@ -31,9 +31,9 @@ class Flavor:
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param cu: cu规格,取值范围xlarge, 2xlarge, 4xlarge, 8xlarge, 16xlarge
34
+ :param cu: **参数解释:** CU规格。 **约束限制:** 不涉及。 **取值范围:** xlarge, 2xlarge, 4xlarge, 8xlarge, 16xlarge。 **默认取值:** 不涉及。
35
35
  :type cu: str
36
- :param num: 选择cu规格的数量。不能超过CU配额,如有大量需求,请提工单申请
36
+ :param num: **参数解释:** 选择CU规格的数量。 **约束限制:** 不能超过CU配额,如有大量需求,请提工单申请。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
37
37
  :type num: int
38
38
  """
39
39
 
@@ -50,7 +50,7 @@ class Flavor:
50
50
  def cu(self):
51
51
  r"""Gets the cu of this Flavor.
52
52
 
53
- cu规格,取值范围xlarge, 2xlarge, 4xlarge, 8xlarge, 16xlarge
53
+ **参数解释:** CU规格。 **约束限制:** 不涉及。 **取值范围:** xlarge, 2xlarge, 4xlarge, 8xlarge, 16xlarge。 **默认取值:** 不涉及。
54
54
 
55
55
  :return: The cu of this Flavor.
56
56
  :rtype: str
@@ -61,7 +61,7 @@ class Flavor:
61
61
  def cu(self, cu):
62
62
  r"""Sets the cu of this Flavor.
63
63
 
64
- cu规格,取值范围xlarge, 2xlarge, 4xlarge, 8xlarge, 16xlarge
64
+ **参数解释:** CU规格。 **约束限制:** 不涉及。 **取值范围:** xlarge, 2xlarge, 4xlarge, 8xlarge, 16xlarge。 **默认取值:** 不涉及。
65
65
 
66
66
  :param cu: The cu of this Flavor.
67
67
  :type cu: str
@@ -72,7 +72,7 @@ class Flavor:
72
72
  def num(self):
73
73
  r"""Gets the num of this Flavor.
74
74
 
75
- 选择cu规格的数量。不能超过CU配额,如有大量需求,请提工单申请
75
+ **参数解释:** 选择CU规格的数量。 **约束限制:** 不能超过CU配额,如有大量需求,请提工单申请。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
76
76
 
77
77
  :return: The num of this Flavor.
78
78
  :rtype: int
@@ -83,7 +83,7 @@ class Flavor:
83
83
  def num(self, num):
84
84
  r"""Sets the num of this Flavor.
85
85
 
86
- 选择cu规格的数量。不能超过CU配额,如有大量需求,请提工单申请
86
+ **参数解释:** 选择CU规格的数量。 **约束限制:** 不能超过CU配额,如有大量需求,请提工单申请。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
87
87
 
88
88
  :param num: The num of this Flavor.
89
89
  :type num: int
@@ -33,11 +33,11 @@ class GetIndexProgressBody:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param store_name: 知识仓实例名称
36
+ :param store_name: **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
37
37
  :type store_name: str
38
- :param collection_name: Collection 名称
38
+ :param collection_name: **参数解释:** collection名称,知识仓内唯一。 **约束限制:** 长度范围为1到255个字符,支持字母、数字、中划线(-)和下划线(_),大小写敏感。第一个字符只能够是下划线(_)和字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
39
39
  :type collection_name: str
40
- :param index_name: 对应的索引名
40
+ :param index_name: **参数解释:** 创建的索引名称,collection内唯一。 **约束限制:** 长度范围为1到255个字符,支持字母、数字、中划线(-)和下划线(_),大小写敏感。第一个字符只能够是下划线(_)和字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
41
41
  :type index_name: str
42
42
  """
43
43
 
@@ -56,7 +56,7 @@ class GetIndexProgressBody:
56
56
  def store_name(self):
57
57
  r"""Gets the store_name of this GetIndexProgressBody.
58
58
 
59
- 知识仓实例名称
59
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
60
60
 
61
61
  :return: The store_name of this GetIndexProgressBody.
62
62
  :rtype: str
@@ -67,7 +67,7 @@ class GetIndexProgressBody:
67
67
  def store_name(self, store_name):
68
68
  r"""Sets the store_name of this GetIndexProgressBody.
69
69
 
70
- 知识仓实例名称
70
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
71
71
 
72
72
  :param store_name: The store_name of this GetIndexProgressBody.
73
73
  :type store_name: str
@@ -78,7 +78,7 @@ class GetIndexProgressBody:
78
78
  def collection_name(self):
79
79
  r"""Gets the collection_name of this GetIndexProgressBody.
80
80
 
81
- Collection 名称
81
+ **参数解释:** collection名称,知识仓内唯一。 **约束限制:** 长度范围为1到255个字符,支持字母、数字、中划线(-)和下划线(_),大小写敏感。第一个字符只能够是下划线(_)和字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
82
82
 
83
83
  :return: The collection_name of this GetIndexProgressBody.
84
84
  :rtype: str
@@ -89,7 +89,7 @@ class GetIndexProgressBody:
89
89
  def collection_name(self, collection_name):
90
90
  r"""Sets the collection_name of this GetIndexProgressBody.
91
91
 
92
- Collection 名称
92
+ **参数解释:** collection名称,知识仓内唯一。 **约束限制:** 长度范围为1到255个字符,支持字母、数字、中划线(-)和下划线(_),大小写敏感。第一个字符只能够是下划线(_)和字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
93
93
 
94
94
  :param collection_name: The collection_name of this GetIndexProgressBody.
95
95
  :type collection_name: str
@@ -100,7 +100,7 @@ class GetIndexProgressBody:
100
100
  def index_name(self):
101
101
  r"""Gets the index_name of this GetIndexProgressBody.
102
102
 
103
- 对应的索引名
103
+ **参数解释:** 创建的索引名称,collection内唯一。 **约束限制:** 长度范围为1到255个字符,支持字母、数字、中划线(-)和下划线(_),大小写敏感。第一个字符只能够是下划线(_)和字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
104
104
 
105
105
  :return: The index_name of this GetIndexProgressBody.
106
106
  :rtype: str
@@ -111,7 +111,7 @@ class GetIndexProgressBody:
111
111
  def index_name(self, index_name):
112
112
  r"""Sets the index_name of this GetIndexProgressBody.
113
113
 
114
- 对应的索引名
114
+ **参数解释:** 创建的索引名称,collection内唯一。 **约束限制:** 长度范围为1到255个字符,支持字母、数字、中划线(-)和下划线(_),大小写敏感。第一个字符只能够是下划线(_)和字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
115
115
 
116
116
  :param index_name: The index_name of this GetIndexProgressBody.
117
117
  :type index_name: str