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,145 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DeleteIndexResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'code': 'str',
|
|
22
|
+
'message': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'code': 'code',
|
|
27
|
+
'message': 'message'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, code=None, message=None):
|
|
31
|
+
r"""DeleteIndexResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param code: 返回码
|
|
36
|
+
:type code: str
|
|
37
|
+
:param message: 描述信息
|
|
38
|
+
:type message: str
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
super(DeleteIndexResponse, self).__init__()
|
|
42
|
+
|
|
43
|
+
self._code = None
|
|
44
|
+
self._message = None
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
if code is not None:
|
|
48
|
+
self.code = code
|
|
49
|
+
if message is not None:
|
|
50
|
+
self.message = message
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def code(self):
|
|
54
|
+
r"""Gets the code of this DeleteIndexResponse.
|
|
55
|
+
|
|
56
|
+
返回码
|
|
57
|
+
|
|
58
|
+
:return: The code of this DeleteIndexResponse.
|
|
59
|
+
:rtype: str
|
|
60
|
+
"""
|
|
61
|
+
return self._code
|
|
62
|
+
|
|
63
|
+
@code.setter
|
|
64
|
+
def code(self, code):
|
|
65
|
+
r"""Sets the code of this DeleteIndexResponse.
|
|
66
|
+
|
|
67
|
+
返回码
|
|
68
|
+
|
|
69
|
+
:param code: The code of this DeleteIndexResponse.
|
|
70
|
+
:type code: str
|
|
71
|
+
"""
|
|
72
|
+
self._code = code
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def message(self):
|
|
76
|
+
r"""Gets the message of this DeleteIndexResponse.
|
|
77
|
+
|
|
78
|
+
描述信息
|
|
79
|
+
|
|
80
|
+
:return: The message of this DeleteIndexResponse.
|
|
81
|
+
:rtype: str
|
|
82
|
+
"""
|
|
83
|
+
return self._message
|
|
84
|
+
|
|
85
|
+
@message.setter
|
|
86
|
+
def message(self, message):
|
|
87
|
+
r"""Sets the message of this DeleteIndexResponse.
|
|
88
|
+
|
|
89
|
+
描述信息
|
|
90
|
+
|
|
91
|
+
:param message: The message of this DeleteIndexResponse.
|
|
92
|
+
:type message: str
|
|
93
|
+
"""
|
|
94
|
+
self._message = message
|
|
95
|
+
|
|
96
|
+
def to_dict(self):
|
|
97
|
+
"""Returns the model properties as a dict"""
|
|
98
|
+
result = {}
|
|
99
|
+
|
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
101
|
+
value = getattr(self, attr)
|
|
102
|
+
if isinstance(value, list):
|
|
103
|
+
result[attr] = list(map(
|
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
105
|
+
value
|
|
106
|
+
))
|
|
107
|
+
elif hasattr(value, "to_dict"):
|
|
108
|
+
result[attr] = value.to_dict()
|
|
109
|
+
elif isinstance(value, dict):
|
|
110
|
+
result[attr] = dict(map(
|
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
|
113
|
+
value.items()
|
|
114
|
+
))
|
|
115
|
+
else:
|
|
116
|
+
if attr in self.sensitive_list:
|
|
117
|
+
result[attr] = "****"
|
|
118
|
+
else:
|
|
119
|
+
result[attr] = value
|
|
120
|
+
|
|
121
|
+
return result
|
|
122
|
+
|
|
123
|
+
def to_str(self):
|
|
124
|
+
"""Returns the string representation of the model"""
|
|
125
|
+
import simplejson as json
|
|
126
|
+
if six.PY2:
|
|
127
|
+
import sys
|
|
128
|
+
reload(sys)
|
|
129
|
+
sys.setdefaultencoding("utf-8")
|
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
131
|
+
|
|
132
|
+
def __repr__(self):
|
|
133
|
+
"""For `print`"""
|
|
134
|
+
return self.to_str()
|
|
135
|
+
|
|
136
|
+
def __eq__(self, other):
|
|
137
|
+
"""Returns true if both objects are equal"""
|
|
138
|
+
if not isinstance(other, DeleteIndexResponse):
|
|
139
|
+
return False
|
|
140
|
+
|
|
141
|
+
return self.__dict__ == other.__dict__
|
|
142
|
+
|
|
143
|
+
def __ne__(self, other):
|
|
144
|
+
"""Returns true if both objects are not equal"""
|
|
145
|
+
return not self == other
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteStoreData:
|
|
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
|
+
'job_id': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'job_id': 'job_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, job_id=None):
|
|
28
|
+
r"""DeleteStoreData
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param job_id: 删除知识仓实例的任务id。
|
|
33
|
+
:type job_id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._job_id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.job_id = job_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def job_id(self):
|
|
45
|
+
r"""Gets the job_id of this DeleteStoreData.
|
|
46
|
+
|
|
47
|
+
删除知识仓实例的任务id。
|
|
48
|
+
|
|
49
|
+
:return: The job_id of this DeleteStoreData.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._job_id
|
|
53
|
+
|
|
54
|
+
@job_id.setter
|
|
55
|
+
def job_id(self, job_id):
|
|
56
|
+
r"""Sets the job_id of this DeleteStoreData.
|
|
57
|
+
|
|
58
|
+
删除知识仓实例的任务id。
|
|
59
|
+
|
|
60
|
+
:param job_id: The job_id of this DeleteStoreData.
|
|
61
|
+
:type job_id: str
|
|
62
|
+
"""
|
|
63
|
+
self._job_id = job_id
|
|
64
|
+
|
|
65
|
+
def to_dict(self):
|
|
66
|
+
"""Returns the model properties as a dict"""
|
|
67
|
+
result = {}
|
|
68
|
+
|
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
70
|
+
value = getattr(self, attr)
|
|
71
|
+
if isinstance(value, list):
|
|
72
|
+
result[attr] = list(map(
|
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
74
|
+
value
|
|
75
|
+
))
|
|
76
|
+
elif hasattr(value, "to_dict"):
|
|
77
|
+
result[attr] = value.to_dict()
|
|
78
|
+
elif isinstance(value, dict):
|
|
79
|
+
result[attr] = dict(map(
|
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
|
82
|
+
value.items()
|
|
83
|
+
))
|
|
84
|
+
else:
|
|
85
|
+
if attr in self.sensitive_list:
|
|
86
|
+
result[attr] = "****"
|
|
87
|
+
else:
|
|
88
|
+
result[attr] = value
|
|
89
|
+
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def to_str(self):
|
|
93
|
+
"""Returns the string representation of the model"""
|
|
94
|
+
import simplejson as json
|
|
95
|
+
if six.PY2:
|
|
96
|
+
import sys
|
|
97
|
+
reload(sys)
|
|
98
|
+
sys.setdefaultencoding("utf-8")
|
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
100
|
+
|
|
101
|
+
def __repr__(self):
|
|
102
|
+
"""For `print`"""
|
|
103
|
+
return self.to_str()
|
|
104
|
+
|
|
105
|
+
def __eq__(self, other):
|
|
106
|
+
"""Returns true if both objects are equal"""
|
|
107
|
+
if not isinstance(other, DeleteStoreData):
|
|
108
|
+
return False
|
|
109
|
+
|
|
110
|
+
return self.__dict__ == other.__dict__
|
|
111
|
+
|
|
112
|
+
def __ne__(self, other):
|
|
113
|
+
"""Returns true if both objects are not equal"""
|
|
114
|
+
return not self == other
|
|
@@ -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 DeleteStoreRequest:
|
|
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': 'StoreInfo'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, body=None):
|
|
28
|
+
r"""DeleteStoreRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param body: Body of the DeleteStoreRequest
|
|
33
|
+
:type body: :class:`huaweicloudsdkdwr.v1.StoreInfo`
|
|
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 DeleteStoreRequest.
|
|
47
|
+
|
|
48
|
+
:return: The body of this DeleteStoreRequest.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.StoreInfo`
|
|
50
|
+
"""
|
|
51
|
+
return self._body
|
|
52
|
+
|
|
53
|
+
@body.setter
|
|
54
|
+
def body(self, body):
|
|
55
|
+
r"""Sets the body of this DeleteStoreRequest.
|
|
56
|
+
|
|
57
|
+
:param body: The body of this DeleteStoreRequest.
|
|
58
|
+
:type body: :class:`huaweicloudsdkdwr.v1.StoreInfo`
|
|
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, DeleteStoreRequest):
|
|
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
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DeleteStoreResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'code': 'str',
|
|
22
|
+
'message': 'str',
|
|
23
|
+
'data': 'DeleteStoreData'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'code': 'code',
|
|
28
|
+
'message': 'message',
|
|
29
|
+
'data': 'data'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, code=None, message=None, data=None):
|
|
33
|
+
r"""DeleteStoreResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param code: 返回码
|
|
38
|
+
:type code: str
|
|
39
|
+
:param message: 描述信息
|
|
40
|
+
:type message: str
|
|
41
|
+
:param data:
|
|
42
|
+
:type data: :class:`huaweicloudsdkdwr.v1.DeleteStoreData`
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(DeleteStoreResponse, self).__init__()
|
|
46
|
+
|
|
47
|
+
self._code = None
|
|
48
|
+
self._message = None
|
|
49
|
+
self._data = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
if code is not None:
|
|
53
|
+
self.code = code
|
|
54
|
+
if message is not None:
|
|
55
|
+
self.message = message
|
|
56
|
+
if data is not None:
|
|
57
|
+
self.data = data
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def code(self):
|
|
61
|
+
r"""Gets the code of this DeleteStoreResponse.
|
|
62
|
+
|
|
63
|
+
返回码
|
|
64
|
+
|
|
65
|
+
:return: The code of this DeleteStoreResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._code
|
|
69
|
+
|
|
70
|
+
@code.setter
|
|
71
|
+
def code(self, code):
|
|
72
|
+
r"""Sets the code of this DeleteStoreResponse.
|
|
73
|
+
|
|
74
|
+
返回码
|
|
75
|
+
|
|
76
|
+
:param code: The code of this DeleteStoreResponse.
|
|
77
|
+
:type code: str
|
|
78
|
+
"""
|
|
79
|
+
self._code = code
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def message(self):
|
|
83
|
+
r"""Gets the message of this DeleteStoreResponse.
|
|
84
|
+
|
|
85
|
+
描述信息
|
|
86
|
+
|
|
87
|
+
:return: The message of this DeleteStoreResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._message
|
|
91
|
+
|
|
92
|
+
@message.setter
|
|
93
|
+
def message(self, message):
|
|
94
|
+
r"""Sets the message of this DeleteStoreResponse.
|
|
95
|
+
|
|
96
|
+
描述信息
|
|
97
|
+
|
|
98
|
+
:param message: The message of this DeleteStoreResponse.
|
|
99
|
+
:type message: str
|
|
100
|
+
"""
|
|
101
|
+
self._message = message
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def data(self):
|
|
105
|
+
r"""Gets the data of this DeleteStoreResponse.
|
|
106
|
+
|
|
107
|
+
:return: The data of this DeleteStoreResponse.
|
|
108
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.DeleteStoreData`
|
|
109
|
+
"""
|
|
110
|
+
return self._data
|
|
111
|
+
|
|
112
|
+
@data.setter
|
|
113
|
+
def data(self, data):
|
|
114
|
+
r"""Sets the data of this DeleteStoreResponse.
|
|
115
|
+
|
|
116
|
+
:param data: The data of this DeleteStoreResponse.
|
|
117
|
+
:type data: :class:`huaweicloudsdkdwr.v1.DeleteStoreData`
|
|
118
|
+
"""
|
|
119
|
+
self._data = data
|
|
120
|
+
|
|
121
|
+
def to_dict(self):
|
|
122
|
+
"""Returns the model properties as a dict"""
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
126
|
+
value = getattr(self, attr)
|
|
127
|
+
if isinstance(value, list):
|
|
128
|
+
result[attr] = list(map(
|
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
130
|
+
value
|
|
131
|
+
))
|
|
132
|
+
elif hasattr(value, "to_dict"):
|
|
133
|
+
result[attr] = value.to_dict()
|
|
134
|
+
elif isinstance(value, dict):
|
|
135
|
+
result[attr] = dict(map(
|
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
|
138
|
+
value.items()
|
|
139
|
+
))
|
|
140
|
+
else:
|
|
141
|
+
if attr in self.sensitive_list:
|
|
142
|
+
result[attr] = "****"
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
|
|
146
|
+
return result
|
|
147
|
+
|
|
148
|
+
def to_str(self):
|
|
149
|
+
"""Returns the string representation of the model"""
|
|
150
|
+
import simplejson as json
|
|
151
|
+
if six.PY2:
|
|
152
|
+
import sys
|
|
153
|
+
reload(sys)
|
|
154
|
+
sys.setdefaultencoding("utf-8")
|
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
156
|
+
|
|
157
|
+
def __repr__(self):
|
|
158
|
+
"""For `print`"""
|
|
159
|
+
return self.to_str()
|
|
160
|
+
|
|
161
|
+
def __eq__(self, other):
|
|
162
|
+
"""Returns true if both objects are equal"""
|
|
163
|
+
if not isinstance(other, DeleteStoreResponse):
|
|
164
|
+
return False
|
|
165
|
+
|
|
166
|
+
return self.__dict__ == other.__dict__
|
|
167
|
+
|
|
168
|
+
def __ne__(self, other):
|
|
169
|
+
"""Returns true if both objects are not equal"""
|
|
170
|
+
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 DescribeCollectionRequest:
|
|
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': 'CollectionBaseInfo'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, body=None):
|
|
28
|
+
r"""DescribeCollectionRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param body: Body of the DescribeCollectionRequest
|
|
33
|
+
:type body: :class:`huaweicloudsdkdwr.v1.CollectionBaseInfo`
|
|
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 DescribeCollectionRequest.
|
|
47
|
+
|
|
48
|
+
:return: The body of this DescribeCollectionRequest.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.CollectionBaseInfo`
|
|
50
|
+
"""
|
|
51
|
+
return self._body
|
|
52
|
+
|
|
53
|
+
@body.setter
|
|
54
|
+
def body(self, body):
|
|
55
|
+
r"""Sets the body of this DescribeCollectionRequest.
|
|
56
|
+
|
|
57
|
+
:param body: The body of this DescribeCollectionRequest.
|
|
58
|
+
:type body: :class:`huaweicloudsdkdwr.v1.CollectionBaseInfo`
|
|
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, DescribeCollectionRequest):
|
|
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
|