alibabacloud-ehpcinstant20230701 3.1.0__py3-none-any.whl → 3.2.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.
- alibabacloud_ehpcinstant20230701/__init__.py +1 -1
- alibabacloud_ehpcinstant20230701/client.py +656 -0
- alibabacloud_ehpcinstant20230701/models.py +1625 -344
- {alibabacloud_ehpcinstant20230701-3.1.0.dist-info → alibabacloud_ehpcinstant20230701-3.2.0.dist-info}/METADATA +1 -1
- alibabacloud_ehpcinstant20230701-3.2.0.dist-info/RECORD +8 -0
- alibabacloud_ehpcinstant20230701-3.1.0.dist-info/RECORD +0 -8
- {alibabacloud_ehpcinstant20230701-3.1.0.dist-info → alibabacloud_ehpcinstant20230701-3.2.0.dist-info}/LICENSE +0 -0
- {alibabacloud_ehpcinstant20230701-3.1.0.dist-info → alibabacloud_ehpcinstant20230701-3.2.0.dist-info}/WHEEL +0 -0
- {alibabacloud_ehpcinstant20230701-3.1.0.dist-info → alibabacloud_ehpcinstant20230701-3.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.
|
|
1
|
+
__version__ = '3.2.0'
|
|
@@ -169,6 +169,150 @@ class Client(OpenApiClient):
|
|
|
169
169
|
runtime = util_models.RuntimeOptions()
|
|
170
170
|
return await self.add_image_with_options_async(request, runtime)
|
|
171
171
|
|
|
172
|
+
def create_action_plan_with_options(
|
|
173
|
+
self,
|
|
174
|
+
tmp_req: ehpc_instant_20230701_models.CreateActionPlanRequest,
|
|
175
|
+
runtime: util_models.RuntimeOptions,
|
|
176
|
+
) -> ehpc_instant_20230701_models.CreateActionPlanResponse:
|
|
177
|
+
"""
|
|
178
|
+
@summary 创建执行计划创建执行计划
|
|
179
|
+
|
|
180
|
+
@param tmp_req: CreateActionPlanRequest
|
|
181
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
182
|
+
@return: CreateActionPlanResponse
|
|
183
|
+
"""
|
|
184
|
+
UtilClient.validate_model(tmp_req)
|
|
185
|
+
request = ehpc_instant_20230701_models.CreateActionPlanShrinkRequest()
|
|
186
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
187
|
+
if not UtilClient.is_unset(tmp_req.regions):
|
|
188
|
+
request.regions_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.regions, 'Regions', 'json')
|
|
189
|
+
if not UtilClient.is_unset(tmp_req.resources):
|
|
190
|
+
request.resources_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resources, 'Resources', 'json')
|
|
191
|
+
query = {}
|
|
192
|
+
if not UtilClient.is_unset(request.action_plan_name):
|
|
193
|
+
query['ActionPlanName'] = request.action_plan_name
|
|
194
|
+
if not UtilClient.is_unset(request.allocation_spec):
|
|
195
|
+
query['AllocationSpec'] = request.allocation_spec
|
|
196
|
+
if not UtilClient.is_unset(request.app_id):
|
|
197
|
+
query['AppId'] = request.app_id
|
|
198
|
+
if not UtilClient.is_unset(request.desired_capacity):
|
|
199
|
+
query['DesiredCapacity'] = request.desired_capacity
|
|
200
|
+
if not UtilClient.is_unset(request.level):
|
|
201
|
+
query['Level'] = request.level
|
|
202
|
+
if not UtilClient.is_unset(request.prolog_script):
|
|
203
|
+
query['PrologScript'] = request.prolog_script
|
|
204
|
+
if not UtilClient.is_unset(request.regions_shrink):
|
|
205
|
+
query['Regions'] = request.regions_shrink
|
|
206
|
+
if not UtilClient.is_unset(request.resource_type):
|
|
207
|
+
query['ResourceType'] = request.resource_type
|
|
208
|
+
if not UtilClient.is_unset(request.resources_shrink):
|
|
209
|
+
query['Resources'] = request.resources_shrink
|
|
210
|
+
if not UtilClient.is_unset(request.script):
|
|
211
|
+
query['Script'] = request.script
|
|
212
|
+
req = open_api_models.OpenApiRequest(
|
|
213
|
+
query=OpenApiUtilClient.query(query)
|
|
214
|
+
)
|
|
215
|
+
params = open_api_models.Params(
|
|
216
|
+
action='CreateActionPlan',
|
|
217
|
+
version='2023-07-01',
|
|
218
|
+
protocol='HTTPS',
|
|
219
|
+
pathname='/',
|
|
220
|
+
method='POST',
|
|
221
|
+
auth_type='AK',
|
|
222
|
+
style='RPC',
|
|
223
|
+
req_body_type='formData',
|
|
224
|
+
body_type='json'
|
|
225
|
+
)
|
|
226
|
+
return TeaCore.from_map(
|
|
227
|
+
ehpc_instant_20230701_models.CreateActionPlanResponse(),
|
|
228
|
+
self.call_api(params, req, runtime)
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
async def create_action_plan_with_options_async(
|
|
232
|
+
self,
|
|
233
|
+
tmp_req: ehpc_instant_20230701_models.CreateActionPlanRequest,
|
|
234
|
+
runtime: util_models.RuntimeOptions,
|
|
235
|
+
) -> ehpc_instant_20230701_models.CreateActionPlanResponse:
|
|
236
|
+
"""
|
|
237
|
+
@summary 创建执行计划创建执行计划
|
|
238
|
+
|
|
239
|
+
@param tmp_req: CreateActionPlanRequest
|
|
240
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
241
|
+
@return: CreateActionPlanResponse
|
|
242
|
+
"""
|
|
243
|
+
UtilClient.validate_model(tmp_req)
|
|
244
|
+
request = ehpc_instant_20230701_models.CreateActionPlanShrinkRequest()
|
|
245
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
246
|
+
if not UtilClient.is_unset(tmp_req.regions):
|
|
247
|
+
request.regions_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.regions, 'Regions', 'json')
|
|
248
|
+
if not UtilClient.is_unset(tmp_req.resources):
|
|
249
|
+
request.resources_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resources, 'Resources', 'json')
|
|
250
|
+
query = {}
|
|
251
|
+
if not UtilClient.is_unset(request.action_plan_name):
|
|
252
|
+
query['ActionPlanName'] = request.action_plan_name
|
|
253
|
+
if not UtilClient.is_unset(request.allocation_spec):
|
|
254
|
+
query['AllocationSpec'] = request.allocation_spec
|
|
255
|
+
if not UtilClient.is_unset(request.app_id):
|
|
256
|
+
query['AppId'] = request.app_id
|
|
257
|
+
if not UtilClient.is_unset(request.desired_capacity):
|
|
258
|
+
query['DesiredCapacity'] = request.desired_capacity
|
|
259
|
+
if not UtilClient.is_unset(request.level):
|
|
260
|
+
query['Level'] = request.level
|
|
261
|
+
if not UtilClient.is_unset(request.prolog_script):
|
|
262
|
+
query['PrologScript'] = request.prolog_script
|
|
263
|
+
if not UtilClient.is_unset(request.regions_shrink):
|
|
264
|
+
query['Regions'] = request.regions_shrink
|
|
265
|
+
if not UtilClient.is_unset(request.resource_type):
|
|
266
|
+
query['ResourceType'] = request.resource_type
|
|
267
|
+
if not UtilClient.is_unset(request.resources_shrink):
|
|
268
|
+
query['Resources'] = request.resources_shrink
|
|
269
|
+
if not UtilClient.is_unset(request.script):
|
|
270
|
+
query['Script'] = request.script
|
|
271
|
+
req = open_api_models.OpenApiRequest(
|
|
272
|
+
query=OpenApiUtilClient.query(query)
|
|
273
|
+
)
|
|
274
|
+
params = open_api_models.Params(
|
|
275
|
+
action='CreateActionPlan',
|
|
276
|
+
version='2023-07-01',
|
|
277
|
+
protocol='HTTPS',
|
|
278
|
+
pathname='/',
|
|
279
|
+
method='POST',
|
|
280
|
+
auth_type='AK',
|
|
281
|
+
style='RPC',
|
|
282
|
+
req_body_type='formData',
|
|
283
|
+
body_type='json'
|
|
284
|
+
)
|
|
285
|
+
return TeaCore.from_map(
|
|
286
|
+
ehpc_instant_20230701_models.CreateActionPlanResponse(),
|
|
287
|
+
await self.call_api_async(params, req, runtime)
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
def create_action_plan(
|
|
291
|
+
self,
|
|
292
|
+
request: ehpc_instant_20230701_models.CreateActionPlanRequest,
|
|
293
|
+
) -> ehpc_instant_20230701_models.CreateActionPlanResponse:
|
|
294
|
+
"""
|
|
295
|
+
@summary 创建执行计划创建执行计划
|
|
296
|
+
|
|
297
|
+
@param request: CreateActionPlanRequest
|
|
298
|
+
@return: CreateActionPlanResponse
|
|
299
|
+
"""
|
|
300
|
+
runtime = util_models.RuntimeOptions()
|
|
301
|
+
return self.create_action_plan_with_options(request, runtime)
|
|
302
|
+
|
|
303
|
+
async def create_action_plan_async(
|
|
304
|
+
self,
|
|
305
|
+
request: ehpc_instant_20230701_models.CreateActionPlanRequest,
|
|
306
|
+
) -> ehpc_instant_20230701_models.CreateActionPlanResponse:
|
|
307
|
+
"""
|
|
308
|
+
@summary 创建执行计划创建执行计划
|
|
309
|
+
|
|
310
|
+
@param request: CreateActionPlanRequest
|
|
311
|
+
@return: CreateActionPlanResponse
|
|
312
|
+
"""
|
|
313
|
+
runtime = util_models.RuntimeOptions()
|
|
314
|
+
return await self.create_action_plan_with_options_async(request, runtime)
|
|
315
|
+
|
|
172
316
|
def create_job_with_options(
|
|
173
317
|
self,
|
|
174
318
|
tmp_req: ehpc_instant_20230701_models.CreateJobRequest,
|
|
@@ -421,6 +565,102 @@ class Client(OpenApiClient):
|
|
|
421
565
|
runtime = util_models.RuntimeOptions()
|
|
422
566
|
return await self.create_pool_with_options_async(request, runtime)
|
|
423
567
|
|
|
568
|
+
def delete_action_plan_with_options(
|
|
569
|
+
self,
|
|
570
|
+
request: ehpc_instant_20230701_models.DeleteActionPlanRequest,
|
|
571
|
+
runtime: util_models.RuntimeOptions,
|
|
572
|
+
) -> ehpc_instant_20230701_models.DeleteActionPlanResponse:
|
|
573
|
+
"""
|
|
574
|
+
@summary 删除执行计划
|
|
575
|
+
|
|
576
|
+
@param request: DeleteActionPlanRequest
|
|
577
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
578
|
+
@return: DeleteActionPlanResponse
|
|
579
|
+
"""
|
|
580
|
+
UtilClient.validate_model(request)
|
|
581
|
+
query = {}
|
|
582
|
+
if not UtilClient.is_unset(request.action_plan_id):
|
|
583
|
+
query['ActionPlanId'] = request.action_plan_id
|
|
584
|
+
req = open_api_models.OpenApiRequest(
|
|
585
|
+
query=OpenApiUtilClient.query(query)
|
|
586
|
+
)
|
|
587
|
+
params = open_api_models.Params(
|
|
588
|
+
action='DeleteActionPlan',
|
|
589
|
+
version='2023-07-01',
|
|
590
|
+
protocol='HTTPS',
|
|
591
|
+
pathname='/',
|
|
592
|
+
method='POST',
|
|
593
|
+
auth_type='AK',
|
|
594
|
+
style='RPC',
|
|
595
|
+
req_body_type='formData',
|
|
596
|
+
body_type='json'
|
|
597
|
+
)
|
|
598
|
+
return TeaCore.from_map(
|
|
599
|
+
ehpc_instant_20230701_models.DeleteActionPlanResponse(),
|
|
600
|
+
self.call_api(params, req, runtime)
|
|
601
|
+
)
|
|
602
|
+
|
|
603
|
+
async def delete_action_plan_with_options_async(
|
|
604
|
+
self,
|
|
605
|
+
request: ehpc_instant_20230701_models.DeleteActionPlanRequest,
|
|
606
|
+
runtime: util_models.RuntimeOptions,
|
|
607
|
+
) -> ehpc_instant_20230701_models.DeleteActionPlanResponse:
|
|
608
|
+
"""
|
|
609
|
+
@summary 删除执行计划
|
|
610
|
+
|
|
611
|
+
@param request: DeleteActionPlanRequest
|
|
612
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
613
|
+
@return: DeleteActionPlanResponse
|
|
614
|
+
"""
|
|
615
|
+
UtilClient.validate_model(request)
|
|
616
|
+
query = {}
|
|
617
|
+
if not UtilClient.is_unset(request.action_plan_id):
|
|
618
|
+
query['ActionPlanId'] = request.action_plan_id
|
|
619
|
+
req = open_api_models.OpenApiRequest(
|
|
620
|
+
query=OpenApiUtilClient.query(query)
|
|
621
|
+
)
|
|
622
|
+
params = open_api_models.Params(
|
|
623
|
+
action='DeleteActionPlan',
|
|
624
|
+
version='2023-07-01',
|
|
625
|
+
protocol='HTTPS',
|
|
626
|
+
pathname='/',
|
|
627
|
+
method='POST',
|
|
628
|
+
auth_type='AK',
|
|
629
|
+
style='RPC',
|
|
630
|
+
req_body_type='formData',
|
|
631
|
+
body_type='json'
|
|
632
|
+
)
|
|
633
|
+
return TeaCore.from_map(
|
|
634
|
+
ehpc_instant_20230701_models.DeleteActionPlanResponse(),
|
|
635
|
+
await self.call_api_async(params, req, runtime)
|
|
636
|
+
)
|
|
637
|
+
|
|
638
|
+
def delete_action_plan(
|
|
639
|
+
self,
|
|
640
|
+
request: ehpc_instant_20230701_models.DeleteActionPlanRequest,
|
|
641
|
+
) -> ehpc_instant_20230701_models.DeleteActionPlanResponse:
|
|
642
|
+
"""
|
|
643
|
+
@summary 删除执行计划
|
|
644
|
+
|
|
645
|
+
@param request: DeleteActionPlanRequest
|
|
646
|
+
@return: DeleteActionPlanResponse
|
|
647
|
+
"""
|
|
648
|
+
runtime = util_models.RuntimeOptions()
|
|
649
|
+
return self.delete_action_plan_with_options(request, runtime)
|
|
650
|
+
|
|
651
|
+
async def delete_action_plan_async(
|
|
652
|
+
self,
|
|
653
|
+
request: ehpc_instant_20230701_models.DeleteActionPlanRequest,
|
|
654
|
+
) -> ehpc_instant_20230701_models.DeleteActionPlanResponse:
|
|
655
|
+
"""
|
|
656
|
+
@summary 删除执行计划
|
|
657
|
+
|
|
658
|
+
@param request: DeleteActionPlanRequest
|
|
659
|
+
@return: DeleteActionPlanResponse
|
|
660
|
+
"""
|
|
661
|
+
runtime = util_models.RuntimeOptions()
|
|
662
|
+
return await self.delete_action_plan_with_options_async(request, runtime)
|
|
663
|
+
|
|
424
664
|
def delete_jobs_with_options(
|
|
425
665
|
self,
|
|
426
666
|
tmp_req: ehpc_instant_20230701_models.DeleteJobsRequest,
|
|
@@ -861,6 +1101,102 @@ class Client(OpenApiClient):
|
|
|
861
1101
|
runtime = util_models.RuntimeOptions()
|
|
862
1102
|
return await self.describe_job_metric_last_with_options_async(request, runtime)
|
|
863
1103
|
|
|
1104
|
+
def get_action_plan_with_options(
|
|
1105
|
+
self,
|
|
1106
|
+
request: ehpc_instant_20230701_models.GetActionPlanRequest,
|
|
1107
|
+
runtime: util_models.RuntimeOptions,
|
|
1108
|
+
) -> ehpc_instant_20230701_models.GetActionPlanResponse:
|
|
1109
|
+
"""
|
|
1110
|
+
@summary 查询执行计划详情
|
|
1111
|
+
|
|
1112
|
+
@param request: GetActionPlanRequest
|
|
1113
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1114
|
+
@return: GetActionPlanResponse
|
|
1115
|
+
"""
|
|
1116
|
+
UtilClient.validate_model(request)
|
|
1117
|
+
query = {}
|
|
1118
|
+
if not UtilClient.is_unset(request.action_plan_id):
|
|
1119
|
+
query['ActionPlanId'] = request.action_plan_id
|
|
1120
|
+
req = open_api_models.OpenApiRequest(
|
|
1121
|
+
query=OpenApiUtilClient.query(query)
|
|
1122
|
+
)
|
|
1123
|
+
params = open_api_models.Params(
|
|
1124
|
+
action='GetActionPlan',
|
|
1125
|
+
version='2023-07-01',
|
|
1126
|
+
protocol='HTTPS',
|
|
1127
|
+
pathname='/',
|
|
1128
|
+
method='POST',
|
|
1129
|
+
auth_type='AK',
|
|
1130
|
+
style='RPC',
|
|
1131
|
+
req_body_type='formData',
|
|
1132
|
+
body_type='json'
|
|
1133
|
+
)
|
|
1134
|
+
return TeaCore.from_map(
|
|
1135
|
+
ehpc_instant_20230701_models.GetActionPlanResponse(),
|
|
1136
|
+
self.call_api(params, req, runtime)
|
|
1137
|
+
)
|
|
1138
|
+
|
|
1139
|
+
async def get_action_plan_with_options_async(
|
|
1140
|
+
self,
|
|
1141
|
+
request: ehpc_instant_20230701_models.GetActionPlanRequest,
|
|
1142
|
+
runtime: util_models.RuntimeOptions,
|
|
1143
|
+
) -> ehpc_instant_20230701_models.GetActionPlanResponse:
|
|
1144
|
+
"""
|
|
1145
|
+
@summary 查询执行计划详情
|
|
1146
|
+
|
|
1147
|
+
@param request: GetActionPlanRequest
|
|
1148
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1149
|
+
@return: GetActionPlanResponse
|
|
1150
|
+
"""
|
|
1151
|
+
UtilClient.validate_model(request)
|
|
1152
|
+
query = {}
|
|
1153
|
+
if not UtilClient.is_unset(request.action_plan_id):
|
|
1154
|
+
query['ActionPlanId'] = request.action_plan_id
|
|
1155
|
+
req = open_api_models.OpenApiRequest(
|
|
1156
|
+
query=OpenApiUtilClient.query(query)
|
|
1157
|
+
)
|
|
1158
|
+
params = open_api_models.Params(
|
|
1159
|
+
action='GetActionPlan',
|
|
1160
|
+
version='2023-07-01',
|
|
1161
|
+
protocol='HTTPS',
|
|
1162
|
+
pathname='/',
|
|
1163
|
+
method='POST',
|
|
1164
|
+
auth_type='AK',
|
|
1165
|
+
style='RPC',
|
|
1166
|
+
req_body_type='formData',
|
|
1167
|
+
body_type='json'
|
|
1168
|
+
)
|
|
1169
|
+
return TeaCore.from_map(
|
|
1170
|
+
ehpc_instant_20230701_models.GetActionPlanResponse(),
|
|
1171
|
+
await self.call_api_async(params, req, runtime)
|
|
1172
|
+
)
|
|
1173
|
+
|
|
1174
|
+
def get_action_plan(
|
|
1175
|
+
self,
|
|
1176
|
+
request: ehpc_instant_20230701_models.GetActionPlanRequest,
|
|
1177
|
+
) -> ehpc_instant_20230701_models.GetActionPlanResponse:
|
|
1178
|
+
"""
|
|
1179
|
+
@summary 查询执行计划详情
|
|
1180
|
+
|
|
1181
|
+
@param request: GetActionPlanRequest
|
|
1182
|
+
@return: GetActionPlanResponse
|
|
1183
|
+
"""
|
|
1184
|
+
runtime = util_models.RuntimeOptions()
|
|
1185
|
+
return self.get_action_plan_with_options(request, runtime)
|
|
1186
|
+
|
|
1187
|
+
async def get_action_plan_async(
|
|
1188
|
+
self,
|
|
1189
|
+
request: ehpc_instant_20230701_models.GetActionPlanRequest,
|
|
1190
|
+
) -> ehpc_instant_20230701_models.GetActionPlanResponse:
|
|
1191
|
+
"""
|
|
1192
|
+
@summary 查询执行计划详情
|
|
1193
|
+
|
|
1194
|
+
@param request: GetActionPlanRequest
|
|
1195
|
+
@return: GetActionPlanResponse
|
|
1196
|
+
"""
|
|
1197
|
+
runtime = util_models.RuntimeOptions()
|
|
1198
|
+
return await self.get_action_plan_with_options_async(request, runtime)
|
|
1199
|
+
|
|
864
1200
|
def get_app_versions_with_options(
|
|
865
1201
|
self,
|
|
866
1202
|
request: ehpc_instant_20230701_models.GetAppVersionsRequest,
|
|
@@ -1281,6 +1617,222 @@ class Client(OpenApiClient):
|
|
|
1281
1617
|
runtime = util_models.RuntimeOptions()
|
|
1282
1618
|
return await self.get_pool_with_options_async(request, runtime)
|
|
1283
1619
|
|
|
1620
|
+
def list_action_plan_activities_with_options(
|
|
1621
|
+
self,
|
|
1622
|
+
request: ehpc_instant_20230701_models.ListActionPlanActivitiesRequest,
|
|
1623
|
+
runtime: util_models.RuntimeOptions,
|
|
1624
|
+
) -> ehpc_instant_20230701_models.ListActionPlanActivitiesResponse:
|
|
1625
|
+
"""
|
|
1626
|
+
@summary 查询执行计划的执行情况。
|
|
1627
|
+
|
|
1628
|
+
@param request: ListActionPlanActivitiesRequest
|
|
1629
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1630
|
+
@return: ListActionPlanActivitiesResponse
|
|
1631
|
+
"""
|
|
1632
|
+
UtilClient.validate_model(request)
|
|
1633
|
+
query = {}
|
|
1634
|
+
if not UtilClient.is_unset(request.action_plan_id):
|
|
1635
|
+
query['ActionPlanId'] = request.action_plan_id
|
|
1636
|
+
if not UtilClient.is_unset(request.max_results):
|
|
1637
|
+
query['MaxResults'] = request.max_results
|
|
1638
|
+
if not UtilClient.is_unset(request.next_token):
|
|
1639
|
+
query['NextToken'] = request.next_token
|
|
1640
|
+
req = open_api_models.OpenApiRequest(
|
|
1641
|
+
query=OpenApiUtilClient.query(query)
|
|
1642
|
+
)
|
|
1643
|
+
params = open_api_models.Params(
|
|
1644
|
+
action='ListActionPlanActivities',
|
|
1645
|
+
version='2023-07-01',
|
|
1646
|
+
protocol='HTTPS',
|
|
1647
|
+
pathname='/',
|
|
1648
|
+
method='POST',
|
|
1649
|
+
auth_type='AK',
|
|
1650
|
+
style='RPC',
|
|
1651
|
+
req_body_type='formData',
|
|
1652
|
+
body_type='json'
|
|
1653
|
+
)
|
|
1654
|
+
return TeaCore.from_map(
|
|
1655
|
+
ehpc_instant_20230701_models.ListActionPlanActivitiesResponse(),
|
|
1656
|
+
self.call_api(params, req, runtime)
|
|
1657
|
+
)
|
|
1658
|
+
|
|
1659
|
+
async def list_action_plan_activities_with_options_async(
|
|
1660
|
+
self,
|
|
1661
|
+
request: ehpc_instant_20230701_models.ListActionPlanActivitiesRequest,
|
|
1662
|
+
runtime: util_models.RuntimeOptions,
|
|
1663
|
+
) -> ehpc_instant_20230701_models.ListActionPlanActivitiesResponse:
|
|
1664
|
+
"""
|
|
1665
|
+
@summary 查询执行计划的执行情况。
|
|
1666
|
+
|
|
1667
|
+
@param request: ListActionPlanActivitiesRequest
|
|
1668
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1669
|
+
@return: ListActionPlanActivitiesResponse
|
|
1670
|
+
"""
|
|
1671
|
+
UtilClient.validate_model(request)
|
|
1672
|
+
query = {}
|
|
1673
|
+
if not UtilClient.is_unset(request.action_plan_id):
|
|
1674
|
+
query['ActionPlanId'] = request.action_plan_id
|
|
1675
|
+
if not UtilClient.is_unset(request.max_results):
|
|
1676
|
+
query['MaxResults'] = request.max_results
|
|
1677
|
+
if not UtilClient.is_unset(request.next_token):
|
|
1678
|
+
query['NextToken'] = request.next_token
|
|
1679
|
+
req = open_api_models.OpenApiRequest(
|
|
1680
|
+
query=OpenApiUtilClient.query(query)
|
|
1681
|
+
)
|
|
1682
|
+
params = open_api_models.Params(
|
|
1683
|
+
action='ListActionPlanActivities',
|
|
1684
|
+
version='2023-07-01',
|
|
1685
|
+
protocol='HTTPS',
|
|
1686
|
+
pathname='/',
|
|
1687
|
+
method='POST',
|
|
1688
|
+
auth_type='AK',
|
|
1689
|
+
style='RPC',
|
|
1690
|
+
req_body_type='formData',
|
|
1691
|
+
body_type='json'
|
|
1692
|
+
)
|
|
1693
|
+
return TeaCore.from_map(
|
|
1694
|
+
ehpc_instant_20230701_models.ListActionPlanActivitiesResponse(),
|
|
1695
|
+
await self.call_api_async(params, req, runtime)
|
|
1696
|
+
)
|
|
1697
|
+
|
|
1698
|
+
def list_action_plan_activities(
|
|
1699
|
+
self,
|
|
1700
|
+
request: ehpc_instant_20230701_models.ListActionPlanActivitiesRequest,
|
|
1701
|
+
) -> ehpc_instant_20230701_models.ListActionPlanActivitiesResponse:
|
|
1702
|
+
"""
|
|
1703
|
+
@summary 查询执行计划的执行情况。
|
|
1704
|
+
|
|
1705
|
+
@param request: ListActionPlanActivitiesRequest
|
|
1706
|
+
@return: ListActionPlanActivitiesResponse
|
|
1707
|
+
"""
|
|
1708
|
+
runtime = util_models.RuntimeOptions()
|
|
1709
|
+
return self.list_action_plan_activities_with_options(request, runtime)
|
|
1710
|
+
|
|
1711
|
+
async def list_action_plan_activities_async(
|
|
1712
|
+
self,
|
|
1713
|
+
request: ehpc_instant_20230701_models.ListActionPlanActivitiesRequest,
|
|
1714
|
+
) -> ehpc_instant_20230701_models.ListActionPlanActivitiesResponse:
|
|
1715
|
+
"""
|
|
1716
|
+
@summary 查询执行计划的执行情况。
|
|
1717
|
+
|
|
1718
|
+
@param request: ListActionPlanActivitiesRequest
|
|
1719
|
+
@return: ListActionPlanActivitiesResponse
|
|
1720
|
+
"""
|
|
1721
|
+
runtime = util_models.RuntimeOptions()
|
|
1722
|
+
return await self.list_action_plan_activities_with_options_async(request, runtime)
|
|
1723
|
+
|
|
1724
|
+
def list_action_plans_with_options(
|
|
1725
|
+
self,
|
|
1726
|
+
tmp_req: ehpc_instant_20230701_models.ListActionPlansRequest,
|
|
1727
|
+
runtime: util_models.RuntimeOptions,
|
|
1728
|
+
) -> ehpc_instant_20230701_models.ListActionPlansResponse:
|
|
1729
|
+
"""
|
|
1730
|
+
@summary 查询执行计划列表
|
|
1731
|
+
|
|
1732
|
+
@param tmp_req: ListActionPlansRequest
|
|
1733
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1734
|
+
@return: ListActionPlansResponse
|
|
1735
|
+
"""
|
|
1736
|
+
UtilClient.validate_model(tmp_req)
|
|
1737
|
+
request = ehpc_instant_20230701_models.ListActionPlansShrinkRequest()
|
|
1738
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1739
|
+
if not UtilClient.is_unset(tmp_req.action_plan_ids):
|
|
1740
|
+
request.action_plan_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.action_plan_ids, 'ActionPlanIds', 'json')
|
|
1741
|
+
query = {}
|
|
1742
|
+
if not UtilClient.is_unset(request.action_plan_ids_shrink):
|
|
1743
|
+
query['ActionPlanIds'] = request.action_plan_ids_shrink
|
|
1744
|
+
if not UtilClient.is_unset(request.max_results):
|
|
1745
|
+
query['MaxResults'] = request.max_results
|
|
1746
|
+
if not UtilClient.is_unset(request.next_token):
|
|
1747
|
+
query['NextToken'] = request.next_token
|
|
1748
|
+
req = open_api_models.OpenApiRequest(
|
|
1749
|
+
query=OpenApiUtilClient.query(query)
|
|
1750
|
+
)
|
|
1751
|
+
params = open_api_models.Params(
|
|
1752
|
+
action='ListActionPlans',
|
|
1753
|
+
version='2023-07-01',
|
|
1754
|
+
protocol='HTTPS',
|
|
1755
|
+
pathname='/',
|
|
1756
|
+
method='POST',
|
|
1757
|
+
auth_type='AK',
|
|
1758
|
+
style='RPC',
|
|
1759
|
+
req_body_type='formData',
|
|
1760
|
+
body_type='json'
|
|
1761
|
+
)
|
|
1762
|
+
return TeaCore.from_map(
|
|
1763
|
+
ehpc_instant_20230701_models.ListActionPlansResponse(),
|
|
1764
|
+
self.call_api(params, req, runtime)
|
|
1765
|
+
)
|
|
1766
|
+
|
|
1767
|
+
async def list_action_plans_with_options_async(
|
|
1768
|
+
self,
|
|
1769
|
+
tmp_req: ehpc_instant_20230701_models.ListActionPlansRequest,
|
|
1770
|
+
runtime: util_models.RuntimeOptions,
|
|
1771
|
+
) -> ehpc_instant_20230701_models.ListActionPlansResponse:
|
|
1772
|
+
"""
|
|
1773
|
+
@summary 查询执行计划列表
|
|
1774
|
+
|
|
1775
|
+
@param tmp_req: ListActionPlansRequest
|
|
1776
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1777
|
+
@return: ListActionPlansResponse
|
|
1778
|
+
"""
|
|
1779
|
+
UtilClient.validate_model(tmp_req)
|
|
1780
|
+
request = ehpc_instant_20230701_models.ListActionPlansShrinkRequest()
|
|
1781
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1782
|
+
if not UtilClient.is_unset(tmp_req.action_plan_ids):
|
|
1783
|
+
request.action_plan_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.action_plan_ids, 'ActionPlanIds', 'json')
|
|
1784
|
+
query = {}
|
|
1785
|
+
if not UtilClient.is_unset(request.action_plan_ids_shrink):
|
|
1786
|
+
query['ActionPlanIds'] = request.action_plan_ids_shrink
|
|
1787
|
+
if not UtilClient.is_unset(request.max_results):
|
|
1788
|
+
query['MaxResults'] = request.max_results
|
|
1789
|
+
if not UtilClient.is_unset(request.next_token):
|
|
1790
|
+
query['NextToken'] = request.next_token
|
|
1791
|
+
req = open_api_models.OpenApiRequest(
|
|
1792
|
+
query=OpenApiUtilClient.query(query)
|
|
1793
|
+
)
|
|
1794
|
+
params = open_api_models.Params(
|
|
1795
|
+
action='ListActionPlans',
|
|
1796
|
+
version='2023-07-01',
|
|
1797
|
+
protocol='HTTPS',
|
|
1798
|
+
pathname='/',
|
|
1799
|
+
method='POST',
|
|
1800
|
+
auth_type='AK',
|
|
1801
|
+
style='RPC',
|
|
1802
|
+
req_body_type='formData',
|
|
1803
|
+
body_type='json'
|
|
1804
|
+
)
|
|
1805
|
+
return TeaCore.from_map(
|
|
1806
|
+
ehpc_instant_20230701_models.ListActionPlansResponse(),
|
|
1807
|
+
await self.call_api_async(params, req, runtime)
|
|
1808
|
+
)
|
|
1809
|
+
|
|
1810
|
+
def list_action_plans(
|
|
1811
|
+
self,
|
|
1812
|
+
request: ehpc_instant_20230701_models.ListActionPlansRequest,
|
|
1813
|
+
) -> ehpc_instant_20230701_models.ListActionPlansResponse:
|
|
1814
|
+
"""
|
|
1815
|
+
@summary 查询执行计划列表
|
|
1816
|
+
|
|
1817
|
+
@param request: ListActionPlansRequest
|
|
1818
|
+
@return: ListActionPlansResponse
|
|
1819
|
+
"""
|
|
1820
|
+
runtime = util_models.RuntimeOptions()
|
|
1821
|
+
return self.list_action_plans_with_options(request, runtime)
|
|
1822
|
+
|
|
1823
|
+
async def list_action_plans_async(
|
|
1824
|
+
self,
|
|
1825
|
+
request: ehpc_instant_20230701_models.ListActionPlansRequest,
|
|
1826
|
+
) -> ehpc_instant_20230701_models.ListActionPlansResponse:
|
|
1827
|
+
"""
|
|
1828
|
+
@summary 查询执行计划列表
|
|
1829
|
+
|
|
1830
|
+
@param request: ListActionPlansRequest
|
|
1831
|
+
@return: ListActionPlansResponse
|
|
1832
|
+
"""
|
|
1833
|
+
runtime = util_models.RuntimeOptions()
|
|
1834
|
+
return await self.list_action_plans_with_options_async(request, runtime)
|
|
1835
|
+
|
|
1284
1836
|
def list_executors_with_options(
|
|
1285
1837
|
self,
|
|
1286
1838
|
tmp_req: ehpc_instant_20230701_models.ListExecutorsRequest,
|
|
@@ -2397,6 +2949,110 @@ class Client(OpenApiClient):
|
|
|
2397
2949
|
runtime = util_models.RuntimeOptions()
|
|
2398
2950
|
return await self.un_tag_resources_with_options_async(request, runtime)
|
|
2399
2951
|
|
|
2952
|
+
def update_action_plan_with_options(
|
|
2953
|
+
self,
|
|
2954
|
+
request: ehpc_instant_20230701_models.UpdateActionPlanRequest,
|
|
2955
|
+
runtime: util_models.RuntimeOptions,
|
|
2956
|
+
) -> ehpc_instant_20230701_models.UpdateActionPlanResponse:
|
|
2957
|
+
"""
|
|
2958
|
+
@summary 更新执行计划
|
|
2959
|
+
|
|
2960
|
+
@param request: UpdateActionPlanRequest
|
|
2961
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2962
|
+
@return: UpdateActionPlanResponse
|
|
2963
|
+
"""
|
|
2964
|
+
UtilClient.validate_model(request)
|
|
2965
|
+
query = {}
|
|
2966
|
+
if not UtilClient.is_unset(request.action_plan_id):
|
|
2967
|
+
query['ActionPlanId'] = request.action_plan_id
|
|
2968
|
+
if not UtilClient.is_unset(request.desired_capacity):
|
|
2969
|
+
query['DesiredCapacity'] = request.desired_capacity
|
|
2970
|
+
if not UtilClient.is_unset(request.enabled):
|
|
2971
|
+
query['Enabled'] = request.enabled
|
|
2972
|
+
req = open_api_models.OpenApiRequest(
|
|
2973
|
+
query=OpenApiUtilClient.query(query)
|
|
2974
|
+
)
|
|
2975
|
+
params = open_api_models.Params(
|
|
2976
|
+
action='UpdateActionPlan',
|
|
2977
|
+
version='2023-07-01',
|
|
2978
|
+
protocol='HTTPS',
|
|
2979
|
+
pathname='/',
|
|
2980
|
+
method='POST',
|
|
2981
|
+
auth_type='AK',
|
|
2982
|
+
style='RPC',
|
|
2983
|
+
req_body_type='formData',
|
|
2984
|
+
body_type='json'
|
|
2985
|
+
)
|
|
2986
|
+
return TeaCore.from_map(
|
|
2987
|
+
ehpc_instant_20230701_models.UpdateActionPlanResponse(),
|
|
2988
|
+
self.call_api(params, req, runtime)
|
|
2989
|
+
)
|
|
2990
|
+
|
|
2991
|
+
async def update_action_plan_with_options_async(
|
|
2992
|
+
self,
|
|
2993
|
+
request: ehpc_instant_20230701_models.UpdateActionPlanRequest,
|
|
2994
|
+
runtime: util_models.RuntimeOptions,
|
|
2995
|
+
) -> ehpc_instant_20230701_models.UpdateActionPlanResponse:
|
|
2996
|
+
"""
|
|
2997
|
+
@summary 更新执行计划
|
|
2998
|
+
|
|
2999
|
+
@param request: UpdateActionPlanRequest
|
|
3000
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3001
|
+
@return: UpdateActionPlanResponse
|
|
3002
|
+
"""
|
|
3003
|
+
UtilClient.validate_model(request)
|
|
3004
|
+
query = {}
|
|
3005
|
+
if not UtilClient.is_unset(request.action_plan_id):
|
|
3006
|
+
query['ActionPlanId'] = request.action_plan_id
|
|
3007
|
+
if not UtilClient.is_unset(request.desired_capacity):
|
|
3008
|
+
query['DesiredCapacity'] = request.desired_capacity
|
|
3009
|
+
if not UtilClient.is_unset(request.enabled):
|
|
3010
|
+
query['Enabled'] = request.enabled
|
|
3011
|
+
req = open_api_models.OpenApiRequest(
|
|
3012
|
+
query=OpenApiUtilClient.query(query)
|
|
3013
|
+
)
|
|
3014
|
+
params = open_api_models.Params(
|
|
3015
|
+
action='UpdateActionPlan',
|
|
3016
|
+
version='2023-07-01',
|
|
3017
|
+
protocol='HTTPS',
|
|
3018
|
+
pathname='/',
|
|
3019
|
+
method='POST',
|
|
3020
|
+
auth_type='AK',
|
|
3021
|
+
style='RPC',
|
|
3022
|
+
req_body_type='formData',
|
|
3023
|
+
body_type='json'
|
|
3024
|
+
)
|
|
3025
|
+
return TeaCore.from_map(
|
|
3026
|
+
ehpc_instant_20230701_models.UpdateActionPlanResponse(),
|
|
3027
|
+
await self.call_api_async(params, req, runtime)
|
|
3028
|
+
)
|
|
3029
|
+
|
|
3030
|
+
def update_action_plan(
|
|
3031
|
+
self,
|
|
3032
|
+
request: ehpc_instant_20230701_models.UpdateActionPlanRequest,
|
|
3033
|
+
) -> ehpc_instant_20230701_models.UpdateActionPlanResponse:
|
|
3034
|
+
"""
|
|
3035
|
+
@summary 更新执行计划
|
|
3036
|
+
|
|
3037
|
+
@param request: UpdateActionPlanRequest
|
|
3038
|
+
@return: UpdateActionPlanResponse
|
|
3039
|
+
"""
|
|
3040
|
+
runtime = util_models.RuntimeOptions()
|
|
3041
|
+
return self.update_action_plan_with_options(request, runtime)
|
|
3042
|
+
|
|
3043
|
+
async def update_action_plan_async(
|
|
3044
|
+
self,
|
|
3045
|
+
request: ehpc_instant_20230701_models.UpdateActionPlanRequest,
|
|
3046
|
+
) -> ehpc_instant_20230701_models.UpdateActionPlanResponse:
|
|
3047
|
+
"""
|
|
3048
|
+
@summary 更新执行计划
|
|
3049
|
+
|
|
3050
|
+
@param request: UpdateActionPlanRequest
|
|
3051
|
+
@return: UpdateActionPlanResponse
|
|
3052
|
+
"""
|
|
3053
|
+
runtime = util_models.RuntimeOptions()
|
|
3054
|
+
return await self.update_action_plan_with_options_async(request, runtime)
|
|
3055
|
+
|
|
2400
3056
|
def update_pool_with_options(
|
|
2401
3057
|
self,
|
|
2402
3058
|
tmp_req: ehpc_instant_20230701_models.UpdatePoolRequest,
|