huaweicloudsdkdwr 3.1.166__py3-none-any.whl → 3.1.168__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 +4 -0
- huaweicloudsdkdwr/v1/dwr_async_client.py +65 -0
- huaweicloudsdkdwr/v1/dwr_client.py +65 -0
- huaweicloudsdkdwr/v1/model/__init__.py +4 -0
- huaweicloudsdkdwr/v1/model/collection_base_info.py +3 -3
- huaweicloudsdkdwr/v1/model/create_collection_body.py +3 -3
- huaweicloudsdkdwr/v1/model/create_index_body.py +3 -3
- huaweicloudsdkdwr/v1/model/create_store_data.py +3 -3
- huaweicloudsdkdwr/v1/model/delete_entities_body.py +3 -3
- huaweicloudsdkdwr/v1/model/delete_index_body.py +3 -3
- huaweicloudsdkdwr/v1/model/describe_index_body.py +3 -3
- huaweicloudsdkdwr/v1/model/get_index_progress_body.py +3 -3
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +3 -3
- huaweicloudsdkdwr/v1/model/insert_entities_body.py +3 -3
- huaweicloudsdkdwr/v1/model/list_collection_details.py +3 -3
- huaweicloudsdkdwr/v1/model/load_collection_body.py +3 -3
- huaweicloudsdkdwr/v1/model/query_entities_body.py +3 -3
- huaweicloudsdkdwr/v1/model/scale_store_body.py +142 -0
- huaweicloudsdkdwr/v1/model/scale_store_data.py +227 -0
- huaweicloudsdkdwr/v1/model/scale_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/scale_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/search_entities_body.py +6 -6
- huaweicloudsdkdwr/v1/model/store_data.py +3 -3
- huaweicloudsdkdwr/v1/model/sub_search.py +3 -3
- huaweicloudsdkdwr/v1/model/upsert_entities_body.py +3 -3
- {huaweicloudsdkdwr-3.1.166.dist-info → huaweicloudsdkdwr-3.1.168.dist-info}/METADATA +2 -2
- {huaweicloudsdkdwr-3.1.166.dist-info → huaweicloudsdkdwr-3.1.168.dist-info}/RECORD +29 -25
- {huaweicloudsdkdwr-3.1.166.dist-info → huaweicloudsdkdwr-3.1.168.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdwr-3.1.166.dist-info → huaweicloudsdkdwr-3.1.168.dist-info}/licenses/LICENSE +0 -0
|
@@ -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 ScaleStoreBody:
|
|
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
|
+
'cu_num': 'int'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'store_name': 'store_name',
|
|
26
|
+
'cu_num': 'cu_num'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, store_name=None, cu_num=None):
|
|
30
|
+
r"""ScaleStoreBody
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param store_name: **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
35
|
+
:type store_name: str
|
|
36
|
+
:param cu_num: **参数解释:** 扩容后cu规格的数量 **约束限制:** cu_num值要大于当前已有cu规格的数量 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
37
|
+
:type cu_num: int
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._store_name = None
|
|
43
|
+
self._cu_num = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.store_name = store_name
|
|
47
|
+
self.cu_num = cu_num
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def store_name(self):
|
|
51
|
+
r"""Gets the store_name of this ScaleStoreBody.
|
|
52
|
+
|
|
53
|
+
**参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
54
|
+
|
|
55
|
+
:return: The store_name of this ScaleStoreBody.
|
|
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 ScaleStoreBody.
|
|
63
|
+
|
|
64
|
+
**参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
65
|
+
|
|
66
|
+
:param store_name: The store_name of this ScaleStoreBody.
|
|
67
|
+
:type store_name: str
|
|
68
|
+
"""
|
|
69
|
+
self._store_name = store_name
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def cu_num(self):
|
|
73
|
+
r"""Gets the cu_num of this ScaleStoreBody.
|
|
74
|
+
|
|
75
|
+
**参数解释:** 扩容后cu规格的数量 **约束限制:** cu_num值要大于当前已有cu规格的数量 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
76
|
+
|
|
77
|
+
:return: The cu_num of this ScaleStoreBody.
|
|
78
|
+
:rtype: int
|
|
79
|
+
"""
|
|
80
|
+
return self._cu_num
|
|
81
|
+
|
|
82
|
+
@cu_num.setter
|
|
83
|
+
def cu_num(self, cu_num):
|
|
84
|
+
r"""Sets the cu_num of this ScaleStoreBody.
|
|
85
|
+
|
|
86
|
+
**参数解释:** 扩容后cu规格的数量 **约束限制:** cu_num值要大于当前已有cu规格的数量 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
87
|
+
|
|
88
|
+
:param cu_num: The cu_num of this ScaleStoreBody.
|
|
89
|
+
:type cu_num: int
|
|
90
|
+
"""
|
|
91
|
+
self._cu_num = cu_num
|
|
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, ScaleStoreBody):
|
|
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
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ScaleStoreData:
|
|
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
|
+
'id': 'str',
|
|
21
|
+
'job_id': 'str',
|
|
22
|
+
'store_name': 'str',
|
|
23
|
+
'status': 'str',
|
|
24
|
+
'cu_num': 'int'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'id': 'id',
|
|
29
|
+
'job_id': 'job_id',
|
|
30
|
+
'store_name': 'store_name',
|
|
31
|
+
'status': 'status',
|
|
32
|
+
'cu_num': 'cu_num'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, id=None, job_id=None, store_name=None, status=None, cu_num=None):
|
|
36
|
+
r"""ScaleStoreData
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param id: **参数解释:** 知识仓实例id。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
41
|
+
:type id: str
|
|
42
|
+
:param job_id: **参数解释:** 创建知识仓实例的任务id。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
43
|
+
:type job_id: str
|
|
44
|
+
:param store_name: **参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
45
|
+
:type store_name: str
|
|
46
|
+
:param status: **参数解释:** 知识仓实例状态。 **约束限制:** 不涉及。 **取值范围:** CREATING:创建中 NORMAL:正常 CREATED_FAILED:创建失败 ABNORMAL:异常 FROZEN:冻结 DISK_FULL:存储空间已满 DELETING:删除中 DELETE_FAILED:删除失败 SCALING:扩容中 **默认取值:** 不涉及。
|
|
47
|
+
:type status: str
|
|
48
|
+
:param cu_num: **参数解释:** 扩容后cu规格的数量 **约束限制:** cu_num值要大于当前已有cu规格的数量 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
49
|
+
:type cu_num: int
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._id = None
|
|
55
|
+
self._job_id = None
|
|
56
|
+
self._store_name = None
|
|
57
|
+
self._status = None
|
|
58
|
+
self._cu_num = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
self.id = id
|
|
62
|
+
self.job_id = job_id
|
|
63
|
+
self.store_name = store_name
|
|
64
|
+
self.status = status
|
|
65
|
+
if cu_num is not None:
|
|
66
|
+
self.cu_num = cu_num
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def id(self):
|
|
70
|
+
r"""Gets the id of this ScaleStoreData.
|
|
71
|
+
|
|
72
|
+
**参数解释:** 知识仓实例id。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
73
|
+
|
|
74
|
+
:return: The id of this ScaleStoreData.
|
|
75
|
+
:rtype: str
|
|
76
|
+
"""
|
|
77
|
+
return self._id
|
|
78
|
+
|
|
79
|
+
@id.setter
|
|
80
|
+
def id(self, id):
|
|
81
|
+
r"""Sets the id of this ScaleStoreData.
|
|
82
|
+
|
|
83
|
+
**参数解释:** 知识仓实例id。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
84
|
+
|
|
85
|
+
:param id: The id of this ScaleStoreData.
|
|
86
|
+
:type id: str
|
|
87
|
+
"""
|
|
88
|
+
self._id = id
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def job_id(self):
|
|
92
|
+
r"""Gets the job_id of this ScaleStoreData.
|
|
93
|
+
|
|
94
|
+
**参数解释:** 创建知识仓实例的任务id。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
95
|
+
|
|
96
|
+
:return: The job_id of this ScaleStoreData.
|
|
97
|
+
:rtype: str
|
|
98
|
+
"""
|
|
99
|
+
return self._job_id
|
|
100
|
+
|
|
101
|
+
@job_id.setter
|
|
102
|
+
def job_id(self, job_id):
|
|
103
|
+
r"""Sets the job_id of this ScaleStoreData.
|
|
104
|
+
|
|
105
|
+
**参数解释:** 创建知识仓实例的任务id。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
106
|
+
|
|
107
|
+
:param job_id: The job_id of this ScaleStoreData.
|
|
108
|
+
:type job_id: str
|
|
109
|
+
"""
|
|
110
|
+
self._job_id = job_id
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def store_name(self):
|
|
114
|
+
r"""Gets the store_name of this ScaleStoreData.
|
|
115
|
+
|
|
116
|
+
**参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
117
|
+
|
|
118
|
+
:return: The store_name of this ScaleStoreData.
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._store_name
|
|
122
|
+
|
|
123
|
+
@store_name.setter
|
|
124
|
+
def store_name(self, store_name):
|
|
125
|
+
r"""Sets the store_name of this ScaleStoreData.
|
|
126
|
+
|
|
127
|
+
**参数解释:** 知识仓实例名称,region内唯一。 **约束限制:** 长度范围为3到63个字符,支持小写字母、数字、中划线(-),第一个字符只能够是小写字母,中划线(-)不得出现在字符串末尾。 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
128
|
+
|
|
129
|
+
:param store_name: The store_name of this ScaleStoreData.
|
|
130
|
+
:type store_name: str
|
|
131
|
+
"""
|
|
132
|
+
self._store_name = store_name
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def status(self):
|
|
136
|
+
r"""Gets the status of this ScaleStoreData.
|
|
137
|
+
|
|
138
|
+
**参数解释:** 知识仓实例状态。 **约束限制:** 不涉及。 **取值范围:** CREATING:创建中 NORMAL:正常 CREATED_FAILED:创建失败 ABNORMAL:异常 FROZEN:冻结 DISK_FULL:存储空间已满 DELETING:删除中 DELETE_FAILED:删除失败 SCALING:扩容中 **默认取值:** 不涉及。
|
|
139
|
+
|
|
140
|
+
:return: The status of this ScaleStoreData.
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._status
|
|
144
|
+
|
|
145
|
+
@status.setter
|
|
146
|
+
def status(self, status):
|
|
147
|
+
r"""Sets the status of this ScaleStoreData.
|
|
148
|
+
|
|
149
|
+
**参数解释:** 知识仓实例状态。 **约束限制:** 不涉及。 **取值范围:** CREATING:创建中 NORMAL:正常 CREATED_FAILED:创建失败 ABNORMAL:异常 FROZEN:冻结 DISK_FULL:存储空间已满 DELETING:删除中 DELETE_FAILED:删除失败 SCALING:扩容中 **默认取值:** 不涉及。
|
|
150
|
+
|
|
151
|
+
:param status: The status of this ScaleStoreData.
|
|
152
|
+
:type status: str
|
|
153
|
+
"""
|
|
154
|
+
self._status = status
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def cu_num(self):
|
|
158
|
+
r"""Gets the cu_num of this ScaleStoreData.
|
|
159
|
+
|
|
160
|
+
**参数解释:** 扩容后cu规格的数量 **约束限制:** cu_num值要大于当前已有cu规格的数量 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
161
|
+
|
|
162
|
+
:return: The cu_num of this ScaleStoreData.
|
|
163
|
+
:rtype: int
|
|
164
|
+
"""
|
|
165
|
+
return self._cu_num
|
|
166
|
+
|
|
167
|
+
@cu_num.setter
|
|
168
|
+
def cu_num(self, cu_num):
|
|
169
|
+
r"""Sets the cu_num of this ScaleStoreData.
|
|
170
|
+
|
|
171
|
+
**参数解释:** 扩容后cu规格的数量 **约束限制:** cu_num值要大于当前已有cu规格的数量 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
172
|
+
|
|
173
|
+
:param cu_num: The cu_num of this ScaleStoreData.
|
|
174
|
+
:type cu_num: int
|
|
175
|
+
"""
|
|
176
|
+
self._cu_num = cu_num
|
|
177
|
+
|
|
178
|
+
def to_dict(self):
|
|
179
|
+
"""Returns the model properties as a dict"""
|
|
180
|
+
result = {}
|
|
181
|
+
|
|
182
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
183
|
+
value = getattr(self, attr)
|
|
184
|
+
if isinstance(value, list):
|
|
185
|
+
result[attr] = list(map(
|
|
186
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
187
|
+
value
|
|
188
|
+
))
|
|
189
|
+
elif hasattr(value, "to_dict"):
|
|
190
|
+
result[attr] = value.to_dict()
|
|
191
|
+
elif isinstance(value, dict):
|
|
192
|
+
result[attr] = dict(map(
|
|
193
|
+
lambda item: (item[0], item[1].to_dict())
|
|
194
|
+
if hasattr(item[1], "to_dict") else item,
|
|
195
|
+
value.items()
|
|
196
|
+
))
|
|
197
|
+
else:
|
|
198
|
+
if attr in self.sensitive_list:
|
|
199
|
+
result[attr] = "****"
|
|
200
|
+
else:
|
|
201
|
+
result[attr] = value
|
|
202
|
+
|
|
203
|
+
return result
|
|
204
|
+
|
|
205
|
+
def to_str(self):
|
|
206
|
+
"""Returns the string representation of the model"""
|
|
207
|
+
import simplejson as json
|
|
208
|
+
if six.PY2:
|
|
209
|
+
import sys
|
|
210
|
+
reload(sys)
|
|
211
|
+
sys.setdefaultencoding("utf-8")
|
|
212
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
213
|
+
|
|
214
|
+
def __repr__(self):
|
|
215
|
+
"""For `print`"""
|
|
216
|
+
return self.to_str()
|
|
217
|
+
|
|
218
|
+
def __eq__(self, other):
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, ScaleStoreData):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other):
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
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 ScaleStoreRequest:
|
|
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': 'ScaleStoreBody'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, body=None):
|
|
28
|
+
r"""ScaleStoreRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param body: Body of the ScaleStoreRequest
|
|
33
|
+
:type body: :class:`huaweicloudsdkdwr.v1.ScaleStoreBody`
|
|
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 ScaleStoreRequest.
|
|
47
|
+
|
|
48
|
+
:return: The body of this ScaleStoreRequest.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ScaleStoreBody`
|
|
50
|
+
"""
|
|
51
|
+
return self._body
|
|
52
|
+
|
|
53
|
+
@body.setter
|
|
54
|
+
def body(self, body):
|
|
55
|
+
r"""Sets the body of this ScaleStoreRequest.
|
|
56
|
+
|
|
57
|
+
:param body: The body of this ScaleStoreRequest.
|
|
58
|
+
:type body: :class:`huaweicloudsdkdwr.v1.ScaleStoreBody`
|
|
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, ScaleStoreRequest):
|
|
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 ScaleStoreResponse(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': 'ScaleStoreData'
|
|
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"""ScaleStoreResponse
|
|
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.ScaleStoreData`
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(ScaleStoreResponse, 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 ScaleStoreResponse.
|
|
62
|
+
|
|
63
|
+
**参数解释:** 返回码。参见错误码章节。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
64
|
+
|
|
65
|
+
:return: The code of this ScaleStoreResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._code
|
|
69
|
+
|
|
70
|
+
@code.setter
|
|
71
|
+
def code(self, code):
|
|
72
|
+
r"""Sets the code of this ScaleStoreResponse.
|
|
73
|
+
|
|
74
|
+
**参数解释:** 返回码。参见错误码章节。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
75
|
+
|
|
76
|
+
:param code: The code of this ScaleStoreResponse.
|
|
77
|
+
:type code: str
|
|
78
|
+
"""
|
|
79
|
+
self._code = code
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def message(self):
|
|
83
|
+
r"""Gets the message of this ScaleStoreResponse.
|
|
84
|
+
|
|
85
|
+
**参数解释:** 描述信息。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
86
|
+
|
|
87
|
+
:return: The message of this ScaleStoreResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._message
|
|
91
|
+
|
|
92
|
+
@message.setter
|
|
93
|
+
def message(self, message):
|
|
94
|
+
r"""Sets the message of this ScaleStoreResponse.
|
|
95
|
+
|
|
96
|
+
**参数解释:** 描述信息。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
97
|
+
|
|
98
|
+
:param message: The message of this ScaleStoreResponse.
|
|
99
|
+
:type message: str
|
|
100
|
+
"""
|
|
101
|
+
self._message = message
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def data(self):
|
|
105
|
+
r"""Gets the data of this ScaleStoreResponse.
|
|
106
|
+
|
|
107
|
+
:return: The data of this ScaleStoreResponse.
|
|
108
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ScaleStoreData`
|
|
109
|
+
"""
|
|
110
|
+
return self._data
|
|
111
|
+
|
|
112
|
+
@data.setter
|
|
113
|
+
def data(self, data):
|
|
114
|
+
r"""Sets the data of this ScaleStoreResponse.
|
|
115
|
+
|
|
116
|
+
:param data: The data of this ScaleStoreResponse.
|
|
117
|
+
:type data: :class:`huaweicloudsdkdwr.v1.ScaleStoreData`
|
|
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, ScaleStoreResponse):
|
|
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
|