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,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListCceClusterResponse(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
|
+
'clusters': 'list[CceClusterRsp]',
|
22
|
+
'count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'clusters': 'clusters',
|
27
|
+
'count': 'count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, clusters=None, count=None):
|
31
|
+
r"""ListCceClusterResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param clusters: CCE集群列表。
|
36
|
+
:type clusters: list[:class:`huaweicloudsdkeihealth.v1.CceClusterRsp`]
|
37
|
+
:param count: CCE集群集群总数。
|
38
|
+
:type count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListCceClusterResponse, self).__init__()
|
42
|
+
|
43
|
+
self._clusters = None
|
44
|
+
self._count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if clusters is not None:
|
48
|
+
self.clusters = clusters
|
49
|
+
if count is not None:
|
50
|
+
self.count = count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def clusters(self):
|
54
|
+
r"""Gets the clusters of this ListCceClusterResponse.
|
55
|
+
|
56
|
+
CCE集群列表。
|
57
|
+
|
58
|
+
:return: The clusters of this ListCceClusterResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.CceClusterRsp`]
|
60
|
+
"""
|
61
|
+
return self._clusters
|
62
|
+
|
63
|
+
@clusters.setter
|
64
|
+
def clusters(self, clusters):
|
65
|
+
r"""Sets the clusters of this ListCceClusterResponse.
|
66
|
+
|
67
|
+
CCE集群列表。
|
68
|
+
|
69
|
+
:param clusters: The clusters of this ListCceClusterResponse.
|
70
|
+
:type clusters: list[:class:`huaweicloudsdkeihealth.v1.CceClusterRsp`]
|
71
|
+
"""
|
72
|
+
self._clusters = clusters
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self):
|
76
|
+
r"""Gets the count of this ListCceClusterResponse.
|
77
|
+
|
78
|
+
CCE集群集群总数。
|
79
|
+
|
80
|
+
:return: The count of this ListCceClusterResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._count
|
84
|
+
|
85
|
+
@count.setter
|
86
|
+
def count(self, count):
|
87
|
+
r"""Sets the count of this ListCceClusterResponse.
|
88
|
+
|
89
|
+
CCE集群集群总数。
|
90
|
+
|
91
|
+
:param count: The count of this ListCceClusterResponse.
|
92
|
+
:type count: int
|
93
|
+
"""
|
94
|
+
self._count = count
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListCceClusterResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListClusterInstallStepRequest:
|
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
|
+
'cluster_id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'cluster_id': 'cluster_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, cluster_id=None):
|
28
|
+
r"""ListClusterInstallStepRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param cluster_id: 计算集群ID。
|
33
|
+
:type cluster_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._cluster_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.cluster_id = cluster_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def cluster_id(self):
|
45
|
+
r"""Gets the cluster_id of this ListClusterInstallStepRequest.
|
46
|
+
|
47
|
+
计算集群ID。
|
48
|
+
|
49
|
+
:return: The cluster_id of this ListClusterInstallStepRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._cluster_id
|
53
|
+
|
54
|
+
@cluster_id.setter
|
55
|
+
def cluster_id(self, cluster_id):
|
56
|
+
r"""Sets the cluster_id of this ListClusterInstallStepRequest.
|
57
|
+
|
58
|
+
计算集群ID。
|
59
|
+
|
60
|
+
:param cluster_id: The cluster_id of this ListClusterInstallStepRequest.
|
61
|
+
:type cluster_id: str
|
62
|
+
"""
|
63
|
+
self._cluster_id = cluster_id
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, ListClusterInstallStepRequest):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListClusterInstallStepResponse(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
|
+
'installs': 'list[InstallStep]',
|
22
|
+
'uninstalls': 'list[InstallStep]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'installs': 'installs',
|
27
|
+
'uninstalls': 'uninstalls'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, installs=None, uninstalls=None):
|
31
|
+
r"""ListClusterInstallStepResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param installs: 安装步骤详情列表。
|
36
|
+
:type installs: list[:class:`huaweicloudsdkeihealth.v1.InstallStep`]
|
37
|
+
:param uninstalls: 卸载步骤详情列表。
|
38
|
+
:type uninstalls: list[:class:`huaweicloudsdkeihealth.v1.InstallStep`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListClusterInstallStepResponse, self).__init__()
|
42
|
+
|
43
|
+
self._installs = None
|
44
|
+
self._uninstalls = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if installs is not None:
|
48
|
+
self.installs = installs
|
49
|
+
if uninstalls is not None:
|
50
|
+
self.uninstalls = uninstalls
|
51
|
+
|
52
|
+
@property
|
53
|
+
def installs(self):
|
54
|
+
r"""Gets the installs of this ListClusterInstallStepResponse.
|
55
|
+
|
56
|
+
安装步骤详情列表。
|
57
|
+
|
58
|
+
:return: The installs of this ListClusterInstallStepResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.InstallStep`]
|
60
|
+
"""
|
61
|
+
return self._installs
|
62
|
+
|
63
|
+
@installs.setter
|
64
|
+
def installs(self, installs):
|
65
|
+
r"""Sets the installs of this ListClusterInstallStepResponse.
|
66
|
+
|
67
|
+
安装步骤详情列表。
|
68
|
+
|
69
|
+
:param installs: The installs of this ListClusterInstallStepResponse.
|
70
|
+
:type installs: list[:class:`huaweicloudsdkeihealth.v1.InstallStep`]
|
71
|
+
"""
|
72
|
+
self._installs = installs
|
73
|
+
|
74
|
+
@property
|
75
|
+
def uninstalls(self):
|
76
|
+
r"""Gets the uninstalls of this ListClusterInstallStepResponse.
|
77
|
+
|
78
|
+
卸载步骤详情列表。
|
79
|
+
|
80
|
+
:return: The uninstalls of this ListClusterInstallStepResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.InstallStep`]
|
82
|
+
"""
|
83
|
+
return self._uninstalls
|
84
|
+
|
85
|
+
@uninstalls.setter
|
86
|
+
def uninstalls(self, uninstalls):
|
87
|
+
r"""Sets the uninstalls of this ListClusterInstallStepResponse.
|
88
|
+
|
89
|
+
卸载步骤详情列表。
|
90
|
+
|
91
|
+
:param uninstalls: The uninstalls of this ListClusterInstallStepResponse.
|
92
|
+
:type uninstalls: list[:class:`huaweicloudsdkeihealth.v1.InstallStep`]
|
93
|
+
"""
|
94
|
+
self._uninstalls = uninstalls
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListClusterInstallStepResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListComputingClusterRequest:
|
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
|
+
'limit': 'int',
|
21
|
+
'offset': 'int'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'limit': 'limit',
|
26
|
+
'offset': 'offset'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, limit=None, offset=None):
|
30
|
+
r"""ListComputingClusterRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
35
|
+
:type limit: int
|
36
|
+
:param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
37
|
+
:type offset: int
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._limit = None
|
43
|
+
self._offset = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if limit is not None:
|
47
|
+
self.limit = limit
|
48
|
+
if offset is not None:
|
49
|
+
self.offset = offset
|
50
|
+
|
51
|
+
@property
|
52
|
+
def limit(self):
|
53
|
+
r"""Gets the limit of this ListComputingClusterRequest.
|
54
|
+
|
55
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
56
|
+
|
57
|
+
:return: The limit of this ListComputingClusterRequest.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._limit
|
61
|
+
|
62
|
+
@limit.setter
|
63
|
+
def limit(self, limit):
|
64
|
+
r"""Sets the limit of this ListComputingClusterRequest.
|
65
|
+
|
66
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
67
|
+
|
68
|
+
:param limit: The limit of this ListComputingClusterRequest.
|
69
|
+
:type limit: int
|
70
|
+
"""
|
71
|
+
self._limit = limit
|
72
|
+
|
73
|
+
@property
|
74
|
+
def offset(self):
|
75
|
+
r"""Gets the offset of this ListComputingClusterRequest.
|
76
|
+
|
77
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
78
|
+
|
79
|
+
:return: The offset of this ListComputingClusterRequest.
|
80
|
+
:rtype: int
|
81
|
+
"""
|
82
|
+
return self._offset
|
83
|
+
|
84
|
+
@offset.setter
|
85
|
+
def offset(self, offset):
|
86
|
+
r"""Sets the offset of this ListComputingClusterRequest.
|
87
|
+
|
88
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
89
|
+
|
90
|
+
:param offset: The offset of this ListComputingClusterRequest.
|
91
|
+
:type offset: int
|
92
|
+
"""
|
93
|
+
self._offset = offset
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, ListComputingClusterRequest):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListComputingClusterResponse(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
|
+
'clusters': 'list[ComputingClusterRsp]',
|
22
|
+
'count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'clusters': 'clusters',
|
27
|
+
'count': 'count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, clusters=None, count=None):
|
31
|
+
r"""ListComputingClusterResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param clusters: 计算集群列表。
|
36
|
+
:type clusters: list[:class:`huaweicloudsdkeihealth.v1.ComputingClusterRsp`]
|
37
|
+
:param count: 计算集群总数。
|
38
|
+
:type count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListComputingClusterResponse, self).__init__()
|
42
|
+
|
43
|
+
self._clusters = None
|
44
|
+
self._count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if clusters is not None:
|
48
|
+
self.clusters = clusters
|
49
|
+
if count is not None:
|
50
|
+
self.count = count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def clusters(self):
|
54
|
+
r"""Gets the clusters of this ListComputingClusterResponse.
|
55
|
+
|
56
|
+
计算集群列表。
|
57
|
+
|
58
|
+
:return: The clusters of this ListComputingClusterResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.ComputingClusterRsp`]
|
60
|
+
"""
|
61
|
+
return self._clusters
|
62
|
+
|
63
|
+
@clusters.setter
|
64
|
+
def clusters(self, clusters):
|
65
|
+
r"""Sets the clusters of this ListComputingClusterResponse.
|
66
|
+
|
67
|
+
计算集群列表。
|
68
|
+
|
69
|
+
:param clusters: The clusters of this ListComputingClusterResponse.
|
70
|
+
:type clusters: list[:class:`huaweicloudsdkeihealth.v1.ComputingClusterRsp`]
|
71
|
+
"""
|
72
|
+
self._clusters = clusters
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self):
|
76
|
+
r"""Gets the count of this ListComputingClusterResponse.
|
77
|
+
|
78
|
+
计算集群总数。
|
79
|
+
|
80
|
+
:return: The count of this ListComputingClusterResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._count
|
84
|
+
|
85
|
+
@count.setter
|
86
|
+
def count(self, count):
|
87
|
+
r"""Sets the count of this ListComputingClusterResponse.
|
88
|
+
|
89
|
+
计算集群总数。
|
90
|
+
|
91
|
+
:param count: The count of this ListComputingClusterResponse.
|
92
|
+
:type count: int
|
93
|
+
"""
|
94
|
+
self._count = count
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListComputingClusterResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|