huaweicloudsdkeihealth 3.1.155__py2.py3-none-any.whl → 3.1.157__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 +13 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +267 -0
- huaweicloudsdkeihealth/v1/eihealth_client.py +267 -0
- huaweicloudsdkeihealth/v1/model/__init__.py +13 -0
- huaweicloudsdkeihealth/v1/model/create_drug_model_resource_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/create_drug_model_resource_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_drug_model_resource_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_model_resource_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_model_resource_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/download_public_data_req.py +140 -0
- huaweicloudsdkeihealth/v1/model/download_public_data_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/download_public_data_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/download_public_data_type_enum.py +88 -0
- huaweicloudsdkeihealth/v1/model/drug_model_resource_status_enum.py +89 -0
- huaweicloudsdkeihealth/v1/model/list_drug_model_resource_request.py +202 -0
- huaweicloudsdkeihealth/v1/model/list_drug_model_resource_response.py +170 -0
- huaweicloudsdkeihealth/v1/model/pangu_drug_model_resource_rsp.py +278 -0
- huaweicloudsdkeihealth/v1/region/eihealth_region.py +2 -5
- huaweicloudsdkeihealth/v2/region/eihealth_region.py +2 -5
- {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/RECORD +24 -11
- {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/top_level.txt +0 -0
@@ -172,6 +172,9 @@ from huaweicloudsdkeihealth.v1.model.create_drug_ligand_similarity_graph_task_re
|
|
172
172
|
from huaweicloudsdkeihealth.v1.model.create_drug_ligand_svg_request import CreateDrugLigandSvgRequest
|
173
173
|
from huaweicloudsdkeihealth.v1.model.create_drug_ligand_svg_response import CreateDrugLigandSvgResponse
|
174
174
|
from huaweicloudsdkeihealth.v1.model.create_drug_model_request import CreateDrugModelRequest
|
175
|
+
from huaweicloudsdkeihealth.v1.model.create_drug_model_resource_req import CreateDrugModelResourceReq
|
176
|
+
from huaweicloudsdkeihealth.v1.model.create_drug_model_resource_request import CreateDrugModelResourceRequest
|
177
|
+
from huaweicloudsdkeihealth.v1.model.create_drug_model_resource_response import CreateDrugModelResourceResponse
|
175
178
|
from huaweicloudsdkeihealth.v1.model.create_drug_model_response import CreateDrugModelResponse
|
176
179
|
from huaweicloudsdkeihealth.v1.model.create_favorite_req import CreateFavoriteReq
|
177
180
|
from huaweicloudsdkeihealth.v1.model.create_favorite_request import CreateFavoriteRequest
|
@@ -313,6 +316,8 @@ from huaweicloudsdkeihealth.v1.model.delete_drug_ligand_preview_task_response im
|
|
313
316
|
from huaweicloudsdkeihealth.v1.model.delete_drug_ligand_similarity_graph_task_request import DeleteDrugLigandSimilarityGraphTaskRequest
|
314
317
|
from huaweicloudsdkeihealth.v1.model.delete_drug_ligand_similarity_graph_task_response import DeleteDrugLigandSimilarityGraphTaskResponse
|
315
318
|
from huaweicloudsdkeihealth.v1.model.delete_drug_model_request import DeleteDrugModelRequest
|
319
|
+
from huaweicloudsdkeihealth.v1.model.delete_drug_model_resource_request import DeleteDrugModelResourceRequest
|
320
|
+
from huaweicloudsdkeihealth.v1.model.delete_drug_model_resource_response import DeleteDrugModelResourceResponse
|
316
321
|
from huaweicloudsdkeihealth.v1.model.delete_drug_model_response import DeleteDrugModelResponse
|
317
322
|
from huaweicloudsdkeihealth.v1.model.delete_favorite_request import DeleteFavoriteRequest
|
318
323
|
from huaweicloudsdkeihealth.v1.model.delete_favorite_response import DeleteFavoriteResponse
|
@@ -368,11 +373,16 @@ from huaweicloudsdkeihealth.v1.model.download_data_response import DownloadDataR
|
|
368
373
|
from huaweicloudsdkeihealth.v1.model.download_data_trace_request import DownloadDataTraceRequest
|
369
374
|
from huaweicloudsdkeihealth.v1.model.download_data_trace_response import DownloadDataTraceResponse
|
370
375
|
from huaweicloudsdkeihealth.v1.model.download_data_type_enum import DownloadDataTypeEnum
|
376
|
+
from huaweicloudsdkeihealth.v1.model.download_public_data_req import DownloadPublicDataReq
|
377
|
+
from huaweicloudsdkeihealth.v1.model.download_public_data_request import DownloadPublicDataRequest
|
378
|
+
from huaweicloudsdkeihealth.v1.model.download_public_data_response import DownloadPublicDataResponse
|
379
|
+
from huaweicloudsdkeihealth.v1.model.download_public_data_type_enum import DownloadPublicDataTypeEnum
|
371
380
|
from huaweicloudsdkeihealth.v1.model.drug_bounding_box_dto import DrugBoundingBoxDto
|
372
381
|
from huaweicloudsdkeihealth.v1.model.drug_database_dto import DrugDatabaseDto
|
373
382
|
from huaweicloudsdkeihealth.v1.model.drug_file import DrugFile
|
374
383
|
from huaweicloudsdkeihealth.v1.model.drug_file_source import DrugFileSource
|
375
384
|
from huaweicloudsdkeihealth.v1.model.drug_job_dto import DrugJobDto
|
385
|
+
from huaweicloudsdkeihealth.v1.model.drug_model_resource_status_enum import DrugModelResourceStatusEnum
|
376
386
|
from huaweicloudsdkeihealth.v1.model.edited_ligand import EditedLigand
|
377
387
|
from huaweicloudsdkeihealth.v1.model.event_rsp import EventRsp
|
378
388
|
from huaweicloudsdkeihealth.v1.model.execute_asset_action_request import ExecuteAssetActionRequest
|
@@ -506,6 +516,8 @@ from huaweicloudsdkeihealth.v1.model.list_drug_database_response import ListDrug
|
|
506
516
|
from huaweicloudsdkeihealth.v1.model.list_drug_job_request import ListDrugJobRequest
|
507
517
|
from huaweicloudsdkeihealth.v1.model.list_drug_job_response import ListDrugJobResponse
|
508
518
|
from huaweicloudsdkeihealth.v1.model.list_drug_model_request import ListDrugModelRequest
|
519
|
+
from huaweicloudsdkeihealth.v1.model.list_drug_model_resource_request import ListDrugModelResourceRequest
|
520
|
+
from huaweicloudsdkeihealth.v1.model.list_drug_model_resource_response import ListDrugModelResourceResponse
|
509
521
|
from huaweicloudsdkeihealth.v1.model.list_drug_model_response import ListDrugModelResponse
|
510
522
|
from huaweicloudsdkeihealth.v1.model.list_favorite_request import ListFavoriteRequest
|
511
523
|
from huaweicloudsdkeihealth.v1.model.list_favorite_response import ListFavoriteResponse
|
@@ -653,6 +665,7 @@ from huaweicloudsdkeihealth.v1.model.optimization_result import OptimizationResu
|
|
653
665
|
from huaweicloudsdkeihealth.v1.model.optimization_result_item import OptimizationResultItem
|
654
666
|
from huaweicloudsdkeihealth.v1.model.optimization_task_data import OptimizationTaskData
|
655
667
|
from huaweicloudsdkeihealth.v1.model.output_file_type import OutputFileType
|
668
|
+
from huaweicloudsdkeihealth.v1.model.pangu_drug_model_resource_rsp import PanguDrugModelResourceRsp
|
656
669
|
from huaweicloudsdkeihealth.v1.model.parse_drug_receptor_info_request import ParseDrugReceptorInfoRequest
|
657
670
|
from huaweicloudsdkeihealth.v1.model.parse_drug_receptor_info_response import ParseDrugReceptorInfoResponse
|
658
671
|
from huaweicloudsdkeihealth.v1.model.path_type import PathType
|
@@ -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 CreateDrugModelResourceReq:
|
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
|
+
'spec_code': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'spec_code': 'spec_code'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, spec_code=None):
|
28
|
+
r"""CreateDrugModelResourceReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param spec_code: **参数解释**: 规格编码。 **约束限制**: 不涉及。 **取值范围**: 仅支持eihealth.platform.pkg.spec.drug.profession。 **默认取值**: 不涉及
|
33
|
+
:type spec_code: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._spec_code = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.spec_code = spec_code
|
42
|
+
|
43
|
+
@property
|
44
|
+
def spec_code(self):
|
45
|
+
r"""Gets the spec_code of this CreateDrugModelResourceReq.
|
46
|
+
|
47
|
+
**参数解释**: 规格编码。 **约束限制**: 不涉及。 **取值范围**: 仅支持eihealth.platform.pkg.spec.drug.profession。 **默认取值**: 不涉及
|
48
|
+
|
49
|
+
:return: The spec_code of this CreateDrugModelResourceReq.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._spec_code
|
53
|
+
|
54
|
+
@spec_code.setter
|
55
|
+
def spec_code(self, spec_code):
|
56
|
+
r"""Sets the spec_code of this CreateDrugModelResourceReq.
|
57
|
+
|
58
|
+
**参数解释**: 规格编码。 **约束限制**: 不涉及。 **取值范围**: 仅支持eihealth.platform.pkg.spec.drug.profession。 **默认取值**: 不涉及
|
59
|
+
|
60
|
+
:param spec_code: The spec_code of this CreateDrugModelResourceReq.
|
61
|
+
:type spec_code: str
|
62
|
+
"""
|
63
|
+
self._spec_code = spec_code
|
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, CreateDrugModelResourceReq):
|
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,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateDrugModelResourceRequest:
|
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
|
+
'body': 'CreateDrugModelResourceReq'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreateDrugModelResourceRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateDrugModelResourceRequest
|
33
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateDrugModelResourceReq`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this CreateDrugModelResourceRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateDrugModelResourceRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugModelResourceReq`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreateDrugModelResourceRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateDrugModelResourceRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateDrugModelResourceReq`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CreateDrugModelResourceRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
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 CreateDrugModelResourceResponse(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"""CreateDrugModelResourceResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(CreateDrugModelResourceResponse, 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, CreateDrugModelResourceResponse):
|
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,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteDrugModelResourceRequest:
|
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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'id': 'id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, id=None):
|
28
|
+
r"""DeleteDrugModelResourceRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param id: **参数解释**: 盘古药物分子大模型id。 **约束限制**: 不涉及 **取值范围**: 仅支持字母、数字、中划线和下划线,长度为[1-128]个字符。 **默认取值**: 不涉及
|
33
|
+
:type id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.id = id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def id(self):
|
45
|
+
r"""Gets the id of this DeleteDrugModelResourceRequest.
|
46
|
+
|
47
|
+
**参数解释**: 盘古药物分子大模型id。 **约束限制**: 不涉及 **取值范围**: 仅支持字母、数字、中划线和下划线,长度为[1-128]个字符。 **默认取值**: 不涉及
|
48
|
+
|
49
|
+
:return: The id of this DeleteDrugModelResourceRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._id
|
53
|
+
|
54
|
+
@id.setter
|
55
|
+
def id(self, id):
|
56
|
+
r"""Sets the id of this DeleteDrugModelResourceRequest.
|
57
|
+
|
58
|
+
**参数解释**: 盘古药物分子大模型id。 **约束限制**: 不涉及 **取值范围**: 仅支持字母、数字、中划线和下划线,长度为[1-128]个字符。 **默认取值**: 不涉及
|
59
|
+
|
60
|
+
:param id: The id of this DeleteDrugModelResourceRequest.
|
61
|
+
:type id: str
|
62
|
+
"""
|
63
|
+
self._id = 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, DeleteDrugModelResourceRequest):
|
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,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 DeleteDrugModelResourceResponse(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"""DeleteDrugModelResourceResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteDrugModelResourceResponse, 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, DeleteDrugModelResourceResponse):
|
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
|