huaweicloudsdkgaussdbforopengauss 3.1.90__py2.py3-none-any.whl → 3.1.91__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 +25 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +548 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +548 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +25 -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/instances_statistics_response_body_instances_statistics.py +142 -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/open_gauss_upgrade_request.py +259 -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_instances_statistics_request.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_response.py +145 -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/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.91.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/RECORD +34 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CnInfoBeforeReduce:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'status': 'str',
|
23
|
+
'availability_zone': 'str',
|
24
|
+
'support_reduce': 'bool'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'id': 'id',
|
29
|
+
'name': 'name',
|
30
|
+
'status': 'status',
|
31
|
+
'availability_zone': 'availability_zone',
|
32
|
+
'support_reduce': 'support_reduce'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, id=None, name=None, status=None, availability_zone=None, support_reduce=None):
|
36
|
+
"""CnInfoBeforeReduce
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param id: 节点ID。
|
41
|
+
:type id: str
|
42
|
+
:param name: 节点名称。
|
43
|
+
:type name: str
|
44
|
+
:param status: 节点状态。 取值: 值为“normal”,表示节点正常。 值为“abnormal”,表示节点异常。 值为“creating”,表示节点正在创建。 值为“createfail”,表示节点创建失败。
|
45
|
+
:type status: str
|
46
|
+
:param availability_zone: 可用区。
|
47
|
+
:type availability_zone: str
|
48
|
+
:param support_reduce: 是否允许删除。
|
49
|
+
:type support_reduce: bool
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._id = None
|
55
|
+
self._name = None
|
56
|
+
self._status = None
|
57
|
+
self._availability_zone = None
|
58
|
+
self._support_reduce = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if id is not None:
|
62
|
+
self.id = id
|
63
|
+
if name is not None:
|
64
|
+
self.name = name
|
65
|
+
if status is not None:
|
66
|
+
self.status = status
|
67
|
+
if availability_zone is not None:
|
68
|
+
self.availability_zone = availability_zone
|
69
|
+
if support_reduce is not None:
|
70
|
+
self.support_reduce = support_reduce
|
71
|
+
|
72
|
+
@property
|
73
|
+
def id(self):
|
74
|
+
"""Gets the id of this CnInfoBeforeReduce.
|
75
|
+
|
76
|
+
节点ID。
|
77
|
+
|
78
|
+
:return: The id of this CnInfoBeforeReduce.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._id
|
82
|
+
|
83
|
+
@id.setter
|
84
|
+
def id(self, id):
|
85
|
+
"""Sets the id of this CnInfoBeforeReduce.
|
86
|
+
|
87
|
+
节点ID。
|
88
|
+
|
89
|
+
:param id: The id of this CnInfoBeforeReduce.
|
90
|
+
:type id: str
|
91
|
+
"""
|
92
|
+
self._id = id
|
93
|
+
|
94
|
+
@property
|
95
|
+
def name(self):
|
96
|
+
"""Gets the name of this CnInfoBeforeReduce.
|
97
|
+
|
98
|
+
节点名称。
|
99
|
+
|
100
|
+
:return: The name of this CnInfoBeforeReduce.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._name
|
104
|
+
|
105
|
+
@name.setter
|
106
|
+
def name(self, name):
|
107
|
+
"""Sets the name of this CnInfoBeforeReduce.
|
108
|
+
|
109
|
+
节点名称。
|
110
|
+
|
111
|
+
:param name: The name of this CnInfoBeforeReduce.
|
112
|
+
:type name: str
|
113
|
+
"""
|
114
|
+
self._name = name
|
115
|
+
|
116
|
+
@property
|
117
|
+
def status(self):
|
118
|
+
"""Gets the status of this CnInfoBeforeReduce.
|
119
|
+
|
120
|
+
节点状态。 取值: 值为“normal”,表示节点正常。 值为“abnormal”,表示节点异常。 值为“creating”,表示节点正在创建。 值为“createfail”,表示节点创建失败。
|
121
|
+
|
122
|
+
:return: The status of this CnInfoBeforeReduce.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._status
|
126
|
+
|
127
|
+
@status.setter
|
128
|
+
def status(self, status):
|
129
|
+
"""Sets the status of this CnInfoBeforeReduce.
|
130
|
+
|
131
|
+
节点状态。 取值: 值为“normal”,表示节点正常。 值为“abnormal”,表示节点异常。 值为“creating”,表示节点正在创建。 值为“createfail”,表示节点创建失败。
|
132
|
+
|
133
|
+
:param status: The status of this CnInfoBeforeReduce.
|
134
|
+
:type status: str
|
135
|
+
"""
|
136
|
+
self._status = status
|
137
|
+
|
138
|
+
@property
|
139
|
+
def availability_zone(self):
|
140
|
+
"""Gets the availability_zone of this CnInfoBeforeReduce.
|
141
|
+
|
142
|
+
可用区。
|
143
|
+
|
144
|
+
:return: The availability_zone of this CnInfoBeforeReduce.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._availability_zone
|
148
|
+
|
149
|
+
@availability_zone.setter
|
150
|
+
def availability_zone(self, availability_zone):
|
151
|
+
"""Sets the availability_zone of this CnInfoBeforeReduce.
|
152
|
+
|
153
|
+
可用区。
|
154
|
+
|
155
|
+
:param availability_zone: The availability_zone of this CnInfoBeforeReduce.
|
156
|
+
:type availability_zone: str
|
157
|
+
"""
|
158
|
+
self._availability_zone = availability_zone
|
159
|
+
|
160
|
+
@property
|
161
|
+
def support_reduce(self):
|
162
|
+
"""Gets the support_reduce of this CnInfoBeforeReduce.
|
163
|
+
|
164
|
+
是否允许删除。
|
165
|
+
|
166
|
+
:return: The support_reduce of this CnInfoBeforeReduce.
|
167
|
+
:rtype: bool
|
168
|
+
"""
|
169
|
+
return self._support_reduce
|
170
|
+
|
171
|
+
@support_reduce.setter
|
172
|
+
def support_reduce(self, support_reduce):
|
173
|
+
"""Sets the support_reduce of this CnInfoBeforeReduce.
|
174
|
+
|
175
|
+
是否允许删除。
|
176
|
+
|
177
|
+
:param support_reduce: The support_reduce of this CnInfoBeforeReduce.
|
178
|
+
:type support_reduce: bool
|
179
|
+
"""
|
180
|
+
self._support_reduce = support_reduce
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, CnInfoBeforeReduce):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
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 CreateSlowLogDownloadRequest:
|
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
|
+
"""CreateSlowLogDownloadRequest
|
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 CreateSlowLogDownloadRequest.
|
53
|
+
|
54
|
+
语言
|
55
|
+
|
56
|
+
:return: The x_language of this CreateSlowLogDownloadRequest.
|
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 CreateSlowLogDownloadRequest.
|
64
|
+
|
65
|
+
语言
|
66
|
+
|
67
|
+
:param x_language: The x_language of this CreateSlowLogDownloadRequest.
|
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 CreateSlowLogDownloadRequest.
|
75
|
+
|
76
|
+
实例ID,严格匹配UUID规则。
|
77
|
+
|
78
|
+
:return: The instance_id of this CreateSlowLogDownloadRequest.
|
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 CreateSlowLogDownloadRequest.
|
86
|
+
|
87
|
+
实例ID,严格匹配UUID规则。
|
88
|
+
|
89
|
+
:param instance_id: The instance_id of this CreateSlowLogDownloadRequest.
|
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, CreateSlowLogDownloadRequest):
|
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 CreateSlowLogDownloadResponse(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
|
+
'list': 'list[SlowLogDownloadInfo]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'list': 'list'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, list=None):
|
29
|
+
"""CreateSlowLogDownloadResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param list: 慢日志下载信息列表
|
34
|
+
:type list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.SlowLogDownloadInfo`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateSlowLogDownloadResponse, self).__init__()
|
38
|
+
|
39
|
+
self._list = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if list is not None:
|
43
|
+
self.list = list
|
44
|
+
|
45
|
+
@property
|
46
|
+
def list(self):
|
47
|
+
"""Gets the list of this CreateSlowLogDownloadResponse.
|
48
|
+
|
49
|
+
慢日志下载信息列表
|
50
|
+
|
51
|
+
:return: The list of this CreateSlowLogDownloadResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.SlowLogDownloadInfo`]
|
53
|
+
"""
|
54
|
+
return self._list
|
55
|
+
|
56
|
+
@list.setter
|
57
|
+
def list(self, list):
|
58
|
+
"""Sets the list of this CreateSlowLogDownloadResponse.
|
59
|
+
|
60
|
+
慢日志下载信息列表
|
61
|
+
|
62
|
+
:param list: The list of this CreateSlowLogDownloadResponse.
|
63
|
+
:type list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.SlowLogDownloadInfo`]
|
64
|
+
"""
|
65
|
+
self._list = 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, CreateSlowLogDownloadResponse):
|
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,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InstancesStatisticsResponseBodyInstancesStatistics:
|
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
|
+
'status': 'str',
|
21
|
+
'count': 'int'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'status': 'status',
|
26
|
+
'count': 'count'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, status=None, count=None):
|
30
|
+
"""InstancesStatisticsResponseBodyInstancesStatistics
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param status: 实例状态
|
35
|
+
:type status: str
|
36
|
+
:param count: 实例数量
|
37
|
+
:type count: int
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._status = None
|
43
|
+
self._count = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.status = status
|
47
|
+
self.count = count
|
48
|
+
|
49
|
+
@property
|
50
|
+
def status(self):
|
51
|
+
"""Gets the status of this InstancesStatisticsResponseBodyInstancesStatistics.
|
52
|
+
|
53
|
+
实例状态
|
54
|
+
|
55
|
+
:return: The status of this InstancesStatisticsResponseBodyInstancesStatistics.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._status
|
59
|
+
|
60
|
+
@status.setter
|
61
|
+
def status(self, status):
|
62
|
+
"""Sets the status of this InstancesStatisticsResponseBodyInstancesStatistics.
|
63
|
+
|
64
|
+
实例状态
|
65
|
+
|
66
|
+
:param status: The status of this InstancesStatisticsResponseBodyInstancesStatistics.
|
67
|
+
:type status: str
|
68
|
+
"""
|
69
|
+
self._status = status
|
70
|
+
|
71
|
+
@property
|
72
|
+
def count(self):
|
73
|
+
"""Gets the count of this InstancesStatisticsResponseBodyInstancesStatistics.
|
74
|
+
|
75
|
+
实例数量
|
76
|
+
|
77
|
+
:return: The count of this InstancesStatisticsResponseBodyInstancesStatistics.
|
78
|
+
:rtype: int
|
79
|
+
"""
|
80
|
+
return self._count
|
81
|
+
|
82
|
+
@count.setter
|
83
|
+
def count(self, count):
|
84
|
+
"""Sets the count of this InstancesStatisticsResponseBodyInstancesStatistics.
|
85
|
+
|
86
|
+
实例数量
|
87
|
+
|
88
|
+
:param count: The count of this InstancesStatisticsResponseBodyInstancesStatistics.
|
89
|
+
:type count: int
|
90
|
+
"""
|
91
|
+
self._count = count
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, InstancesStatisticsResponseBodyInstancesStatistics):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|