huaweicloudsdkgaussdbforopengauss 3.1.90__py2.py3-none-any.whl → 3.1.92__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 +32 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +789 -20
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +789 -20
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +32 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +230 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
- huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/RECORD +42 -10
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,261 @@
|
|
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 SearchAutoEnlargePolicyResponse(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
|
+
'switch_option': 'bool',
|
22
|
+
'limit_volume_size': 'int',
|
23
|
+
'min_volume_size': 'int',
|
24
|
+
'max_volume_size': 'int',
|
25
|
+
'trigger_available_percent': 'int',
|
26
|
+
'percents': 'list[int]'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'switch_option': 'switch_option',
|
31
|
+
'limit_volume_size': 'limit_volume_size',
|
32
|
+
'min_volume_size': 'min_volume_size',
|
33
|
+
'max_volume_size': 'max_volume_size',
|
34
|
+
'trigger_available_percent': 'trigger_available_percent',
|
35
|
+
'percents': 'percents'
|
36
|
+
}
|
37
|
+
|
38
|
+
def __init__(self, switch_option=None, limit_volume_size=None, min_volume_size=None, max_volume_size=None, trigger_available_percent=None, percents=None):
|
39
|
+
"""SearchAutoEnlargePolicyResponse
|
40
|
+
|
41
|
+
The model defined in huaweicloud sdk
|
42
|
+
|
43
|
+
:param switch_option: 磁盘自动扩容开关。
|
44
|
+
:type switch_option: bool
|
45
|
+
:param limit_volume_size: 存储自动扩容上限。
|
46
|
+
:type limit_volume_size: int
|
47
|
+
:param min_volume_size: 最小扩容磁盘容量。
|
48
|
+
:type min_volume_size: int
|
49
|
+
:param max_volume_size: 最大扩容磁盘容量。
|
50
|
+
:type max_volume_size: int
|
51
|
+
:param trigger_available_percent: 可用存储空间率。
|
52
|
+
:type trigger_available_percent: int
|
53
|
+
:param percents: 空间率集合。
|
54
|
+
:type percents: list[int]
|
55
|
+
"""
|
56
|
+
|
57
|
+
super(SearchAutoEnlargePolicyResponse, self).__init__()
|
58
|
+
|
59
|
+
self._switch_option = None
|
60
|
+
self._limit_volume_size = None
|
61
|
+
self._min_volume_size = None
|
62
|
+
self._max_volume_size = None
|
63
|
+
self._trigger_available_percent = None
|
64
|
+
self._percents = None
|
65
|
+
self.discriminator = None
|
66
|
+
|
67
|
+
if switch_option is not None:
|
68
|
+
self.switch_option = switch_option
|
69
|
+
if limit_volume_size is not None:
|
70
|
+
self.limit_volume_size = limit_volume_size
|
71
|
+
if min_volume_size is not None:
|
72
|
+
self.min_volume_size = min_volume_size
|
73
|
+
if max_volume_size is not None:
|
74
|
+
self.max_volume_size = max_volume_size
|
75
|
+
if trigger_available_percent is not None:
|
76
|
+
self.trigger_available_percent = trigger_available_percent
|
77
|
+
if percents is not None:
|
78
|
+
self.percents = percents
|
79
|
+
|
80
|
+
@property
|
81
|
+
def switch_option(self):
|
82
|
+
"""Gets the switch_option of this SearchAutoEnlargePolicyResponse.
|
83
|
+
|
84
|
+
磁盘自动扩容开关。
|
85
|
+
|
86
|
+
:return: The switch_option of this SearchAutoEnlargePolicyResponse.
|
87
|
+
:rtype: bool
|
88
|
+
"""
|
89
|
+
return self._switch_option
|
90
|
+
|
91
|
+
@switch_option.setter
|
92
|
+
def switch_option(self, switch_option):
|
93
|
+
"""Sets the switch_option of this SearchAutoEnlargePolicyResponse.
|
94
|
+
|
95
|
+
磁盘自动扩容开关。
|
96
|
+
|
97
|
+
:param switch_option: The switch_option of this SearchAutoEnlargePolicyResponse.
|
98
|
+
:type switch_option: bool
|
99
|
+
"""
|
100
|
+
self._switch_option = switch_option
|
101
|
+
|
102
|
+
@property
|
103
|
+
def limit_volume_size(self):
|
104
|
+
"""Gets the limit_volume_size of this SearchAutoEnlargePolicyResponse.
|
105
|
+
|
106
|
+
存储自动扩容上限。
|
107
|
+
|
108
|
+
:return: The limit_volume_size of this SearchAutoEnlargePolicyResponse.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._limit_volume_size
|
112
|
+
|
113
|
+
@limit_volume_size.setter
|
114
|
+
def limit_volume_size(self, limit_volume_size):
|
115
|
+
"""Sets the limit_volume_size of this SearchAutoEnlargePolicyResponse.
|
116
|
+
|
117
|
+
存储自动扩容上限。
|
118
|
+
|
119
|
+
:param limit_volume_size: The limit_volume_size of this SearchAutoEnlargePolicyResponse.
|
120
|
+
:type limit_volume_size: int
|
121
|
+
"""
|
122
|
+
self._limit_volume_size = limit_volume_size
|
123
|
+
|
124
|
+
@property
|
125
|
+
def min_volume_size(self):
|
126
|
+
"""Gets the min_volume_size of this SearchAutoEnlargePolicyResponse.
|
127
|
+
|
128
|
+
最小扩容磁盘容量。
|
129
|
+
|
130
|
+
:return: The min_volume_size of this SearchAutoEnlargePolicyResponse.
|
131
|
+
:rtype: int
|
132
|
+
"""
|
133
|
+
return self._min_volume_size
|
134
|
+
|
135
|
+
@min_volume_size.setter
|
136
|
+
def min_volume_size(self, min_volume_size):
|
137
|
+
"""Sets the min_volume_size of this SearchAutoEnlargePolicyResponse.
|
138
|
+
|
139
|
+
最小扩容磁盘容量。
|
140
|
+
|
141
|
+
:param min_volume_size: The min_volume_size of this SearchAutoEnlargePolicyResponse.
|
142
|
+
:type min_volume_size: int
|
143
|
+
"""
|
144
|
+
self._min_volume_size = min_volume_size
|
145
|
+
|
146
|
+
@property
|
147
|
+
def max_volume_size(self):
|
148
|
+
"""Gets the max_volume_size of this SearchAutoEnlargePolicyResponse.
|
149
|
+
|
150
|
+
最大扩容磁盘容量。
|
151
|
+
|
152
|
+
:return: The max_volume_size of this SearchAutoEnlargePolicyResponse.
|
153
|
+
:rtype: int
|
154
|
+
"""
|
155
|
+
return self._max_volume_size
|
156
|
+
|
157
|
+
@max_volume_size.setter
|
158
|
+
def max_volume_size(self, max_volume_size):
|
159
|
+
"""Sets the max_volume_size of this SearchAutoEnlargePolicyResponse.
|
160
|
+
|
161
|
+
最大扩容磁盘容量。
|
162
|
+
|
163
|
+
:param max_volume_size: The max_volume_size of this SearchAutoEnlargePolicyResponse.
|
164
|
+
:type max_volume_size: int
|
165
|
+
"""
|
166
|
+
self._max_volume_size = max_volume_size
|
167
|
+
|
168
|
+
@property
|
169
|
+
def trigger_available_percent(self):
|
170
|
+
"""Gets the trigger_available_percent of this SearchAutoEnlargePolicyResponse.
|
171
|
+
|
172
|
+
可用存储空间率。
|
173
|
+
|
174
|
+
:return: The trigger_available_percent of this SearchAutoEnlargePolicyResponse.
|
175
|
+
:rtype: int
|
176
|
+
"""
|
177
|
+
return self._trigger_available_percent
|
178
|
+
|
179
|
+
@trigger_available_percent.setter
|
180
|
+
def trigger_available_percent(self, trigger_available_percent):
|
181
|
+
"""Sets the trigger_available_percent of this SearchAutoEnlargePolicyResponse.
|
182
|
+
|
183
|
+
可用存储空间率。
|
184
|
+
|
185
|
+
:param trigger_available_percent: The trigger_available_percent of this SearchAutoEnlargePolicyResponse.
|
186
|
+
:type trigger_available_percent: int
|
187
|
+
"""
|
188
|
+
self._trigger_available_percent = trigger_available_percent
|
189
|
+
|
190
|
+
@property
|
191
|
+
def percents(self):
|
192
|
+
"""Gets the percents of this SearchAutoEnlargePolicyResponse.
|
193
|
+
|
194
|
+
空间率集合。
|
195
|
+
|
196
|
+
:return: The percents of this SearchAutoEnlargePolicyResponse.
|
197
|
+
:rtype: list[int]
|
198
|
+
"""
|
199
|
+
return self._percents
|
200
|
+
|
201
|
+
@percents.setter
|
202
|
+
def percents(self, percents):
|
203
|
+
"""Sets the percents of this SearchAutoEnlargePolicyResponse.
|
204
|
+
|
205
|
+
空间率集合。
|
206
|
+
|
207
|
+
:param percents: The percents of this SearchAutoEnlargePolicyResponse.
|
208
|
+
:type percents: list[int]
|
209
|
+
"""
|
210
|
+
self._percents = percents
|
211
|
+
|
212
|
+
def to_dict(self):
|
213
|
+
"""Returns the model properties as a dict"""
|
214
|
+
result = {}
|
215
|
+
|
216
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
217
|
+
value = getattr(self, attr)
|
218
|
+
if isinstance(value, list):
|
219
|
+
result[attr] = list(map(
|
220
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
221
|
+
value
|
222
|
+
))
|
223
|
+
elif hasattr(value, "to_dict"):
|
224
|
+
result[attr] = value.to_dict()
|
225
|
+
elif isinstance(value, dict):
|
226
|
+
result[attr] = dict(map(
|
227
|
+
lambda item: (item[0], item[1].to_dict())
|
228
|
+
if hasattr(item[1], "to_dict") else item,
|
229
|
+
value.items()
|
230
|
+
))
|
231
|
+
else:
|
232
|
+
if attr in self.sensitive_list:
|
233
|
+
result[attr] = "****"
|
234
|
+
else:
|
235
|
+
result[attr] = value
|
236
|
+
|
237
|
+
return result
|
238
|
+
|
239
|
+
def to_str(self):
|
240
|
+
"""Returns the string representation of the model"""
|
241
|
+
import simplejson as json
|
242
|
+
if six.PY2:
|
243
|
+
import sys
|
244
|
+
reload(sys)
|
245
|
+
sys.setdefaultencoding("utf-8")
|
246
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
247
|
+
|
248
|
+
def __repr__(self):
|
249
|
+
"""For `print`"""
|
250
|
+
return self.to_str()
|
251
|
+
|
252
|
+
def __eq__(self, other):
|
253
|
+
"""Returns true if both objects are equal"""
|
254
|
+
if not isinstance(other, SearchAutoEnlargePolicyResponse):
|
255
|
+
return False
|
256
|
+
|
257
|
+
return self.__dict__ == other.__dict__
|
258
|
+
|
259
|
+
def __ne__(self, other):
|
260
|
+
"""Returns true if both objects are not equal"""
|
261
|
+
return not self == other
|
@@ -21,7 +21,7 @@ class ShowBackupPolicy:
|
|
21
21
|
'start_time': 'str',
|
22
22
|
'period': 'str',
|
23
23
|
'differential_priod': 'str',
|
24
|
-
'differential_period': '
|
24
|
+
'differential_period': 'int',
|
25
25
|
'rate_limit': 'int',
|
26
26
|
'prefetch_block': 'int',
|
27
27
|
'filesplit_size': 'int',
|
@@ -56,7 +56,7 @@ class ShowBackupPolicy:
|
|
56
56
|
:param differential_priod: 差量备份周期配置。自动差量备份将每隔周期分钟执行(废弃)。
|
57
57
|
:type differential_priod: str
|
58
58
|
:param differential_period: 差量备份周期配置。自动差量备份将每隔周期分钟执行。
|
59
|
-
:type differential_period:
|
59
|
+
:type differential_period: int
|
60
60
|
:param rate_limit: 备份时备份数据上传OBS的速度,单位为MB/s。范围为0~1024MB/s,默认75MB/s,0MB/s表示不限速。
|
61
61
|
:type rate_limit: int
|
62
62
|
:param prefetch_block: 控制差量备份时读取磁盘上表文件差量修改页面的预取页面个数,可设置范围为1~8192,默认64。
|
@@ -195,7 +195,7 @@ class ShowBackupPolicy:
|
|
195
195
|
差量备份周期配置。自动差量备份将每隔周期分钟执行。
|
196
196
|
|
197
197
|
:return: The differential_period of this ShowBackupPolicy.
|
198
|
-
:rtype:
|
198
|
+
:rtype: int
|
199
199
|
"""
|
200
200
|
return self._differential_period
|
201
201
|
|
@@ -206,7 +206,7 @@ class ShowBackupPolicy:
|
|
206
206
|
差量备份周期配置。自动差量备份将每隔周期分钟执行。
|
207
207
|
|
208
208
|
:param differential_period: The differential_period of this ShowBackupPolicy.
|
209
|
-
:type differential_period:
|
209
|
+
:type differential_period: int
|
210
210
|
"""
|
211
211
|
self._differential_period = differential_period
|
212
212
|
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowErrorLogSwitchStatusRequest:
|
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
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'instance_id': 'instance_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, instance_id=None):
|
30
|
+
"""ShowErrorLogSwitchStatusRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 语言
|
35
|
+
:type x_language: str
|
36
|
+
:param instance_id: 实例ID。
|
37
|
+
:type instance_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._instance_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
self.instance_id = instance_id
|
49
|
+
|
50
|
+
@property
|
51
|
+
def x_language(self):
|
52
|
+
"""Gets the x_language of this ShowErrorLogSwitchStatusRequest.
|
53
|
+
|
54
|
+
语言
|
55
|
+
|
56
|
+
:return: The x_language of this ShowErrorLogSwitchStatusRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._x_language
|
60
|
+
|
61
|
+
@x_language.setter
|
62
|
+
def x_language(self, x_language):
|
63
|
+
"""Sets the x_language of this ShowErrorLogSwitchStatusRequest.
|
64
|
+
|
65
|
+
语言
|
66
|
+
|
67
|
+
:param x_language: The x_language of this ShowErrorLogSwitchStatusRequest.
|
68
|
+
:type x_language: str
|
69
|
+
"""
|
70
|
+
self._x_language = x_language
|
71
|
+
|
72
|
+
@property
|
73
|
+
def instance_id(self):
|
74
|
+
"""Gets the instance_id of this ShowErrorLogSwitchStatusRequest.
|
75
|
+
|
76
|
+
实例ID。
|
77
|
+
|
78
|
+
:return: The instance_id of this ShowErrorLogSwitchStatusRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._instance_id
|
82
|
+
|
83
|
+
@instance_id.setter
|
84
|
+
def instance_id(self, instance_id):
|
85
|
+
"""Sets the instance_id of this ShowErrorLogSwitchStatusRequest.
|
86
|
+
|
87
|
+
实例ID。
|
88
|
+
|
89
|
+
:param instance_id: The instance_id of this ShowErrorLogSwitchStatusRequest.
|
90
|
+
:type instance_id: str
|
91
|
+
"""
|
92
|
+
self._instance_id = instance_id
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowErrorLogSwitchStatusRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
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 ShowErrorLogSwitchStatusResponse(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
|
+
'status': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'status': 'status'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, status=None):
|
29
|
+
"""ShowErrorLogSwitchStatusResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param status: 采集状态
|
34
|
+
:type status: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowErrorLogSwitchStatusResponse, self).__init__()
|
38
|
+
|
39
|
+
self._status = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if status is not None:
|
43
|
+
self.status = status
|
44
|
+
|
45
|
+
@property
|
46
|
+
def status(self):
|
47
|
+
"""Gets the status of this ShowErrorLogSwitchStatusResponse.
|
48
|
+
|
49
|
+
采集状态
|
50
|
+
|
51
|
+
:return: The status of this ShowErrorLogSwitchStatusResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._status
|
55
|
+
|
56
|
+
@status.setter
|
57
|
+
def status(self, status):
|
58
|
+
"""Sets the status of this ShowErrorLogSwitchStatusResponse.
|
59
|
+
|
60
|
+
采集状态
|
61
|
+
|
62
|
+
:param status: The status of this ShowErrorLogSwitchStatusResponse.
|
63
|
+
:type status: str
|
64
|
+
"""
|
65
|
+
self._status = status
|
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, ShowErrorLogSwitchStatusResponse):
|
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,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowSlowLogDownloadRequest:
|
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
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'instance_id': 'instance_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, instance_id=None):
|
30
|
+
"""ShowSlowLogDownloadRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 语言
|
35
|
+
:type x_language: str
|
36
|
+
:param instance_id: 实例ID,严格匹配UUID规则。
|
37
|
+
:type instance_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._instance_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
self.instance_id = instance_id
|
49
|
+
|
50
|
+
@property
|
51
|
+
def x_language(self):
|
52
|
+
"""Gets the x_language of this ShowSlowLogDownloadRequest.
|
53
|
+
|
54
|
+
语言
|
55
|
+
|
56
|
+
:return: The x_language of this ShowSlowLogDownloadRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._x_language
|
60
|
+
|
61
|
+
@x_language.setter
|
62
|
+
def x_language(self, x_language):
|
63
|
+
"""Sets the x_language of this ShowSlowLogDownloadRequest.
|
64
|
+
|
65
|
+
语言
|
66
|
+
|
67
|
+
:param x_language: The x_language of this ShowSlowLogDownloadRequest.
|
68
|
+
:type x_language: str
|
69
|
+
"""
|
70
|
+
self._x_language = x_language
|
71
|
+
|
72
|
+
@property
|
73
|
+
def instance_id(self):
|
74
|
+
"""Gets the instance_id of this ShowSlowLogDownloadRequest.
|
75
|
+
|
76
|
+
实例ID,严格匹配UUID规则。
|
77
|
+
|
78
|
+
:return: The instance_id of this ShowSlowLogDownloadRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._instance_id
|
82
|
+
|
83
|
+
@instance_id.setter
|
84
|
+
def instance_id(self, instance_id):
|
85
|
+
"""Sets the instance_id of this ShowSlowLogDownloadRequest.
|
86
|
+
|
87
|
+
实例ID,严格匹配UUID规则。
|
88
|
+
|
89
|
+
:param instance_id: The instance_id of this ShowSlowLogDownloadRequest.
|
90
|
+
:type instance_id: str
|
91
|
+
"""
|
92
|
+
self._instance_id = instance_id
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowSlowLogDownloadRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|