huaweicloudsdkeihealth 3.1.150__py2.py3-none-any.whl → 3.1.152__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.
- huaweicloudsdkeihealth/v1/__init__.py +46 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +1323 -48
- huaweicloudsdkeihealth/v1/eihealth_client.py +1323 -48
- huaweicloudsdkeihealth/v1/model/__init__.py +46 -0
- huaweicloudsdkeihealth/v1/model/agency_dto.py +231 -0
- huaweicloudsdkeihealth/v1/model/app_dto.py +492 -0
- huaweicloudsdkeihealth/v1/model/cce_cluster_rsp.py +260 -0
- huaweicloudsdkeihealth/v1/model/computing_cluster_rsp.py +463 -0
- huaweicloudsdkeihealth/v1/model/create_computing_cluster_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/create_computing_cluster_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_computing_cluster_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/delete_computing_cluster_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_computing_cluster_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/iam_role_dto.py +231 -0
- huaweicloudsdkeihealth/v1/model/initialize_platform_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/initialize_platform_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/install_step.py +169 -0
- huaweicloudsdkeihealth/v1/model/list_cce_cluster_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/list_cce_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_cluster_install_step_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/list_cluster_install_step_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_computing_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_computing_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_project_statistics_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/list_project_statistics_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_sfs_turbos_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_sfs_turbos_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_app_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_app_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_drug_job_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_drug_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_image_request.py +521 -0
- huaweicloudsdkeihealth/v1/model/list_user_image_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_job_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_job_response.py +203 -0
- huaweicloudsdkeihealth/v1/model/list_user_notebook_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_notebook_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_workflow_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_workflow_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/project_statistic.py +347 -0
- huaweicloudsdkeihealth/v1/model/sfs_turbo_rsp.py +231 -0
- huaweicloudsdkeihealth/v1/model/show_agency_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/show_agency_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/statistic_dto.py +144 -0
- huaweicloudsdkeihealth/v1/model/step_status.py +89 -0
- huaweicloudsdkeihealth/v1/model/update_agency_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/update_agency_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/update_top_project_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/update_top_project_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/update_top_project_response.py +85 -0
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/RECORD +55 -9
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CceClusterRsp:
|
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
|
+
'version': 'str',
|
24
|
+
'flavor': 'str',
|
25
|
+
'category': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'id': 'id',
|
30
|
+
'name': 'name',
|
31
|
+
'status': 'status',
|
32
|
+
'version': 'version',
|
33
|
+
'flavor': 'flavor',
|
34
|
+
'category': 'category'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, id=None, name=None, status=None, version=None, flavor=None, category=None):
|
38
|
+
r"""CceClusterRsp
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param id: 计算集群ID。
|
43
|
+
:type id: str
|
44
|
+
:param name: 计算集群名称。
|
45
|
+
:type name: str
|
46
|
+
:param status: 计算集群状态。
|
47
|
+
:type status: str
|
48
|
+
:param version: 计算集群版本。
|
49
|
+
:type version: str
|
50
|
+
:param flavor: 计算集群规格。
|
51
|
+
:type flavor: str
|
52
|
+
:param category: 计算集群类别。CCE代表CCE集群,Turbo代表CCE Turbo集群。
|
53
|
+
:type category: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._id = None
|
59
|
+
self._name = None
|
60
|
+
self._status = None
|
61
|
+
self._version = None
|
62
|
+
self._flavor = None
|
63
|
+
self._category = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if id is not None:
|
67
|
+
self.id = id
|
68
|
+
if name is not None:
|
69
|
+
self.name = name
|
70
|
+
if status is not None:
|
71
|
+
self.status = status
|
72
|
+
if version is not None:
|
73
|
+
self.version = version
|
74
|
+
if flavor is not None:
|
75
|
+
self.flavor = flavor
|
76
|
+
if category is not None:
|
77
|
+
self.category = category
|
78
|
+
|
79
|
+
@property
|
80
|
+
def id(self):
|
81
|
+
r"""Gets the id of this CceClusterRsp.
|
82
|
+
|
83
|
+
计算集群ID。
|
84
|
+
|
85
|
+
:return: The id of this CceClusterRsp.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._id
|
89
|
+
|
90
|
+
@id.setter
|
91
|
+
def id(self, id):
|
92
|
+
r"""Sets the id of this CceClusterRsp.
|
93
|
+
|
94
|
+
计算集群ID。
|
95
|
+
|
96
|
+
:param id: The id of this CceClusterRsp.
|
97
|
+
:type id: str
|
98
|
+
"""
|
99
|
+
self._id = id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def name(self):
|
103
|
+
r"""Gets the name of this CceClusterRsp.
|
104
|
+
|
105
|
+
计算集群名称。
|
106
|
+
|
107
|
+
:return: The name of this CceClusterRsp.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._name
|
111
|
+
|
112
|
+
@name.setter
|
113
|
+
def name(self, name):
|
114
|
+
r"""Sets the name of this CceClusterRsp.
|
115
|
+
|
116
|
+
计算集群名称。
|
117
|
+
|
118
|
+
:param name: The name of this CceClusterRsp.
|
119
|
+
:type name: str
|
120
|
+
"""
|
121
|
+
self._name = name
|
122
|
+
|
123
|
+
@property
|
124
|
+
def status(self):
|
125
|
+
r"""Gets the status of this CceClusterRsp.
|
126
|
+
|
127
|
+
计算集群状态。
|
128
|
+
|
129
|
+
:return: The status of this CceClusterRsp.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._status
|
133
|
+
|
134
|
+
@status.setter
|
135
|
+
def status(self, status):
|
136
|
+
r"""Sets the status of this CceClusterRsp.
|
137
|
+
|
138
|
+
计算集群状态。
|
139
|
+
|
140
|
+
:param status: The status of this CceClusterRsp.
|
141
|
+
:type status: str
|
142
|
+
"""
|
143
|
+
self._status = status
|
144
|
+
|
145
|
+
@property
|
146
|
+
def version(self):
|
147
|
+
r"""Gets the version of this CceClusterRsp.
|
148
|
+
|
149
|
+
计算集群版本。
|
150
|
+
|
151
|
+
:return: The version of this CceClusterRsp.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._version
|
155
|
+
|
156
|
+
@version.setter
|
157
|
+
def version(self, version):
|
158
|
+
r"""Sets the version of this CceClusterRsp.
|
159
|
+
|
160
|
+
计算集群版本。
|
161
|
+
|
162
|
+
:param version: The version of this CceClusterRsp.
|
163
|
+
:type version: str
|
164
|
+
"""
|
165
|
+
self._version = version
|
166
|
+
|
167
|
+
@property
|
168
|
+
def flavor(self):
|
169
|
+
r"""Gets the flavor of this CceClusterRsp.
|
170
|
+
|
171
|
+
计算集群规格。
|
172
|
+
|
173
|
+
:return: The flavor of this CceClusterRsp.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._flavor
|
177
|
+
|
178
|
+
@flavor.setter
|
179
|
+
def flavor(self, flavor):
|
180
|
+
r"""Sets the flavor of this CceClusterRsp.
|
181
|
+
|
182
|
+
计算集群规格。
|
183
|
+
|
184
|
+
:param flavor: The flavor of this CceClusterRsp.
|
185
|
+
:type flavor: str
|
186
|
+
"""
|
187
|
+
self._flavor = flavor
|
188
|
+
|
189
|
+
@property
|
190
|
+
def category(self):
|
191
|
+
r"""Gets the category of this CceClusterRsp.
|
192
|
+
|
193
|
+
计算集群类别。CCE代表CCE集群,Turbo代表CCE Turbo集群。
|
194
|
+
|
195
|
+
:return: The category of this CceClusterRsp.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._category
|
199
|
+
|
200
|
+
@category.setter
|
201
|
+
def category(self, category):
|
202
|
+
r"""Sets the category of this CceClusterRsp.
|
203
|
+
|
204
|
+
计算集群类别。CCE代表CCE集群,Turbo代表CCE Turbo集群。
|
205
|
+
|
206
|
+
:param category: The category of this CceClusterRsp.
|
207
|
+
:type category: str
|
208
|
+
"""
|
209
|
+
self._category = category
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, CceClusterRsp):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|
@@ -0,0 +1,463 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ComputingClusterRsp:
|
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
|
+
'version': 'str',
|
23
|
+
'flavor': 'str',
|
24
|
+
'category': 'str',
|
25
|
+
'status': 'str',
|
26
|
+
'active_nodes_number': 'int',
|
27
|
+
'total_nodes_number': 'int',
|
28
|
+
'create_time': 'str',
|
29
|
+
'cce_create_time': 'str',
|
30
|
+
'cce_status': 'str',
|
31
|
+
'cce_id': 'str',
|
32
|
+
'billing_mode': 'str'
|
33
|
+
}
|
34
|
+
|
35
|
+
attribute_map = {
|
36
|
+
'id': 'id',
|
37
|
+
'name': 'name',
|
38
|
+
'version': 'version',
|
39
|
+
'flavor': 'flavor',
|
40
|
+
'category': 'category',
|
41
|
+
'status': 'status',
|
42
|
+
'active_nodes_number': 'active_nodes_number',
|
43
|
+
'total_nodes_number': 'total_nodes_number',
|
44
|
+
'create_time': 'create_time',
|
45
|
+
'cce_create_time': 'cce_create_time',
|
46
|
+
'cce_status': 'cce_status',
|
47
|
+
'cce_id': 'cce_id',
|
48
|
+
'billing_mode': 'billing_mode'
|
49
|
+
}
|
50
|
+
|
51
|
+
def __init__(self, id=None, name=None, version=None, flavor=None, category=None, status=None, active_nodes_number=None, total_nodes_number=None, create_time=None, cce_create_time=None, cce_status=None, cce_id=None, billing_mode=None):
|
52
|
+
r"""ComputingClusterRsp
|
53
|
+
|
54
|
+
The model defined in huaweicloud sdk
|
55
|
+
|
56
|
+
:param id: 已绑定的集群ID。
|
57
|
+
:type id: str
|
58
|
+
:param name: 计算集群名称。
|
59
|
+
:type name: str
|
60
|
+
:param version: 计算集群版本。
|
61
|
+
:type version: str
|
62
|
+
:param flavor: 计算集群规格。
|
63
|
+
:type flavor: str
|
64
|
+
:param category: 计算集群类别。CCE代表CCE集群,Turbo代表CCE Turbo集群。
|
65
|
+
:type category: str
|
66
|
+
:param status: 计算集群绑定状态,支持RUNNING|INSTALL_FAILED|UNINSTALL_FAILED|INSTALLING|UNINSTALLING。
|
67
|
+
:type status: str
|
68
|
+
:param active_nodes_number: 计算集群可用节点数。
|
69
|
+
:type active_nodes_number: int
|
70
|
+
:param total_nodes_number: 计算集群总节点数。
|
71
|
+
:type total_nodes_number: int
|
72
|
+
:param create_time: 计算集群绑定时间。
|
73
|
+
:type create_time: str
|
74
|
+
:param cce_create_time: cce集群创建时间。
|
75
|
+
:type cce_create_time: str
|
76
|
+
:param cce_status: cce集群绑态。
|
77
|
+
:type cce_status: str
|
78
|
+
:param cce_id: cce集群ID。
|
79
|
+
:type cce_id: str
|
80
|
+
:param billing_mode: 计费模式,prepaid表示包周期,postpaid表示按需。
|
81
|
+
:type billing_mode: str
|
82
|
+
"""
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
self._id = None
|
87
|
+
self._name = None
|
88
|
+
self._version = None
|
89
|
+
self._flavor = None
|
90
|
+
self._category = None
|
91
|
+
self._status = None
|
92
|
+
self._active_nodes_number = None
|
93
|
+
self._total_nodes_number = None
|
94
|
+
self._create_time = None
|
95
|
+
self._cce_create_time = None
|
96
|
+
self._cce_status = None
|
97
|
+
self._cce_id = None
|
98
|
+
self._billing_mode = None
|
99
|
+
self.discriminator = None
|
100
|
+
|
101
|
+
if id is not None:
|
102
|
+
self.id = id
|
103
|
+
if name is not None:
|
104
|
+
self.name = name
|
105
|
+
if version is not None:
|
106
|
+
self.version = version
|
107
|
+
if flavor is not None:
|
108
|
+
self.flavor = flavor
|
109
|
+
if category is not None:
|
110
|
+
self.category = category
|
111
|
+
if status is not None:
|
112
|
+
self.status = status
|
113
|
+
if active_nodes_number is not None:
|
114
|
+
self.active_nodes_number = active_nodes_number
|
115
|
+
if total_nodes_number is not None:
|
116
|
+
self.total_nodes_number = total_nodes_number
|
117
|
+
if create_time is not None:
|
118
|
+
self.create_time = create_time
|
119
|
+
if cce_create_time is not None:
|
120
|
+
self.cce_create_time = cce_create_time
|
121
|
+
if cce_status is not None:
|
122
|
+
self.cce_status = cce_status
|
123
|
+
if cce_id is not None:
|
124
|
+
self.cce_id = cce_id
|
125
|
+
if billing_mode is not None:
|
126
|
+
self.billing_mode = billing_mode
|
127
|
+
|
128
|
+
@property
|
129
|
+
def id(self):
|
130
|
+
r"""Gets the id of this ComputingClusterRsp.
|
131
|
+
|
132
|
+
已绑定的集群ID。
|
133
|
+
|
134
|
+
:return: The id of this ComputingClusterRsp.
|
135
|
+
:rtype: str
|
136
|
+
"""
|
137
|
+
return self._id
|
138
|
+
|
139
|
+
@id.setter
|
140
|
+
def id(self, id):
|
141
|
+
r"""Sets the id of this ComputingClusterRsp.
|
142
|
+
|
143
|
+
已绑定的集群ID。
|
144
|
+
|
145
|
+
:param id: The id of this ComputingClusterRsp.
|
146
|
+
:type id: str
|
147
|
+
"""
|
148
|
+
self._id = id
|
149
|
+
|
150
|
+
@property
|
151
|
+
def name(self):
|
152
|
+
r"""Gets the name of this ComputingClusterRsp.
|
153
|
+
|
154
|
+
计算集群名称。
|
155
|
+
|
156
|
+
:return: The name of this ComputingClusterRsp.
|
157
|
+
:rtype: str
|
158
|
+
"""
|
159
|
+
return self._name
|
160
|
+
|
161
|
+
@name.setter
|
162
|
+
def name(self, name):
|
163
|
+
r"""Sets the name of this ComputingClusterRsp.
|
164
|
+
|
165
|
+
计算集群名称。
|
166
|
+
|
167
|
+
:param name: The name of this ComputingClusterRsp.
|
168
|
+
:type name: str
|
169
|
+
"""
|
170
|
+
self._name = name
|
171
|
+
|
172
|
+
@property
|
173
|
+
def version(self):
|
174
|
+
r"""Gets the version of this ComputingClusterRsp.
|
175
|
+
|
176
|
+
计算集群版本。
|
177
|
+
|
178
|
+
:return: The version of this ComputingClusterRsp.
|
179
|
+
:rtype: str
|
180
|
+
"""
|
181
|
+
return self._version
|
182
|
+
|
183
|
+
@version.setter
|
184
|
+
def version(self, version):
|
185
|
+
r"""Sets the version of this ComputingClusterRsp.
|
186
|
+
|
187
|
+
计算集群版本。
|
188
|
+
|
189
|
+
:param version: The version of this ComputingClusterRsp.
|
190
|
+
:type version: str
|
191
|
+
"""
|
192
|
+
self._version = version
|
193
|
+
|
194
|
+
@property
|
195
|
+
def flavor(self):
|
196
|
+
r"""Gets the flavor of this ComputingClusterRsp.
|
197
|
+
|
198
|
+
计算集群规格。
|
199
|
+
|
200
|
+
:return: The flavor of this ComputingClusterRsp.
|
201
|
+
:rtype: str
|
202
|
+
"""
|
203
|
+
return self._flavor
|
204
|
+
|
205
|
+
@flavor.setter
|
206
|
+
def flavor(self, flavor):
|
207
|
+
r"""Sets the flavor of this ComputingClusterRsp.
|
208
|
+
|
209
|
+
计算集群规格。
|
210
|
+
|
211
|
+
:param flavor: The flavor of this ComputingClusterRsp.
|
212
|
+
:type flavor: str
|
213
|
+
"""
|
214
|
+
self._flavor = flavor
|
215
|
+
|
216
|
+
@property
|
217
|
+
def category(self):
|
218
|
+
r"""Gets the category of this ComputingClusterRsp.
|
219
|
+
|
220
|
+
计算集群类别。CCE代表CCE集群,Turbo代表CCE Turbo集群。
|
221
|
+
|
222
|
+
:return: The category of this ComputingClusterRsp.
|
223
|
+
:rtype: str
|
224
|
+
"""
|
225
|
+
return self._category
|
226
|
+
|
227
|
+
@category.setter
|
228
|
+
def category(self, category):
|
229
|
+
r"""Sets the category of this ComputingClusterRsp.
|
230
|
+
|
231
|
+
计算集群类别。CCE代表CCE集群,Turbo代表CCE Turbo集群。
|
232
|
+
|
233
|
+
:param category: The category of this ComputingClusterRsp.
|
234
|
+
:type category: str
|
235
|
+
"""
|
236
|
+
self._category = category
|
237
|
+
|
238
|
+
@property
|
239
|
+
def status(self):
|
240
|
+
r"""Gets the status of this ComputingClusterRsp.
|
241
|
+
|
242
|
+
计算集群绑定状态,支持RUNNING|INSTALL_FAILED|UNINSTALL_FAILED|INSTALLING|UNINSTALLING。
|
243
|
+
|
244
|
+
:return: The status of this ComputingClusterRsp.
|
245
|
+
:rtype: str
|
246
|
+
"""
|
247
|
+
return self._status
|
248
|
+
|
249
|
+
@status.setter
|
250
|
+
def status(self, status):
|
251
|
+
r"""Sets the status of this ComputingClusterRsp.
|
252
|
+
|
253
|
+
计算集群绑定状态,支持RUNNING|INSTALL_FAILED|UNINSTALL_FAILED|INSTALLING|UNINSTALLING。
|
254
|
+
|
255
|
+
:param status: The status of this ComputingClusterRsp.
|
256
|
+
:type status: str
|
257
|
+
"""
|
258
|
+
self._status = status
|
259
|
+
|
260
|
+
@property
|
261
|
+
def active_nodes_number(self):
|
262
|
+
r"""Gets the active_nodes_number of this ComputingClusterRsp.
|
263
|
+
|
264
|
+
计算集群可用节点数。
|
265
|
+
|
266
|
+
:return: The active_nodes_number of this ComputingClusterRsp.
|
267
|
+
:rtype: int
|
268
|
+
"""
|
269
|
+
return self._active_nodes_number
|
270
|
+
|
271
|
+
@active_nodes_number.setter
|
272
|
+
def active_nodes_number(self, active_nodes_number):
|
273
|
+
r"""Sets the active_nodes_number of this ComputingClusterRsp.
|
274
|
+
|
275
|
+
计算集群可用节点数。
|
276
|
+
|
277
|
+
:param active_nodes_number: The active_nodes_number of this ComputingClusterRsp.
|
278
|
+
:type active_nodes_number: int
|
279
|
+
"""
|
280
|
+
self._active_nodes_number = active_nodes_number
|
281
|
+
|
282
|
+
@property
|
283
|
+
def total_nodes_number(self):
|
284
|
+
r"""Gets the total_nodes_number of this ComputingClusterRsp.
|
285
|
+
|
286
|
+
计算集群总节点数。
|
287
|
+
|
288
|
+
:return: The total_nodes_number of this ComputingClusterRsp.
|
289
|
+
:rtype: int
|
290
|
+
"""
|
291
|
+
return self._total_nodes_number
|
292
|
+
|
293
|
+
@total_nodes_number.setter
|
294
|
+
def total_nodes_number(self, total_nodes_number):
|
295
|
+
r"""Sets the total_nodes_number of this ComputingClusterRsp.
|
296
|
+
|
297
|
+
计算集群总节点数。
|
298
|
+
|
299
|
+
:param total_nodes_number: The total_nodes_number of this ComputingClusterRsp.
|
300
|
+
:type total_nodes_number: int
|
301
|
+
"""
|
302
|
+
self._total_nodes_number = total_nodes_number
|
303
|
+
|
304
|
+
@property
|
305
|
+
def create_time(self):
|
306
|
+
r"""Gets the create_time of this ComputingClusterRsp.
|
307
|
+
|
308
|
+
计算集群绑定时间。
|
309
|
+
|
310
|
+
:return: The create_time of this ComputingClusterRsp.
|
311
|
+
:rtype: str
|
312
|
+
"""
|
313
|
+
return self._create_time
|
314
|
+
|
315
|
+
@create_time.setter
|
316
|
+
def create_time(self, create_time):
|
317
|
+
r"""Sets the create_time of this ComputingClusterRsp.
|
318
|
+
|
319
|
+
计算集群绑定时间。
|
320
|
+
|
321
|
+
:param create_time: The create_time of this ComputingClusterRsp.
|
322
|
+
:type create_time: str
|
323
|
+
"""
|
324
|
+
self._create_time = create_time
|
325
|
+
|
326
|
+
@property
|
327
|
+
def cce_create_time(self):
|
328
|
+
r"""Gets the cce_create_time of this ComputingClusterRsp.
|
329
|
+
|
330
|
+
cce集群创建时间。
|
331
|
+
|
332
|
+
:return: The cce_create_time of this ComputingClusterRsp.
|
333
|
+
:rtype: str
|
334
|
+
"""
|
335
|
+
return self._cce_create_time
|
336
|
+
|
337
|
+
@cce_create_time.setter
|
338
|
+
def cce_create_time(self, cce_create_time):
|
339
|
+
r"""Sets the cce_create_time of this ComputingClusterRsp.
|
340
|
+
|
341
|
+
cce集群创建时间。
|
342
|
+
|
343
|
+
:param cce_create_time: The cce_create_time of this ComputingClusterRsp.
|
344
|
+
:type cce_create_time: str
|
345
|
+
"""
|
346
|
+
self._cce_create_time = cce_create_time
|
347
|
+
|
348
|
+
@property
|
349
|
+
def cce_status(self):
|
350
|
+
r"""Gets the cce_status of this ComputingClusterRsp.
|
351
|
+
|
352
|
+
cce集群绑态。
|
353
|
+
|
354
|
+
:return: The cce_status of this ComputingClusterRsp.
|
355
|
+
:rtype: str
|
356
|
+
"""
|
357
|
+
return self._cce_status
|
358
|
+
|
359
|
+
@cce_status.setter
|
360
|
+
def cce_status(self, cce_status):
|
361
|
+
r"""Sets the cce_status of this ComputingClusterRsp.
|
362
|
+
|
363
|
+
cce集群绑态。
|
364
|
+
|
365
|
+
:param cce_status: The cce_status of this ComputingClusterRsp.
|
366
|
+
:type cce_status: str
|
367
|
+
"""
|
368
|
+
self._cce_status = cce_status
|
369
|
+
|
370
|
+
@property
|
371
|
+
def cce_id(self):
|
372
|
+
r"""Gets the cce_id of this ComputingClusterRsp.
|
373
|
+
|
374
|
+
cce集群ID。
|
375
|
+
|
376
|
+
:return: The cce_id of this ComputingClusterRsp.
|
377
|
+
:rtype: str
|
378
|
+
"""
|
379
|
+
return self._cce_id
|
380
|
+
|
381
|
+
@cce_id.setter
|
382
|
+
def cce_id(self, cce_id):
|
383
|
+
r"""Sets the cce_id of this ComputingClusterRsp.
|
384
|
+
|
385
|
+
cce集群ID。
|
386
|
+
|
387
|
+
:param cce_id: The cce_id of this ComputingClusterRsp.
|
388
|
+
:type cce_id: str
|
389
|
+
"""
|
390
|
+
self._cce_id = cce_id
|
391
|
+
|
392
|
+
@property
|
393
|
+
def billing_mode(self):
|
394
|
+
r"""Gets the billing_mode of this ComputingClusterRsp.
|
395
|
+
|
396
|
+
计费模式,prepaid表示包周期,postpaid表示按需。
|
397
|
+
|
398
|
+
:return: The billing_mode of this ComputingClusterRsp.
|
399
|
+
:rtype: str
|
400
|
+
"""
|
401
|
+
return self._billing_mode
|
402
|
+
|
403
|
+
@billing_mode.setter
|
404
|
+
def billing_mode(self, billing_mode):
|
405
|
+
r"""Sets the billing_mode of this ComputingClusterRsp.
|
406
|
+
|
407
|
+
计费模式,prepaid表示包周期,postpaid表示按需。
|
408
|
+
|
409
|
+
:param billing_mode: The billing_mode of this ComputingClusterRsp.
|
410
|
+
:type billing_mode: str
|
411
|
+
"""
|
412
|
+
self._billing_mode = billing_mode
|
413
|
+
|
414
|
+
def to_dict(self):
|
415
|
+
"""Returns the model properties as a dict"""
|
416
|
+
result = {}
|
417
|
+
|
418
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
419
|
+
value = getattr(self, attr)
|
420
|
+
if isinstance(value, list):
|
421
|
+
result[attr] = list(map(
|
422
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
423
|
+
value
|
424
|
+
))
|
425
|
+
elif hasattr(value, "to_dict"):
|
426
|
+
result[attr] = value.to_dict()
|
427
|
+
elif isinstance(value, dict):
|
428
|
+
result[attr] = dict(map(
|
429
|
+
lambda item: (item[0], item[1].to_dict())
|
430
|
+
if hasattr(item[1], "to_dict") else item,
|
431
|
+
value.items()
|
432
|
+
))
|
433
|
+
else:
|
434
|
+
if attr in self.sensitive_list:
|
435
|
+
result[attr] = "****"
|
436
|
+
else:
|
437
|
+
result[attr] = value
|
438
|
+
|
439
|
+
return result
|
440
|
+
|
441
|
+
def to_str(self):
|
442
|
+
"""Returns the string representation of the model"""
|
443
|
+
import simplejson as json
|
444
|
+
if six.PY2:
|
445
|
+
import sys
|
446
|
+
reload(sys)
|
447
|
+
sys.setdefaultencoding("utf-8")
|
448
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
449
|
+
|
450
|
+
def __repr__(self):
|
451
|
+
"""For `print`"""
|
452
|
+
return self.to_str()
|
453
|
+
|
454
|
+
def __eq__(self, other):
|
455
|
+
"""Returns true if both objects are equal"""
|
456
|
+
if not isinstance(other, ComputingClusterRsp):
|
457
|
+
return False
|
458
|
+
|
459
|
+
return self.__dict__ == other.__dict__
|
460
|
+
|
461
|
+
def __ne__(self, other):
|
462
|
+
"""Returns true if both objects are not equal"""
|
463
|
+
return not self == other
|