huaweicloudsdkdwr 3.1.151__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.151.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/METADATA +2 -2
- huaweicloudsdkdwr-3.1.152.dist-info/RECORD +169 -0
- huaweicloudsdkdwr-3.1.151.dist-info/RECORD +0 -80
- {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListCollectionData:
|
|
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
|
+
'collections': 'list[str]',
|
|
21
|
+
'details': 'list[ListCollectionDetails]'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'collections': 'collections',
|
|
26
|
+
'details': 'details'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, collections=None, details=None):
|
|
30
|
+
r"""ListCollectionData
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param collections: 知识仓实例下所有collection名称列表
|
|
35
|
+
:type collections: list[str]
|
|
36
|
+
:param details: collection详细信息
|
|
37
|
+
:type details: list[:class:`huaweicloudsdkdwr.v1.ListCollectionDetails`]
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._collections = None
|
|
43
|
+
self._details = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.collections = collections
|
|
47
|
+
if details is not None:
|
|
48
|
+
self.details = details
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def collections(self):
|
|
52
|
+
r"""Gets the collections of this ListCollectionData.
|
|
53
|
+
|
|
54
|
+
知识仓实例下所有collection名称列表
|
|
55
|
+
|
|
56
|
+
:return: The collections of this ListCollectionData.
|
|
57
|
+
:rtype: list[str]
|
|
58
|
+
"""
|
|
59
|
+
return self._collections
|
|
60
|
+
|
|
61
|
+
@collections.setter
|
|
62
|
+
def collections(self, collections):
|
|
63
|
+
r"""Sets the collections of this ListCollectionData.
|
|
64
|
+
|
|
65
|
+
知识仓实例下所有collection名称列表
|
|
66
|
+
|
|
67
|
+
:param collections: The collections of this ListCollectionData.
|
|
68
|
+
:type collections: list[str]
|
|
69
|
+
"""
|
|
70
|
+
self._collections = collections
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def details(self):
|
|
74
|
+
r"""Gets the details of this ListCollectionData.
|
|
75
|
+
|
|
76
|
+
collection详细信息
|
|
77
|
+
|
|
78
|
+
:return: The details of this ListCollectionData.
|
|
79
|
+
:rtype: list[:class:`huaweicloudsdkdwr.v1.ListCollectionDetails`]
|
|
80
|
+
"""
|
|
81
|
+
return self._details
|
|
82
|
+
|
|
83
|
+
@details.setter
|
|
84
|
+
def details(self, details):
|
|
85
|
+
r"""Sets the details of this ListCollectionData.
|
|
86
|
+
|
|
87
|
+
collection详细信息
|
|
88
|
+
|
|
89
|
+
:param details: The details of this ListCollectionData.
|
|
90
|
+
:type details: list[:class:`huaweicloudsdkdwr.v1.ListCollectionDetails`]
|
|
91
|
+
"""
|
|
92
|
+
self._details = details
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
"""Returns the model properties as a dict"""
|
|
96
|
+
result = {}
|
|
97
|
+
|
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
99
|
+
value = getattr(self, attr)
|
|
100
|
+
if isinstance(value, list):
|
|
101
|
+
result[attr] = list(map(
|
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
103
|
+
value
|
|
104
|
+
))
|
|
105
|
+
elif hasattr(value, "to_dict"):
|
|
106
|
+
result[attr] = value.to_dict()
|
|
107
|
+
elif isinstance(value, dict):
|
|
108
|
+
result[attr] = dict(map(
|
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
|
111
|
+
value.items()
|
|
112
|
+
))
|
|
113
|
+
else:
|
|
114
|
+
if attr in self.sensitive_list:
|
|
115
|
+
result[attr] = "****"
|
|
116
|
+
else:
|
|
117
|
+
result[attr] = value
|
|
118
|
+
|
|
119
|
+
return result
|
|
120
|
+
|
|
121
|
+
def to_str(self):
|
|
122
|
+
"""Returns the string representation of the model"""
|
|
123
|
+
import simplejson as json
|
|
124
|
+
if six.PY2:
|
|
125
|
+
import sys
|
|
126
|
+
reload(sys)
|
|
127
|
+
sys.setdefaultencoding("utf-8")
|
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
129
|
+
|
|
130
|
+
def __repr__(self):
|
|
131
|
+
"""For `print`"""
|
|
132
|
+
return self.to_str()
|
|
133
|
+
|
|
134
|
+
def __eq__(self, other):
|
|
135
|
+
"""Returns true if both objects are equal"""
|
|
136
|
+
if not isinstance(other, ListCollectionData):
|
|
137
|
+
return False
|
|
138
|
+
|
|
139
|
+
return self.__dict__ == other.__dict__
|
|
140
|
+
|
|
141
|
+
def __ne__(self, other):
|
|
142
|
+
"""Returns true if both objects are not equal"""
|
|
143
|
+
return not self == other
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListCollectionDetails:
|
|
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
|
+
'collection_name': 'str',
|
|
21
|
+
'index_num': 'int',
|
|
22
|
+
'entity_num': 'int',
|
|
23
|
+
'load_state': 'str',
|
|
24
|
+
'create_time': 'str',
|
|
25
|
+
'description': 'str'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
attribute_map = {
|
|
29
|
+
'collection_name': 'collection_name',
|
|
30
|
+
'index_num': 'index_num',
|
|
31
|
+
'entity_num': 'entity_num',
|
|
32
|
+
'load_state': 'load_state',
|
|
33
|
+
'create_time': 'create_time',
|
|
34
|
+
'description': 'description'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def __init__(self, collection_name=None, index_num=None, entity_num=None, load_state=None, create_time=None, description=None):
|
|
38
|
+
r"""ListCollectionDetails
|
|
39
|
+
|
|
40
|
+
The model defined in huaweicloud sdk
|
|
41
|
+
|
|
42
|
+
:param collection_name: collection名称
|
|
43
|
+
:type collection_name: str
|
|
44
|
+
:param index_num: 索引数量
|
|
45
|
+
:type index_num: int
|
|
46
|
+
:param entity_num: collection中的entity数量
|
|
47
|
+
:type entity_num: int
|
|
48
|
+
:param load_state: 标识当前Collection加载状态。 1、LoadStateLoaded:表示当前Collection已准备就绪,可正常使用。 2、LoadStateLoading:表示当前Collection正在load。 3、LoadStateNotLoad:表示collection未加载。
|
|
49
|
+
:type load_state: str
|
|
50
|
+
:param create_time: 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ\"
|
|
51
|
+
:type create_time: str
|
|
52
|
+
:param description: 描述信息
|
|
53
|
+
:type description: str
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
self._collection_name = None
|
|
59
|
+
self._index_num = None
|
|
60
|
+
self._entity_num = None
|
|
61
|
+
self._load_state = None
|
|
62
|
+
self._create_time = None
|
|
63
|
+
self._description = None
|
|
64
|
+
self.discriminator = None
|
|
65
|
+
|
|
66
|
+
if collection_name is not None:
|
|
67
|
+
self.collection_name = collection_name
|
|
68
|
+
if index_num is not None:
|
|
69
|
+
self.index_num = index_num
|
|
70
|
+
if entity_num is not None:
|
|
71
|
+
self.entity_num = entity_num
|
|
72
|
+
if load_state is not None:
|
|
73
|
+
self.load_state = load_state
|
|
74
|
+
if create_time is not None:
|
|
75
|
+
self.create_time = create_time
|
|
76
|
+
if description is not None:
|
|
77
|
+
self.description = description
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def collection_name(self):
|
|
81
|
+
r"""Gets the collection_name of this ListCollectionDetails.
|
|
82
|
+
|
|
83
|
+
collection名称
|
|
84
|
+
|
|
85
|
+
:return: The collection_name of this ListCollectionDetails.
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._collection_name
|
|
89
|
+
|
|
90
|
+
@collection_name.setter
|
|
91
|
+
def collection_name(self, collection_name):
|
|
92
|
+
r"""Sets the collection_name of this ListCollectionDetails.
|
|
93
|
+
|
|
94
|
+
collection名称
|
|
95
|
+
|
|
96
|
+
:param collection_name: The collection_name of this ListCollectionDetails.
|
|
97
|
+
:type collection_name: str
|
|
98
|
+
"""
|
|
99
|
+
self._collection_name = collection_name
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def index_num(self):
|
|
103
|
+
r"""Gets the index_num of this ListCollectionDetails.
|
|
104
|
+
|
|
105
|
+
索引数量
|
|
106
|
+
|
|
107
|
+
:return: The index_num of this ListCollectionDetails.
|
|
108
|
+
:rtype: int
|
|
109
|
+
"""
|
|
110
|
+
return self._index_num
|
|
111
|
+
|
|
112
|
+
@index_num.setter
|
|
113
|
+
def index_num(self, index_num):
|
|
114
|
+
r"""Sets the index_num of this ListCollectionDetails.
|
|
115
|
+
|
|
116
|
+
索引数量
|
|
117
|
+
|
|
118
|
+
:param index_num: The index_num of this ListCollectionDetails.
|
|
119
|
+
:type index_num: int
|
|
120
|
+
"""
|
|
121
|
+
self._index_num = index_num
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def entity_num(self):
|
|
125
|
+
r"""Gets the entity_num of this ListCollectionDetails.
|
|
126
|
+
|
|
127
|
+
collection中的entity数量
|
|
128
|
+
|
|
129
|
+
:return: The entity_num of this ListCollectionDetails.
|
|
130
|
+
:rtype: int
|
|
131
|
+
"""
|
|
132
|
+
return self._entity_num
|
|
133
|
+
|
|
134
|
+
@entity_num.setter
|
|
135
|
+
def entity_num(self, entity_num):
|
|
136
|
+
r"""Sets the entity_num of this ListCollectionDetails.
|
|
137
|
+
|
|
138
|
+
collection中的entity数量
|
|
139
|
+
|
|
140
|
+
:param entity_num: The entity_num of this ListCollectionDetails.
|
|
141
|
+
:type entity_num: int
|
|
142
|
+
"""
|
|
143
|
+
self._entity_num = entity_num
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def load_state(self):
|
|
147
|
+
r"""Gets the load_state of this ListCollectionDetails.
|
|
148
|
+
|
|
149
|
+
标识当前Collection加载状态。 1、LoadStateLoaded:表示当前Collection已准备就绪,可正常使用。 2、LoadStateLoading:表示当前Collection正在load。 3、LoadStateNotLoad:表示collection未加载。
|
|
150
|
+
|
|
151
|
+
:return: The load_state of this ListCollectionDetails.
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._load_state
|
|
155
|
+
|
|
156
|
+
@load_state.setter
|
|
157
|
+
def load_state(self, load_state):
|
|
158
|
+
r"""Sets the load_state of this ListCollectionDetails.
|
|
159
|
+
|
|
160
|
+
标识当前Collection加载状态。 1、LoadStateLoaded:表示当前Collection已准备就绪,可正常使用。 2、LoadStateLoading:表示当前Collection正在load。 3、LoadStateNotLoad:表示collection未加载。
|
|
161
|
+
|
|
162
|
+
:param load_state: The load_state of this ListCollectionDetails.
|
|
163
|
+
:type load_state: str
|
|
164
|
+
"""
|
|
165
|
+
self._load_state = load_state
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def create_time(self):
|
|
169
|
+
r"""Gets the create_time of this ListCollectionDetails.
|
|
170
|
+
|
|
171
|
+
创建时间,格式为“yyyy-mm-ddThh:mm:ssZ\"
|
|
172
|
+
|
|
173
|
+
:return: The create_time of this ListCollectionDetails.
|
|
174
|
+
:rtype: str
|
|
175
|
+
"""
|
|
176
|
+
return self._create_time
|
|
177
|
+
|
|
178
|
+
@create_time.setter
|
|
179
|
+
def create_time(self, create_time):
|
|
180
|
+
r"""Sets the create_time of this ListCollectionDetails.
|
|
181
|
+
|
|
182
|
+
创建时间,格式为“yyyy-mm-ddThh:mm:ssZ\"
|
|
183
|
+
|
|
184
|
+
:param create_time: The create_time of this ListCollectionDetails.
|
|
185
|
+
:type create_time: str
|
|
186
|
+
"""
|
|
187
|
+
self._create_time = create_time
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def description(self):
|
|
191
|
+
r"""Gets the description of this ListCollectionDetails.
|
|
192
|
+
|
|
193
|
+
描述信息
|
|
194
|
+
|
|
195
|
+
:return: The description of this ListCollectionDetails.
|
|
196
|
+
:rtype: str
|
|
197
|
+
"""
|
|
198
|
+
return self._description
|
|
199
|
+
|
|
200
|
+
@description.setter
|
|
201
|
+
def description(self, description):
|
|
202
|
+
r"""Sets the description of this ListCollectionDetails.
|
|
203
|
+
|
|
204
|
+
描述信息
|
|
205
|
+
|
|
206
|
+
:param description: The description of this ListCollectionDetails.
|
|
207
|
+
:type description: str
|
|
208
|
+
"""
|
|
209
|
+
self._description = description
|
|
210
|
+
|
|
211
|
+
def to_dict(self):
|
|
212
|
+
"""Returns the model properties as a dict"""
|
|
213
|
+
result = {}
|
|
214
|
+
|
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
216
|
+
value = getattr(self, attr)
|
|
217
|
+
if isinstance(value, list):
|
|
218
|
+
result[attr] = list(map(
|
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
220
|
+
value
|
|
221
|
+
))
|
|
222
|
+
elif hasattr(value, "to_dict"):
|
|
223
|
+
result[attr] = value.to_dict()
|
|
224
|
+
elif isinstance(value, dict):
|
|
225
|
+
result[attr] = dict(map(
|
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
|
228
|
+
value.items()
|
|
229
|
+
))
|
|
230
|
+
else:
|
|
231
|
+
if attr in self.sensitive_list:
|
|
232
|
+
result[attr] = "****"
|
|
233
|
+
else:
|
|
234
|
+
result[attr] = value
|
|
235
|
+
|
|
236
|
+
return result
|
|
237
|
+
|
|
238
|
+
def to_str(self):
|
|
239
|
+
"""Returns the string representation of the model"""
|
|
240
|
+
import simplejson as json
|
|
241
|
+
if six.PY2:
|
|
242
|
+
import sys
|
|
243
|
+
reload(sys)
|
|
244
|
+
sys.setdefaultencoding("utf-8")
|
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
246
|
+
|
|
247
|
+
def __repr__(self):
|
|
248
|
+
"""For `print`"""
|
|
249
|
+
return self.to_str()
|
|
250
|
+
|
|
251
|
+
def __eq__(self, other):
|
|
252
|
+
"""Returns true if both objects are equal"""
|
|
253
|
+
if not isinstance(other, ListCollectionDetails):
|
|
254
|
+
return False
|
|
255
|
+
|
|
256
|
+
return self.__dict__ == other.__dict__
|
|
257
|
+
|
|
258
|
+
def __ne__(self, other):
|
|
259
|
+
"""Returns true if both objects are not equal"""
|
|
260
|
+
return not self == other
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListCollectionsBody:
|
|
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
|
+
'detail': 'bool'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'store_name': 'store_name',
|
|
26
|
+
'detail': 'detail'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, store_name=None, detail=None):
|
|
30
|
+
r"""ListCollectionsBody
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param store_name: 知识仓实例名称
|
|
35
|
+
:type store_name: str
|
|
36
|
+
:param detail: 是否列举collection的详细信息,默认值:false
|
|
37
|
+
:type detail: bool
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._store_name = None
|
|
43
|
+
self._detail = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.store_name = store_name
|
|
47
|
+
if detail is not None:
|
|
48
|
+
self.detail = detail
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def store_name(self):
|
|
52
|
+
r"""Gets the store_name of this ListCollectionsBody.
|
|
53
|
+
|
|
54
|
+
知识仓实例名称
|
|
55
|
+
|
|
56
|
+
:return: The store_name of this ListCollectionsBody.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._store_name
|
|
60
|
+
|
|
61
|
+
@store_name.setter
|
|
62
|
+
def store_name(self, store_name):
|
|
63
|
+
r"""Sets the store_name of this ListCollectionsBody.
|
|
64
|
+
|
|
65
|
+
知识仓实例名称
|
|
66
|
+
|
|
67
|
+
:param store_name: The store_name of this ListCollectionsBody.
|
|
68
|
+
:type store_name: str
|
|
69
|
+
"""
|
|
70
|
+
self._store_name = store_name
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def detail(self):
|
|
74
|
+
r"""Gets the detail of this ListCollectionsBody.
|
|
75
|
+
|
|
76
|
+
是否列举collection的详细信息,默认值:false
|
|
77
|
+
|
|
78
|
+
:return: The detail of this ListCollectionsBody.
|
|
79
|
+
:rtype: bool
|
|
80
|
+
"""
|
|
81
|
+
return self._detail
|
|
82
|
+
|
|
83
|
+
@detail.setter
|
|
84
|
+
def detail(self, detail):
|
|
85
|
+
r"""Sets the detail of this ListCollectionsBody.
|
|
86
|
+
|
|
87
|
+
是否列举collection的详细信息,默认值:false
|
|
88
|
+
|
|
89
|
+
:param detail: The detail of this ListCollectionsBody.
|
|
90
|
+
:type detail: bool
|
|
91
|
+
"""
|
|
92
|
+
self._detail = detail
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
"""Returns the model properties as a dict"""
|
|
96
|
+
result = {}
|
|
97
|
+
|
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
99
|
+
value = getattr(self, attr)
|
|
100
|
+
if isinstance(value, list):
|
|
101
|
+
result[attr] = list(map(
|
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
103
|
+
value
|
|
104
|
+
))
|
|
105
|
+
elif hasattr(value, "to_dict"):
|
|
106
|
+
result[attr] = value.to_dict()
|
|
107
|
+
elif isinstance(value, dict):
|
|
108
|
+
result[attr] = dict(map(
|
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
|
111
|
+
value.items()
|
|
112
|
+
))
|
|
113
|
+
else:
|
|
114
|
+
if attr in self.sensitive_list:
|
|
115
|
+
result[attr] = "****"
|
|
116
|
+
else:
|
|
117
|
+
result[attr] = value
|
|
118
|
+
|
|
119
|
+
return result
|
|
120
|
+
|
|
121
|
+
def to_str(self):
|
|
122
|
+
"""Returns the string representation of the model"""
|
|
123
|
+
import simplejson as json
|
|
124
|
+
if six.PY2:
|
|
125
|
+
import sys
|
|
126
|
+
reload(sys)
|
|
127
|
+
sys.setdefaultencoding("utf-8")
|
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
129
|
+
|
|
130
|
+
def __repr__(self):
|
|
131
|
+
"""For `print`"""
|
|
132
|
+
return self.to_str()
|
|
133
|
+
|
|
134
|
+
def __eq__(self, other):
|
|
135
|
+
"""Returns true if both objects are equal"""
|
|
136
|
+
if not isinstance(other, ListCollectionsBody):
|
|
137
|
+
return False
|
|
138
|
+
|
|
139
|
+
return self.__dict__ == other.__dict__
|
|
140
|
+
|
|
141
|
+
def __ne__(self, other):
|
|
142
|
+
"""Returns true if both objects are not equal"""
|
|
143
|
+
return not self == other
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListCollectionsRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'body': 'ListCollectionsBody'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, body=None):
|
|
28
|
+
r"""ListCollectionsRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param body: Body of the ListCollectionsRequest
|
|
33
|
+
:type body: :class:`huaweicloudsdkdwr.v1.ListCollectionsBody`
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._body = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
if body is not None:
|
|
42
|
+
self.body = body
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def body(self):
|
|
46
|
+
r"""Gets the body of this ListCollectionsRequest.
|
|
47
|
+
|
|
48
|
+
:return: The body of this ListCollectionsRequest.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ListCollectionsBody`
|
|
50
|
+
"""
|
|
51
|
+
return self._body
|
|
52
|
+
|
|
53
|
+
@body.setter
|
|
54
|
+
def body(self, body):
|
|
55
|
+
r"""Sets the body of this ListCollectionsRequest.
|
|
56
|
+
|
|
57
|
+
:param body: The body of this ListCollectionsRequest.
|
|
58
|
+
:type body: :class:`huaweicloudsdkdwr.v1.ListCollectionsBody`
|
|
59
|
+
"""
|
|
60
|
+
self._body = body
|
|
61
|
+
|
|
62
|
+
def to_dict(self):
|
|
63
|
+
"""Returns the model properties as a dict"""
|
|
64
|
+
result = {}
|
|
65
|
+
|
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
67
|
+
value = getattr(self, attr)
|
|
68
|
+
if isinstance(value, list):
|
|
69
|
+
result[attr] = list(map(
|
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
71
|
+
value
|
|
72
|
+
))
|
|
73
|
+
elif hasattr(value, "to_dict"):
|
|
74
|
+
result[attr] = value.to_dict()
|
|
75
|
+
elif isinstance(value, dict):
|
|
76
|
+
result[attr] = dict(map(
|
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
|
79
|
+
value.items()
|
|
80
|
+
))
|
|
81
|
+
else:
|
|
82
|
+
if attr in self.sensitive_list:
|
|
83
|
+
result[attr] = "****"
|
|
84
|
+
else:
|
|
85
|
+
result[attr] = value
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def to_str(self):
|
|
90
|
+
"""Returns the string representation of the model"""
|
|
91
|
+
import simplejson as json
|
|
92
|
+
if six.PY2:
|
|
93
|
+
import sys
|
|
94
|
+
reload(sys)
|
|
95
|
+
sys.setdefaultencoding("utf-8")
|
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
97
|
+
|
|
98
|
+
def __repr__(self):
|
|
99
|
+
"""For `print`"""
|
|
100
|
+
return self.to_str()
|
|
101
|
+
|
|
102
|
+
def __eq__(self, other):
|
|
103
|
+
"""Returns true if both objects are equal"""
|
|
104
|
+
if not isinstance(other, ListCollectionsRequest):
|
|
105
|
+
return False
|
|
106
|
+
|
|
107
|
+
return self.__dict__ == other.__dict__
|
|
108
|
+
|
|
109
|
+
def __ne__(self, other):
|
|
110
|
+
"""Returns true if both objects are not equal"""
|
|
111
|
+
return not self == other
|