huaweicloudsdkeihealth 3.1.149__py2.py3-none-any.whl → 3.1.151__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkeihealth/v1/__init__.py +46 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +1323 -48
- huaweicloudsdkeihealth/v1/eihealth_client.py +1323 -48
- huaweicloudsdkeihealth/v1/model/__init__.py +46 -0
- huaweicloudsdkeihealth/v1/model/agency_dto.py +231 -0
- huaweicloudsdkeihealth/v1/model/app_dto.py +492 -0
- huaweicloudsdkeihealth/v1/model/cce_cluster_rsp.py +260 -0
- huaweicloudsdkeihealth/v1/model/computing_cluster_rsp.py +463 -0
- huaweicloudsdkeihealth/v1/model/create_computing_cluster_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/create_computing_cluster_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_computing_cluster_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/delete_computing_cluster_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_computing_cluster_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/iam_role_dto.py +231 -0
- huaweicloudsdkeihealth/v1/model/initialize_platform_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/initialize_platform_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/install_step.py +169 -0
- huaweicloudsdkeihealth/v1/model/list_cce_cluster_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/list_cce_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_cluster_install_step_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/list_cluster_install_step_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_computing_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_computing_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_project_statistics_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/list_project_statistics_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_sfs_turbos_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_sfs_turbos_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_app_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_app_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_drug_job_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_drug_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_image_request.py +521 -0
- huaweicloudsdkeihealth/v1/model/list_user_image_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_job_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_job_response.py +203 -0
- huaweicloudsdkeihealth/v1/model/list_user_notebook_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_notebook_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_workflow_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_workflow_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/project_statistic.py +347 -0
- huaweicloudsdkeihealth/v1/model/sfs_turbo_rsp.py +231 -0
- huaweicloudsdkeihealth/v1/model/show_agency_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/show_agency_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/statistic_dto.py +144 -0
- huaweicloudsdkeihealth/v1/model/step_status.py +89 -0
- huaweicloudsdkeihealth/v1/model/update_agency_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/update_agency_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/update_top_project_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/update_top_project_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/update_top_project_response.py +85 -0
- {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/RECORD +55 -9
- {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/top_level.txt +0 -0
@@ -1836,6 +1836,71 @@ class EiHealthClient(Client):
|
|
1836
1836
|
|
1837
1837
|
return http_info
|
1838
1838
|
|
1839
|
+
def create_computing_cluster(self, request):
|
1840
|
+
r"""绑定计算集群
|
1841
|
+
|
1842
|
+
绑定计算集群。
|
1843
|
+
|
1844
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1845
|
+
|
1846
|
+
:param request: Request instance for CreateComputingCluster
|
1847
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.CreateComputingClusterRequest`
|
1848
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateComputingClusterResponse`
|
1849
|
+
"""
|
1850
|
+
http_info = self._create_computing_cluster_http_info(request)
|
1851
|
+
return self._call_api(**http_info)
|
1852
|
+
|
1853
|
+
def create_computing_cluster_invoker(self, request):
|
1854
|
+
http_info = self._create_computing_cluster_http_info(request)
|
1855
|
+
return SyncInvoker(self, http_info)
|
1856
|
+
|
1857
|
+
@classmethod
|
1858
|
+
def _create_computing_cluster_http_info(cls, request):
|
1859
|
+
http_info = {
|
1860
|
+
"method": "POST",
|
1861
|
+
"resource_path": "/v1/{project_id}/system/computing-clusters",
|
1862
|
+
"request_type": request.__class__.__name__,
|
1863
|
+
"response_type": "CreateComputingClusterResponse"
|
1864
|
+
}
|
1865
|
+
|
1866
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1867
|
+
|
1868
|
+
cname = None
|
1869
|
+
|
1870
|
+
collection_formats = {}
|
1871
|
+
|
1872
|
+
path_params = {}
|
1873
|
+
|
1874
|
+
query_params = []
|
1875
|
+
|
1876
|
+
header_params = {}
|
1877
|
+
|
1878
|
+
form_params = {}
|
1879
|
+
|
1880
|
+
body = None
|
1881
|
+
if 'body' in local_var_params:
|
1882
|
+
body = local_var_params['body']
|
1883
|
+
if isinstance(request, SdkStreamRequest):
|
1884
|
+
body = request.get_file_stream()
|
1885
|
+
|
1886
|
+
response_headers = []
|
1887
|
+
|
1888
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1889
|
+
['application/json'])
|
1890
|
+
|
1891
|
+
auth_settings = []
|
1892
|
+
|
1893
|
+
http_info["cname"] = cname
|
1894
|
+
http_info["collection_formats"] = collection_formats
|
1895
|
+
http_info["path_params"] = path_params
|
1896
|
+
http_info["query_params"] = query_params
|
1897
|
+
http_info["header_params"] = header_params
|
1898
|
+
http_info["post_params"] = form_params
|
1899
|
+
http_info["body"] = body
|
1900
|
+
http_info["response_headers"] = response_headers
|
1901
|
+
|
1902
|
+
return http_info
|
1903
|
+
|
1839
1904
|
def create_computing_resource(self, request):
|
1840
1905
|
r"""购买计算资源
|
1841
1906
|
|
@@ -4100,6 +4165,71 @@ class EiHealthClient(Client):
|
|
4100
4165
|
|
4101
4166
|
return http_info
|
4102
4167
|
|
4168
|
+
def delete_computing_cluster(self, request):
|
4169
|
+
r"""解绑计算集群
|
4170
|
+
|
4171
|
+
解绑计算集群。
|
4172
|
+
|
4173
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4174
|
+
|
4175
|
+
:param request: Request instance for DeleteComputingCluster
|
4176
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.DeleteComputingClusterRequest`
|
4177
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DeleteComputingClusterResponse`
|
4178
|
+
"""
|
4179
|
+
http_info = self._delete_computing_cluster_http_info(request)
|
4180
|
+
return self._call_api(**http_info)
|
4181
|
+
|
4182
|
+
def delete_computing_cluster_invoker(self, request):
|
4183
|
+
http_info = self._delete_computing_cluster_http_info(request)
|
4184
|
+
return SyncInvoker(self, http_info)
|
4185
|
+
|
4186
|
+
@classmethod
|
4187
|
+
def _delete_computing_cluster_http_info(cls, request):
|
4188
|
+
http_info = {
|
4189
|
+
"method": "DELETE",
|
4190
|
+
"resource_path": "/v1/{project_id}/system/computing-clusters/{cluster_id}",
|
4191
|
+
"request_type": request.__class__.__name__,
|
4192
|
+
"response_type": "DeleteComputingClusterResponse"
|
4193
|
+
}
|
4194
|
+
|
4195
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4196
|
+
|
4197
|
+
cname = None
|
4198
|
+
|
4199
|
+
collection_formats = {}
|
4200
|
+
|
4201
|
+
path_params = {}
|
4202
|
+
if 'cluster_id' in local_var_params:
|
4203
|
+
path_params['cluster_id'] = local_var_params['cluster_id']
|
4204
|
+
|
4205
|
+
query_params = []
|
4206
|
+
|
4207
|
+
header_params = {}
|
4208
|
+
|
4209
|
+
form_params = {}
|
4210
|
+
|
4211
|
+
body = None
|
4212
|
+
if isinstance(request, SdkStreamRequest):
|
4213
|
+
body = request.get_file_stream()
|
4214
|
+
|
4215
|
+
response_headers = []
|
4216
|
+
|
4217
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4218
|
+
['application/json'])
|
4219
|
+
|
4220
|
+
auth_settings = []
|
4221
|
+
|
4222
|
+
http_info["cname"] = cname
|
4223
|
+
http_info["collection_formats"] = collection_formats
|
4224
|
+
http_info["path_params"] = path_params
|
4225
|
+
http_info["query_params"] = query_params
|
4226
|
+
http_info["header_params"] = header_params
|
4227
|
+
http_info["post_params"] = form_params
|
4228
|
+
http_info["body"] = body
|
4229
|
+
http_info["response_headers"] = response_headers
|
4230
|
+
|
4231
|
+
return http_info
|
4232
|
+
|
4103
4233
|
def delete_computing_resource(self, request):
|
4104
4234
|
r"""删除计算资源
|
4105
4235
|
|
@@ -6630,6 +6760,69 @@ class EiHealthClient(Client):
|
|
6630
6760
|
|
6631
6761
|
return http_info
|
6632
6762
|
|
6763
|
+
def initialize_platform(self, request):
|
6764
|
+
r"""初始化平台
|
6765
|
+
|
6766
|
+
初始化平台。
|
6767
|
+
|
6768
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6769
|
+
|
6770
|
+
:param request: Request instance for InitializePlatform
|
6771
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.InitializePlatformRequest`
|
6772
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.InitializePlatformResponse`
|
6773
|
+
"""
|
6774
|
+
http_info = self._initialize_platform_http_info(request)
|
6775
|
+
return self._call_api(**http_info)
|
6776
|
+
|
6777
|
+
def initialize_platform_invoker(self, request):
|
6778
|
+
http_info = self._initialize_platform_http_info(request)
|
6779
|
+
return SyncInvoker(self, http_info)
|
6780
|
+
|
6781
|
+
@classmethod
|
6782
|
+
def _initialize_platform_http_info(cls, request):
|
6783
|
+
http_info = {
|
6784
|
+
"method": "POST",
|
6785
|
+
"resource_path": "/v1/{project_id}/system/init",
|
6786
|
+
"request_type": request.__class__.__name__,
|
6787
|
+
"response_type": "InitializePlatformResponse"
|
6788
|
+
}
|
6789
|
+
|
6790
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6791
|
+
|
6792
|
+
cname = None
|
6793
|
+
|
6794
|
+
collection_formats = {}
|
6795
|
+
|
6796
|
+
path_params = {}
|
6797
|
+
|
6798
|
+
query_params = []
|
6799
|
+
|
6800
|
+
header_params = {}
|
6801
|
+
|
6802
|
+
form_params = {}
|
6803
|
+
|
6804
|
+
body = None
|
6805
|
+
if isinstance(request, SdkStreamRequest):
|
6806
|
+
body = request.get_file_stream()
|
6807
|
+
|
6808
|
+
response_headers = []
|
6809
|
+
|
6810
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6811
|
+
['application/json'])
|
6812
|
+
|
6813
|
+
auth_settings = []
|
6814
|
+
|
6815
|
+
http_info["cname"] = cname
|
6816
|
+
http_info["collection_formats"] = collection_formats
|
6817
|
+
http_info["path_params"] = path_params
|
6818
|
+
http_info["query_params"] = query_params
|
6819
|
+
http_info["header_params"] = header_params
|
6820
|
+
http_info["post_params"] = form_params
|
6821
|
+
http_info["body"] = body
|
6822
|
+
http_info["response_headers"] = response_headers
|
6823
|
+
|
6824
|
+
return http_info
|
6825
|
+
|
6633
6826
|
def list_app(self, request):
|
6634
6827
|
r"""获取应用列表
|
6635
6828
|
|
@@ -7125,6 +7318,69 @@ class EiHealthClient(Client):
|
|
7125
7318
|
|
7126
7319
|
return http_info
|
7127
7320
|
|
7321
|
+
def list_cce_cluster(self, request):
|
7322
|
+
r"""获取CCE集群列表
|
7323
|
+
|
7324
|
+
获取CCE集群列表。
|
7325
|
+
|
7326
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7327
|
+
|
7328
|
+
:param request: Request instance for ListCceCluster
|
7329
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListCceClusterRequest`
|
7330
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListCceClusterResponse`
|
7331
|
+
"""
|
7332
|
+
http_info = self._list_cce_cluster_http_info(request)
|
7333
|
+
return self._call_api(**http_info)
|
7334
|
+
|
7335
|
+
def list_cce_cluster_invoker(self, request):
|
7336
|
+
http_info = self._list_cce_cluster_http_info(request)
|
7337
|
+
return SyncInvoker(self, http_info)
|
7338
|
+
|
7339
|
+
@classmethod
|
7340
|
+
def _list_cce_cluster_http_info(cls, request):
|
7341
|
+
http_info = {
|
7342
|
+
"method": "GET",
|
7343
|
+
"resource_path": "/v1/{project_id}/system/cce-clusters",
|
7344
|
+
"request_type": request.__class__.__name__,
|
7345
|
+
"response_type": "ListCceClusterResponse"
|
7346
|
+
}
|
7347
|
+
|
7348
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7349
|
+
|
7350
|
+
cname = None
|
7351
|
+
|
7352
|
+
collection_formats = {}
|
7353
|
+
|
7354
|
+
path_params = {}
|
7355
|
+
|
7356
|
+
query_params = []
|
7357
|
+
|
7358
|
+
header_params = {}
|
7359
|
+
|
7360
|
+
form_params = {}
|
7361
|
+
|
7362
|
+
body = None
|
7363
|
+
if isinstance(request, SdkStreamRequest):
|
7364
|
+
body = request.get_file_stream()
|
7365
|
+
|
7366
|
+
response_headers = []
|
7367
|
+
|
7368
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7369
|
+
['application/json'])
|
7370
|
+
|
7371
|
+
auth_settings = []
|
7372
|
+
|
7373
|
+
http_info["cname"] = cname
|
7374
|
+
http_info["collection_formats"] = collection_formats
|
7375
|
+
http_info["path_params"] = path_params
|
7376
|
+
http_info["query_params"] = query_params
|
7377
|
+
http_info["header_params"] = header_params
|
7378
|
+
http_info["post_params"] = form_params
|
7379
|
+
http_info["body"] = body
|
7380
|
+
http_info["response_headers"] = response_headers
|
7381
|
+
|
7382
|
+
return http_info
|
7383
|
+
|
7128
7384
|
def list_checkpoint(self, request):
|
7129
7385
|
r"""获取数据作业执行日志
|
7130
7386
|
|
@@ -7255,31 +7511,31 @@ class EiHealthClient(Client):
|
|
7255
7511
|
|
7256
7512
|
return http_info
|
7257
7513
|
|
7258
|
-
def
|
7259
|
-
r"""
|
7514
|
+
def list_cluster_install_step(self, request):
|
7515
|
+
r"""查询指定集群安装步骤列表
|
7260
7516
|
|
7261
|
-
|
7517
|
+
查询指定集群安装步骤列表。
|
7262
7518
|
|
7263
7519
|
Please refer to HUAWEI cloud API Explorer for details.
|
7264
7520
|
|
7265
|
-
:param request: Request instance for
|
7266
|
-
:type request: :class:`huaweicloudsdkeihealth.v1.
|
7267
|
-
:rtype: :class:`huaweicloudsdkeihealth.v1.
|
7521
|
+
:param request: Request instance for ListClusterInstallStep
|
7522
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListClusterInstallStepRequest`
|
7523
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListClusterInstallStepResponse`
|
7268
7524
|
"""
|
7269
|
-
http_info = self.
|
7525
|
+
http_info = self._list_cluster_install_step_http_info(request)
|
7270
7526
|
return self._call_api(**http_info)
|
7271
7527
|
|
7272
|
-
def
|
7273
|
-
http_info = self.
|
7528
|
+
def list_cluster_install_step_invoker(self, request):
|
7529
|
+
http_info = self._list_cluster_install_step_http_info(request)
|
7274
7530
|
return SyncInvoker(self, http_info)
|
7275
7531
|
|
7276
7532
|
@classmethod
|
7277
|
-
def
|
7533
|
+
def _list_cluster_install_step_http_info(cls, request):
|
7278
7534
|
http_info = {
|
7279
7535
|
"method": "GET",
|
7280
|
-
"resource_path": "/v1/{project_id}/system/computing-
|
7536
|
+
"resource_path": "/v1/{project_id}/system/computing-clusters/{cluster_id}/steps",
|
7281
7537
|
"request_type": request.__class__.__name__,
|
7282
|
-
"response_type": "
|
7538
|
+
"response_type": "ListClusterInstallStepResponse"
|
7283
7539
|
}
|
7284
7540
|
|
7285
7541
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -7289,10 +7545,10 @@ class EiHealthClient(Client):
|
|
7289
7545
|
collection_formats = {}
|
7290
7546
|
|
7291
7547
|
path_params = {}
|
7548
|
+
if 'cluster_id' in local_var_params:
|
7549
|
+
path_params['cluster_id'] = local_var_params['cluster_id']
|
7292
7550
|
|
7293
7551
|
query_params = []
|
7294
|
-
if 'availability_zone_id' in local_var_params:
|
7295
|
-
query_params.append(('availability_zone_id', local_var_params['availability_zone_id']))
|
7296
7552
|
|
7297
7553
|
header_params = {}
|
7298
7554
|
|
@@ -7320,31 +7576,31 @@ class EiHealthClient(Client):
|
|
7320
7576
|
|
7321
7577
|
return http_info
|
7322
7578
|
|
7323
|
-
def
|
7324
|
-
r"""
|
7579
|
+
def list_computing_cluster(self, request):
|
7580
|
+
r"""获取计算集群列表
|
7325
7581
|
|
7326
|
-
|
7582
|
+
获取计算集群列表。
|
7327
7583
|
|
7328
7584
|
Please refer to HUAWEI cloud API Explorer for details.
|
7329
7585
|
|
7330
|
-
:param request: Request instance for
|
7331
|
-
:type request: :class:`huaweicloudsdkeihealth.v1.
|
7332
|
-
:rtype: :class:`huaweicloudsdkeihealth.v1.
|
7586
|
+
:param request: Request instance for ListComputingCluster
|
7587
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListComputingClusterRequest`
|
7588
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListComputingClusterResponse`
|
7333
7589
|
"""
|
7334
|
-
http_info = self.
|
7590
|
+
http_info = self._list_computing_cluster_http_info(request)
|
7335
7591
|
return self._call_api(**http_info)
|
7336
7592
|
|
7337
|
-
def
|
7338
|
-
http_info = self.
|
7593
|
+
def list_computing_cluster_invoker(self, request):
|
7594
|
+
http_info = self._list_computing_cluster_http_info(request)
|
7339
7595
|
return SyncInvoker(self, http_info)
|
7340
7596
|
|
7341
7597
|
@classmethod
|
7342
|
-
def
|
7598
|
+
def _list_computing_cluster_http_info(cls, request):
|
7343
7599
|
http_info = {
|
7344
7600
|
"method": "GET",
|
7345
|
-
"resource_path": "/v1/{project_id}/system/computing-
|
7601
|
+
"resource_path": "/v1/{project_id}/system/computing-clusters",
|
7346
7602
|
"request_type": request.__class__.__name__,
|
7347
|
-
"response_type": "
|
7603
|
+
"response_type": "ListComputingClusterResponse"
|
7348
7604
|
}
|
7349
7605
|
|
7350
7606
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -7356,6 +7612,10 @@ class EiHealthClient(Client):
|
|
7356
7612
|
path_params = {}
|
7357
7613
|
|
7358
7614
|
query_params = []
|
7615
|
+
if 'limit' in local_var_params:
|
7616
|
+
query_params.append(('limit', local_var_params['limit']))
|
7617
|
+
if 'offset' in local_var_params:
|
7618
|
+
query_params.append(('offset', local_var_params['offset']))
|
7359
7619
|
|
7360
7620
|
header_params = {}
|
7361
7621
|
|
@@ -7383,26 +7643,154 @@ class EiHealthClient(Client):
|
|
7383
7643
|
|
7384
7644
|
return http_info
|
7385
7645
|
|
7386
|
-
def
|
7387
|
-
r"""
|
7646
|
+
def list_computing_resource_flavors(self, request):
|
7647
|
+
r"""查询计算资源规格
|
7388
7648
|
|
7389
|
-
|
7649
|
+
查询计算资源规格
|
7390
7650
|
|
7391
7651
|
Please refer to HUAWEI cloud API Explorer for details.
|
7392
7652
|
|
7393
|
-
:param request: Request instance for
|
7394
|
-
:type request: :class:`huaweicloudsdkeihealth.v1.
|
7395
|
-
:rtype: :class:`huaweicloudsdkeihealth.v1.
|
7653
|
+
:param request: Request instance for ListComputingResourceFlavors
|
7654
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListComputingResourceFlavorsRequest`
|
7655
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListComputingResourceFlavorsResponse`
|
7396
7656
|
"""
|
7397
|
-
http_info = self.
|
7657
|
+
http_info = self._list_computing_resource_flavors_http_info(request)
|
7398
7658
|
return self._call_api(**http_info)
|
7399
7659
|
|
7400
|
-
def
|
7401
|
-
http_info = self.
|
7660
|
+
def list_computing_resource_flavors_invoker(self, request):
|
7661
|
+
http_info = self._list_computing_resource_flavors_http_info(request)
|
7402
7662
|
return SyncInvoker(self, http_info)
|
7403
7663
|
|
7404
7664
|
@classmethod
|
7405
|
-
def
|
7665
|
+
def _list_computing_resource_flavors_http_info(cls, request):
|
7666
|
+
http_info = {
|
7667
|
+
"method": "GET",
|
7668
|
+
"resource_path": "/v1/{project_id}/system/computing-resources/flavors",
|
7669
|
+
"request_type": request.__class__.__name__,
|
7670
|
+
"response_type": "ListComputingResourceFlavorsResponse"
|
7671
|
+
}
|
7672
|
+
|
7673
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7674
|
+
|
7675
|
+
cname = None
|
7676
|
+
|
7677
|
+
collection_formats = {}
|
7678
|
+
|
7679
|
+
path_params = {}
|
7680
|
+
|
7681
|
+
query_params = []
|
7682
|
+
if 'availability_zone_id' in local_var_params:
|
7683
|
+
query_params.append(('availability_zone_id', local_var_params['availability_zone_id']))
|
7684
|
+
|
7685
|
+
header_params = {}
|
7686
|
+
|
7687
|
+
form_params = {}
|
7688
|
+
|
7689
|
+
body = None
|
7690
|
+
if isinstance(request, SdkStreamRequest):
|
7691
|
+
body = request.get_file_stream()
|
7692
|
+
|
7693
|
+
response_headers = []
|
7694
|
+
|
7695
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7696
|
+
['application/json'])
|
7697
|
+
|
7698
|
+
auth_settings = []
|
7699
|
+
|
7700
|
+
http_info["cname"] = cname
|
7701
|
+
http_info["collection_formats"] = collection_formats
|
7702
|
+
http_info["path_params"] = path_params
|
7703
|
+
http_info["query_params"] = query_params
|
7704
|
+
http_info["header_params"] = header_params
|
7705
|
+
http_info["post_params"] = form_params
|
7706
|
+
http_info["body"] = body
|
7707
|
+
http_info["response_headers"] = response_headers
|
7708
|
+
|
7709
|
+
return http_info
|
7710
|
+
|
7711
|
+
def list_computing_resources(self, request):
|
7712
|
+
r"""查询计算资源
|
7713
|
+
|
7714
|
+
查询计算资源
|
7715
|
+
|
7716
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7717
|
+
|
7718
|
+
:param request: Request instance for ListComputingResources
|
7719
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListComputingResourcesRequest`
|
7720
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListComputingResourcesResponse`
|
7721
|
+
"""
|
7722
|
+
http_info = self._list_computing_resources_http_info(request)
|
7723
|
+
return self._call_api(**http_info)
|
7724
|
+
|
7725
|
+
def list_computing_resources_invoker(self, request):
|
7726
|
+
http_info = self._list_computing_resources_http_info(request)
|
7727
|
+
return SyncInvoker(self, http_info)
|
7728
|
+
|
7729
|
+
@classmethod
|
7730
|
+
def _list_computing_resources_http_info(cls, request):
|
7731
|
+
http_info = {
|
7732
|
+
"method": "GET",
|
7733
|
+
"resource_path": "/v1/{project_id}/system/computing-resources",
|
7734
|
+
"request_type": request.__class__.__name__,
|
7735
|
+
"response_type": "ListComputingResourcesResponse"
|
7736
|
+
}
|
7737
|
+
|
7738
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7739
|
+
|
7740
|
+
cname = None
|
7741
|
+
|
7742
|
+
collection_formats = {}
|
7743
|
+
|
7744
|
+
path_params = {}
|
7745
|
+
|
7746
|
+
query_params = []
|
7747
|
+
|
7748
|
+
header_params = {}
|
7749
|
+
|
7750
|
+
form_params = {}
|
7751
|
+
|
7752
|
+
body = None
|
7753
|
+
if isinstance(request, SdkStreamRequest):
|
7754
|
+
body = request.get_file_stream()
|
7755
|
+
|
7756
|
+
response_headers = []
|
7757
|
+
|
7758
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7759
|
+
['application/json'])
|
7760
|
+
|
7761
|
+
auth_settings = []
|
7762
|
+
|
7763
|
+
http_info["cname"] = cname
|
7764
|
+
http_info["collection_formats"] = collection_formats
|
7765
|
+
http_info["path_params"] = path_params
|
7766
|
+
http_info["query_params"] = query_params
|
7767
|
+
http_info["header_params"] = header_params
|
7768
|
+
http_info["post_params"] = form_params
|
7769
|
+
http_info["body"] = body
|
7770
|
+
http_info["response_headers"] = response_headers
|
7771
|
+
|
7772
|
+
return http_info
|
7773
|
+
|
7774
|
+
def list_data(self, request):
|
7775
|
+
r"""查询数据列表
|
7776
|
+
|
7777
|
+
查询指定目录下的数据列表,如果不指定默认查询根目录
|
7778
|
+
|
7779
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7780
|
+
|
7781
|
+
:param request: Request instance for ListData
|
7782
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListDataRequest`
|
7783
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListDataResponse`
|
7784
|
+
"""
|
7785
|
+
http_info = self._list_data_http_info(request)
|
7786
|
+
return self._call_api(**http_info)
|
7787
|
+
|
7788
|
+
def list_data_invoker(self, request):
|
7789
|
+
http_info = self._list_data_http_info(request)
|
7790
|
+
return SyncInvoker(self, http_info)
|
7791
|
+
|
7792
|
+
@classmethod
|
7793
|
+
def _list_data_http_info(cls, request):
|
7406
7794
|
http_info = {
|
7407
7795
|
"method": "GET",
|
7408
7796
|
"resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/datas",
|
@@ -9508,6 +9896,69 @@ class EiHealthClient(Client):
|
|
9508
9896
|
|
9509
9897
|
return http_info
|
9510
9898
|
|
9899
|
+
def list_project_statistics(self, request):
|
9900
|
+
r"""获取当前用户所属空间资源统计信息
|
9901
|
+
|
9902
|
+
获取当前用户所属空间资源统计信息。
|
9903
|
+
|
9904
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9905
|
+
|
9906
|
+
:param request: Request instance for ListProjectStatistics
|
9907
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListProjectStatisticsRequest`
|
9908
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListProjectStatisticsResponse`
|
9909
|
+
"""
|
9910
|
+
http_info = self._list_project_statistics_http_info(request)
|
9911
|
+
return self._call_api(**http_info)
|
9912
|
+
|
9913
|
+
def list_project_statistics_invoker(self, request):
|
9914
|
+
http_info = self._list_project_statistics_http_info(request)
|
9915
|
+
return SyncInvoker(self, http_info)
|
9916
|
+
|
9917
|
+
@classmethod
|
9918
|
+
def _list_project_statistics_http_info(cls, request):
|
9919
|
+
http_info = {
|
9920
|
+
"method": "GET",
|
9921
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/statistics",
|
9922
|
+
"request_type": request.__class__.__name__,
|
9923
|
+
"response_type": "ListProjectStatisticsResponse"
|
9924
|
+
}
|
9925
|
+
|
9926
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9927
|
+
|
9928
|
+
cname = None
|
9929
|
+
|
9930
|
+
collection_formats = {}
|
9931
|
+
|
9932
|
+
path_params = {}
|
9933
|
+
|
9934
|
+
query_params = []
|
9935
|
+
|
9936
|
+
header_params = {}
|
9937
|
+
|
9938
|
+
form_params = {}
|
9939
|
+
|
9940
|
+
body = None
|
9941
|
+
if isinstance(request, SdkStreamRequest):
|
9942
|
+
body = request.get_file_stream()
|
9943
|
+
|
9944
|
+
response_headers = []
|
9945
|
+
|
9946
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9947
|
+
['application/json'])
|
9948
|
+
|
9949
|
+
auth_settings = []
|
9950
|
+
|
9951
|
+
http_info["cname"] = cname
|
9952
|
+
http_info["collection_formats"] = collection_formats
|
9953
|
+
http_info["path_params"] = path_params
|
9954
|
+
http_info["query_params"] = query_params
|
9955
|
+
http_info["header_params"] = header_params
|
9956
|
+
http_info["post_params"] = form_params
|
9957
|
+
http_info["body"] = body
|
9958
|
+
http_info["response_headers"] = response_headers
|
9959
|
+
|
9960
|
+
return http_info
|
9961
|
+
|
9511
9962
|
def list_property(self, request):
|
9512
9963
|
r"""获取属性值列表
|
9513
9964
|
|
@@ -9764,6 +10215,73 @@ class EiHealthClient(Client):
|
|
9764
10215
|
|
9765
10216
|
return http_info
|
9766
10217
|
|
10218
|
+
def list_sfs_turbos(self, request):
|
10219
|
+
r"""获取sfs-turbo资源列表
|
10220
|
+
|
10221
|
+
获取sfs-turbo资源列表。
|
10222
|
+
|
10223
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10224
|
+
|
10225
|
+
:param request: Request instance for ListSfsTurbos
|
10226
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListSfsTurbosRequest`
|
10227
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListSfsTurbosResponse`
|
10228
|
+
"""
|
10229
|
+
http_info = self._list_sfs_turbos_http_info(request)
|
10230
|
+
return self._call_api(**http_info)
|
10231
|
+
|
10232
|
+
def list_sfs_turbos_invoker(self, request):
|
10233
|
+
http_info = self._list_sfs_turbos_http_info(request)
|
10234
|
+
return SyncInvoker(self, http_info)
|
10235
|
+
|
10236
|
+
@classmethod
|
10237
|
+
def _list_sfs_turbos_http_info(cls, request):
|
10238
|
+
http_info = {
|
10239
|
+
"method": "GET",
|
10240
|
+
"resource_path": "/v1/{project_id}/system/sfs-turbos",
|
10241
|
+
"request_type": request.__class__.__name__,
|
10242
|
+
"response_type": "ListSfsTurbosResponse"
|
10243
|
+
}
|
10244
|
+
|
10245
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10246
|
+
|
10247
|
+
cname = None
|
10248
|
+
|
10249
|
+
collection_formats = {}
|
10250
|
+
|
10251
|
+
path_params = {}
|
10252
|
+
|
10253
|
+
query_params = []
|
10254
|
+
if 'limit' in local_var_params:
|
10255
|
+
query_params.append(('limit', local_var_params['limit']))
|
10256
|
+
if 'offset' in local_var_params:
|
10257
|
+
query_params.append(('offset', local_var_params['offset']))
|
10258
|
+
|
10259
|
+
header_params = {}
|
10260
|
+
|
10261
|
+
form_params = {}
|
10262
|
+
|
10263
|
+
body = None
|
10264
|
+
if isinstance(request, SdkStreamRequest):
|
10265
|
+
body = request.get_file_stream()
|
10266
|
+
|
10267
|
+
response_headers = []
|
10268
|
+
|
10269
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10270
|
+
['application/json'])
|
10271
|
+
|
10272
|
+
auth_settings = []
|
10273
|
+
|
10274
|
+
http_info["cname"] = cname
|
10275
|
+
http_info["collection_formats"] = collection_formats
|
10276
|
+
http_info["path_params"] = path_params
|
10277
|
+
http_info["query_params"] = query_params
|
10278
|
+
http_info["header_params"] = header_params
|
10279
|
+
http_info["post_params"] = form_params
|
10280
|
+
http_info["body"] = body
|
10281
|
+
http_info["response_headers"] = response_headers
|
10282
|
+
|
10283
|
+
return http_info
|
10284
|
+
|
9767
10285
|
def list_star(self, request):
|
9768
10286
|
r"""获取收藏资产列表
|
9769
10287
|
|
@@ -10085,31 +10603,472 @@ class EiHealthClient(Client):
|
|
10085
10603
|
|
10086
10604
|
return http_info
|
10087
10605
|
|
10088
|
-
def list_user(self, request):
|
10089
|
-
r"""获取用户列表
|
10606
|
+
def list_user(self, request):
|
10607
|
+
r"""获取用户列表
|
10608
|
+
|
10609
|
+
获取用户列表
|
10610
|
+
|
10611
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10612
|
+
|
10613
|
+
:param request: Request instance for ListUser
|
10614
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListUserRequest`
|
10615
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListUserResponse`
|
10616
|
+
"""
|
10617
|
+
http_info = self._list_user_http_info(request)
|
10618
|
+
return self._call_api(**http_info)
|
10619
|
+
|
10620
|
+
def list_user_invoker(self, request):
|
10621
|
+
http_info = self._list_user_http_info(request)
|
10622
|
+
return SyncInvoker(self, http_info)
|
10623
|
+
|
10624
|
+
@classmethod
|
10625
|
+
def _list_user_http_info(cls, request):
|
10626
|
+
http_info = {
|
10627
|
+
"method": "GET",
|
10628
|
+
"resource_path": "/v1/{project_id}/users",
|
10629
|
+
"request_type": request.__class__.__name__,
|
10630
|
+
"response_type": "ListUserResponse"
|
10631
|
+
}
|
10632
|
+
|
10633
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10634
|
+
|
10635
|
+
cname = None
|
10636
|
+
|
10637
|
+
collection_formats = {}
|
10638
|
+
|
10639
|
+
path_params = {}
|
10640
|
+
|
10641
|
+
query_params = []
|
10642
|
+
|
10643
|
+
header_params = {}
|
10644
|
+
|
10645
|
+
form_params = {}
|
10646
|
+
|
10647
|
+
body = None
|
10648
|
+
if isinstance(request, SdkStreamRequest):
|
10649
|
+
body = request.get_file_stream()
|
10650
|
+
|
10651
|
+
response_headers = []
|
10652
|
+
|
10653
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10654
|
+
['application/json'])
|
10655
|
+
|
10656
|
+
auth_settings = []
|
10657
|
+
|
10658
|
+
http_info["cname"] = cname
|
10659
|
+
http_info["collection_formats"] = collection_formats
|
10660
|
+
http_info["path_params"] = path_params
|
10661
|
+
http_info["query_params"] = query_params
|
10662
|
+
http_info["header_params"] = header_params
|
10663
|
+
http_info["post_params"] = form_params
|
10664
|
+
http_info["body"] = body
|
10665
|
+
http_info["response_headers"] = response_headers
|
10666
|
+
|
10667
|
+
return http_info
|
10668
|
+
|
10669
|
+
def list_user_app(self, request):
|
10670
|
+
r"""获取用户所属空间的应用列表
|
10671
|
+
|
10672
|
+
获取用户所属空间的应用列表。
|
10673
|
+
|
10674
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10675
|
+
|
10676
|
+
:param request: Request instance for ListUserApp
|
10677
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListUserAppRequest`
|
10678
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListUserAppResponse`
|
10679
|
+
"""
|
10680
|
+
http_info = self._list_user_app_http_info(request)
|
10681
|
+
return self._call_api(**http_info)
|
10682
|
+
|
10683
|
+
def list_user_app_invoker(self, request):
|
10684
|
+
http_info = self._list_user_app_http_info(request)
|
10685
|
+
return SyncInvoker(self, http_info)
|
10686
|
+
|
10687
|
+
@classmethod
|
10688
|
+
def _list_user_app_http_info(cls, request):
|
10689
|
+
http_info = {
|
10690
|
+
"method": "GET",
|
10691
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/apps",
|
10692
|
+
"request_type": request.__class__.__name__,
|
10693
|
+
"response_type": "ListUserAppResponse"
|
10694
|
+
}
|
10695
|
+
|
10696
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10697
|
+
|
10698
|
+
cname = None
|
10699
|
+
|
10700
|
+
collection_formats = {}
|
10701
|
+
|
10702
|
+
path_params = {}
|
10703
|
+
|
10704
|
+
query_params = []
|
10705
|
+
if 'is_creator' in local_var_params:
|
10706
|
+
query_params.append(('is_creator', local_var_params['is_creator']))
|
10707
|
+
if 'id' in local_var_params:
|
10708
|
+
query_params.append(('id', local_var_params['id']))
|
10709
|
+
if 'name' in local_var_params:
|
10710
|
+
query_params.append(('name', local_var_params['name']))
|
10711
|
+
if 'summary' in local_var_params:
|
10712
|
+
query_params.append(('summary', local_var_params['summary']))
|
10713
|
+
if 'eihealth_project_names' in local_var_params:
|
10714
|
+
query_params.append(('eihealth_project_names', local_var_params['eihealth_project_names']))
|
10715
|
+
collection_formats['eihealth_project_names'] = 'csv'
|
10716
|
+
if 'labels' in local_var_params:
|
10717
|
+
query_params.append(('labels', local_var_params['labels']))
|
10718
|
+
collection_formats['labels'] = 'csv'
|
10719
|
+
if 'start_create_time' in local_var_params:
|
10720
|
+
query_params.append(('start_create_time', local_var_params['start_create_time']))
|
10721
|
+
if 'end_create_time' in local_var_params:
|
10722
|
+
query_params.append(('end_create_time', local_var_params['end_create_time']))
|
10723
|
+
if 'start_update_time' in local_var_params:
|
10724
|
+
query_params.append(('start_update_time', local_var_params['start_update_time']))
|
10725
|
+
if 'end_update_time' in local_var_params:
|
10726
|
+
query_params.append(('end_update_time', local_var_params['end_update_time']))
|
10727
|
+
if 'sort_by' in local_var_params:
|
10728
|
+
query_params.append(('sort_by', local_var_params['sort_by']))
|
10729
|
+
if 'sort_dir' in local_var_params:
|
10730
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
10731
|
+
if 'limit' in local_var_params:
|
10732
|
+
query_params.append(('limit', local_var_params['limit']))
|
10733
|
+
if 'offset' in local_var_params:
|
10734
|
+
query_params.append(('offset', local_var_params['offset']))
|
10735
|
+
|
10736
|
+
header_params = {}
|
10737
|
+
|
10738
|
+
form_params = {}
|
10739
|
+
|
10740
|
+
body = None
|
10741
|
+
if isinstance(request, SdkStreamRequest):
|
10742
|
+
body = request.get_file_stream()
|
10743
|
+
|
10744
|
+
response_headers = []
|
10745
|
+
|
10746
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10747
|
+
['application/json'])
|
10748
|
+
|
10749
|
+
auth_settings = []
|
10750
|
+
|
10751
|
+
http_info["cname"] = cname
|
10752
|
+
http_info["collection_formats"] = collection_formats
|
10753
|
+
http_info["path_params"] = path_params
|
10754
|
+
http_info["query_params"] = query_params
|
10755
|
+
http_info["header_params"] = header_params
|
10756
|
+
http_info["post_params"] = form_params
|
10757
|
+
http_info["body"] = body
|
10758
|
+
http_info["response_headers"] = response_headers
|
10759
|
+
|
10760
|
+
return http_info
|
10761
|
+
|
10762
|
+
def list_user_drug_job(self, request):
|
10763
|
+
r"""获取用户所属空间的药物作业列表
|
10764
|
+
|
10765
|
+
获取用户所属空间的药物作业列表。
|
10766
|
+
|
10767
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10768
|
+
|
10769
|
+
:param request: Request instance for ListUserDrugJob
|
10770
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListUserDrugJobRequest`
|
10771
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListUserDrugJobResponse`
|
10772
|
+
"""
|
10773
|
+
http_info = self._list_user_drug_job_http_info(request)
|
10774
|
+
return self._call_api(**http_info)
|
10775
|
+
|
10776
|
+
def list_user_drug_job_invoker(self, request):
|
10777
|
+
http_info = self._list_user_drug_job_http_info(request)
|
10778
|
+
return SyncInvoker(self, http_info)
|
10779
|
+
|
10780
|
+
@classmethod
|
10781
|
+
def _list_user_drug_job_http_info(cls, request):
|
10782
|
+
http_info = {
|
10783
|
+
"method": "GET",
|
10784
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/drug-jobs",
|
10785
|
+
"request_type": request.__class__.__name__,
|
10786
|
+
"response_type": "ListUserDrugJobResponse"
|
10787
|
+
}
|
10788
|
+
|
10789
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10790
|
+
|
10791
|
+
cname = None
|
10792
|
+
|
10793
|
+
collection_formats = {}
|
10794
|
+
|
10795
|
+
path_params = {}
|
10796
|
+
|
10797
|
+
query_params = []
|
10798
|
+
if 'is_creator' in local_var_params:
|
10799
|
+
query_params.append(('is_creator', local_var_params['is_creator']))
|
10800
|
+
if 'job_name' in local_var_params:
|
10801
|
+
query_params.append(('job_name', local_var_params['job_name']))
|
10802
|
+
if 'eihealth_project_names' in local_var_params:
|
10803
|
+
query_params.append(('eihealth_project_names', local_var_params['eihealth_project_names']))
|
10804
|
+
collection_formats['eihealth_project_names'] = 'csv'
|
10805
|
+
if 'labels' in local_var_params:
|
10806
|
+
query_params.append(('labels', local_var_params['labels']))
|
10807
|
+
collection_formats['labels'] = 'csv'
|
10808
|
+
if 'status_list' in local_var_params:
|
10809
|
+
query_params.append(('status_list', local_var_params['status_list']))
|
10810
|
+
collection_formats['status_list'] = 'csv'
|
10811
|
+
if 'types' in local_var_params:
|
10812
|
+
query_params.append(('types', local_var_params['types']))
|
10813
|
+
collection_formats['types'] = 'csv'
|
10814
|
+
if 'create_start_time' in local_var_params:
|
10815
|
+
query_params.append(('create_start_time', local_var_params['create_start_time']))
|
10816
|
+
if 'create_end_time' in local_var_params:
|
10817
|
+
query_params.append(('create_end_time', local_var_params['create_end_time']))
|
10818
|
+
if 'finish_start_time' in local_var_params:
|
10819
|
+
query_params.append(('finish_start_time', local_var_params['finish_start_time']))
|
10820
|
+
if 'finish_end_time' in local_var_params:
|
10821
|
+
query_params.append(('finish_end_time', local_var_params['finish_end_time']))
|
10822
|
+
if 'sort_dir' in local_var_params:
|
10823
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
10824
|
+
if 'sort_key' in local_var_params:
|
10825
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
10826
|
+
if 'limit' in local_var_params:
|
10827
|
+
query_params.append(('limit', local_var_params['limit']))
|
10828
|
+
if 'offset' in local_var_params:
|
10829
|
+
query_params.append(('offset', local_var_params['offset']))
|
10830
|
+
|
10831
|
+
header_params = {}
|
10832
|
+
|
10833
|
+
form_params = {}
|
10834
|
+
|
10835
|
+
body = None
|
10836
|
+
if isinstance(request, SdkStreamRequest):
|
10837
|
+
body = request.get_file_stream()
|
10838
|
+
|
10839
|
+
response_headers = []
|
10840
|
+
|
10841
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10842
|
+
['application/json'])
|
10843
|
+
|
10844
|
+
auth_settings = []
|
10845
|
+
|
10846
|
+
http_info["cname"] = cname
|
10847
|
+
http_info["collection_formats"] = collection_formats
|
10848
|
+
http_info["path_params"] = path_params
|
10849
|
+
http_info["query_params"] = query_params
|
10850
|
+
http_info["header_params"] = header_params
|
10851
|
+
http_info["post_params"] = form_params
|
10852
|
+
http_info["body"] = body
|
10853
|
+
http_info["response_headers"] = response_headers
|
10854
|
+
|
10855
|
+
return http_info
|
10856
|
+
|
10857
|
+
def list_user_image(self, request):
|
10858
|
+
r"""获取用户所属空间的镜像列表
|
10859
|
+
|
10860
|
+
获取用户所属空间的镜像列表。
|
10861
|
+
|
10862
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10863
|
+
|
10864
|
+
:param request: Request instance for ListUserImage
|
10865
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListUserImageRequest`
|
10866
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListUserImageResponse`
|
10867
|
+
"""
|
10868
|
+
http_info = self._list_user_image_http_info(request)
|
10869
|
+
return self._call_api(**http_info)
|
10870
|
+
|
10871
|
+
def list_user_image_invoker(self, request):
|
10872
|
+
http_info = self._list_user_image_http_info(request)
|
10873
|
+
return SyncInvoker(self, http_info)
|
10874
|
+
|
10875
|
+
@classmethod
|
10876
|
+
def _list_user_image_http_info(cls, request):
|
10877
|
+
http_info = {
|
10878
|
+
"method": "GET",
|
10879
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/images",
|
10880
|
+
"request_type": request.__class__.__name__,
|
10881
|
+
"response_type": "ListUserImageResponse"
|
10882
|
+
}
|
10883
|
+
|
10884
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10885
|
+
|
10886
|
+
cname = None
|
10887
|
+
|
10888
|
+
collection_formats = {}
|
10889
|
+
|
10890
|
+
path_params = {}
|
10891
|
+
|
10892
|
+
query_params = []
|
10893
|
+
if 'is_creator' in local_var_params:
|
10894
|
+
query_params.append(('is_creator', local_var_params['is_creator']))
|
10895
|
+
if 'image_id' in local_var_params:
|
10896
|
+
query_params.append(('image_id', local_var_params['image_id']))
|
10897
|
+
if 'image_name' in local_var_params:
|
10898
|
+
query_params.append(('image_name', local_var_params['image_name']))
|
10899
|
+
if 'description' in local_var_params:
|
10900
|
+
query_params.append(('description', local_var_params['description']))
|
10901
|
+
if 'eihealth_project_names' in local_var_params:
|
10902
|
+
query_params.append(('eihealth_project_names', local_var_params['eihealth_project_names']))
|
10903
|
+
collection_formats['eihealth_project_names'] = 'csv'
|
10904
|
+
if 'source_project_name' in local_var_params:
|
10905
|
+
query_params.append(('source_project_name', local_var_params['source_project_name']))
|
10906
|
+
if 'types' in local_var_params:
|
10907
|
+
query_params.append(('types', local_var_params['types']))
|
10908
|
+
collection_formats['types'] = 'csv'
|
10909
|
+
if 'start_create_time' in local_var_params:
|
10910
|
+
query_params.append(('start_create_time', local_var_params['start_create_time']))
|
10911
|
+
if 'end_create_time' in local_var_params:
|
10912
|
+
query_params.append(('end_create_time', local_var_params['end_create_time']))
|
10913
|
+
if 'start_update_time' in local_var_params:
|
10914
|
+
query_params.append(('start_update_time', local_var_params['start_update_time']))
|
10915
|
+
if 'end_update_time' in local_var_params:
|
10916
|
+
query_params.append(('end_update_time', local_var_params['end_update_time']))
|
10917
|
+
if 'sort_by' in local_var_params:
|
10918
|
+
query_params.append(('sort_by', local_var_params['sort_by']))
|
10919
|
+
if 'sort_dir' in local_var_params:
|
10920
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
10921
|
+
if 'limit' in local_var_params:
|
10922
|
+
query_params.append(('limit', local_var_params['limit']))
|
10923
|
+
if 'offset' in local_var_params:
|
10924
|
+
query_params.append(('offset', local_var_params['offset']))
|
10925
|
+
|
10926
|
+
header_params = {}
|
10927
|
+
|
10928
|
+
form_params = {}
|
10929
|
+
|
10930
|
+
body = None
|
10931
|
+
if isinstance(request, SdkStreamRequest):
|
10932
|
+
body = request.get_file_stream()
|
10933
|
+
|
10934
|
+
response_headers = []
|
10935
|
+
|
10936
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10937
|
+
['application/json'])
|
10938
|
+
|
10939
|
+
auth_settings = []
|
10940
|
+
|
10941
|
+
http_info["cname"] = cname
|
10942
|
+
http_info["collection_formats"] = collection_formats
|
10943
|
+
http_info["path_params"] = path_params
|
10944
|
+
http_info["query_params"] = query_params
|
10945
|
+
http_info["header_params"] = header_params
|
10946
|
+
http_info["post_params"] = form_params
|
10947
|
+
http_info["body"] = body
|
10948
|
+
http_info["response_headers"] = response_headers
|
10949
|
+
|
10950
|
+
return http_info
|
10951
|
+
|
10952
|
+
def list_user_job(self, request):
|
10953
|
+
r"""获取用户所属空间的作业列表
|
10954
|
+
|
10955
|
+
获取用户所属空间的作业列表。
|
10956
|
+
|
10957
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10958
|
+
|
10959
|
+
:param request: Request instance for ListUserJob
|
10960
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListUserJobRequest`
|
10961
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListUserJobResponse`
|
10962
|
+
"""
|
10963
|
+
http_info = self._list_user_job_http_info(request)
|
10964
|
+
return self._call_api(**http_info)
|
10965
|
+
|
10966
|
+
def list_user_job_invoker(self, request):
|
10967
|
+
http_info = self._list_user_job_http_info(request)
|
10968
|
+
return SyncInvoker(self, http_info)
|
10969
|
+
|
10970
|
+
@classmethod
|
10971
|
+
def _list_user_job_http_info(cls, request):
|
10972
|
+
http_info = {
|
10973
|
+
"method": "GET",
|
10974
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/jobs",
|
10975
|
+
"request_type": request.__class__.__name__,
|
10976
|
+
"response_type": "ListUserJobResponse"
|
10977
|
+
}
|
10978
|
+
|
10979
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10980
|
+
|
10981
|
+
cname = None
|
10982
|
+
|
10983
|
+
collection_formats = {}
|
10984
|
+
|
10985
|
+
path_params = {}
|
10986
|
+
|
10987
|
+
query_params = []
|
10988
|
+
if 'is_creator' in local_var_params:
|
10989
|
+
query_params.append(('is_creator', local_var_params['is_creator']))
|
10990
|
+
if 'job_name' in local_var_params:
|
10991
|
+
query_params.append(('job_name', local_var_params['job_name']))
|
10992
|
+
if 'eihealth_project_names' in local_var_params:
|
10993
|
+
query_params.append(('eihealth_project_names', local_var_params['eihealth_project_names']))
|
10994
|
+
collection_formats['eihealth_project_names'] = 'csv'
|
10995
|
+
if 'types' in local_var_params:
|
10996
|
+
query_params.append(('types', local_var_params['types']))
|
10997
|
+
collection_formats['types'] = 'csv'
|
10998
|
+
if 'status_list' in local_var_params:
|
10999
|
+
query_params.append(('status_list', local_var_params['status_list']))
|
11000
|
+
collection_formats['status_list'] = 'csv'
|
11001
|
+
if 'labels' in local_var_params:
|
11002
|
+
query_params.append(('labels', local_var_params['labels']))
|
11003
|
+
collection_formats['labels'] = 'csv'
|
11004
|
+
if 'start_create_time' in local_var_params:
|
11005
|
+
query_params.append(('start_create_time', local_var_params['start_create_time']))
|
11006
|
+
if 'end_create_time' in local_var_params:
|
11007
|
+
query_params.append(('end_create_time', local_var_params['end_create_time']))
|
11008
|
+
if 'start_finish_time' in local_var_params:
|
11009
|
+
query_params.append(('start_finish_time', local_var_params['start_finish_time']))
|
11010
|
+
if 'end_finish_time' in local_var_params:
|
11011
|
+
query_params.append(('end_finish_time', local_var_params['end_finish_time']))
|
11012
|
+
if 'sort_key' in local_var_params:
|
11013
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
11014
|
+
if 'sort_dir' in local_var_params:
|
11015
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
11016
|
+
if 'limit' in local_var_params:
|
11017
|
+
query_params.append(('limit', local_var_params['limit']))
|
11018
|
+
if 'offset' in local_var_params:
|
11019
|
+
query_params.append(('offset', local_var_params['offset']))
|
11020
|
+
|
11021
|
+
header_params = {}
|
11022
|
+
|
11023
|
+
form_params = {}
|
11024
|
+
|
11025
|
+
body = None
|
11026
|
+
if isinstance(request, SdkStreamRequest):
|
11027
|
+
body = request.get_file_stream()
|
11028
|
+
|
11029
|
+
response_headers = []
|
11030
|
+
|
11031
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11032
|
+
['application/json'])
|
11033
|
+
|
11034
|
+
auth_settings = []
|
11035
|
+
|
11036
|
+
http_info["cname"] = cname
|
11037
|
+
http_info["collection_formats"] = collection_formats
|
11038
|
+
http_info["path_params"] = path_params
|
11039
|
+
http_info["query_params"] = query_params
|
11040
|
+
http_info["header_params"] = header_params
|
11041
|
+
http_info["post_params"] = form_params
|
11042
|
+
http_info["body"] = body
|
11043
|
+
http_info["response_headers"] = response_headers
|
11044
|
+
|
11045
|
+
return http_info
|
11046
|
+
|
11047
|
+
def list_user_workflow(self, request):
|
11048
|
+
r"""获取用户所属空间的流程列表
|
10090
11049
|
|
10091
|
-
|
11050
|
+
获取用户所属空间的流程列表。
|
10092
11051
|
|
10093
11052
|
Please refer to HUAWEI cloud API Explorer for details.
|
10094
11053
|
|
10095
|
-
:param request: Request instance for
|
10096
|
-
:type request: :class:`huaweicloudsdkeihealth.v1.
|
10097
|
-
:rtype: :class:`huaweicloudsdkeihealth.v1.
|
11054
|
+
:param request: Request instance for ListUserWorkflow
|
11055
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListUserWorkflowRequest`
|
11056
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListUserWorkflowResponse`
|
10098
11057
|
"""
|
10099
|
-
http_info = self.
|
11058
|
+
http_info = self._list_user_workflow_http_info(request)
|
10100
11059
|
return self._call_api(**http_info)
|
10101
11060
|
|
10102
|
-
def
|
10103
|
-
http_info = self.
|
11061
|
+
def list_user_workflow_invoker(self, request):
|
11062
|
+
http_info = self._list_user_workflow_http_info(request)
|
10104
11063
|
return SyncInvoker(self, http_info)
|
10105
11064
|
|
10106
11065
|
@classmethod
|
10107
|
-
def
|
11066
|
+
def _list_user_workflow_http_info(cls, request):
|
10108
11067
|
http_info = {
|
10109
11068
|
"method": "GET",
|
10110
|
-
"resource_path": "/v1/{project_id}/
|
11069
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/workflows",
|
10111
11070
|
"request_type": request.__class__.__name__,
|
10112
|
-
"response_type": "
|
11071
|
+
"response_type": "ListUserWorkflowResponse"
|
10113
11072
|
}
|
10114
11073
|
|
10115
11074
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10121,6 +11080,36 @@ class EiHealthClient(Client):
|
|
10121
11080
|
path_params = {}
|
10122
11081
|
|
10123
11082
|
query_params = []
|
11083
|
+
if 'is_creator' in local_var_params:
|
11084
|
+
query_params.append(('is_creator', local_var_params['is_creator']))
|
11085
|
+
if 'id' in local_var_params:
|
11086
|
+
query_params.append(('id', local_var_params['id']))
|
11087
|
+
if 'name' in local_var_params:
|
11088
|
+
query_params.append(('name', local_var_params['name']))
|
11089
|
+
if 'summary' in local_var_params:
|
11090
|
+
query_params.append(('summary', local_var_params['summary']))
|
11091
|
+
if 'eihealth_project_names' in local_var_params:
|
11092
|
+
query_params.append(('eihealth_project_names', local_var_params['eihealth_project_names']))
|
11093
|
+
collection_formats['eihealth_project_names'] = 'csv'
|
11094
|
+
if 'labels' in local_var_params:
|
11095
|
+
query_params.append(('labels', local_var_params['labels']))
|
11096
|
+
collection_formats['labels'] = 'csv'
|
11097
|
+
if 'start_create_time' in local_var_params:
|
11098
|
+
query_params.append(('start_create_time', local_var_params['start_create_time']))
|
11099
|
+
if 'end_create_time' in local_var_params:
|
11100
|
+
query_params.append(('end_create_time', local_var_params['end_create_time']))
|
11101
|
+
if 'start_update_time' in local_var_params:
|
11102
|
+
query_params.append(('start_update_time', local_var_params['start_update_time']))
|
11103
|
+
if 'end_update_time' in local_var_params:
|
11104
|
+
query_params.append(('end_update_time', local_var_params['end_update_time']))
|
11105
|
+
if 'sort_dir' in local_var_params:
|
11106
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
11107
|
+
if 'sort_key' in local_var_params:
|
11108
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
11109
|
+
if 'limit' in local_var_params:
|
11110
|
+
query_params.append(('limit', local_var_params['limit']))
|
11111
|
+
if 'offset' in local_var_params:
|
11112
|
+
query_params.append(('offset', local_var_params['offset']))
|
10124
11113
|
|
10125
11114
|
header_params = {}
|
10126
11115
|
|
@@ -11295,6 +12284,69 @@ class EiHealthClient(Client):
|
|
11295
12284
|
|
11296
12285
|
return http_info
|
11297
12286
|
|
12287
|
+
def show_agency(self, request):
|
12288
|
+
r"""获取业务委托
|
12289
|
+
|
12290
|
+
获取业务委托。
|
12291
|
+
|
12292
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
12293
|
+
|
12294
|
+
:param request: Request instance for ShowAgency
|
12295
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ShowAgencyRequest`
|
12296
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ShowAgencyResponse`
|
12297
|
+
"""
|
12298
|
+
http_info = self._show_agency_http_info(request)
|
12299
|
+
return self._call_api(**http_info)
|
12300
|
+
|
12301
|
+
def show_agency_invoker(self, request):
|
12302
|
+
http_info = self._show_agency_http_info(request)
|
12303
|
+
return SyncInvoker(self, http_info)
|
12304
|
+
|
12305
|
+
@classmethod
|
12306
|
+
def _show_agency_http_info(cls, request):
|
12307
|
+
http_info = {
|
12308
|
+
"method": "GET",
|
12309
|
+
"resource_path": "/v1/{project_id}/system/agencies",
|
12310
|
+
"request_type": request.__class__.__name__,
|
12311
|
+
"response_type": "ShowAgencyResponse"
|
12312
|
+
}
|
12313
|
+
|
12314
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
12315
|
+
|
12316
|
+
cname = None
|
12317
|
+
|
12318
|
+
collection_formats = {}
|
12319
|
+
|
12320
|
+
path_params = {}
|
12321
|
+
|
12322
|
+
query_params = []
|
12323
|
+
|
12324
|
+
header_params = {}
|
12325
|
+
|
12326
|
+
form_params = {}
|
12327
|
+
|
12328
|
+
body = None
|
12329
|
+
if isinstance(request, SdkStreamRequest):
|
12330
|
+
body = request.get_file_stream()
|
12331
|
+
|
12332
|
+
response_headers = []
|
12333
|
+
|
12334
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
12335
|
+
['application/json'])
|
12336
|
+
|
12337
|
+
auth_settings = []
|
12338
|
+
|
12339
|
+
http_info["cname"] = cname
|
12340
|
+
http_info["collection_formats"] = collection_formats
|
12341
|
+
http_info["path_params"] = path_params
|
12342
|
+
http_info["query_params"] = query_params
|
12343
|
+
http_info["header_params"] = header_params
|
12344
|
+
http_info["post_params"] = form_params
|
12345
|
+
http_info["body"] = body
|
12346
|
+
http_info["response_headers"] = response_headers
|
12347
|
+
|
12348
|
+
return http_info
|
12349
|
+
|
11298
12350
|
def show_app(self, request):
|
11299
12351
|
r"""获取应用详情
|
11300
12352
|
|
@@ -15518,6 +16570,69 @@ class EiHealthClient(Client):
|
|
15518
16570
|
|
15519
16571
|
return http_info
|
15520
16572
|
|
16573
|
+
def update_agency(self, request):
|
16574
|
+
r"""更新业务委托
|
16575
|
+
|
16576
|
+
更新业务委托。
|
16577
|
+
|
16578
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
16579
|
+
|
16580
|
+
:param request: Request instance for UpdateAgency
|
16581
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.UpdateAgencyRequest`
|
16582
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.UpdateAgencyResponse`
|
16583
|
+
"""
|
16584
|
+
http_info = self._update_agency_http_info(request)
|
16585
|
+
return self._call_api(**http_info)
|
16586
|
+
|
16587
|
+
def update_agency_invoker(self, request):
|
16588
|
+
http_info = self._update_agency_http_info(request)
|
16589
|
+
return SyncInvoker(self, http_info)
|
16590
|
+
|
16591
|
+
@classmethod
|
16592
|
+
def _update_agency_http_info(cls, request):
|
16593
|
+
http_info = {
|
16594
|
+
"method": "PUT",
|
16595
|
+
"resource_path": "/v1/{project_id}/system/agencies",
|
16596
|
+
"request_type": request.__class__.__name__,
|
16597
|
+
"response_type": "UpdateAgencyResponse"
|
16598
|
+
}
|
16599
|
+
|
16600
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
16601
|
+
|
16602
|
+
cname = None
|
16603
|
+
|
16604
|
+
collection_formats = {}
|
16605
|
+
|
16606
|
+
path_params = {}
|
16607
|
+
|
16608
|
+
query_params = []
|
16609
|
+
|
16610
|
+
header_params = {}
|
16611
|
+
|
16612
|
+
form_params = {}
|
16613
|
+
|
16614
|
+
body = None
|
16615
|
+
if isinstance(request, SdkStreamRequest):
|
16616
|
+
body = request.get_file_stream()
|
16617
|
+
|
16618
|
+
response_headers = []
|
16619
|
+
|
16620
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
16621
|
+
['application/json'])
|
16622
|
+
|
16623
|
+
auth_settings = []
|
16624
|
+
|
16625
|
+
http_info["cname"] = cname
|
16626
|
+
http_info["collection_formats"] = collection_formats
|
16627
|
+
http_info["path_params"] = path_params
|
16628
|
+
http_info["query_params"] = query_params
|
16629
|
+
http_info["header_params"] = header_params
|
16630
|
+
http_info["post_params"] = form_params
|
16631
|
+
http_info["body"] = body
|
16632
|
+
http_info["response_headers"] = response_headers
|
16633
|
+
|
16634
|
+
return http_info
|
16635
|
+
|
15521
16636
|
def update_app(self, request):
|
15522
16637
|
r"""更新应用
|
15523
16638
|
|
@@ -17199,6 +18314,73 @@ class EiHealthClient(Client):
|
|
17199
18314
|
|
17200
18315
|
return http_info
|
17201
18316
|
|
18317
|
+
def update_top_project(self, request):
|
18318
|
+
r"""置顶空间
|
18319
|
+
|
18320
|
+
置顶空间。
|
18321
|
+
|
18322
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
18323
|
+
|
18324
|
+
:param request: Request instance for UpdateTopProject
|
18325
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.UpdateTopProjectRequest`
|
18326
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.UpdateTopProjectResponse`
|
18327
|
+
"""
|
18328
|
+
http_info = self._update_top_project_http_info(request)
|
18329
|
+
return self._call_api(**http_info)
|
18330
|
+
|
18331
|
+
def update_top_project_invoker(self, request):
|
18332
|
+
http_info = self._update_top_project_http_info(request)
|
18333
|
+
return SyncInvoker(self, http_info)
|
18334
|
+
|
18335
|
+
@classmethod
|
18336
|
+
def _update_top_project_http_info(cls, request):
|
18337
|
+
http_info = {
|
18338
|
+
"method": "PUT",
|
18339
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/top",
|
18340
|
+
"request_type": request.__class__.__name__,
|
18341
|
+
"response_type": "UpdateTopProjectResponse"
|
18342
|
+
}
|
18343
|
+
|
18344
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
18345
|
+
|
18346
|
+
cname = None
|
18347
|
+
|
18348
|
+
collection_formats = {}
|
18349
|
+
|
18350
|
+
path_params = {}
|
18351
|
+
if 'eihealth_project_id' in local_var_params:
|
18352
|
+
path_params['eihealth_project_id'] = local_var_params['eihealth_project_id']
|
18353
|
+
|
18354
|
+
query_params = []
|
18355
|
+
|
18356
|
+
header_params = {}
|
18357
|
+
|
18358
|
+
form_params = {}
|
18359
|
+
|
18360
|
+
body = None
|
18361
|
+
if 'body' in local_var_params:
|
18362
|
+
body = local_var_params['body']
|
18363
|
+
if isinstance(request, SdkStreamRequest):
|
18364
|
+
body = request.get_file_stream()
|
18365
|
+
|
18366
|
+
response_headers = []
|
18367
|
+
|
18368
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
18369
|
+
['application/json'])
|
18370
|
+
|
18371
|
+
auth_settings = []
|
18372
|
+
|
18373
|
+
http_info["cname"] = cname
|
18374
|
+
http_info["collection_formats"] = collection_formats
|
18375
|
+
http_info["path_params"] = path_params
|
18376
|
+
http_info["query_params"] = query_params
|
18377
|
+
http_info["header_params"] = header_params
|
18378
|
+
http_info["post_params"] = form_params
|
18379
|
+
http_info["body"] = body
|
18380
|
+
http_info["response_headers"] = response_headers
|
18381
|
+
|
18382
|
+
return http_info
|
18383
|
+
|
17202
18384
|
def update_user(self, request):
|
17203
18385
|
r"""修改用户基本信息
|
17204
18386
|
|
@@ -22087,6 +23269,99 @@ class EiHealthClient(Client):
|
|
22087
23269
|
|
22088
23270
|
return http_info
|
22089
23271
|
|
23272
|
+
def list_user_notebook(self, request):
|
23273
|
+
r"""获取用户所属空间的notebook列表
|
23274
|
+
|
23275
|
+
获取用户所属空间的notebook列表。
|
23276
|
+
|
23277
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
23278
|
+
|
23279
|
+
:param request: Request instance for ListUserNotebook
|
23280
|
+
:type request: :class:`huaweicloudsdkeihealth.v1.ListUserNotebookRequest`
|
23281
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ListUserNotebookResponse`
|
23282
|
+
"""
|
23283
|
+
http_info = self._list_user_notebook_http_info(request)
|
23284
|
+
return self._call_api(**http_info)
|
23285
|
+
|
23286
|
+
def list_user_notebook_invoker(self, request):
|
23287
|
+
http_info = self._list_user_notebook_http_info(request)
|
23288
|
+
return SyncInvoker(self, http_info)
|
23289
|
+
|
23290
|
+
@classmethod
|
23291
|
+
def _list_user_notebook_http_info(cls, request):
|
23292
|
+
http_info = {
|
23293
|
+
"method": "GET",
|
23294
|
+
"resource_path": "/v1/{project_id}/eihealth-projects/notebooks",
|
23295
|
+
"request_type": request.__class__.__name__,
|
23296
|
+
"response_type": "ListUserNotebookResponse"
|
23297
|
+
}
|
23298
|
+
|
23299
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
23300
|
+
|
23301
|
+
cname = None
|
23302
|
+
|
23303
|
+
collection_formats = {}
|
23304
|
+
|
23305
|
+
path_params = {}
|
23306
|
+
|
23307
|
+
query_params = []
|
23308
|
+
if 'notebook_name' in local_var_params:
|
23309
|
+
query_params.append(('notebook_name', local_var_params['notebook_name']))
|
23310
|
+
if 'description' in local_var_params:
|
23311
|
+
query_params.append(('description', local_var_params['description']))
|
23312
|
+
if 'image_name' in local_var_params:
|
23313
|
+
query_params.append(('image_name', local_var_params['image_name']))
|
23314
|
+
if 'is_creator' in local_var_params:
|
23315
|
+
query_params.append(('is_creator', local_var_params['is_creator']))
|
23316
|
+
if 'eihealth_project_names' in local_var_params:
|
23317
|
+
query_params.append(('eihealth_project_names', local_var_params['eihealth_project_names']))
|
23318
|
+
collection_formats['eihealth_project_names'] = 'csv'
|
23319
|
+
if 'statuses' in local_var_params:
|
23320
|
+
query_params.append(('statuses', local_var_params['statuses']))
|
23321
|
+
collection_formats['statuses'] = 'csv'
|
23322
|
+
if 'start_create_time' in local_var_params:
|
23323
|
+
query_params.append(('start_create_time', local_var_params['start_create_time']))
|
23324
|
+
if 'end_create_time' in local_var_params:
|
23325
|
+
query_params.append(('end_create_time', local_var_params['end_create_time']))
|
23326
|
+
if 'start_update_time' in local_var_params:
|
23327
|
+
query_params.append(('start_update_time', local_var_params['start_update_time']))
|
23328
|
+
if 'end_update_time' in local_var_params:
|
23329
|
+
query_params.append(('end_update_time', local_var_params['end_update_time']))
|
23330
|
+
if 'sort_dir' in local_var_params:
|
23331
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
23332
|
+
if 'sort_by' in local_var_params:
|
23333
|
+
query_params.append(('sort_by', local_var_params['sort_by']))
|
23334
|
+
if 'limit' in local_var_params:
|
23335
|
+
query_params.append(('limit', local_var_params['limit']))
|
23336
|
+
if 'offset' in local_var_params:
|
23337
|
+
query_params.append(('offset', local_var_params['offset']))
|
23338
|
+
|
23339
|
+
header_params = {}
|
23340
|
+
|
23341
|
+
form_params = {}
|
23342
|
+
|
23343
|
+
body = None
|
23344
|
+
if isinstance(request, SdkStreamRequest):
|
23345
|
+
body = request.get_file_stream()
|
23346
|
+
|
23347
|
+
response_headers = []
|
23348
|
+
|
23349
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
23350
|
+
['application/json'])
|
23351
|
+
|
23352
|
+
auth_settings = []
|
23353
|
+
|
23354
|
+
http_info["cname"] = cname
|
23355
|
+
http_info["collection_formats"] = collection_formats
|
23356
|
+
http_info["path_params"] = path_params
|
23357
|
+
http_info["query_params"] = query_params
|
23358
|
+
http_info["header_params"] = header_params
|
23359
|
+
http_info["post_params"] = form_params
|
23360
|
+
http_info["body"] = body
|
23361
|
+
http_info["response_headers"] = response_headers
|
23362
|
+
|
23363
|
+
return http_info
|
23364
|
+
|
22090
23365
|
def show_notebook(self, request):
|
22091
23366
|
r"""获取notebook详情
|
22092
23367
|
|