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.
Files changed (134) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +100 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +5335 -3295
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +5335 -3295
  4. huaweicloudsdkeihealth/v1/model/__init__.py +100 -0
  5. huaweicloudsdkeihealth/v1/model/add_drug_database_file_req.py +139 -0
  6. huaweicloudsdkeihealth/v1/model/add_drug_database_file_request.py +139 -0
  7. huaweicloudsdkeihealth/v1/model/add_drug_database_file_response.py +85 -0
  8. huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
  9. huaweicloudsdkeihealth/v1/model/base_model_dto.py +202 -0
  10. huaweicloudsdkeihealth/v1/model/bind_site_dto.py +30 -1
  11. huaweicloudsdkeihealth/v1/model/bound_box_dto.py +171 -0
  12. huaweicloudsdkeihealth/v1/model/clustering_drug_file.py +197 -0
  13. huaweicloudsdkeihealth/v1/model/clustering_file_source.py +89 -0
  14. huaweicloudsdkeihealth/v1/model/convert_file.py +197 -0
  15. huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
  16. huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
  17. huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py +134 -0
  18. huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py +139 -0
  19. huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py +145 -0
  20. huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py +166 -0
  21. huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py +139 -0
  22. huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py +145 -0
  23. huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
  24. huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
  25. huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
  26. huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
  27. huaweicloudsdkeihealth/v1/model/create_dock_job_req.py +32 -3
  28. huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
  29. huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
  30. huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
  31. huaweicloudsdkeihealth/v1/model/create_favorite_req.py +254 -0
  32. huaweicloudsdkeihealth/v1/model/create_favorite_request.py +139 -0
  33. huaweicloudsdkeihealth/v1/model/create_favorite_response.py +116 -0
  34. huaweicloudsdkeihealth/v1/model/create_fep_job_req.py +30 -1
  35. huaweicloudsdkeihealth/v1/model/create_gen_job_req.py +338 -0
  36. huaweicloudsdkeihealth/v1/model/create_gen_job_request.py +139 -0
  37. huaweicloudsdkeihealth/v1/model/create_gen_job_response.py +145 -0
  38. huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py +32 -3
  39. huaweicloudsdkeihealth/v1/model/create_model_req.py +32 -3
  40. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
  41. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
  42. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
  43. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py +163 -0
  44. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py +139 -0
  45. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py +145 -0
  46. huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +59 -1
  47. huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
  48. huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
  49. huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
  50. huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py +184 -0
  51. huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py +139 -0
  52. huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py +145 -0
  53. huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
  54. huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
  55. huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
  56. huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
  57. huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
  58. huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
  59. huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
  60. huaweicloudsdkeihealth/v1/model/delete_favorite_request.py +142 -0
  61. huaweicloudsdkeihealth/v1/model/delete_favorite_response.py +85 -0
  62. huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
  63. huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
  64. huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
  65. huaweicloudsdkeihealth/v1/model/fasta_receptor.py +197 -0
  66. huaweicloudsdkeihealth/v1/model/favorite_dto.py +376 -0
  67. huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
  68. huaweicloudsdkeihealth/v1/model/interaction.py +166 -0
  69. huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py +167 -0
  70. huaweicloudsdkeihealth/v1/model/interaction_type.py +91 -0
  71. huaweicloudsdkeihealth/v1/model/job_result.py +32 -3
  72. huaweicloudsdkeihealth/v1/model/list_base_model_request.py +202 -0
  73. huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
  74. huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
  75. huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
  76. huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
  77. huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +174 -0
  78. huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
  79. huaweicloudsdkeihealth/v1/model/list_favorite_request.py +433 -0
  80. huaweicloudsdkeihealth/v1/model/list_favorite_response.py +145 -0
  81. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
  82. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
  83. huaweicloudsdkeihealth/v1/model/md_param.py +169 -0
  84. huaweicloudsdkeihealth/v1/model/md_step_param.py +202 -0
  85. huaweicloudsdkeihealth/v1/model/model_dto.py +61 -3
  86. huaweicloudsdkeihealth/v1/model/optimization_mode.py +1 -0
  87. huaweicloudsdkeihealth/v1/model/pocket_fragment.py +30 -1
  88. huaweicloudsdkeihealth/v1/model/receptor_dto.py +280 -0
  89. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py +168 -0
  90. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py +139 -0
  91. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py +145 -0
  92. huaweicloudsdkeihealth/v1/model/run_format_converter_req.py +166 -0
  93. huaweicloudsdkeihealth/v1/model/run_format_converter_request.py +139 -0
  94. huaweicloudsdkeihealth/v1/model/run_format_converter_response.py +112 -0
  95. huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
  96. huaweicloudsdkeihealth/v1/model/show_admet_job_response.py +57 -3
  97. huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py +142 -0
  98. huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py +191 -0
  99. huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py +142 -0
  100. huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py +170 -0
  101. huaweicloudsdkeihealth/v1/model/show_docking_job_response.py +30 -1
  102. huaweicloudsdkeihealth/v1/model/show_fep_job_response.py +30 -1
  103. huaweicloudsdkeihealth/v1/model/show_gen_job_request.py +142 -0
  104. huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
  105. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
  106. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +199 -0
  107. huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +55 -1
  108. huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
  109. huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
  110. huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py +142 -0
  111. huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py +187 -0
  112. huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py +28 -3
  113. huaweicloudsdkeihealth/v1/model/strong_constraint_type.py +1 -0
  114. huaweicloudsdkeihealth/v1/model/target_opt_ligand.py +139 -0
  115. huaweicloudsdkeihealth/v1/model/target_opt_receptor.py +255 -0
  116. huaweicloudsdkeihealth/v1/model/task_progress.py +115 -0
  117. huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
  118. huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
  119. huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
  120. huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
  121. huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
  122. huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
  123. huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
  124. huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
  125. huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
  126. huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
  127. huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
  128. huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py +28 -3
  129. huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
  130. {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/METADATA +2 -2
  131. {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/RECORD +134 -34
  132. {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/WHEEL +1 -1
  133. {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/LICENSE +0 -0
  134. {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,197 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ClusteringDrugFile:
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
+ 'source': 'ClusteringFileSource',
21
+ 'url': 'str',
22
+ 'format': 'str',
23
+ 'data': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'source': 'source',
28
+ 'url': 'url',
29
+ 'format': 'format',
30
+ 'data': 'data'
31
+ }
32
+
33
+ def __init__(self, source=None, url=None, format=None, data=None):
34
+ """ClusteringDrugFile
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param source:
39
+ :type source: :class:`huaweicloudsdkeihealth.v1.ClusteringFileSource`
40
+ :param url: 文件URL,当数据源为用户私有数据中心为项目路径,为公共数据场景时为obs地址。
41
+ :type url: str
42
+ :param format: 文件格式,支持SMI,仅数据源为RAW时提供。
43
+ :type format: str
44
+ :param data: 文件原始数据,仅数据源为RAW时提供。
45
+ :type data: str
46
+ """
47
+
48
+
49
+
50
+ self._source = None
51
+ self._url = None
52
+ self._format = None
53
+ self._data = None
54
+ self.discriminator = None
55
+
56
+ self.source = source
57
+ if url is not None:
58
+ self.url = url
59
+ if format is not None:
60
+ self.format = format
61
+ if data is not None:
62
+ self.data = data
63
+
64
+ @property
65
+ def source(self):
66
+ """Gets the source of this ClusteringDrugFile.
67
+
68
+ :return: The source of this ClusteringDrugFile.
69
+ :rtype: :class:`huaweicloudsdkeihealth.v1.ClusteringFileSource`
70
+ """
71
+ return self._source
72
+
73
+ @source.setter
74
+ def source(self, source):
75
+ """Sets the source of this ClusteringDrugFile.
76
+
77
+ :param source: The source of this ClusteringDrugFile.
78
+ :type source: :class:`huaweicloudsdkeihealth.v1.ClusteringFileSource`
79
+ """
80
+ self._source = source
81
+
82
+ @property
83
+ def url(self):
84
+ """Gets the url of this ClusteringDrugFile.
85
+
86
+ 文件URL,当数据源为用户私有数据中心为项目路径,为公共数据场景时为obs地址。
87
+
88
+ :return: The url of this ClusteringDrugFile.
89
+ :rtype: str
90
+ """
91
+ return self._url
92
+
93
+ @url.setter
94
+ def url(self, url):
95
+ """Sets the url of this ClusteringDrugFile.
96
+
97
+ 文件URL,当数据源为用户私有数据中心为项目路径,为公共数据场景时为obs地址。
98
+
99
+ :param url: The url of this ClusteringDrugFile.
100
+ :type url: str
101
+ """
102
+ self._url = url
103
+
104
+ @property
105
+ def format(self):
106
+ """Gets the format of this ClusteringDrugFile.
107
+
108
+ 文件格式,支持SMI,仅数据源为RAW时提供。
109
+
110
+ :return: The format of this ClusteringDrugFile.
111
+ :rtype: str
112
+ """
113
+ return self._format
114
+
115
+ @format.setter
116
+ def format(self, format):
117
+ """Sets the format of this ClusteringDrugFile.
118
+
119
+ 文件格式,支持SMI,仅数据源为RAW时提供。
120
+
121
+ :param format: The format of this ClusteringDrugFile.
122
+ :type format: str
123
+ """
124
+ self._format = format
125
+
126
+ @property
127
+ def data(self):
128
+ """Gets the data of this ClusteringDrugFile.
129
+
130
+ 文件原始数据,仅数据源为RAW时提供。
131
+
132
+ :return: The data of this ClusteringDrugFile.
133
+ :rtype: str
134
+ """
135
+ return self._data
136
+
137
+ @data.setter
138
+ def data(self, data):
139
+ """Sets the data of this ClusteringDrugFile.
140
+
141
+ 文件原始数据,仅数据源为RAW时提供。
142
+
143
+ :param data: The data of this ClusteringDrugFile.
144
+ :type data: str
145
+ """
146
+ self._data = data
147
+
148
+ def to_dict(self):
149
+ """Returns the model properties as a dict"""
150
+ result = {}
151
+
152
+ for attr, _ in six.iteritems(self.openapi_types):
153
+ value = getattr(self, attr)
154
+ if isinstance(value, list):
155
+ result[attr] = list(map(
156
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
157
+ value
158
+ ))
159
+ elif hasattr(value, "to_dict"):
160
+ result[attr] = value.to_dict()
161
+ elif isinstance(value, dict):
162
+ result[attr] = dict(map(
163
+ lambda item: (item[0], item[1].to_dict())
164
+ if hasattr(item[1], "to_dict") else item,
165
+ value.items()
166
+ ))
167
+ else:
168
+ if attr in self.sensitive_list:
169
+ result[attr] = "****"
170
+ else:
171
+ result[attr] = value
172
+
173
+ return result
174
+
175
+ def to_str(self):
176
+ """Returns the string representation of the model"""
177
+ import simplejson as json
178
+ if six.PY2:
179
+ import sys
180
+ reload(sys)
181
+ sys.setdefaultencoding("utf-8")
182
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
183
+
184
+ def __repr__(self):
185
+ """For `print`"""
186
+ return self.to_str()
187
+
188
+ def __eq__(self, other):
189
+ """Returns true if both objects are equal"""
190
+ if not isinstance(other, ClusteringDrugFile):
191
+ return False
192
+
193
+ return self.__dict__ == other.__dict__
194
+
195
+ def __ne__(self, other):
196
+ """Returns true if both objects are not equal"""
197
+ return not self == other
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ClusteringFileSource:
9
+ """
10
+ allowed enum values
11
+ """
12
+ PRIVATE = "PRIVATE"
13
+ PUBLIC = "PUBLIC"
14
+ RAW = "RAW"
15
+ """
16
+ Attributes:
17
+ openapi_types (dict): The key is attribute name
18
+ and the value is attribute type.
19
+ attribute_map (dict): The key is attribute name
20
+ and the value is json key in definition.
21
+ """
22
+ sensitive_list = []
23
+
24
+ openapi_types = {
25
+ }
26
+
27
+ attribute_map = {
28
+ }
29
+
30
+ def __init__(self):
31
+ """ClusteringFileSource
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ """
36
+
37
+
38
+ self.discriminator = None
39
+
40
+ def to_dict(self):
41
+ """Returns the model properties as a dict"""
42
+ result = {}
43
+
44
+ for attr, _ in six.iteritems(self.openapi_types):
45
+ value = getattr(self, attr)
46
+ if isinstance(value, list):
47
+ result[attr] = list(map(
48
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
49
+ value
50
+ ))
51
+ elif hasattr(value, "to_dict"):
52
+ result[attr] = value.to_dict()
53
+ elif isinstance(value, dict):
54
+ result[attr] = dict(map(
55
+ lambda item: (item[0], item[1].to_dict())
56
+ if hasattr(item[1], "to_dict") else item,
57
+ value.items()
58
+ ))
59
+ else:
60
+ if attr in self.sensitive_list:
61
+ result[attr] = "****"
62
+ else:
63
+ result[attr] = value
64
+
65
+ return result
66
+
67
+ def to_str(self):
68
+ """Returns the string representation of the model"""
69
+ import simplejson as json
70
+ if six.PY2:
71
+ import sys
72
+ reload(sys)
73
+ sys.setdefaultencoding("utf-8")
74
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
75
+
76
+ def __repr__(self):
77
+ """For `print`"""
78
+ return self.to_str()
79
+
80
+ def __eq__(self, other):
81
+ """Returns true if both objects are equal"""
82
+ if not isinstance(other, ClusteringFileSource):
83
+ return False
84
+
85
+ return self.__dict__ == other.__dict__
86
+
87
+ def __ne__(self, other):
88
+ """Returns true if both objects are not equal"""
89
+ return not self == other
@@ -0,0 +1,197 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ConvertFile:
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
+ 'source': 'DrugFileSource',
21
+ 'url': 'str',
22
+ 'format': 'str',
23
+ 'data': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'source': 'source',
28
+ 'url': 'url',
29
+ 'format': 'format',
30
+ 'data': 'data'
31
+ }
32
+
33
+ def __init__(self, source=None, url=None, format=None, data=None):
34
+ """ConvertFile
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param source:
39
+ :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
40
+ :param url: 文件URL,当数据源为外部网络数据时为https地址,为用户私有数据中心时为项目路径,为公共数据场景时为obs地址。
41
+ :type url: str
42
+ :param format: 文件格式,仅支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供。
43
+ :type format: str
44
+ :param data: 文件原始数据,仅数据源为RAW时提供。
45
+ :type data: str
46
+ """
47
+
48
+
49
+
50
+ self._source = None
51
+ self._url = None
52
+ self._format = None
53
+ self._data = None
54
+ self.discriminator = None
55
+
56
+ self.source = source
57
+ if url is not None:
58
+ self.url = url
59
+ if format is not None:
60
+ self.format = format
61
+ if data is not None:
62
+ self.data = data
63
+
64
+ @property
65
+ def source(self):
66
+ """Gets the source of this ConvertFile.
67
+
68
+ :return: The source of this ConvertFile.
69
+ :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
70
+ """
71
+ return self._source
72
+
73
+ @source.setter
74
+ def source(self, source):
75
+ """Sets the source of this ConvertFile.
76
+
77
+ :param source: The source of this ConvertFile.
78
+ :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
79
+ """
80
+ self._source = source
81
+
82
+ @property
83
+ def url(self):
84
+ """Gets the url of this ConvertFile.
85
+
86
+ 文件URL,当数据源为外部网络数据时为https地址,为用户私有数据中心时为项目路径,为公共数据场景时为obs地址。
87
+
88
+ :return: The url of this ConvertFile.
89
+ :rtype: str
90
+ """
91
+ return self._url
92
+
93
+ @url.setter
94
+ def url(self, url):
95
+ """Sets the url of this ConvertFile.
96
+
97
+ 文件URL,当数据源为外部网络数据时为https地址,为用户私有数据中心时为项目路径,为公共数据场景时为obs地址。
98
+
99
+ :param url: The url of this ConvertFile.
100
+ :type url: str
101
+ """
102
+ self._url = url
103
+
104
+ @property
105
+ def format(self):
106
+ """Gets the format of this ConvertFile.
107
+
108
+ 文件格式,仅支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供。
109
+
110
+ :return: The format of this ConvertFile.
111
+ :rtype: str
112
+ """
113
+ return self._format
114
+
115
+ @format.setter
116
+ def format(self, format):
117
+ """Sets the format of this ConvertFile.
118
+
119
+ 文件格式,仅支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供。
120
+
121
+ :param format: The format of this ConvertFile.
122
+ :type format: str
123
+ """
124
+ self._format = format
125
+
126
+ @property
127
+ def data(self):
128
+ """Gets the data of this ConvertFile.
129
+
130
+ 文件原始数据,仅数据源为RAW时提供。
131
+
132
+ :return: The data of this ConvertFile.
133
+ :rtype: str
134
+ """
135
+ return self._data
136
+
137
+ @data.setter
138
+ def data(self, data):
139
+ """Sets the data of this ConvertFile.
140
+
141
+ 文件原始数据,仅数据源为RAW时提供。
142
+
143
+ :param data: The data of this ConvertFile.
144
+ :type data: str
145
+ """
146
+ self._data = data
147
+
148
+ def to_dict(self):
149
+ """Returns the model properties as a dict"""
150
+ result = {}
151
+
152
+ for attr, _ in six.iteritems(self.openapi_types):
153
+ value = getattr(self, attr)
154
+ if isinstance(value, list):
155
+ result[attr] = list(map(
156
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
157
+ value
158
+ ))
159
+ elif hasattr(value, "to_dict"):
160
+ result[attr] = value.to_dict()
161
+ elif isinstance(value, dict):
162
+ result[attr] = dict(map(
163
+ lambda item: (item[0], item[1].to_dict())
164
+ if hasattr(item[1], "to_dict") else item,
165
+ value.items()
166
+ ))
167
+ else:
168
+ if attr in self.sensitive_list:
169
+ result[attr] = "****"
170
+ else:
171
+ result[attr] = value
172
+
173
+ return result
174
+
175
+ def to_str(self):
176
+ """Returns the string representation of the model"""
177
+ import simplejson as json
178
+ if six.PY2:
179
+ import sys
180
+ reload(sys)
181
+ sys.setdefaultencoding("utf-8")
182
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
183
+
184
+ def __repr__(self):
185
+ """For `print`"""
186
+ return self.to_str()
187
+
188
+ def __eq__(self, other):
189
+ """Returns true if both objects are equal"""
190
+ if not isinstance(other, ConvertFile):
191
+ return False
192
+
193
+ return self.__dict__ == other.__dict__
194
+
195
+ def __ne__(self, other):
196
+ """Returns true if both objects are not equal"""
197
+ return not self == other
@@ -0,0 +1,226 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CpiReceptor:
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
+ 'source': 'DrugFileSource',
21
+ 'url': 'str',
22
+ 'format': 'str',
23
+ 'data': 'str',
24
+ 'fasta_count': 'int'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'source': 'source',
29
+ 'url': 'url',
30
+ 'format': 'format',
31
+ 'data': 'data',
32
+ 'fasta_count': 'fasta_count'
33
+ }
34
+
35
+ def __init__(self, source=None, url=None, format=None, data=None, fasta_count=None):
36
+ """CpiReceptor
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param source:
41
+ :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
42
+ :param url: 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址
43
+ :type url: str
44
+ :param format: 文件格式,仅支持FASTA,仅数据源为RAW时提供
45
+ :type format: str
46
+ :param data: 文件原始数据,仅数据源为RAW时提供
47
+ :type data: str
48
+ :param fasta_count: fasta文件中氨基酸数量
49
+ :type fasta_count: int
50
+ """
51
+
52
+
53
+
54
+ self._source = None
55
+ self._url = None
56
+ self._format = None
57
+ self._data = None
58
+ self._fasta_count = None
59
+ self.discriminator = None
60
+
61
+ self.source = source
62
+ if url is not None:
63
+ self.url = url
64
+ if format is not None:
65
+ self.format = format
66
+ if data is not None:
67
+ self.data = data
68
+ if fasta_count is not None:
69
+ self.fasta_count = fasta_count
70
+
71
+ @property
72
+ def source(self):
73
+ """Gets the source of this CpiReceptor.
74
+
75
+ :return: The source of this CpiReceptor.
76
+ :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
77
+ """
78
+ return self._source
79
+
80
+ @source.setter
81
+ def source(self, source):
82
+ """Sets the source of this CpiReceptor.
83
+
84
+ :param source: The source of this CpiReceptor.
85
+ :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
86
+ """
87
+ self._source = source
88
+
89
+ @property
90
+ def url(self):
91
+ """Gets the url of this CpiReceptor.
92
+
93
+ 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址
94
+
95
+ :return: The url of this CpiReceptor.
96
+ :rtype: str
97
+ """
98
+ return self._url
99
+
100
+ @url.setter
101
+ def url(self, url):
102
+ """Sets the url of this CpiReceptor.
103
+
104
+ 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址
105
+
106
+ :param url: The url of this CpiReceptor.
107
+ :type url: str
108
+ """
109
+ self._url = url
110
+
111
+ @property
112
+ def format(self):
113
+ """Gets the format of this CpiReceptor.
114
+
115
+ 文件格式,仅支持FASTA,仅数据源为RAW时提供
116
+
117
+ :return: The format of this CpiReceptor.
118
+ :rtype: str
119
+ """
120
+ return self._format
121
+
122
+ @format.setter
123
+ def format(self, format):
124
+ """Sets the format of this CpiReceptor.
125
+
126
+ 文件格式,仅支持FASTA,仅数据源为RAW时提供
127
+
128
+ :param format: The format of this CpiReceptor.
129
+ :type format: str
130
+ """
131
+ self._format = format
132
+
133
+ @property
134
+ def data(self):
135
+ """Gets the data of this CpiReceptor.
136
+
137
+ 文件原始数据,仅数据源为RAW时提供
138
+
139
+ :return: The data of this CpiReceptor.
140
+ :rtype: str
141
+ """
142
+ return self._data
143
+
144
+ @data.setter
145
+ def data(self, data):
146
+ """Sets the data of this CpiReceptor.
147
+
148
+ 文件原始数据,仅数据源为RAW时提供
149
+
150
+ :param data: The data of this CpiReceptor.
151
+ :type data: str
152
+ """
153
+ self._data = data
154
+
155
+ @property
156
+ def fasta_count(self):
157
+ """Gets the fasta_count of this CpiReceptor.
158
+
159
+ fasta文件中氨基酸数量
160
+
161
+ :return: The fasta_count of this CpiReceptor.
162
+ :rtype: int
163
+ """
164
+ return self._fasta_count
165
+
166
+ @fasta_count.setter
167
+ def fasta_count(self, fasta_count):
168
+ """Sets the fasta_count of this CpiReceptor.
169
+
170
+ fasta文件中氨基酸数量
171
+
172
+ :param fasta_count: The fasta_count of this CpiReceptor.
173
+ :type fasta_count: int
174
+ """
175
+ self._fasta_count = fasta_count
176
+
177
+ def to_dict(self):
178
+ """Returns the model properties as a dict"""
179
+ result = {}
180
+
181
+ for attr, _ in six.iteritems(self.openapi_types):
182
+ value = getattr(self, attr)
183
+ if isinstance(value, list):
184
+ result[attr] = list(map(
185
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186
+ value
187
+ ))
188
+ elif hasattr(value, "to_dict"):
189
+ result[attr] = value.to_dict()
190
+ elif isinstance(value, dict):
191
+ result[attr] = dict(map(
192
+ lambda item: (item[0], item[1].to_dict())
193
+ if hasattr(item[1], "to_dict") else item,
194
+ value.items()
195
+ ))
196
+ else:
197
+ if attr in self.sensitive_list:
198
+ result[attr] = "****"
199
+ else:
200
+ result[attr] = value
201
+
202
+ return result
203
+
204
+ def to_str(self):
205
+ """Returns the string representation of the model"""
206
+ import simplejson as json
207
+ if six.PY2:
208
+ import sys
209
+ reload(sys)
210
+ sys.setdefaultencoding("utf-8")
211
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
212
+
213
+ def __repr__(self):
214
+ """For `print`"""
215
+ return self.to_str()
216
+
217
+ def __eq__(self, other):
218
+ """Returns true if both objects are equal"""
219
+ if not isinstance(other, CpiReceptor):
220
+ return False
221
+
222
+ return self.__dict__ == other.__dict__
223
+
224
+ def __ne__(self, other):
225
+ """Returns true if both objects are not equal"""
226
+ return not self == other