huaweicloudsdkgaussdbforopengauss 3.1.101__py2.py3-none-any.whl → 3.1.103__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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +19 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +367 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +367 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +19 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/backup_policy_info.py +314 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_version_info.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_datastore.py +258 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_request.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_result.py +957 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/my_sql_compatibility_result.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request_body.py +110 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py +203 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py +232 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/RECORD +30 -11
- {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,258 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListInstanceDatastore:
|
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
|
+
'type': 'str',
|
21
|
+
'version': 'str',
|
22
|
+
'complete_version': 'str',
|
23
|
+
'target_version': 'str',
|
24
|
+
'complete_kernel_version': 'str',
|
25
|
+
'hotfix_version_infos': 'list[HotfixVersionInfo]'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'type': 'type',
|
30
|
+
'version': 'version',
|
31
|
+
'complete_version': 'complete_version',
|
32
|
+
'target_version': 'target_version',
|
33
|
+
'complete_kernel_version': 'complete_kernel_version',
|
34
|
+
'hotfix_version_infos': 'hotfix_version_infos'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, type=None, version=None, complete_version=None, target_version=None, complete_kernel_version=None, hotfix_version_infos=None):
|
38
|
+
"""ListInstanceDatastore
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param type: 数据库引擎。
|
43
|
+
:type type: str
|
44
|
+
:param version: 数据库大版本。
|
45
|
+
:type version: str
|
46
|
+
:param complete_version: 数据库小版本。
|
47
|
+
:type complete_version: str
|
48
|
+
:param target_version: 数据库正在升级的目标版本。
|
49
|
+
:type target_version: str
|
50
|
+
:param complete_kernel_version: 数据库内核版本
|
51
|
+
:type complete_kernel_version: str
|
52
|
+
:param hotfix_version_infos: 热补丁信息列表
|
53
|
+
:type hotfix_version_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixVersionInfo`]
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._type = None
|
59
|
+
self._version = None
|
60
|
+
self._complete_version = None
|
61
|
+
self._target_version = None
|
62
|
+
self._complete_kernel_version = None
|
63
|
+
self._hotfix_version_infos = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
self.type = type
|
67
|
+
self.version = version
|
68
|
+
if complete_version is not None:
|
69
|
+
self.complete_version = complete_version
|
70
|
+
if target_version is not None:
|
71
|
+
self.target_version = target_version
|
72
|
+
if complete_kernel_version is not None:
|
73
|
+
self.complete_kernel_version = complete_kernel_version
|
74
|
+
if hotfix_version_infos is not None:
|
75
|
+
self.hotfix_version_infos = hotfix_version_infos
|
76
|
+
|
77
|
+
@property
|
78
|
+
def type(self):
|
79
|
+
"""Gets the type of this ListInstanceDatastore.
|
80
|
+
|
81
|
+
数据库引擎。
|
82
|
+
|
83
|
+
:return: The type of this ListInstanceDatastore.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._type
|
87
|
+
|
88
|
+
@type.setter
|
89
|
+
def type(self, type):
|
90
|
+
"""Sets the type of this ListInstanceDatastore.
|
91
|
+
|
92
|
+
数据库引擎。
|
93
|
+
|
94
|
+
:param type: The type of this ListInstanceDatastore.
|
95
|
+
:type type: str
|
96
|
+
"""
|
97
|
+
self._type = type
|
98
|
+
|
99
|
+
@property
|
100
|
+
def version(self):
|
101
|
+
"""Gets the version of this ListInstanceDatastore.
|
102
|
+
|
103
|
+
数据库大版本。
|
104
|
+
|
105
|
+
:return: The version of this ListInstanceDatastore.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._version
|
109
|
+
|
110
|
+
@version.setter
|
111
|
+
def version(self, version):
|
112
|
+
"""Sets the version of this ListInstanceDatastore.
|
113
|
+
|
114
|
+
数据库大版本。
|
115
|
+
|
116
|
+
:param version: The version of this ListInstanceDatastore.
|
117
|
+
:type version: str
|
118
|
+
"""
|
119
|
+
self._version = version
|
120
|
+
|
121
|
+
@property
|
122
|
+
def complete_version(self):
|
123
|
+
"""Gets the complete_version of this ListInstanceDatastore.
|
124
|
+
|
125
|
+
数据库小版本。
|
126
|
+
|
127
|
+
:return: The complete_version of this ListInstanceDatastore.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._complete_version
|
131
|
+
|
132
|
+
@complete_version.setter
|
133
|
+
def complete_version(self, complete_version):
|
134
|
+
"""Sets the complete_version of this ListInstanceDatastore.
|
135
|
+
|
136
|
+
数据库小版本。
|
137
|
+
|
138
|
+
:param complete_version: The complete_version of this ListInstanceDatastore.
|
139
|
+
:type complete_version: str
|
140
|
+
"""
|
141
|
+
self._complete_version = complete_version
|
142
|
+
|
143
|
+
@property
|
144
|
+
def target_version(self):
|
145
|
+
"""Gets the target_version of this ListInstanceDatastore.
|
146
|
+
|
147
|
+
数据库正在升级的目标版本。
|
148
|
+
|
149
|
+
:return: The target_version of this ListInstanceDatastore.
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._target_version
|
153
|
+
|
154
|
+
@target_version.setter
|
155
|
+
def target_version(self, target_version):
|
156
|
+
"""Sets the target_version of this ListInstanceDatastore.
|
157
|
+
|
158
|
+
数据库正在升级的目标版本。
|
159
|
+
|
160
|
+
:param target_version: The target_version of this ListInstanceDatastore.
|
161
|
+
:type target_version: str
|
162
|
+
"""
|
163
|
+
self._target_version = target_version
|
164
|
+
|
165
|
+
@property
|
166
|
+
def complete_kernel_version(self):
|
167
|
+
"""Gets the complete_kernel_version of this ListInstanceDatastore.
|
168
|
+
|
169
|
+
数据库内核版本
|
170
|
+
|
171
|
+
:return: The complete_kernel_version of this ListInstanceDatastore.
|
172
|
+
:rtype: str
|
173
|
+
"""
|
174
|
+
return self._complete_kernel_version
|
175
|
+
|
176
|
+
@complete_kernel_version.setter
|
177
|
+
def complete_kernel_version(self, complete_kernel_version):
|
178
|
+
"""Sets the complete_kernel_version of this ListInstanceDatastore.
|
179
|
+
|
180
|
+
数据库内核版本
|
181
|
+
|
182
|
+
:param complete_kernel_version: The complete_kernel_version of this ListInstanceDatastore.
|
183
|
+
:type complete_kernel_version: str
|
184
|
+
"""
|
185
|
+
self._complete_kernel_version = complete_kernel_version
|
186
|
+
|
187
|
+
@property
|
188
|
+
def hotfix_version_infos(self):
|
189
|
+
"""Gets the hotfix_version_infos of this ListInstanceDatastore.
|
190
|
+
|
191
|
+
热补丁信息列表
|
192
|
+
|
193
|
+
:return: The hotfix_version_infos of this ListInstanceDatastore.
|
194
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixVersionInfo`]
|
195
|
+
"""
|
196
|
+
return self._hotfix_version_infos
|
197
|
+
|
198
|
+
@hotfix_version_infos.setter
|
199
|
+
def hotfix_version_infos(self, hotfix_version_infos):
|
200
|
+
"""Sets the hotfix_version_infos of this ListInstanceDatastore.
|
201
|
+
|
202
|
+
热补丁信息列表
|
203
|
+
|
204
|
+
:param hotfix_version_infos: The hotfix_version_infos of this ListInstanceDatastore.
|
205
|
+
:type hotfix_version_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixVersionInfo`]
|
206
|
+
"""
|
207
|
+
self._hotfix_version_infos = hotfix_version_infos
|
208
|
+
|
209
|
+
def to_dict(self):
|
210
|
+
"""Returns the model properties as a dict"""
|
211
|
+
result = {}
|
212
|
+
|
213
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
214
|
+
value = getattr(self, attr)
|
215
|
+
if isinstance(value, list):
|
216
|
+
result[attr] = list(map(
|
217
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
218
|
+
value
|
219
|
+
))
|
220
|
+
elif hasattr(value, "to_dict"):
|
221
|
+
result[attr] = value.to_dict()
|
222
|
+
elif isinstance(value, dict):
|
223
|
+
result[attr] = dict(map(
|
224
|
+
lambda item: (item[0], item[1].to_dict())
|
225
|
+
if hasattr(item[1], "to_dict") else item,
|
226
|
+
value.items()
|
227
|
+
))
|
228
|
+
else:
|
229
|
+
if attr in self.sensitive_list:
|
230
|
+
result[attr] = "****"
|
231
|
+
else:
|
232
|
+
result[attr] = value
|
233
|
+
|
234
|
+
return result
|
235
|
+
|
236
|
+
def to_str(self):
|
237
|
+
"""Returns the string representation of the model"""
|
238
|
+
import simplejson as json
|
239
|
+
if six.PY2:
|
240
|
+
import sys
|
241
|
+
reload(sys)
|
242
|
+
sys.setdefaultencoding("utf-8")
|
243
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
244
|
+
|
245
|
+
def __repr__(self):
|
246
|
+
"""For `print`"""
|
247
|
+
return self.to_str()
|
248
|
+
|
249
|
+
def __eq__(self, other):
|
250
|
+
"""Returns true if both objects are equal"""
|
251
|
+
if not isinstance(other, ListInstanceDatastore):
|
252
|
+
return False
|
253
|
+
|
254
|
+
return self.__dict__ == other.__dict__
|
255
|
+
|
256
|
+
def __ne__(self, other):
|
257
|
+
"""Returns true if both objects are not equal"""
|
258
|
+
return not self == other
|
@@ -0,0 +1,405 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListInstanceDetailsRequest:
|
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
|
+
'x_language': 'str',
|
21
|
+
'id': 'str',
|
22
|
+
'name': 'str',
|
23
|
+
'type': 'str',
|
24
|
+
'datastore_type': 'str',
|
25
|
+
'vpc_id': 'str',
|
26
|
+
'subnet_id': 'str',
|
27
|
+
'offset': 'int',
|
28
|
+
'limit': 'int',
|
29
|
+
'tags': 'list[str]',
|
30
|
+
'charge_mode': 'str'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'x_language': 'X-Language',
|
35
|
+
'id': 'id',
|
36
|
+
'name': 'name',
|
37
|
+
'type': 'type',
|
38
|
+
'datastore_type': 'datastore_type',
|
39
|
+
'vpc_id': 'vpc_id',
|
40
|
+
'subnet_id': 'subnet_id',
|
41
|
+
'offset': 'offset',
|
42
|
+
'limit': 'limit',
|
43
|
+
'tags': 'tags',
|
44
|
+
'charge_mode': 'charge_mode'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, x_language=None, id=None, name=None, type=None, datastore_type=None, vpc_id=None, subnet_id=None, offset=None, limit=None, tags=None, charge_mode=None):
|
48
|
+
"""ListInstanceDetailsRequest
|
49
|
+
|
50
|
+
The model defined in huaweicloud sdk
|
51
|
+
|
52
|
+
:param x_language: 语言
|
53
|
+
:type x_language: str
|
54
|
+
:param id: 实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。
|
55
|
+
:type id: str
|
56
|
+
:param name: 实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。
|
57
|
+
:type name: str
|
58
|
+
:param type: 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。
|
59
|
+
:type type: str
|
60
|
+
:param datastore_type: 数据库类型,区分大小写。 - GaussDB
|
61
|
+
:type datastore_type: str
|
62
|
+
:param vpc_id: 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。
|
63
|
+
:type vpc_id: str
|
64
|
+
:param subnet_id: 子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
65
|
+
:type subnet_id: str
|
66
|
+
:param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
67
|
+
:type offset: int
|
68
|
+
:param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100
|
69
|
+
:type limit: int
|
70
|
+
:param tags: 根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。
|
71
|
+
:type tags: list[str]
|
72
|
+
:param charge_mode: 计费模式。 取值范围: postPaid:后付费,即按需付费。 prePaid:预付费,即包年/包月。
|
73
|
+
:type charge_mode: str
|
74
|
+
"""
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
self._x_language = None
|
79
|
+
self._id = None
|
80
|
+
self._name = None
|
81
|
+
self._type = None
|
82
|
+
self._datastore_type = None
|
83
|
+
self._vpc_id = None
|
84
|
+
self._subnet_id = None
|
85
|
+
self._offset = None
|
86
|
+
self._limit = None
|
87
|
+
self._tags = None
|
88
|
+
self._charge_mode = None
|
89
|
+
self.discriminator = None
|
90
|
+
|
91
|
+
if x_language is not None:
|
92
|
+
self.x_language = x_language
|
93
|
+
if id is not None:
|
94
|
+
self.id = id
|
95
|
+
if name is not None:
|
96
|
+
self.name = name
|
97
|
+
if type is not None:
|
98
|
+
self.type = type
|
99
|
+
if datastore_type is not None:
|
100
|
+
self.datastore_type = datastore_type
|
101
|
+
if vpc_id is not None:
|
102
|
+
self.vpc_id = vpc_id
|
103
|
+
if subnet_id is not None:
|
104
|
+
self.subnet_id = subnet_id
|
105
|
+
if offset is not None:
|
106
|
+
self.offset = offset
|
107
|
+
if limit is not None:
|
108
|
+
self.limit = limit
|
109
|
+
if tags is not None:
|
110
|
+
self.tags = tags
|
111
|
+
if charge_mode is not None:
|
112
|
+
self.charge_mode = charge_mode
|
113
|
+
|
114
|
+
@property
|
115
|
+
def x_language(self):
|
116
|
+
"""Gets the x_language of this ListInstanceDetailsRequest.
|
117
|
+
|
118
|
+
语言
|
119
|
+
|
120
|
+
:return: The x_language of this ListInstanceDetailsRequest.
|
121
|
+
:rtype: str
|
122
|
+
"""
|
123
|
+
return self._x_language
|
124
|
+
|
125
|
+
@x_language.setter
|
126
|
+
def x_language(self, x_language):
|
127
|
+
"""Sets the x_language of this ListInstanceDetailsRequest.
|
128
|
+
|
129
|
+
语言
|
130
|
+
|
131
|
+
:param x_language: The x_language of this ListInstanceDetailsRequest.
|
132
|
+
:type x_language: str
|
133
|
+
"""
|
134
|
+
self._x_language = x_language
|
135
|
+
|
136
|
+
@property
|
137
|
+
def id(self):
|
138
|
+
"""Gets the id of this ListInstanceDetailsRequest.
|
139
|
+
|
140
|
+
实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。
|
141
|
+
|
142
|
+
:return: The id of this ListInstanceDetailsRequest.
|
143
|
+
:rtype: str
|
144
|
+
"""
|
145
|
+
return self._id
|
146
|
+
|
147
|
+
@id.setter
|
148
|
+
def id(self, id):
|
149
|
+
"""Sets the id of this ListInstanceDetailsRequest.
|
150
|
+
|
151
|
+
实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。
|
152
|
+
|
153
|
+
:param id: The id of this ListInstanceDetailsRequest.
|
154
|
+
:type id: str
|
155
|
+
"""
|
156
|
+
self._id = id
|
157
|
+
|
158
|
+
@property
|
159
|
+
def name(self):
|
160
|
+
"""Gets the name of this ListInstanceDetailsRequest.
|
161
|
+
|
162
|
+
实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。
|
163
|
+
|
164
|
+
:return: The name of this ListInstanceDetailsRequest.
|
165
|
+
:rtype: str
|
166
|
+
"""
|
167
|
+
return self._name
|
168
|
+
|
169
|
+
@name.setter
|
170
|
+
def name(self, name):
|
171
|
+
"""Sets the name of this ListInstanceDetailsRequest.
|
172
|
+
|
173
|
+
实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。
|
174
|
+
|
175
|
+
:param name: The name of this ListInstanceDetailsRequest.
|
176
|
+
:type name: str
|
177
|
+
"""
|
178
|
+
self._name = name
|
179
|
+
|
180
|
+
@property
|
181
|
+
def type(self):
|
182
|
+
"""Gets the type of this ListInstanceDetailsRequest.
|
183
|
+
|
184
|
+
按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。
|
185
|
+
|
186
|
+
:return: The type of this ListInstanceDetailsRequest.
|
187
|
+
:rtype: str
|
188
|
+
"""
|
189
|
+
return self._type
|
190
|
+
|
191
|
+
@type.setter
|
192
|
+
def type(self, type):
|
193
|
+
"""Sets the type of this ListInstanceDetailsRequest.
|
194
|
+
|
195
|
+
按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。
|
196
|
+
|
197
|
+
:param type: The type of this ListInstanceDetailsRequest.
|
198
|
+
:type type: str
|
199
|
+
"""
|
200
|
+
self._type = type
|
201
|
+
|
202
|
+
@property
|
203
|
+
def datastore_type(self):
|
204
|
+
"""Gets the datastore_type of this ListInstanceDetailsRequest.
|
205
|
+
|
206
|
+
数据库类型,区分大小写。 - GaussDB
|
207
|
+
|
208
|
+
:return: The datastore_type of this ListInstanceDetailsRequest.
|
209
|
+
:rtype: str
|
210
|
+
"""
|
211
|
+
return self._datastore_type
|
212
|
+
|
213
|
+
@datastore_type.setter
|
214
|
+
def datastore_type(self, datastore_type):
|
215
|
+
"""Sets the datastore_type of this ListInstanceDetailsRequest.
|
216
|
+
|
217
|
+
数据库类型,区分大小写。 - GaussDB
|
218
|
+
|
219
|
+
:param datastore_type: The datastore_type of this ListInstanceDetailsRequest.
|
220
|
+
:type datastore_type: str
|
221
|
+
"""
|
222
|
+
self._datastore_type = datastore_type
|
223
|
+
|
224
|
+
@property
|
225
|
+
def vpc_id(self):
|
226
|
+
"""Gets the vpc_id of this ListInstanceDetailsRequest.
|
227
|
+
|
228
|
+
虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。
|
229
|
+
|
230
|
+
:return: The vpc_id of this ListInstanceDetailsRequest.
|
231
|
+
:rtype: str
|
232
|
+
"""
|
233
|
+
return self._vpc_id
|
234
|
+
|
235
|
+
@vpc_id.setter
|
236
|
+
def vpc_id(self, vpc_id):
|
237
|
+
"""Sets the vpc_id of this ListInstanceDetailsRequest.
|
238
|
+
|
239
|
+
虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。
|
240
|
+
|
241
|
+
:param vpc_id: The vpc_id of this ListInstanceDetailsRequest.
|
242
|
+
:type vpc_id: str
|
243
|
+
"""
|
244
|
+
self._vpc_id = vpc_id
|
245
|
+
|
246
|
+
@property
|
247
|
+
def subnet_id(self):
|
248
|
+
"""Gets the subnet_id of this ListInstanceDetailsRequest.
|
249
|
+
|
250
|
+
子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
251
|
+
|
252
|
+
:return: The subnet_id of this ListInstanceDetailsRequest.
|
253
|
+
:rtype: str
|
254
|
+
"""
|
255
|
+
return self._subnet_id
|
256
|
+
|
257
|
+
@subnet_id.setter
|
258
|
+
def subnet_id(self, subnet_id):
|
259
|
+
"""Sets the subnet_id of this ListInstanceDetailsRequest.
|
260
|
+
|
261
|
+
子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
262
|
+
|
263
|
+
:param subnet_id: The subnet_id of this ListInstanceDetailsRequest.
|
264
|
+
:type subnet_id: str
|
265
|
+
"""
|
266
|
+
self._subnet_id = subnet_id
|
267
|
+
|
268
|
+
@property
|
269
|
+
def offset(self):
|
270
|
+
"""Gets the offset of this ListInstanceDetailsRequest.
|
271
|
+
|
272
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
273
|
+
|
274
|
+
:return: The offset of this ListInstanceDetailsRequest.
|
275
|
+
:rtype: int
|
276
|
+
"""
|
277
|
+
return self._offset
|
278
|
+
|
279
|
+
@offset.setter
|
280
|
+
def offset(self, offset):
|
281
|
+
"""Sets the offset of this ListInstanceDetailsRequest.
|
282
|
+
|
283
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
284
|
+
|
285
|
+
:param offset: The offset of this ListInstanceDetailsRequest.
|
286
|
+
:type offset: int
|
287
|
+
"""
|
288
|
+
self._offset = offset
|
289
|
+
|
290
|
+
@property
|
291
|
+
def limit(self):
|
292
|
+
"""Gets the limit of this ListInstanceDetailsRequest.
|
293
|
+
|
294
|
+
查询记录数。默认为100,不能为负数,最小值为1,最大值为100
|
295
|
+
|
296
|
+
:return: The limit of this ListInstanceDetailsRequest.
|
297
|
+
:rtype: int
|
298
|
+
"""
|
299
|
+
return self._limit
|
300
|
+
|
301
|
+
@limit.setter
|
302
|
+
def limit(self, limit):
|
303
|
+
"""Sets the limit of this ListInstanceDetailsRequest.
|
304
|
+
|
305
|
+
查询记录数。默认为100,不能为负数,最小值为1,最大值为100
|
306
|
+
|
307
|
+
:param limit: The limit of this ListInstanceDetailsRequest.
|
308
|
+
:type limit: int
|
309
|
+
"""
|
310
|
+
self._limit = limit
|
311
|
+
|
312
|
+
@property
|
313
|
+
def tags(self):
|
314
|
+
"""Gets the tags of this ListInstanceDetailsRequest.
|
315
|
+
|
316
|
+
根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。
|
317
|
+
|
318
|
+
:return: The tags of this ListInstanceDetailsRequest.
|
319
|
+
:rtype: list[str]
|
320
|
+
"""
|
321
|
+
return self._tags
|
322
|
+
|
323
|
+
@tags.setter
|
324
|
+
def tags(self, tags):
|
325
|
+
"""Sets the tags of this ListInstanceDetailsRequest.
|
326
|
+
|
327
|
+
根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。
|
328
|
+
|
329
|
+
:param tags: The tags of this ListInstanceDetailsRequest.
|
330
|
+
:type tags: list[str]
|
331
|
+
"""
|
332
|
+
self._tags = tags
|
333
|
+
|
334
|
+
@property
|
335
|
+
def charge_mode(self):
|
336
|
+
"""Gets the charge_mode of this ListInstanceDetailsRequest.
|
337
|
+
|
338
|
+
计费模式。 取值范围: postPaid:后付费,即按需付费。 prePaid:预付费,即包年/包月。
|
339
|
+
|
340
|
+
:return: The charge_mode of this ListInstanceDetailsRequest.
|
341
|
+
:rtype: str
|
342
|
+
"""
|
343
|
+
return self._charge_mode
|
344
|
+
|
345
|
+
@charge_mode.setter
|
346
|
+
def charge_mode(self, charge_mode):
|
347
|
+
"""Sets the charge_mode of this ListInstanceDetailsRequest.
|
348
|
+
|
349
|
+
计费模式。 取值范围: postPaid:后付费,即按需付费。 prePaid:预付费,即包年/包月。
|
350
|
+
|
351
|
+
:param charge_mode: The charge_mode of this ListInstanceDetailsRequest.
|
352
|
+
:type charge_mode: str
|
353
|
+
"""
|
354
|
+
self._charge_mode = charge_mode
|
355
|
+
|
356
|
+
def to_dict(self):
|
357
|
+
"""Returns the model properties as a dict"""
|
358
|
+
result = {}
|
359
|
+
|
360
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
361
|
+
value = getattr(self, attr)
|
362
|
+
if isinstance(value, list):
|
363
|
+
result[attr] = list(map(
|
364
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
365
|
+
value
|
366
|
+
))
|
367
|
+
elif hasattr(value, "to_dict"):
|
368
|
+
result[attr] = value.to_dict()
|
369
|
+
elif isinstance(value, dict):
|
370
|
+
result[attr] = dict(map(
|
371
|
+
lambda item: (item[0], item[1].to_dict())
|
372
|
+
if hasattr(item[1], "to_dict") else item,
|
373
|
+
value.items()
|
374
|
+
))
|
375
|
+
else:
|
376
|
+
if attr in self.sensitive_list:
|
377
|
+
result[attr] = "****"
|
378
|
+
else:
|
379
|
+
result[attr] = value
|
380
|
+
|
381
|
+
return result
|
382
|
+
|
383
|
+
def to_str(self):
|
384
|
+
"""Returns the string representation of the model"""
|
385
|
+
import simplejson as json
|
386
|
+
if six.PY2:
|
387
|
+
import sys
|
388
|
+
reload(sys)
|
389
|
+
sys.setdefaultencoding("utf-8")
|
390
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
391
|
+
|
392
|
+
def __repr__(self):
|
393
|
+
"""For `print`"""
|
394
|
+
return self.to_str()
|
395
|
+
|
396
|
+
def __eq__(self, other):
|
397
|
+
"""Returns true if both objects are equal"""
|
398
|
+
if not isinstance(other, ListInstanceDetailsRequest):
|
399
|
+
return False
|
400
|
+
|
401
|
+
return self.__dict__ == other.__dict__
|
402
|
+
|
403
|
+
def __ne__(self, other):
|
404
|
+
"""Returns true if both objects are not equal"""
|
405
|
+
return not self == other
|