huaweicloudsdkdwr 3.1.181__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.
Files changed (174) hide show
  1. huaweicloudsdkdwr/__init__.py +0 -0
  2. huaweicloudsdkdwr/v1/__init__.py +97 -0
  3. huaweicloudsdkdwr/v1/dwr_async_client.py +1584 -0
  4. huaweicloudsdkdwr/v1/dwr_client.py +1581 -0
  5. huaweicloudsdkdwr/v1/model/__init__.py +94 -0
  6. huaweicloudsdkdwr/v1/model/build_progress.py +224 -0
  7. huaweicloudsdkdwr/v1/model/charge_info.py +223 -0
  8. huaweicloudsdkdwr/v1/model/collection_base_info.py +135 -0
  9. huaweicloudsdkdwr/v1/model/create_collection_body.py +274 -0
  10. huaweicloudsdkdwr/v1/model/create_collection_request.py +104 -0
  11. huaweicloudsdkdwr/v1/model/create_collection_response.py +141 -0
  12. huaweicloudsdkdwr/v1/model/create_index_body.py +159 -0
  13. huaweicloudsdkdwr/v1/model/create_index_request.py +104 -0
  14. huaweicloudsdkdwr/v1/model/create_index_response.py +141 -0
  15. huaweicloudsdkdwr/v1/model/create_store_body.py +241 -0
  16. huaweicloudsdkdwr/v1/model/create_store_data.py +328 -0
  17. huaweicloudsdkdwr/v1/model/create_store_request.py +104 -0
  18. huaweicloudsdkdwr/v1/model/create_store_response.py +166 -0
  19. huaweicloudsdkdwr/v1/model/decribe_collection_data.py +337 -0
  20. huaweicloudsdkdwr/v1/model/delete_collection_request.py +104 -0
  21. huaweicloudsdkdwr/v1/model/delete_collection_response.py +141 -0
  22. huaweicloudsdkdwr/v1/model/delete_entities_body.py +163 -0
  23. huaweicloudsdkdwr/v1/model/delete_entities_request.py +104 -0
  24. huaweicloudsdkdwr/v1/model/delete_entities_response.py +141 -0
  25. huaweicloudsdkdwr/v1/model/delete_index_body.py +163 -0
  26. huaweicloudsdkdwr/v1/model/delete_index_request.py +104 -0
  27. huaweicloudsdkdwr/v1/model/delete_index_response.py +141 -0
  28. huaweicloudsdkdwr/v1/model/delete_store_data.py +107 -0
  29. huaweicloudsdkdwr/v1/model/delete_store_request.py +104 -0
  30. huaweicloudsdkdwr/v1/model/delete_store_response.py +166 -0
  31. huaweicloudsdkdwr/v1/model/describe_collection_request.py +104 -0
  32. huaweicloudsdkdwr/v1/model/describe_collection_response.py +166 -0
  33. huaweicloudsdkdwr/v1/model/describe_index_body.py +163 -0
  34. huaweicloudsdkdwr/v1/model/describe_index_data.py +159 -0
  35. huaweicloudsdkdwr/v1/model/describe_index_request.py +104 -0
  36. huaweicloudsdkdwr/v1/model/describe_index_response.py +166 -0
  37. huaweicloudsdkdwr/v1/model/describe_job_body.py +107 -0
  38. huaweicloudsdkdwr/v1/model/describe_job_request.py +104 -0
  39. huaweicloudsdkdwr/v1/model/describe_job_response.py +166 -0
  40. huaweicloudsdkdwr/v1/model/describe_store_request.py +104 -0
  41. huaweicloudsdkdwr/v1/model/describe_store_response.py +166 -0
  42. huaweicloudsdkdwr/v1/model/entities_data.py +107 -0
  43. huaweicloudsdkdwr/v1/model/field.py +222 -0
  44. huaweicloudsdkdwr/v1/model/field_data.py +278 -0
  45. huaweicloudsdkdwr/v1/model/flavor.py +135 -0
  46. huaweicloudsdkdwr/v1/model/get_index_progress_body.py +163 -0
  47. huaweicloudsdkdwr/v1/model/get_progress_data.py +160 -0
  48. huaweicloudsdkdwr/v1/model/get_progress_request.py +104 -0
  49. huaweicloudsdkdwr/v1/model/get_progress_response.py +166 -0
  50. huaweicloudsdkdwr/v1/model/hybrid_search_body.py +275 -0
  51. huaweicloudsdkdwr/v1/model/hybrid_search_request.py +104 -0
  52. huaweicloudsdkdwr/v1/model/hybrid_search_response.py +166 -0
  53. huaweicloudsdkdwr/v1/model/index_desc.py +191 -0
  54. huaweicloudsdkdwr/v1/model/index_params.py +164 -0
  55. huaweicloudsdkdwr/v1/model/insert_entities_body.py +163 -0
  56. huaweicloudsdkdwr/v1/model/insert_entities_data.py +136 -0
  57. huaweicloudsdkdwr/v1/model/insert_entities_request.py +104 -0
  58. huaweicloudsdkdwr/v1/model/insert_entities_response.py +166 -0
  59. huaweicloudsdkdwr/v1/model/job_data.py +309 -0
  60. huaweicloudsdkdwr/v1/model/list_collection_data.py +136 -0
  61. huaweicloudsdkdwr/v1/model/list_collection_details.py +253 -0
  62. huaweicloudsdkdwr/v1/model/list_collections_body.py +136 -0
  63. huaweicloudsdkdwr/v1/model/list_collections_request.py +104 -0
  64. huaweicloudsdkdwr/v1/model/list_collections_response.py +166 -0
  65. huaweicloudsdkdwr/v1/model/list_jobs_data.py +108 -0
  66. huaweicloudsdkdwr/v1/model/list_jobs_request.py +224 -0
  67. huaweicloudsdkdwr/v1/model/list_jobs_response.py +166 -0
  68. huaweicloudsdkdwr/v1/model/list_store_data.py +107 -0
  69. huaweicloudsdkdwr/v1/model/list_stores_request.py +77 -0
  70. huaweicloudsdkdwr/v1/model/list_stores_response.py +166 -0
  71. huaweicloudsdkdwr/v1/model/load_collection_body.py +135 -0
  72. huaweicloudsdkdwr/v1/model/load_collection_request.py +104 -0
  73. huaweicloudsdkdwr/v1/model/load_collection_response.py +141 -0
  74. huaweicloudsdkdwr/v1/model/primary_field.py +135 -0
  75. huaweicloudsdkdwr/v1/model/query_entities_body.py +250 -0
  76. huaweicloudsdkdwr/v1/model/query_entities_request.py +104 -0
  77. huaweicloudsdkdwr/v1/model/query_entities_response.py +166 -0
  78. huaweicloudsdkdwr/v1/model/release_collection_request.py +104 -0
  79. huaweicloudsdkdwr/v1/model/release_collection_response.py +141 -0
  80. huaweicloudsdkdwr/v1/model/rerank.py +136 -0
  81. huaweicloudsdkdwr/v1/model/scale_store_body.py +135 -0
  82. huaweicloudsdkdwr/v1/model/scale_store_data.py +220 -0
  83. huaweicloudsdkdwr/v1/model/scale_store_request.py +104 -0
  84. huaweicloudsdkdwr/v1/model/scale_store_response.py +166 -0
  85. huaweicloudsdkdwr/v1/model/search_entities_body.py +336 -0
  86. huaweicloudsdkdwr/v1/model/search_entities_request.py +104 -0
  87. huaweicloudsdkdwr/v1/model/search_entities_response.py +166 -0
  88. huaweicloudsdkdwr/v1/model/store_data.py +357 -0
  89. huaweicloudsdkdwr/v1/model/store_info.py +107 -0
  90. huaweicloudsdkdwr/v1/model/sub_search.py +251 -0
  91. huaweicloudsdkdwr/v1/model/upsert_entities_body.py +163 -0
  92. huaweicloudsdkdwr/v1/model/upsert_entities_data.py +135 -0
  93. huaweicloudsdkdwr/v1/model/upsert_entities_request.py +104 -0
  94. huaweicloudsdkdwr/v1/model/upsert_entities_response.py +166 -0
  95. huaweicloudsdkdwr/v1/region/__init__.py +0 -0
  96. huaweicloudsdkdwr/v1/region/dwr_region.py +43 -0
  97. huaweicloudsdkdwr/v3/__init__.py +76 -0
  98. huaweicloudsdkdwr/v3/dwr_async_client.py +1622 -0
  99. huaweicloudsdkdwr/v3/dwr_client.py +1619 -0
  100. huaweicloudsdkdwr/v3/model/__init__.py +73 -0
  101. huaweicloudsdkdwr/v3/model/accept_service_contract_request.py +107 -0
  102. huaweicloudsdkdwr/v3/model/accept_service_contract_response.py +133 -0
  103. huaweicloudsdkdwr/v3/model/action.py +420 -0
  104. huaweicloudsdkdwr/v3/model/action_result.py +221 -0
  105. huaweicloudsdkdwr/v3/model/action_template_item.py +137 -0
  106. huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_request.py +132 -0
  107. huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_response.py +270 -0
  108. huaweicloudsdkdwr/v3/model/check_workflow_authentication_request.py +77 -0
  109. huaweicloudsdkdwr/v3/model/check_workflow_authentication_response.py +473 -0
  110. huaweicloudsdkdwr/v3/model/create_my_action_template_request.py +132 -0
  111. huaweicloudsdkdwr/v3/model/create_my_action_template_response.py +415 -0
  112. huaweicloudsdkdwr/v3/model/create_workflow_authentication_request.py +77 -0
  113. huaweicloudsdkdwr/v3/model/create_workflow_authentication_response.py +133 -0
  114. huaweicloudsdkdwr/v3/model/create_workflow_request.py +132 -0
  115. huaweicloudsdkdwr/v3/model/create_workflow_request_body.py +274 -0
  116. huaweicloudsdkdwr/v3/model/create_workflow_response.py +270 -0
  117. huaweicloudsdkdwr/v3/model/delete_my_action_template_request.py +107 -0
  118. huaweicloudsdkdwr/v3/model/delete_my_action_template_response.py +133 -0
  119. huaweicloudsdkdwr/v3/model/delete_workflow_request.py +107 -0
  120. huaweicloudsdkdwr/v3/model/delete_workflow_response.py +133 -0
  121. huaweicloudsdkdwr/v3/model/execute_workflow_body.py +160 -0
  122. huaweicloudsdkdwr/v3/model/execution.py +282 -0
  123. huaweicloudsdkdwr/v3/model/express_config.py +137 -0
  124. huaweicloudsdkdwr/v3/model/func_vpc.py +253 -0
  125. huaweicloudsdkdwr/v3/model/graph_item.py +195 -0
  126. huaweicloudsdkdwr/v3/model/input.py +367 -0
  127. huaweicloudsdkdwr/v3/model/input_para_type.py +77 -0
  128. huaweicloudsdkdwr/v3/model/input_para_value_type.py +77 -0
  129. huaweicloudsdkdwr/v3/model/list_my_action_template_request.py +224 -0
  130. huaweicloudsdkdwr/v3/model/list_my_action_template_response.py +299 -0
  131. huaweicloudsdkdwr/v3/model/list_system_templates_request.py +195 -0
  132. huaweicloudsdkdwr/v3/model/list_system_templates_response.py +328 -0
  133. huaweicloudsdkdwr/v3/model/list_workflow_instance_request.py +252 -0
  134. huaweicloudsdkdwr/v3/model/list_workflow_instance_response.py +299 -0
  135. huaweicloudsdkdwr/v3/model/list_workflows_request.py +166 -0
  136. huaweicloudsdkdwr/v3/model/list_workflows_response.py +299 -0
  137. huaweicloudsdkdwr/v3/model/node_execution.py +282 -0
  138. huaweicloudsdkdwr/v3/model/policy.py +137 -0
  139. huaweicloudsdkdwr/v3/model/provided_action.py +561 -0
  140. huaweicloudsdkdwr/v3/model/public_template_item.py +282 -0
  141. huaweicloudsdkdwr/v3/model/public_template_register_type.py +77 -0
  142. huaweicloudsdkdwr/v3/model/restore_workflow_execution_request.py +135 -0
  143. huaweicloudsdkdwr/v3/model/restore_workflow_execution_response.py +270 -0
  144. huaweicloudsdkdwr/v3/model/show_public_action_list_request.py +195 -0
  145. huaweicloudsdkdwr/v3/model/show_public_action_list_response.py +328 -0
  146. huaweicloudsdkdwr/v3/model/show_public_template_info_request.py +107 -0
  147. huaweicloudsdkdwr/v3/model/show_public_template_info_response.py +208 -0
  148. huaweicloudsdkdwr/v3/model/show_service_contract_request.py +107 -0
  149. huaweicloudsdkdwr/v3/model/show_service_contract_response.py +241 -0
  150. huaweicloudsdkdwr/v3/model/show_system_template_detail_request.py +107 -0
  151. huaweicloudsdkdwr/v3/model/show_system_template_detail_response.py +208 -0
  152. huaweicloudsdkdwr/v3/model/show_third_template_info_request.py +107 -0
  153. huaweicloudsdkdwr/v3/model/show_third_template_info_response.py +208 -0
  154. huaweicloudsdkdwr/v3/model/show_workflow_info_request.py +107 -0
  155. huaweicloudsdkdwr/v3/model/show_workflow_info_response.py +328 -0
  156. huaweicloudsdkdwr/v3/model/show_workflow_instance_request.py +135 -0
  157. huaweicloudsdkdwr/v3/model/show_workflow_instance_response.py +531 -0
  158. huaweicloudsdkdwr/v3/model/state.py +338 -0
  159. huaweicloudsdkdwr/v3/model/statement.py +137 -0
  160. huaweicloudsdkdwr/v3/model/third_action_template_item.py +282 -0
  161. huaweicloudsdkdwr/v3/model/third_template_request_body.py +423 -0
  162. huaweicloudsdkdwr/v3/model/update_my_action_template_request.py +132 -0
  163. huaweicloudsdkdwr/v3/model/update_my_action_template_response.py +270 -0
  164. huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_request.py +107 -0
  165. huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_response.py +133 -0
  166. huaweicloudsdkdwr/v3/model/update_workflow_body.py +108 -0
  167. huaweicloudsdkdwr/v3/model/update_workflow_request.py +132 -0
  168. huaweicloudsdkdwr/v3/model/update_workflow_response.py +270 -0
  169. huaweicloudsdkdwr/v3/region/__init__.py +0 -0
  170. huaweicloudsdkdwr/v3/region/dwr_region.py +43 -0
  171. huaweicloudsdkdwr-3.1.181.dist-info/METADATA +25 -0
  172. huaweicloudsdkdwr-3.1.181.dist-info/RECORD +174 -0
  173. huaweicloudsdkdwr-3.1.181.dist-info/WHEEL +4 -0
  174. huaweicloudsdkdwr-3.1.181.dist-info/licenses/LICENSE +13 -0
@@ -0,0 +1,136 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class ListCollectionData:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'collections': 'list[str]',
19
+ 'details': 'list[ListCollectionDetails]'
20
+ }
21
+
22
+ attribute_map = {
23
+ 'collections': 'collections',
24
+ 'details': 'details'
25
+ }
26
+
27
+ def __init__(self, collections=None, details=None):
28
+ r"""ListCollectionData
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param collections: **参数解释:** 知识仓实例下所有collection名称列表。 **约束限制:** 不涉及。
33
+ :type collections: list[str]
34
+ :param details: **参数解释:** 知识仓实例下所有collection详细信息列表。 **约束限制:** 在指定detail字段为true时生效。
35
+ :type details: list[:class:`huaweicloudsdkdwr.v1.ListCollectionDetails`]
36
+ """
37
+
38
+
39
+
40
+ self._collections = None
41
+ self._details = None
42
+ self.discriminator = None
43
+
44
+ self.collections = collections
45
+ if details is not None:
46
+ self.details = details
47
+
48
+ @property
49
+ def collections(self):
50
+ r"""Gets the collections of this ListCollectionData.
51
+
52
+ **参数解释:** 知识仓实例下所有collection名称列表。 **约束限制:** 不涉及。
53
+
54
+ :return: The collections of this ListCollectionData.
55
+ :rtype: list[str]
56
+ """
57
+ return self._collections
58
+
59
+ @collections.setter
60
+ def collections(self, collections):
61
+ r"""Sets the collections of this ListCollectionData.
62
+
63
+ **参数解释:** 知识仓实例下所有collection名称列表。 **约束限制:** 不涉及。
64
+
65
+ :param collections: The collections of this ListCollectionData.
66
+ :type collections: list[str]
67
+ """
68
+ self._collections = collections
69
+
70
+ @property
71
+ def details(self):
72
+ r"""Gets the details of this ListCollectionData.
73
+
74
+ **参数解释:** 知识仓实例下所有collection详细信息列表。 **约束限制:** 在指定detail字段为true时生效。
75
+
76
+ :return: The details of this ListCollectionData.
77
+ :rtype: list[:class:`huaweicloudsdkdwr.v1.ListCollectionDetails`]
78
+ """
79
+ return self._details
80
+
81
+ @details.setter
82
+ def details(self, details):
83
+ r"""Sets the details of this ListCollectionData.
84
+
85
+ **参数解释:** 知识仓实例下所有collection详细信息列表。 **约束限制:** 在指定detail字段为true时生效。
86
+
87
+ :param details: The details of this ListCollectionData.
88
+ :type details: list[:class:`huaweicloudsdkdwr.v1.ListCollectionDetails`]
89
+ """
90
+ self._details = details
91
+
92
+ def to_dict(self):
93
+ result = {}
94
+
95
+ for attr, _ in self.openapi_types.items():
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
122
+
123
+ def __repr__(self):
124
+ """For `print`"""
125
+ return self.to_str()
126
+
127
+ def __eq__(self, other):
128
+ """Returns true if both objects are equal"""
129
+ if not isinstance(other, ListCollectionData):
130
+ return False
131
+
132
+ return self.__dict__ == other.__dict__
133
+
134
+ def __ne__(self, other):
135
+ """Returns true if both objects are not equal"""
136
+ return not self == other
@@ -0,0 +1,253 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class ListCollectionDetails:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'collection_name': 'str',
19
+ 'index_num': 'int',
20
+ 'entity_num': 'int',
21
+ 'load_state': 'str',
22
+ 'create_time': 'str',
23
+ 'description': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'collection_name': 'collection_name',
28
+ 'index_num': 'index_num',
29
+ 'entity_num': 'entity_num',
30
+ 'load_state': 'load_state',
31
+ 'create_time': 'create_time',
32
+ 'description': 'description'
33
+ }
34
+
35
+ def __init__(self, collection_name=None, index_num=None, entity_num=None, load_state=None, create_time=None, description=None):
36
+ r"""ListCollectionDetails
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param collection_name: **参数解释:** collection名称。 **约束限制:** 可包含数字、字母和下划线 ( _ )。资源名称必须以字母或下划线 ( _ ) 开头。最大长度支持255。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
41
+ :type collection_name: str
42
+ :param index_num: **参数解释:** 索引数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
43
+ :type index_num: int
44
+ :param entity_num: **参数解释:** collection中的entity数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
45
+ :type entity_num: int
46
+ :param load_state: **参数解释:** 标识当前Collection加载状态。 **约束限制:** 不涉及。 **取值范围:** 1、LoadStateLoaded:表示当前Collection已准备就绪,可正常使用。 2、LoadStateLoading:表示当前Collection正在load。 3、LoadStateNotLoad:表示collection未加载。 **默认取值:** 不涉及。
47
+ :type load_state: str
48
+ :param create_time: **参数解释:** 创建时间。 **约束限制:** 格式为“yyyy-mm-ddThh:mm:ssZ\"。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
49
+ :type create_time: str
50
+ :param description: **参数解释:** collection的描述信息。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
51
+ :type description: str
52
+ """
53
+
54
+
55
+
56
+ self._collection_name = None
57
+ self._index_num = None
58
+ self._entity_num = None
59
+ self._load_state = None
60
+ self._create_time = None
61
+ self._description = None
62
+ self.discriminator = None
63
+
64
+ if collection_name is not None:
65
+ self.collection_name = collection_name
66
+ if index_num is not None:
67
+ self.index_num = index_num
68
+ if entity_num is not None:
69
+ self.entity_num = entity_num
70
+ if load_state is not None:
71
+ self.load_state = load_state
72
+ if create_time is not None:
73
+ self.create_time = create_time
74
+ if description is not None:
75
+ self.description = description
76
+
77
+ @property
78
+ def collection_name(self):
79
+ r"""Gets the collection_name of this ListCollectionDetails.
80
+
81
+ **参数解释:** collection名称。 **约束限制:** 可包含数字、字母和下划线 ( _ )。资源名称必须以字母或下划线 ( _ ) 开头。最大长度支持255。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
82
+
83
+ :return: The collection_name of this ListCollectionDetails.
84
+ :rtype: str
85
+ """
86
+ return self._collection_name
87
+
88
+ @collection_name.setter
89
+ def collection_name(self, collection_name):
90
+ r"""Sets the collection_name of this ListCollectionDetails.
91
+
92
+ **参数解释:** collection名称。 **约束限制:** 可包含数字、字母和下划线 ( _ )。资源名称必须以字母或下划线 ( _ ) 开头。最大长度支持255。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
93
+
94
+ :param collection_name: The collection_name of this ListCollectionDetails.
95
+ :type collection_name: str
96
+ """
97
+ self._collection_name = collection_name
98
+
99
+ @property
100
+ def index_num(self):
101
+ r"""Gets the index_num of this ListCollectionDetails.
102
+
103
+ **参数解释:** 索引数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
104
+
105
+ :return: The index_num of this ListCollectionDetails.
106
+ :rtype: int
107
+ """
108
+ return self._index_num
109
+
110
+ @index_num.setter
111
+ def index_num(self, index_num):
112
+ r"""Sets the index_num of this ListCollectionDetails.
113
+
114
+ **参数解释:** 索引数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
115
+
116
+ :param index_num: The index_num of this ListCollectionDetails.
117
+ :type index_num: int
118
+ """
119
+ self._index_num = index_num
120
+
121
+ @property
122
+ def entity_num(self):
123
+ r"""Gets the entity_num of this ListCollectionDetails.
124
+
125
+ **参数解释:** collection中的entity数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
126
+
127
+ :return: The entity_num of this ListCollectionDetails.
128
+ :rtype: int
129
+ """
130
+ return self._entity_num
131
+
132
+ @entity_num.setter
133
+ def entity_num(self, entity_num):
134
+ r"""Sets the entity_num of this ListCollectionDetails.
135
+
136
+ **参数解释:** collection中的entity数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
137
+
138
+ :param entity_num: The entity_num of this ListCollectionDetails.
139
+ :type entity_num: int
140
+ """
141
+ self._entity_num = entity_num
142
+
143
+ @property
144
+ def load_state(self):
145
+ r"""Gets the load_state of this ListCollectionDetails.
146
+
147
+ **参数解释:** 标识当前Collection加载状态。 **约束限制:** 不涉及。 **取值范围:** 1、LoadStateLoaded:表示当前Collection已准备就绪,可正常使用。 2、LoadStateLoading:表示当前Collection正在load。 3、LoadStateNotLoad:表示collection未加载。 **默认取值:** 不涉及。
148
+
149
+ :return: The load_state of this ListCollectionDetails.
150
+ :rtype: str
151
+ """
152
+ return self._load_state
153
+
154
+ @load_state.setter
155
+ def load_state(self, load_state):
156
+ r"""Sets the load_state of this ListCollectionDetails.
157
+
158
+ **参数解释:** 标识当前Collection加载状态。 **约束限制:** 不涉及。 **取值范围:** 1、LoadStateLoaded:表示当前Collection已准备就绪,可正常使用。 2、LoadStateLoading:表示当前Collection正在load。 3、LoadStateNotLoad:表示collection未加载。 **默认取值:** 不涉及。
159
+
160
+ :param load_state: The load_state of this ListCollectionDetails.
161
+ :type load_state: str
162
+ """
163
+ self._load_state = load_state
164
+
165
+ @property
166
+ def create_time(self):
167
+ r"""Gets the create_time of this ListCollectionDetails.
168
+
169
+ **参数解释:** 创建时间。 **约束限制:** 格式为“yyyy-mm-ddThh:mm:ssZ\"。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
170
+
171
+ :return: The create_time of this ListCollectionDetails.
172
+ :rtype: str
173
+ """
174
+ return self._create_time
175
+
176
+ @create_time.setter
177
+ def create_time(self, create_time):
178
+ r"""Sets the create_time of this ListCollectionDetails.
179
+
180
+ **参数解释:** 创建时间。 **约束限制:** 格式为“yyyy-mm-ddThh:mm:ssZ\"。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
181
+
182
+ :param create_time: The create_time of this ListCollectionDetails.
183
+ :type create_time: str
184
+ """
185
+ self._create_time = create_time
186
+
187
+ @property
188
+ def description(self):
189
+ r"""Gets the description of this ListCollectionDetails.
190
+
191
+ **参数解释:** collection的描述信息。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
192
+
193
+ :return: The description of this ListCollectionDetails.
194
+ :rtype: str
195
+ """
196
+ return self._description
197
+
198
+ @description.setter
199
+ def description(self, description):
200
+ r"""Sets the description of this ListCollectionDetails.
201
+
202
+ **参数解释:** collection的描述信息。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
203
+
204
+ :param description: The description of this ListCollectionDetails.
205
+ :type description: str
206
+ """
207
+ self._description = description
208
+
209
+ def to_dict(self):
210
+ result = {}
211
+
212
+ for attr, _ in self.openapi_types.items():
213
+ value = getattr(self, attr)
214
+ if isinstance(value, list):
215
+ result[attr] = list(map(
216
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
217
+ value
218
+ ))
219
+ elif hasattr(value, "to_dict"):
220
+ result[attr] = value.to_dict()
221
+ elif isinstance(value, dict):
222
+ result[attr] = dict(map(
223
+ lambda item: (item[0], item[1].to_dict())
224
+ if hasattr(item[1], "to_dict") else item,
225
+ value.items()
226
+ ))
227
+ else:
228
+ if attr in self.sensitive_list:
229
+ result[attr] = "****"
230
+ else:
231
+ result[attr] = value
232
+
233
+ return result
234
+
235
+ def to_str(self):
236
+ """Returns the string representation of the model"""
237
+ import simplejson as json
238
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
239
+
240
+ def __repr__(self):
241
+ """For `print`"""
242
+ return self.to_str()
243
+
244
+ def __eq__(self, other):
245
+ """Returns true if both objects are equal"""
246
+ if not isinstance(other, ListCollectionDetails):
247
+ return False
248
+
249
+ return self.__dict__ == other.__dict__
250
+
251
+ def __ne__(self, other):
252
+ """Returns true if both objects are not equal"""
253
+ return not self == other
@@ -0,0 +1,136 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class ListCollectionsBody:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'store_name': 'str',
19
+ 'detail': 'bool'
20
+ }
21
+
22
+ attribute_map = {
23
+ 'store_name': 'store_name',
24
+ 'detail': 'detail'
25
+ }
26
+
27
+ def __init__(self, store_name=None, detail=None):
28
+ r"""ListCollectionsBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param store_name: **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
33
+ :type store_name: str
34
+ :param detail: **参数解释:** 列举collection的详细信息。 **约束限制:** 不涉及。 **取值范围:** true 或者 false。 **默认取值:** false。
35
+ :type detail: bool
36
+ """
37
+
38
+
39
+
40
+ self._store_name = None
41
+ self._detail = None
42
+ self.discriminator = None
43
+
44
+ self.store_name = store_name
45
+ if detail is not None:
46
+ self.detail = detail
47
+
48
+ @property
49
+ def store_name(self):
50
+ r"""Gets the store_name of this ListCollectionsBody.
51
+
52
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
53
+
54
+ :return: The store_name of this ListCollectionsBody.
55
+ :rtype: str
56
+ """
57
+ return self._store_name
58
+
59
+ @store_name.setter
60
+ def store_name(self, store_name):
61
+ r"""Sets the store_name of this ListCollectionsBody.
62
+
63
+ **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
64
+
65
+ :param store_name: The store_name of this ListCollectionsBody.
66
+ :type store_name: str
67
+ """
68
+ self._store_name = store_name
69
+
70
+ @property
71
+ def detail(self):
72
+ r"""Gets the detail of this ListCollectionsBody.
73
+
74
+ **参数解释:** 列举collection的详细信息。 **约束限制:** 不涉及。 **取值范围:** true 或者 false。 **默认取值:** false。
75
+
76
+ :return: The detail of this ListCollectionsBody.
77
+ :rtype: bool
78
+ """
79
+ return self._detail
80
+
81
+ @detail.setter
82
+ def detail(self, detail):
83
+ r"""Sets the detail of this ListCollectionsBody.
84
+
85
+ **参数解释:** 列举collection的详细信息。 **约束限制:** 不涉及。 **取值范围:** true 或者 false。 **默认取值:** false。
86
+
87
+ :param detail: The detail of this ListCollectionsBody.
88
+ :type detail: bool
89
+ """
90
+ self._detail = detail
91
+
92
+ def to_dict(self):
93
+ result = {}
94
+
95
+ for attr, _ in self.openapi_types.items():
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
122
+
123
+ def __repr__(self):
124
+ """For `print`"""
125
+ return self.to_str()
126
+
127
+ def __eq__(self, other):
128
+ """Returns true if both objects are equal"""
129
+ if not isinstance(other, ListCollectionsBody):
130
+ return False
131
+
132
+ return self.__dict__ == other.__dict__
133
+
134
+ def __ne__(self, other):
135
+ """Returns true if both objects are not equal"""
136
+ return not self == other
@@ -0,0 +1,104 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class ListCollectionsRequest:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'body': 'ListCollectionsBody'
19
+ }
20
+
21
+ attribute_map = {
22
+ 'body': 'body'
23
+ }
24
+
25
+ def __init__(self, body=None):
26
+ r"""ListCollectionsRequest
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ :param body: Body of the ListCollectionsRequest
31
+ :type body: :class:`huaweicloudsdkdwr.v1.ListCollectionsBody`
32
+ """
33
+
34
+
35
+
36
+ self._body = None
37
+ self.discriminator = None
38
+
39
+ if body is not None:
40
+ self.body = body
41
+
42
+ @property
43
+ def body(self):
44
+ r"""Gets the body of this ListCollectionsRequest.
45
+
46
+ :return: The body of this ListCollectionsRequest.
47
+ :rtype: :class:`huaweicloudsdkdwr.v1.ListCollectionsBody`
48
+ """
49
+ return self._body
50
+
51
+ @body.setter
52
+ def body(self, body):
53
+ r"""Sets the body of this ListCollectionsRequest.
54
+
55
+ :param body: The body of this ListCollectionsRequest.
56
+ :type body: :class:`huaweicloudsdkdwr.v1.ListCollectionsBody`
57
+ """
58
+ self._body = body
59
+
60
+ def to_dict(self):
61
+ result = {}
62
+
63
+ for attr, _ in self.openapi_types.items():
64
+ value = getattr(self, attr)
65
+ if isinstance(value, list):
66
+ result[attr] = list(map(
67
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
68
+ value
69
+ ))
70
+ elif hasattr(value, "to_dict"):
71
+ result[attr] = value.to_dict()
72
+ elif isinstance(value, dict):
73
+ result[attr] = dict(map(
74
+ lambda item: (item[0], item[1].to_dict())
75
+ if hasattr(item[1], "to_dict") else item,
76
+ value.items()
77
+ ))
78
+ else:
79
+ if attr in self.sensitive_list:
80
+ result[attr] = "****"
81
+ else:
82
+ result[attr] = value
83
+
84
+ return result
85
+
86
+ def to_str(self):
87
+ """Returns the string representation of the model"""
88
+ import simplejson as json
89
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
90
+
91
+ def __repr__(self):
92
+ """For `print`"""
93
+ return self.to_str()
94
+
95
+ def __eq__(self, other):
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, ListCollectionsRequest):
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other):
103
+ """Returns true if both objects are not equal"""
104
+ return not self == other