huaweicloudsdkeihealth 3.1.85__py2.py3-none-any.whl → 3.1.132__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 +100 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +5335 -3295
- huaweicloudsdkeihealth/v1/eihealth_client.py +5335 -3295
- huaweicloudsdkeihealth/v1/model/__init__.py +100 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_req.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
- huaweicloudsdkeihealth/v1/model/base_model_dto.py +202 -0
- huaweicloudsdkeihealth/v1/model/bind_site_dto.py +30 -1
- huaweicloudsdkeihealth/v1/model/bound_box_dto.py +171 -0
- huaweicloudsdkeihealth/v1/model/clustering_drug_file.py +197 -0
- huaweicloudsdkeihealth/v1/model/clustering_file_source.py +89 -0
- huaweicloudsdkeihealth/v1/model/convert_file.py +197 -0
- huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
- huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
- huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py +134 -0
- huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py +166 -0
- huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
- huaweicloudsdkeihealth/v1/model/create_dock_job_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_favorite_req.py +254 -0
- huaweicloudsdkeihealth/v1/model/create_favorite_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_favorite_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_fep_job_req.py +30 -1
- huaweicloudsdkeihealth/v1/model/create_gen_job_req.py +338 -0
- huaweicloudsdkeihealth/v1/model/create_gen_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_gen_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_model_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py +163 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +59 -1
- huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py +184 -0
- huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
- huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
- huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_favorite_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/delete_favorite_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
- huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
- huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
- huaweicloudsdkeihealth/v1/model/fasta_receptor.py +197 -0
- huaweicloudsdkeihealth/v1/model/favorite_dto.py +376 -0
- huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
- huaweicloudsdkeihealth/v1/model/interaction.py +166 -0
- huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py +167 -0
- huaweicloudsdkeihealth/v1/model/interaction_type.py +91 -0
- huaweicloudsdkeihealth/v1/model/job_result.py +32 -3
- huaweicloudsdkeihealth/v1/model/list_base_model_request.py +202 -0
- huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
- huaweicloudsdkeihealth/v1/model/list_favorite_request.py +433 -0
- huaweicloudsdkeihealth/v1/model/list_favorite_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/md_param.py +169 -0
- huaweicloudsdkeihealth/v1/model/md_step_param.py +202 -0
- huaweicloudsdkeihealth/v1/model/model_dto.py +61 -3
- huaweicloudsdkeihealth/v1/model/optimization_mode.py +1 -0
- huaweicloudsdkeihealth/v1/model/pocket_fragment.py +30 -1
- huaweicloudsdkeihealth/v1/model/receptor_dto.py +280 -0
- huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py +168 -0
- huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_req.py +166 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_response.py +112 -0
- huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
- huaweicloudsdkeihealth/v1/model/show_admet_job_response.py +57 -3
- huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py +191 -0
- huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py +170 -0
- huaweicloudsdkeihealth/v1/model/show_docking_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_fep_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_gen_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +199 -0
- huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +55 -1
- huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
- huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py +187 -0
- huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py +28 -3
- huaweicloudsdkeihealth/v1/model/strong_constraint_type.py +1 -0
- huaweicloudsdkeihealth/v1/model/target_opt_ligand.py +139 -0
- huaweicloudsdkeihealth/v1/model/target_opt_receptor.py +255 -0
- huaweicloudsdkeihealth/v1/model/task_progress.py +115 -0
- huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
- huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
- huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py +28 -3
- huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
- {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/RECORD +134 -34
- {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,167 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InteractionConstraintDto:
|
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
|
+
'interactions': 'list[Interaction]',
|
21
|
+
'exclusive': 'bool',
|
22
|
+
'operator': 'OperatorType'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'interactions': 'interactions',
|
27
|
+
'exclusive': 'exclusive',
|
28
|
+
'operator': 'operator'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, interactions=None, exclusive=None, operator=None):
|
32
|
+
"""InteractionConstraintDto
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param interactions: 相互作用力列表
|
37
|
+
:type interactions: list[:class:`huaweicloudsdkeihealth.v1.Interaction`]
|
38
|
+
:param exclusive: 是否排除指定的约束作用力
|
39
|
+
:type exclusive: bool
|
40
|
+
:param operator:
|
41
|
+
:type operator: :class:`huaweicloudsdkeihealth.v1.OperatorType`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._interactions = None
|
47
|
+
self._exclusive = None
|
48
|
+
self._operator = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.interactions = interactions
|
52
|
+
self.exclusive = exclusive
|
53
|
+
if operator is not None:
|
54
|
+
self.operator = operator
|
55
|
+
|
56
|
+
@property
|
57
|
+
def interactions(self):
|
58
|
+
"""Gets the interactions of this InteractionConstraintDto.
|
59
|
+
|
60
|
+
相互作用力列表
|
61
|
+
|
62
|
+
:return: The interactions of this InteractionConstraintDto.
|
63
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.Interaction`]
|
64
|
+
"""
|
65
|
+
return self._interactions
|
66
|
+
|
67
|
+
@interactions.setter
|
68
|
+
def interactions(self, interactions):
|
69
|
+
"""Sets the interactions of this InteractionConstraintDto.
|
70
|
+
|
71
|
+
相互作用力列表
|
72
|
+
|
73
|
+
:param interactions: The interactions of this InteractionConstraintDto.
|
74
|
+
:type interactions: list[:class:`huaweicloudsdkeihealth.v1.Interaction`]
|
75
|
+
"""
|
76
|
+
self._interactions = interactions
|
77
|
+
|
78
|
+
@property
|
79
|
+
def exclusive(self):
|
80
|
+
"""Gets the exclusive of this InteractionConstraintDto.
|
81
|
+
|
82
|
+
是否排除指定的约束作用力
|
83
|
+
|
84
|
+
:return: The exclusive of this InteractionConstraintDto.
|
85
|
+
:rtype: bool
|
86
|
+
"""
|
87
|
+
return self._exclusive
|
88
|
+
|
89
|
+
@exclusive.setter
|
90
|
+
def exclusive(self, exclusive):
|
91
|
+
"""Sets the exclusive of this InteractionConstraintDto.
|
92
|
+
|
93
|
+
是否排除指定的约束作用力
|
94
|
+
|
95
|
+
:param exclusive: The exclusive of this InteractionConstraintDto.
|
96
|
+
:type exclusive: bool
|
97
|
+
"""
|
98
|
+
self._exclusive = exclusive
|
99
|
+
|
100
|
+
@property
|
101
|
+
def operator(self):
|
102
|
+
"""Gets the operator of this InteractionConstraintDto.
|
103
|
+
|
104
|
+
:return: The operator of this InteractionConstraintDto.
|
105
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.OperatorType`
|
106
|
+
"""
|
107
|
+
return self._operator
|
108
|
+
|
109
|
+
@operator.setter
|
110
|
+
def operator(self, operator):
|
111
|
+
"""Sets the operator of this InteractionConstraintDto.
|
112
|
+
|
113
|
+
:param operator: The operator of this InteractionConstraintDto.
|
114
|
+
:type operator: :class:`huaweicloudsdkeihealth.v1.OperatorType`
|
115
|
+
"""
|
116
|
+
self._operator = operator
|
117
|
+
|
118
|
+
def to_dict(self):
|
119
|
+
"""Returns the model properties as a dict"""
|
120
|
+
result = {}
|
121
|
+
|
122
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
123
|
+
value = getattr(self, attr)
|
124
|
+
if isinstance(value, list):
|
125
|
+
result[attr] = list(map(
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
127
|
+
value
|
128
|
+
))
|
129
|
+
elif hasattr(value, "to_dict"):
|
130
|
+
result[attr] = value.to_dict()
|
131
|
+
elif isinstance(value, dict):
|
132
|
+
result[attr] = dict(map(
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
135
|
+
value.items()
|
136
|
+
))
|
137
|
+
else:
|
138
|
+
if attr in self.sensitive_list:
|
139
|
+
result[attr] = "****"
|
140
|
+
else:
|
141
|
+
result[attr] = value
|
142
|
+
|
143
|
+
return result
|
144
|
+
|
145
|
+
def to_str(self):
|
146
|
+
"""Returns the string representation of the model"""
|
147
|
+
import simplejson as json
|
148
|
+
if six.PY2:
|
149
|
+
import sys
|
150
|
+
reload(sys)
|
151
|
+
sys.setdefaultencoding("utf-8")
|
152
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
153
|
+
|
154
|
+
def __repr__(self):
|
155
|
+
"""For `print`"""
|
156
|
+
return self.to_str()
|
157
|
+
|
158
|
+
def __eq__(self, other):
|
159
|
+
"""Returns true if both objects are equal"""
|
160
|
+
if not isinstance(other, InteractionConstraintDto):
|
161
|
+
return False
|
162
|
+
|
163
|
+
return self.__dict__ == other.__dict__
|
164
|
+
|
165
|
+
def __ne__(self, other):
|
166
|
+
"""Returns true if both objects are not equal"""
|
167
|
+
return not self == other
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InteractionType:
|
9
|
+
"""
|
10
|
+
allowed enum values
|
11
|
+
"""
|
12
|
+
HYDROGEN_BOND = "hydrogen_bond"
|
13
|
+
HYDROPHOBIC_ACTION = "hydrophobic_action"
|
14
|
+
SALT_BRIDGE = "salt_bridge"
|
15
|
+
PI_STACKING = "pi_stacking"
|
16
|
+
PI_CATION = "pi_cation"
|
17
|
+
"""
|
18
|
+
Attributes:
|
19
|
+
openapi_types (dict): The key is attribute name
|
20
|
+
and the value is attribute type.
|
21
|
+
attribute_map (dict): The key is attribute name
|
22
|
+
and the value is json key in definition.
|
23
|
+
"""
|
24
|
+
sensitive_list = []
|
25
|
+
|
26
|
+
openapi_types = {
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self):
|
33
|
+
"""InteractionType
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
"""
|
38
|
+
|
39
|
+
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
def to_dict(self):
|
43
|
+
"""Returns the model properties as a dict"""
|
44
|
+
result = {}
|
45
|
+
|
46
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
47
|
+
value = getattr(self, attr)
|
48
|
+
if isinstance(value, list):
|
49
|
+
result[attr] = list(map(
|
50
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
51
|
+
value
|
52
|
+
))
|
53
|
+
elif hasattr(value, "to_dict"):
|
54
|
+
result[attr] = value.to_dict()
|
55
|
+
elif isinstance(value, dict):
|
56
|
+
result[attr] = dict(map(
|
57
|
+
lambda item: (item[0], item[1].to_dict())
|
58
|
+
if hasattr(item[1], "to_dict") else item,
|
59
|
+
value.items()
|
60
|
+
))
|
61
|
+
else:
|
62
|
+
if attr in self.sensitive_list:
|
63
|
+
result[attr] = "****"
|
64
|
+
else:
|
65
|
+
result[attr] = value
|
66
|
+
|
67
|
+
return result
|
68
|
+
|
69
|
+
def to_str(self):
|
70
|
+
"""Returns the string representation of the model"""
|
71
|
+
import simplejson as json
|
72
|
+
if six.PY2:
|
73
|
+
import sys
|
74
|
+
reload(sys)
|
75
|
+
sys.setdefaultencoding("utf-8")
|
76
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
77
|
+
|
78
|
+
def __repr__(self):
|
79
|
+
"""For `print`"""
|
80
|
+
return self.to_str()
|
81
|
+
|
82
|
+
def __eq__(self, other):
|
83
|
+
"""Returns true if both objects are equal"""
|
84
|
+
if not isinstance(other, InteractionType):
|
85
|
+
return False
|
86
|
+
|
87
|
+
return self.__dict__ == other.__dict__
|
88
|
+
|
89
|
+
def __ne__(self, other):
|
90
|
+
"""Returns true if both objects are not equal"""
|
91
|
+
return not self == other
|
@@ -18,15 +18,17 @@ class JobResult:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'total_count': 'int',
|
21
|
-
'failed_count': 'int'
|
21
|
+
'failed_count': 'int',
|
22
|
+
'sub_tasks_duration': 'list[float]'
|
22
23
|
}
|
23
24
|
|
24
25
|
attribute_map = {
|
25
26
|
'total_count': 'total_count',
|
26
|
-
'failed_count': 'failed_count'
|
27
|
+
'failed_count': 'failed_count',
|
28
|
+
'sub_tasks_duration': 'sub_tasks_duration'
|
27
29
|
}
|
28
30
|
|
29
|
-
def __init__(self, total_count=None, failed_count=None):
|
31
|
+
def __init__(self, total_count=None, failed_count=None, sub_tasks_duration=None):
|
30
32
|
"""JobResult
|
31
33
|
|
32
34
|
The model defined in huaweicloud sdk
|
@@ -35,18 +37,23 @@ class JobResult:
|
|
35
37
|
:type total_count: int
|
36
38
|
:param failed_count: 失败个数
|
37
39
|
:type failed_count: int
|
40
|
+
:param sub_tasks_duration: 子任务运行时长(秒)。
|
41
|
+
:type sub_tasks_duration: list[float]
|
38
42
|
"""
|
39
43
|
|
40
44
|
|
41
45
|
|
42
46
|
self._total_count = None
|
43
47
|
self._failed_count = None
|
48
|
+
self._sub_tasks_duration = None
|
44
49
|
self.discriminator = None
|
45
50
|
|
46
51
|
if total_count is not None:
|
47
52
|
self.total_count = total_count
|
48
53
|
if failed_count is not None:
|
49
54
|
self.failed_count = failed_count
|
55
|
+
if sub_tasks_duration is not None:
|
56
|
+
self.sub_tasks_duration = sub_tasks_duration
|
50
57
|
|
51
58
|
@property
|
52
59
|
def total_count(self):
|
@@ -92,6 +99,28 @@ class JobResult:
|
|
92
99
|
"""
|
93
100
|
self._failed_count = failed_count
|
94
101
|
|
102
|
+
@property
|
103
|
+
def sub_tasks_duration(self):
|
104
|
+
"""Gets the sub_tasks_duration of this JobResult.
|
105
|
+
|
106
|
+
子任务运行时长(秒)。
|
107
|
+
|
108
|
+
:return: The sub_tasks_duration of this JobResult.
|
109
|
+
:rtype: list[float]
|
110
|
+
"""
|
111
|
+
return self._sub_tasks_duration
|
112
|
+
|
113
|
+
@sub_tasks_duration.setter
|
114
|
+
def sub_tasks_duration(self, sub_tasks_duration):
|
115
|
+
"""Sets the sub_tasks_duration of this JobResult.
|
116
|
+
|
117
|
+
子任务运行时长(秒)。
|
118
|
+
|
119
|
+
:param sub_tasks_duration: The sub_tasks_duration of this JobResult.
|
120
|
+
:type sub_tasks_duration: list[float]
|
121
|
+
"""
|
122
|
+
self._sub_tasks_duration = sub_tasks_duration
|
123
|
+
|
95
124
|
def to_dict(self):
|
96
125
|
"""Returns the model properties as a dict"""
|
97
126
|
result = {}
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListBaseModelRequest:
|
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
|
+
'sort_dir': 'str',
|
23
|
+
'sort_key': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'limit': 'limit',
|
28
|
+
'offset': 'offset',
|
29
|
+
'sort_dir': 'sort_dir',
|
30
|
+
'sort_key': 'sort_key'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, limit=None, offset=None, sort_dir=None, sort_key=None):
|
34
|
+
"""ListBaseModelRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
|
39
|
+
:type limit: int
|
40
|
+
:param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
41
|
+
:type offset: int
|
42
|
+
:param sort_dir: 排序规则 目前默认时间升序
|
43
|
+
:type sort_dir: str
|
44
|
+
:param sort_key: 排序规则 目前默认时间升序,支持根据create_time排序
|
45
|
+
:type sort_key: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._limit = None
|
51
|
+
self._offset = None
|
52
|
+
self._sort_dir = None
|
53
|
+
self._sort_key = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if limit is not None:
|
57
|
+
self.limit = limit
|
58
|
+
if offset is not None:
|
59
|
+
self.offset = offset
|
60
|
+
if sort_dir is not None:
|
61
|
+
self.sort_dir = sort_dir
|
62
|
+
if sort_key is not None:
|
63
|
+
self.sort_key = sort_key
|
64
|
+
|
65
|
+
@property
|
66
|
+
def limit(self):
|
67
|
+
"""Gets the limit of this ListBaseModelRequest.
|
68
|
+
|
69
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
|
70
|
+
|
71
|
+
:return: The limit of this ListBaseModelRequest.
|
72
|
+
:rtype: int
|
73
|
+
"""
|
74
|
+
return self._limit
|
75
|
+
|
76
|
+
@limit.setter
|
77
|
+
def limit(self, limit):
|
78
|
+
"""Sets the limit of this ListBaseModelRequest.
|
79
|
+
|
80
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
|
81
|
+
|
82
|
+
:param limit: The limit of this ListBaseModelRequest.
|
83
|
+
:type limit: int
|
84
|
+
"""
|
85
|
+
self._limit = limit
|
86
|
+
|
87
|
+
@property
|
88
|
+
def offset(self):
|
89
|
+
"""Gets the offset of this ListBaseModelRequest.
|
90
|
+
|
91
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
92
|
+
|
93
|
+
:return: The offset of this ListBaseModelRequest.
|
94
|
+
:rtype: int
|
95
|
+
"""
|
96
|
+
return self._offset
|
97
|
+
|
98
|
+
@offset.setter
|
99
|
+
def offset(self, offset):
|
100
|
+
"""Sets the offset of this ListBaseModelRequest.
|
101
|
+
|
102
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
103
|
+
|
104
|
+
:param offset: The offset of this ListBaseModelRequest.
|
105
|
+
:type offset: int
|
106
|
+
"""
|
107
|
+
self._offset = offset
|
108
|
+
|
109
|
+
@property
|
110
|
+
def sort_dir(self):
|
111
|
+
"""Gets the sort_dir of this ListBaseModelRequest.
|
112
|
+
|
113
|
+
排序规则 目前默认时间升序
|
114
|
+
|
115
|
+
:return: The sort_dir of this ListBaseModelRequest.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._sort_dir
|
119
|
+
|
120
|
+
@sort_dir.setter
|
121
|
+
def sort_dir(self, sort_dir):
|
122
|
+
"""Sets the sort_dir of this ListBaseModelRequest.
|
123
|
+
|
124
|
+
排序规则 目前默认时间升序
|
125
|
+
|
126
|
+
:param sort_dir: The sort_dir of this ListBaseModelRequest.
|
127
|
+
:type sort_dir: str
|
128
|
+
"""
|
129
|
+
self._sort_dir = sort_dir
|
130
|
+
|
131
|
+
@property
|
132
|
+
def sort_key(self):
|
133
|
+
"""Gets the sort_key of this ListBaseModelRequest.
|
134
|
+
|
135
|
+
排序规则 目前默认时间升序,支持根据create_time排序
|
136
|
+
|
137
|
+
:return: The sort_key of this ListBaseModelRequest.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._sort_key
|
141
|
+
|
142
|
+
@sort_key.setter
|
143
|
+
def sort_key(self, sort_key):
|
144
|
+
"""Sets the sort_key of this ListBaseModelRequest.
|
145
|
+
|
146
|
+
排序规则 目前默认时间升序,支持根据create_time排序
|
147
|
+
|
148
|
+
:param sort_key: The sort_key of this ListBaseModelRequest.
|
149
|
+
:type sort_key: str
|
150
|
+
"""
|
151
|
+
self._sort_key = sort_key
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, ListBaseModelRequest):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
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 ListBaseModelResponse(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
|
+
'models': 'list[BaseModelDto]',
|
22
|
+
'count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'models': 'models',
|
27
|
+
'count': 'count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, models=None, count=None):
|
31
|
+
"""ListBaseModelResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param models: 模型列表
|
36
|
+
:type models: list[:class:`huaweicloudsdkeihealth.v1.BaseModelDto`]
|
37
|
+
:param count: 模型总数
|
38
|
+
:type count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListBaseModelResponse, self).__init__()
|
42
|
+
|
43
|
+
self._models = None
|
44
|
+
self._count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if models is not None:
|
48
|
+
self.models = models
|
49
|
+
if count is not None:
|
50
|
+
self.count = count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def models(self):
|
54
|
+
"""Gets the models of this ListBaseModelResponse.
|
55
|
+
|
56
|
+
模型列表
|
57
|
+
|
58
|
+
:return: The models of this ListBaseModelResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.BaseModelDto`]
|
60
|
+
"""
|
61
|
+
return self._models
|
62
|
+
|
63
|
+
@models.setter
|
64
|
+
def models(self, models):
|
65
|
+
"""Sets the models of this ListBaseModelResponse.
|
66
|
+
|
67
|
+
模型列表
|
68
|
+
|
69
|
+
:param models: The models of this ListBaseModelResponse.
|
70
|
+
:type models: list[:class:`huaweicloudsdkeihealth.v1.BaseModelDto`]
|
71
|
+
"""
|
72
|
+
self._models = models
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self):
|
76
|
+
"""Gets the count of this ListBaseModelResponse.
|
77
|
+
|
78
|
+
模型总数
|
79
|
+
|
80
|
+
:return: The count of this ListBaseModelResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._count
|
84
|
+
|
85
|
+
@count.setter
|
86
|
+
def count(self, count):
|
87
|
+
"""Sets the count of this ListBaseModelResponse.
|
88
|
+
|
89
|
+
模型总数
|
90
|
+
|
91
|
+
:param count: The count of this ListBaseModelResponse.
|
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, ListBaseModelResponse):
|
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
|