huaweicloudsdkgaussdb 3.1.98__py2.py3-none-any.whl → 3.1.100__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.
- huaweicloudsdkgaussdb/v3/__init__.py +52 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1151 -45
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1151 -45
- huaweicloudsdkgaussdb/v3/model/__init__.py +52 -0
- huaweicloudsdkgaussdb/v3/model/auto_scaling_record_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/create_lts_configs.py +114 -0
- huaweicloudsdkgaussdb/v3/model/create_lts_configs_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/create_lts_configs_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/delete_lts_configs_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/instance_delete_lts_config.py +142 -0
- huaweicloudsdkgaussdb/v3/model/instance_lts_basic_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/instance_save_lts_config.py +198 -0
- huaweicloudsdkgaussdb/v3/model/ip_group_item.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_request.py +172 -0
- huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_recycle_instances_request.py +173 -0
- huaweicloudsdkgaussdb/v3/model/list_recycle_instances_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/lts_config.py +202 -0
- huaweicloudsdkgaussdb/v3/model/lts_configs_v3.py +140 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_priority_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_priority_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_priority_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/mysql_update_instance_name_request.py +32 -3
- huaweicloudsdkgaussdb/v3/model/proxy_configuration.py +260 -0
- huaweicloudsdkgaussdb/v3/model/proxy_ip_group_detail.py +170 -0
- huaweicloudsdkgaussdb/v3/model/recycle_instance_v3.py +579 -0
- huaweicloudsdkgaussdb/v3/model/recycle_policy.py +114 -0
- huaweicloudsdkgaussdb/v3/model/rename_instance_node_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/rename_instance_node_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/rename_instance_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request_body.py +111 -0
- huaweicloudsdkgaussdb/v3/model/set_recycle_policy_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_request.py +201 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_dedicated_resource_info_response.py +18 -18
- huaweicloudsdkgaussdb/v3/model/show_instance_eip_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_eip_response.py +493 -0
- huaweicloudsdkgaussdb/v3/model/show_lts_configs_request.py +260 -0
- huaweicloudsdkgaussdb/v3/model/show_lts_configs_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_request.py +258 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +5 -9
- huaweicloudsdkgaussdb/v3/model/show_recycle_policy_request.py +115 -0
- huaweicloudsdkgaussdb/v3/model/show_recycle_policy_response.py +112 -0
- huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/single_node_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/template_apply_history.py +231 -0
- huaweicloudsdkgaussdb/v3/model/update_serverless_policy.py +142 -0
- huaweicloudsdkgaussdb/v3/model/update_serverless_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_serverless_policy_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_response.py +85 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/RECORD +64 -12
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,172 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListParamsTemplateApplyHistoryRequest:
|
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
|
+
'config_id': 'str',
|
21
|
+
'limit': 'int',
|
22
|
+
'offset': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'config_id': 'config_id',
|
27
|
+
'limit': 'limit',
|
28
|
+
'offset': 'offset'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, config_id=None, limit=None, offset=None):
|
32
|
+
"""ListParamsTemplateApplyHistoryRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param config_id: 参数组ID。
|
37
|
+
:type config_id: str
|
38
|
+
:param limit: 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
39
|
+
:type limit: int
|
40
|
+
:param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
41
|
+
:type offset: int
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._config_id = None
|
47
|
+
self._limit = None
|
48
|
+
self._offset = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.config_id = config_id
|
52
|
+
if limit is not None:
|
53
|
+
self.limit = limit
|
54
|
+
if offset is not None:
|
55
|
+
self.offset = offset
|
56
|
+
|
57
|
+
@property
|
58
|
+
def config_id(self):
|
59
|
+
"""Gets the config_id of this ListParamsTemplateApplyHistoryRequest.
|
60
|
+
|
61
|
+
参数组ID。
|
62
|
+
|
63
|
+
:return: The config_id of this ListParamsTemplateApplyHistoryRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._config_id
|
67
|
+
|
68
|
+
@config_id.setter
|
69
|
+
def config_id(self, config_id):
|
70
|
+
"""Sets the config_id of this ListParamsTemplateApplyHistoryRequest.
|
71
|
+
|
72
|
+
参数组ID。
|
73
|
+
|
74
|
+
:param config_id: The config_id of this ListParamsTemplateApplyHistoryRequest.
|
75
|
+
:type config_id: str
|
76
|
+
"""
|
77
|
+
self._config_id = config_id
|
78
|
+
|
79
|
+
@property
|
80
|
+
def limit(self):
|
81
|
+
"""Gets the limit of this ListParamsTemplateApplyHistoryRequest.
|
82
|
+
|
83
|
+
查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
84
|
+
|
85
|
+
:return: The limit of this ListParamsTemplateApplyHistoryRequest.
|
86
|
+
:rtype: int
|
87
|
+
"""
|
88
|
+
return self._limit
|
89
|
+
|
90
|
+
@limit.setter
|
91
|
+
def limit(self, limit):
|
92
|
+
"""Sets the limit of this ListParamsTemplateApplyHistoryRequest.
|
93
|
+
|
94
|
+
查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
95
|
+
|
96
|
+
:param limit: The limit of this ListParamsTemplateApplyHistoryRequest.
|
97
|
+
:type limit: int
|
98
|
+
"""
|
99
|
+
self._limit = limit
|
100
|
+
|
101
|
+
@property
|
102
|
+
def offset(self):
|
103
|
+
"""Gets the offset of this ListParamsTemplateApplyHistoryRequest.
|
104
|
+
|
105
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
106
|
+
|
107
|
+
:return: The offset of this ListParamsTemplateApplyHistoryRequest.
|
108
|
+
:rtype: int
|
109
|
+
"""
|
110
|
+
return self._offset
|
111
|
+
|
112
|
+
@offset.setter
|
113
|
+
def offset(self, offset):
|
114
|
+
"""Sets the offset of this ListParamsTemplateApplyHistoryRequest.
|
115
|
+
|
116
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
117
|
+
|
118
|
+
:param offset: The offset of this ListParamsTemplateApplyHistoryRequest.
|
119
|
+
:type offset: int
|
120
|
+
"""
|
121
|
+
self._offset = offset
|
122
|
+
|
123
|
+
def to_dict(self):
|
124
|
+
"""Returns the model properties as a dict"""
|
125
|
+
result = {}
|
126
|
+
|
127
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
128
|
+
value = getattr(self, attr)
|
129
|
+
if isinstance(value, list):
|
130
|
+
result[attr] = list(map(
|
131
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
132
|
+
value
|
133
|
+
))
|
134
|
+
elif hasattr(value, "to_dict"):
|
135
|
+
result[attr] = value.to_dict()
|
136
|
+
elif isinstance(value, dict):
|
137
|
+
result[attr] = dict(map(
|
138
|
+
lambda item: (item[0], item[1].to_dict())
|
139
|
+
if hasattr(item[1], "to_dict") else item,
|
140
|
+
value.items()
|
141
|
+
))
|
142
|
+
else:
|
143
|
+
if attr in self.sensitive_list:
|
144
|
+
result[attr] = "****"
|
145
|
+
else:
|
146
|
+
result[attr] = value
|
147
|
+
|
148
|
+
return result
|
149
|
+
|
150
|
+
def to_str(self):
|
151
|
+
"""Returns the string representation of the model"""
|
152
|
+
import simplejson as json
|
153
|
+
if six.PY2:
|
154
|
+
import sys
|
155
|
+
reload(sys)
|
156
|
+
sys.setdefaultencoding("utf-8")
|
157
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
158
|
+
|
159
|
+
def __repr__(self):
|
160
|
+
"""For `print`"""
|
161
|
+
return self.to_str()
|
162
|
+
|
163
|
+
def __eq__(self, other):
|
164
|
+
"""Returns true if both objects are equal"""
|
165
|
+
if not isinstance(other, ListParamsTemplateApplyHistoryRequest):
|
166
|
+
return False
|
167
|
+
|
168
|
+
return self.__dict__ == other.__dict__
|
169
|
+
|
170
|
+
def __ne__(self, other):
|
171
|
+
"""Returns true if both objects are not equal"""
|
172
|
+
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 ListParamsTemplateApplyHistoryResponse(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
|
+
'total_count': 'str',
|
22
|
+
'histories': 'list[TemplateApplyHistory]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'total_count': 'total_count',
|
27
|
+
'histories': 'histories'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, total_count=None, histories=None):
|
31
|
+
"""ListParamsTemplateApplyHistoryResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param total_count: 应用记录数量。
|
36
|
+
:type total_count: str
|
37
|
+
:param histories: 应用记录信息
|
38
|
+
:type histories: list[:class:`huaweicloudsdkgaussdb.v3.TemplateApplyHistory`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListParamsTemplateApplyHistoryResponse, self).__init__()
|
42
|
+
|
43
|
+
self._total_count = None
|
44
|
+
self._histories = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if total_count is not None:
|
48
|
+
self.total_count = total_count
|
49
|
+
if histories is not None:
|
50
|
+
self.histories = histories
|
51
|
+
|
52
|
+
@property
|
53
|
+
def total_count(self):
|
54
|
+
"""Gets the total_count of this ListParamsTemplateApplyHistoryResponse.
|
55
|
+
|
56
|
+
应用记录数量。
|
57
|
+
|
58
|
+
:return: The total_count of this ListParamsTemplateApplyHistoryResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._total_count
|
62
|
+
|
63
|
+
@total_count.setter
|
64
|
+
def total_count(self, total_count):
|
65
|
+
"""Sets the total_count of this ListParamsTemplateApplyHistoryResponse.
|
66
|
+
|
67
|
+
应用记录数量。
|
68
|
+
|
69
|
+
:param total_count: The total_count of this ListParamsTemplateApplyHistoryResponse.
|
70
|
+
:type total_count: str
|
71
|
+
"""
|
72
|
+
self._total_count = total_count
|
73
|
+
|
74
|
+
@property
|
75
|
+
def histories(self):
|
76
|
+
"""Gets the histories of this ListParamsTemplateApplyHistoryResponse.
|
77
|
+
|
78
|
+
应用记录信息
|
79
|
+
|
80
|
+
:return: The histories of this ListParamsTemplateApplyHistoryResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.TemplateApplyHistory`]
|
82
|
+
"""
|
83
|
+
return self._histories
|
84
|
+
|
85
|
+
@histories.setter
|
86
|
+
def histories(self, histories):
|
87
|
+
"""Sets the histories of this ListParamsTemplateApplyHistoryResponse.
|
88
|
+
|
89
|
+
应用记录信息
|
90
|
+
|
91
|
+
:param histories: The histories of this ListParamsTemplateApplyHistoryResponse.
|
92
|
+
:type histories: list[:class:`huaweicloudsdkgaussdb.v3.TemplateApplyHistory`]
|
93
|
+
"""
|
94
|
+
self._histories = histories
|
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, ListParamsTemplateApplyHistoryResponse):
|
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,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListRecycleInstancesRequest:
|
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
|
+
'limit': 'int',
|
22
|
+
'offset': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'limit': 'limit',
|
28
|
+
'offset': 'offset'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, limit=None, offset=None):
|
32
|
+
"""ListRecycleInstancesRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 语言。
|
37
|
+
:type x_language: str
|
38
|
+
:param limit: 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
39
|
+
:type limit: int
|
40
|
+
:param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
41
|
+
:type offset: int
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._limit = None
|
48
|
+
self._offset = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
if limit is not None:
|
54
|
+
self.limit = limit
|
55
|
+
if offset is not None:
|
56
|
+
self.offset = offset
|
57
|
+
|
58
|
+
@property
|
59
|
+
def x_language(self):
|
60
|
+
"""Gets the x_language of this ListRecycleInstancesRequest.
|
61
|
+
|
62
|
+
语言。
|
63
|
+
|
64
|
+
:return: The x_language of this ListRecycleInstancesRequest.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._x_language
|
68
|
+
|
69
|
+
@x_language.setter
|
70
|
+
def x_language(self, x_language):
|
71
|
+
"""Sets the x_language of this ListRecycleInstancesRequest.
|
72
|
+
|
73
|
+
语言。
|
74
|
+
|
75
|
+
:param x_language: The x_language of this ListRecycleInstancesRequest.
|
76
|
+
:type x_language: str
|
77
|
+
"""
|
78
|
+
self._x_language = x_language
|
79
|
+
|
80
|
+
@property
|
81
|
+
def limit(self):
|
82
|
+
"""Gets the limit of this ListRecycleInstancesRequest.
|
83
|
+
|
84
|
+
查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
85
|
+
|
86
|
+
:return: The limit of this ListRecycleInstancesRequest.
|
87
|
+
:rtype: int
|
88
|
+
"""
|
89
|
+
return self._limit
|
90
|
+
|
91
|
+
@limit.setter
|
92
|
+
def limit(self, limit):
|
93
|
+
"""Sets the limit of this ListRecycleInstancesRequest.
|
94
|
+
|
95
|
+
查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
96
|
+
|
97
|
+
:param limit: The limit of this ListRecycleInstancesRequest.
|
98
|
+
:type limit: int
|
99
|
+
"""
|
100
|
+
self._limit = limit
|
101
|
+
|
102
|
+
@property
|
103
|
+
def offset(self):
|
104
|
+
"""Gets the offset of this ListRecycleInstancesRequest.
|
105
|
+
|
106
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
107
|
+
|
108
|
+
:return: The offset of this ListRecycleInstancesRequest.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._offset
|
112
|
+
|
113
|
+
@offset.setter
|
114
|
+
def offset(self, offset):
|
115
|
+
"""Sets the offset of this ListRecycleInstancesRequest.
|
116
|
+
|
117
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
118
|
+
|
119
|
+
:param offset: The offset of this ListRecycleInstancesRequest.
|
120
|
+
:type offset: int
|
121
|
+
"""
|
122
|
+
self._offset = offset
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, ListRecycleInstancesRequest):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
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 ListRecycleInstancesResponse(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
|
+
'total_count': 'str',
|
22
|
+
'instances': 'list[RecycleInstanceV3]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'total_count': 'total_count',
|
27
|
+
'instances': 'instances'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, total_count=None, instances=None):
|
31
|
+
"""ListRecycleInstancesResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param total_count: 数据总数
|
36
|
+
:type total_count: str
|
37
|
+
:param instances: 回收站实例信息
|
38
|
+
:type instances: list[:class:`huaweicloudsdkgaussdb.v3.RecycleInstanceV3`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListRecycleInstancesResponse, self).__init__()
|
42
|
+
|
43
|
+
self._total_count = None
|
44
|
+
self._instances = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if total_count is not None:
|
48
|
+
self.total_count = total_count
|
49
|
+
if instances is not None:
|
50
|
+
self.instances = instances
|
51
|
+
|
52
|
+
@property
|
53
|
+
def total_count(self):
|
54
|
+
"""Gets the total_count of this ListRecycleInstancesResponse.
|
55
|
+
|
56
|
+
数据总数
|
57
|
+
|
58
|
+
:return: The total_count of this ListRecycleInstancesResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._total_count
|
62
|
+
|
63
|
+
@total_count.setter
|
64
|
+
def total_count(self, total_count):
|
65
|
+
"""Sets the total_count of this ListRecycleInstancesResponse.
|
66
|
+
|
67
|
+
数据总数
|
68
|
+
|
69
|
+
:param total_count: The total_count of this ListRecycleInstancesResponse.
|
70
|
+
:type total_count: str
|
71
|
+
"""
|
72
|
+
self._total_count = total_count
|
73
|
+
|
74
|
+
@property
|
75
|
+
def instances(self):
|
76
|
+
"""Gets the instances of this ListRecycleInstancesResponse.
|
77
|
+
|
78
|
+
回收站实例信息
|
79
|
+
|
80
|
+
:return: The instances of this ListRecycleInstancesResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.RecycleInstanceV3`]
|
82
|
+
"""
|
83
|
+
return self._instances
|
84
|
+
|
85
|
+
@instances.setter
|
86
|
+
def instances(self, instances):
|
87
|
+
"""Sets the instances of this ListRecycleInstancesResponse.
|
88
|
+
|
89
|
+
回收站实例信息
|
90
|
+
|
91
|
+
:param instances: The instances of this ListRecycleInstancesResponse.
|
92
|
+
:type instances: list[:class:`huaweicloudsdkgaussdb.v3.RecycleInstanceV3`]
|
93
|
+
"""
|
94
|
+
self._instances = instances
|
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, ListRecycleInstancesResponse):
|
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
|