alibabacloud-ehpcinstant20230701 1.0.0__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.

Potentially problematic release.


This version of alibabacloud-ehpcinstant20230701 might be problematic. Click here for more details.

@@ -0,0 +1,1062 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from typing import Dict
4
+ from Tea.core import TeaCore
5
+
6
+ from alibabacloud_tea_openapi.client import Client as OpenApiClient
7
+ from alibabacloud_tea_openapi import models as open_api_models
8
+ from alibabacloud_tea_util.client import Client as UtilClient
9
+ from alibabacloud_endpoint_util.client import Client as EndpointUtilClient
10
+ from alibabacloud_ehpcinstant20230701 import models as ehpc_instant_20230701_models
11
+ from alibabacloud_tea_util import models as util_models
12
+ from alibabacloud_openapi_util.client import Client as OpenApiUtilClient
13
+
14
+
15
+ class Client(OpenApiClient):
16
+ """
17
+ *\
18
+ """
19
+ def __init__(
20
+ self,
21
+ config: open_api_models.Config,
22
+ ):
23
+ super().__init__(config)
24
+ self._endpoint_rule = ''
25
+ self.check_config(config)
26
+ self._endpoint = self.get_endpoint('ehpcinstant', self._region_id, self._endpoint_rule, self._network, self._suffix, self._endpoint_map, self._endpoint)
27
+
28
+ def get_endpoint(
29
+ self,
30
+ product_id: str,
31
+ region_id: str,
32
+ endpoint_rule: str,
33
+ network: str,
34
+ suffix: str,
35
+ endpoint_map: Dict[str, str],
36
+ endpoint: str,
37
+ ) -> str:
38
+ if not UtilClient.empty(endpoint):
39
+ return endpoint
40
+ if not UtilClient.is_unset(endpoint_map) and not UtilClient.empty(endpoint_map.get(region_id)):
41
+ return endpoint_map.get(region_id)
42
+ return EndpointUtilClient.get_endpoint_rules(product_id, region_id, endpoint_rule, network, suffix)
43
+
44
+ def add_image_with_options(
45
+ self,
46
+ tmp_req: ehpc_instant_20230701_models.AddImageRequest,
47
+ runtime: util_models.RuntimeOptions,
48
+ ) -> ehpc_instant_20230701_models.AddImageResponse:
49
+ UtilClient.validate_model(tmp_req)
50
+ request = ehpc_instant_20230701_models.AddImageShrinkRequest()
51
+ OpenApiUtilClient.convert(tmp_req, request)
52
+ if not UtilClient.is_unset(tmp_req.container_image_spec):
53
+ request.container_image_spec_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.container_image_spec, 'ContainerImageSpec', 'json')
54
+ if not UtilClient.is_unset(tmp_req.vmimage_spec):
55
+ request.vmimage_spec_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.vmimage_spec, 'VMImageSpec', 'json')
56
+ query = {}
57
+ if not UtilClient.is_unset(request.container_image_spec_shrink):
58
+ query['ContainerImageSpec'] = request.container_image_spec_shrink
59
+ if not UtilClient.is_unset(request.description):
60
+ query['Description'] = request.description
61
+ if not UtilClient.is_unset(request.image_version):
62
+ query['ImageVersion'] = request.image_version
63
+ if not UtilClient.is_unset(request.name):
64
+ query['Name'] = request.name
65
+ if not UtilClient.is_unset(request.vmimage_spec_shrink):
66
+ query['VMImageSpec'] = request.vmimage_spec_shrink
67
+ req = open_api_models.OpenApiRequest(
68
+ query=OpenApiUtilClient.query(query)
69
+ )
70
+ params = open_api_models.Params(
71
+ action='AddImage',
72
+ version='2023-07-01',
73
+ protocol='HTTPS',
74
+ pathname='/',
75
+ method='POST',
76
+ auth_type='AK',
77
+ style='RPC',
78
+ req_body_type='formData',
79
+ body_type='json'
80
+ )
81
+ return TeaCore.from_map(
82
+ ehpc_instant_20230701_models.AddImageResponse(),
83
+ self.call_api(params, req, runtime)
84
+ )
85
+
86
+ async def add_image_with_options_async(
87
+ self,
88
+ tmp_req: ehpc_instant_20230701_models.AddImageRequest,
89
+ runtime: util_models.RuntimeOptions,
90
+ ) -> ehpc_instant_20230701_models.AddImageResponse:
91
+ UtilClient.validate_model(tmp_req)
92
+ request = ehpc_instant_20230701_models.AddImageShrinkRequest()
93
+ OpenApiUtilClient.convert(tmp_req, request)
94
+ if not UtilClient.is_unset(tmp_req.container_image_spec):
95
+ request.container_image_spec_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.container_image_spec, 'ContainerImageSpec', 'json')
96
+ if not UtilClient.is_unset(tmp_req.vmimage_spec):
97
+ request.vmimage_spec_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.vmimage_spec, 'VMImageSpec', 'json')
98
+ query = {}
99
+ if not UtilClient.is_unset(request.container_image_spec_shrink):
100
+ query['ContainerImageSpec'] = request.container_image_spec_shrink
101
+ if not UtilClient.is_unset(request.description):
102
+ query['Description'] = request.description
103
+ if not UtilClient.is_unset(request.image_version):
104
+ query['ImageVersion'] = request.image_version
105
+ if not UtilClient.is_unset(request.name):
106
+ query['Name'] = request.name
107
+ if not UtilClient.is_unset(request.vmimage_spec_shrink):
108
+ query['VMImageSpec'] = request.vmimage_spec_shrink
109
+ req = open_api_models.OpenApiRequest(
110
+ query=OpenApiUtilClient.query(query)
111
+ )
112
+ params = open_api_models.Params(
113
+ action='AddImage',
114
+ version='2023-07-01',
115
+ protocol='HTTPS',
116
+ pathname='/',
117
+ method='POST',
118
+ auth_type='AK',
119
+ style='RPC',
120
+ req_body_type='formData',
121
+ body_type='json'
122
+ )
123
+ return TeaCore.from_map(
124
+ ehpc_instant_20230701_models.AddImageResponse(),
125
+ await self.call_api_async(params, req, runtime)
126
+ )
127
+
128
+ def add_image(
129
+ self,
130
+ request: ehpc_instant_20230701_models.AddImageRequest,
131
+ ) -> ehpc_instant_20230701_models.AddImageResponse:
132
+ runtime = util_models.RuntimeOptions()
133
+ return self.add_image_with_options(request, runtime)
134
+
135
+ async def add_image_async(
136
+ self,
137
+ request: ehpc_instant_20230701_models.AddImageRequest,
138
+ ) -> ehpc_instant_20230701_models.AddImageResponse:
139
+ runtime = util_models.RuntimeOptions()
140
+ return await self.add_image_with_options_async(request, runtime)
141
+
142
+ def create_job_with_options(
143
+ self,
144
+ tmp_req: ehpc_instant_20230701_models.CreateJobRequest,
145
+ runtime: util_models.RuntimeOptions,
146
+ ) -> ehpc_instant_20230701_models.CreateJobResponse:
147
+ UtilClient.validate_model(tmp_req)
148
+ request = ehpc_instant_20230701_models.CreateJobShrinkRequest()
149
+ OpenApiUtilClient.convert(tmp_req, request)
150
+ if not UtilClient.is_unset(tmp_req.deployment_policy):
151
+ request.deployment_policy_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.deployment_policy, 'DeploymentPolicy', 'json')
152
+ if not UtilClient.is_unset(tmp_req.tasks):
153
+ request.tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tasks, 'Tasks', 'json')
154
+ query = {}
155
+ if not UtilClient.is_unset(request.deployment_policy_shrink):
156
+ query['DeploymentPolicy'] = request.deployment_policy_shrink
157
+ if not UtilClient.is_unset(request.job_description):
158
+ query['JobDescription'] = request.job_description
159
+ if not UtilClient.is_unset(request.job_name):
160
+ query['JobName'] = request.job_name
161
+ if not UtilClient.is_unset(request.tasks_shrink):
162
+ query['Tasks'] = request.tasks_shrink
163
+ req = open_api_models.OpenApiRequest(
164
+ query=OpenApiUtilClient.query(query)
165
+ )
166
+ params = open_api_models.Params(
167
+ action='CreateJob',
168
+ version='2023-07-01',
169
+ protocol='HTTPS',
170
+ pathname='/',
171
+ method='POST',
172
+ auth_type='AK',
173
+ style='RPC',
174
+ req_body_type='formData',
175
+ body_type='json'
176
+ )
177
+ return TeaCore.from_map(
178
+ ehpc_instant_20230701_models.CreateJobResponse(),
179
+ self.call_api(params, req, runtime)
180
+ )
181
+
182
+ async def create_job_with_options_async(
183
+ self,
184
+ tmp_req: ehpc_instant_20230701_models.CreateJobRequest,
185
+ runtime: util_models.RuntimeOptions,
186
+ ) -> ehpc_instant_20230701_models.CreateJobResponse:
187
+ UtilClient.validate_model(tmp_req)
188
+ request = ehpc_instant_20230701_models.CreateJobShrinkRequest()
189
+ OpenApiUtilClient.convert(tmp_req, request)
190
+ if not UtilClient.is_unset(tmp_req.deployment_policy):
191
+ request.deployment_policy_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.deployment_policy, 'DeploymentPolicy', 'json')
192
+ if not UtilClient.is_unset(tmp_req.tasks):
193
+ request.tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tasks, 'Tasks', 'json')
194
+ query = {}
195
+ if not UtilClient.is_unset(request.deployment_policy_shrink):
196
+ query['DeploymentPolicy'] = request.deployment_policy_shrink
197
+ if not UtilClient.is_unset(request.job_description):
198
+ query['JobDescription'] = request.job_description
199
+ if not UtilClient.is_unset(request.job_name):
200
+ query['JobName'] = request.job_name
201
+ if not UtilClient.is_unset(request.tasks_shrink):
202
+ query['Tasks'] = request.tasks_shrink
203
+ req = open_api_models.OpenApiRequest(
204
+ query=OpenApiUtilClient.query(query)
205
+ )
206
+ params = open_api_models.Params(
207
+ action='CreateJob',
208
+ version='2023-07-01',
209
+ protocol='HTTPS',
210
+ pathname='/',
211
+ method='POST',
212
+ auth_type='AK',
213
+ style='RPC',
214
+ req_body_type='formData',
215
+ body_type='json'
216
+ )
217
+ return TeaCore.from_map(
218
+ ehpc_instant_20230701_models.CreateJobResponse(),
219
+ await self.call_api_async(params, req, runtime)
220
+ )
221
+
222
+ def create_job(
223
+ self,
224
+ request: ehpc_instant_20230701_models.CreateJobRequest,
225
+ ) -> ehpc_instant_20230701_models.CreateJobResponse:
226
+ runtime = util_models.RuntimeOptions()
227
+ return self.create_job_with_options(request, runtime)
228
+
229
+ async def create_job_async(
230
+ self,
231
+ request: ehpc_instant_20230701_models.CreateJobRequest,
232
+ ) -> ehpc_instant_20230701_models.CreateJobResponse:
233
+ runtime = util_models.RuntimeOptions()
234
+ return await self.create_job_with_options_async(request, runtime)
235
+
236
+ def delete_jobs_with_options(
237
+ self,
238
+ tmp_req: ehpc_instant_20230701_models.DeleteJobsRequest,
239
+ runtime: util_models.RuntimeOptions,
240
+ ) -> ehpc_instant_20230701_models.DeleteJobsResponse:
241
+ UtilClient.validate_model(tmp_req)
242
+ request = ehpc_instant_20230701_models.DeleteJobsShrinkRequest()
243
+ OpenApiUtilClient.convert(tmp_req, request)
244
+ if not UtilClient.is_unset(tmp_req.executor_ids):
245
+ request.executor_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.executor_ids, 'ExecutorIds', 'json')
246
+ if not UtilClient.is_unset(tmp_req.job_spec):
247
+ request.job_spec_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.job_spec, 'JobSpec', 'json')
248
+ query = {}
249
+ if not UtilClient.is_unset(request.executor_ids_shrink):
250
+ query['ExecutorIds'] = request.executor_ids_shrink
251
+ if not UtilClient.is_unset(request.job_spec_shrink):
252
+ query['JobSpec'] = request.job_spec_shrink
253
+ req = open_api_models.OpenApiRequest(
254
+ query=OpenApiUtilClient.query(query)
255
+ )
256
+ params = open_api_models.Params(
257
+ action='DeleteJobs',
258
+ version='2023-07-01',
259
+ protocol='HTTPS',
260
+ pathname='/',
261
+ method='POST',
262
+ auth_type='AK',
263
+ style='RPC',
264
+ req_body_type='formData',
265
+ body_type='json'
266
+ )
267
+ return TeaCore.from_map(
268
+ ehpc_instant_20230701_models.DeleteJobsResponse(),
269
+ self.call_api(params, req, runtime)
270
+ )
271
+
272
+ async def delete_jobs_with_options_async(
273
+ self,
274
+ tmp_req: ehpc_instant_20230701_models.DeleteJobsRequest,
275
+ runtime: util_models.RuntimeOptions,
276
+ ) -> ehpc_instant_20230701_models.DeleteJobsResponse:
277
+ UtilClient.validate_model(tmp_req)
278
+ request = ehpc_instant_20230701_models.DeleteJobsShrinkRequest()
279
+ OpenApiUtilClient.convert(tmp_req, request)
280
+ if not UtilClient.is_unset(tmp_req.executor_ids):
281
+ request.executor_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.executor_ids, 'ExecutorIds', 'json')
282
+ if not UtilClient.is_unset(tmp_req.job_spec):
283
+ request.job_spec_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.job_spec, 'JobSpec', 'json')
284
+ query = {}
285
+ if not UtilClient.is_unset(request.executor_ids_shrink):
286
+ query['ExecutorIds'] = request.executor_ids_shrink
287
+ if not UtilClient.is_unset(request.job_spec_shrink):
288
+ query['JobSpec'] = request.job_spec_shrink
289
+ req = open_api_models.OpenApiRequest(
290
+ query=OpenApiUtilClient.query(query)
291
+ )
292
+ params = open_api_models.Params(
293
+ action='DeleteJobs',
294
+ version='2023-07-01',
295
+ protocol='HTTPS',
296
+ pathname='/',
297
+ method='POST',
298
+ auth_type='AK',
299
+ style='RPC',
300
+ req_body_type='formData',
301
+ body_type='json'
302
+ )
303
+ return TeaCore.from_map(
304
+ ehpc_instant_20230701_models.DeleteJobsResponse(),
305
+ await self.call_api_async(params, req, runtime)
306
+ )
307
+
308
+ def delete_jobs(
309
+ self,
310
+ request: ehpc_instant_20230701_models.DeleteJobsRequest,
311
+ ) -> ehpc_instant_20230701_models.DeleteJobsResponse:
312
+ runtime = util_models.RuntimeOptions()
313
+ return self.delete_jobs_with_options(request, runtime)
314
+
315
+ async def delete_jobs_async(
316
+ self,
317
+ request: ehpc_instant_20230701_models.DeleteJobsRequest,
318
+ ) -> ehpc_instant_20230701_models.DeleteJobsResponse:
319
+ runtime = util_models.RuntimeOptions()
320
+ return await self.delete_jobs_with_options_async(request, runtime)
321
+
322
+ def describe_job_metric_data_with_options(
323
+ self,
324
+ tmp_req: ehpc_instant_20230701_models.DescribeJobMetricDataRequest,
325
+ runtime: util_models.RuntimeOptions,
326
+ ) -> ehpc_instant_20230701_models.DescribeJobMetricDataResponse:
327
+ UtilClient.validate_model(tmp_req)
328
+ request = ehpc_instant_20230701_models.DescribeJobMetricDataShrinkRequest()
329
+ OpenApiUtilClient.convert(tmp_req, request)
330
+ if not UtilClient.is_unset(tmp_req.array_index):
331
+ request.array_index_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.array_index, 'ArrayIndex', 'json')
332
+ query = {}
333
+ if not UtilClient.is_unset(request.array_index_shrink):
334
+ query['ArrayIndex'] = request.array_index_shrink
335
+ if not UtilClient.is_unset(request.job_id):
336
+ query['JobId'] = request.job_id
337
+ if not UtilClient.is_unset(request.metric_name):
338
+ query['MetricName'] = request.metric_name
339
+ if not UtilClient.is_unset(request.task_name):
340
+ query['TaskName'] = request.task_name
341
+ req = open_api_models.OpenApiRequest(
342
+ query=OpenApiUtilClient.query(query)
343
+ )
344
+ params = open_api_models.Params(
345
+ action='DescribeJobMetricData',
346
+ version='2023-07-01',
347
+ protocol='HTTPS',
348
+ pathname='/',
349
+ method='POST',
350
+ auth_type='AK',
351
+ style='RPC',
352
+ req_body_type='formData',
353
+ body_type='json'
354
+ )
355
+ return TeaCore.from_map(
356
+ ehpc_instant_20230701_models.DescribeJobMetricDataResponse(),
357
+ self.call_api(params, req, runtime)
358
+ )
359
+
360
+ async def describe_job_metric_data_with_options_async(
361
+ self,
362
+ tmp_req: ehpc_instant_20230701_models.DescribeJobMetricDataRequest,
363
+ runtime: util_models.RuntimeOptions,
364
+ ) -> ehpc_instant_20230701_models.DescribeJobMetricDataResponse:
365
+ UtilClient.validate_model(tmp_req)
366
+ request = ehpc_instant_20230701_models.DescribeJobMetricDataShrinkRequest()
367
+ OpenApiUtilClient.convert(tmp_req, request)
368
+ if not UtilClient.is_unset(tmp_req.array_index):
369
+ request.array_index_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.array_index, 'ArrayIndex', 'json')
370
+ query = {}
371
+ if not UtilClient.is_unset(request.array_index_shrink):
372
+ query['ArrayIndex'] = request.array_index_shrink
373
+ if not UtilClient.is_unset(request.job_id):
374
+ query['JobId'] = request.job_id
375
+ if not UtilClient.is_unset(request.metric_name):
376
+ query['MetricName'] = request.metric_name
377
+ if not UtilClient.is_unset(request.task_name):
378
+ query['TaskName'] = request.task_name
379
+ req = open_api_models.OpenApiRequest(
380
+ query=OpenApiUtilClient.query(query)
381
+ )
382
+ params = open_api_models.Params(
383
+ action='DescribeJobMetricData',
384
+ version='2023-07-01',
385
+ protocol='HTTPS',
386
+ pathname='/',
387
+ method='POST',
388
+ auth_type='AK',
389
+ style='RPC',
390
+ req_body_type='formData',
391
+ body_type='json'
392
+ )
393
+ return TeaCore.from_map(
394
+ ehpc_instant_20230701_models.DescribeJobMetricDataResponse(),
395
+ await self.call_api_async(params, req, runtime)
396
+ )
397
+
398
+ def describe_job_metric_data(
399
+ self,
400
+ request: ehpc_instant_20230701_models.DescribeJobMetricDataRequest,
401
+ ) -> ehpc_instant_20230701_models.DescribeJobMetricDataResponse:
402
+ runtime = util_models.RuntimeOptions()
403
+ return self.describe_job_metric_data_with_options(request, runtime)
404
+
405
+ async def describe_job_metric_data_async(
406
+ self,
407
+ request: ehpc_instant_20230701_models.DescribeJobMetricDataRequest,
408
+ ) -> ehpc_instant_20230701_models.DescribeJobMetricDataResponse:
409
+ runtime = util_models.RuntimeOptions()
410
+ return await self.describe_job_metric_data_with_options_async(request, runtime)
411
+
412
+ def describe_job_metric_last_with_options(
413
+ self,
414
+ tmp_req: ehpc_instant_20230701_models.DescribeJobMetricLastRequest,
415
+ runtime: util_models.RuntimeOptions,
416
+ ) -> ehpc_instant_20230701_models.DescribeJobMetricLastResponse:
417
+ UtilClient.validate_model(tmp_req)
418
+ request = ehpc_instant_20230701_models.DescribeJobMetricLastShrinkRequest()
419
+ OpenApiUtilClient.convert(tmp_req, request)
420
+ if not UtilClient.is_unset(tmp_req.array_index):
421
+ request.array_index_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.array_index, 'ArrayIndex', 'json')
422
+ query = {}
423
+ if not UtilClient.is_unset(request.array_index_shrink):
424
+ query['ArrayIndex'] = request.array_index_shrink
425
+ if not UtilClient.is_unset(request.job_id):
426
+ query['JobId'] = request.job_id
427
+ if not UtilClient.is_unset(request.task_name):
428
+ query['TaskName'] = request.task_name
429
+ req = open_api_models.OpenApiRequest(
430
+ query=OpenApiUtilClient.query(query)
431
+ )
432
+ params = open_api_models.Params(
433
+ action='DescribeJobMetricLast',
434
+ version='2023-07-01',
435
+ protocol='HTTPS',
436
+ pathname='/',
437
+ method='POST',
438
+ auth_type='AK',
439
+ style='RPC',
440
+ req_body_type='formData',
441
+ body_type='json'
442
+ )
443
+ return TeaCore.from_map(
444
+ ehpc_instant_20230701_models.DescribeJobMetricLastResponse(),
445
+ self.call_api(params, req, runtime)
446
+ )
447
+
448
+ async def describe_job_metric_last_with_options_async(
449
+ self,
450
+ tmp_req: ehpc_instant_20230701_models.DescribeJobMetricLastRequest,
451
+ runtime: util_models.RuntimeOptions,
452
+ ) -> ehpc_instant_20230701_models.DescribeJobMetricLastResponse:
453
+ UtilClient.validate_model(tmp_req)
454
+ request = ehpc_instant_20230701_models.DescribeJobMetricLastShrinkRequest()
455
+ OpenApiUtilClient.convert(tmp_req, request)
456
+ if not UtilClient.is_unset(tmp_req.array_index):
457
+ request.array_index_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.array_index, 'ArrayIndex', 'json')
458
+ query = {}
459
+ if not UtilClient.is_unset(request.array_index_shrink):
460
+ query['ArrayIndex'] = request.array_index_shrink
461
+ if not UtilClient.is_unset(request.job_id):
462
+ query['JobId'] = request.job_id
463
+ if not UtilClient.is_unset(request.task_name):
464
+ query['TaskName'] = request.task_name
465
+ req = open_api_models.OpenApiRequest(
466
+ query=OpenApiUtilClient.query(query)
467
+ )
468
+ params = open_api_models.Params(
469
+ action='DescribeJobMetricLast',
470
+ version='2023-07-01',
471
+ protocol='HTTPS',
472
+ pathname='/',
473
+ method='POST',
474
+ auth_type='AK',
475
+ style='RPC',
476
+ req_body_type='formData',
477
+ body_type='json'
478
+ )
479
+ return TeaCore.from_map(
480
+ ehpc_instant_20230701_models.DescribeJobMetricLastResponse(),
481
+ await self.call_api_async(params, req, runtime)
482
+ )
483
+
484
+ def describe_job_metric_last(
485
+ self,
486
+ request: ehpc_instant_20230701_models.DescribeJobMetricLastRequest,
487
+ ) -> ehpc_instant_20230701_models.DescribeJobMetricLastResponse:
488
+ runtime = util_models.RuntimeOptions()
489
+ return self.describe_job_metric_last_with_options(request, runtime)
490
+
491
+ async def describe_job_metric_last_async(
492
+ self,
493
+ request: ehpc_instant_20230701_models.DescribeJobMetricLastRequest,
494
+ ) -> ehpc_instant_20230701_models.DescribeJobMetricLastResponse:
495
+ runtime = util_models.RuntimeOptions()
496
+ return await self.describe_job_metric_last_with_options_async(request, runtime)
497
+
498
+ def get_image_with_options(
499
+ self,
500
+ request: ehpc_instant_20230701_models.GetImageRequest,
501
+ runtime: util_models.RuntimeOptions,
502
+ ) -> ehpc_instant_20230701_models.GetImageResponse:
503
+ UtilClient.validate_model(request)
504
+ query = {}
505
+ if not UtilClient.is_unset(request.image_id):
506
+ query['ImageId'] = request.image_id
507
+ req = open_api_models.OpenApiRequest(
508
+ query=OpenApiUtilClient.query(query)
509
+ )
510
+ params = open_api_models.Params(
511
+ action='GetImage',
512
+ version='2023-07-01',
513
+ protocol='HTTPS',
514
+ pathname='/',
515
+ method='POST',
516
+ auth_type='AK',
517
+ style='RPC',
518
+ req_body_type='formData',
519
+ body_type='json'
520
+ )
521
+ return TeaCore.from_map(
522
+ ehpc_instant_20230701_models.GetImageResponse(),
523
+ self.call_api(params, req, runtime)
524
+ )
525
+
526
+ async def get_image_with_options_async(
527
+ self,
528
+ request: ehpc_instant_20230701_models.GetImageRequest,
529
+ runtime: util_models.RuntimeOptions,
530
+ ) -> ehpc_instant_20230701_models.GetImageResponse:
531
+ UtilClient.validate_model(request)
532
+ query = {}
533
+ if not UtilClient.is_unset(request.image_id):
534
+ query['ImageId'] = request.image_id
535
+ req = open_api_models.OpenApiRequest(
536
+ query=OpenApiUtilClient.query(query)
537
+ )
538
+ params = open_api_models.Params(
539
+ action='GetImage',
540
+ version='2023-07-01',
541
+ protocol='HTTPS',
542
+ pathname='/',
543
+ method='POST',
544
+ auth_type='AK',
545
+ style='RPC',
546
+ req_body_type='formData',
547
+ body_type='json'
548
+ )
549
+ return TeaCore.from_map(
550
+ ehpc_instant_20230701_models.GetImageResponse(),
551
+ await self.call_api_async(params, req, runtime)
552
+ )
553
+
554
+ def get_image(
555
+ self,
556
+ request: ehpc_instant_20230701_models.GetImageRequest,
557
+ ) -> ehpc_instant_20230701_models.GetImageResponse:
558
+ runtime = util_models.RuntimeOptions()
559
+ return self.get_image_with_options(request, runtime)
560
+
561
+ async def get_image_async(
562
+ self,
563
+ request: ehpc_instant_20230701_models.GetImageRequest,
564
+ ) -> ehpc_instant_20230701_models.GetImageResponse:
565
+ runtime = util_models.RuntimeOptions()
566
+ return await self.get_image_with_options_async(request, runtime)
567
+
568
+ def get_job_with_options(
569
+ self,
570
+ request: ehpc_instant_20230701_models.GetJobRequest,
571
+ runtime: util_models.RuntimeOptions,
572
+ ) -> ehpc_instant_20230701_models.GetJobResponse:
573
+ UtilClient.validate_model(request)
574
+ query = {}
575
+ if not UtilClient.is_unset(request.job_id):
576
+ query['JobId'] = request.job_id
577
+ req = open_api_models.OpenApiRequest(
578
+ query=OpenApiUtilClient.query(query)
579
+ )
580
+ params = open_api_models.Params(
581
+ action='GetJob',
582
+ version='2023-07-01',
583
+ protocol='HTTPS',
584
+ pathname='/',
585
+ method='POST',
586
+ auth_type='AK',
587
+ style='RPC',
588
+ req_body_type='formData',
589
+ body_type='json'
590
+ )
591
+ return TeaCore.from_map(
592
+ ehpc_instant_20230701_models.GetJobResponse(),
593
+ self.call_api(params, req, runtime)
594
+ )
595
+
596
+ async def get_job_with_options_async(
597
+ self,
598
+ request: ehpc_instant_20230701_models.GetJobRequest,
599
+ runtime: util_models.RuntimeOptions,
600
+ ) -> ehpc_instant_20230701_models.GetJobResponse:
601
+ UtilClient.validate_model(request)
602
+ query = {}
603
+ if not UtilClient.is_unset(request.job_id):
604
+ query['JobId'] = request.job_id
605
+ req = open_api_models.OpenApiRequest(
606
+ query=OpenApiUtilClient.query(query)
607
+ )
608
+ params = open_api_models.Params(
609
+ action='GetJob',
610
+ version='2023-07-01',
611
+ protocol='HTTPS',
612
+ pathname='/',
613
+ method='POST',
614
+ auth_type='AK',
615
+ style='RPC',
616
+ req_body_type='formData',
617
+ body_type='json'
618
+ )
619
+ return TeaCore.from_map(
620
+ ehpc_instant_20230701_models.GetJobResponse(),
621
+ await self.call_api_async(params, req, runtime)
622
+ )
623
+
624
+ def get_job(
625
+ self,
626
+ request: ehpc_instant_20230701_models.GetJobRequest,
627
+ ) -> ehpc_instant_20230701_models.GetJobResponse:
628
+ runtime = util_models.RuntimeOptions()
629
+ return self.get_job_with_options(request, runtime)
630
+
631
+ async def get_job_async(
632
+ self,
633
+ request: ehpc_instant_20230701_models.GetJobRequest,
634
+ ) -> ehpc_instant_20230701_models.GetJobResponse:
635
+ runtime = util_models.RuntimeOptions()
636
+ return await self.get_job_with_options_async(request, runtime)
637
+
638
+ def list_executors_with_options(
639
+ self,
640
+ tmp_req: ehpc_instant_20230701_models.ListExecutorsRequest,
641
+ runtime: util_models.RuntimeOptions,
642
+ ) -> ehpc_instant_20230701_models.ListExecutorsResponse:
643
+ UtilClient.validate_model(tmp_req)
644
+ request = ehpc_instant_20230701_models.ListExecutorsShrinkRequest()
645
+ OpenApiUtilClient.convert(tmp_req, request)
646
+ if not UtilClient.is_unset(tmp_req.filter):
647
+ request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
648
+ query = {}
649
+ if not UtilClient.is_unset(request.filter_shrink):
650
+ query['Filter'] = request.filter_shrink
651
+ if not UtilClient.is_unset(request.page_number):
652
+ query['PageNumber'] = request.page_number
653
+ if not UtilClient.is_unset(request.page_size):
654
+ query['PageSize'] = request.page_size
655
+ req = open_api_models.OpenApiRequest(
656
+ query=OpenApiUtilClient.query(query)
657
+ )
658
+ params = open_api_models.Params(
659
+ action='ListExecutors',
660
+ version='2023-07-01',
661
+ protocol='HTTPS',
662
+ pathname='/',
663
+ method='POST',
664
+ auth_type='AK',
665
+ style='RPC',
666
+ req_body_type='formData',
667
+ body_type='json'
668
+ )
669
+ return TeaCore.from_map(
670
+ ehpc_instant_20230701_models.ListExecutorsResponse(),
671
+ self.call_api(params, req, runtime)
672
+ )
673
+
674
+ async def list_executors_with_options_async(
675
+ self,
676
+ tmp_req: ehpc_instant_20230701_models.ListExecutorsRequest,
677
+ runtime: util_models.RuntimeOptions,
678
+ ) -> ehpc_instant_20230701_models.ListExecutorsResponse:
679
+ UtilClient.validate_model(tmp_req)
680
+ request = ehpc_instant_20230701_models.ListExecutorsShrinkRequest()
681
+ OpenApiUtilClient.convert(tmp_req, request)
682
+ if not UtilClient.is_unset(tmp_req.filter):
683
+ request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
684
+ query = {}
685
+ if not UtilClient.is_unset(request.filter_shrink):
686
+ query['Filter'] = request.filter_shrink
687
+ if not UtilClient.is_unset(request.page_number):
688
+ query['PageNumber'] = request.page_number
689
+ if not UtilClient.is_unset(request.page_size):
690
+ query['PageSize'] = request.page_size
691
+ req = open_api_models.OpenApiRequest(
692
+ query=OpenApiUtilClient.query(query)
693
+ )
694
+ params = open_api_models.Params(
695
+ action='ListExecutors',
696
+ version='2023-07-01',
697
+ protocol='HTTPS',
698
+ pathname='/',
699
+ method='POST',
700
+ auth_type='AK',
701
+ style='RPC',
702
+ req_body_type='formData',
703
+ body_type='json'
704
+ )
705
+ return TeaCore.from_map(
706
+ ehpc_instant_20230701_models.ListExecutorsResponse(),
707
+ await self.call_api_async(params, req, runtime)
708
+ )
709
+
710
+ def list_executors(
711
+ self,
712
+ request: ehpc_instant_20230701_models.ListExecutorsRequest,
713
+ ) -> ehpc_instant_20230701_models.ListExecutorsResponse:
714
+ runtime = util_models.RuntimeOptions()
715
+ return self.list_executors_with_options(request, runtime)
716
+
717
+ async def list_executors_async(
718
+ self,
719
+ request: ehpc_instant_20230701_models.ListExecutorsRequest,
720
+ ) -> ehpc_instant_20230701_models.ListExecutorsResponse:
721
+ runtime = util_models.RuntimeOptions()
722
+ return await self.list_executors_with_options_async(request, runtime)
723
+
724
+ def list_images_with_options(
725
+ self,
726
+ tmp_req: ehpc_instant_20230701_models.ListImagesRequest,
727
+ runtime: util_models.RuntimeOptions,
728
+ ) -> ehpc_instant_20230701_models.ListImagesResponse:
729
+ UtilClient.validate_model(tmp_req)
730
+ request = ehpc_instant_20230701_models.ListImagesShrinkRequest()
731
+ OpenApiUtilClient.convert(tmp_req, request)
732
+ if not UtilClient.is_unset(tmp_req.image_ids):
733
+ request.image_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.image_ids, 'ImageIds', 'json')
734
+ if not UtilClient.is_unset(tmp_req.image_names):
735
+ request.image_names_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.image_names, 'ImageNames', 'json')
736
+ query = {}
737
+ if not UtilClient.is_unset(request.image_ids_shrink):
738
+ query['ImageIds'] = request.image_ids_shrink
739
+ if not UtilClient.is_unset(request.image_names_shrink):
740
+ query['ImageNames'] = request.image_names_shrink
741
+ if not UtilClient.is_unset(request.page_number):
742
+ query['PageNumber'] = request.page_number
743
+ if not UtilClient.is_unset(request.page_size):
744
+ query['PageSize'] = request.page_size
745
+ req = open_api_models.OpenApiRequest(
746
+ query=OpenApiUtilClient.query(query)
747
+ )
748
+ params = open_api_models.Params(
749
+ action='ListImages',
750
+ version='2023-07-01',
751
+ protocol='HTTPS',
752
+ pathname='/',
753
+ method='POST',
754
+ auth_type='AK',
755
+ style='RPC',
756
+ req_body_type='formData',
757
+ body_type='json'
758
+ )
759
+ return TeaCore.from_map(
760
+ ehpc_instant_20230701_models.ListImagesResponse(),
761
+ self.call_api(params, req, runtime)
762
+ )
763
+
764
+ async def list_images_with_options_async(
765
+ self,
766
+ tmp_req: ehpc_instant_20230701_models.ListImagesRequest,
767
+ runtime: util_models.RuntimeOptions,
768
+ ) -> ehpc_instant_20230701_models.ListImagesResponse:
769
+ UtilClient.validate_model(tmp_req)
770
+ request = ehpc_instant_20230701_models.ListImagesShrinkRequest()
771
+ OpenApiUtilClient.convert(tmp_req, request)
772
+ if not UtilClient.is_unset(tmp_req.image_ids):
773
+ request.image_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.image_ids, 'ImageIds', 'json')
774
+ if not UtilClient.is_unset(tmp_req.image_names):
775
+ request.image_names_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.image_names, 'ImageNames', 'json')
776
+ query = {}
777
+ if not UtilClient.is_unset(request.image_ids_shrink):
778
+ query['ImageIds'] = request.image_ids_shrink
779
+ if not UtilClient.is_unset(request.image_names_shrink):
780
+ query['ImageNames'] = request.image_names_shrink
781
+ if not UtilClient.is_unset(request.page_number):
782
+ query['PageNumber'] = request.page_number
783
+ if not UtilClient.is_unset(request.page_size):
784
+ query['PageSize'] = request.page_size
785
+ req = open_api_models.OpenApiRequest(
786
+ query=OpenApiUtilClient.query(query)
787
+ )
788
+ params = open_api_models.Params(
789
+ action='ListImages',
790
+ version='2023-07-01',
791
+ protocol='HTTPS',
792
+ pathname='/',
793
+ method='POST',
794
+ auth_type='AK',
795
+ style='RPC',
796
+ req_body_type='formData',
797
+ body_type='json'
798
+ )
799
+ return TeaCore.from_map(
800
+ ehpc_instant_20230701_models.ListImagesResponse(),
801
+ await self.call_api_async(params, req, runtime)
802
+ )
803
+
804
+ def list_images(
805
+ self,
806
+ request: ehpc_instant_20230701_models.ListImagesRequest,
807
+ ) -> ehpc_instant_20230701_models.ListImagesResponse:
808
+ runtime = util_models.RuntimeOptions()
809
+ return self.list_images_with_options(request, runtime)
810
+
811
+ async def list_images_async(
812
+ self,
813
+ request: ehpc_instant_20230701_models.ListImagesRequest,
814
+ ) -> ehpc_instant_20230701_models.ListImagesResponse:
815
+ runtime = util_models.RuntimeOptions()
816
+ return await self.list_images_with_options_async(request, runtime)
817
+
818
+ def list_job_executors_with_options(
819
+ self,
820
+ request: ehpc_instant_20230701_models.ListJobExecutorsRequest,
821
+ runtime: util_models.RuntimeOptions,
822
+ ) -> ehpc_instant_20230701_models.ListJobExecutorsResponse:
823
+ UtilClient.validate_model(request)
824
+ query = {}
825
+ if not UtilClient.is_unset(request.job_id):
826
+ query['JobId'] = request.job_id
827
+ if not UtilClient.is_unset(request.page_number):
828
+ query['PageNumber'] = request.page_number
829
+ if not UtilClient.is_unset(request.page_size):
830
+ query['PageSize'] = request.page_size
831
+ if not UtilClient.is_unset(request.task_name):
832
+ query['TaskName'] = request.task_name
833
+ req = open_api_models.OpenApiRequest(
834
+ query=OpenApiUtilClient.query(query)
835
+ )
836
+ params = open_api_models.Params(
837
+ action='ListJobExecutors',
838
+ version='2023-07-01',
839
+ protocol='HTTPS',
840
+ pathname='/',
841
+ method='POST',
842
+ auth_type='AK',
843
+ style='RPC',
844
+ req_body_type='formData',
845
+ body_type='json'
846
+ )
847
+ return TeaCore.from_map(
848
+ ehpc_instant_20230701_models.ListJobExecutorsResponse(),
849
+ self.call_api(params, req, runtime)
850
+ )
851
+
852
+ async def list_job_executors_with_options_async(
853
+ self,
854
+ request: ehpc_instant_20230701_models.ListJobExecutorsRequest,
855
+ runtime: util_models.RuntimeOptions,
856
+ ) -> ehpc_instant_20230701_models.ListJobExecutorsResponse:
857
+ UtilClient.validate_model(request)
858
+ query = {}
859
+ if not UtilClient.is_unset(request.job_id):
860
+ query['JobId'] = request.job_id
861
+ if not UtilClient.is_unset(request.page_number):
862
+ query['PageNumber'] = request.page_number
863
+ if not UtilClient.is_unset(request.page_size):
864
+ query['PageSize'] = request.page_size
865
+ if not UtilClient.is_unset(request.task_name):
866
+ query['TaskName'] = request.task_name
867
+ req = open_api_models.OpenApiRequest(
868
+ query=OpenApiUtilClient.query(query)
869
+ )
870
+ params = open_api_models.Params(
871
+ action='ListJobExecutors',
872
+ version='2023-07-01',
873
+ protocol='HTTPS',
874
+ pathname='/',
875
+ method='POST',
876
+ auth_type='AK',
877
+ style='RPC',
878
+ req_body_type='formData',
879
+ body_type='json'
880
+ )
881
+ return TeaCore.from_map(
882
+ ehpc_instant_20230701_models.ListJobExecutorsResponse(),
883
+ await self.call_api_async(params, req, runtime)
884
+ )
885
+
886
+ def list_job_executors(
887
+ self,
888
+ request: ehpc_instant_20230701_models.ListJobExecutorsRequest,
889
+ ) -> ehpc_instant_20230701_models.ListJobExecutorsResponse:
890
+ runtime = util_models.RuntimeOptions()
891
+ return self.list_job_executors_with_options(request, runtime)
892
+
893
+ async def list_job_executors_async(
894
+ self,
895
+ request: ehpc_instant_20230701_models.ListJobExecutorsRequest,
896
+ ) -> ehpc_instant_20230701_models.ListJobExecutorsResponse:
897
+ runtime = util_models.RuntimeOptions()
898
+ return await self.list_job_executors_with_options_async(request, runtime)
899
+
900
+ def list_jobs_with_options(
901
+ self,
902
+ tmp_req: ehpc_instant_20230701_models.ListJobsRequest,
903
+ runtime: util_models.RuntimeOptions,
904
+ ) -> ehpc_instant_20230701_models.ListJobsResponse:
905
+ UtilClient.validate_model(tmp_req)
906
+ request = ehpc_instant_20230701_models.ListJobsShrinkRequest()
907
+ OpenApiUtilClient.convert(tmp_req, request)
908
+ if not UtilClient.is_unset(tmp_req.filter):
909
+ request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
910
+ if not UtilClient.is_unset(tmp_req.sort_by):
911
+ request.sort_by_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.sort_by, 'SortBy', 'json')
912
+ query = {}
913
+ if not UtilClient.is_unset(request.filter_shrink):
914
+ query['Filter'] = request.filter_shrink
915
+ if not UtilClient.is_unset(request.page_number):
916
+ query['PageNumber'] = request.page_number
917
+ if not UtilClient.is_unset(request.page_size):
918
+ query['PageSize'] = request.page_size
919
+ if not UtilClient.is_unset(request.sort_by_shrink):
920
+ query['SortBy'] = request.sort_by_shrink
921
+ req = open_api_models.OpenApiRequest(
922
+ query=OpenApiUtilClient.query(query)
923
+ )
924
+ params = open_api_models.Params(
925
+ action='ListJobs',
926
+ version='2023-07-01',
927
+ protocol='HTTPS',
928
+ pathname='/',
929
+ method='POST',
930
+ auth_type='AK',
931
+ style='RPC',
932
+ req_body_type='formData',
933
+ body_type='json'
934
+ )
935
+ return TeaCore.from_map(
936
+ ehpc_instant_20230701_models.ListJobsResponse(),
937
+ self.call_api(params, req, runtime)
938
+ )
939
+
940
+ async def list_jobs_with_options_async(
941
+ self,
942
+ tmp_req: ehpc_instant_20230701_models.ListJobsRequest,
943
+ runtime: util_models.RuntimeOptions,
944
+ ) -> ehpc_instant_20230701_models.ListJobsResponse:
945
+ UtilClient.validate_model(tmp_req)
946
+ request = ehpc_instant_20230701_models.ListJobsShrinkRequest()
947
+ OpenApiUtilClient.convert(tmp_req, request)
948
+ if not UtilClient.is_unset(tmp_req.filter):
949
+ request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
950
+ if not UtilClient.is_unset(tmp_req.sort_by):
951
+ request.sort_by_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.sort_by, 'SortBy', 'json')
952
+ query = {}
953
+ if not UtilClient.is_unset(request.filter_shrink):
954
+ query['Filter'] = request.filter_shrink
955
+ if not UtilClient.is_unset(request.page_number):
956
+ query['PageNumber'] = request.page_number
957
+ if not UtilClient.is_unset(request.page_size):
958
+ query['PageSize'] = request.page_size
959
+ if not UtilClient.is_unset(request.sort_by_shrink):
960
+ query['SortBy'] = request.sort_by_shrink
961
+ req = open_api_models.OpenApiRequest(
962
+ query=OpenApiUtilClient.query(query)
963
+ )
964
+ params = open_api_models.Params(
965
+ action='ListJobs',
966
+ version='2023-07-01',
967
+ protocol='HTTPS',
968
+ pathname='/',
969
+ method='POST',
970
+ auth_type='AK',
971
+ style='RPC',
972
+ req_body_type='formData',
973
+ body_type='json'
974
+ )
975
+ return TeaCore.from_map(
976
+ ehpc_instant_20230701_models.ListJobsResponse(),
977
+ await self.call_api_async(params, req, runtime)
978
+ )
979
+
980
+ def list_jobs(
981
+ self,
982
+ request: ehpc_instant_20230701_models.ListJobsRequest,
983
+ ) -> ehpc_instant_20230701_models.ListJobsResponse:
984
+ runtime = util_models.RuntimeOptions()
985
+ return self.list_jobs_with_options(request, runtime)
986
+
987
+ async def list_jobs_async(
988
+ self,
989
+ request: ehpc_instant_20230701_models.ListJobsRequest,
990
+ ) -> ehpc_instant_20230701_models.ListJobsResponse:
991
+ runtime = util_models.RuntimeOptions()
992
+ return await self.list_jobs_with_options_async(request, runtime)
993
+
994
+ def remove_image_with_options(
995
+ self,
996
+ request: ehpc_instant_20230701_models.RemoveImageRequest,
997
+ runtime: util_models.RuntimeOptions,
998
+ ) -> ehpc_instant_20230701_models.RemoveImageResponse:
999
+ UtilClient.validate_model(request)
1000
+ query = {}
1001
+ if not UtilClient.is_unset(request.image_id):
1002
+ query['ImageId'] = request.image_id
1003
+ req = open_api_models.OpenApiRequest(
1004
+ query=OpenApiUtilClient.query(query)
1005
+ )
1006
+ params = open_api_models.Params(
1007
+ action='RemoveImage',
1008
+ version='2023-07-01',
1009
+ protocol='HTTPS',
1010
+ pathname='/',
1011
+ method='POST',
1012
+ auth_type='AK',
1013
+ style='RPC',
1014
+ req_body_type='formData',
1015
+ body_type='json'
1016
+ )
1017
+ return TeaCore.from_map(
1018
+ ehpc_instant_20230701_models.RemoveImageResponse(),
1019
+ self.call_api(params, req, runtime)
1020
+ )
1021
+
1022
+ async def remove_image_with_options_async(
1023
+ self,
1024
+ request: ehpc_instant_20230701_models.RemoveImageRequest,
1025
+ runtime: util_models.RuntimeOptions,
1026
+ ) -> ehpc_instant_20230701_models.RemoveImageResponse:
1027
+ UtilClient.validate_model(request)
1028
+ query = {}
1029
+ if not UtilClient.is_unset(request.image_id):
1030
+ query['ImageId'] = request.image_id
1031
+ req = open_api_models.OpenApiRequest(
1032
+ query=OpenApiUtilClient.query(query)
1033
+ )
1034
+ params = open_api_models.Params(
1035
+ action='RemoveImage',
1036
+ version='2023-07-01',
1037
+ protocol='HTTPS',
1038
+ pathname='/',
1039
+ method='POST',
1040
+ auth_type='AK',
1041
+ style='RPC',
1042
+ req_body_type='formData',
1043
+ body_type='json'
1044
+ )
1045
+ return TeaCore.from_map(
1046
+ ehpc_instant_20230701_models.RemoveImageResponse(),
1047
+ await self.call_api_async(params, req, runtime)
1048
+ )
1049
+
1050
+ def remove_image(
1051
+ self,
1052
+ request: ehpc_instant_20230701_models.RemoveImageRequest,
1053
+ ) -> ehpc_instant_20230701_models.RemoveImageResponse:
1054
+ runtime = util_models.RuntimeOptions()
1055
+ return self.remove_image_with_options(request, runtime)
1056
+
1057
+ async def remove_image_async(
1058
+ self,
1059
+ request: ehpc_instant_20230701_models.RemoveImageRequest,
1060
+ ) -> ehpc_instant_20230701_models.RemoveImageResponse:
1061
+ runtime = util_models.RuntimeOptions()
1062
+ return await self.remove_image_with_options_async(request, runtime)