huaweicloudsdkdwr 3.1.150__py2.py3-none-any.whl → 3.1.152__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.
- huaweicloudsdkdwr/v1/__init__.py +91 -0
- huaweicloudsdkdwr/v1/dwr_async_client.py +1519 -0
- huaweicloudsdkdwr/v1/dwr_client.py +1516 -0
- huaweicloudsdkdwr/v1/model/__init__.py +88 -0
- huaweicloudsdkdwr/v1/model/build_progress.py +231 -0
- huaweicloudsdkdwr/v1/model/charge_info.py +230 -0
- huaweicloudsdkdwr/v1/model/collection_base_info.py +142 -0
- huaweicloudsdkdwr/v1/model/create_collection_body.py +281 -0
- huaweicloudsdkdwr/v1/model/create_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_index_body.py +166 -0
- huaweicloudsdkdwr/v1/model/create_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_store_body.py +248 -0
- huaweicloudsdkdwr/v1/model/create_store_data.py +335 -0
- huaweicloudsdkdwr/v1/model/create_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/decribe_collection_data.py +315 -0
- huaweicloudsdkdwr/v1/model/delete_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_entities_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_store_data.py +114 -0
- huaweicloudsdkdwr/v1/model/delete_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_collection_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_index_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_respose_data.py +171 -0
- huaweicloudsdkdwr/v1/model/describe_job_body.py +114 -0
- huaweicloudsdkdwr/v1/model/describe_job_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_job_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_store_data.py +364 -0
- huaweicloudsdkdwr/v1/model/describe_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/field.py +229 -0
- huaweicloudsdkdwr/v1/model/field_data.py +198 -0
- huaweicloudsdkdwr/v1/model/flavor.py +142 -0
- huaweicloudsdkdwr/v1/model/get_index_progress_body.py +170 -0
- huaweicloudsdkdwr/v1/model/get_index_progress_response_data.py +167 -0
- huaweicloudsdkdwr/v1/model/get_progress_request.py +111 -0
- huaweicloudsdkdwr/v1/model/get_progress_response.py +170 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +278 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_request.py +111 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_response.py +174 -0
- huaweicloudsdkdwr/v1/model/index_desc.py +200 -0
- huaweicloudsdkdwr/v1/model/index_params.py +171 -0
- huaweicloudsdkdwr/v1/model/insert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/insert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/insert_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/insert_entities_response_data.py +143 -0
- huaweicloudsdkdwr/v1/model/job_data.py +316 -0
- huaweicloudsdkdwr/v1/model/list_collection_data.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collection_details.py +260 -0
- huaweicloudsdkdwr/v1/model/list_collections_body.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collections_request.py +111 -0
- huaweicloudsdkdwr/v1/model/list_collections_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_jobs_data.py +115 -0
- huaweicloudsdkdwr/v1/model/list_jobs_request.py +231 -0
- huaweicloudsdkdwr/v1/model/list_jobs_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_stores_request.py +84 -0
- huaweicloudsdkdwr/v1/model/list_stores_response.py +174 -0
- huaweicloudsdkdwr/v1/model/load_collection_body.py +142 -0
- huaweicloudsdkdwr/v1/model/load_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/load_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/primary_field.py +142 -0
- huaweicloudsdkdwr/v1/model/query_entities_body.py +257 -0
- huaweicloudsdkdwr/v1/model/query_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/query_entities_response.py +174 -0
- huaweicloudsdkdwr/v1/model/release_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/release_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/rerank.py +143 -0
- huaweicloudsdkdwr/v1/model/search_entities_body.py +343 -0
- huaweicloudsdkdwr/v1/model/search_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/search_entities_response.py +174 -0
- huaweicloudsdkdwr/v1/model/store_info.py +114 -0
- huaweicloudsdkdwr/v1/model/sub_search.py +258 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_response_data.py +143 -0
- huaweicloudsdkdwr/v1/region/__init__.py +0 -0
- huaweicloudsdkdwr/v1/region/dwr_region.py +37 -0
- huaweicloudsdkdwr/v3/region/dwr_region.py +6 -0
- {huaweicloudsdkdwr-3.1.150.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/METADATA +2 -2
- huaweicloudsdkdwr-3.1.152.dist-info/RECORD +169 -0
- huaweicloudsdkdwr-3.1.150.dist-info/RECORD +0 -80
- {huaweicloudsdkdwr-3.1.150.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdwr-3.1.150.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdwr-3.1.150.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from __future__ import absolute_import
|
|
4
|
+
|
|
5
|
+
# import models into model package
|
|
6
|
+
from huaweicloudsdkdwr.v1.model.build_progress import BuildProgress
|
|
7
|
+
from huaweicloudsdkdwr.v1.model.charge_info import ChargeInfo
|
|
8
|
+
from huaweicloudsdkdwr.v1.model.collection_base_info import CollectionBaseInfo
|
|
9
|
+
from huaweicloudsdkdwr.v1.model.create_collection_body import CreateCollectionBody
|
|
10
|
+
from huaweicloudsdkdwr.v1.model.create_collection_request import CreateCollectionRequest
|
|
11
|
+
from huaweicloudsdkdwr.v1.model.create_collection_response import CreateCollectionResponse
|
|
12
|
+
from huaweicloudsdkdwr.v1.model.create_index_body import CreateIndexBody
|
|
13
|
+
from huaweicloudsdkdwr.v1.model.create_index_request import CreateIndexRequest
|
|
14
|
+
from huaweicloudsdkdwr.v1.model.create_index_response import CreateIndexResponse
|
|
15
|
+
from huaweicloudsdkdwr.v1.model.create_store_body import CreateStoreBody
|
|
16
|
+
from huaweicloudsdkdwr.v1.model.create_store_data import CreateStoreData
|
|
17
|
+
from huaweicloudsdkdwr.v1.model.create_store_request import CreateStoreRequest
|
|
18
|
+
from huaweicloudsdkdwr.v1.model.create_store_response import CreateStoreResponse
|
|
19
|
+
from huaweicloudsdkdwr.v1.model.decribe_collection_data import DecribeCollectionData
|
|
20
|
+
from huaweicloudsdkdwr.v1.model.delete_collection_request import DeleteCollectionRequest
|
|
21
|
+
from huaweicloudsdkdwr.v1.model.delete_collection_response import DeleteCollectionResponse
|
|
22
|
+
from huaweicloudsdkdwr.v1.model.delete_entities_body import DeleteEntitiesBody
|
|
23
|
+
from huaweicloudsdkdwr.v1.model.delete_entities_request import DeleteEntitiesRequest
|
|
24
|
+
from huaweicloudsdkdwr.v1.model.delete_entities_response import DeleteEntitiesResponse
|
|
25
|
+
from huaweicloudsdkdwr.v1.model.delete_index_body import DeleteIndexBody
|
|
26
|
+
from huaweicloudsdkdwr.v1.model.delete_index_request import DeleteIndexRequest
|
|
27
|
+
from huaweicloudsdkdwr.v1.model.delete_index_response import DeleteIndexResponse
|
|
28
|
+
from huaweicloudsdkdwr.v1.model.delete_store_data import DeleteStoreData
|
|
29
|
+
from huaweicloudsdkdwr.v1.model.delete_store_request import DeleteStoreRequest
|
|
30
|
+
from huaweicloudsdkdwr.v1.model.delete_store_response import DeleteStoreResponse
|
|
31
|
+
from huaweicloudsdkdwr.v1.model.describe_collection_request import DescribeCollectionRequest
|
|
32
|
+
from huaweicloudsdkdwr.v1.model.describe_collection_response import DescribeCollectionResponse
|
|
33
|
+
from huaweicloudsdkdwr.v1.model.describe_index_body import DescribeIndexBody
|
|
34
|
+
from huaweicloudsdkdwr.v1.model.describe_index_request import DescribeIndexRequest
|
|
35
|
+
from huaweicloudsdkdwr.v1.model.describe_index_response import DescribeIndexResponse
|
|
36
|
+
from huaweicloudsdkdwr.v1.model.describe_index_respose_data import DescribeIndexResposeData
|
|
37
|
+
from huaweicloudsdkdwr.v1.model.describe_job_body import DescribeJobBody
|
|
38
|
+
from huaweicloudsdkdwr.v1.model.describe_job_request import DescribeJobRequest
|
|
39
|
+
from huaweicloudsdkdwr.v1.model.describe_job_response import DescribeJobResponse
|
|
40
|
+
from huaweicloudsdkdwr.v1.model.describe_store_data import DescribeStoreData
|
|
41
|
+
from huaweicloudsdkdwr.v1.model.describe_store_request import DescribeStoreRequest
|
|
42
|
+
from huaweicloudsdkdwr.v1.model.describe_store_response import DescribeStoreResponse
|
|
43
|
+
from huaweicloudsdkdwr.v1.model.field import Field
|
|
44
|
+
from huaweicloudsdkdwr.v1.model.field_data import FieldData
|
|
45
|
+
from huaweicloudsdkdwr.v1.model.flavor import Flavor
|
|
46
|
+
from huaweicloudsdkdwr.v1.model.get_index_progress_body import GetIndexProgressBody
|
|
47
|
+
from huaweicloudsdkdwr.v1.model.get_index_progress_response_data import GetIndexProgressResponseData
|
|
48
|
+
from huaweicloudsdkdwr.v1.model.get_progress_request import GetProgressRequest
|
|
49
|
+
from huaweicloudsdkdwr.v1.model.get_progress_response import GetProgressResponse
|
|
50
|
+
from huaweicloudsdkdwr.v1.model.hybrid_search_body import HybridSearchBody
|
|
51
|
+
from huaweicloudsdkdwr.v1.model.hybrid_search_request import HybridSearchRequest
|
|
52
|
+
from huaweicloudsdkdwr.v1.model.hybrid_search_response import HybridSearchResponse
|
|
53
|
+
from huaweicloudsdkdwr.v1.model.index_desc import IndexDesc
|
|
54
|
+
from huaweicloudsdkdwr.v1.model.index_params import IndexParams
|
|
55
|
+
from huaweicloudsdkdwr.v1.model.insert_entities_body import InsertEntitiesBody
|
|
56
|
+
from huaweicloudsdkdwr.v1.model.insert_entities_request import InsertEntitiesRequest
|
|
57
|
+
from huaweicloudsdkdwr.v1.model.insert_entities_response import InsertEntitiesResponse
|
|
58
|
+
from huaweicloudsdkdwr.v1.model.insert_entities_response_data import InsertEntitiesResponseData
|
|
59
|
+
from huaweicloudsdkdwr.v1.model.job_data import JobData
|
|
60
|
+
from huaweicloudsdkdwr.v1.model.list_collection_data import ListCollectionData
|
|
61
|
+
from huaweicloudsdkdwr.v1.model.list_collection_details import ListCollectionDetails
|
|
62
|
+
from huaweicloudsdkdwr.v1.model.list_collections_body import ListCollectionsBody
|
|
63
|
+
from huaweicloudsdkdwr.v1.model.list_collections_request import ListCollectionsRequest
|
|
64
|
+
from huaweicloudsdkdwr.v1.model.list_collections_response import ListCollectionsResponse
|
|
65
|
+
from huaweicloudsdkdwr.v1.model.list_jobs_data import ListJobsData
|
|
66
|
+
from huaweicloudsdkdwr.v1.model.list_jobs_request import ListJobsRequest
|
|
67
|
+
from huaweicloudsdkdwr.v1.model.list_jobs_response import ListJobsResponse
|
|
68
|
+
from huaweicloudsdkdwr.v1.model.list_stores_request import ListStoresRequest
|
|
69
|
+
from huaweicloudsdkdwr.v1.model.list_stores_response import ListStoresResponse
|
|
70
|
+
from huaweicloudsdkdwr.v1.model.load_collection_body import LoadCollectionBody
|
|
71
|
+
from huaweicloudsdkdwr.v1.model.load_collection_request import LoadCollectionRequest
|
|
72
|
+
from huaweicloudsdkdwr.v1.model.load_collection_response import LoadCollectionResponse
|
|
73
|
+
from huaweicloudsdkdwr.v1.model.primary_field import PrimaryField
|
|
74
|
+
from huaweicloudsdkdwr.v1.model.query_entities_body import QueryEntitiesBody
|
|
75
|
+
from huaweicloudsdkdwr.v1.model.query_entities_request import QueryEntitiesRequest
|
|
76
|
+
from huaweicloudsdkdwr.v1.model.query_entities_response import QueryEntitiesResponse
|
|
77
|
+
from huaweicloudsdkdwr.v1.model.release_collection_request import ReleaseCollectionRequest
|
|
78
|
+
from huaweicloudsdkdwr.v1.model.release_collection_response import ReleaseCollectionResponse
|
|
79
|
+
from huaweicloudsdkdwr.v1.model.rerank import Rerank
|
|
80
|
+
from huaweicloudsdkdwr.v1.model.search_entities_body import SearchEntitiesBody
|
|
81
|
+
from huaweicloudsdkdwr.v1.model.search_entities_request import SearchEntitiesRequest
|
|
82
|
+
from huaweicloudsdkdwr.v1.model.search_entities_response import SearchEntitiesResponse
|
|
83
|
+
from huaweicloudsdkdwr.v1.model.store_info import StoreInfo
|
|
84
|
+
from huaweicloudsdkdwr.v1.model.sub_search import SubSearch
|
|
85
|
+
from huaweicloudsdkdwr.v1.model.upsert_entities_body import UpsertEntitiesBody
|
|
86
|
+
from huaweicloudsdkdwr.v1.model.upsert_entities_request import UpsertEntitiesRequest
|
|
87
|
+
from huaweicloudsdkdwr.v1.model.upsert_entities_response import UpsertEntitiesResponse
|
|
88
|
+
from huaweicloudsdkdwr.v1.model.upsert_entities_response_data import UpsertEntitiesResponseData
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BuildProgress:
|
|
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
|
+
'index_name': 'str',
|
|
21
|
+
'field_name': 'str',
|
|
22
|
+
'build_progress': 'float',
|
|
23
|
+
'indexed_rows': 'int',
|
|
24
|
+
'total_rows': 'int'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'index_name': 'index_name',
|
|
29
|
+
'field_name': 'field_name',
|
|
30
|
+
'build_progress': 'build_progress',
|
|
31
|
+
'indexed_rows': 'indexed_rows',
|
|
32
|
+
'total_rows': 'total_rows'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, index_name=None, field_name=None, build_progress=None, indexed_rows=None, total_rows=None):
|
|
36
|
+
r"""BuildProgress
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param index_name: 索引名
|
|
41
|
+
:type index_name: str
|
|
42
|
+
:param field_name: 索引对应的列
|
|
43
|
+
:type field_name: str
|
|
44
|
+
:param build_progress: 构建索引的进度,进度值为[0,1]
|
|
45
|
+
:type build_progress: float
|
|
46
|
+
:param indexed_rows: 已完成索引的数据量
|
|
47
|
+
:type indexed_rows: int
|
|
48
|
+
:param total_rows: 需要索引的数据量
|
|
49
|
+
:type total_rows: int
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._index_name = None
|
|
55
|
+
self._field_name = None
|
|
56
|
+
self._build_progress = None
|
|
57
|
+
self._indexed_rows = None
|
|
58
|
+
self._total_rows = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if index_name is not None:
|
|
62
|
+
self.index_name = index_name
|
|
63
|
+
if field_name is not None:
|
|
64
|
+
self.field_name = field_name
|
|
65
|
+
if build_progress is not None:
|
|
66
|
+
self.build_progress = build_progress
|
|
67
|
+
if indexed_rows is not None:
|
|
68
|
+
self.indexed_rows = indexed_rows
|
|
69
|
+
if total_rows is not None:
|
|
70
|
+
self.total_rows = total_rows
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def index_name(self):
|
|
74
|
+
r"""Gets the index_name of this BuildProgress.
|
|
75
|
+
|
|
76
|
+
索引名
|
|
77
|
+
|
|
78
|
+
:return: The index_name of this BuildProgress.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._index_name
|
|
82
|
+
|
|
83
|
+
@index_name.setter
|
|
84
|
+
def index_name(self, index_name):
|
|
85
|
+
r"""Sets the index_name of this BuildProgress.
|
|
86
|
+
|
|
87
|
+
索引名
|
|
88
|
+
|
|
89
|
+
:param index_name: The index_name of this BuildProgress.
|
|
90
|
+
:type index_name: str
|
|
91
|
+
"""
|
|
92
|
+
self._index_name = index_name
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def field_name(self):
|
|
96
|
+
r"""Gets the field_name of this BuildProgress.
|
|
97
|
+
|
|
98
|
+
索引对应的列
|
|
99
|
+
|
|
100
|
+
:return: The field_name of this BuildProgress.
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._field_name
|
|
104
|
+
|
|
105
|
+
@field_name.setter
|
|
106
|
+
def field_name(self, field_name):
|
|
107
|
+
r"""Sets the field_name of this BuildProgress.
|
|
108
|
+
|
|
109
|
+
索引对应的列
|
|
110
|
+
|
|
111
|
+
:param field_name: The field_name of this BuildProgress.
|
|
112
|
+
:type field_name: str
|
|
113
|
+
"""
|
|
114
|
+
self._field_name = field_name
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def build_progress(self):
|
|
118
|
+
r"""Gets the build_progress of this BuildProgress.
|
|
119
|
+
|
|
120
|
+
构建索引的进度,进度值为[0,1]
|
|
121
|
+
|
|
122
|
+
:return: The build_progress of this BuildProgress.
|
|
123
|
+
:rtype: float
|
|
124
|
+
"""
|
|
125
|
+
return self._build_progress
|
|
126
|
+
|
|
127
|
+
@build_progress.setter
|
|
128
|
+
def build_progress(self, build_progress):
|
|
129
|
+
r"""Sets the build_progress of this BuildProgress.
|
|
130
|
+
|
|
131
|
+
构建索引的进度,进度值为[0,1]
|
|
132
|
+
|
|
133
|
+
:param build_progress: The build_progress of this BuildProgress.
|
|
134
|
+
:type build_progress: float
|
|
135
|
+
"""
|
|
136
|
+
self._build_progress = build_progress
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def indexed_rows(self):
|
|
140
|
+
r"""Gets the indexed_rows of this BuildProgress.
|
|
141
|
+
|
|
142
|
+
已完成索引的数据量
|
|
143
|
+
|
|
144
|
+
:return: The indexed_rows of this BuildProgress.
|
|
145
|
+
:rtype: int
|
|
146
|
+
"""
|
|
147
|
+
return self._indexed_rows
|
|
148
|
+
|
|
149
|
+
@indexed_rows.setter
|
|
150
|
+
def indexed_rows(self, indexed_rows):
|
|
151
|
+
r"""Sets the indexed_rows of this BuildProgress.
|
|
152
|
+
|
|
153
|
+
已完成索引的数据量
|
|
154
|
+
|
|
155
|
+
:param indexed_rows: The indexed_rows of this BuildProgress.
|
|
156
|
+
:type indexed_rows: int
|
|
157
|
+
"""
|
|
158
|
+
self._indexed_rows = indexed_rows
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def total_rows(self):
|
|
162
|
+
r"""Gets the total_rows of this BuildProgress.
|
|
163
|
+
|
|
164
|
+
需要索引的数据量
|
|
165
|
+
|
|
166
|
+
:return: The total_rows of this BuildProgress.
|
|
167
|
+
:rtype: int
|
|
168
|
+
"""
|
|
169
|
+
return self._total_rows
|
|
170
|
+
|
|
171
|
+
@total_rows.setter
|
|
172
|
+
def total_rows(self, total_rows):
|
|
173
|
+
r"""Sets the total_rows of this BuildProgress.
|
|
174
|
+
|
|
175
|
+
需要索引的数据量
|
|
176
|
+
|
|
177
|
+
:param total_rows: The total_rows of this BuildProgress.
|
|
178
|
+
:type total_rows: int
|
|
179
|
+
"""
|
|
180
|
+
self._total_rows = total_rows
|
|
181
|
+
|
|
182
|
+
def to_dict(self):
|
|
183
|
+
"""Returns the model properties as a dict"""
|
|
184
|
+
result = {}
|
|
185
|
+
|
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
187
|
+
value = getattr(self, attr)
|
|
188
|
+
if isinstance(value, list):
|
|
189
|
+
result[attr] = list(map(
|
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
191
|
+
value
|
|
192
|
+
))
|
|
193
|
+
elif hasattr(value, "to_dict"):
|
|
194
|
+
result[attr] = value.to_dict()
|
|
195
|
+
elif isinstance(value, dict):
|
|
196
|
+
result[attr] = dict(map(
|
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
|
199
|
+
value.items()
|
|
200
|
+
))
|
|
201
|
+
else:
|
|
202
|
+
if attr in self.sensitive_list:
|
|
203
|
+
result[attr] = "****"
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
|
|
207
|
+
return result
|
|
208
|
+
|
|
209
|
+
def to_str(self):
|
|
210
|
+
"""Returns the string representation of the model"""
|
|
211
|
+
import simplejson as json
|
|
212
|
+
if six.PY2:
|
|
213
|
+
import sys
|
|
214
|
+
reload(sys)
|
|
215
|
+
sys.setdefaultencoding("utf-8")
|
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
217
|
+
|
|
218
|
+
def __repr__(self):
|
|
219
|
+
"""For `print`"""
|
|
220
|
+
return self.to_str()
|
|
221
|
+
|
|
222
|
+
def __eq__(self, other):
|
|
223
|
+
"""Returns true if both objects are equal"""
|
|
224
|
+
if not isinstance(other, BuildProgress):
|
|
225
|
+
return False
|
|
226
|
+
|
|
227
|
+
return self.__dict__ == other.__dict__
|
|
228
|
+
|
|
229
|
+
def __ne__(self, other):
|
|
230
|
+
"""Returns true if both objects are not equal"""
|
|
231
|
+
return not self == other
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ChargeInfo:
|
|
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
|
+
'charge_mode': 'str',
|
|
21
|
+
'period_type': 'str',
|
|
22
|
+
'period_num': 'int',
|
|
23
|
+
'is_auto_renew': 'bool',
|
|
24
|
+
'is_auto_pay': 'bool'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'charge_mode': 'charge_mode',
|
|
29
|
+
'period_type': 'period_type',
|
|
30
|
+
'period_num': 'period_num',
|
|
31
|
+
'is_auto_renew': 'is_auto_renew',
|
|
32
|
+
'is_auto_pay': 'is_auto_pay'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, charge_mode=None, period_type=None, period_num=None, is_auto_renew=None, is_auto_pay=None):
|
|
36
|
+
r"""ChargeInfo
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param charge_mode: 计费模式。取值范围: prePaid:预付费,即包年/包月。 postPaid:后付费,即按需付费。
|
|
41
|
+
:type charge_mode: str
|
|
42
|
+
:param period_type: 订购周期类型。取值范围: month:包月。 year:包年。 “charge_mode”为“prePaid”时生效,且为必选值。
|
|
43
|
+
:type period_type: str
|
|
44
|
+
:param period_num: “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3和5。
|
|
45
|
+
:type period_num: int
|
|
46
|
+
:param is_auto_renew: 创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。
|
|
47
|
+
:type is_auto_renew: bool
|
|
48
|
+
:param is_auto_pay: 创建包周期时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。
|
|
49
|
+
:type is_auto_pay: bool
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._charge_mode = None
|
|
55
|
+
self._period_type = None
|
|
56
|
+
self._period_num = None
|
|
57
|
+
self._is_auto_renew = None
|
|
58
|
+
self._is_auto_pay = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
self.charge_mode = charge_mode
|
|
62
|
+
if period_type is not None:
|
|
63
|
+
self.period_type = period_type
|
|
64
|
+
if period_num is not None:
|
|
65
|
+
self.period_num = period_num
|
|
66
|
+
if is_auto_renew is not None:
|
|
67
|
+
self.is_auto_renew = is_auto_renew
|
|
68
|
+
if is_auto_pay is not None:
|
|
69
|
+
self.is_auto_pay = is_auto_pay
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def charge_mode(self):
|
|
73
|
+
r"""Gets the charge_mode of this ChargeInfo.
|
|
74
|
+
|
|
75
|
+
计费模式。取值范围: prePaid:预付费,即包年/包月。 postPaid:后付费,即按需付费。
|
|
76
|
+
|
|
77
|
+
:return: The charge_mode of this ChargeInfo.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._charge_mode
|
|
81
|
+
|
|
82
|
+
@charge_mode.setter
|
|
83
|
+
def charge_mode(self, charge_mode):
|
|
84
|
+
r"""Sets the charge_mode of this ChargeInfo.
|
|
85
|
+
|
|
86
|
+
计费模式。取值范围: prePaid:预付费,即包年/包月。 postPaid:后付费,即按需付费。
|
|
87
|
+
|
|
88
|
+
:param charge_mode: The charge_mode of this ChargeInfo.
|
|
89
|
+
:type charge_mode: str
|
|
90
|
+
"""
|
|
91
|
+
self._charge_mode = charge_mode
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def period_type(self):
|
|
95
|
+
r"""Gets the period_type of this ChargeInfo.
|
|
96
|
+
|
|
97
|
+
订购周期类型。取值范围: month:包月。 year:包年。 “charge_mode”为“prePaid”时生效,且为必选值。
|
|
98
|
+
|
|
99
|
+
:return: The period_type of this ChargeInfo.
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._period_type
|
|
103
|
+
|
|
104
|
+
@period_type.setter
|
|
105
|
+
def period_type(self, period_type):
|
|
106
|
+
r"""Sets the period_type of this ChargeInfo.
|
|
107
|
+
|
|
108
|
+
订购周期类型。取值范围: month:包月。 year:包年。 “charge_mode”为“prePaid”时生效,且为必选值。
|
|
109
|
+
|
|
110
|
+
:param period_type: The period_type of this ChargeInfo.
|
|
111
|
+
:type period_type: str
|
|
112
|
+
"""
|
|
113
|
+
self._period_type = period_type
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def period_num(self):
|
|
117
|
+
r"""Gets the period_num of this ChargeInfo.
|
|
118
|
+
|
|
119
|
+
“charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3和5。
|
|
120
|
+
|
|
121
|
+
:return: The period_num of this ChargeInfo.
|
|
122
|
+
:rtype: int
|
|
123
|
+
"""
|
|
124
|
+
return self._period_num
|
|
125
|
+
|
|
126
|
+
@period_num.setter
|
|
127
|
+
def period_num(self, period_num):
|
|
128
|
+
r"""Sets the period_num of this ChargeInfo.
|
|
129
|
+
|
|
130
|
+
“charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3和5。
|
|
131
|
+
|
|
132
|
+
:param period_num: The period_num of this ChargeInfo.
|
|
133
|
+
:type period_num: int
|
|
134
|
+
"""
|
|
135
|
+
self._period_num = period_num
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def is_auto_renew(self):
|
|
139
|
+
r"""Gets the is_auto_renew of this ChargeInfo.
|
|
140
|
+
|
|
141
|
+
创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。
|
|
142
|
+
|
|
143
|
+
:return: The is_auto_renew of this ChargeInfo.
|
|
144
|
+
:rtype: bool
|
|
145
|
+
"""
|
|
146
|
+
return self._is_auto_renew
|
|
147
|
+
|
|
148
|
+
@is_auto_renew.setter
|
|
149
|
+
def is_auto_renew(self, is_auto_renew):
|
|
150
|
+
r"""Sets the is_auto_renew of this ChargeInfo.
|
|
151
|
+
|
|
152
|
+
创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。
|
|
153
|
+
|
|
154
|
+
:param is_auto_renew: The is_auto_renew of this ChargeInfo.
|
|
155
|
+
:type is_auto_renew: bool
|
|
156
|
+
"""
|
|
157
|
+
self._is_auto_renew = is_auto_renew
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def is_auto_pay(self):
|
|
161
|
+
r"""Gets the is_auto_pay of this ChargeInfo.
|
|
162
|
+
|
|
163
|
+
创建包周期时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。
|
|
164
|
+
|
|
165
|
+
:return: The is_auto_pay of this ChargeInfo.
|
|
166
|
+
:rtype: bool
|
|
167
|
+
"""
|
|
168
|
+
return self._is_auto_pay
|
|
169
|
+
|
|
170
|
+
@is_auto_pay.setter
|
|
171
|
+
def is_auto_pay(self, is_auto_pay):
|
|
172
|
+
r"""Sets the is_auto_pay of this ChargeInfo.
|
|
173
|
+
|
|
174
|
+
创建包周期时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。
|
|
175
|
+
|
|
176
|
+
:param is_auto_pay: The is_auto_pay of this ChargeInfo.
|
|
177
|
+
:type is_auto_pay: bool
|
|
178
|
+
"""
|
|
179
|
+
self._is_auto_pay = is_auto_pay
|
|
180
|
+
|
|
181
|
+
def to_dict(self):
|
|
182
|
+
"""Returns the model properties as a dict"""
|
|
183
|
+
result = {}
|
|
184
|
+
|
|
185
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
186
|
+
value = getattr(self, attr)
|
|
187
|
+
if isinstance(value, list):
|
|
188
|
+
result[attr] = list(map(
|
|
189
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
190
|
+
value
|
|
191
|
+
))
|
|
192
|
+
elif hasattr(value, "to_dict"):
|
|
193
|
+
result[attr] = value.to_dict()
|
|
194
|
+
elif isinstance(value, dict):
|
|
195
|
+
result[attr] = dict(map(
|
|
196
|
+
lambda item: (item[0], item[1].to_dict())
|
|
197
|
+
if hasattr(item[1], "to_dict") else item,
|
|
198
|
+
value.items()
|
|
199
|
+
))
|
|
200
|
+
else:
|
|
201
|
+
if attr in self.sensitive_list:
|
|
202
|
+
result[attr] = "****"
|
|
203
|
+
else:
|
|
204
|
+
result[attr] = value
|
|
205
|
+
|
|
206
|
+
return result
|
|
207
|
+
|
|
208
|
+
def to_str(self):
|
|
209
|
+
"""Returns the string representation of the model"""
|
|
210
|
+
import simplejson as json
|
|
211
|
+
if six.PY2:
|
|
212
|
+
import sys
|
|
213
|
+
reload(sys)
|
|
214
|
+
sys.setdefaultencoding("utf-8")
|
|
215
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
216
|
+
|
|
217
|
+
def __repr__(self):
|
|
218
|
+
"""For `print`"""
|
|
219
|
+
return self.to_str()
|
|
220
|
+
|
|
221
|
+
def __eq__(self, other):
|
|
222
|
+
"""Returns true if both objects are equal"""
|
|
223
|
+
if not isinstance(other, ChargeInfo):
|
|
224
|
+
return False
|
|
225
|
+
|
|
226
|
+
return self.__dict__ == other.__dict__
|
|
227
|
+
|
|
228
|
+
def __ne__(self, other):
|
|
229
|
+
"""Returns true if both objects are not equal"""
|
|
230
|
+
return not self == other
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CollectionBaseInfo:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'store_name': 'str',
|
|
21
|
+
'collection_name': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'store_name': 'store_name',
|
|
26
|
+
'collection_name': 'collection_name'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, store_name=None, collection_name=None):
|
|
30
|
+
r"""CollectionBaseInfo
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param store_name: 知识仓实例名称。
|
|
35
|
+
:type store_name: str
|
|
36
|
+
:param collection_name: Collection 名称。
|
|
37
|
+
:type collection_name: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._store_name = None
|
|
43
|
+
self._collection_name = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.store_name = store_name
|
|
47
|
+
self.collection_name = collection_name
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def store_name(self):
|
|
51
|
+
r"""Gets the store_name of this CollectionBaseInfo.
|
|
52
|
+
|
|
53
|
+
知识仓实例名称。
|
|
54
|
+
|
|
55
|
+
:return: The store_name of this CollectionBaseInfo.
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._store_name
|
|
59
|
+
|
|
60
|
+
@store_name.setter
|
|
61
|
+
def store_name(self, store_name):
|
|
62
|
+
r"""Sets the store_name of this CollectionBaseInfo.
|
|
63
|
+
|
|
64
|
+
知识仓实例名称。
|
|
65
|
+
|
|
66
|
+
:param store_name: The store_name of this CollectionBaseInfo.
|
|
67
|
+
:type store_name: str
|
|
68
|
+
"""
|
|
69
|
+
self._store_name = store_name
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def collection_name(self):
|
|
73
|
+
r"""Gets the collection_name of this CollectionBaseInfo.
|
|
74
|
+
|
|
75
|
+
Collection 名称。
|
|
76
|
+
|
|
77
|
+
:return: The collection_name of this CollectionBaseInfo.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._collection_name
|
|
81
|
+
|
|
82
|
+
@collection_name.setter
|
|
83
|
+
def collection_name(self, collection_name):
|
|
84
|
+
r"""Sets the collection_name of this CollectionBaseInfo.
|
|
85
|
+
|
|
86
|
+
Collection 名称。
|
|
87
|
+
|
|
88
|
+
:param collection_name: The collection_name of this CollectionBaseInfo.
|
|
89
|
+
:type collection_name: str
|
|
90
|
+
"""
|
|
91
|
+
self._collection_name = collection_name
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
"""Returns the model properties as a dict"""
|
|
95
|
+
result = {}
|
|
96
|
+
|
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
98
|
+
value = getattr(self, attr)
|
|
99
|
+
if isinstance(value, list):
|
|
100
|
+
result[attr] = list(map(
|
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
102
|
+
value
|
|
103
|
+
))
|
|
104
|
+
elif hasattr(value, "to_dict"):
|
|
105
|
+
result[attr] = value.to_dict()
|
|
106
|
+
elif isinstance(value, dict):
|
|
107
|
+
result[attr] = dict(map(
|
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
|
110
|
+
value.items()
|
|
111
|
+
))
|
|
112
|
+
else:
|
|
113
|
+
if attr in self.sensitive_list:
|
|
114
|
+
result[attr] = "****"
|
|
115
|
+
else:
|
|
116
|
+
result[attr] = value
|
|
117
|
+
|
|
118
|
+
return result
|
|
119
|
+
|
|
120
|
+
def to_str(self):
|
|
121
|
+
"""Returns the string representation of the model"""
|
|
122
|
+
import simplejson as json
|
|
123
|
+
if six.PY2:
|
|
124
|
+
import sys
|
|
125
|
+
reload(sys)
|
|
126
|
+
sys.setdefaultencoding("utf-8")
|
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
128
|
+
|
|
129
|
+
def __repr__(self):
|
|
130
|
+
"""For `print`"""
|
|
131
|
+
return self.to_str()
|
|
132
|
+
|
|
133
|
+
def __eq__(self, other):
|
|
134
|
+
"""Returns true if both objects are equal"""
|
|
135
|
+
if not isinstance(other, CollectionBaseInfo):
|
|
136
|
+
return False
|
|
137
|
+
|
|
138
|
+
return self.__dict__ == other.__dict__
|
|
139
|
+
|
|
140
|
+
def __ne__(self, other):
|
|
141
|
+
"""Returns true if both objects are not equal"""
|
|
142
|
+
return not self == other
|