huaweicloudsdkeihealth 3.1.94__py2.py3-none-any.whl → 3.1.95__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 +44 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +1057 -52
- huaweicloudsdkeihealth/v1/eihealth_client.py +1057 -52
- huaweicloudsdkeihealth/v1/model/__init__.py +44 -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/bind_site_dto.py +30 -1
- 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_drug_database_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
- 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_optm_job_req.py +30 -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/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/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/get_archive_config_rsp.py +3 -32
- 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 +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/search_type.py +88 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -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-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/RECORD +60 -16
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/top_level.txt +0 -0
@@ -32,6 +32,73 @@ class EiHealthClient(Client):
|
|
32
32
|
|
33
33
|
return client_builder
|
34
34
|
|
35
|
+
def add_drug_database_file(self, request):
|
36
|
+
"""数据库追加文件
|
37
|
+
|
38
|
+
数据库追加文件
|
39
|
+
|
40
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
41
|
+
|
42
|
+
:param request: Request instance for AddDrugDatabaseFile
|
43
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.AddDrugDatabaseFileRequest`
|
44
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.AddDrugDatabaseFileResponse`
|
45
|
+
"""
|
46
|
+
http_info = self._add_drug_database_file_http_info(request)
|
47
|
+
return self._call_api(**http_info)
|
48
|
+
|
49
|
+
def add_drug_database_file_invoker(self, request):
|
50
|
+
http_info = self._add_drug_database_file_http_info(request)
|
51
|
+
return SyncInvoker(self, http_info)
|
52
|
+
|
53
|
+
@classmethod
|
54
|
+
def _add_drug_database_file_http_info(cls, request):
|
55
|
+
http_info = {
|
56
|
+
"method": "PUT",
|
57
|
+
"resource_path": "/v1/{project_id}/drug/databases/{database_id}/data",
|
58
|
+
"request_type": request.__class__.__name__,
|
59
|
+
"response_type": "AddDrugDatabaseFileResponse"
|
60
|
+
}
|
61
|
+
|
62
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
63
|
+
|
64
|
+
cname = None
|
65
|
+
|
66
|
+
collection_formats = {}
|
67
|
+
|
68
|
+
path_params = {}
|
69
|
+
if 'database_id' in local_var_params:
|
70
|
+
path_params['database_id'] = local_var_params['database_id']
|
71
|
+
|
72
|
+
query_params = []
|
73
|
+
|
74
|
+
header_params = {}
|
75
|
+
|
76
|
+
form_params = {}
|
77
|
+
|
78
|
+
body = None
|
79
|
+
if 'body' in local_var_params:
|
80
|
+
body = local_var_params['body']
|
81
|
+
if isinstance(request, SdkStreamRequest):
|
82
|
+
body = request.get_file_stream()
|
83
|
+
|
84
|
+
response_headers = []
|
85
|
+
|
86
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
87
|
+
['application/json'])
|
88
|
+
|
89
|
+
auth_settings = []
|
90
|
+
|
91
|
+
http_info["cname"] = cname
|
92
|
+
http_info["collection_formats"] = collection_formats
|
93
|
+
http_info["path_params"] = path_params
|
94
|
+
http_info["query_params"] = query_params
|
95
|
+
http_info["header_params"] = header_params
|
96
|
+
http_info["post_params"] = form_params
|
97
|
+
http_info["body"] = body
|
98
|
+
http_info["response_headers"] = response_headers
|
99
|
+
|
100
|
+
return http_info
|
101
|
+
|
35
102
|
def batch_cancel_job(self, request):
|
36
103
|
"""批量取消作业
|
37
104
|
|
@@ -2034,6 +2101,71 @@ class EiHealthClient(Client):
|
|
2034
2101
|
|
2035
2102
|
return http_info
|
2036
2103
|
|
2104
|
+
def create_drug_database(self, request):
|
2105
|
+
"""创建数据库
|
2106
|
+
|
2107
|
+
创建数据库
|
2108
|
+
|
2109
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2110
|
+
|
2111
|
+
:param request: Request instance for CreateDrugDatabase
|
2112
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.CreateDrugDatabaseRequest`
|
2113
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugDatabaseResponse`
|
2114
|
+
"""
|
2115
|
+
http_info = self._create_drug_database_http_info(request)
|
2116
|
+
return self._call_api(**http_info)
|
2117
|
+
|
2118
|
+
def create_drug_database_invoker(self, request):
|
2119
|
+
http_info = self._create_drug_database_http_info(request)
|
2120
|
+
return SyncInvoker(self, http_info)
|
2121
|
+
|
2122
|
+
@classmethod
|
2123
|
+
def _create_drug_database_http_info(cls, request):
|
2124
|
+
http_info = {
|
2125
|
+
"method": "POST",
|
2126
|
+
"resource_path": "/v1/{project_id}/drug/databases",
|
2127
|
+
"request_type": request.__class__.__name__,
|
2128
|
+
"response_type": "CreateDrugDatabaseResponse"
|
2129
|
+
}
|
2130
|
+
|
2131
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2132
|
+
|
2133
|
+
cname = None
|
2134
|
+
|
2135
|
+
collection_formats = {}
|
2136
|
+
|
2137
|
+
path_params = {}
|
2138
|
+
|
2139
|
+
query_params = []
|
2140
|
+
|
2141
|
+
header_params = {}
|
2142
|
+
|
2143
|
+
form_params = {}
|
2144
|
+
|
2145
|
+
body = None
|
2146
|
+
if 'body' in local_var_params:
|
2147
|
+
body = local_var_params['body']
|
2148
|
+
if isinstance(request, SdkStreamRequest):
|
2149
|
+
body = request.get_file_stream()
|
2150
|
+
|
2151
|
+
response_headers = []
|
2152
|
+
|
2153
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2154
|
+
['application/json'])
|
2155
|
+
|
2156
|
+
auth_settings = []
|
2157
|
+
|
2158
|
+
http_info["cname"] = cname
|
2159
|
+
http_info["collection_formats"] = collection_formats
|
2160
|
+
http_info["path_params"] = path_params
|
2161
|
+
http_info["query_params"] = query_params
|
2162
|
+
http_info["header_params"] = header_params
|
2163
|
+
http_info["post_params"] = form_params
|
2164
|
+
http_info["body"] = body
|
2165
|
+
http_info["response_headers"] = response_headers
|
2166
|
+
|
2167
|
+
return http_info
|
2168
|
+
|
2037
2169
|
def create_drug_model(self, request):
|
2038
2170
|
"""创建模型
|
2039
2171
|
|
@@ -2432,6 +2564,73 @@ class EiHealthClient(Client):
|
|
2432
2564
|
|
2433
2565
|
return http_info
|
2434
2566
|
|
2567
|
+
def create_mol_batch_download_task(self, request):
|
2568
|
+
"""创建分子或分子复合物批量下载任务
|
2569
|
+
|
2570
|
+
创建分子或分子复合物批量下载任务
|
2571
|
+
|
2572
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2573
|
+
|
2574
|
+
:param request: Request instance for CreateMolBatchDownloadTask
|
2575
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.CreateMolBatchDownloadTaskRequest`
|
2576
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateMolBatchDownloadTaskResponse`
|
2577
|
+
"""
|
2578
|
+
http_info = self._create_mol_batch_download_task_http_info(request)
|
2579
|
+
return self._call_api(**http_info)
|
2580
|
+
|
2581
|
+
def create_mol_batch_download_task_invoker(self, request):
|
2582
|
+
http_info = self._create_mol_batch_download_task_http_info(request)
|
2583
|
+
return SyncInvoker(self, http_info)
|
2584
|
+
|
2585
|
+
@classmethod
|
2586
|
+
def _create_mol_batch_download_task_http_info(cls, request):
|
2587
|
+
http_info = {
|
2588
|
+
"method": "POST",
|
2589
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/toolkit/batch-download",
|
2590
|
+
"request_type": request.__class__.__name__,
|
2591
|
+
"response_type": "CreateMolBatchDownloadTaskResponse"
|
2592
|
+
}
|
2593
|
+
|
2594
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2595
|
+
|
2596
|
+
cname = None
|
2597
|
+
|
2598
|
+
collection_formats = {}
|
2599
|
+
|
2600
|
+
path_params = {}
|
2601
|
+
if 'eihealth_project_id' in local_var_params:
|
2602
|
+
path_params['eihealth_project_id'] = local_var_params['eihealth_project_id']
|
2603
|
+
|
2604
|
+
query_params = []
|
2605
|
+
|
2606
|
+
header_params = {}
|
2607
|
+
|
2608
|
+
form_params = {}
|
2609
|
+
|
2610
|
+
body = None
|
2611
|
+
if 'body' in local_var_params:
|
2612
|
+
body = local_var_params['body']
|
2613
|
+
if isinstance(request, SdkStreamRequest):
|
2614
|
+
body = request.get_file_stream()
|
2615
|
+
|
2616
|
+
response_headers = []
|
2617
|
+
|
2618
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2619
|
+
['application/json'])
|
2620
|
+
|
2621
|
+
auth_settings = []
|
2622
|
+
|
2623
|
+
http_info["cname"] = cname
|
2624
|
+
http_info["collection_formats"] = collection_formats
|
2625
|
+
http_info["path_params"] = path_params
|
2626
|
+
http_info["query_params"] = query_params
|
2627
|
+
http_info["header_params"] = header_params
|
2628
|
+
http_info["post_params"] = form_params
|
2629
|
+
http_info["body"] = body
|
2630
|
+
http_info["response_headers"] = response_headers
|
2631
|
+
|
2632
|
+
return http_info
|
2633
|
+
|
2435
2634
|
def create_optm_job(self, request):
|
2436
2635
|
"""创建分子优化作业
|
2437
2636
|
|
@@ -2828,6 +3027,73 @@ class EiHealthClient(Client):
|
|
2828
3027
|
|
2829
3028
|
return http_info
|
2830
3029
|
|
3030
|
+
def create_search_job(self, request):
|
3031
|
+
"""创建分子搜索作业
|
3032
|
+
|
3033
|
+
创建分子搜索作业
|
3034
|
+
|
3035
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3036
|
+
|
3037
|
+
:param request: Request instance for CreateSearchJob
|
3038
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.CreateSearchJobRequest`
|
3039
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateSearchJobResponse`
|
3040
|
+
"""
|
3041
|
+
http_info = self._create_search_job_http_info(request)
|
3042
|
+
return self._call_api(**http_info)
|
3043
|
+
|
3044
|
+
def create_search_job_invoker(self, request):
|
3045
|
+
http_info = self._create_search_job_http_info(request)
|
3046
|
+
return SyncInvoker(self, http_info)
|
3047
|
+
|
3048
|
+
@classmethod
|
3049
|
+
def _create_search_job_http_info(cls, request):
|
3050
|
+
http_info = {
|
3051
|
+
"method": "POST",
|
3052
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/search",
|
3053
|
+
"request_type": request.__class__.__name__,
|
3054
|
+
"response_type": "CreateSearchJobResponse"
|
3055
|
+
}
|
3056
|
+
|
3057
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3058
|
+
|
3059
|
+
cname = None
|
3060
|
+
|
3061
|
+
collection_formats = {}
|
3062
|
+
|
3063
|
+
path_params = {}
|
3064
|
+
if 'eihealth_project_id' in local_var_params:
|
3065
|
+
path_params['eihealth_project_id'] = local_var_params['eihealth_project_id']
|
3066
|
+
|
3067
|
+
query_params = []
|
3068
|
+
|
3069
|
+
header_params = {}
|
3070
|
+
|
3071
|
+
form_params = {}
|
3072
|
+
|
3073
|
+
body = None
|
3074
|
+
if 'body' in local_var_params:
|
3075
|
+
body = local_var_params['body']
|
3076
|
+
if isinstance(request, SdkStreamRequest):
|
3077
|
+
body = request.get_file_stream()
|
3078
|
+
|
3079
|
+
response_headers = []
|
3080
|
+
|
3081
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3082
|
+
['application/json'])
|
3083
|
+
|
3084
|
+
auth_settings = []
|
3085
|
+
|
3086
|
+
http_info["cname"] = cname
|
3087
|
+
http_info["collection_formats"] = collection_formats
|
3088
|
+
http_info["path_params"] = path_params
|
3089
|
+
http_info["query_params"] = query_params
|
3090
|
+
http_info["header_params"] = header_params
|
3091
|
+
http_info["post_params"] = form_params
|
3092
|
+
http_info["body"] = body
|
3093
|
+
http_info["response_headers"] = response_headers
|
3094
|
+
|
3095
|
+
return http_info
|
3096
|
+
|
2831
3097
|
def create_study(self, request):
|
2832
3098
|
"""创建study
|
2833
3099
|
|
@@ -3764,31 +4030,31 @@ class EiHealthClient(Client):
|
|
3764
4030
|
|
3765
4031
|
return http_info
|
3766
4032
|
|
3767
|
-
def
|
3768
|
-
"""
|
4033
|
+
def delete_drug_database(self, request):
|
4034
|
+
"""删除数据库
|
3769
4035
|
|
3770
|
-
|
4036
|
+
删除数据库
|
3771
4037
|
|
3772
4038
|
Please refer to HUAWEI cloud API Explorer for details.
|
3773
4039
|
|
3774
|
-
:param request: Request instance for
|
3775
|
-
:type request: :class:`huaweicloudsdkeihealth.v1.
|
3776
|
-
:rtype: :class:`huaweicloudsdkeihealth.v1.
|
4040
|
+
:param request: Request instance for DeleteDrugDatabase
|
4041
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.DeleteDrugDatabaseRequest`
|
4042
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DeleteDrugDatabaseResponse`
|
3777
4043
|
"""
|
3778
|
-
http_info = self.
|
4044
|
+
http_info = self._delete_drug_database_http_info(request)
|
3779
4045
|
return self._call_api(**http_info)
|
3780
4046
|
|
3781
|
-
def
|
3782
|
-
http_info = self.
|
4047
|
+
def delete_drug_database_invoker(self, request):
|
4048
|
+
http_info = self._delete_drug_database_http_info(request)
|
3783
4049
|
return SyncInvoker(self, http_info)
|
3784
4050
|
|
3785
4051
|
@classmethod
|
3786
|
-
def
|
4052
|
+
def _delete_drug_database_http_info(cls, request):
|
3787
4053
|
http_info = {
|
3788
4054
|
"method": "DELETE",
|
3789
|
-
"resource_path": "/v1/{project_id}/
|
4055
|
+
"resource_path": "/v1/{project_id}/drug/databases/{database_id}",
|
3790
4056
|
"request_type": request.__class__.__name__,
|
3791
|
-
"response_type": "
|
4057
|
+
"response_type": "DeleteDrugDatabaseResponse"
|
3792
4058
|
}
|
3793
4059
|
|
3794
4060
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3798,10 +4064,8 @@ class EiHealthClient(Client):
|
|
3798
4064
|
collection_formats = {}
|
3799
4065
|
|
3800
4066
|
path_params = {}
|
3801
|
-
if '
|
3802
|
-
path_params['
|
3803
|
-
if 'job_id' in local_var_params:
|
3804
|
-
path_params['job_id'] = local_var_params['job_id']
|
4067
|
+
if 'database_id' in local_var_params:
|
4068
|
+
path_params['database_id'] = local_var_params['database_id']
|
3805
4069
|
|
3806
4070
|
query_params = []
|
3807
4071
|
|
@@ -3831,26 +4095,93 @@ class EiHealthClient(Client):
|
|
3831
4095
|
|
3832
4096
|
return http_info
|
3833
4097
|
|
3834
|
-
def
|
3835
|
-
"""
|
4098
|
+
def delete_drug_job(self, request):
|
4099
|
+
"""删除药物作业
|
3836
4100
|
|
3837
|
-
|
4101
|
+
删除药物作业
|
3838
4102
|
|
3839
4103
|
Please refer to HUAWEI cloud API Explorer for details.
|
3840
4104
|
|
3841
|
-
:param request: Request instance for
|
3842
|
-
:type request: :class:`huaweicloudsdkeihealth.v1.
|
3843
|
-
:rtype: :class:`huaweicloudsdkeihealth.v1.
|
4105
|
+
:param request: Request instance for DeleteDrugJob
|
4106
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.DeleteDrugJobRequest`
|
4107
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DeleteDrugJobResponse`
|
3844
4108
|
"""
|
3845
|
-
http_info = self.
|
4109
|
+
http_info = self._delete_drug_job_http_info(request)
|
3846
4110
|
return self._call_api(**http_info)
|
3847
4111
|
|
3848
|
-
def
|
3849
|
-
http_info = self.
|
4112
|
+
def delete_drug_job_invoker(self, request):
|
4113
|
+
http_info = self._delete_drug_job_http_info(request)
|
3850
4114
|
return SyncInvoker(self, http_info)
|
3851
4115
|
|
3852
4116
|
@classmethod
|
3853
|
-
def
|
4117
|
+
def _delete_drug_job_http_info(cls, request):
|
4118
|
+
http_info = {
|
4119
|
+
"method": "DELETE",
|
4120
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/{job_id}",
|
4121
|
+
"request_type": request.__class__.__name__,
|
4122
|
+
"response_type": "DeleteDrugJobResponse"
|
4123
|
+
}
|
4124
|
+
|
4125
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4126
|
+
|
4127
|
+
cname = None
|
4128
|
+
|
4129
|
+
collection_formats = {}
|
4130
|
+
|
4131
|
+
path_params = {}
|
4132
|
+
if 'eihealth_project_id' in local_var_params:
|
4133
|
+
path_params['eihealth_project_id'] = local_var_params['eihealth_project_id']
|
4134
|
+
if 'job_id' in local_var_params:
|
4135
|
+
path_params['job_id'] = local_var_params['job_id']
|
4136
|
+
|
4137
|
+
query_params = []
|
4138
|
+
|
4139
|
+
header_params = {}
|
4140
|
+
|
4141
|
+
form_params = {}
|
4142
|
+
|
4143
|
+
body = None
|
4144
|
+
if isinstance(request, SdkStreamRequest):
|
4145
|
+
body = request.get_file_stream()
|
4146
|
+
|
4147
|
+
response_headers = []
|
4148
|
+
|
4149
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4150
|
+
['application/json'])
|
4151
|
+
|
4152
|
+
auth_settings = []
|
4153
|
+
|
4154
|
+
http_info["cname"] = cname
|
4155
|
+
http_info["collection_formats"] = collection_formats
|
4156
|
+
http_info["path_params"] = path_params
|
4157
|
+
http_info["query_params"] = query_params
|
4158
|
+
http_info["header_params"] = header_params
|
4159
|
+
http_info["post_params"] = form_params
|
4160
|
+
http_info["body"] = body
|
4161
|
+
http_info["response_headers"] = response_headers
|
4162
|
+
|
4163
|
+
return http_info
|
4164
|
+
|
4165
|
+
def delete_drug_model(self, request):
|
4166
|
+
"""删除模型
|
4167
|
+
|
4168
|
+
删除模型
|
4169
|
+
|
4170
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4171
|
+
|
4172
|
+
:param request: Request instance for DeleteDrugModel
|
4173
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.DeleteDrugModelRequest`
|
4174
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DeleteDrugModelResponse`
|
4175
|
+
"""
|
4176
|
+
http_info = self._delete_drug_model_http_info(request)
|
4177
|
+
return self._call_api(**http_info)
|
4178
|
+
|
4179
|
+
def delete_drug_model_invoker(self, request):
|
4180
|
+
http_info = self._delete_drug_model_http_info(request)
|
4181
|
+
return SyncInvoker(self, http_info)
|
4182
|
+
|
4183
|
+
@classmethod
|
4184
|
+
def _delete_drug_model_http_info(cls, request):
|
3854
4185
|
http_info = {
|
3855
4186
|
"method": "DELETE",
|
3856
4187
|
"resource_path": "/v1/{project_id}/drug-models/{model_id}",
|
@@ -6949,6 +7280,81 @@ class EiHealthClient(Client):
|
|
6949
7280
|
|
6950
7281
|
return http_info
|
6951
7282
|
|
7283
|
+
def list_drug_database(self, request):
|
7284
|
+
"""获取数据库列表
|
7285
|
+
|
7286
|
+
获取数据库列表
|
7287
|
+
|
7288
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7289
|
+
|
7290
|
+
:param request: Request instance for ListDrugDatabase
|
7291
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListDrugDatabaseRequest`
|
7292
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListDrugDatabaseResponse`
|
7293
|
+
"""
|
7294
|
+
http_info = self._list_drug_database_http_info(request)
|
7295
|
+
return self._call_api(**http_info)
|
7296
|
+
|
7297
|
+
def list_drug_database_invoker(self, request):
|
7298
|
+
http_info = self._list_drug_database_http_info(request)
|
7299
|
+
return SyncInvoker(self, http_info)
|
7300
|
+
|
7301
|
+
@classmethod
|
7302
|
+
def _list_drug_database_http_info(cls, request):
|
7303
|
+
http_info = {
|
7304
|
+
"method": "GET",
|
7305
|
+
"resource_path": "/v1/{project_id}/drug/databases",
|
7306
|
+
"request_type": request.__class__.__name__,
|
7307
|
+
"response_type": "ListDrugDatabaseResponse"
|
7308
|
+
}
|
7309
|
+
|
7310
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7311
|
+
|
7312
|
+
cname = None
|
7313
|
+
|
7314
|
+
collection_formats = {}
|
7315
|
+
|
7316
|
+
path_params = {}
|
7317
|
+
|
7318
|
+
query_params = []
|
7319
|
+
if 'search_key' in local_var_params:
|
7320
|
+
query_params.append(('search_key', local_var_params['search_key']))
|
7321
|
+
if 'type' in local_var_params:
|
7322
|
+
query_params.append(('type', local_var_params['type']))
|
7323
|
+
if 'sort_key' in local_var_params:
|
7324
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
7325
|
+
if 'sort_dir' in local_var_params:
|
7326
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
7327
|
+
if 'limit' in local_var_params:
|
7328
|
+
query_params.append(('limit', local_var_params['limit']))
|
7329
|
+
if 'offset' in local_var_params:
|
7330
|
+
query_params.append(('offset', local_var_params['offset']))
|
7331
|
+
|
7332
|
+
header_params = {}
|
7333
|
+
|
7334
|
+
form_params = {}
|
7335
|
+
|
7336
|
+
body = None
|
7337
|
+
if isinstance(request, SdkStreamRequest):
|
7338
|
+
body = request.get_file_stream()
|
7339
|
+
|
7340
|
+
response_headers = []
|
7341
|
+
|
7342
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7343
|
+
['application/json'])
|
7344
|
+
|
7345
|
+
auth_settings = []
|
7346
|
+
|
7347
|
+
http_info["cname"] = cname
|
7348
|
+
http_info["collection_formats"] = collection_formats
|
7349
|
+
http_info["path_params"] = path_params
|
7350
|
+
http_info["query_params"] = query_params
|
7351
|
+
http_info["header_params"] = header_params
|
7352
|
+
http_info["post_params"] = form_params
|
7353
|
+
http_info["body"] = body
|
7354
|
+
http_info["response_headers"] = response_headers
|
7355
|
+
|
7356
|
+
return http_info
|
7357
|
+
|
6952
7358
|
def list_drug_job(self, request):
|
6953
7359
|
"""获取药物作业列表
|
6954
7360
|
|
@@ -11837,6 +12243,73 @@ class EiHealthClient(Client):
|
|
11837
12243
|
|
11838
12244
|
return http_info
|
11839
12245
|
|
12246
|
+
def show_mol_batch_download_task(self, request):
|
12247
|
+
"""查询分子或分子复合物批量下载任务详情
|
12248
|
+
|
12249
|
+
查询分子或分子复合物批量下载任务详情
|
12250
|
+
|
12251
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
12252
|
+
|
12253
|
+
:param request: Request instance for ShowMolBatchDownloadTask
|
12254
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ShowMolBatchDownloadTaskRequest`
|
12255
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ShowMolBatchDownloadTaskResponse`
|
12256
|
+
"""
|
12257
|
+
http_info = self._show_mol_batch_download_task_http_info(request)
|
12258
|
+
return self._call_api(**http_info)
|
12259
|
+
|
12260
|
+
def show_mol_batch_download_task_invoker(self, request):
|
12261
|
+
http_info = self._show_mol_batch_download_task_http_info(request)
|
12262
|
+
return SyncInvoker(self, http_info)
|
12263
|
+
|
12264
|
+
@classmethod
|
12265
|
+
def _show_mol_batch_download_task_http_info(cls, request):
|
12266
|
+
http_info = {
|
12267
|
+
"method": "GET",
|
12268
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/toolkit/batch-download/{task_id}",
|
12269
|
+
"request_type": request.__class__.__name__,
|
12270
|
+
"response_type": "ShowMolBatchDownloadTaskResponse"
|
12271
|
+
}
|
12272
|
+
|
12273
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
12274
|
+
|
12275
|
+
cname = None
|
12276
|
+
|
12277
|
+
collection_formats = {}
|
12278
|
+
|
12279
|
+
path_params = {}
|
12280
|
+
if 'eihealth_project_id' in local_var_params:
|
12281
|
+
path_params['eihealth_project_id'] = local_var_params['eihealth_project_id']
|
12282
|
+
if 'task_id' in local_var_params:
|
12283
|
+
path_params['task_id'] = local_var_params['task_id']
|
12284
|
+
|
12285
|
+
query_params = []
|
12286
|
+
|
12287
|
+
header_params = {}
|
12288
|
+
|
12289
|
+
form_params = {}
|
12290
|
+
|
12291
|
+
body = None
|
12292
|
+
if isinstance(request, SdkStreamRequest):
|
12293
|
+
body = request.get_file_stream()
|
12294
|
+
|
12295
|
+
response_headers = []
|
12296
|
+
|
12297
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
12298
|
+
['application/json'])
|
12299
|
+
|
12300
|
+
auth_settings = []
|
12301
|
+
|
12302
|
+
http_info["cname"] = cname
|
12303
|
+
http_info["collection_formats"] = collection_formats
|
12304
|
+
http_info["path_params"] = path_params
|
12305
|
+
http_info["query_params"] = query_params
|
12306
|
+
http_info["header_params"] = header_params
|
12307
|
+
http_info["post_params"] = form_params
|
12308
|
+
http_info["body"] = body
|
12309
|
+
http_info["response_headers"] = response_headers
|
12310
|
+
|
12311
|
+
return http_info
|
12312
|
+
|
11840
12313
|
def show_optm_job(self, request):
|
11841
12314
|
"""查询分子优化作业详情
|
11842
12315
|
|
@@ -12580,6 +13053,73 @@ class EiHealthClient(Client):
|
|
12580
13053
|
|
12581
13054
|
return http_info
|
12582
13055
|
|
13056
|
+
def show_search_job(self, request):
|
13057
|
+
"""查询分子搜索作业详情
|
13058
|
+
|
13059
|
+
查询分子搜索作业详情
|
13060
|
+
|
13061
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
13062
|
+
|
13063
|
+
:param request: Request instance for ShowSearchJob
|
13064
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ShowSearchJobRequest`
|
13065
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ShowSearchJobResponse`
|
13066
|
+
"""
|
13067
|
+
http_info = self._show_search_job_http_info(request)
|
13068
|
+
return self._call_api(**http_info)
|
13069
|
+
|
13070
|
+
def show_search_job_invoker(self, request):
|
13071
|
+
http_info = self._show_search_job_http_info(request)
|
13072
|
+
return SyncInvoker(self, http_info)
|
13073
|
+
|
13074
|
+
@classmethod
|
13075
|
+
def _show_search_job_http_info(cls, request):
|
13076
|
+
http_info = {
|
13077
|
+
"method": "GET",
|
13078
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/search/{job_id}",
|
13079
|
+
"request_type": request.__class__.__name__,
|
13080
|
+
"response_type": "ShowSearchJobResponse"
|
13081
|
+
}
|
13082
|
+
|
13083
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
13084
|
+
|
13085
|
+
cname = None
|
13086
|
+
|
13087
|
+
collection_formats = {}
|
13088
|
+
|
13089
|
+
path_params = {}
|
13090
|
+
if 'eihealth_project_id' in local_var_params:
|
13091
|
+
path_params['eihealth_project_id'] = local_var_params['eihealth_project_id']
|
13092
|
+
if 'job_id' in local_var_params:
|
13093
|
+
path_params['job_id'] = local_var_params['job_id']
|
13094
|
+
|
13095
|
+
query_params = []
|
13096
|
+
|
13097
|
+
header_params = {}
|
13098
|
+
|
13099
|
+
form_params = {}
|
13100
|
+
|
13101
|
+
body = None
|
13102
|
+
if isinstance(request, SdkStreamRequest):
|
13103
|
+
body = request.get_file_stream()
|
13104
|
+
|
13105
|
+
response_headers = []
|
13106
|
+
|
13107
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
13108
|
+
['application/json'])
|
13109
|
+
|
13110
|
+
auth_settings = []
|
13111
|
+
|
13112
|
+
http_info["cname"] = cname
|
13113
|
+
http_info["collection_formats"] = collection_formats
|
13114
|
+
http_info["path_params"] = path_params
|
13115
|
+
http_info["query_params"] = query_params
|
13116
|
+
http_info["header_params"] = header_params
|
13117
|
+
http_info["post_params"] = form_params
|
13118
|
+
http_info["body"] = body
|
13119
|
+
http_info["response_headers"] = response_headers
|
13120
|
+
|
13121
|
+
return http_info
|
13122
|
+
|
12583
13123
|
def show_synthesis_job(self, request):
|
12584
13124
|
"""查询分子合成路径规划作业详情
|
12585
13125
|
|
@@ -14555,31 +15095,31 @@ class EiHealthClient(Client):
|
|
14555
15095
|
|
14556
15096
|
return http_info
|
14557
15097
|
|
14558
|
-
def
|
14559
|
-
"""
|
15098
|
+
def update_drug_database(self, request):
|
15099
|
+
"""更新药物数据库
|
14560
15100
|
|
14561
|
-
|
15101
|
+
更新药物数据库
|
14562
15102
|
|
14563
15103
|
Please refer to HUAWEI cloud API Explorer for details.
|
14564
15104
|
|
14565
|
-
:param request: Request instance for
|
14566
|
-
:type request: :class:`huaweicloudsdkeihealth.v1.
|
14567
|
-
:rtype: :class:`huaweicloudsdkeihealth.v1.
|
15105
|
+
:param request: Request instance for UpdateDrugDatabase
|
15106
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.UpdateDrugDatabaseRequest`
|
15107
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.UpdateDrugDatabaseResponse`
|
14568
15108
|
"""
|
14569
|
-
http_info = self.
|
15109
|
+
http_info = self._update_drug_database_http_info(request)
|
14570
15110
|
return self._call_api(**http_info)
|
14571
15111
|
|
14572
|
-
def
|
14573
|
-
http_info = self.
|
15112
|
+
def update_drug_database_invoker(self, request):
|
15113
|
+
http_info = self._update_drug_database_http_info(request)
|
14574
15114
|
return SyncInvoker(self, http_info)
|
14575
15115
|
|
14576
15116
|
@classmethod
|
14577
|
-
def
|
15117
|
+
def _update_drug_database_http_info(cls, request):
|
14578
15118
|
http_info = {
|
14579
15119
|
"method": "PUT",
|
14580
|
-
"resource_path": "/v1/{project_id}/drug
|
15120
|
+
"resource_path": "/v1/{project_id}/drug/databases/{database_id}",
|
14581
15121
|
"request_type": request.__class__.__name__,
|
14582
|
-
"response_type": "
|
15122
|
+
"response_type": "UpdateDrugDatabaseResponse"
|
14583
15123
|
}
|
14584
15124
|
|
14585
15125
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -14589,8 +15129,144 @@ class EiHealthClient(Client):
|
|
14589
15129
|
collection_formats = {}
|
14590
15130
|
|
14591
15131
|
path_params = {}
|
14592
|
-
if '
|
14593
|
-
path_params['
|
15132
|
+
if 'database_id' in local_var_params:
|
15133
|
+
path_params['database_id'] = local_var_params['database_id']
|
15134
|
+
|
15135
|
+
query_params = []
|
15136
|
+
|
15137
|
+
header_params = {}
|
15138
|
+
|
15139
|
+
form_params = {}
|
15140
|
+
|
15141
|
+
body = None
|
15142
|
+
if 'body' in local_var_params:
|
15143
|
+
body = local_var_params['body']
|
15144
|
+
if isinstance(request, SdkStreamRequest):
|
15145
|
+
body = request.get_file_stream()
|
15146
|
+
|
15147
|
+
response_headers = []
|
15148
|
+
|
15149
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
15150
|
+
['application/json'])
|
15151
|
+
|
15152
|
+
auth_settings = []
|
15153
|
+
|
15154
|
+
http_info["cname"] = cname
|
15155
|
+
http_info["collection_formats"] = collection_formats
|
15156
|
+
http_info["path_params"] = path_params
|
15157
|
+
http_info["query_params"] = query_params
|
15158
|
+
http_info["header_params"] = header_params
|
15159
|
+
http_info["post_params"] = form_params
|
15160
|
+
http_info["body"] = body
|
15161
|
+
http_info["response_headers"] = response_headers
|
15162
|
+
|
15163
|
+
return http_info
|
15164
|
+
|
15165
|
+
def update_drug_job(self, request):
|
15166
|
+
"""更新药物作业
|
15167
|
+
|
15168
|
+
更新药物作业
|
15169
|
+
|
15170
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
15171
|
+
|
15172
|
+
:param request: Request instance for UpdateDrugJob
|
15173
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.UpdateDrugJobRequest`
|
15174
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.UpdateDrugJobResponse`
|
15175
|
+
"""
|
15176
|
+
http_info = self._update_drug_job_http_info(request)
|
15177
|
+
return self._call_api(**http_info)
|
15178
|
+
|
15179
|
+
def update_drug_job_invoker(self, request):
|
15180
|
+
http_info = self._update_drug_job_http_info(request)
|
15181
|
+
return SyncInvoker(self, http_info)
|
15182
|
+
|
15183
|
+
@classmethod
|
15184
|
+
def _update_drug_job_http_info(cls, request):
|
15185
|
+
http_info = {
|
15186
|
+
"method": "PUT",
|
15187
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/{job_id}",
|
15188
|
+
"request_type": request.__class__.__name__,
|
15189
|
+
"response_type": "UpdateDrugJobResponse"
|
15190
|
+
}
|
15191
|
+
|
15192
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
15193
|
+
|
15194
|
+
cname = None
|
15195
|
+
|
15196
|
+
collection_formats = {}
|
15197
|
+
|
15198
|
+
path_params = {}
|
15199
|
+
if 'eihealth_project_id' in local_var_params:
|
15200
|
+
path_params['eihealth_project_id'] = local_var_params['eihealth_project_id']
|
15201
|
+
if 'job_id' in local_var_params:
|
15202
|
+
path_params['job_id'] = local_var_params['job_id']
|
15203
|
+
|
15204
|
+
query_params = []
|
15205
|
+
|
15206
|
+
header_params = {}
|
15207
|
+
|
15208
|
+
form_params = {}
|
15209
|
+
|
15210
|
+
body = None
|
15211
|
+
if 'body' in local_var_params:
|
15212
|
+
body = local_var_params['body']
|
15213
|
+
if isinstance(request, SdkStreamRequest):
|
15214
|
+
body = request.get_file_stream()
|
15215
|
+
|
15216
|
+
response_headers = []
|
15217
|
+
|
15218
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
15219
|
+
['application/json'])
|
15220
|
+
|
15221
|
+
auth_settings = []
|
15222
|
+
|
15223
|
+
http_info["cname"] = cname
|
15224
|
+
http_info["collection_formats"] = collection_formats
|
15225
|
+
http_info["path_params"] = path_params
|
15226
|
+
http_info["query_params"] = query_params
|
15227
|
+
http_info["header_params"] = header_params
|
15228
|
+
http_info["post_params"] = form_params
|
15229
|
+
http_info["body"] = body
|
15230
|
+
http_info["response_headers"] = response_headers
|
15231
|
+
|
15232
|
+
return http_info
|
15233
|
+
|
15234
|
+
def update_drug_model(self, request):
|
15235
|
+
"""更新药物模型
|
15236
|
+
|
15237
|
+
更新药物模型
|
15238
|
+
|
15239
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
15240
|
+
|
15241
|
+
:param request: Request instance for UpdateDrugModel
|
15242
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.UpdateDrugModelRequest`
|
15243
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.UpdateDrugModelResponse`
|
15244
|
+
"""
|
15245
|
+
http_info = self._update_drug_model_http_info(request)
|
15246
|
+
return self._call_api(**http_info)
|
15247
|
+
|
15248
|
+
def update_drug_model_invoker(self, request):
|
15249
|
+
http_info = self._update_drug_model_http_info(request)
|
15250
|
+
return SyncInvoker(self, http_info)
|
15251
|
+
|
15252
|
+
@classmethod
|
15253
|
+
def _update_drug_model_http_info(cls, request):
|
15254
|
+
http_info = {
|
15255
|
+
"method": "PUT",
|
15256
|
+
"resource_path": "/v1/{project_id}/drug-models/{model_id}",
|
15257
|
+
"request_type": request.__class__.__name__,
|
15258
|
+
"response_type": "UpdateDrugModelResponse"
|
15259
|
+
}
|
15260
|
+
|
15261
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
15262
|
+
|
15263
|
+
cname = None
|
15264
|
+
|
15265
|
+
collection_formats = {}
|
15266
|
+
|
15267
|
+
path_params = {}
|
15268
|
+
if 'model_id' in local_var_params:
|
15269
|
+
path_params['model_id'] = local_var_params['model_id']
|
14594
15270
|
|
14595
15271
|
query_params = []
|
14596
15272
|
|
@@ -16065,24 +16741,24 @@ class EiHealthClient(Client):
|
|
16065
16741
|
path_params['eihealth_project_id'] = local_var_params['eihealth_project_id']
|
16066
16742
|
|
16067
16743
|
query_params = []
|
16068
|
-
if 'target_folder' in local_var_params:
|
16069
|
-
query_params.append(('target_folder', local_var_params['target_folder']))
|
16070
|
-
if 'part_number' in local_var_params:
|
16071
|
-
query_params.append(('part_number', local_var_params['part_number']))
|
16072
|
-
if 'total_part' in local_var_params:
|
16073
|
-
query_params.append(('total_part', local_var_params['total_part']))
|
16074
|
-
if 'multipart_id' in local_var_params:
|
16075
|
-
query_params.append(('multipart_id', local_var_params['multipart_id']))
|
16076
|
-
if 'file_name' in local_var_params:
|
16077
|
-
query_params.append(('file_name', local_var_params['file_name']))
|
16078
|
-
if 'md5' in local_var_params:
|
16079
|
-
query_params.append(('md5', local_var_params['md5']))
|
16080
16744
|
|
16081
16745
|
header_params = {}
|
16082
16746
|
|
16083
16747
|
form_params = {}
|
16084
16748
|
if 'file' in local_var_params:
|
16085
16749
|
form_params['file'] = local_var_params['file']
|
16750
|
+
if 'target_folder' in local_var_params:
|
16751
|
+
form_params['target_folder'] = local_var_params['target_folder']
|
16752
|
+
if 'part_number' in local_var_params:
|
16753
|
+
form_params['part_number'] = local_var_params['part_number']
|
16754
|
+
if 'total_part' in local_var_params:
|
16755
|
+
form_params['total_part'] = local_var_params['total_part']
|
16756
|
+
if 'multipart_id' in local_var_params:
|
16757
|
+
form_params['multipart_id'] = local_var_params['multipart_id']
|
16758
|
+
if 'file_name' in local_var_params:
|
16759
|
+
form_params['file_name'] = local_var_params['file_name']
|
16760
|
+
if 'md5' in local_var_params:
|
16761
|
+
form_params['md5'] = local_var_params['md5']
|
16086
16762
|
|
16087
16763
|
body = None
|
16088
16764
|
if 'body' in local_var_params:
|
@@ -16439,6 +17115,335 @@ class EiHealthClient(Client):
|
|
16439
17115
|
|
16440
17116
|
return http_info
|
16441
17117
|
|
17118
|
+
def create_css_cluster(self, request):
|
17119
|
+
"""绑定CSS集群
|
17120
|
+
|
17121
|
+
绑定CSS集群
|
17122
|
+
|
17123
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
17124
|
+
|
17125
|
+
:param request: Request instance for CreateCssCluster
|
17126
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.CreateCssClusterRequest`
|
17127
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateCssClusterResponse`
|
17128
|
+
"""
|
17129
|
+
http_info = self._create_css_cluster_http_info(request)
|
17130
|
+
return self._call_api(**http_info)
|
17131
|
+
|
17132
|
+
def create_css_cluster_invoker(self, request):
|
17133
|
+
http_info = self._create_css_cluster_http_info(request)
|
17134
|
+
return SyncInvoker(self, http_info)
|
17135
|
+
|
17136
|
+
@classmethod
|
17137
|
+
def _create_css_cluster_http_info(cls, request):
|
17138
|
+
http_info = {
|
17139
|
+
"method": "POST",
|
17140
|
+
"resource_path": "/v1/{project_id}/drug/css-clusters",
|
17141
|
+
"request_type": request.__class__.__name__,
|
17142
|
+
"response_type": "CreateCssClusterResponse"
|
17143
|
+
}
|
17144
|
+
|
17145
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
17146
|
+
|
17147
|
+
cname = None
|
17148
|
+
|
17149
|
+
collection_formats = {}
|
17150
|
+
|
17151
|
+
path_params = {}
|
17152
|
+
|
17153
|
+
query_params = []
|
17154
|
+
|
17155
|
+
header_params = {}
|
17156
|
+
|
17157
|
+
form_params = {}
|
17158
|
+
|
17159
|
+
body = None
|
17160
|
+
if 'body' in local_var_params:
|
17161
|
+
body = local_var_params['body']
|
17162
|
+
if isinstance(request, SdkStreamRequest):
|
17163
|
+
body = request.get_file_stream()
|
17164
|
+
|
17165
|
+
response_headers = []
|
17166
|
+
|
17167
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
17168
|
+
['application/json'])
|
17169
|
+
|
17170
|
+
auth_settings = []
|
17171
|
+
|
17172
|
+
http_info["cname"] = cname
|
17173
|
+
http_info["collection_formats"] = collection_formats
|
17174
|
+
http_info["path_params"] = path_params
|
17175
|
+
http_info["query_params"] = query_params
|
17176
|
+
http_info["header_params"] = header_params
|
17177
|
+
http_info["post_params"] = form_params
|
17178
|
+
http_info["body"] = body
|
17179
|
+
http_info["response_headers"] = response_headers
|
17180
|
+
|
17181
|
+
return http_info
|
17182
|
+
|
17183
|
+
def delete_css_cluster(self, request):
|
17184
|
+
"""CSS集群解绑
|
17185
|
+
|
17186
|
+
CSS集群解绑
|
17187
|
+
|
17188
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
17189
|
+
|
17190
|
+
:param request: Request instance for DeleteCssCluster
|
17191
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.DeleteCssClusterRequest`
|
17192
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DeleteCssClusterResponse`
|
17193
|
+
"""
|
17194
|
+
http_info = self._delete_css_cluster_http_info(request)
|
17195
|
+
return self._call_api(**http_info)
|
17196
|
+
|
17197
|
+
def delete_css_cluster_invoker(self, request):
|
17198
|
+
http_info = self._delete_css_cluster_http_info(request)
|
17199
|
+
return SyncInvoker(self, http_info)
|
17200
|
+
|
17201
|
+
@classmethod
|
17202
|
+
def _delete_css_cluster_http_info(cls, request):
|
17203
|
+
http_info = {
|
17204
|
+
"method": "DELETE",
|
17205
|
+
"resource_path": "/v1/{project_id}/drug/css-clusters/{css_cluster_id}",
|
17206
|
+
"request_type": request.__class__.__name__,
|
17207
|
+
"response_type": "DeleteCssClusterResponse"
|
17208
|
+
}
|
17209
|
+
|
17210
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
17211
|
+
|
17212
|
+
cname = None
|
17213
|
+
|
17214
|
+
collection_formats = {}
|
17215
|
+
|
17216
|
+
path_params = {}
|
17217
|
+
if 'css_cluster_id' in local_var_params:
|
17218
|
+
path_params['css_cluster_id'] = local_var_params['css_cluster_id']
|
17219
|
+
|
17220
|
+
query_params = []
|
17221
|
+
|
17222
|
+
header_params = {}
|
17223
|
+
|
17224
|
+
form_params = {}
|
17225
|
+
|
17226
|
+
body = None
|
17227
|
+
if isinstance(request, SdkStreamRequest):
|
17228
|
+
body = request.get_file_stream()
|
17229
|
+
|
17230
|
+
response_headers = []
|
17231
|
+
|
17232
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
17233
|
+
['application/json'])
|
17234
|
+
|
17235
|
+
auth_settings = []
|
17236
|
+
|
17237
|
+
http_info["cname"] = cname
|
17238
|
+
http_info["collection_formats"] = collection_formats
|
17239
|
+
http_info["path_params"] = path_params
|
17240
|
+
http_info["query_params"] = query_params
|
17241
|
+
http_info["header_params"] = header_params
|
17242
|
+
http_info["post_params"] = form_params
|
17243
|
+
http_info["body"] = body
|
17244
|
+
http_info["response_headers"] = response_headers
|
17245
|
+
|
17246
|
+
return http_info
|
17247
|
+
|
17248
|
+
def list_css_cluster(self, request):
|
17249
|
+
"""获取CSS集群列表
|
17250
|
+
|
17251
|
+
获取CSS集群列表
|
17252
|
+
|
17253
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
17254
|
+
|
17255
|
+
:param request: Request instance for ListCssCluster
|
17256
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListCssClusterRequest`
|
17257
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListCssClusterResponse`
|
17258
|
+
"""
|
17259
|
+
http_info = self._list_css_cluster_http_info(request)
|
17260
|
+
return self._call_api(**http_info)
|
17261
|
+
|
17262
|
+
def list_css_cluster_invoker(self, request):
|
17263
|
+
http_info = self._list_css_cluster_http_info(request)
|
17264
|
+
return SyncInvoker(self, http_info)
|
17265
|
+
|
17266
|
+
@classmethod
|
17267
|
+
def _list_css_cluster_http_info(cls, request):
|
17268
|
+
http_info = {
|
17269
|
+
"method": "GET",
|
17270
|
+
"resource_path": "/v1/{project_id}/drug/css-clusters",
|
17271
|
+
"request_type": request.__class__.__name__,
|
17272
|
+
"response_type": "ListCssClusterResponse"
|
17273
|
+
}
|
17274
|
+
|
17275
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
17276
|
+
|
17277
|
+
cname = None
|
17278
|
+
|
17279
|
+
collection_formats = {}
|
17280
|
+
|
17281
|
+
path_params = {}
|
17282
|
+
|
17283
|
+
query_params = []
|
17284
|
+
if 'limit' in local_var_params:
|
17285
|
+
query_params.append(('limit', local_var_params['limit']))
|
17286
|
+
if 'offset' in local_var_params:
|
17287
|
+
query_params.append(('offset', local_var_params['offset']))
|
17288
|
+
|
17289
|
+
header_params = {}
|
17290
|
+
|
17291
|
+
form_params = {}
|
17292
|
+
|
17293
|
+
body = None
|
17294
|
+
if isinstance(request, SdkStreamRequest):
|
17295
|
+
body = request.get_file_stream()
|
17296
|
+
|
17297
|
+
response_headers = []
|
17298
|
+
|
17299
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
17300
|
+
['application/json'])
|
17301
|
+
|
17302
|
+
auth_settings = []
|
17303
|
+
|
17304
|
+
http_info["cname"] = cname
|
17305
|
+
http_info["collection_formats"] = collection_formats
|
17306
|
+
http_info["path_params"] = path_params
|
17307
|
+
http_info["query_params"] = query_params
|
17308
|
+
http_info["header_params"] = header_params
|
17309
|
+
http_info["post_params"] = form_params
|
17310
|
+
http_info["body"] = body
|
17311
|
+
http_info["response_headers"] = response_headers
|
17312
|
+
|
17313
|
+
return http_info
|
17314
|
+
|
17315
|
+
def list_term_tenant_css_cluster(self, request):
|
17316
|
+
"""获取最终租户CSS集群列表
|
17317
|
+
|
17318
|
+
获取最终租户CSS集群列表
|
17319
|
+
|
17320
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
17321
|
+
|
17322
|
+
:param request: Request instance for ListTermTenantCssCluster
|
17323
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListTermTenantCssClusterRequest`
|
17324
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListTermTenantCssClusterResponse`
|
17325
|
+
"""
|
17326
|
+
http_info = self._list_term_tenant_css_cluster_http_info(request)
|
17327
|
+
return self._call_api(**http_info)
|
17328
|
+
|
17329
|
+
def list_term_tenant_css_cluster_invoker(self, request):
|
17330
|
+
http_info = self._list_term_tenant_css_cluster_http_info(request)
|
17331
|
+
return SyncInvoker(self, http_info)
|
17332
|
+
|
17333
|
+
@classmethod
|
17334
|
+
def _list_term_tenant_css_cluster_http_info(cls, request):
|
17335
|
+
http_info = {
|
17336
|
+
"method": "GET",
|
17337
|
+
"resource_path": "/v1/{project_id}/css/clusters",
|
17338
|
+
"request_type": request.__class__.__name__,
|
17339
|
+
"response_type": "ListTermTenantCssClusterResponse"
|
17340
|
+
}
|
17341
|
+
|
17342
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
17343
|
+
|
17344
|
+
cname = None
|
17345
|
+
|
17346
|
+
collection_formats = {}
|
17347
|
+
|
17348
|
+
path_params = {}
|
17349
|
+
|
17350
|
+
query_params = []
|
17351
|
+
if 'limit' in local_var_params:
|
17352
|
+
query_params.append(('limit', local_var_params['limit']))
|
17353
|
+
if 'offset' in local_var_params:
|
17354
|
+
query_params.append(('offset', local_var_params['offset']))
|
17355
|
+
|
17356
|
+
header_params = {}
|
17357
|
+
|
17358
|
+
form_params = {}
|
17359
|
+
|
17360
|
+
body = None
|
17361
|
+
if isinstance(request, SdkStreamRequest):
|
17362
|
+
body = request.get_file_stream()
|
17363
|
+
|
17364
|
+
response_headers = []
|
17365
|
+
|
17366
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
17367
|
+
['application/json'])
|
17368
|
+
|
17369
|
+
auth_settings = []
|
17370
|
+
|
17371
|
+
http_info["cname"] = cname
|
17372
|
+
http_info["collection_formats"] = collection_formats
|
17373
|
+
http_info["path_params"] = path_params
|
17374
|
+
http_info["query_params"] = query_params
|
17375
|
+
http_info["header_params"] = header_params
|
17376
|
+
http_info["post_params"] = form_params
|
17377
|
+
http_info["body"] = body
|
17378
|
+
http_info["response_headers"] = response_headers
|
17379
|
+
|
17380
|
+
return http_info
|
17381
|
+
|
17382
|
+
def validate_css_connection(self, request):
|
17383
|
+
"""测试CSS集群连接
|
17384
|
+
|
17385
|
+
测试CSS集群连接
|
17386
|
+
|
17387
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
17388
|
+
|
17389
|
+
:param request: Request instance for ValidateCssConnection
|
17390
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ValidateCssConnectionRequest`
|
17391
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ValidateCssConnectionResponse`
|
17392
|
+
"""
|
17393
|
+
http_info = self._validate_css_connection_http_info(request)
|
17394
|
+
return self._call_api(**http_info)
|
17395
|
+
|
17396
|
+
def validate_css_connection_invoker(self, request):
|
17397
|
+
http_info = self._validate_css_connection_http_info(request)
|
17398
|
+
return SyncInvoker(self, http_info)
|
17399
|
+
|
17400
|
+
@classmethod
|
17401
|
+
def _validate_css_connection_http_info(cls, request):
|
17402
|
+
http_info = {
|
17403
|
+
"method": "POST",
|
17404
|
+
"resource_path": "/v1/{project_id}/drug/css-clusters/connection",
|
17405
|
+
"request_type": request.__class__.__name__,
|
17406
|
+
"response_type": "ValidateCssConnectionResponse"
|
17407
|
+
}
|
17408
|
+
|
17409
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
17410
|
+
|
17411
|
+
cname = None
|
17412
|
+
|
17413
|
+
collection_formats = {}
|
17414
|
+
|
17415
|
+
path_params = {}
|
17416
|
+
|
17417
|
+
query_params = []
|
17418
|
+
|
17419
|
+
header_params = {}
|
17420
|
+
|
17421
|
+
form_params = {}
|
17422
|
+
|
17423
|
+
body = None
|
17424
|
+
if 'body' in local_var_params:
|
17425
|
+
body = local_var_params['body']
|
17426
|
+
if isinstance(request, SdkStreamRequest):
|
17427
|
+
body = request.get_file_stream()
|
17428
|
+
|
17429
|
+
response_headers = []
|
17430
|
+
|
17431
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
17432
|
+
['application/json'])
|
17433
|
+
|
17434
|
+
auth_settings = []
|
17435
|
+
|
17436
|
+
http_info["cname"] = cname
|
17437
|
+
http_info["collection_formats"] = collection_formats
|
17438
|
+
http_info["path_params"] = path_params
|
17439
|
+
http_info["query_params"] = query_params
|
17440
|
+
http_info["header_params"] = header_params
|
17441
|
+
http_info["post_params"] = form_params
|
17442
|
+
http_info["body"] = body
|
17443
|
+
http_info["response_headers"] = response_headers
|
17444
|
+
|
17445
|
+
return http_info
|
17446
|
+
|
16442
17447
|
def create_custom_props_task(self, request):
|
16443
17448
|
"""新建自定义属性任务接口
|
16444
17449
|
|