huaweicloudsdkeihealth 3.1.150__py2.py3-none-any.whl → 3.1.151__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.151.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/RECORD +55 -9
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/top_level.txt +0 -0
@@ -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 ListProjectStatisticsRequest:
|
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"""ListProjectStatisticsRequest
|
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, ListProjectStatisticsRequest):
|
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,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 ListProjectStatisticsResponse(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
|
+
'projects': 'list[ProjectStatistic]',
|
22
|
+
'count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'projects': 'projects',
|
27
|
+
'count': 'count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, projects=None, count=None):
|
31
|
+
r"""ListProjectStatisticsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param projects: 空间统计信息。
|
36
|
+
:type projects: list[:class:`huaweicloudsdkeihealth.v1.ProjectStatistic`]
|
37
|
+
:param count: 空间总数。
|
38
|
+
:type count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListProjectStatisticsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._projects = None
|
44
|
+
self._count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if projects is not None:
|
48
|
+
self.projects = projects
|
49
|
+
if count is not None:
|
50
|
+
self.count = count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def projects(self):
|
54
|
+
r"""Gets the projects of this ListProjectStatisticsResponse.
|
55
|
+
|
56
|
+
空间统计信息。
|
57
|
+
|
58
|
+
:return: The projects of this ListProjectStatisticsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.ProjectStatistic`]
|
60
|
+
"""
|
61
|
+
return self._projects
|
62
|
+
|
63
|
+
@projects.setter
|
64
|
+
def projects(self, projects):
|
65
|
+
r"""Sets the projects of this ListProjectStatisticsResponse.
|
66
|
+
|
67
|
+
空间统计信息。
|
68
|
+
|
69
|
+
:param projects: The projects of this ListProjectStatisticsResponse.
|
70
|
+
:type projects: list[:class:`huaweicloudsdkeihealth.v1.ProjectStatistic`]
|
71
|
+
"""
|
72
|
+
self._projects = projects
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self):
|
76
|
+
r"""Gets the count of this ListProjectStatisticsResponse.
|
77
|
+
|
78
|
+
空间总数。
|
79
|
+
|
80
|
+
:return: The count of this ListProjectStatisticsResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._count
|
84
|
+
|
85
|
+
@count.setter
|
86
|
+
def count(self, count):
|
87
|
+
r"""Sets the count of this ListProjectStatisticsResponse.
|
88
|
+
|
89
|
+
空间总数。
|
90
|
+
|
91
|
+
:param count: The count of this ListProjectStatisticsResponse.
|
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, ListProjectStatisticsResponse):
|
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 ListSfsTurbosRequest:
|
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"""ListSfsTurbosRequest
|
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 ListSfsTurbosRequest.
|
54
|
+
|
55
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
56
|
+
|
57
|
+
:return: The limit of this ListSfsTurbosRequest.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._limit
|
61
|
+
|
62
|
+
@limit.setter
|
63
|
+
def limit(self, limit):
|
64
|
+
r"""Sets the limit of this ListSfsTurbosRequest.
|
65
|
+
|
66
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
67
|
+
|
68
|
+
:param limit: The limit of this ListSfsTurbosRequest.
|
69
|
+
:type limit: int
|
70
|
+
"""
|
71
|
+
self._limit = limit
|
72
|
+
|
73
|
+
@property
|
74
|
+
def offset(self):
|
75
|
+
r"""Gets the offset of this ListSfsTurbosRequest.
|
76
|
+
|
77
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
78
|
+
|
79
|
+
:return: The offset of this ListSfsTurbosRequest.
|
80
|
+
:rtype: int
|
81
|
+
"""
|
82
|
+
return self._offset
|
83
|
+
|
84
|
+
@offset.setter
|
85
|
+
def offset(self, offset):
|
86
|
+
r"""Sets the offset of this ListSfsTurbosRequest.
|
87
|
+
|
88
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
89
|
+
|
90
|
+
:param offset: The offset of this ListSfsTurbosRequest.
|
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, ListSfsTurbosRequest):
|
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 ListSfsTurbosResponse(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
|
+
'sfs_turbos': 'list[SfsTurboRsp]',
|
22
|
+
'count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'sfs_turbos': 'sfs_turbos',
|
27
|
+
'count': 'count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, sfs_turbos=None, count=None):
|
31
|
+
r"""ListSfsTurbosResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param sfs_turbos: sfs-turbo资源列表。
|
36
|
+
:type sfs_turbos: list[:class:`huaweicloudsdkeihealth.v1.SfsTurboRsp`]
|
37
|
+
:param count: sfs-turbo资源总数。
|
38
|
+
:type count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListSfsTurbosResponse, self).__init__()
|
42
|
+
|
43
|
+
self._sfs_turbos = None
|
44
|
+
self._count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if sfs_turbos is not None:
|
48
|
+
self.sfs_turbos = sfs_turbos
|
49
|
+
if count is not None:
|
50
|
+
self.count = count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def sfs_turbos(self):
|
54
|
+
r"""Gets the sfs_turbos of this ListSfsTurbosResponse.
|
55
|
+
|
56
|
+
sfs-turbo资源列表。
|
57
|
+
|
58
|
+
:return: The sfs_turbos of this ListSfsTurbosResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.SfsTurboRsp`]
|
60
|
+
"""
|
61
|
+
return self._sfs_turbos
|
62
|
+
|
63
|
+
@sfs_turbos.setter
|
64
|
+
def sfs_turbos(self, sfs_turbos):
|
65
|
+
r"""Sets the sfs_turbos of this ListSfsTurbosResponse.
|
66
|
+
|
67
|
+
sfs-turbo资源列表。
|
68
|
+
|
69
|
+
:param sfs_turbos: The sfs_turbos of this ListSfsTurbosResponse.
|
70
|
+
:type sfs_turbos: list[:class:`huaweicloudsdkeihealth.v1.SfsTurboRsp`]
|
71
|
+
"""
|
72
|
+
self._sfs_turbos = sfs_turbos
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self):
|
76
|
+
r"""Gets the count of this ListSfsTurbosResponse.
|
77
|
+
|
78
|
+
sfs-turbo资源总数。
|
79
|
+
|
80
|
+
:return: The count of this ListSfsTurbosResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._count
|
84
|
+
|
85
|
+
@count.setter
|
86
|
+
def count(self, count):
|
87
|
+
r"""Sets the count of this ListSfsTurbosResponse.
|
88
|
+
|
89
|
+
sfs-turbo资源总数。
|
90
|
+
|
91
|
+
:param count: The count of this ListSfsTurbosResponse.
|
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, ListSfsTurbosResponse):
|
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
|