huaweicloudsdkdwr 3.1.151__py2.py3-none-any.whl → 3.1.153__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.153.dist-info}/METADATA +2 -2
- huaweicloudsdkdwr-3.1.153.dist-info/RECORD +169 -0
- huaweicloudsdkdwr-3.1.151.dist-info/RECORD +0 -80
- {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.153.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.153.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.153.dist-info}/top_level.txt +0 -0
|
@@ -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 CreateIndexRequest:
|
|
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': 'CreateIndexBody'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, body=None):
|
|
28
|
+
r"""CreateIndexRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param body: Body of the CreateIndexRequest
|
|
33
|
+
:type body: :class:`huaweicloudsdkdwr.v1.CreateIndexBody`
|
|
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 CreateIndexRequest.
|
|
47
|
+
|
|
48
|
+
:return: The body of this CreateIndexRequest.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.CreateIndexBody`
|
|
50
|
+
"""
|
|
51
|
+
return self._body
|
|
52
|
+
|
|
53
|
+
@body.setter
|
|
54
|
+
def body(self, body):
|
|
55
|
+
r"""Sets the body of this CreateIndexRequest.
|
|
56
|
+
|
|
57
|
+
:param body: The body of this CreateIndexRequest.
|
|
58
|
+
:type body: :class:`huaweicloudsdkdwr.v1.CreateIndexBody`
|
|
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, CreateIndexRequest):
|
|
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,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 CreateIndexResponse(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"""CreateIndexResponse
|
|
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(CreateIndexResponse, 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 CreateIndexResponse.
|
|
55
|
+
|
|
56
|
+
返回码
|
|
57
|
+
|
|
58
|
+
:return: The code of this CreateIndexResponse.
|
|
59
|
+
:rtype: str
|
|
60
|
+
"""
|
|
61
|
+
return self._code
|
|
62
|
+
|
|
63
|
+
@code.setter
|
|
64
|
+
def code(self, code):
|
|
65
|
+
r"""Sets the code of this CreateIndexResponse.
|
|
66
|
+
|
|
67
|
+
返回码
|
|
68
|
+
|
|
69
|
+
:param code: The code of this CreateIndexResponse.
|
|
70
|
+
:type code: str
|
|
71
|
+
"""
|
|
72
|
+
self._code = code
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def message(self):
|
|
76
|
+
r"""Gets the message of this CreateIndexResponse.
|
|
77
|
+
|
|
78
|
+
描述信息
|
|
79
|
+
|
|
80
|
+
:return: The message of this CreateIndexResponse.
|
|
81
|
+
:rtype: str
|
|
82
|
+
"""
|
|
83
|
+
return self._message
|
|
84
|
+
|
|
85
|
+
@message.setter
|
|
86
|
+
def message(self, message):
|
|
87
|
+
r"""Sets the message of this CreateIndexResponse.
|
|
88
|
+
|
|
89
|
+
描述信息
|
|
90
|
+
|
|
91
|
+
:param message: The message of this CreateIndexResponse.
|
|
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, CreateIndexResponse):
|
|
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,248 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateStoreBody:
|
|
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
|
+
'region': 'str',
|
|
22
|
+
'availability_zones': 'list[str]',
|
|
23
|
+
'flavor': 'Flavor',
|
|
24
|
+
'charge_info': 'ChargeInfo',
|
|
25
|
+
'description': 'str'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
attribute_map = {
|
|
29
|
+
'store_name': 'store_name',
|
|
30
|
+
'region': 'region',
|
|
31
|
+
'availability_zones': 'availability_zones',
|
|
32
|
+
'flavor': 'flavor',
|
|
33
|
+
'charge_info': 'charge_info',
|
|
34
|
+
'description': 'description'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def __init__(self, store_name=None, region=None, availability_zones=None, flavor=None, charge_info=None, description=None):
|
|
38
|
+
r"""CreateStoreBody
|
|
39
|
+
|
|
40
|
+
The model defined in huaweicloud sdk
|
|
41
|
+
|
|
42
|
+
:param store_name: 知识仓实例名称,全域唯一。 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。
|
|
43
|
+
:type store_name: str
|
|
44
|
+
:param region: 区域ID,根据上线的region决定。
|
|
45
|
+
:type region: str
|
|
46
|
+
:param availability_zones: 可用区ID。
|
|
47
|
+
:type availability_zones: list[str]
|
|
48
|
+
:param flavor:
|
|
49
|
+
:type flavor: :class:`huaweicloudsdkdwr.v1.Flavor`
|
|
50
|
+
:param charge_info:
|
|
51
|
+
:type charge_info: :class:`huaweicloudsdkdwr.v1.ChargeInfo`
|
|
52
|
+
:param description: 知识仓实例描述信息。有效长度0-255 服务实例描述信息。有效长度0-255
|
|
53
|
+
:type description: str
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
self._store_name = None
|
|
59
|
+
self._region = None
|
|
60
|
+
self._availability_zones = None
|
|
61
|
+
self._flavor = None
|
|
62
|
+
self._charge_info = None
|
|
63
|
+
self._description = None
|
|
64
|
+
self.discriminator = None
|
|
65
|
+
|
|
66
|
+
self.store_name = store_name
|
|
67
|
+
self.region = region
|
|
68
|
+
self.availability_zones = availability_zones
|
|
69
|
+
self.flavor = flavor
|
|
70
|
+
if charge_info is not None:
|
|
71
|
+
self.charge_info = charge_info
|
|
72
|
+
if description is not None:
|
|
73
|
+
self.description = description
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def store_name(self):
|
|
77
|
+
r"""Gets the store_name of this CreateStoreBody.
|
|
78
|
+
|
|
79
|
+
知识仓实例名称,全域唯一。 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。
|
|
80
|
+
|
|
81
|
+
:return: The store_name of this CreateStoreBody.
|
|
82
|
+
:rtype: str
|
|
83
|
+
"""
|
|
84
|
+
return self._store_name
|
|
85
|
+
|
|
86
|
+
@store_name.setter
|
|
87
|
+
def store_name(self, store_name):
|
|
88
|
+
r"""Sets the store_name of this CreateStoreBody.
|
|
89
|
+
|
|
90
|
+
知识仓实例名称,全域唯一。 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。
|
|
91
|
+
|
|
92
|
+
:param store_name: The store_name of this CreateStoreBody.
|
|
93
|
+
:type store_name: str
|
|
94
|
+
"""
|
|
95
|
+
self._store_name = store_name
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def region(self):
|
|
99
|
+
r"""Gets the region of this CreateStoreBody.
|
|
100
|
+
|
|
101
|
+
区域ID,根据上线的region决定。
|
|
102
|
+
|
|
103
|
+
:return: The region of this CreateStoreBody.
|
|
104
|
+
:rtype: str
|
|
105
|
+
"""
|
|
106
|
+
return self._region
|
|
107
|
+
|
|
108
|
+
@region.setter
|
|
109
|
+
def region(self, region):
|
|
110
|
+
r"""Sets the region of this CreateStoreBody.
|
|
111
|
+
|
|
112
|
+
区域ID,根据上线的region决定。
|
|
113
|
+
|
|
114
|
+
:param region: The region of this CreateStoreBody.
|
|
115
|
+
:type region: str
|
|
116
|
+
"""
|
|
117
|
+
self._region = region
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def availability_zones(self):
|
|
121
|
+
r"""Gets the availability_zones of this CreateStoreBody.
|
|
122
|
+
|
|
123
|
+
可用区ID。
|
|
124
|
+
|
|
125
|
+
:return: The availability_zones of this CreateStoreBody.
|
|
126
|
+
:rtype: list[str]
|
|
127
|
+
"""
|
|
128
|
+
return self._availability_zones
|
|
129
|
+
|
|
130
|
+
@availability_zones.setter
|
|
131
|
+
def availability_zones(self, availability_zones):
|
|
132
|
+
r"""Sets the availability_zones of this CreateStoreBody.
|
|
133
|
+
|
|
134
|
+
可用区ID。
|
|
135
|
+
|
|
136
|
+
:param availability_zones: The availability_zones of this CreateStoreBody.
|
|
137
|
+
:type availability_zones: list[str]
|
|
138
|
+
"""
|
|
139
|
+
self._availability_zones = availability_zones
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def flavor(self):
|
|
143
|
+
r"""Gets the flavor of this CreateStoreBody.
|
|
144
|
+
|
|
145
|
+
:return: The flavor of this CreateStoreBody.
|
|
146
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.Flavor`
|
|
147
|
+
"""
|
|
148
|
+
return self._flavor
|
|
149
|
+
|
|
150
|
+
@flavor.setter
|
|
151
|
+
def flavor(self, flavor):
|
|
152
|
+
r"""Sets the flavor of this CreateStoreBody.
|
|
153
|
+
|
|
154
|
+
:param flavor: The flavor of this CreateStoreBody.
|
|
155
|
+
:type flavor: :class:`huaweicloudsdkdwr.v1.Flavor`
|
|
156
|
+
"""
|
|
157
|
+
self._flavor = flavor
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def charge_info(self):
|
|
161
|
+
r"""Gets the charge_info of this CreateStoreBody.
|
|
162
|
+
|
|
163
|
+
:return: The charge_info of this CreateStoreBody.
|
|
164
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ChargeInfo`
|
|
165
|
+
"""
|
|
166
|
+
return self._charge_info
|
|
167
|
+
|
|
168
|
+
@charge_info.setter
|
|
169
|
+
def charge_info(self, charge_info):
|
|
170
|
+
r"""Sets the charge_info of this CreateStoreBody.
|
|
171
|
+
|
|
172
|
+
:param charge_info: The charge_info of this CreateStoreBody.
|
|
173
|
+
:type charge_info: :class:`huaweicloudsdkdwr.v1.ChargeInfo`
|
|
174
|
+
"""
|
|
175
|
+
self._charge_info = charge_info
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
def description(self):
|
|
179
|
+
r"""Gets the description of this CreateStoreBody.
|
|
180
|
+
|
|
181
|
+
知识仓实例描述信息。有效长度0-255 服务实例描述信息。有效长度0-255
|
|
182
|
+
|
|
183
|
+
:return: The description of this CreateStoreBody.
|
|
184
|
+
:rtype: str
|
|
185
|
+
"""
|
|
186
|
+
return self._description
|
|
187
|
+
|
|
188
|
+
@description.setter
|
|
189
|
+
def description(self, description):
|
|
190
|
+
r"""Sets the description of this CreateStoreBody.
|
|
191
|
+
|
|
192
|
+
知识仓实例描述信息。有效长度0-255 服务实例描述信息。有效长度0-255
|
|
193
|
+
|
|
194
|
+
:param description: The description of this CreateStoreBody.
|
|
195
|
+
:type description: str
|
|
196
|
+
"""
|
|
197
|
+
self._description = description
|
|
198
|
+
|
|
199
|
+
def to_dict(self):
|
|
200
|
+
"""Returns the model properties as a dict"""
|
|
201
|
+
result = {}
|
|
202
|
+
|
|
203
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
204
|
+
value = getattr(self, attr)
|
|
205
|
+
if isinstance(value, list):
|
|
206
|
+
result[attr] = list(map(
|
|
207
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
208
|
+
value
|
|
209
|
+
))
|
|
210
|
+
elif hasattr(value, "to_dict"):
|
|
211
|
+
result[attr] = value.to_dict()
|
|
212
|
+
elif isinstance(value, dict):
|
|
213
|
+
result[attr] = dict(map(
|
|
214
|
+
lambda item: (item[0], item[1].to_dict())
|
|
215
|
+
if hasattr(item[1], "to_dict") else item,
|
|
216
|
+
value.items()
|
|
217
|
+
))
|
|
218
|
+
else:
|
|
219
|
+
if attr in self.sensitive_list:
|
|
220
|
+
result[attr] = "****"
|
|
221
|
+
else:
|
|
222
|
+
result[attr] = value
|
|
223
|
+
|
|
224
|
+
return result
|
|
225
|
+
|
|
226
|
+
def to_str(self):
|
|
227
|
+
"""Returns the string representation of the model"""
|
|
228
|
+
import simplejson as json
|
|
229
|
+
if six.PY2:
|
|
230
|
+
import sys
|
|
231
|
+
reload(sys)
|
|
232
|
+
sys.setdefaultencoding("utf-8")
|
|
233
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
234
|
+
|
|
235
|
+
def __repr__(self):
|
|
236
|
+
"""For `print`"""
|
|
237
|
+
return self.to_str()
|
|
238
|
+
|
|
239
|
+
def __eq__(self, other):
|
|
240
|
+
"""Returns true if both objects are equal"""
|
|
241
|
+
if not isinstance(other, CreateStoreBody):
|
|
242
|
+
return False
|
|
243
|
+
|
|
244
|
+
return self.__dict__ == other.__dict__
|
|
245
|
+
|
|
246
|
+
def __ne__(self, other):
|
|
247
|
+
"""Returns true if both objects are not equal"""
|
|
248
|
+
return not self == other
|