huaweicloudsdkgaussdb 3.1.165__py3-none-any.whl → 3.1.166__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.
- huaweicloudsdkgaussdb/v3/__init__.py +54 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1239 -48
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1239 -48
- huaweicloudsdkgaussdb/v3/model/__init__.py +54 -0
- huaweicloudsdkgaussdb/v3/model/audit_log_detail.py +231 -0
- huaweicloudsdkgaussdb/v3/model/audit_log_download_link_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request_body.py +171 -0
- huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/database_tables_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/htap_error_log_detail_response_error_log_list.py +226 -0
- huaweicloudsdkgaussdb/v3/model/htap_error_log_query_request_body.py +255 -0
- huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance.py +284 -0
- huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance_lts_configs.py +138 -0
- huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_lts_configs.py +198 -0
- huaweicloudsdkgaussdb/v3/model/htap_node_info_response_body_node_list.py +170 -0
- huaweicloudsdkgaussdb/v3/model/list_audit_logs_request.py +255 -0
- huaweicloudsdkgaussdb/v3/model/list_audit_logs_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_instance_node_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_instance_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_req.py +114 -0
- huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/proxy_flavor.py +260 -0
- huaweicloudsdkgaussdb/v3/model/proxy_flavor_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_data_base_request_v3.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_table_request_v3.py +202 -0
- huaweicloudsdkgaussdb/v3/model/rds_error_log_download.py +289 -0
- huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request_body.py +172 -0
- huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_request.py +259 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_request.py +225 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_request.py +225 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_table_meta_info_request.py +201 -0
- huaweicloudsdkgaussdb/v3/model/show_table_meta_info_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/table_meta_info.py +260 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name.py +142 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/upgrade_databases_single_instance.py +142 -0
- {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/RECORD +62 -9
- {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkgaussdb-3.1.165.dist-info/top_level.txt +0 -1
- {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,167 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowHtapErrorLogDetailRequest:
|
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
|
+
'instance_id': 'str',
|
21
|
+
'x_language': 'str',
|
22
|
+
'body': 'HtapErrorLogQueryRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'instance_id': 'instance_id',
|
27
|
+
'x_language': 'X-Language',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, instance_id=None, x_language=None, body=None):
|
32
|
+
r"""ShowHtapErrorLogDetailRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param instance_id: **参数解释**: HTAP标准版实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,长度为36个字符。 **默认取值**: 不涉及。
|
37
|
+
:type instance_id: str
|
38
|
+
:param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
39
|
+
:type x_language: str
|
40
|
+
:param body: Body of the ShowHtapErrorLogDetailRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.HtapErrorLogQueryRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._instance_id = None
|
47
|
+
self._x_language = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.instance_id = instance_id
|
52
|
+
self.x_language = x_language
|
53
|
+
if body is not None:
|
54
|
+
self.body = body
|
55
|
+
|
56
|
+
@property
|
57
|
+
def instance_id(self):
|
58
|
+
r"""Gets the instance_id of this ShowHtapErrorLogDetailRequest.
|
59
|
+
|
60
|
+
**参数解释**: HTAP标准版实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,长度为36个字符。 **默认取值**: 不涉及。
|
61
|
+
|
62
|
+
:return: The instance_id of this ShowHtapErrorLogDetailRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._instance_id
|
66
|
+
|
67
|
+
@instance_id.setter
|
68
|
+
def instance_id(self, instance_id):
|
69
|
+
r"""Sets the instance_id of this ShowHtapErrorLogDetailRequest.
|
70
|
+
|
71
|
+
**参数解释**: HTAP标准版实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,长度为36个字符。 **默认取值**: 不涉及。
|
72
|
+
|
73
|
+
:param instance_id: The instance_id of this ShowHtapErrorLogDetailRequest.
|
74
|
+
:type instance_id: str
|
75
|
+
"""
|
76
|
+
self._instance_id = instance_id
|
77
|
+
|
78
|
+
@property
|
79
|
+
def x_language(self):
|
80
|
+
r"""Gets the x_language of this ShowHtapErrorLogDetailRequest.
|
81
|
+
|
82
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
83
|
+
|
84
|
+
:return: The x_language of this ShowHtapErrorLogDetailRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._x_language
|
88
|
+
|
89
|
+
@x_language.setter
|
90
|
+
def x_language(self, x_language):
|
91
|
+
r"""Sets the x_language of this ShowHtapErrorLogDetailRequest.
|
92
|
+
|
93
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
94
|
+
|
95
|
+
:param x_language: The x_language of this ShowHtapErrorLogDetailRequest.
|
96
|
+
:type x_language: str
|
97
|
+
"""
|
98
|
+
self._x_language = x_language
|
99
|
+
|
100
|
+
@property
|
101
|
+
def body(self):
|
102
|
+
r"""Gets the body of this ShowHtapErrorLogDetailRequest.
|
103
|
+
|
104
|
+
:return: The body of this ShowHtapErrorLogDetailRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.HtapErrorLogQueryRequestBody`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
r"""Sets the body of this ShowHtapErrorLogDetailRequest.
|
112
|
+
|
113
|
+
:param body: The body of this ShowHtapErrorLogDetailRequest.
|
114
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.HtapErrorLogQueryRequestBody`
|
115
|
+
"""
|
116
|
+
self._body = body
|
117
|
+
|
118
|
+
def to_dict(self):
|
119
|
+
"""Returns the model properties as a dict"""
|
120
|
+
result = {}
|
121
|
+
|
122
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
123
|
+
value = getattr(self, attr)
|
124
|
+
if isinstance(value, list):
|
125
|
+
result[attr] = list(map(
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
127
|
+
value
|
128
|
+
))
|
129
|
+
elif hasattr(value, "to_dict"):
|
130
|
+
result[attr] = value.to_dict()
|
131
|
+
elif isinstance(value, dict):
|
132
|
+
result[attr] = dict(map(
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
135
|
+
value.items()
|
136
|
+
))
|
137
|
+
else:
|
138
|
+
if attr in self.sensitive_list:
|
139
|
+
result[attr] = "****"
|
140
|
+
else:
|
141
|
+
result[attr] = value
|
142
|
+
|
143
|
+
return result
|
144
|
+
|
145
|
+
def to_str(self):
|
146
|
+
"""Returns the string representation of the model"""
|
147
|
+
import simplejson as json
|
148
|
+
if six.PY2:
|
149
|
+
import sys
|
150
|
+
reload(sys)
|
151
|
+
sys.setdefaultencoding("utf-8")
|
152
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
153
|
+
|
154
|
+
def __repr__(self):
|
155
|
+
"""For `print`"""
|
156
|
+
return self.to_str()
|
157
|
+
|
158
|
+
def __eq__(self, other):
|
159
|
+
"""Returns true if both objects are equal"""
|
160
|
+
if not isinstance(other, ShowHtapErrorLogDetailRequest):
|
161
|
+
return False
|
162
|
+
|
163
|
+
return self.__dict__ == other.__dict__
|
164
|
+
|
165
|
+
def __ne__(self, other):
|
166
|
+
"""Returns true if both objects are not equal"""
|
167
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
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 ShowHtapErrorLogDetailResponse(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
|
+
'error_log_list': 'list[HtapErrorLogDetailResponseErrorLogList]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'error_log_list': 'error_log_list'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, error_log_list=None):
|
29
|
+
r"""ShowHtapErrorLogDetailResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param error_log_list: **参数解释**: 错误日志列表。 **约束限制**: 不涉及。
|
34
|
+
:type error_log_list: list[:class:`huaweicloudsdkgaussdb.v3.HtapErrorLogDetailResponseErrorLogList`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowHtapErrorLogDetailResponse, self).__init__()
|
38
|
+
|
39
|
+
self._error_log_list = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if error_log_list is not None:
|
43
|
+
self.error_log_list = error_log_list
|
44
|
+
|
45
|
+
@property
|
46
|
+
def error_log_list(self):
|
47
|
+
r"""Gets the error_log_list of this ShowHtapErrorLogDetailResponse.
|
48
|
+
|
49
|
+
**参数解释**: 错误日志列表。 **约束限制**: 不涉及。
|
50
|
+
|
51
|
+
:return: The error_log_list of this ShowHtapErrorLogDetailResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.HtapErrorLogDetailResponseErrorLogList`]
|
53
|
+
"""
|
54
|
+
return self._error_log_list
|
55
|
+
|
56
|
+
@error_log_list.setter
|
57
|
+
def error_log_list(self, error_log_list):
|
58
|
+
r"""Sets the error_log_list of this ShowHtapErrorLogDetailResponse.
|
59
|
+
|
60
|
+
**参数解释**: 错误日志列表。 **约束限制**: 不涉及。
|
61
|
+
|
62
|
+
:param error_log_list: The error_log_list of this ShowHtapErrorLogDetailResponse.
|
63
|
+
:type error_log_list: list[:class:`huaweicloudsdkgaussdb.v3.HtapErrorLogDetailResponseErrorLogList`]
|
64
|
+
"""
|
65
|
+
self._error_log_list = error_log_list
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ShowHtapErrorLogDetailResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,259 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowHtapLtsConfigRequest:
|
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
|
+
'instance_id': 'str',
|
22
|
+
'enterprise_project_id': 'str',
|
23
|
+
'instance_name': 'str',
|
24
|
+
'limit': 'int',
|
25
|
+
'offset': 'int'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'x_language': 'X-Language',
|
30
|
+
'instance_id': 'instance_id',
|
31
|
+
'enterprise_project_id': 'enterprise_project_id',
|
32
|
+
'instance_name': 'instance_name',
|
33
|
+
'limit': 'limit',
|
34
|
+
'offset': 'offset'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, x_language=None, instance_id=None, enterprise_project_id=None, instance_name=None, limit=None, offset=None):
|
38
|
+
r"""ShowHtapLtsConfigRequest
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
43
|
+
:type x_language: str
|
44
|
+
:param instance_id: **参数解释**: HTAP标准版实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,长度为36个字符。 **默认取值**: 不涉及。
|
45
|
+
:type instance_id: str
|
46
|
+
:param enterprise_project_id: **参数解释**: 企业project ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
47
|
+
:type enterprise_project_id: str
|
48
|
+
:param instance_name: **参数解释**: HTAP标准版实例名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
49
|
+
:type instance_name: str
|
50
|
+
:param limit: **参数解释**: 查询记录数。 **约束限制**: 不涉及。 **取值范围**: 0-100。 **默认取值**: 10。
|
51
|
+
:type limit: int
|
52
|
+
:param offset: **参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 **约束限制**: 不涉及。 **取值范围**: 0-10000。 **默认取值**: 0。
|
53
|
+
:type offset: int
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._x_language = None
|
59
|
+
self._instance_id = None
|
60
|
+
self._enterprise_project_id = None
|
61
|
+
self._instance_name = None
|
62
|
+
self._limit = None
|
63
|
+
self._offset = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
self.x_language = x_language
|
67
|
+
if instance_id is not None:
|
68
|
+
self.instance_id = instance_id
|
69
|
+
if enterprise_project_id is not None:
|
70
|
+
self.enterprise_project_id = enterprise_project_id
|
71
|
+
if instance_name is not None:
|
72
|
+
self.instance_name = instance_name
|
73
|
+
if limit is not None:
|
74
|
+
self.limit = limit
|
75
|
+
if offset is not None:
|
76
|
+
self.offset = offset
|
77
|
+
|
78
|
+
@property
|
79
|
+
def x_language(self):
|
80
|
+
r"""Gets the x_language of this ShowHtapLtsConfigRequest.
|
81
|
+
|
82
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
83
|
+
|
84
|
+
:return: The x_language of this ShowHtapLtsConfigRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._x_language
|
88
|
+
|
89
|
+
@x_language.setter
|
90
|
+
def x_language(self, x_language):
|
91
|
+
r"""Sets the x_language of this ShowHtapLtsConfigRequest.
|
92
|
+
|
93
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
94
|
+
|
95
|
+
:param x_language: The x_language of this ShowHtapLtsConfigRequest.
|
96
|
+
:type x_language: str
|
97
|
+
"""
|
98
|
+
self._x_language = x_language
|
99
|
+
|
100
|
+
@property
|
101
|
+
def instance_id(self):
|
102
|
+
r"""Gets the instance_id of this ShowHtapLtsConfigRequest.
|
103
|
+
|
104
|
+
**参数解释**: HTAP标准版实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,长度为36个字符。 **默认取值**: 不涉及。
|
105
|
+
|
106
|
+
:return: The instance_id of this ShowHtapLtsConfigRequest.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._instance_id
|
110
|
+
|
111
|
+
@instance_id.setter
|
112
|
+
def instance_id(self, instance_id):
|
113
|
+
r"""Sets the instance_id of this ShowHtapLtsConfigRequest.
|
114
|
+
|
115
|
+
**参数解释**: HTAP标准版实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,长度为36个字符。 **默认取值**: 不涉及。
|
116
|
+
|
117
|
+
:param instance_id: The instance_id of this ShowHtapLtsConfigRequest.
|
118
|
+
:type instance_id: str
|
119
|
+
"""
|
120
|
+
self._instance_id = instance_id
|
121
|
+
|
122
|
+
@property
|
123
|
+
def enterprise_project_id(self):
|
124
|
+
r"""Gets the enterprise_project_id of this ShowHtapLtsConfigRequest.
|
125
|
+
|
126
|
+
**参数解释**: 企业project ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
127
|
+
|
128
|
+
:return: The enterprise_project_id of this ShowHtapLtsConfigRequest.
|
129
|
+
:rtype: str
|
130
|
+
"""
|
131
|
+
return self._enterprise_project_id
|
132
|
+
|
133
|
+
@enterprise_project_id.setter
|
134
|
+
def enterprise_project_id(self, enterprise_project_id):
|
135
|
+
r"""Sets the enterprise_project_id of this ShowHtapLtsConfigRequest.
|
136
|
+
|
137
|
+
**参数解释**: 企业project ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
138
|
+
|
139
|
+
:param enterprise_project_id: The enterprise_project_id of this ShowHtapLtsConfigRequest.
|
140
|
+
:type enterprise_project_id: str
|
141
|
+
"""
|
142
|
+
self._enterprise_project_id = enterprise_project_id
|
143
|
+
|
144
|
+
@property
|
145
|
+
def instance_name(self):
|
146
|
+
r"""Gets the instance_name of this ShowHtapLtsConfigRequest.
|
147
|
+
|
148
|
+
**参数解释**: HTAP标准版实例名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
149
|
+
|
150
|
+
:return: The instance_name of this ShowHtapLtsConfigRequest.
|
151
|
+
:rtype: str
|
152
|
+
"""
|
153
|
+
return self._instance_name
|
154
|
+
|
155
|
+
@instance_name.setter
|
156
|
+
def instance_name(self, instance_name):
|
157
|
+
r"""Sets the instance_name of this ShowHtapLtsConfigRequest.
|
158
|
+
|
159
|
+
**参数解释**: HTAP标准版实例名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
160
|
+
|
161
|
+
:param instance_name: The instance_name of this ShowHtapLtsConfigRequest.
|
162
|
+
:type instance_name: str
|
163
|
+
"""
|
164
|
+
self._instance_name = instance_name
|
165
|
+
|
166
|
+
@property
|
167
|
+
def limit(self):
|
168
|
+
r"""Gets the limit of this ShowHtapLtsConfigRequest.
|
169
|
+
|
170
|
+
**参数解释**: 查询记录数。 **约束限制**: 不涉及。 **取值范围**: 0-100。 **默认取值**: 10。
|
171
|
+
|
172
|
+
:return: The limit of this ShowHtapLtsConfigRequest.
|
173
|
+
:rtype: int
|
174
|
+
"""
|
175
|
+
return self._limit
|
176
|
+
|
177
|
+
@limit.setter
|
178
|
+
def limit(self, limit):
|
179
|
+
r"""Sets the limit of this ShowHtapLtsConfigRequest.
|
180
|
+
|
181
|
+
**参数解释**: 查询记录数。 **约束限制**: 不涉及。 **取值范围**: 0-100。 **默认取值**: 10。
|
182
|
+
|
183
|
+
:param limit: The limit of this ShowHtapLtsConfigRequest.
|
184
|
+
:type limit: int
|
185
|
+
"""
|
186
|
+
self._limit = limit
|
187
|
+
|
188
|
+
@property
|
189
|
+
def offset(self):
|
190
|
+
r"""Gets the offset of this ShowHtapLtsConfigRequest.
|
191
|
+
|
192
|
+
**参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 **约束限制**: 不涉及。 **取值范围**: 0-10000。 **默认取值**: 0。
|
193
|
+
|
194
|
+
:return: The offset of this ShowHtapLtsConfigRequest.
|
195
|
+
:rtype: int
|
196
|
+
"""
|
197
|
+
return self._offset
|
198
|
+
|
199
|
+
@offset.setter
|
200
|
+
def offset(self, offset):
|
201
|
+
r"""Sets the offset of this ShowHtapLtsConfigRequest.
|
202
|
+
|
203
|
+
**参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 **约束限制**: 不涉及。 **取值范围**: 0-10000。 **默认取值**: 0。
|
204
|
+
|
205
|
+
:param offset: The offset of this ShowHtapLtsConfigRequest.
|
206
|
+
:type offset: int
|
207
|
+
"""
|
208
|
+
self._offset = offset
|
209
|
+
|
210
|
+
def to_dict(self):
|
211
|
+
"""Returns the model properties as a dict"""
|
212
|
+
result = {}
|
213
|
+
|
214
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
215
|
+
value = getattr(self, attr)
|
216
|
+
if isinstance(value, list):
|
217
|
+
result[attr] = list(map(
|
218
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
219
|
+
value
|
220
|
+
))
|
221
|
+
elif hasattr(value, "to_dict"):
|
222
|
+
result[attr] = value.to_dict()
|
223
|
+
elif isinstance(value, dict):
|
224
|
+
result[attr] = dict(map(
|
225
|
+
lambda item: (item[0], item[1].to_dict())
|
226
|
+
if hasattr(item[1], "to_dict") else item,
|
227
|
+
value.items()
|
228
|
+
))
|
229
|
+
else:
|
230
|
+
if attr in self.sensitive_list:
|
231
|
+
result[attr] = "****"
|
232
|
+
else:
|
233
|
+
result[attr] = value
|
234
|
+
|
235
|
+
return result
|
236
|
+
|
237
|
+
def to_str(self):
|
238
|
+
"""Returns the string representation of the model"""
|
239
|
+
import simplejson as json
|
240
|
+
if six.PY2:
|
241
|
+
import sys
|
242
|
+
reload(sys)
|
243
|
+
sys.setdefaultencoding("utf-8")
|
244
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
245
|
+
|
246
|
+
def __repr__(self):
|
247
|
+
"""For `print`"""
|
248
|
+
return self.to_str()
|
249
|
+
|
250
|
+
def __eq__(self, other):
|
251
|
+
"""Returns true if both objects are equal"""
|
252
|
+
if not isinstance(other, ShowHtapLtsConfigRequest):
|
253
|
+
return False
|
254
|
+
|
255
|
+
return self.__dict__ == other.__dict__
|
256
|
+
|
257
|
+
def __ne__(self, other):
|
258
|
+
"""Returns true if both objects are not equal"""
|
259
|
+
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 ShowHtapLtsConfigResponse(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
|
+
'instance_lts_configs': 'list[HtapLTSConfigResponseInstanceLtsConfigs]',
|
22
|
+
'total_count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'instance_lts_configs': 'instance_lts_configs',
|
27
|
+
'total_count': 'total_count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, instance_lts_configs=None, total_count=None):
|
31
|
+
r"""ShowHtapLtsConfigResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param instance_lts_configs: **参数解释**: 实例LTS配置信息。 **约束限制**: 不涉及。
|
36
|
+
:type instance_lts_configs: list[:class:`huaweicloudsdkgaussdb.v3.HtapLTSConfigResponseInstanceLtsConfigs`]
|
37
|
+
:param total_count: **参数解释**: 实例数。 **取值范围**: 不涉及。
|
38
|
+
:type total_count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowHtapLtsConfigResponse, self).__init__()
|
42
|
+
|
43
|
+
self._instance_lts_configs = None
|
44
|
+
self._total_count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if instance_lts_configs is not None:
|
48
|
+
self.instance_lts_configs = instance_lts_configs
|
49
|
+
if total_count is not None:
|
50
|
+
self.total_count = total_count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def instance_lts_configs(self):
|
54
|
+
r"""Gets the instance_lts_configs of this ShowHtapLtsConfigResponse.
|
55
|
+
|
56
|
+
**参数解释**: 实例LTS配置信息。 **约束限制**: 不涉及。
|
57
|
+
|
58
|
+
:return: The instance_lts_configs of this ShowHtapLtsConfigResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.HtapLTSConfigResponseInstanceLtsConfigs`]
|
60
|
+
"""
|
61
|
+
return self._instance_lts_configs
|
62
|
+
|
63
|
+
@instance_lts_configs.setter
|
64
|
+
def instance_lts_configs(self, instance_lts_configs):
|
65
|
+
r"""Sets the instance_lts_configs of this ShowHtapLtsConfigResponse.
|
66
|
+
|
67
|
+
**参数解释**: 实例LTS配置信息。 **约束限制**: 不涉及。
|
68
|
+
|
69
|
+
:param instance_lts_configs: The instance_lts_configs of this ShowHtapLtsConfigResponse.
|
70
|
+
:type instance_lts_configs: list[:class:`huaweicloudsdkgaussdb.v3.HtapLTSConfigResponseInstanceLtsConfigs`]
|
71
|
+
"""
|
72
|
+
self._instance_lts_configs = instance_lts_configs
|
73
|
+
|
74
|
+
@property
|
75
|
+
def total_count(self):
|
76
|
+
r"""Gets the total_count of this ShowHtapLtsConfigResponse.
|
77
|
+
|
78
|
+
**参数解释**: 实例数。 **取值范围**: 不涉及。
|
79
|
+
|
80
|
+
:return: The total_count of this ShowHtapLtsConfigResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._total_count
|
84
|
+
|
85
|
+
@total_count.setter
|
86
|
+
def total_count(self, total_count):
|
87
|
+
r"""Sets the total_count of this ShowHtapLtsConfigResponse.
|
88
|
+
|
89
|
+
**参数解释**: 实例数。 **取值范围**: 不涉及。
|
90
|
+
|
91
|
+
:param total_count: The total_count of this ShowHtapLtsConfigResponse.
|
92
|
+
:type total_count: int
|
93
|
+
"""
|
94
|
+
self._total_count = total_count
|
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, ShowHtapLtsConfigResponse):
|
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
|