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,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class IamRoleDto:
|
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
|
+
'display_name': 'str',
|
22
|
+
'type': 'str',
|
23
|
+
'description': 'str',
|
24
|
+
'actions': 'list[str]'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'id': 'id',
|
29
|
+
'display_name': 'display_name',
|
30
|
+
'type': 'type',
|
31
|
+
'description': 'description',
|
32
|
+
'actions': 'actions'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, id=None, display_name=None, type=None, description=None, actions=None):
|
36
|
+
r"""IamRoleDto
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param id: 权限ID。
|
41
|
+
:type id: str
|
42
|
+
:param display_name: 权限显示名称。
|
43
|
+
:type display_name: str
|
44
|
+
:param type: 权限类型:AX为全局级角色,XA为项目级角色。
|
45
|
+
:type type: str
|
46
|
+
:param description: 权限描述。
|
47
|
+
:type description: str
|
48
|
+
:param actions: 授权项,指对资源的具体操作权限。
|
49
|
+
:type actions: list[str]
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._id = None
|
55
|
+
self._display_name = None
|
56
|
+
self._type = None
|
57
|
+
self._description = None
|
58
|
+
self._actions = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if id is not None:
|
62
|
+
self.id = id
|
63
|
+
if display_name is not None:
|
64
|
+
self.display_name = display_name
|
65
|
+
if type is not None:
|
66
|
+
self.type = type
|
67
|
+
if description is not None:
|
68
|
+
self.description = description
|
69
|
+
if actions is not None:
|
70
|
+
self.actions = actions
|
71
|
+
|
72
|
+
@property
|
73
|
+
def id(self):
|
74
|
+
r"""Gets the id of this IamRoleDto.
|
75
|
+
|
76
|
+
权限ID。
|
77
|
+
|
78
|
+
:return: The id of this IamRoleDto.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._id
|
82
|
+
|
83
|
+
@id.setter
|
84
|
+
def id(self, id):
|
85
|
+
r"""Sets the id of this IamRoleDto.
|
86
|
+
|
87
|
+
权限ID。
|
88
|
+
|
89
|
+
:param id: The id of this IamRoleDto.
|
90
|
+
:type id: str
|
91
|
+
"""
|
92
|
+
self._id = id
|
93
|
+
|
94
|
+
@property
|
95
|
+
def display_name(self):
|
96
|
+
r"""Gets the display_name of this IamRoleDto.
|
97
|
+
|
98
|
+
权限显示名称。
|
99
|
+
|
100
|
+
:return: The display_name of this IamRoleDto.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._display_name
|
104
|
+
|
105
|
+
@display_name.setter
|
106
|
+
def display_name(self, display_name):
|
107
|
+
r"""Sets the display_name of this IamRoleDto.
|
108
|
+
|
109
|
+
权限显示名称。
|
110
|
+
|
111
|
+
:param display_name: The display_name of this IamRoleDto.
|
112
|
+
:type display_name: str
|
113
|
+
"""
|
114
|
+
self._display_name = display_name
|
115
|
+
|
116
|
+
@property
|
117
|
+
def type(self):
|
118
|
+
r"""Gets the type of this IamRoleDto.
|
119
|
+
|
120
|
+
权限类型:AX为全局级角色,XA为项目级角色。
|
121
|
+
|
122
|
+
:return: The type of this IamRoleDto.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._type
|
126
|
+
|
127
|
+
@type.setter
|
128
|
+
def type(self, type):
|
129
|
+
r"""Sets the type of this IamRoleDto.
|
130
|
+
|
131
|
+
权限类型:AX为全局级角色,XA为项目级角色。
|
132
|
+
|
133
|
+
:param type: The type of this IamRoleDto.
|
134
|
+
:type type: str
|
135
|
+
"""
|
136
|
+
self._type = type
|
137
|
+
|
138
|
+
@property
|
139
|
+
def description(self):
|
140
|
+
r"""Gets the description of this IamRoleDto.
|
141
|
+
|
142
|
+
权限描述。
|
143
|
+
|
144
|
+
:return: The description of this IamRoleDto.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._description
|
148
|
+
|
149
|
+
@description.setter
|
150
|
+
def description(self, description):
|
151
|
+
r"""Sets the description of this IamRoleDto.
|
152
|
+
|
153
|
+
权限描述。
|
154
|
+
|
155
|
+
:param description: The description of this IamRoleDto.
|
156
|
+
:type description: str
|
157
|
+
"""
|
158
|
+
self._description = description
|
159
|
+
|
160
|
+
@property
|
161
|
+
def actions(self):
|
162
|
+
r"""Gets the actions of this IamRoleDto.
|
163
|
+
|
164
|
+
授权项,指对资源的具体操作权限。
|
165
|
+
|
166
|
+
:return: The actions of this IamRoleDto.
|
167
|
+
:rtype: list[str]
|
168
|
+
"""
|
169
|
+
return self._actions
|
170
|
+
|
171
|
+
@actions.setter
|
172
|
+
def actions(self, actions):
|
173
|
+
r"""Sets the actions of this IamRoleDto.
|
174
|
+
|
175
|
+
授权项,指对资源的具体操作权限。
|
176
|
+
|
177
|
+
:param actions: The actions of this IamRoleDto.
|
178
|
+
:type actions: list[str]
|
179
|
+
"""
|
180
|
+
self._actions = actions
|
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, IamRoleDto):
|
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,84 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InitializePlatformRequest:
|
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
|
+
}
|
21
|
+
|
22
|
+
attribute_map = {
|
23
|
+
}
|
24
|
+
|
25
|
+
def __init__(self):
|
26
|
+
r"""InitializePlatformRequest
|
27
|
+
|
28
|
+
The model defined in huaweicloud sdk
|
29
|
+
|
30
|
+
"""
|
31
|
+
|
32
|
+
|
33
|
+
self.discriminator = None
|
34
|
+
|
35
|
+
def to_dict(self):
|
36
|
+
"""Returns the model properties as a dict"""
|
37
|
+
result = {}
|
38
|
+
|
39
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
40
|
+
value = getattr(self, attr)
|
41
|
+
if isinstance(value, list):
|
42
|
+
result[attr] = list(map(
|
43
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
44
|
+
value
|
45
|
+
))
|
46
|
+
elif hasattr(value, "to_dict"):
|
47
|
+
result[attr] = value.to_dict()
|
48
|
+
elif isinstance(value, dict):
|
49
|
+
result[attr] = dict(map(
|
50
|
+
lambda item: (item[0], item[1].to_dict())
|
51
|
+
if hasattr(item[1], "to_dict") else item,
|
52
|
+
value.items()
|
53
|
+
))
|
54
|
+
else:
|
55
|
+
if attr in self.sensitive_list:
|
56
|
+
result[attr] = "****"
|
57
|
+
else:
|
58
|
+
result[attr] = value
|
59
|
+
|
60
|
+
return result
|
61
|
+
|
62
|
+
def to_str(self):
|
63
|
+
"""Returns the string representation of the model"""
|
64
|
+
import simplejson as json
|
65
|
+
if six.PY2:
|
66
|
+
import sys
|
67
|
+
reload(sys)
|
68
|
+
sys.setdefaultencoding("utf-8")
|
69
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
70
|
+
|
71
|
+
def __repr__(self):
|
72
|
+
"""For `print`"""
|
73
|
+
return self.to_str()
|
74
|
+
|
75
|
+
def __eq__(self, other):
|
76
|
+
"""Returns true if both objects are equal"""
|
77
|
+
if not isinstance(other, InitializePlatformRequest):
|
78
|
+
return False
|
79
|
+
|
80
|
+
return self.__dict__ == other.__dict__
|
81
|
+
|
82
|
+
def __ne__(self, other):
|
83
|
+
"""Returns true if both objects are not equal"""
|
84
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
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 InitializePlatformResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""InitializePlatformResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(InitializePlatformResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, InitializePlatformResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -0,0 +1,169 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InstallStep:
|
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
|
+
'name': 'str',
|
21
|
+
'status': 'StepStatus',
|
22
|
+
'failed_reason': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'name': 'name',
|
27
|
+
'status': 'status',
|
28
|
+
'failed_reason': 'failed_reason'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, name=None, status=None, failed_reason=None):
|
32
|
+
r"""InstallStep
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param name: 安装步骤。
|
37
|
+
:type name: str
|
38
|
+
:param status:
|
39
|
+
:type status: :class:`huaweicloudsdkeihealth.v1.StepStatus`
|
40
|
+
:param failed_reason: 失败原因。
|
41
|
+
:type failed_reason: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._name = None
|
47
|
+
self._status = None
|
48
|
+
self._failed_reason = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if name is not None:
|
52
|
+
self.name = name
|
53
|
+
if status is not None:
|
54
|
+
self.status = status
|
55
|
+
if failed_reason is not None:
|
56
|
+
self.failed_reason = failed_reason
|
57
|
+
|
58
|
+
@property
|
59
|
+
def name(self):
|
60
|
+
r"""Gets the name of this InstallStep.
|
61
|
+
|
62
|
+
安装步骤。
|
63
|
+
|
64
|
+
:return: The name of this InstallStep.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._name
|
68
|
+
|
69
|
+
@name.setter
|
70
|
+
def name(self, name):
|
71
|
+
r"""Sets the name of this InstallStep.
|
72
|
+
|
73
|
+
安装步骤。
|
74
|
+
|
75
|
+
:param name: The name of this InstallStep.
|
76
|
+
:type name: str
|
77
|
+
"""
|
78
|
+
self._name = name
|
79
|
+
|
80
|
+
@property
|
81
|
+
def status(self):
|
82
|
+
r"""Gets the status of this InstallStep.
|
83
|
+
|
84
|
+
:return: The status of this InstallStep.
|
85
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.StepStatus`
|
86
|
+
"""
|
87
|
+
return self._status
|
88
|
+
|
89
|
+
@status.setter
|
90
|
+
def status(self, status):
|
91
|
+
r"""Sets the status of this InstallStep.
|
92
|
+
|
93
|
+
:param status: The status of this InstallStep.
|
94
|
+
:type status: :class:`huaweicloudsdkeihealth.v1.StepStatus`
|
95
|
+
"""
|
96
|
+
self._status = status
|
97
|
+
|
98
|
+
@property
|
99
|
+
def failed_reason(self):
|
100
|
+
r"""Gets the failed_reason of this InstallStep.
|
101
|
+
|
102
|
+
失败原因。
|
103
|
+
|
104
|
+
:return: The failed_reason of this InstallStep.
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._failed_reason
|
108
|
+
|
109
|
+
@failed_reason.setter
|
110
|
+
def failed_reason(self, failed_reason):
|
111
|
+
r"""Sets the failed_reason of this InstallStep.
|
112
|
+
|
113
|
+
失败原因。
|
114
|
+
|
115
|
+
:param failed_reason: The failed_reason of this InstallStep.
|
116
|
+
:type failed_reason: str
|
117
|
+
"""
|
118
|
+
self._failed_reason = failed_reason
|
119
|
+
|
120
|
+
def to_dict(self):
|
121
|
+
"""Returns the model properties as a dict"""
|
122
|
+
result = {}
|
123
|
+
|
124
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
125
|
+
value = getattr(self, attr)
|
126
|
+
if isinstance(value, list):
|
127
|
+
result[attr] = list(map(
|
128
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
129
|
+
value
|
130
|
+
))
|
131
|
+
elif hasattr(value, "to_dict"):
|
132
|
+
result[attr] = value.to_dict()
|
133
|
+
elif isinstance(value, dict):
|
134
|
+
result[attr] = dict(map(
|
135
|
+
lambda item: (item[0], item[1].to_dict())
|
136
|
+
if hasattr(item[1], "to_dict") else item,
|
137
|
+
value.items()
|
138
|
+
))
|
139
|
+
else:
|
140
|
+
if attr in self.sensitive_list:
|
141
|
+
result[attr] = "****"
|
142
|
+
else:
|
143
|
+
result[attr] = value
|
144
|
+
|
145
|
+
return result
|
146
|
+
|
147
|
+
def to_str(self):
|
148
|
+
"""Returns the string representation of the model"""
|
149
|
+
import simplejson as json
|
150
|
+
if six.PY2:
|
151
|
+
import sys
|
152
|
+
reload(sys)
|
153
|
+
sys.setdefaultencoding("utf-8")
|
154
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
155
|
+
|
156
|
+
def __repr__(self):
|
157
|
+
"""For `print`"""
|
158
|
+
return self.to_str()
|
159
|
+
|
160
|
+
def __eq__(self, other):
|
161
|
+
"""Returns true if both objects are equal"""
|
162
|
+
if not isinstance(other, InstallStep):
|
163
|
+
return False
|
164
|
+
|
165
|
+
return self.__dict__ == other.__dict__
|
166
|
+
|
167
|
+
def __ne__(self, other):
|
168
|
+
"""Returns true if both objects are not equal"""
|
169
|
+
return not self == other
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListCceClusterRequest:
|
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
|
+
}
|
21
|
+
|
22
|
+
attribute_map = {
|
23
|
+
}
|
24
|
+
|
25
|
+
def __init__(self):
|
26
|
+
r"""ListCceClusterRequest
|
27
|
+
|
28
|
+
The model defined in huaweicloud sdk
|
29
|
+
|
30
|
+
"""
|
31
|
+
|
32
|
+
|
33
|
+
self.discriminator = None
|
34
|
+
|
35
|
+
def to_dict(self):
|
36
|
+
"""Returns the model properties as a dict"""
|
37
|
+
result = {}
|
38
|
+
|
39
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
40
|
+
value = getattr(self, attr)
|
41
|
+
if isinstance(value, list):
|
42
|
+
result[attr] = list(map(
|
43
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
44
|
+
value
|
45
|
+
))
|
46
|
+
elif hasattr(value, "to_dict"):
|
47
|
+
result[attr] = value.to_dict()
|
48
|
+
elif isinstance(value, dict):
|
49
|
+
result[attr] = dict(map(
|
50
|
+
lambda item: (item[0], item[1].to_dict())
|
51
|
+
if hasattr(item[1], "to_dict") else item,
|
52
|
+
value.items()
|
53
|
+
))
|
54
|
+
else:
|
55
|
+
if attr in self.sensitive_list:
|
56
|
+
result[attr] = "****"
|
57
|
+
else:
|
58
|
+
result[attr] = value
|
59
|
+
|
60
|
+
return result
|
61
|
+
|
62
|
+
def to_str(self):
|
63
|
+
"""Returns the string representation of the model"""
|
64
|
+
import simplejson as json
|
65
|
+
if six.PY2:
|
66
|
+
import sys
|
67
|
+
reload(sys)
|
68
|
+
sys.setdefaultencoding("utf-8")
|
69
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
70
|
+
|
71
|
+
def __repr__(self):
|
72
|
+
"""For `print`"""
|
73
|
+
return self.to_str()
|
74
|
+
|
75
|
+
def __eq__(self, other):
|
76
|
+
"""Returns true if both objects are equal"""
|
77
|
+
if not isinstance(other, ListCceClusterRequest):
|
78
|
+
return False
|
79
|
+
|
80
|
+
return self.__dict__ == other.__dict__
|
81
|
+
|
82
|
+
def __ne__(self, other):
|
83
|
+
"""Returns true if both objects are not equal"""
|
84
|
+
return not self == other
|