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
|
@@ -324,6 +324,337 @@ class AddImageResponse(TeaModel):
|
|
|
324
324
|
return self
|
|
325
325
|
|
|
326
326
|
|
|
327
|
+
class CreateActionPlanRequestRegions(TeaModel):
|
|
328
|
+
def __init__(
|
|
329
|
+
self,
|
|
330
|
+
region_id: str = None,
|
|
331
|
+
security_group_id: List[str] = None,
|
|
332
|
+
security_group_ids: List[str] = None,
|
|
333
|
+
v_switch_ids: List[str] = None,
|
|
334
|
+
):
|
|
335
|
+
self.region_id = region_id
|
|
336
|
+
self.security_group_id = security_group_id
|
|
337
|
+
self.security_group_ids = security_group_ids
|
|
338
|
+
self.v_switch_ids = v_switch_ids
|
|
339
|
+
|
|
340
|
+
def validate(self):
|
|
341
|
+
pass
|
|
342
|
+
|
|
343
|
+
def to_map(self):
|
|
344
|
+
_map = super().to_map()
|
|
345
|
+
if _map is not None:
|
|
346
|
+
return _map
|
|
347
|
+
|
|
348
|
+
result = dict()
|
|
349
|
+
if self.region_id is not None:
|
|
350
|
+
result['RegionId'] = self.region_id
|
|
351
|
+
if self.security_group_id is not None:
|
|
352
|
+
result['SecurityGroupId'] = self.security_group_id
|
|
353
|
+
if self.security_group_ids is not None:
|
|
354
|
+
result['SecurityGroupIds'] = self.security_group_ids
|
|
355
|
+
if self.v_switch_ids is not None:
|
|
356
|
+
result['VSwitchIds'] = self.v_switch_ids
|
|
357
|
+
return result
|
|
358
|
+
|
|
359
|
+
def from_map(self, m: dict = None):
|
|
360
|
+
m = m or dict()
|
|
361
|
+
if m.get('RegionId') is not None:
|
|
362
|
+
self.region_id = m.get('RegionId')
|
|
363
|
+
if m.get('SecurityGroupId') is not None:
|
|
364
|
+
self.security_group_id = m.get('SecurityGroupId')
|
|
365
|
+
if m.get('SecurityGroupIds') is not None:
|
|
366
|
+
self.security_group_ids = m.get('SecurityGroupIds')
|
|
367
|
+
if m.get('VSwitchIds') is not None:
|
|
368
|
+
self.v_switch_ids = m.get('VSwitchIds')
|
|
369
|
+
return self
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
class CreateActionPlanRequestResources(TeaModel):
|
|
373
|
+
def __init__(
|
|
374
|
+
self,
|
|
375
|
+
cores: float = None,
|
|
376
|
+
memory: float = None,
|
|
377
|
+
):
|
|
378
|
+
self.cores = cores
|
|
379
|
+
self.memory = memory
|
|
380
|
+
|
|
381
|
+
def validate(self):
|
|
382
|
+
pass
|
|
383
|
+
|
|
384
|
+
def to_map(self):
|
|
385
|
+
_map = super().to_map()
|
|
386
|
+
if _map is not None:
|
|
387
|
+
return _map
|
|
388
|
+
|
|
389
|
+
result = dict()
|
|
390
|
+
if self.cores is not None:
|
|
391
|
+
result['Cores'] = self.cores
|
|
392
|
+
if self.memory is not None:
|
|
393
|
+
result['Memory'] = self.memory
|
|
394
|
+
return result
|
|
395
|
+
|
|
396
|
+
def from_map(self, m: dict = None):
|
|
397
|
+
m = m or dict()
|
|
398
|
+
if m.get('Cores') is not None:
|
|
399
|
+
self.cores = m.get('Cores')
|
|
400
|
+
if m.get('Memory') is not None:
|
|
401
|
+
self.memory = m.get('Memory')
|
|
402
|
+
return self
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
class CreateActionPlanRequest(TeaModel):
|
|
406
|
+
def __init__(
|
|
407
|
+
self,
|
|
408
|
+
action_plan_name: str = None,
|
|
409
|
+
allocation_spec: str = None,
|
|
410
|
+
app_id: str = None,
|
|
411
|
+
desired_capacity: float = None,
|
|
412
|
+
level: str = None,
|
|
413
|
+
prolog_script: str = None,
|
|
414
|
+
regions: List[CreateActionPlanRequestRegions] = None,
|
|
415
|
+
resource_type: str = None,
|
|
416
|
+
resources: List[CreateActionPlanRequestResources] = None,
|
|
417
|
+
script: str = None,
|
|
418
|
+
):
|
|
419
|
+
self.action_plan_name = action_plan_name
|
|
420
|
+
self.allocation_spec = allocation_spec
|
|
421
|
+
self.app_id = app_id
|
|
422
|
+
self.desired_capacity = desired_capacity
|
|
423
|
+
self.level = level
|
|
424
|
+
self.prolog_script = prolog_script
|
|
425
|
+
self.regions = regions
|
|
426
|
+
self.resource_type = resource_type
|
|
427
|
+
self.resources = resources
|
|
428
|
+
self.script = script
|
|
429
|
+
|
|
430
|
+
def validate(self):
|
|
431
|
+
if self.regions:
|
|
432
|
+
for k in self.regions:
|
|
433
|
+
if k:
|
|
434
|
+
k.validate()
|
|
435
|
+
if self.resources:
|
|
436
|
+
for k in self.resources:
|
|
437
|
+
if k:
|
|
438
|
+
k.validate()
|
|
439
|
+
|
|
440
|
+
def to_map(self):
|
|
441
|
+
_map = super().to_map()
|
|
442
|
+
if _map is not None:
|
|
443
|
+
return _map
|
|
444
|
+
|
|
445
|
+
result = dict()
|
|
446
|
+
if self.action_plan_name is not None:
|
|
447
|
+
result['ActionPlanName'] = self.action_plan_name
|
|
448
|
+
if self.allocation_spec is not None:
|
|
449
|
+
result['AllocationSpec'] = self.allocation_spec
|
|
450
|
+
if self.app_id is not None:
|
|
451
|
+
result['AppId'] = self.app_id
|
|
452
|
+
if self.desired_capacity is not None:
|
|
453
|
+
result['DesiredCapacity'] = self.desired_capacity
|
|
454
|
+
if self.level is not None:
|
|
455
|
+
result['Level'] = self.level
|
|
456
|
+
if self.prolog_script is not None:
|
|
457
|
+
result['PrologScript'] = self.prolog_script
|
|
458
|
+
result['Regions'] = []
|
|
459
|
+
if self.regions is not None:
|
|
460
|
+
for k in self.regions:
|
|
461
|
+
result['Regions'].append(k.to_map() if k else None)
|
|
462
|
+
if self.resource_type is not None:
|
|
463
|
+
result['ResourceType'] = self.resource_type
|
|
464
|
+
result['Resources'] = []
|
|
465
|
+
if self.resources is not None:
|
|
466
|
+
for k in self.resources:
|
|
467
|
+
result['Resources'].append(k.to_map() if k else None)
|
|
468
|
+
if self.script is not None:
|
|
469
|
+
result['Script'] = self.script
|
|
470
|
+
return result
|
|
471
|
+
|
|
472
|
+
def from_map(self, m: dict = None):
|
|
473
|
+
m = m or dict()
|
|
474
|
+
if m.get('ActionPlanName') is not None:
|
|
475
|
+
self.action_plan_name = m.get('ActionPlanName')
|
|
476
|
+
if m.get('AllocationSpec') is not None:
|
|
477
|
+
self.allocation_spec = m.get('AllocationSpec')
|
|
478
|
+
if m.get('AppId') is not None:
|
|
479
|
+
self.app_id = m.get('AppId')
|
|
480
|
+
if m.get('DesiredCapacity') is not None:
|
|
481
|
+
self.desired_capacity = m.get('DesiredCapacity')
|
|
482
|
+
if m.get('Level') is not None:
|
|
483
|
+
self.level = m.get('Level')
|
|
484
|
+
if m.get('PrologScript') is not None:
|
|
485
|
+
self.prolog_script = m.get('PrologScript')
|
|
486
|
+
self.regions = []
|
|
487
|
+
if m.get('Regions') is not None:
|
|
488
|
+
for k in m.get('Regions'):
|
|
489
|
+
temp_model = CreateActionPlanRequestRegions()
|
|
490
|
+
self.regions.append(temp_model.from_map(k))
|
|
491
|
+
if m.get('ResourceType') is not None:
|
|
492
|
+
self.resource_type = m.get('ResourceType')
|
|
493
|
+
self.resources = []
|
|
494
|
+
if m.get('Resources') is not None:
|
|
495
|
+
for k in m.get('Resources'):
|
|
496
|
+
temp_model = CreateActionPlanRequestResources()
|
|
497
|
+
self.resources.append(temp_model.from_map(k))
|
|
498
|
+
if m.get('Script') is not None:
|
|
499
|
+
self.script = m.get('Script')
|
|
500
|
+
return self
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
class CreateActionPlanShrinkRequest(TeaModel):
|
|
504
|
+
def __init__(
|
|
505
|
+
self,
|
|
506
|
+
action_plan_name: str = None,
|
|
507
|
+
allocation_spec: str = None,
|
|
508
|
+
app_id: str = None,
|
|
509
|
+
desired_capacity: float = None,
|
|
510
|
+
level: str = None,
|
|
511
|
+
prolog_script: str = None,
|
|
512
|
+
regions_shrink: str = None,
|
|
513
|
+
resource_type: str = None,
|
|
514
|
+
resources_shrink: str = None,
|
|
515
|
+
script: str = None,
|
|
516
|
+
):
|
|
517
|
+
self.action_plan_name = action_plan_name
|
|
518
|
+
self.allocation_spec = allocation_spec
|
|
519
|
+
self.app_id = app_id
|
|
520
|
+
self.desired_capacity = desired_capacity
|
|
521
|
+
self.level = level
|
|
522
|
+
self.prolog_script = prolog_script
|
|
523
|
+
self.regions_shrink = regions_shrink
|
|
524
|
+
self.resource_type = resource_type
|
|
525
|
+
self.resources_shrink = resources_shrink
|
|
526
|
+
self.script = script
|
|
527
|
+
|
|
528
|
+
def validate(self):
|
|
529
|
+
pass
|
|
530
|
+
|
|
531
|
+
def to_map(self):
|
|
532
|
+
_map = super().to_map()
|
|
533
|
+
if _map is not None:
|
|
534
|
+
return _map
|
|
535
|
+
|
|
536
|
+
result = dict()
|
|
537
|
+
if self.action_plan_name is not None:
|
|
538
|
+
result['ActionPlanName'] = self.action_plan_name
|
|
539
|
+
if self.allocation_spec is not None:
|
|
540
|
+
result['AllocationSpec'] = self.allocation_spec
|
|
541
|
+
if self.app_id is not None:
|
|
542
|
+
result['AppId'] = self.app_id
|
|
543
|
+
if self.desired_capacity is not None:
|
|
544
|
+
result['DesiredCapacity'] = self.desired_capacity
|
|
545
|
+
if self.level is not None:
|
|
546
|
+
result['Level'] = self.level
|
|
547
|
+
if self.prolog_script is not None:
|
|
548
|
+
result['PrologScript'] = self.prolog_script
|
|
549
|
+
if self.regions_shrink is not None:
|
|
550
|
+
result['Regions'] = self.regions_shrink
|
|
551
|
+
if self.resource_type is not None:
|
|
552
|
+
result['ResourceType'] = self.resource_type
|
|
553
|
+
if self.resources_shrink is not None:
|
|
554
|
+
result['Resources'] = self.resources_shrink
|
|
555
|
+
if self.script is not None:
|
|
556
|
+
result['Script'] = self.script
|
|
557
|
+
return result
|
|
558
|
+
|
|
559
|
+
def from_map(self, m: dict = None):
|
|
560
|
+
m = m or dict()
|
|
561
|
+
if m.get('ActionPlanName') is not None:
|
|
562
|
+
self.action_plan_name = m.get('ActionPlanName')
|
|
563
|
+
if m.get('AllocationSpec') is not None:
|
|
564
|
+
self.allocation_spec = m.get('AllocationSpec')
|
|
565
|
+
if m.get('AppId') is not None:
|
|
566
|
+
self.app_id = m.get('AppId')
|
|
567
|
+
if m.get('DesiredCapacity') is not None:
|
|
568
|
+
self.desired_capacity = m.get('DesiredCapacity')
|
|
569
|
+
if m.get('Level') is not None:
|
|
570
|
+
self.level = m.get('Level')
|
|
571
|
+
if m.get('PrologScript') is not None:
|
|
572
|
+
self.prolog_script = m.get('PrologScript')
|
|
573
|
+
if m.get('Regions') is not None:
|
|
574
|
+
self.regions_shrink = m.get('Regions')
|
|
575
|
+
if m.get('ResourceType') is not None:
|
|
576
|
+
self.resource_type = m.get('ResourceType')
|
|
577
|
+
if m.get('Resources') is not None:
|
|
578
|
+
self.resources_shrink = m.get('Resources')
|
|
579
|
+
if m.get('Script') is not None:
|
|
580
|
+
self.script = m.get('Script')
|
|
581
|
+
return self
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
class CreateActionPlanResponseBody(TeaModel):
|
|
585
|
+
def __init__(
|
|
586
|
+
self,
|
|
587
|
+
action_plan_id: str = None,
|
|
588
|
+
request_id: str = None,
|
|
589
|
+
):
|
|
590
|
+
self.action_plan_id = action_plan_id
|
|
591
|
+
self.request_id = request_id
|
|
592
|
+
|
|
593
|
+
def validate(self):
|
|
594
|
+
pass
|
|
595
|
+
|
|
596
|
+
def to_map(self):
|
|
597
|
+
_map = super().to_map()
|
|
598
|
+
if _map is not None:
|
|
599
|
+
return _map
|
|
600
|
+
|
|
601
|
+
result = dict()
|
|
602
|
+
if self.action_plan_id is not None:
|
|
603
|
+
result['ActionPlanId'] = self.action_plan_id
|
|
604
|
+
if self.request_id is not None:
|
|
605
|
+
result['RequestId'] = self.request_id
|
|
606
|
+
return result
|
|
607
|
+
|
|
608
|
+
def from_map(self, m: dict = None):
|
|
609
|
+
m = m or dict()
|
|
610
|
+
if m.get('ActionPlanId') is not None:
|
|
611
|
+
self.action_plan_id = m.get('ActionPlanId')
|
|
612
|
+
if m.get('RequestId') is not None:
|
|
613
|
+
self.request_id = m.get('RequestId')
|
|
614
|
+
return self
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
class CreateActionPlanResponse(TeaModel):
|
|
618
|
+
def __init__(
|
|
619
|
+
self,
|
|
620
|
+
headers: Dict[str, str] = None,
|
|
621
|
+
status_code: int = None,
|
|
622
|
+
body: CreateActionPlanResponseBody = None,
|
|
623
|
+
):
|
|
624
|
+
self.headers = headers
|
|
625
|
+
self.status_code = status_code
|
|
626
|
+
self.body = body
|
|
627
|
+
|
|
628
|
+
def validate(self):
|
|
629
|
+
if self.body:
|
|
630
|
+
self.body.validate()
|
|
631
|
+
|
|
632
|
+
def to_map(self):
|
|
633
|
+
_map = super().to_map()
|
|
634
|
+
if _map is not None:
|
|
635
|
+
return _map
|
|
636
|
+
|
|
637
|
+
result = dict()
|
|
638
|
+
if self.headers is not None:
|
|
639
|
+
result['headers'] = self.headers
|
|
640
|
+
if self.status_code is not None:
|
|
641
|
+
result['statusCode'] = self.status_code
|
|
642
|
+
if self.body is not None:
|
|
643
|
+
result['body'] = self.body.to_map()
|
|
644
|
+
return result
|
|
645
|
+
|
|
646
|
+
def from_map(self, m: dict = None):
|
|
647
|
+
m = m or dict()
|
|
648
|
+
if m.get('headers') is not None:
|
|
649
|
+
self.headers = m.get('headers')
|
|
650
|
+
if m.get('statusCode') is not None:
|
|
651
|
+
self.status_code = m.get('statusCode')
|
|
652
|
+
if m.get('body') is not None:
|
|
653
|
+
temp_model = CreateActionPlanResponseBody()
|
|
654
|
+
self.body = temp_model.from_map(m['body'])
|
|
655
|
+
return self
|
|
656
|
+
|
|
657
|
+
|
|
327
658
|
class CreateJobRequestDependencyPolicyJobDependency(TeaModel):
|
|
328
659
|
def __init__(
|
|
329
660
|
self,
|
|
@@ -1619,14 +1950,12 @@ class CreatePoolResponse(TeaModel):
|
|
|
1619
1950
|
return self
|
|
1620
1951
|
|
|
1621
1952
|
|
|
1622
|
-
class
|
|
1953
|
+
class DeleteActionPlanRequest(TeaModel):
|
|
1623
1954
|
def __init__(
|
|
1624
1955
|
self,
|
|
1625
|
-
|
|
1626
|
-
task_name: str = None,
|
|
1956
|
+
action_plan_id: str = None,
|
|
1627
1957
|
):
|
|
1628
|
-
self.
|
|
1629
|
-
self.task_name = task_name
|
|
1958
|
+
self.action_plan_id = action_plan_id
|
|
1630
1959
|
|
|
1631
1960
|
def validate(self):
|
|
1632
1961
|
pass
|
|
@@ -1637,18 +1966,115 @@ class DeleteJobsRequestJobSpecTaskSpec(TeaModel):
|
|
|
1637
1966
|
return _map
|
|
1638
1967
|
|
|
1639
1968
|
result = dict()
|
|
1640
|
-
if self.
|
|
1641
|
-
result['
|
|
1642
|
-
if self.task_name is not None:
|
|
1643
|
-
result['TaskName'] = self.task_name
|
|
1969
|
+
if self.action_plan_id is not None:
|
|
1970
|
+
result['ActionPlanId'] = self.action_plan_id
|
|
1644
1971
|
return result
|
|
1645
1972
|
|
|
1646
1973
|
def from_map(self, m: dict = None):
|
|
1647
1974
|
m = m or dict()
|
|
1648
|
-
if m.get('
|
|
1649
|
-
self.
|
|
1650
|
-
|
|
1651
|
-
|
|
1975
|
+
if m.get('ActionPlanId') is not None:
|
|
1976
|
+
self.action_plan_id = m.get('ActionPlanId')
|
|
1977
|
+
return self
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
class DeleteActionPlanResponseBody(TeaModel):
|
|
1981
|
+
def __init__(
|
|
1982
|
+
self,
|
|
1983
|
+
request_id: str = None,
|
|
1984
|
+
):
|
|
1985
|
+
self.request_id = request_id
|
|
1986
|
+
|
|
1987
|
+
def validate(self):
|
|
1988
|
+
pass
|
|
1989
|
+
|
|
1990
|
+
def to_map(self):
|
|
1991
|
+
_map = super().to_map()
|
|
1992
|
+
if _map is not None:
|
|
1993
|
+
return _map
|
|
1994
|
+
|
|
1995
|
+
result = dict()
|
|
1996
|
+
if self.request_id is not None:
|
|
1997
|
+
result['RequestId'] = self.request_id
|
|
1998
|
+
return result
|
|
1999
|
+
|
|
2000
|
+
def from_map(self, m: dict = None):
|
|
2001
|
+
m = m or dict()
|
|
2002
|
+
if m.get('RequestId') is not None:
|
|
2003
|
+
self.request_id = m.get('RequestId')
|
|
2004
|
+
return self
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
class DeleteActionPlanResponse(TeaModel):
|
|
2008
|
+
def __init__(
|
|
2009
|
+
self,
|
|
2010
|
+
headers: Dict[str, str] = None,
|
|
2011
|
+
status_code: int = None,
|
|
2012
|
+
body: DeleteActionPlanResponseBody = None,
|
|
2013
|
+
):
|
|
2014
|
+
self.headers = headers
|
|
2015
|
+
self.status_code = status_code
|
|
2016
|
+
self.body = body
|
|
2017
|
+
|
|
2018
|
+
def validate(self):
|
|
2019
|
+
if self.body:
|
|
2020
|
+
self.body.validate()
|
|
2021
|
+
|
|
2022
|
+
def to_map(self):
|
|
2023
|
+
_map = super().to_map()
|
|
2024
|
+
if _map is not None:
|
|
2025
|
+
return _map
|
|
2026
|
+
|
|
2027
|
+
result = dict()
|
|
2028
|
+
if self.headers is not None:
|
|
2029
|
+
result['headers'] = self.headers
|
|
2030
|
+
if self.status_code is not None:
|
|
2031
|
+
result['statusCode'] = self.status_code
|
|
2032
|
+
if self.body is not None:
|
|
2033
|
+
result['body'] = self.body.to_map()
|
|
2034
|
+
return result
|
|
2035
|
+
|
|
2036
|
+
def from_map(self, m: dict = None):
|
|
2037
|
+
m = m or dict()
|
|
2038
|
+
if m.get('headers') is not None:
|
|
2039
|
+
self.headers = m.get('headers')
|
|
2040
|
+
if m.get('statusCode') is not None:
|
|
2041
|
+
self.status_code = m.get('statusCode')
|
|
2042
|
+
if m.get('body') is not None:
|
|
2043
|
+
temp_model = DeleteActionPlanResponseBody()
|
|
2044
|
+
self.body = temp_model.from_map(m['body'])
|
|
2045
|
+
return self
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
class DeleteJobsRequestJobSpecTaskSpec(TeaModel):
|
|
2049
|
+
def __init__(
|
|
2050
|
+
self,
|
|
2051
|
+
array_index: List[int] = None,
|
|
2052
|
+
task_name: str = None,
|
|
2053
|
+
):
|
|
2054
|
+
self.array_index = array_index
|
|
2055
|
+
self.task_name = task_name
|
|
2056
|
+
|
|
2057
|
+
def validate(self):
|
|
2058
|
+
pass
|
|
2059
|
+
|
|
2060
|
+
def to_map(self):
|
|
2061
|
+
_map = super().to_map()
|
|
2062
|
+
if _map is not None:
|
|
2063
|
+
return _map
|
|
2064
|
+
|
|
2065
|
+
result = dict()
|
|
2066
|
+
if self.array_index is not None:
|
|
2067
|
+
result['ArrayIndex'] = self.array_index
|
|
2068
|
+
if self.task_name is not None:
|
|
2069
|
+
result['TaskName'] = self.task_name
|
|
2070
|
+
return result
|
|
2071
|
+
|
|
2072
|
+
def from_map(self, m: dict = None):
|
|
2073
|
+
m = m or dict()
|
|
2074
|
+
if m.get('ArrayIndex') is not None:
|
|
2075
|
+
self.array_index = m.get('ArrayIndex')
|
|
2076
|
+
if m.get('TaskName') is not None:
|
|
2077
|
+
self.task_name = m.get('TaskName')
|
|
1652
2078
|
return self
|
|
1653
2079
|
|
|
1654
2080
|
|
|
@@ -2307,21 +2733,12 @@ class DescribeJobMetricLastResponse(TeaModel):
|
|
|
2307
2733
|
return self
|
|
2308
2734
|
|
|
2309
2735
|
|
|
2310
|
-
class
|
|
2736
|
+
class GetActionPlanRequest(TeaModel):
|
|
2311
2737
|
def __init__(
|
|
2312
2738
|
self,
|
|
2313
|
-
|
|
2314
|
-
image_category: str = None,
|
|
2315
|
-
image_type: str = None,
|
|
2316
|
-
page_number: int = None,
|
|
2317
|
-
page_size: int = None,
|
|
2739
|
+
action_plan_id: str = None,
|
|
2318
2740
|
):
|
|
2319
|
-
|
|
2320
|
-
self.app_name = app_name
|
|
2321
|
-
self.image_category = image_category
|
|
2322
|
-
self.image_type = image_type
|
|
2323
|
-
self.page_number = page_number
|
|
2324
|
-
self.page_size = page_size
|
|
2741
|
+
self.action_plan_id = action_plan_id
|
|
2325
2742
|
|
|
2326
2743
|
def validate(self):
|
|
2327
2744
|
pass
|
|
@@ -2332,44 +2749,27 @@ class GetAppVersionsRequest(TeaModel):
|
|
|
2332
2749
|
return _map
|
|
2333
2750
|
|
|
2334
2751
|
result = dict()
|
|
2335
|
-
if self.
|
|
2336
|
-
result['
|
|
2337
|
-
if self.image_category is not None:
|
|
2338
|
-
result['ImageCategory'] = self.image_category
|
|
2339
|
-
if self.image_type is not None:
|
|
2340
|
-
result['ImageType'] = self.image_type
|
|
2341
|
-
if self.page_number is not None:
|
|
2342
|
-
result['PageNumber'] = self.page_number
|
|
2343
|
-
if self.page_size is not None:
|
|
2344
|
-
result['PageSize'] = self.page_size
|
|
2752
|
+
if self.action_plan_id is not None:
|
|
2753
|
+
result['ActionPlanId'] = self.action_plan_id
|
|
2345
2754
|
return result
|
|
2346
2755
|
|
|
2347
2756
|
def from_map(self, m: dict = None):
|
|
2348
2757
|
m = m or dict()
|
|
2349
|
-
if m.get('
|
|
2350
|
-
self.
|
|
2351
|
-
if m.get('ImageCategory') is not None:
|
|
2352
|
-
self.image_category = m.get('ImageCategory')
|
|
2353
|
-
if m.get('ImageType') is not None:
|
|
2354
|
-
self.image_type = m.get('ImageType')
|
|
2355
|
-
if m.get('PageNumber') is not None:
|
|
2356
|
-
self.page_number = m.get('PageNumber')
|
|
2357
|
-
if m.get('PageSize') is not None:
|
|
2358
|
-
self.page_size = m.get('PageSize')
|
|
2758
|
+
if m.get('ActionPlanId') is not None:
|
|
2759
|
+
self.action_plan_id = m.get('ActionPlanId')
|
|
2359
2760
|
return self
|
|
2360
2761
|
|
|
2361
2762
|
|
|
2362
|
-
class
|
|
2763
|
+
class GetActionPlanResponseBodyRegions(TeaModel):
|
|
2363
2764
|
def __init__(
|
|
2364
2765
|
self,
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2766
|
+
region_id: str = None,
|
|
2767
|
+
security_group_ids: List[str] = None,
|
|
2768
|
+
v_switch_ids: List[str] = None,
|
|
2368
2769
|
):
|
|
2369
|
-
|
|
2370
|
-
self.
|
|
2371
|
-
self.
|
|
2372
|
-
self.version = version
|
|
2770
|
+
self.region_id = region_id
|
|
2771
|
+
self.security_group_ids = security_group_ids
|
|
2772
|
+
self.v_switch_ids = v_switch_ids
|
|
2373
2773
|
|
|
2374
2774
|
def validate(self):
|
|
2375
2775
|
pass
|
|
@@ -2380,47 +2780,36 @@ class GetAppVersionsResponseBodyAppVersions(TeaModel):
|
|
|
2380
2780
|
return _map
|
|
2381
2781
|
|
|
2382
2782
|
result = dict()
|
|
2383
|
-
if self.
|
|
2384
|
-
result['
|
|
2385
|
-
if self.
|
|
2386
|
-
result['
|
|
2387
|
-
if self.
|
|
2388
|
-
result['
|
|
2783
|
+
if self.region_id is not None:
|
|
2784
|
+
result['RegionId'] = self.region_id
|
|
2785
|
+
if self.security_group_ids is not None:
|
|
2786
|
+
result['SecurityGroupIds'] = self.security_group_ids
|
|
2787
|
+
if self.v_switch_ids is not None:
|
|
2788
|
+
result['VSwitchIds'] = self.v_switch_ids
|
|
2389
2789
|
return result
|
|
2390
2790
|
|
|
2391
2791
|
def from_map(self, m: dict = None):
|
|
2392
2792
|
m = m or dict()
|
|
2393
|
-
if m.get('
|
|
2394
|
-
self.
|
|
2395
|
-
if m.get('
|
|
2396
|
-
self.
|
|
2397
|
-
if m.get('
|
|
2398
|
-
self.
|
|
2793
|
+
if m.get('RegionId') is not None:
|
|
2794
|
+
self.region_id = m.get('RegionId')
|
|
2795
|
+
if m.get('SecurityGroupIds') is not None:
|
|
2796
|
+
self.security_group_ids = m.get('SecurityGroupIds')
|
|
2797
|
+
if m.get('VSwitchIds') is not None:
|
|
2798
|
+
self.v_switch_ids = m.get('VSwitchIds')
|
|
2399
2799
|
return self
|
|
2400
2800
|
|
|
2401
2801
|
|
|
2402
|
-
class
|
|
2802
|
+
class GetActionPlanResponseBodyResources(TeaModel):
|
|
2403
2803
|
def __init__(
|
|
2404
2804
|
self,
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
page_size: int = None,
|
|
2408
|
-
request_id: str = None,
|
|
2409
|
-
success: bool = None,
|
|
2410
|
-
total_count: int = None,
|
|
2805
|
+
cores: float = None,
|
|
2806
|
+
memory: float = None,
|
|
2411
2807
|
):
|
|
2412
|
-
self.
|
|
2413
|
-
self.
|
|
2414
|
-
self.page_size = page_size
|
|
2415
|
-
self.request_id = request_id
|
|
2416
|
-
self.success = success
|
|
2417
|
-
self.total_count = total_count
|
|
2808
|
+
self.cores = cores
|
|
2809
|
+
self.memory = memory
|
|
2418
2810
|
|
|
2419
2811
|
def validate(self):
|
|
2420
|
-
|
|
2421
|
-
for k in self.app_versions:
|
|
2422
|
-
if k:
|
|
2423
|
-
k.validate()
|
|
2812
|
+
pass
|
|
2424
2813
|
|
|
2425
2814
|
def to_map(self):
|
|
2426
2815
|
_map = super().to_map()
|
|
@@ -2428,56 +2817,65 @@ class GetAppVersionsResponseBody(TeaModel):
|
|
|
2428
2817
|
return _map
|
|
2429
2818
|
|
|
2430
2819
|
result = dict()
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
if self.page_number is not None:
|
|
2436
|
-
result['PageNumber'] = self.page_number
|
|
2437
|
-
if self.page_size is not None:
|
|
2438
|
-
result['PageSize'] = self.page_size
|
|
2439
|
-
if self.request_id is not None:
|
|
2440
|
-
result['RequestId'] = self.request_id
|
|
2441
|
-
if self.success is not None:
|
|
2442
|
-
result['Success'] = self.success
|
|
2443
|
-
if self.total_count is not None:
|
|
2444
|
-
result['TotalCount'] = self.total_count
|
|
2820
|
+
if self.cores is not None:
|
|
2821
|
+
result['Cores'] = self.cores
|
|
2822
|
+
if self.memory is not None:
|
|
2823
|
+
result['Memory'] = self.memory
|
|
2445
2824
|
return result
|
|
2446
2825
|
|
|
2447
2826
|
def from_map(self, m: dict = None):
|
|
2448
2827
|
m = m or dict()
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
self.app_versions.append(temp_model.from_map(k))
|
|
2454
|
-
if m.get('PageNumber') is not None:
|
|
2455
|
-
self.page_number = m.get('PageNumber')
|
|
2456
|
-
if m.get('PageSize') is not None:
|
|
2457
|
-
self.page_size = m.get('PageSize')
|
|
2458
|
-
if m.get('RequestId') is not None:
|
|
2459
|
-
self.request_id = m.get('RequestId')
|
|
2460
|
-
if m.get('Success') is not None:
|
|
2461
|
-
self.success = m.get('Success')
|
|
2462
|
-
if m.get('TotalCount') is not None:
|
|
2463
|
-
self.total_count = m.get('TotalCount')
|
|
2828
|
+
if m.get('Cores') is not None:
|
|
2829
|
+
self.cores = m.get('Cores')
|
|
2830
|
+
if m.get('Memory') is not None:
|
|
2831
|
+
self.memory = m.get('Memory')
|
|
2464
2832
|
return self
|
|
2465
2833
|
|
|
2466
2834
|
|
|
2467
|
-
class
|
|
2835
|
+
class GetActionPlanResponseBody(TeaModel):
|
|
2468
2836
|
def __init__(
|
|
2469
2837
|
self,
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2838
|
+
action_plan_id: str = None,
|
|
2839
|
+
action_plan_name: str = None,
|
|
2840
|
+
allocation_spec: str = None,
|
|
2841
|
+
app_id: str = None,
|
|
2842
|
+
create_time: str = None,
|
|
2843
|
+
desired_capacity: float = None,
|
|
2844
|
+
level: str = None,
|
|
2845
|
+
prolog_script: str = None,
|
|
2846
|
+
regions: List[GetActionPlanResponseBodyRegions] = None,
|
|
2847
|
+
request_id: str = None,
|
|
2848
|
+
resource_type: str = None,
|
|
2849
|
+
resources: List[GetActionPlanResponseBodyResources] = None,
|
|
2850
|
+
status: str = None,
|
|
2851
|
+
total_capacity: float = None,
|
|
2852
|
+
update_time: str = None,
|
|
2473
2853
|
):
|
|
2474
|
-
self.
|
|
2475
|
-
self.
|
|
2476
|
-
self.
|
|
2854
|
+
self.action_plan_id = action_plan_id
|
|
2855
|
+
self.action_plan_name = action_plan_name
|
|
2856
|
+
self.allocation_spec = allocation_spec
|
|
2857
|
+
self.app_id = app_id
|
|
2858
|
+
self.create_time = create_time
|
|
2859
|
+
self.desired_capacity = desired_capacity
|
|
2860
|
+
self.level = level
|
|
2861
|
+
self.prolog_script = prolog_script
|
|
2862
|
+
self.regions = regions
|
|
2863
|
+
self.request_id = request_id
|
|
2864
|
+
self.resource_type = resource_type
|
|
2865
|
+
self.resources = resources
|
|
2866
|
+
self.status = status
|
|
2867
|
+
self.total_capacity = total_capacity
|
|
2868
|
+
self.update_time = update_time
|
|
2477
2869
|
|
|
2478
2870
|
def validate(self):
|
|
2479
|
-
if self.
|
|
2480
|
-
self.
|
|
2871
|
+
if self.regions:
|
|
2872
|
+
for k in self.regions:
|
|
2873
|
+
if k:
|
|
2874
|
+
k.validate()
|
|
2875
|
+
if self.resources:
|
|
2876
|
+
for k in self.resources:
|
|
2877
|
+
if k:
|
|
2878
|
+
k.validate()
|
|
2481
2879
|
|
|
2482
2880
|
def to_map(self):
|
|
2483
2881
|
_map = super().to_map()
|
|
@@ -2485,41 +2883,97 @@ class GetAppVersionsResponse(TeaModel):
|
|
|
2485
2883
|
return _map
|
|
2486
2884
|
|
|
2487
2885
|
result = dict()
|
|
2488
|
-
if self.
|
|
2489
|
-
result['
|
|
2490
|
-
if self.
|
|
2491
|
-
result['
|
|
2492
|
-
if self.
|
|
2493
|
-
result['
|
|
2886
|
+
if self.action_plan_id is not None:
|
|
2887
|
+
result['ActionPlanId'] = self.action_plan_id
|
|
2888
|
+
if self.action_plan_name is not None:
|
|
2889
|
+
result['ActionPlanName'] = self.action_plan_name
|
|
2890
|
+
if self.allocation_spec is not None:
|
|
2891
|
+
result['AllocationSpec'] = self.allocation_spec
|
|
2892
|
+
if self.app_id is not None:
|
|
2893
|
+
result['AppId'] = self.app_id
|
|
2894
|
+
if self.create_time is not None:
|
|
2895
|
+
result['CreateTime'] = self.create_time
|
|
2896
|
+
if self.desired_capacity is not None:
|
|
2897
|
+
result['DesiredCapacity'] = self.desired_capacity
|
|
2898
|
+
if self.level is not None:
|
|
2899
|
+
result['Level'] = self.level
|
|
2900
|
+
if self.prolog_script is not None:
|
|
2901
|
+
result['PrologScript'] = self.prolog_script
|
|
2902
|
+
result['Regions'] = []
|
|
2903
|
+
if self.regions is not None:
|
|
2904
|
+
for k in self.regions:
|
|
2905
|
+
result['Regions'].append(k.to_map() if k else None)
|
|
2906
|
+
if self.request_id is not None:
|
|
2907
|
+
result['RequestId'] = self.request_id
|
|
2908
|
+
if self.resource_type is not None:
|
|
2909
|
+
result['ResourceType'] = self.resource_type
|
|
2910
|
+
result['Resources'] = []
|
|
2911
|
+
if self.resources is not None:
|
|
2912
|
+
for k in self.resources:
|
|
2913
|
+
result['Resources'].append(k.to_map() if k else None)
|
|
2914
|
+
if self.status is not None:
|
|
2915
|
+
result['Status'] = self.status
|
|
2916
|
+
if self.total_capacity is not None:
|
|
2917
|
+
result['TotalCapacity'] = self.total_capacity
|
|
2918
|
+
if self.update_time is not None:
|
|
2919
|
+
result['UpdateTime'] = self.update_time
|
|
2494
2920
|
return result
|
|
2495
2921
|
|
|
2496
2922
|
def from_map(self, m: dict = None):
|
|
2497
2923
|
m = m or dict()
|
|
2498
|
-
if m.get('
|
|
2499
|
-
self.
|
|
2500
|
-
if m.get('
|
|
2501
|
-
self.
|
|
2502
|
-
if m.get('
|
|
2503
|
-
|
|
2504
|
-
|
|
2924
|
+
if m.get('ActionPlanId') is not None:
|
|
2925
|
+
self.action_plan_id = m.get('ActionPlanId')
|
|
2926
|
+
if m.get('ActionPlanName') is not None:
|
|
2927
|
+
self.action_plan_name = m.get('ActionPlanName')
|
|
2928
|
+
if m.get('AllocationSpec') is not None:
|
|
2929
|
+
self.allocation_spec = m.get('AllocationSpec')
|
|
2930
|
+
if m.get('AppId') is not None:
|
|
2931
|
+
self.app_id = m.get('AppId')
|
|
2932
|
+
if m.get('CreateTime') is not None:
|
|
2933
|
+
self.create_time = m.get('CreateTime')
|
|
2934
|
+
if m.get('DesiredCapacity') is not None:
|
|
2935
|
+
self.desired_capacity = m.get('DesiredCapacity')
|
|
2936
|
+
if m.get('Level') is not None:
|
|
2937
|
+
self.level = m.get('Level')
|
|
2938
|
+
if m.get('PrologScript') is not None:
|
|
2939
|
+
self.prolog_script = m.get('PrologScript')
|
|
2940
|
+
self.regions = []
|
|
2941
|
+
if m.get('Regions') is not None:
|
|
2942
|
+
for k in m.get('Regions'):
|
|
2943
|
+
temp_model = GetActionPlanResponseBodyRegions()
|
|
2944
|
+
self.regions.append(temp_model.from_map(k))
|
|
2945
|
+
if m.get('RequestId') is not None:
|
|
2946
|
+
self.request_id = m.get('RequestId')
|
|
2947
|
+
if m.get('ResourceType') is not None:
|
|
2948
|
+
self.resource_type = m.get('ResourceType')
|
|
2949
|
+
self.resources = []
|
|
2950
|
+
if m.get('Resources') is not None:
|
|
2951
|
+
for k in m.get('Resources'):
|
|
2952
|
+
temp_model = GetActionPlanResponseBodyResources()
|
|
2953
|
+
self.resources.append(temp_model.from_map(k))
|
|
2954
|
+
if m.get('Status') is not None:
|
|
2955
|
+
self.status = m.get('Status')
|
|
2956
|
+
if m.get('TotalCapacity') is not None:
|
|
2957
|
+
self.total_capacity = m.get('TotalCapacity')
|
|
2958
|
+
if m.get('UpdateTime') is not None:
|
|
2959
|
+
self.update_time = m.get('UpdateTime')
|
|
2505
2960
|
return self
|
|
2506
2961
|
|
|
2507
2962
|
|
|
2508
|
-
class
|
|
2963
|
+
class GetActionPlanResponse(TeaModel):
|
|
2509
2964
|
def __init__(
|
|
2510
2965
|
self,
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
image_type: str = None,
|
|
2966
|
+
headers: Dict[str, str] = None,
|
|
2967
|
+
status_code: int = None,
|
|
2968
|
+
body: GetActionPlanResponseBody = None,
|
|
2515
2969
|
):
|
|
2516
|
-
self.
|
|
2517
|
-
self.
|
|
2518
|
-
self.
|
|
2519
|
-
self.image_type = image_type
|
|
2970
|
+
self.headers = headers
|
|
2971
|
+
self.status_code = status_code
|
|
2972
|
+
self.body = body
|
|
2520
2973
|
|
|
2521
2974
|
def validate(self):
|
|
2522
|
-
|
|
2975
|
+
if self.body:
|
|
2976
|
+
self.body.validate()
|
|
2523
2977
|
|
|
2524
2978
|
def to_map(self):
|
|
2525
2979
|
_map = super().to_map()
|
|
@@ -2527,41 +2981,41 @@ class GetImageRequest(TeaModel):
|
|
|
2527
2981
|
return _map
|
|
2528
2982
|
|
|
2529
2983
|
result = dict()
|
|
2530
|
-
if self.
|
|
2531
|
-
result['
|
|
2532
|
-
if self.
|
|
2533
|
-
result['
|
|
2534
|
-
if self.
|
|
2535
|
-
result['
|
|
2536
|
-
if self.image_type is not None:
|
|
2537
|
-
result['ImageType'] = self.image_type
|
|
2984
|
+
if self.headers is not None:
|
|
2985
|
+
result['headers'] = self.headers
|
|
2986
|
+
if self.status_code is not None:
|
|
2987
|
+
result['statusCode'] = self.status_code
|
|
2988
|
+
if self.body is not None:
|
|
2989
|
+
result['body'] = self.body.to_map()
|
|
2538
2990
|
return result
|
|
2539
2991
|
|
|
2540
2992
|
def from_map(self, m: dict = None):
|
|
2541
2993
|
m = m or dict()
|
|
2542
|
-
if m.get('
|
|
2543
|
-
self.
|
|
2544
|
-
if m.get('
|
|
2545
|
-
self.
|
|
2546
|
-
if m.get('
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
self.image_type = m.get('ImageType')
|
|
2994
|
+
if m.get('headers') is not None:
|
|
2995
|
+
self.headers = m.get('headers')
|
|
2996
|
+
if m.get('statusCode') is not None:
|
|
2997
|
+
self.status_code = m.get('statusCode')
|
|
2998
|
+
if m.get('body') is not None:
|
|
2999
|
+
temp_model = GetActionPlanResponseBody()
|
|
3000
|
+
self.body = temp_model.from_map(m['body'])
|
|
2550
3001
|
return self
|
|
2551
3002
|
|
|
2552
3003
|
|
|
2553
|
-
class
|
|
3004
|
+
class GetAppVersionsRequest(TeaModel):
|
|
2554
3005
|
def __init__(
|
|
2555
3006
|
self,
|
|
2556
|
-
|
|
3007
|
+
app_name: str = None,
|
|
2557
3008
|
image_category: str = None,
|
|
2558
|
-
image_id: str = None,
|
|
2559
3009
|
image_type: str = None,
|
|
3010
|
+
page_number: int = None,
|
|
3011
|
+
page_size: int = None,
|
|
2560
3012
|
):
|
|
2561
|
-
|
|
3013
|
+
# This parameter is required.
|
|
3014
|
+
self.app_name = app_name
|
|
2562
3015
|
self.image_category = image_category
|
|
2563
|
-
self.image_id = image_id
|
|
2564
3016
|
self.image_type = image_type
|
|
3017
|
+
self.page_number = page_number
|
|
3018
|
+
self.page_size = page_size
|
|
2565
3019
|
|
|
2566
3020
|
def validate(self):
|
|
2567
3021
|
pass
|
|
@@ -2572,39 +3026,44 @@ class GetImageShrinkRequest(TeaModel):
|
|
|
2572
3026
|
return _map
|
|
2573
3027
|
|
|
2574
3028
|
result = dict()
|
|
2575
|
-
if self.
|
|
2576
|
-
result['
|
|
3029
|
+
if self.app_name is not None:
|
|
3030
|
+
result['AppName'] = self.app_name
|
|
2577
3031
|
if self.image_category is not None:
|
|
2578
3032
|
result['ImageCategory'] = self.image_category
|
|
2579
|
-
if self.image_id is not None:
|
|
2580
|
-
result['ImageId'] = self.image_id
|
|
2581
3033
|
if self.image_type is not None:
|
|
2582
3034
|
result['ImageType'] = self.image_type
|
|
3035
|
+
if self.page_number is not None:
|
|
3036
|
+
result['PageNumber'] = self.page_number
|
|
3037
|
+
if self.page_size is not None:
|
|
3038
|
+
result['PageSize'] = self.page_size
|
|
2583
3039
|
return result
|
|
2584
3040
|
|
|
2585
3041
|
def from_map(self, m: dict = None):
|
|
2586
3042
|
m = m or dict()
|
|
2587
|
-
if m.get('
|
|
2588
|
-
self.
|
|
3043
|
+
if m.get('AppName') is not None:
|
|
3044
|
+
self.app_name = m.get('AppName')
|
|
2589
3045
|
if m.get('ImageCategory') is not None:
|
|
2590
3046
|
self.image_category = m.get('ImageCategory')
|
|
2591
|
-
if m.get('ImageId') is not None:
|
|
2592
|
-
self.image_id = m.get('ImageId')
|
|
2593
3047
|
if m.get('ImageType') is not None:
|
|
2594
3048
|
self.image_type = m.get('ImageType')
|
|
3049
|
+
if m.get('PageNumber') is not None:
|
|
3050
|
+
self.page_number = m.get('PageNumber')
|
|
3051
|
+
if m.get('PageSize') is not None:
|
|
3052
|
+
self.page_size = m.get('PageSize')
|
|
2595
3053
|
return self
|
|
2596
3054
|
|
|
2597
3055
|
|
|
2598
|
-
class
|
|
3056
|
+
class GetAppVersionsResponseBodyAppVersions(TeaModel):
|
|
2599
3057
|
def __init__(
|
|
2600
3058
|
self,
|
|
2601
3059
|
image_id: str = None,
|
|
2602
|
-
|
|
2603
|
-
|
|
3060
|
+
name: str = None,
|
|
3061
|
+
version: str = None,
|
|
2604
3062
|
):
|
|
3063
|
+
# This parameter is required.
|
|
2605
3064
|
self.image_id = image_id
|
|
2606
|
-
self.
|
|
2607
|
-
self.
|
|
3065
|
+
self.name = name
|
|
3066
|
+
self.version = version
|
|
2608
3067
|
|
|
2609
3068
|
def validate(self):
|
|
2610
3069
|
pass
|
|
@@ -2617,36 +3076,45 @@ class GetImageResponseBodyImageAdditionalRegionsInfo(TeaModel):
|
|
|
2617
3076
|
result = dict()
|
|
2618
3077
|
if self.image_id is not None:
|
|
2619
3078
|
result['ImageId'] = self.image_id
|
|
2620
|
-
if self.
|
|
2621
|
-
result['
|
|
2622
|
-
if self.
|
|
2623
|
-
result['
|
|
3079
|
+
if self.name is not None:
|
|
3080
|
+
result['Name'] = self.name
|
|
3081
|
+
if self.version is not None:
|
|
3082
|
+
result['Version'] = self.version
|
|
2624
3083
|
return result
|
|
2625
3084
|
|
|
2626
3085
|
def from_map(self, m: dict = None):
|
|
2627
3086
|
m = m or dict()
|
|
2628
3087
|
if m.get('ImageId') is not None:
|
|
2629
3088
|
self.image_id = m.get('ImageId')
|
|
2630
|
-
if m.get('
|
|
2631
|
-
self.
|
|
2632
|
-
if m.get('
|
|
2633
|
-
self.
|
|
3089
|
+
if m.get('Name') is not None:
|
|
3090
|
+
self.name = m.get('Name')
|
|
3091
|
+
if m.get('Version') is not None:
|
|
3092
|
+
self.version = m.get('Version')
|
|
2634
3093
|
return self
|
|
2635
3094
|
|
|
2636
3095
|
|
|
2637
|
-
class
|
|
3096
|
+
class GetAppVersionsResponseBody(TeaModel):
|
|
2638
3097
|
def __init__(
|
|
2639
3098
|
self,
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
3099
|
+
app_versions: List[GetAppVersionsResponseBodyAppVersions] = None,
|
|
3100
|
+
page_number: int = None,
|
|
3101
|
+
page_size: int = None,
|
|
3102
|
+
request_id: str = None,
|
|
3103
|
+
success: bool = None,
|
|
3104
|
+
total_count: int = None,
|
|
2643
3105
|
):
|
|
2644
|
-
self.
|
|
2645
|
-
self.
|
|
2646
|
-
self.
|
|
3106
|
+
self.app_versions = app_versions
|
|
3107
|
+
self.page_number = page_number
|
|
3108
|
+
self.page_size = page_size
|
|
3109
|
+
self.request_id = request_id
|
|
3110
|
+
self.success = success
|
|
3111
|
+
self.total_count = total_count
|
|
2647
3112
|
|
|
2648
3113
|
def validate(self):
|
|
2649
|
-
|
|
3114
|
+
if self.app_versions:
|
|
3115
|
+
for k in self.app_versions:
|
|
3116
|
+
if k:
|
|
3117
|
+
k.validate()
|
|
2650
3118
|
|
|
2651
3119
|
def to_map(self):
|
|
2652
3120
|
_map = super().to_map()
|
|
@@ -2654,49 +3122,56 @@ class GetImageResponseBodyImageContainerImageSpecRegistryCredential(TeaModel):
|
|
|
2654
3122
|
return _map
|
|
2655
3123
|
|
|
2656
3124
|
result = dict()
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
if self.
|
|
2662
|
-
result['
|
|
3125
|
+
result['AppVersions'] = []
|
|
3126
|
+
if self.app_versions is not None:
|
|
3127
|
+
for k in self.app_versions:
|
|
3128
|
+
result['AppVersions'].append(k.to_map() if k else None)
|
|
3129
|
+
if self.page_number is not None:
|
|
3130
|
+
result['PageNumber'] = self.page_number
|
|
3131
|
+
if self.page_size is not None:
|
|
3132
|
+
result['PageSize'] = self.page_size
|
|
3133
|
+
if self.request_id is not None:
|
|
3134
|
+
result['RequestId'] = self.request_id
|
|
3135
|
+
if self.success is not None:
|
|
3136
|
+
result['Success'] = self.success
|
|
3137
|
+
if self.total_count is not None:
|
|
3138
|
+
result['TotalCount'] = self.total_count
|
|
2663
3139
|
return result
|
|
2664
3140
|
|
|
2665
3141
|
def from_map(self, m: dict = None):
|
|
2666
3142
|
m = m or dict()
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
3143
|
+
self.app_versions = []
|
|
3144
|
+
if m.get('AppVersions') is not None:
|
|
3145
|
+
for k in m.get('AppVersions'):
|
|
3146
|
+
temp_model = GetAppVersionsResponseBodyAppVersions()
|
|
3147
|
+
self.app_versions.append(temp_model.from_map(k))
|
|
3148
|
+
if m.get('PageNumber') is not None:
|
|
3149
|
+
self.page_number = m.get('PageNumber')
|
|
3150
|
+
if m.get('PageSize') is not None:
|
|
3151
|
+
self.page_size = m.get('PageSize')
|
|
3152
|
+
if m.get('RequestId') is not None:
|
|
3153
|
+
self.request_id = m.get('RequestId')
|
|
3154
|
+
if m.get('Success') is not None:
|
|
3155
|
+
self.success = m.get('Success')
|
|
3156
|
+
if m.get('TotalCount') is not None:
|
|
3157
|
+
self.total_count = m.get('TotalCount')
|
|
2673
3158
|
return self
|
|
2674
3159
|
|
|
2675
3160
|
|
|
2676
|
-
class
|
|
3161
|
+
class GetAppVersionsResponse(TeaModel):
|
|
2677
3162
|
def __init__(
|
|
2678
3163
|
self,
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
os_tag: str = None,
|
|
2683
|
-
platform: str = None,
|
|
2684
|
-
registry_credential: GetImageResponseBodyImageContainerImageSpecRegistryCredential = None,
|
|
2685
|
-
registry_cri_id: str = None,
|
|
2686
|
-
registry_url: str = None,
|
|
3164
|
+
headers: Dict[str, str] = None,
|
|
3165
|
+
status_code: int = None,
|
|
3166
|
+
body: GetAppVersionsResponseBody = None,
|
|
2687
3167
|
):
|
|
2688
|
-
self.
|
|
2689
|
-
self.
|
|
2690
|
-
self.
|
|
2691
|
-
self.os_tag = os_tag
|
|
2692
|
-
self.platform = platform
|
|
2693
|
-
self.registry_credential = registry_credential
|
|
2694
|
-
self.registry_cri_id = registry_cri_id
|
|
2695
|
-
self.registry_url = registry_url
|
|
3168
|
+
self.headers = headers
|
|
3169
|
+
self.status_code = status_code
|
|
3170
|
+
self.body = body
|
|
2696
3171
|
|
|
2697
3172
|
def validate(self):
|
|
2698
|
-
if self.
|
|
2699
|
-
self.
|
|
3173
|
+
if self.body:
|
|
3174
|
+
self.body.validate()
|
|
2700
3175
|
|
|
2701
3176
|
def to_map(self):
|
|
2702
3177
|
_map = super().to_map()
|
|
@@ -2704,19 +3179,238 @@ class GetImageResponseBodyImageContainerImageSpec(TeaModel):
|
|
|
2704
3179
|
return _map
|
|
2705
3180
|
|
|
2706
3181
|
result = dict()
|
|
2707
|
-
if self.
|
|
2708
|
-
result['
|
|
2709
|
-
if self.
|
|
2710
|
-
result['
|
|
2711
|
-
if self.
|
|
2712
|
-
result['
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
if
|
|
2718
|
-
|
|
2719
|
-
if
|
|
3182
|
+
if self.headers is not None:
|
|
3183
|
+
result['headers'] = self.headers
|
|
3184
|
+
if self.status_code is not None:
|
|
3185
|
+
result['statusCode'] = self.status_code
|
|
3186
|
+
if self.body is not None:
|
|
3187
|
+
result['body'] = self.body.to_map()
|
|
3188
|
+
return result
|
|
3189
|
+
|
|
3190
|
+
def from_map(self, m: dict = None):
|
|
3191
|
+
m = m or dict()
|
|
3192
|
+
if m.get('headers') is not None:
|
|
3193
|
+
self.headers = m.get('headers')
|
|
3194
|
+
if m.get('statusCode') is not None:
|
|
3195
|
+
self.status_code = m.get('statusCode')
|
|
3196
|
+
if m.get('body') is not None:
|
|
3197
|
+
temp_model = GetAppVersionsResponseBody()
|
|
3198
|
+
self.body = temp_model.from_map(m['body'])
|
|
3199
|
+
return self
|
|
3200
|
+
|
|
3201
|
+
|
|
3202
|
+
class GetImageRequest(TeaModel):
|
|
3203
|
+
def __init__(
|
|
3204
|
+
self,
|
|
3205
|
+
additional_region_ids: List[str] = None,
|
|
3206
|
+
image_category: str = None,
|
|
3207
|
+
image_id: str = None,
|
|
3208
|
+
image_type: str = None,
|
|
3209
|
+
):
|
|
3210
|
+
self.additional_region_ids = additional_region_ids
|
|
3211
|
+
self.image_category = image_category
|
|
3212
|
+
self.image_id = image_id
|
|
3213
|
+
self.image_type = image_type
|
|
3214
|
+
|
|
3215
|
+
def validate(self):
|
|
3216
|
+
pass
|
|
3217
|
+
|
|
3218
|
+
def to_map(self):
|
|
3219
|
+
_map = super().to_map()
|
|
3220
|
+
if _map is not None:
|
|
3221
|
+
return _map
|
|
3222
|
+
|
|
3223
|
+
result = dict()
|
|
3224
|
+
if self.additional_region_ids is not None:
|
|
3225
|
+
result['AdditionalRegionIds'] = self.additional_region_ids
|
|
3226
|
+
if self.image_category is not None:
|
|
3227
|
+
result['ImageCategory'] = self.image_category
|
|
3228
|
+
if self.image_id is not None:
|
|
3229
|
+
result['ImageId'] = self.image_id
|
|
3230
|
+
if self.image_type is not None:
|
|
3231
|
+
result['ImageType'] = self.image_type
|
|
3232
|
+
return result
|
|
3233
|
+
|
|
3234
|
+
def from_map(self, m: dict = None):
|
|
3235
|
+
m = m or dict()
|
|
3236
|
+
if m.get('AdditionalRegionIds') is not None:
|
|
3237
|
+
self.additional_region_ids = m.get('AdditionalRegionIds')
|
|
3238
|
+
if m.get('ImageCategory') is not None:
|
|
3239
|
+
self.image_category = m.get('ImageCategory')
|
|
3240
|
+
if m.get('ImageId') is not None:
|
|
3241
|
+
self.image_id = m.get('ImageId')
|
|
3242
|
+
if m.get('ImageType') is not None:
|
|
3243
|
+
self.image_type = m.get('ImageType')
|
|
3244
|
+
return self
|
|
3245
|
+
|
|
3246
|
+
|
|
3247
|
+
class GetImageShrinkRequest(TeaModel):
|
|
3248
|
+
def __init__(
|
|
3249
|
+
self,
|
|
3250
|
+
additional_region_ids_shrink: str = None,
|
|
3251
|
+
image_category: str = None,
|
|
3252
|
+
image_id: str = None,
|
|
3253
|
+
image_type: str = None,
|
|
3254
|
+
):
|
|
3255
|
+
self.additional_region_ids_shrink = additional_region_ids_shrink
|
|
3256
|
+
self.image_category = image_category
|
|
3257
|
+
self.image_id = image_id
|
|
3258
|
+
self.image_type = image_type
|
|
3259
|
+
|
|
3260
|
+
def validate(self):
|
|
3261
|
+
pass
|
|
3262
|
+
|
|
3263
|
+
def to_map(self):
|
|
3264
|
+
_map = super().to_map()
|
|
3265
|
+
if _map is not None:
|
|
3266
|
+
return _map
|
|
3267
|
+
|
|
3268
|
+
result = dict()
|
|
3269
|
+
if self.additional_region_ids_shrink is not None:
|
|
3270
|
+
result['AdditionalRegionIds'] = self.additional_region_ids_shrink
|
|
3271
|
+
if self.image_category is not None:
|
|
3272
|
+
result['ImageCategory'] = self.image_category
|
|
3273
|
+
if self.image_id is not None:
|
|
3274
|
+
result['ImageId'] = self.image_id
|
|
3275
|
+
if self.image_type is not None:
|
|
3276
|
+
result['ImageType'] = self.image_type
|
|
3277
|
+
return result
|
|
3278
|
+
|
|
3279
|
+
def from_map(self, m: dict = None):
|
|
3280
|
+
m = m or dict()
|
|
3281
|
+
if m.get('AdditionalRegionIds') is not None:
|
|
3282
|
+
self.additional_region_ids_shrink = m.get('AdditionalRegionIds')
|
|
3283
|
+
if m.get('ImageCategory') is not None:
|
|
3284
|
+
self.image_category = m.get('ImageCategory')
|
|
3285
|
+
if m.get('ImageId') is not None:
|
|
3286
|
+
self.image_id = m.get('ImageId')
|
|
3287
|
+
if m.get('ImageType') is not None:
|
|
3288
|
+
self.image_type = m.get('ImageType')
|
|
3289
|
+
return self
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
class GetImageResponseBodyImageAdditionalRegionsInfo(TeaModel):
|
|
3293
|
+
def __init__(
|
|
3294
|
+
self,
|
|
3295
|
+
image_id: str = None,
|
|
3296
|
+
region_id: str = None,
|
|
3297
|
+
status: str = None,
|
|
3298
|
+
):
|
|
3299
|
+
self.image_id = image_id
|
|
3300
|
+
self.region_id = region_id
|
|
3301
|
+
self.status = status
|
|
3302
|
+
|
|
3303
|
+
def validate(self):
|
|
3304
|
+
pass
|
|
3305
|
+
|
|
3306
|
+
def to_map(self):
|
|
3307
|
+
_map = super().to_map()
|
|
3308
|
+
if _map is not None:
|
|
3309
|
+
return _map
|
|
3310
|
+
|
|
3311
|
+
result = dict()
|
|
3312
|
+
if self.image_id is not None:
|
|
3313
|
+
result['ImageId'] = self.image_id
|
|
3314
|
+
if self.region_id is not None:
|
|
3315
|
+
result['RegionId'] = self.region_id
|
|
3316
|
+
if self.status is not None:
|
|
3317
|
+
result['Status'] = self.status
|
|
3318
|
+
return result
|
|
3319
|
+
|
|
3320
|
+
def from_map(self, m: dict = None):
|
|
3321
|
+
m = m or dict()
|
|
3322
|
+
if m.get('ImageId') is not None:
|
|
3323
|
+
self.image_id = m.get('ImageId')
|
|
3324
|
+
if m.get('RegionId') is not None:
|
|
3325
|
+
self.region_id = m.get('RegionId')
|
|
3326
|
+
if m.get('Status') is not None:
|
|
3327
|
+
self.status = m.get('Status')
|
|
3328
|
+
return self
|
|
3329
|
+
|
|
3330
|
+
|
|
3331
|
+
class GetImageResponseBodyImageContainerImageSpecRegistryCredential(TeaModel):
|
|
3332
|
+
def __init__(
|
|
3333
|
+
self,
|
|
3334
|
+
password: str = None,
|
|
3335
|
+
server: str = None,
|
|
3336
|
+
user_name: str = None,
|
|
3337
|
+
):
|
|
3338
|
+
self.password = password
|
|
3339
|
+
self.server = server
|
|
3340
|
+
self.user_name = user_name
|
|
3341
|
+
|
|
3342
|
+
def validate(self):
|
|
3343
|
+
pass
|
|
3344
|
+
|
|
3345
|
+
def to_map(self):
|
|
3346
|
+
_map = super().to_map()
|
|
3347
|
+
if _map is not None:
|
|
3348
|
+
return _map
|
|
3349
|
+
|
|
3350
|
+
result = dict()
|
|
3351
|
+
if self.password is not None:
|
|
3352
|
+
result['Password'] = self.password
|
|
3353
|
+
if self.server is not None:
|
|
3354
|
+
result['Server'] = self.server
|
|
3355
|
+
if self.user_name is not None:
|
|
3356
|
+
result['UserName'] = self.user_name
|
|
3357
|
+
return result
|
|
3358
|
+
|
|
3359
|
+
def from_map(self, m: dict = None):
|
|
3360
|
+
m = m or dict()
|
|
3361
|
+
if m.get('Password') is not None:
|
|
3362
|
+
self.password = m.get('Password')
|
|
3363
|
+
if m.get('Server') is not None:
|
|
3364
|
+
self.server = m.get('Server')
|
|
3365
|
+
if m.get('UserName') is not None:
|
|
3366
|
+
self.user_name = m.get('UserName')
|
|
3367
|
+
return self
|
|
3368
|
+
|
|
3369
|
+
|
|
3370
|
+
class GetImageResponseBodyImageContainerImageSpec(TeaModel):
|
|
3371
|
+
def __init__(
|
|
3372
|
+
self,
|
|
3373
|
+
architecture: str = None,
|
|
3374
|
+
is_acrenterprise: bool = None,
|
|
3375
|
+
is_acrregistry: bool = None,
|
|
3376
|
+
os_tag: str = None,
|
|
3377
|
+
platform: str = None,
|
|
3378
|
+
registry_credential: GetImageResponseBodyImageContainerImageSpecRegistryCredential = None,
|
|
3379
|
+
registry_cri_id: str = None,
|
|
3380
|
+
registry_url: str = None,
|
|
3381
|
+
):
|
|
3382
|
+
self.architecture = architecture
|
|
3383
|
+
self.is_acrenterprise = is_acrenterprise
|
|
3384
|
+
self.is_acrregistry = is_acrregistry
|
|
3385
|
+
self.os_tag = os_tag
|
|
3386
|
+
self.platform = platform
|
|
3387
|
+
self.registry_credential = registry_credential
|
|
3388
|
+
self.registry_cri_id = registry_cri_id
|
|
3389
|
+
self.registry_url = registry_url
|
|
3390
|
+
|
|
3391
|
+
def validate(self):
|
|
3392
|
+
if self.registry_credential:
|
|
3393
|
+
self.registry_credential.validate()
|
|
3394
|
+
|
|
3395
|
+
def to_map(self):
|
|
3396
|
+
_map = super().to_map()
|
|
3397
|
+
if _map is not None:
|
|
3398
|
+
return _map
|
|
3399
|
+
|
|
3400
|
+
result = dict()
|
|
3401
|
+
if self.architecture is not None:
|
|
3402
|
+
result['Architecture'] = self.architecture
|
|
3403
|
+
if self.is_acrenterprise is not None:
|
|
3404
|
+
result['IsACREnterprise'] = self.is_acrenterprise
|
|
3405
|
+
if self.is_acrregistry is not None:
|
|
3406
|
+
result['IsACRRegistry'] = self.is_acrregistry
|
|
3407
|
+
if self.os_tag is not None:
|
|
3408
|
+
result['OsTag'] = self.os_tag
|
|
3409
|
+
if self.platform is not None:
|
|
3410
|
+
result['Platform'] = self.platform
|
|
3411
|
+
if self.registry_credential is not None:
|
|
3412
|
+
result['RegistryCredential'] = self.registry_credential.to_map()
|
|
3413
|
+
if self.registry_cri_id is not None:
|
|
2720
3414
|
result['RegistryCriId'] = self.registry_cri_id
|
|
2721
3415
|
if self.registry_url is not None:
|
|
2722
3416
|
result['RegistryUrl'] = self.registry_url
|
|
@@ -3782,70 +4476,484 @@ class GetJobResponseBodyJobInfo(TeaModel):
|
|
|
3782
4476
|
result['DeploymentPolicy'] = self.deployment_policy.to_map()
|
|
3783
4477
|
if self.end_time is not None:
|
|
3784
4478
|
result['EndTime'] = self.end_time
|
|
3785
|
-
if self.job_description is not None:
|
|
3786
|
-
result['JobDescription'] = self.job_description
|
|
3787
|
-
if self.job_id is not None:
|
|
3788
|
-
result['JobId'] = self.job_id
|
|
3789
|
-
if self.job_name is not None:
|
|
3790
|
-
result['JobName'] = self.job_name
|
|
3791
|
-
if self.job_scheduler is not None:
|
|
3792
|
-
result['JobScheduler'] = self.job_scheduler
|
|
4479
|
+
if self.job_description is not None:
|
|
4480
|
+
result['JobDescription'] = self.job_description
|
|
4481
|
+
if self.job_id is not None:
|
|
4482
|
+
result['JobId'] = self.job_id
|
|
4483
|
+
if self.job_name is not None:
|
|
4484
|
+
result['JobName'] = self.job_name
|
|
4485
|
+
if self.job_scheduler is not None:
|
|
4486
|
+
result['JobScheduler'] = self.job_scheduler
|
|
4487
|
+
if self.start_time is not None:
|
|
4488
|
+
result['StartTime'] = self.start_time
|
|
4489
|
+
if self.status is not None:
|
|
4490
|
+
result['Status'] = self.status
|
|
4491
|
+
result['Tasks'] = []
|
|
4492
|
+
if self.tasks is not None:
|
|
4493
|
+
for k in self.tasks:
|
|
4494
|
+
result['Tasks'].append(k.to_map() if k else None)
|
|
4495
|
+
return result
|
|
4496
|
+
|
|
4497
|
+
def from_map(self, m: dict = None):
|
|
4498
|
+
m = m or dict()
|
|
4499
|
+
if m.get('AppExtraInfo') is not None:
|
|
4500
|
+
self.app_extra_info = m.get('AppExtraInfo')
|
|
4501
|
+
if m.get('CreateTime') is not None:
|
|
4502
|
+
self.create_time = m.get('CreateTime')
|
|
4503
|
+
if m.get('DependencyPolicy') is not None:
|
|
4504
|
+
temp_model = GetJobResponseBodyJobInfoDependencyPolicy()
|
|
4505
|
+
self.dependency_policy = temp_model.from_map(m['DependencyPolicy'])
|
|
4506
|
+
if m.get('DeploymentPolicy') is not None:
|
|
4507
|
+
temp_model = GetJobResponseBodyJobInfoDeploymentPolicy()
|
|
4508
|
+
self.deployment_policy = temp_model.from_map(m['DeploymentPolicy'])
|
|
4509
|
+
if m.get('EndTime') is not None:
|
|
4510
|
+
self.end_time = m.get('EndTime')
|
|
4511
|
+
if m.get('JobDescription') is not None:
|
|
4512
|
+
self.job_description = m.get('JobDescription')
|
|
4513
|
+
if m.get('JobId') is not None:
|
|
4514
|
+
self.job_id = m.get('JobId')
|
|
4515
|
+
if m.get('JobName') is not None:
|
|
4516
|
+
self.job_name = m.get('JobName')
|
|
4517
|
+
if m.get('JobScheduler') is not None:
|
|
4518
|
+
self.job_scheduler = m.get('JobScheduler')
|
|
4519
|
+
if m.get('StartTime') is not None:
|
|
4520
|
+
self.start_time = m.get('StartTime')
|
|
4521
|
+
if m.get('Status') is not None:
|
|
4522
|
+
self.status = m.get('Status')
|
|
4523
|
+
self.tasks = []
|
|
4524
|
+
if m.get('Tasks') is not None:
|
|
4525
|
+
for k in m.get('Tasks'):
|
|
4526
|
+
temp_model = GetJobResponseBodyJobInfoTasks()
|
|
4527
|
+
self.tasks.append(temp_model.from_map(k))
|
|
4528
|
+
return self
|
|
4529
|
+
|
|
4530
|
+
|
|
4531
|
+
class GetJobResponseBody(TeaModel):
|
|
4532
|
+
def __init__(
|
|
4533
|
+
self,
|
|
4534
|
+
job_info: GetJobResponseBodyJobInfo = None,
|
|
4535
|
+
request_id: str = None,
|
|
4536
|
+
):
|
|
4537
|
+
self.job_info = job_info
|
|
4538
|
+
self.request_id = request_id
|
|
4539
|
+
|
|
4540
|
+
def validate(self):
|
|
4541
|
+
if self.job_info:
|
|
4542
|
+
self.job_info.validate()
|
|
4543
|
+
|
|
4544
|
+
def to_map(self):
|
|
4545
|
+
_map = super().to_map()
|
|
4546
|
+
if _map is not None:
|
|
4547
|
+
return _map
|
|
4548
|
+
|
|
4549
|
+
result = dict()
|
|
4550
|
+
if self.job_info is not None:
|
|
4551
|
+
result['JobInfo'] = self.job_info.to_map()
|
|
4552
|
+
if self.request_id is not None:
|
|
4553
|
+
result['RequestId'] = self.request_id
|
|
4554
|
+
return result
|
|
4555
|
+
|
|
4556
|
+
def from_map(self, m: dict = None):
|
|
4557
|
+
m = m or dict()
|
|
4558
|
+
if m.get('JobInfo') is not None:
|
|
4559
|
+
temp_model = GetJobResponseBodyJobInfo()
|
|
4560
|
+
self.job_info = temp_model.from_map(m['JobInfo'])
|
|
4561
|
+
if m.get('RequestId') is not None:
|
|
4562
|
+
self.request_id = m.get('RequestId')
|
|
4563
|
+
return self
|
|
4564
|
+
|
|
4565
|
+
|
|
4566
|
+
class GetJobResponse(TeaModel):
|
|
4567
|
+
def __init__(
|
|
4568
|
+
self,
|
|
4569
|
+
headers: Dict[str, str] = None,
|
|
4570
|
+
status_code: int = None,
|
|
4571
|
+
body: GetJobResponseBody = None,
|
|
4572
|
+
):
|
|
4573
|
+
self.headers = headers
|
|
4574
|
+
self.status_code = status_code
|
|
4575
|
+
self.body = body
|
|
4576
|
+
|
|
4577
|
+
def validate(self):
|
|
4578
|
+
if self.body:
|
|
4579
|
+
self.body.validate()
|
|
4580
|
+
|
|
4581
|
+
def to_map(self):
|
|
4582
|
+
_map = super().to_map()
|
|
4583
|
+
if _map is not None:
|
|
4584
|
+
return _map
|
|
4585
|
+
|
|
4586
|
+
result = dict()
|
|
4587
|
+
if self.headers is not None:
|
|
4588
|
+
result['headers'] = self.headers
|
|
4589
|
+
if self.status_code is not None:
|
|
4590
|
+
result['statusCode'] = self.status_code
|
|
4591
|
+
if self.body is not None:
|
|
4592
|
+
result['body'] = self.body.to_map()
|
|
4593
|
+
return result
|
|
4594
|
+
|
|
4595
|
+
def from_map(self, m: dict = None):
|
|
4596
|
+
m = m or dict()
|
|
4597
|
+
if m.get('headers') is not None:
|
|
4598
|
+
self.headers = m.get('headers')
|
|
4599
|
+
if m.get('statusCode') is not None:
|
|
4600
|
+
self.status_code = m.get('statusCode')
|
|
4601
|
+
if m.get('body') is not None:
|
|
4602
|
+
temp_model = GetJobResponseBody()
|
|
4603
|
+
self.body = temp_model.from_map(m['body'])
|
|
4604
|
+
return self
|
|
4605
|
+
|
|
4606
|
+
|
|
4607
|
+
class GetPoolRequest(TeaModel):
|
|
4608
|
+
def __init__(
|
|
4609
|
+
self,
|
|
4610
|
+
pool_name: str = None,
|
|
4611
|
+
):
|
|
4612
|
+
# This parameter is required.
|
|
4613
|
+
self.pool_name = pool_name
|
|
4614
|
+
|
|
4615
|
+
def validate(self):
|
|
4616
|
+
pass
|
|
4617
|
+
|
|
4618
|
+
def to_map(self):
|
|
4619
|
+
_map = super().to_map()
|
|
4620
|
+
if _map is not None:
|
|
4621
|
+
return _map
|
|
4622
|
+
|
|
4623
|
+
result = dict()
|
|
4624
|
+
if self.pool_name is not None:
|
|
4625
|
+
result['PoolName'] = self.pool_name
|
|
4626
|
+
return result
|
|
4627
|
+
|
|
4628
|
+
def from_map(self, m: dict = None):
|
|
4629
|
+
m = m or dict()
|
|
4630
|
+
if m.get('PoolName') is not None:
|
|
4631
|
+
self.pool_name = m.get('PoolName')
|
|
4632
|
+
return self
|
|
4633
|
+
|
|
4634
|
+
|
|
4635
|
+
class GetPoolResponseBodyPoolInfo(TeaModel):
|
|
4636
|
+
def __init__(
|
|
4637
|
+
self,
|
|
4638
|
+
create_time: str = None,
|
|
4639
|
+
exector_usage: int = None,
|
|
4640
|
+
is_default: bool = None,
|
|
4641
|
+
max_exector_num: int = None,
|
|
4642
|
+
pool_name: str = None,
|
|
4643
|
+
priority: int = None,
|
|
4644
|
+
reason: str = None,
|
|
4645
|
+
status: str = None,
|
|
4646
|
+
update_time: str = None,
|
|
4647
|
+
):
|
|
4648
|
+
self.create_time = create_time
|
|
4649
|
+
self.exector_usage = exector_usage
|
|
4650
|
+
self.is_default = is_default
|
|
4651
|
+
self.max_exector_num = max_exector_num
|
|
4652
|
+
self.pool_name = pool_name
|
|
4653
|
+
self.priority = priority
|
|
4654
|
+
self.reason = reason
|
|
4655
|
+
self.status = status
|
|
4656
|
+
self.update_time = update_time
|
|
4657
|
+
|
|
4658
|
+
def validate(self):
|
|
4659
|
+
pass
|
|
4660
|
+
|
|
4661
|
+
def to_map(self):
|
|
4662
|
+
_map = super().to_map()
|
|
4663
|
+
if _map is not None:
|
|
4664
|
+
return _map
|
|
4665
|
+
|
|
4666
|
+
result = dict()
|
|
4667
|
+
if self.create_time is not None:
|
|
4668
|
+
result['CreateTime'] = self.create_time
|
|
4669
|
+
if self.exector_usage is not None:
|
|
4670
|
+
result['ExectorUsage'] = self.exector_usage
|
|
4671
|
+
if self.is_default is not None:
|
|
4672
|
+
result['IsDefault'] = self.is_default
|
|
4673
|
+
if self.max_exector_num is not None:
|
|
4674
|
+
result['MaxExectorNum'] = self.max_exector_num
|
|
4675
|
+
if self.pool_name is not None:
|
|
4676
|
+
result['PoolName'] = self.pool_name
|
|
4677
|
+
if self.priority is not None:
|
|
4678
|
+
result['Priority'] = self.priority
|
|
4679
|
+
if self.reason is not None:
|
|
4680
|
+
result['Reason'] = self.reason
|
|
4681
|
+
if self.status is not None:
|
|
4682
|
+
result['Status'] = self.status
|
|
4683
|
+
if self.update_time is not None:
|
|
4684
|
+
result['UpdateTime'] = self.update_time
|
|
4685
|
+
return result
|
|
4686
|
+
|
|
4687
|
+
def from_map(self, m: dict = None):
|
|
4688
|
+
m = m or dict()
|
|
4689
|
+
if m.get('CreateTime') is not None:
|
|
4690
|
+
self.create_time = m.get('CreateTime')
|
|
4691
|
+
if m.get('ExectorUsage') is not None:
|
|
4692
|
+
self.exector_usage = m.get('ExectorUsage')
|
|
4693
|
+
if m.get('IsDefault') is not None:
|
|
4694
|
+
self.is_default = m.get('IsDefault')
|
|
4695
|
+
if m.get('MaxExectorNum') is not None:
|
|
4696
|
+
self.max_exector_num = m.get('MaxExectorNum')
|
|
4697
|
+
if m.get('PoolName') is not None:
|
|
4698
|
+
self.pool_name = m.get('PoolName')
|
|
4699
|
+
if m.get('Priority') is not None:
|
|
4700
|
+
self.priority = m.get('Priority')
|
|
4701
|
+
if m.get('Reason') is not None:
|
|
4702
|
+
self.reason = m.get('Reason')
|
|
4703
|
+
if m.get('Status') is not None:
|
|
4704
|
+
self.status = m.get('Status')
|
|
4705
|
+
if m.get('UpdateTime') is not None:
|
|
4706
|
+
self.update_time = m.get('UpdateTime')
|
|
4707
|
+
return self
|
|
4708
|
+
|
|
4709
|
+
|
|
4710
|
+
class GetPoolResponseBody(TeaModel):
|
|
4711
|
+
def __init__(
|
|
4712
|
+
self,
|
|
4713
|
+
pool_info: GetPoolResponseBodyPoolInfo = None,
|
|
4714
|
+
request_id: str = None,
|
|
4715
|
+
):
|
|
4716
|
+
self.pool_info = pool_info
|
|
4717
|
+
# Id of the request
|
|
4718
|
+
self.request_id = request_id
|
|
4719
|
+
|
|
4720
|
+
def validate(self):
|
|
4721
|
+
if self.pool_info:
|
|
4722
|
+
self.pool_info.validate()
|
|
4723
|
+
|
|
4724
|
+
def to_map(self):
|
|
4725
|
+
_map = super().to_map()
|
|
4726
|
+
if _map is not None:
|
|
4727
|
+
return _map
|
|
4728
|
+
|
|
4729
|
+
result = dict()
|
|
4730
|
+
if self.pool_info is not None:
|
|
4731
|
+
result['PoolInfo'] = self.pool_info.to_map()
|
|
4732
|
+
if self.request_id is not None:
|
|
4733
|
+
result['RequestId'] = self.request_id
|
|
4734
|
+
return result
|
|
4735
|
+
|
|
4736
|
+
def from_map(self, m: dict = None):
|
|
4737
|
+
m = m or dict()
|
|
4738
|
+
if m.get('PoolInfo') is not None:
|
|
4739
|
+
temp_model = GetPoolResponseBodyPoolInfo()
|
|
4740
|
+
self.pool_info = temp_model.from_map(m['PoolInfo'])
|
|
4741
|
+
if m.get('RequestId') is not None:
|
|
4742
|
+
self.request_id = m.get('RequestId')
|
|
4743
|
+
return self
|
|
4744
|
+
|
|
4745
|
+
|
|
4746
|
+
class GetPoolResponse(TeaModel):
|
|
4747
|
+
def __init__(
|
|
4748
|
+
self,
|
|
4749
|
+
headers: Dict[str, str] = None,
|
|
4750
|
+
status_code: int = None,
|
|
4751
|
+
body: GetPoolResponseBody = None,
|
|
4752
|
+
):
|
|
4753
|
+
self.headers = headers
|
|
4754
|
+
self.status_code = status_code
|
|
4755
|
+
self.body = body
|
|
4756
|
+
|
|
4757
|
+
def validate(self):
|
|
4758
|
+
if self.body:
|
|
4759
|
+
self.body.validate()
|
|
4760
|
+
|
|
4761
|
+
def to_map(self):
|
|
4762
|
+
_map = super().to_map()
|
|
4763
|
+
if _map is not None:
|
|
4764
|
+
return _map
|
|
4765
|
+
|
|
4766
|
+
result = dict()
|
|
4767
|
+
if self.headers is not None:
|
|
4768
|
+
result['headers'] = self.headers
|
|
4769
|
+
if self.status_code is not None:
|
|
4770
|
+
result['statusCode'] = self.status_code
|
|
4771
|
+
if self.body is not None:
|
|
4772
|
+
result['body'] = self.body.to_map()
|
|
4773
|
+
return result
|
|
4774
|
+
|
|
4775
|
+
def from_map(self, m: dict = None):
|
|
4776
|
+
m = m or dict()
|
|
4777
|
+
if m.get('headers') is not None:
|
|
4778
|
+
self.headers = m.get('headers')
|
|
4779
|
+
if m.get('statusCode') is not None:
|
|
4780
|
+
self.status_code = m.get('statusCode')
|
|
4781
|
+
if m.get('body') is not None:
|
|
4782
|
+
temp_model = GetPoolResponseBody()
|
|
4783
|
+
self.body = temp_model.from_map(m['body'])
|
|
4784
|
+
return self
|
|
4785
|
+
|
|
4786
|
+
|
|
4787
|
+
class ListActionPlanActivitiesRequest(TeaModel):
|
|
4788
|
+
def __init__(
|
|
4789
|
+
self,
|
|
4790
|
+
action_plan_id: str = None,
|
|
4791
|
+
max_results: int = None,
|
|
4792
|
+
next_token: str = None,
|
|
4793
|
+
):
|
|
4794
|
+
self.action_plan_id = action_plan_id
|
|
4795
|
+
self.max_results = max_results
|
|
4796
|
+
self.next_token = next_token
|
|
4797
|
+
|
|
4798
|
+
def validate(self):
|
|
4799
|
+
pass
|
|
4800
|
+
|
|
4801
|
+
def to_map(self):
|
|
4802
|
+
_map = super().to_map()
|
|
4803
|
+
if _map is not None:
|
|
4804
|
+
return _map
|
|
4805
|
+
|
|
4806
|
+
result = dict()
|
|
4807
|
+
if self.action_plan_id is not None:
|
|
4808
|
+
result['ActionPlanId'] = self.action_plan_id
|
|
4809
|
+
if self.max_results is not None:
|
|
4810
|
+
result['MaxResults'] = self.max_results
|
|
4811
|
+
if self.next_token is not None:
|
|
4812
|
+
result['NextToken'] = self.next_token
|
|
4813
|
+
return result
|
|
4814
|
+
|
|
4815
|
+
def from_map(self, m: dict = None):
|
|
4816
|
+
m = m or dict()
|
|
4817
|
+
if m.get('ActionPlanId') is not None:
|
|
4818
|
+
self.action_plan_id = m.get('ActionPlanId')
|
|
4819
|
+
if m.get('MaxResults') is not None:
|
|
4820
|
+
self.max_results = m.get('MaxResults')
|
|
4821
|
+
if m.get('NextToken') is not None:
|
|
4822
|
+
self.next_token = m.get('NextToken')
|
|
4823
|
+
return self
|
|
4824
|
+
|
|
4825
|
+
|
|
4826
|
+
class ListActionPlanActivitiesResponseBodyActionPlanActivitiesJobs(TeaModel):
|
|
4827
|
+
def __init__(
|
|
4828
|
+
self,
|
|
4829
|
+
job_id: str = None,
|
|
4830
|
+
job_operation_type: str = None,
|
|
4831
|
+
region_id: str = None,
|
|
4832
|
+
):
|
|
4833
|
+
self.job_id = job_id
|
|
4834
|
+
self.job_operation_type = job_operation_type
|
|
4835
|
+
self.region_id = region_id
|
|
4836
|
+
|
|
4837
|
+
def validate(self):
|
|
4838
|
+
pass
|
|
4839
|
+
|
|
4840
|
+
def to_map(self):
|
|
4841
|
+
_map = super().to_map()
|
|
4842
|
+
if _map is not None:
|
|
4843
|
+
return _map
|
|
4844
|
+
|
|
4845
|
+
result = dict()
|
|
4846
|
+
if self.job_id is not None:
|
|
4847
|
+
result['JobId'] = self.job_id
|
|
4848
|
+
if self.job_operation_type is not None:
|
|
4849
|
+
result['JobOperationType'] = self.job_operation_type
|
|
4850
|
+
if self.region_id is not None:
|
|
4851
|
+
result['RegionId'] = self.region_id
|
|
4852
|
+
return result
|
|
4853
|
+
|
|
4854
|
+
def from_map(self, m: dict = None):
|
|
4855
|
+
m = m or dict()
|
|
4856
|
+
if m.get('JobId') is not None:
|
|
4857
|
+
self.job_id = m.get('JobId')
|
|
4858
|
+
if m.get('JobOperationType') is not None:
|
|
4859
|
+
self.job_operation_type = m.get('JobOperationType')
|
|
4860
|
+
if m.get('RegionId') is not None:
|
|
4861
|
+
self.region_id = m.get('RegionId')
|
|
4862
|
+
return self
|
|
4863
|
+
|
|
4864
|
+
|
|
4865
|
+
class ListActionPlanActivitiesResponseBodyActionPlanActivities(TeaModel):
|
|
4866
|
+
def __init__(
|
|
4867
|
+
self,
|
|
4868
|
+
action_plan_activity_id: str = None,
|
|
4869
|
+
created_capacity: float = None,
|
|
4870
|
+
destroy_capacity: float = None,
|
|
4871
|
+
end_time: str = None,
|
|
4872
|
+
jobs: List[ListActionPlanActivitiesResponseBodyActionPlanActivitiesJobs] = None,
|
|
4873
|
+
start_time: str = None,
|
|
4874
|
+
status: str = None,
|
|
4875
|
+
):
|
|
4876
|
+
self.action_plan_activity_id = action_plan_activity_id
|
|
4877
|
+
self.created_capacity = created_capacity
|
|
4878
|
+
self.destroy_capacity = destroy_capacity
|
|
4879
|
+
self.end_time = end_time
|
|
4880
|
+
self.jobs = jobs
|
|
4881
|
+
self.start_time = start_time
|
|
4882
|
+
self.status = status
|
|
4883
|
+
|
|
4884
|
+
def validate(self):
|
|
4885
|
+
if self.jobs:
|
|
4886
|
+
for k in self.jobs:
|
|
4887
|
+
if k:
|
|
4888
|
+
k.validate()
|
|
4889
|
+
|
|
4890
|
+
def to_map(self):
|
|
4891
|
+
_map = super().to_map()
|
|
4892
|
+
if _map is not None:
|
|
4893
|
+
return _map
|
|
4894
|
+
|
|
4895
|
+
result = dict()
|
|
4896
|
+
if self.action_plan_activity_id is not None:
|
|
4897
|
+
result['ActionPlanActivityId'] = self.action_plan_activity_id
|
|
4898
|
+
if self.created_capacity is not None:
|
|
4899
|
+
result['CreatedCapacity'] = self.created_capacity
|
|
4900
|
+
if self.destroy_capacity is not None:
|
|
4901
|
+
result['DestroyCapacity'] = self.destroy_capacity
|
|
4902
|
+
if self.end_time is not None:
|
|
4903
|
+
result['EndTime'] = self.end_time
|
|
4904
|
+
result['Jobs'] = []
|
|
4905
|
+
if self.jobs is not None:
|
|
4906
|
+
for k in self.jobs:
|
|
4907
|
+
result['Jobs'].append(k.to_map() if k else None)
|
|
3793
4908
|
if self.start_time is not None:
|
|
3794
4909
|
result['StartTime'] = self.start_time
|
|
3795
4910
|
if self.status is not None:
|
|
3796
4911
|
result['Status'] = self.status
|
|
3797
|
-
result['Tasks'] = []
|
|
3798
|
-
if self.tasks is not None:
|
|
3799
|
-
for k in self.tasks:
|
|
3800
|
-
result['Tasks'].append(k.to_map() if k else None)
|
|
3801
4912
|
return result
|
|
3802
4913
|
|
|
3803
4914
|
def from_map(self, m: dict = None):
|
|
3804
4915
|
m = m or dict()
|
|
3805
|
-
if m.get('
|
|
3806
|
-
self.
|
|
3807
|
-
if m.get('
|
|
3808
|
-
self.
|
|
3809
|
-
if m.get('
|
|
3810
|
-
|
|
3811
|
-
self.dependency_policy = temp_model.from_map(m['DependencyPolicy'])
|
|
3812
|
-
if m.get('DeploymentPolicy') is not None:
|
|
3813
|
-
temp_model = GetJobResponseBodyJobInfoDeploymentPolicy()
|
|
3814
|
-
self.deployment_policy = temp_model.from_map(m['DeploymentPolicy'])
|
|
4916
|
+
if m.get('ActionPlanActivityId') is not None:
|
|
4917
|
+
self.action_plan_activity_id = m.get('ActionPlanActivityId')
|
|
4918
|
+
if m.get('CreatedCapacity') is not None:
|
|
4919
|
+
self.created_capacity = m.get('CreatedCapacity')
|
|
4920
|
+
if m.get('DestroyCapacity') is not None:
|
|
4921
|
+
self.destroy_capacity = m.get('DestroyCapacity')
|
|
3815
4922
|
if m.get('EndTime') is not None:
|
|
3816
4923
|
self.end_time = m.get('EndTime')
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
self.job_name = m.get('JobName')
|
|
3823
|
-
if m.get('JobScheduler') is not None:
|
|
3824
|
-
self.job_scheduler = m.get('JobScheduler')
|
|
4924
|
+
self.jobs = []
|
|
4925
|
+
if m.get('Jobs') is not None:
|
|
4926
|
+
for k in m.get('Jobs'):
|
|
4927
|
+
temp_model = ListActionPlanActivitiesResponseBodyActionPlanActivitiesJobs()
|
|
4928
|
+
self.jobs.append(temp_model.from_map(k))
|
|
3825
4929
|
if m.get('StartTime') is not None:
|
|
3826
4930
|
self.start_time = m.get('StartTime')
|
|
3827
4931
|
if m.get('Status') is not None:
|
|
3828
4932
|
self.status = m.get('Status')
|
|
3829
|
-
self.tasks = []
|
|
3830
|
-
if m.get('Tasks') is not None:
|
|
3831
|
-
for k in m.get('Tasks'):
|
|
3832
|
-
temp_model = GetJobResponseBodyJobInfoTasks()
|
|
3833
|
-
self.tasks.append(temp_model.from_map(k))
|
|
3834
4933
|
return self
|
|
3835
4934
|
|
|
3836
4935
|
|
|
3837
|
-
class
|
|
4936
|
+
class ListActionPlanActivitiesResponseBody(TeaModel):
|
|
3838
4937
|
def __init__(
|
|
3839
4938
|
self,
|
|
3840
|
-
|
|
4939
|
+
action_plan_activities: List[ListActionPlanActivitiesResponseBodyActionPlanActivities] = None,
|
|
4940
|
+
max_results: int = None,
|
|
4941
|
+
next_token: str = None,
|
|
3841
4942
|
request_id: str = None,
|
|
4943
|
+
total_count: int = None,
|
|
3842
4944
|
):
|
|
3843
|
-
self.
|
|
4945
|
+
self.action_plan_activities = action_plan_activities
|
|
4946
|
+
self.max_results = max_results
|
|
4947
|
+
# This parameter is required.
|
|
4948
|
+
self.next_token = next_token
|
|
3844
4949
|
self.request_id = request_id
|
|
4950
|
+
self.total_count = total_count
|
|
3845
4951
|
|
|
3846
4952
|
def validate(self):
|
|
3847
|
-
if self.
|
|
3848
|
-
self.
|
|
4953
|
+
if self.action_plan_activities:
|
|
4954
|
+
for k in self.action_plan_activities:
|
|
4955
|
+
if k:
|
|
4956
|
+
k.validate()
|
|
3849
4957
|
|
|
3850
4958
|
def to_map(self):
|
|
3851
4959
|
_map = super().to_map()
|
|
@@ -3853,28 +4961,44 @@ class GetJobResponseBody(TeaModel):
|
|
|
3853
4961
|
return _map
|
|
3854
4962
|
|
|
3855
4963
|
result = dict()
|
|
3856
|
-
|
|
3857
|
-
|
|
4964
|
+
result['ActionPlanActivities'] = []
|
|
4965
|
+
if self.action_plan_activities is not None:
|
|
4966
|
+
for k in self.action_plan_activities:
|
|
4967
|
+
result['ActionPlanActivities'].append(k.to_map() if k else None)
|
|
4968
|
+
if self.max_results is not None:
|
|
4969
|
+
result['MaxResults'] = self.max_results
|
|
4970
|
+
if self.next_token is not None:
|
|
4971
|
+
result['NextToken'] = self.next_token
|
|
3858
4972
|
if self.request_id is not None:
|
|
3859
4973
|
result['RequestId'] = self.request_id
|
|
4974
|
+
if self.total_count is not None:
|
|
4975
|
+
result['TotalCount'] = self.total_count
|
|
3860
4976
|
return result
|
|
3861
4977
|
|
|
3862
4978
|
def from_map(self, m: dict = None):
|
|
3863
4979
|
m = m or dict()
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
4980
|
+
self.action_plan_activities = []
|
|
4981
|
+
if m.get('ActionPlanActivities') is not None:
|
|
4982
|
+
for k in m.get('ActionPlanActivities'):
|
|
4983
|
+
temp_model = ListActionPlanActivitiesResponseBodyActionPlanActivities()
|
|
4984
|
+
self.action_plan_activities.append(temp_model.from_map(k))
|
|
4985
|
+
if m.get('MaxResults') is not None:
|
|
4986
|
+
self.max_results = m.get('MaxResults')
|
|
4987
|
+
if m.get('NextToken') is not None:
|
|
4988
|
+
self.next_token = m.get('NextToken')
|
|
3867
4989
|
if m.get('RequestId') is not None:
|
|
3868
4990
|
self.request_id = m.get('RequestId')
|
|
4991
|
+
if m.get('TotalCount') is not None:
|
|
4992
|
+
self.total_count = m.get('TotalCount')
|
|
3869
4993
|
return self
|
|
3870
4994
|
|
|
3871
4995
|
|
|
3872
|
-
class
|
|
4996
|
+
class ListActionPlanActivitiesResponse(TeaModel):
|
|
3873
4997
|
def __init__(
|
|
3874
4998
|
self,
|
|
3875
4999
|
headers: Dict[str, str] = None,
|
|
3876
5000
|
status_code: int = None,
|
|
3877
|
-
body:
|
|
5001
|
+
body: ListActionPlanActivitiesResponseBody = None,
|
|
3878
5002
|
):
|
|
3879
5003
|
self.headers = headers
|
|
3880
5004
|
self.status_code = status_code
|
|
@@ -3905,18 +5029,21 @@ class GetJobResponse(TeaModel):
|
|
|
3905
5029
|
if m.get('statusCode') is not None:
|
|
3906
5030
|
self.status_code = m.get('statusCode')
|
|
3907
5031
|
if m.get('body') is not None:
|
|
3908
|
-
temp_model =
|
|
5032
|
+
temp_model = ListActionPlanActivitiesResponseBody()
|
|
3909
5033
|
self.body = temp_model.from_map(m['body'])
|
|
3910
5034
|
return self
|
|
3911
5035
|
|
|
3912
5036
|
|
|
3913
|
-
class
|
|
5037
|
+
class ListActionPlansRequest(TeaModel):
|
|
3914
5038
|
def __init__(
|
|
3915
5039
|
self,
|
|
3916
|
-
|
|
5040
|
+
action_plan_ids: List[str] = None,
|
|
5041
|
+
max_results: int = None,
|
|
5042
|
+
next_token: str = None,
|
|
3917
5043
|
):
|
|
3918
|
-
|
|
3919
|
-
self.
|
|
5044
|
+
self.action_plan_ids = action_plan_ids
|
|
5045
|
+
self.max_results = max_results
|
|
5046
|
+
self.next_token = next_token
|
|
3920
5047
|
|
|
3921
5048
|
def validate(self):
|
|
3922
5049
|
pass
|
|
@@ -3927,37 +5054,76 @@ class GetPoolRequest(TeaModel):
|
|
|
3927
5054
|
return _map
|
|
3928
5055
|
|
|
3929
5056
|
result = dict()
|
|
3930
|
-
if self.
|
|
3931
|
-
result['
|
|
5057
|
+
if self.action_plan_ids is not None:
|
|
5058
|
+
result['ActionPlanIds'] = self.action_plan_ids
|
|
5059
|
+
if self.max_results is not None:
|
|
5060
|
+
result['MaxResults'] = self.max_results
|
|
5061
|
+
if self.next_token is not None:
|
|
5062
|
+
result['NextToken'] = self.next_token
|
|
3932
5063
|
return result
|
|
3933
5064
|
|
|
3934
5065
|
def from_map(self, m: dict = None):
|
|
3935
5066
|
m = m or dict()
|
|
3936
|
-
if m.get('
|
|
3937
|
-
self.
|
|
5067
|
+
if m.get('ActionPlanIds') is not None:
|
|
5068
|
+
self.action_plan_ids = m.get('ActionPlanIds')
|
|
5069
|
+
if m.get('MaxResults') is not None:
|
|
5070
|
+
self.max_results = m.get('MaxResults')
|
|
5071
|
+
if m.get('NextToken') is not None:
|
|
5072
|
+
self.next_token = m.get('NextToken')
|
|
3938
5073
|
return self
|
|
3939
5074
|
|
|
3940
5075
|
|
|
3941
|
-
class
|
|
5076
|
+
class ListActionPlansShrinkRequest(TeaModel):
|
|
5077
|
+
def __init__(
|
|
5078
|
+
self,
|
|
5079
|
+
action_plan_ids_shrink: str = None,
|
|
5080
|
+
max_results: int = None,
|
|
5081
|
+
next_token: str = None,
|
|
5082
|
+
):
|
|
5083
|
+
self.action_plan_ids_shrink = action_plan_ids_shrink
|
|
5084
|
+
self.max_results = max_results
|
|
5085
|
+
self.next_token = next_token
|
|
5086
|
+
|
|
5087
|
+
def validate(self):
|
|
5088
|
+
pass
|
|
5089
|
+
|
|
5090
|
+
def to_map(self):
|
|
5091
|
+
_map = super().to_map()
|
|
5092
|
+
if _map is not None:
|
|
5093
|
+
return _map
|
|
5094
|
+
|
|
5095
|
+
result = dict()
|
|
5096
|
+
if self.action_plan_ids_shrink is not None:
|
|
5097
|
+
result['ActionPlanIds'] = self.action_plan_ids_shrink
|
|
5098
|
+
if self.max_results is not None:
|
|
5099
|
+
result['MaxResults'] = self.max_results
|
|
5100
|
+
if self.next_token is not None:
|
|
5101
|
+
result['NextToken'] = self.next_token
|
|
5102
|
+
return result
|
|
5103
|
+
|
|
5104
|
+
def from_map(self, m: dict = None):
|
|
5105
|
+
m = m or dict()
|
|
5106
|
+
if m.get('ActionPlanIds') is not None:
|
|
5107
|
+
self.action_plan_ids_shrink = m.get('ActionPlanIds')
|
|
5108
|
+
if m.get('MaxResults') is not None:
|
|
5109
|
+
self.max_results = m.get('MaxResults')
|
|
5110
|
+
if m.get('NextToken') is not None:
|
|
5111
|
+
self.next_token = m.get('NextToken')
|
|
5112
|
+
return self
|
|
5113
|
+
|
|
5114
|
+
|
|
5115
|
+
class ListActionPlansResponseBodyActionPlans(TeaModel):
|
|
3942
5116
|
def __init__(
|
|
3943
5117
|
self,
|
|
5118
|
+
action_plan_id: str = None,
|
|
5119
|
+
action_plan_name: str = None,
|
|
3944
5120
|
create_time: str = None,
|
|
3945
|
-
exector_usage: int = None,
|
|
3946
|
-
is_default: bool = None,
|
|
3947
|
-
max_exector_num: int = None,
|
|
3948
|
-
pool_name: str = None,
|
|
3949
|
-
priority: int = None,
|
|
3950
|
-
reason: str = None,
|
|
3951
5121
|
status: str = None,
|
|
3952
5122
|
update_time: str = None,
|
|
3953
5123
|
):
|
|
5124
|
+
self.action_plan_id = action_plan_id
|
|
5125
|
+
self.action_plan_name = action_plan_name
|
|
3954
5126
|
self.create_time = create_time
|
|
3955
|
-
self.exector_usage = exector_usage
|
|
3956
|
-
self.is_default = is_default
|
|
3957
|
-
self.max_exector_num = max_exector_num
|
|
3958
|
-
self.pool_name = pool_name
|
|
3959
|
-
self.priority = priority
|
|
3960
|
-
self.reason = reason
|
|
3961
5127
|
self.status = status
|
|
3962
5128
|
self.update_time = update_time
|
|
3963
5129
|
|
|
@@ -3970,20 +5136,12 @@ class GetPoolResponseBodyPoolInfo(TeaModel):
|
|
|
3970
5136
|
return _map
|
|
3971
5137
|
|
|
3972
5138
|
result = dict()
|
|
5139
|
+
if self.action_plan_id is not None:
|
|
5140
|
+
result['ActionPlanId'] = self.action_plan_id
|
|
5141
|
+
if self.action_plan_name is not None:
|
|
5142
|
+
result['ActionPlanName'] = self.action_plan_name
|
|
3973
5143
|
if self.create_time is not None:
|
|
3974
5144
|
result['CreateTime'] = self.create_time
|
|
3975
|
-
if self.exector_usage is not None:
|
|
3976
|
-
result['ExectorUsage'] = self.exector_usage
|
|
3977
|
-
if self.is_default is not None:
|
|
3978
|
-
result['IsDefault'] = self.is_default
|
|
3979
|
-
if self.max_exector_num is not None:
|
|
3980
|
-
result['MaxExectorNum'] = self.max_exector_num
|
|
3981
|
-
if self.pool_name is not None:
|
|
3982
|
-
result['PoolName'] = self.pool_name
|
|
3983
|
-
if self.priority is not None:
|
|
3984
|
-
result['Priority'] = self.priority
|
|
3985
|
-
if self.reason is not None:
|
|
3986
|
-
result['Reason'] = self.reason
|
|
3987
5145
|
if self.status is not None:
|
|
3988
5146
|
result['Status'] = self.status
|
|
3989
5147
|
if self.update_time is not None:
|
|
@@ -3992,20 +5150,12 @@ class GetPoolResponseBodyPoolInfo(TeaModel):
|
|
|
3992
5150
|
|
|
3993
5151
|
def from_map(self, m: dict = None):
|
|
3994
5152
|
m = m or dict()
|
|
5153
|
+
if m.get('ActionPlanId') is not None:
|
|
5154
|
+
self.action_plan_id = m.get('ActionPlanId')
|
|
5155
|
+
if m.get('ActionPlanName') is not None:
|
|
5156
|
+
self.action_plan_name = m.get('ActionPlanName')
|
|
3995
5157
|
if m.get('CreateTime') is not None:
|
|
3996
5158
|
self.create_time = m.get('CreateTime')
|
|
3997
|
-
if m.get('ExectorUsage') is not None:
|
|
3998
|
-
self.exector_usage = m.get('ExectorUsage')
|
|
3999
|
-
if m.get('IsDefault') is not None:
|
|
4000
|
-
self.is_default = m.get('IsDefault')
|
|
4001
|
-
if m.get('MaxExectorNum') is not None:
|
|
4002
|
-
self.max_exector_num = m.get('MaxExectorNum')
|
|
4003
|
-
if m.get('PoolName') is not None:
|
|
4004
|
-
self.pool_name = m.get('PoolName')
|
|
4005
|
-
if m.get('Priority') is not None:
|
|
4006
|
-
self.priority = m.get('Priority')
|
|
4007
|
-
if m.get('Reason') is not None:
|
|
4008
|
-
self.reason = m.get('Reason')
|
|
4009
5159
|
if m.get('Status') is not None:
|
|
4010
5160
|
self.status = m.get('Status')
|
|
4011
5161
|
if m.get('UpdateTime') is not None:
|
|
@@ -4013,19 +5163,27 @@ class GetPoolResponseBodyPoolInfo(TeaModel):
|
|
|
4013
5163
|
return self
|
|
4014
5164
|
|
|
4015
5165
|
|
|
4016
|
-
class
|
|
5166
|
+
class ListActionPlansResponseBody(TeaModel):
|
|
4017
5167
|
def __init__(
|
|
4018
5168
|
self,
|
|
4019
|
-
|
|
5169
|
+
action_plans: List[ListActionPlansResponseBodyActionPlans] = None,
|
|
5170
|
+
max_results: int = None,
|
|
5171
|
+
next_token: str = None,
|
|
4020
5172
|
request_id: str = None,
|
|
5173
|
+
total_count: int = None,
|
|
4021
5174
|
):
|
|
4022
|
-
self.
|
|
4023
|
-
|
|
5175
|
+
self.action_plans = action_plans
|
|
5176
|
+
self.max_results = max_results
|
|
5177
|
+
# This parameter is required.
|
|
5178
|
+
self.next_token = next_token
|
|
4024
5179
|
self.request_id = request_id
|
|
5180
|
+
self.total_count = total_count
|
|
4025
5181
|
|
|
4026
5182
|
def validate(self):
|
|
4027
|
-
if self.
|
|
4028
|
-
self.
|
|
5183
|
+
if self.action_plans:
|
|
5184
|
+
for k in self.action_plans:
|
|
5185
|
+
if k:
|
|
5186
|
+
k.validate()
|
|
4029
5187
|
|
|
4030
5188
|
def to_map(self):
|
|
4031
5189
|
_map = super().to_map()
|
|
@@ -4033,28 +5191,44 @@ class GetPoolResponseBody(TeaModel):
|
|
|
4033
5191
|
return _map
|
|
4034
5192
|
|
|
4035
5193
|
result = dict()
|
|
4036
|
-
|
|
4037
|
-
|
|
5194
|
+
result['ActionPlans'] = []
|
|
5195
|
+
if self.action_plans is not None:
|
|
5196
|
+
for k in self.action_plans:
|
|
5197
|
+
result['ActionPlans'].append(k.to_map() if k else None)
|
|
5198
|
+
if self.max_results is not None:
|
|
5199
|
+
result['MaxResults'] = self.max_results
|
|
5200
|
+
if self.next_token is not None:
|
|
5201
|
+
result['NextToken'] = self.next_token
|
|
4038
5202
|
if self.request_id is not None:
|
|
4039
5203
|
result['RequestId'] = self.request_id
|
|
5204
|
+
if self.total_count is not None:
|
|
5205
|
+
result['TotalCount'] = self.total_count
|
|
4040
5206
|
return result
|
|
4041
5207
|
|
|
4042
5208
|
def from_map(self, m: dict = None):
|
|
4043
5209
|
m = m or dict()
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
5210
|
+
self.action_plans = []
|
|
5211
|
+
if m.get('ActionPlans') is not None:
|
|
5212
|
+
for k in m.get('ActionPlans'):
|
|
5213
|
+
temp_model = ListActionPlansResponseBodyActionPlans()
|
|
5214
|
+
self.action_plans.append(temp_model.from_map(k))
|
|
5215
|
+
if m.get('MaxResults') is not None:
|
|
5216
|
+
self.max_results = m.get('MaxResults')
|
|
5217
|
+
if m.get('NextToken') is not None:
|
|
5218
|
+
self.next_token = m.get('NextToken')
|
|
4047
5219
|
if m.get('RequestId') is not None:
|
|
4048
5220
|
self.request_id = m.get('RequestId')
|
|
5221
|
+
if m.get('TotalCount') is not None:
|
|
5222
|
+
self.total_count = m.get('TotalCount')
|
|
4049
5223
|
return self
|
|
4050
5224
|
|
|
4051
5225
|
|
|
4052
|
-
class
|
|
5226
|
+
class ListActionPlansResponse(TeaModel):
|
|
4053
5227
|
def __init__(
|
|
4054
5228
|
self,
|
|
4055
5229
|
headers: Dict[str, str] = None,
|
|
4056
5230
|
status_code: int = None,
|
|
4057
|
-
body:
|
|
5231
|
+
body: ListActionPlansResponseBody = None,
|
|
4058
5232
|
):
|
|
4059
5233
|
self.headers = headers
|
|
4060
5234
|
self.status_code = status_code
|
|
@@ -4085,7 +5259,7 @@ class GetPoolResponse(TeaModel):
|
|
|
4085
5259
|
if m.get('statusCode') is not None:
|
|
4086
5260
|
self.status_code = m.get('statusCode')
|
|
4087
5261
|
if m.get('body') is not None:
|
|
4088
|
-
temp_model =
|
|
5262
|
+
temp_model = ListActionPlansResponseBody()
|
|
4089
5263
|
self.body = temp_model.from_map(m['body'])
|
|
4090
5264
|
return self
|
|
4091
5265
|
|
|
@@ -6805,6 +7979,113 @@ class UnTagResourcesResponse(TeaModel):
|
|
|
6805
7979
|
return self
|
|
6806
7980
|
|
|
6807
7981
|
|
|
7982
|
+
class UpdateActionPlanRequest(TeaModel):
|
|
7983
|
+
def __init__(
|
|
7984
|
+
self,
|
|
7985
|
+
action_plan_id: str = None,
|
|
7986
|
+
desired_capacity: float = None,
|
|
7987
|
+
enabled: str = None,
|
|
7988
|
+
):
|
|
7989
|
+
self.action_plan_id = action_plan_id
|
|
7990
|
+
self.desired_capacity = desired_capacity
|
|
7991
|
+
self.enabled = enabled
|
|
7992
|
+
|
|
7993
|
+
def validate(self):
|
|
7994
|
+
pass
|
|
7995
|
+
|
|
7996
|
+
def to_map(self):
|
|
7997
|
+
_map = super().to_map()
|
|
7998
|
+
if _map is not None:
|
|
7999
|
+
return _map
|
|
8000
|
+
|
|
8001
|
+
result = dict()
|
|
8002
|
+
if self.action_plan_id is not None:
|
|
8003
|
+
result['ActionPlanId'] = self.action_plan_id
|
|
8004
|
+
if self.desired_capacity is not None:
|
|
8005
|
+
result['DesiredCapacity'] = self.desired_capacity
|
|
8006
|
+
if self.enabled is not None:
|
|
8007
|
+
result['Enabled'] = self.enabled
|
|
8008
|
+
return result
|
|
8009
|
+
|
|
8010
|
+
def from_map(self, m: dict = None):
|
|
8011
|
+
m = m or dict()
|
|
8012
|
+
if m.get('ActionPlanId') is not None:
|
|
8013
|
+
self.action_plan_id = m.get('ActionPlanId')
|
|
8014
|
+
if m.get('DesiredCapacity') is not None:
|
|
8015
|
+
self.desired_capacity = m.get('DesiredCapacity')
|
|
8016
|
+
if m.get('Enabled') is not None:
|
|
8017
|
+
self.enabled = m.get('Enabled')
|
|
8018
|
+
return self
|
|
8019
|
+
|
|
8020
|
+
|
|
8021
|
+
class UpdateActionPlanResponseBody(TeaModel):
|
|
8022
|
+
def __init__(
|
|
8023
|
+
self,
|
|
8024
|
+
request_id: str = None,
|
|
8025
|
+
):
|
|
8026
|
+
self.request_id = request_id
|
|
8027
|
+
|
|
8028
|
+
def validate(self):
|
|
8029
|
+
pass
|
|
8030
|
+
|
|
8031
|
+
def to_map(self):
|
|
8032
|
+
_map = super().to_map()
|
|
8033
|
+
if _map is not None:
|
|
8034
|
+
return _map
|
|
8035
|
+
|
|
8036
|
+
result = dict()
|
|
8037
|
+
if self.request_id is not None:
|
|
8038
|
+
result['RequestId'] = self.request_id
|
|
8039
|
+
return result
|
|
8040
|
+
|
|
8041
|
+
def from_map(self, m: dict = None):
|
|
8042
|
+
m = m or dict()
|
|
8043
|
+
if m.get('RequestId') is not None:
|
|
8044
|
+
self.request_id = m.get('RequestId')
|
|
8045
|
+
return self
|
|
8046
|
+
|
|
8047
|
+
|
|
8048
|
+
class UpdateActionPlanResponse(TeaModel):
|
|
8049
|
+
def __init__(
|
|
8050
|
+
self,
|
|
8051
|
+
headers: Dict[str, str] = None,
|
|
8052
|
+
status_code: int = None,
|
|
8053
|
+
body: UpdateActionPlanResponseBody = None,
|
|
8054
|
+
):
|
|
8055
|
+
self.headers = headers
|
|
8056
|
+
self.status_code = status_code
|
|
8057
|
+
self.body = body
|
|
8058
|
+
|
|
8059
|
+
def validate(self):
|
|
8060
|
+
if self.body:
|
|
8061
|
+
self.body.validate()
|
|
8062
|
+
|
|
8063
|
+
def to_map(self):
|
|
8064
|
+
_map = super().to_map()
|
|
8065
|
+
if _map is not None:
|
|
8066
|
+
return _map
|
|
8067
|
+
|
|
8068
|
+
result = dict()
|
|
8069
|
+
if self.headers is not None:
|
|
8070
|
+
result['headers'] = self.headers
|
|
8071
|
+
if self.status_code is not None:
|
|
8072
|
+
result['statusCode'] = self.status_code
|
|
8073
|
+
if self.body is not None:
|
|
8074
|
+
result['body'] = self.body.to_map()
|
|
8075
|
+
return result
|
|
8076
|
+
|
|
8077
|
+
def from_map(self, m: dict = None):
|
|
8078
|
+
m = m or dict()
|
|
8079
|
+
if m.get('headers') is not None:
|
|
8080
|
+
self.headers = m.get('headers')
|
|
8081
|
+
if m.get('statusCode') is not None:
|
|
8082
|
+
self.status_code = m.get('statusCode')
|
|
8083
|
+
if m.get('body') is not None:
|
|
8084
|
+
temp_model = UpdateActionPlanResponseBody()
|
|
8085
|
+
self.body = temp_model.from_map(m['body'])
|
|
8086
|
+
return self
|
|
8087
|
+
|
|
8088
|
+
|
|
6808
8089
|
class UpdatePoolRequestResourceLimits(TeaModel):
|
|
6809
8090
|
def __init__(
|
|
6810
8091
|
self,
|