@alicloud/ehpcinstant20230701 1.0.4 → 1.1.0

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.
package/src/client.ts CHANGED
@@ -10,6 +10,7 @@ import * as $tea from '@alicloud/tea-typescript';
10
10
  export class AddImageRequest extends $tea.Model {
11
11
  containerImageSpec?: AddImageRequestContainerImageSpec;
12
12
  description?: string;
13
+ imageType?: string;
13
14
  /**
14
15
  * @example
15
16
  * V1.0
@@ -28,6 +29,7 @@ export class AddImageRequest extends $tea.Model {
28
29
  return {
29
30
  containerImageSpec: 'ContainerImageSpec',
30
31
  description: 'Description',
32
+ imageType: 'ImageType',
31
33
  imageVersion: 'ImageVersion',
32
34
  name: 'Name',
33
35
  VMImageSpec: 'VMImageSpec',
@@ -38,6 +40,7 @@ export class AddImageRequest extends $tea.Model {
38
40
  return {
39
41
  containerImageSpec: AddImageRequestContainerImageSpec,
40
42
  description: 'string',
43
+ imageType: 'string',
41
44
  imageVersion: 'string',
42
45
  name: 'string',
43
46
  VMImageSpec: AddImageRequestVMImageSpec,
@@ -52,6 +55,7 @@ export class AddImageRequest extends $tea.Model {
52
55
  export class AddImageShrinkRequest extends $tea.Model {
53
56
  containerImageSpecShrink?: string;
54
57
  description?: string;
58
+ imageType?: string;
55
59
  /**
56
60
  * @example
57
61
  * V1.0
@@ -70,6 +74,7 @@ export class AddImageShrinkRequest extends $tea.Model {
70
74
  return {
71
75
  containerImageSpecShrink: 'ContainerImageSpec',
72
76
  description: 'Description',
77
+ imageType: 'ImageType',
73
78
  imageVersion: 'ImageVersion',
74
79
  name: 'Name',
75
80
  VMImageSpecShrink: 'VMImageSpec',
@@ -80,6 +85,7 @@ export class AddImageShrinkRequest extends $tea.Model {
80
85
  return {
81
86
  containerImageSpecShrink: 'string',
82
87
  description: 'string',
88
+ imageType: 'string',
83
89
  imageVersion: 'string',
84
90
  name: 'string',
85
91
  VMImageSpecShrink: 'string',
@@ -1403,6 +1409,110 @@ export class ListJobsResponse extends $tea.Model {
1403
1409
  }
1404
1410
  }
1405
1411
 
1412
+ export class ListTagResourcesRequest extends $tea.Model {
1413
+ /**
1414
+ * @example
1415
+ * 20
1416
+ */
1417
+ maxResult?: number;
1418
+ /**
1419
+ * @example
1420
+ * 1d2db86scXXXXXXXXXX
1421
+ */
1422
+ nextToken?: string;
1423
+ resourceId?: string[];
1424
+ /**
1425
+ * @remarks
1426
+ * This parameter is required.
1427
+ *
1428
+ * @example
1429
+ * Job
1430
+ */
1431
+ resourceType?: string;
1432
+ tag?: ListTagResourcesRequestTag[];
1433
+ static names(): { [key: string]: string } {
1434
+ return {
1435
+ maxResult: 'MaxResult',
1436
+ nextToken: 'NextToken',
1437
+ resourceId: 'ResourceId',
1438
+ resourceType: 'ResourceType',
1439
+ tag: 'Tag',
1440
+ };
1441
+ }
1442
+
1443
+ static types(): { [key: string]: any } {
1444
+ return {
1445
+ maxResult: 'number',
1446
+ nextToken: 'string',
1447
+ resourceId: { 'type': 'array', 'itemType': 'string' },
1448
+ resourceType: 'string',
1449
+ tag: { 'type': 'array', 'itemType': ListTagResourcesRequestTag },
1450
+ };
1451
+ }
1452
+
1453
+ constructor(map?: { [key: string]: any }) {
1454
+ super(map);
1455
+ }
1456
+ }
1457
+
1458
+ export class ListTagResourcesResponseBody extends $tea.Model {
1459
+ /**
1460
+ * @example
1461
+ * 1d2db86scXXXXXXXXXX
1462
+ */
1463
+ nextToken?: string;
1464
+ /**
1465
+ * @example
1466
+ * 04F0F334-1335-436C-A1D7-6C044FE7****
1467
+ */
1468
+ requestId?: string;
1469
+ tagResources?: ListTagResourcesResponseBodyTagResources;
1470
+ static names(): { [key: string]: string } {
1471
+ return {
1472
+ nextToken: 'NextToken',
1473
+ requestId: 'RequestId',
1474
+ tagResources: 'TagResources',
1475
+ };
1476
+ }
1477
+
1478
+ static types(): { [key: string]: any } {
1479
+ return {
1480
+ nextToken: 'string',
1481
+ requestId: 'string',
1482
+ tagResources: ListTagResourcesResponseBodyTagResources,
1483
+ };
1484
+ }
1485
+
1486
+ constructor(map?: { [key: string]: any }) {
1487
+ super(map);
1488
+ }
1489
+ }
1490
+
1491
+ export class ListTagResourcesResponse extends $tea.Model {
1492
+ headers?: { [key: string]: string };
1493
+ statusCode?: number;
1494
+ body?: ListTagResourcesResponseBody;
1495
+ static names(): { [key: string]: string } {
1496
+ return {
1497
+ headers: 'headers',
1498
+ statusCode: 'statusCode',
1499
+ body: 'body',
1500
+ };
1501
+ }
1502
+
1503
+ static types(): { [key: string]: any } {
1504
+ return {
1505
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1506
+ statusCode: 'number',
1507
+ body: ListTagResourcesResponseBody,
1508
+ };
1509
+ }
1510
+
1511
+ constructor(map?: { [key: string]: any }) {
1512
+ super(map);
1513
+ }
1514
+ }
1515
+
1406
1516
  export class RemoveImageRequest extends $tea.Model {
1407
1517
  /**
1408
1518
  * @remarks
@@ -1412,15 +1522,18 @@ export class RemoveImageRequest extends $tea.Model {
1412
1522
  * m-bp14wakr1rkxtb******
1413
1523
  */
1414
1524
  imageId?: string;
1525
+ imageType?: string;
1415
1526
  static names(): { [key: string]: string } {
1416
1527
  return {
1417
1528
  imageId: 'ImageId',
1529
+ imageType: 'ImageType',
1418
1530
  };
1419
1531
  }
1420
1532
 
1421
1533
  static types(): { [key: string]: any } {
1422
1534
  return {
1423
1535
  imageId: 'string',
1536
+ imageType: 'string',
1424
1537
  };
1425
1538
  }
1426
1539
 
@@ -1484,6 +1597,185 @@ export class RemoveImageResponse extends $tea.Model {
1484
1597
  }
1485
1598
  }
1486
1599
 
1600
+ export class TagResourcesRequest extends $tea.Model {
1601
+ /**
1602
+ * @remarks
1603
+ * This parameter is required.
1604
+ */
1605
+ resourceId?: string[];
1606
+ /**
1607
+ * @remarks
1608
+ * This parameter is required.
1609
+ *
1610
+ * @example
1611
+ * Job
1612
+ */
1613
+ resourceType?: string;
1614
+ /**
1615
+ * @remarks
1616
+ * This parameter is required.
1617
+ */
1618
+ tag?: TagResourcesRequestTag[];
1619
+ static names(): { [key: string]: string } {
1620
+ return {
1621
+ resourceId: 'ResourceId',
1622
+ resourceType: 'ResourceType',
1623
+ tag: 'Tag',
1624
+ };
1625
+ }
1626
+
1627
+ static types(): { [key: string]: any } {
1628
+ return {
1629
+ resourceId: { 'type': 'array', 'itemType': 'string' },
1630
+ resourceType: 'string',
1631
+ tag: { 'type': 'array', 'itemType': TagResourcesRequestTag },
1632
+ };
1633
+ }
1634
+
1635
+ constructor(map?: { [key: string]: any }) {
1636
+ super(map);
1637
+ }
1638
+ }
1639
+
1640
+ export class TagResourcesResponseBody extends $tea.Model {
1641
+ /**
1642
+ * @example
1643
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
1644
+ */
1645
+ requestId?: string;
1646
+ static names(): { [key: string]: string } {
1647
+ return {
1648
+ requestId: 'RequestId',
1649
+ };
1650
+ }
1651
+
1652
+ static types(): { [key: string]: any } {
1653
+ return {
1654
+ requestId: 'string',
1655
+ };
1656
+ }
1657
+
1658
+ constructor(map?: { [key: string]: any }) {
1659
+ super(map);
1660
+ }
1661
+ }
1662
+
1663
+ export class TagResourcesResponse extends $tea.Model {
1664
+ headers?: { [key: string]: string };
1665
+ statusCode?: number;
1666
+ body?: TagResourcesResponseBody;
1667
+ static names(): { [key: string]: string } {
1668
+ return {
1669
+ headers: 'headers',
1670
+ statusCode: 'statusCode',
1671
+ body: 'body',
1672
+ };
1673
+ }
1674
+
1675
+ static types(): { [key: string]: any } {
1676
+ return {
1677
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1678
+ statusCode: 'number',
1679
+ body: TagResourcesResponseBody,
1680
+ };
1681
+ }
1682
+
1683
+ constructor(map?: { [key: string]: any }) {
1684
+ super(map);
1685
+ }
1686
+ }
1687
+
1688
+ export class UnTagResourcesRequest extends $tea.Model {
1689
+ /**
1690
+ * @example
1691
+ * False
1692
+ */
1693
+ all?: boolean;
1694
+ /**
1695
+ * @remarks
1696
+ * This parameter is required.
1697
+ */
1698
+ resourceId?: string[];
1699
+ /**
1700
+ * @remarks
1701
+ * This parameter is required.
1702
+ *
1703
+ * @example
1704
+ * Job
1705
+ */
1706
+ resourceType?: string;
1707
+ tagKey?: string[];
1708
+ static names(): { [key: string]: string } {
1709
+ return {
1710
+ all: 'All',
1711
+ resourceId: 'ResourceId',
1712
+ resourceType: 'ResourceType',
1713
+ tagKey: 'TagKey',
1714
+ };
1715
+ }
1716
+
1717
+ static types(): { [key: string]: any } {
1718
+ return {
1719
+ all: 'boolean',
1720
+ resourceId: { 'type': 'array', 'itemType': 'string' },
1721
+ resourceType: 'string',
1722
+ tagKey: { 'type': 'array', 'itemType': 'string' },
1723
+ };
1724
+ }
1725
+
1726
+ constructor(map?: { [key: string]: any }) {
1727
+ super(map);
1728
+ }
1729
+ }
1730
+
1731
+ export class UnTagResourcesResponseBody extends $tea.Model {
1732
+ /**
1733
+ * @example
1734
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
1735
+ */
1736
+ requestId?: string;
1737
+ static names(): { [key: string]: string } {
1738
+ return {
1739
+ requestId: 'RequestId',
1740
+ };
1741
+ }
1742
+
1743
+ static types(): { [key: string]: any } {
1744
+ return {
1745
+ requestId: 'string',
1746
+ };
1747
+ }
1748
+
1749
+ constructor(map?: { [key: string]: any }) {
1750
+ super(map);
1751
+ }
1752
+ }
1753
+
1754
+ export class UnTagResourcesResponse extends $tea.Model {
1755
+ headers?: { [key: string]: string };
1756
+ statusCode?: number;
1757
+ body?: UnTagResourcesResponseBody;
1758
+ static names(): { [key: string]: string } {
1759
+ return {
1760
+ headers: 'headers',
1761
+ statusCode: 'statusCode',
1762
+ body: 'body',
1763
+ };
1764
+ }
1765
+
1766
+ static types(): { [key: string]: any } {
1767
+ return {
1768
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1769
+ statusCode: 'number',
1770
+ body: UnTagResourcesResponseBody,
1771
+ };
1772
+ }
1773
+
1774
+ constructor(map?: { [key: string]: any }) {
1775
+ super(map);
1776
+ }
1777
+ }
1778
+
1487
1779
  export class AddImageRequestContainerImageSpecRegistryCredential extends $tea.Model {
1488
1780
  /**
1489
1781
  * @example
@@ -1592,15 +1884,18 @@ export class AddImageRequestVMImageSpec extends $tea.Model {
1592
1884
  }
1593
1885
 
1594
1886
  export class CreateJobRequestDeploymentPolicyNetwork extends $tea.Model {
1887
+ enableExternalIpAddress?: boolean;
1595
1888
  vswitch?: string[];
1596
1889
  static names(): { [key: string]: string } {
1597
1890
  return {
1891
+ enableExternalIpAddress: 'EnableExternalIpAddress',
1598
1892
  vswitch: 'Vswitch',
1599
1893
  };
1600
1894
  }
1601
1895
 
1602
1896
  static types(): { [key: string]: any } {
1603
1897
  return {
1898
+ enableExternalIpAddress: 'boolean',
1604
1899
  vswitch: { 'type': 'array', 'itemType': 'string' },
1605
1900
  };
1606
1901
  }
@@ -1610,6 +1905,32 @@ export class CreateJobRequestDeploymentPolicyNetwork extends $tea.Model {
1610
1905
  }
1611
1906
  }
1612
1907
 
1908
+ export class CreateJobRequestDeploymentPolicyTag extends $tea.Model {
1909
+ /**
1910
+ * @remarks
1911
+ * This parameter is required.
1912
+ */
1913
+ key?: string;
1914
+ value?: string;
1915
+ static names(): { [key: string]: string } {
1916
+ return {
1917
+ key: 'Key',
1918
+ value: 'Value',
1919
+ };
1920
+ }
1921
+
1922
+ static types(): { [key: string]: any } {
1923
+ return {
1924
+ key: 'string',
1925
+ value: 'string',
1926
+ };
1927
+ }
1928
+
1929
+ constructor(map?: { [key: string]: any }) {
1930
+ super(map);
1931
+ }
1932
+ }
1933
+
1613
1934
  export class CreateJobRequestDeploymentPolicy extends $tea.Model {
1614
1935
  /**
1615
1936
  * @example
@@ -1617,10 +1938,12 @@ export class CreateJobRequestDeploymentPolicy extends $tea.Model {
1617
1938
  */
1618
1939
  allocationSpec?: string;
1619
1940
  network?: CreateJobRequestDeploymentPolicyNetwork;
1941
+ tag?: CreateJobRequestDeploymentPolicyTag[];
1620
1942
  static names(): { [key: string]: string } {
1621
1943
  return {
1622
1944
  allocationSpec: 'AllocationSpec',
1623
1945
  network: 'Network',
1946
+ tag: 'Tag',
1624
1947
  };
1625
1948
  }
1626
1949
 
@@ -1628,6 +1951,7 @@ export class CreateJobRequestDeploymentPolicy extends $tea.Model {
1628
1951
  return {
1629
1952
  allocationSpec: 'string',
1630
1953
  network: CreateJobRequestDeploymentPolicyNetwork,
1954
+ tag: { 'type': 'array', 'itemType': CreateJobRequestDeploymentPolicyTag },
1631
1955
  };
1632
1956
  }
1633
1957
 
@@ -2303,15 +2627,18 @@ export class GetImageResponseBodyImage extends $tea.Model {
2303
2627
  }
2304
2628
 
2305
2629
  export class GetJobResponseBodyJobInfoDeploymentPolicyNetwork extends $tea.Model {
2630
+ enableExternalIpAddress?: boolean;
2306
2631
  vswitch?: string[];
2307
2632
  static names(): { [key: string]: string } {
2308
2633
  return {
2634
+ enableExternalIpAddress: 'EnableExternalIpAddress',
2309
2635
  vswitch: 'Vswitch',
2310
2636
  };
2311
2637
  }
2312
2638
 
2313
2639
  static types(): { [key: string]: any } {
2314
2640
  return {
2641
+ enableExternalIpAddress: 'boolean',
2315
2642
  vswitch: { 'type': 'array', 'itemType': 'string' },
2316
2643
  };
2317
2644
  }
@@ -2730,6 +3057,7 @@ export class ListExecutorsRequestFilter extends $tea.Model {
2730
3057
  * testJob
2731
3058
  */
2732
3059
  jobName?: string;
3060
+ status?: string[];
2733
3061
  /**
2734
3062
  * @example
2735
3063
  * 1703819914
@@ -2745,6 +3073,7 @@ export class ListExecutorsRequestFilter extends $tea.Model {
2745
3073
  executorIds: 'ExecutorIds',
2746
3074
  ipAddresses: 'IpAddresses',
2747
3075
  jobName: 'JobName',
3076
+ status: 'Status',
2748
3077
  timeCreatedAfter: 'TimeCreatedAfter',
2749
3078
  timeCreatedBefore: 'TimeCreatedBefore',
2750
3079
  };
@@ -2755,6 +3084,7 @@ export class ListExecutorsRequestFilter extends $tea.Model {
2755
3084
  executorIds: { 'type': 'array', 'itemType': 'string' },
2756
3085
  ipAddresses: { 'type': 'array', 'itemType': 'string' },
2757
3086
  jobName: 'string',
3087
+ status: { 'type': 'array', 'itemType': 'string' },
2758
3088
  timeCreatedAfter: 'number',
2759
3089
  timeCreatedBefore: 'number',
2760
3090
  };
@@ -2765,10 +3095,79 @@ export class ListExecutorsRequestFilter extends $tea.Model {
2765
3095
  }
2766
3096
  }
2767
3097
 
2768
- export class ListExecutorsResponseBodyExecutors extends $tea.Model {
2769
- /**
2770
- * @example
2771
- * 0
3098
+ export class ListExecutorsResponseBodyExecutorsResourceDisks extends $tea.Model {
3099
+ size?: number;
3100
+ type?: string;
3101
+ static names(): { [key: string]: string } {
3102
+ return {
3103
+ size: 'Size',
3104
+ type: 'Type',
3105
+ };
3106
+ }
3107
+
3108
+ static types(): { [key: string]: any } {
3109
+ return {
3110
+ size: 'number',
3111
+ type: 'string',
3112
+ };
3113
+ }
3114
+
3115
+ constructor(map?: { [key: string]: any }) {
3116
+ super(map);
3117
+ }
3118
+ }
3119
+
3120
+ export class ListExecutorsResponseBodyExecutorsResource extends $tea.Model {
3121
+ cores?: number;
3122
+ disks?: ListExecutorsResponseBodyExecutorsResourceDisks[];
3123
+ memory?: number;
3124
+ static names(): { [key: string]: string } {
3125
+ return {
3126
+ cores: 'Cores',
3127
+ disks: 'Disks',
3128
+ memory: 'Memory',
3129
+ };
3130
+ }
3131
+
3132
+ static types(): { [key: string]: any } {
3133
+ return {
3134
+ cores: 'number',
3135
+ disks: { 'type': 'array', 'itemType': ListExecutorsResponseBodyExecutorsResourceDisks },
3136
+ memory: 'number',
3137
+ };
3138
+ }
3139
+
3140
+ constructor(map?: { [key: string]: any }) {
3141
+ super(map);
3142
+ }
3143
+ }
3144
+
3145
+ export class ListExecutorsResponseBodyExecutorsTags extends $tea.Model {
3146
+ tagKey?: string;
3147
+ tagValue?: string;
3148
+ static names(): { [key: string]: string } {
3149
+ return {
3150
+ tagKey: 'TagKey',
3151
+ tagValue: 'TagValue',
3152
+ };
3153
+ }
3154
+
3155
+ static types(): { [key: string]: any } {
3156
+ return {
3157
+ tagKey: 'string',
3158
+ tagValue: 'string',
3159
+ };
3160
+ }
3161
+
3162
+ constructor(map?: { [key: string]: any }) {
3163
+ super(map);
3164
+ }
3165
+ }
3166
+
3167
+ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
3168
+ /**
3169
+ * @example
3170
+ * 0
2772
3171
  */
2773
3172
  arrayIndex?: number;
2774
3173
  /**
@@ -2786,6 +3185,7 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
2786
3185
  * job-xxxx-task0-1
2787
3186
  */
2788
3187
  executorId?: string;
3188
+ externalIpAddress?: string[];
2789
3189
  hostName?: string[];
2790
3190
  image?: string;
2791
3191
  ipAddress?: string[];
@@ -2799,6 +3199,9 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
2799
3199
  * testJob
2800
3200
  */
2801
3201
  jobName?: string;
3202
+ resource?: ListExecutorsResponseBodyExecutorsResource;
3203
+ resourceType?: string;
3204
+ startTime?: string;
2802
3205
  /**
2803
3206
  * @example
2804
3207
  * Running
@@ -2809,25 +3212,35 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
2809
3212
  * Succeeded to release executor resource
2810
3213
  */
2811
3214
  statusReason?: string;
3215
+ tags?: ListExecutorsResponseBodyExecutorsTags[];
2812
3216
  /**
2813
3217
  * @example
2814
3218
  * task0
2815
3219
  */
2816
3220
  taskName?: string;
3221
+ taskSustainable?: boolean;
3222
+ vswitchId?: string;
2817
3223
  static names(): { [key: string]: string } {
2818
3224
  return {
2819
3225
  arrayIndex: 'ArrayIndex',
2820
3226
  createTime: 'CreateTime',
2821
3227
  endTime: 'EndTime',
2822
3228
  executorId: 'ExecutorId',
3229
+ externalIpAddress: 'ExternalIpAddress',
2823
3230
  hostName: 'HostName',
2824
3231
  image: 'Image',
2825
3232
  ipAddress: 'IpAddress',
2826
3233
  jobId: 'JobId',
2827
3234
  jobName: 'JobName',
3235
+ resource: 'Resource',
3236
+ resourceType: 'ResourceType',
3237
+ startTime: 'StartTime',
2828
3238
  status: 'Status',
2829
3239
  statusReason: 'StatusReason',
3240
+ tags: 'Tags',
2830
3241
  taskName: 'TaskName',
3242
+ taskSustainable: 'TaskSustainable',
3243
+ vswitchId: 'VswitchId',
2831
3244
  };
2832
3245
  }
2833
3246
 
@@ -2837,14 +3250,21 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
2837
3250
  createTime: 'string',
2838
3251
  endTime: 'string',
2839
3252
  executorId: 'string',
3253
+ externalIpAddress: { 'type': 'array', 'itemType': 'string' },
2840
3254
  hostName: { 'type': 'array', 'itemType': 'string' },
2841
3255
  image: 'string',
2842
3256
  ipAddress: { 'type': 'array', 'itemType': 'string' },
2843
3257
  jobId: 'string',
2844
3258
  jobName: 'string',
3259
+ resource: ListExecutorsResponseBodyExecutorsResource,
3260
+ resourceType: 'string',
3261
+ startTime: 'string',
2845
3262
  status: 'string',
2846
3263
  statusReason: 'string',
3264
+ tags: { 'type': 'array', 'itemType': ListExecutorsResponseBodyExecutorsTags },
2847
3265
  taskName: 'string',
3266
+ taskSustainable: 'boolean',
3267
+ vswitchId: 'string',
2848
3268
  };
2849
3269
  }
2850
3270
 
@@ -2957,6 +3377,28 @@ export class ListJobExecutorsResponseBodyExecutorStatus extends $tea.Model {
2957
3377
  }
2958
3378
  }
2959
3379
 
3380
+ export class ListJobExecutorsResponseBodyExecutorsTags extends $tea.Model {
3381
+ tagKey?: string;
3382
+ tagValue?: string;
3383
+ static names(): { [key: string]: string } {
3384
+ return {
3385
+ tagKey: 'TagKey',
3386
+ tagValue: 'TagValue',
3387
+ };
3388
+ }
3389
+
3390
+ static types(): { [key: string]: any } {
3391
+ return {
3392
+ tagKey: 'string',
3393
+ tagValue: 'string',
3394
+ };
3395
+ }
3396
+
3397
+ constructor(map?: { [key: string]: any }) {
3398
+ super(map);
3399
+ }
3400
+ }
3401
+
2960
3402
  export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
2961
3403
  /**
2962
3404
  * @example
@@ -2974,8 +3416,10 @@ export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
2974
3416
  */
2975
3417
  endTime?: string;
2976
3418
  executorId?: string;
3419
+ externalIpAddress?: string[];
2977
3420
  hostName?: string[];
2978
3421
  ipAddress?: string[];
3422
+ startTime?: string;
2979
3423
  /**
2980
3424
  * @example
2981
3425
  * Running
@@ -2986,16 +3430,20 @@ export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
2986
3430
  * Creating executor
2987
3431
  */
2988
3432
  statusReason?: string;
3433
+ tags?: ListJobExecutorsResponseBodyExecutorsTags[];
2989
3434
  static names(): { [key: string]: string } {
2990
3435
  return {
2991
3436
  arrayIndex: 'ArrayIndex',
2992
3437
  createTime: 'CreateTime',
2993
3438
  endTime: 'EndTime',
2994
3439
  executorId: 'ExecutorId',
3440
+ externalIpAddress: 'ExternalIpAddress',
2995
3441
  hostName: 'HostName',
2996
3442
  ipAddress: 'IpAddress',
3443
+ startTime: 'StartTime',
2997
3444
  status: 'Status',
2998
3445
  statusReason: 'StatusReason',
3446
+ tags: 'Tags',
2999
3447
  };
3000
3448
  }
3001
3449
 
@@ -3005,10 +3453,13 @@ export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
3005
3453
  createTime: 'string',
3006
3454
  endTime: 'string',
3007
3455
  executorId: 'string',
3456
+ externalIpAddress: { 'type': 'array', 'itemType': 'string' },
3008
3457
  hostName: { 'type': 'array', 'itemType': 'string' },
3009
3458
  ipAddress: { 'type': 'array', 'itemType': 'string' },
3459
+ startTime: 'string',
3010
3460
  status: 'string',
3011
3461
  statusReason: 'string',
3462
+ tags: { 'type': 'array', 'itemType': ListJobExecutorsResponseBodyExecutorsTags },
3012
3463
  };
3013
3464
  }
3014
3465
 
@@ -3098,6 +3549,28 @@ export class ListJobsRequestSortBy extends $tea.Model {
3098
3549
  }
3099
3550
  }
3100
3551
 
3552
+ export class ListJobsResponseBodyJobListTags extends $tea.Model {
3553
+ tagKey?: string;
3554
+ tagValue?: string;
3555
+ static names(): { [key: string]: string } {
3556
+ return {
3557
+ tagKey: 'TagKey',
3558
+ tagValue: 'TagValue',
3559
+ };
3560
+ }
3561
+
3562
+ static types(): { [key: string]: any } {
3563
+ return {
3564
+ tagKey: 'string',
3565
+ tagValue: 'string',
3566
+ };
3567
+ }
3568
+
3569
+ constructor(map?: { [key: string]: any }) {
3570
+ super(map);
3571
+ }
3572
+ }
3573
+
3101
3574
  export class ListJobsResponseBodyJobList extends $tea.Model {
3102
3575
  /**
3103
3576
  * @example
@@ -3144,6 +3617,7 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
3144
3617
  * Running
3145
3618
  */
3146
3619
  status?: string;
3620
+ tags?: ListJobsResponseBodyJobListTags[];
3147
3621
  /**
3148
3622
  * @example
3149
3623
  * 1
@@ -3165,6 +3639,7 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
3165
3639
  ownerUid: 'OwnerUid',
3166
3640
  startTime: 'StartTime',
3167
3641
  status: 'Status',
3642
+ tags: 'Tags',
3168
3643
  taskCount: 'TaskCount',
3169
3644
  taskSustainable: 'TaskSustainable',
3170
3645
  };
@@ -3181,6 +3656,7 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
3181
3656
  ownerUid: 'string',
3182
3657
  startTime: 'string',
3183
3658
  status: 'string',
3659
+ tags: { 'type': 'array', 'itemType': ListJobsResponseBodyJobListTags },
3184
3660
  taskCount: 'number',
3185
3661
  taskSustainable: 'boolean',
3186
3662
  };
@@ -3191,6 +3667,132 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
3191
3667
  }
3192
3668
  }
3193
3669
 
3670
+ export class ListTagResourcesRequestTag extends $tea.Model {
3671
+ /**
3672
+ * @example
3673
+ * TestKey
3674
+ */
3675
+ key?: string;
3676
+ /**
3677
+ * @example
3678
+ * TestValue
3679
+ */
3680
+ value?: string;
3681
+ static names(): { [key: string]: string } {
3682
+ return {
3683
+ key: 'Key',
3684
+ value: 'Value',
3685
+ };
3686
+ }
3687
+
3688
+ static types(): { [key: string]: any } {
3689
+ return {
3690
+ key: 'string',
3691
+ value: 'string',
3692
+ };
3693
+ }
3694
+
3695
+ constructor(map?: { [key: string]: any }) {
3696
+ super(map);
3697
+ }
3698
+ }
3699
+
3700
+ export class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
3701
+ /**
3702
+ * @example
3703
+ * job-xxxxxxxx
3704
+ */
3705
+ resourceId?: string;
3706
+ /**
3707
+ * @example
3708
+ * Job
3709
+ */
3710
+ resourceType?: string;
3711
+ /**
3712
+ * @example
3713
+ * TestKey
3714
+ */
3715
+ tagKey?: string;
3716
+ /**
3717
+ * @example
3718
+ * TestValue
3719
+ */
3720
+ tagValue?: string;
3721
+ static names(): { [key: string]: string } {
3722
+ return {
3723
+ resourceId: 'ResourceId',
3724
+ resourceType: 'ResourceType',
3725
+ tagKey: 'TagKey',
3726
+ tagValue: 'TagValue',
3727
+ };
3728
+ }
3729
+
3730
+ static types(): { [key: string]: any } {
3731
+ return {
3732
+ resourceId: 'string',
3733
+ resourceType: 'string',
3734
+ tagKey: 'string',
3735
+ tagValue: 'string',
3736
+ };
3737
+ }
3738
+
3739
+ constructor(map?: { [key: string]: any }) {
3740
+ super(map);
3741
+ }
3742
+ }
3743
+
3744
+ export class ListTagResourcesResponseBodyTagResources extends $tea.Model {
3745
+ tagResource?: ListTagResourcesResponseBodyTagResourcesTagResource[];
3746
+ static names(): { [key: string]: string } {
3747
+ return {
3748
+ tagResource: 'TagResource',
3749
+ };
3750
+ }
3751
+
3752
+ static types(): { [key: string]: any } {
3753
+ return {
3754
+ tagResource: { 'type': 'array', 'itemType': ListTagResourcesResponseBodyTagResourcesTagResource },
3755
+ };
3756
+ }
3757
+
3758
+ constructor(map?: { [key: string]: any }) {
3759
+ super(map);
3760
+ }
3761
+ }
3762
+
3763
+ export class TagResourcesRequestTag extends $tea.Model {
3764
+ /**
3765
+ * @remarks
3766
+ * This parameter is required.
3767
+ *
3768
+ * @example
3769
+ * TestKey
3770
+ */
3771
+ key?: string;
3772
+ /**
3773
+ * @example
3774
+ * TestValue
3775
+ */
3776
+ value?: string;
3777
+ static names(): { [key: string]: string } {
3778
+ return {
3779
+ key: 'Key',
3780
+ value: 'Value',
3781
+ };
3782
+ }
3783
+
3784
+ static types(): { [key: string]: any } {
3785
+ return {
3786
+ key: 'string',
3787
+ value: 'string',
3788
+ };
3789
+ }
3790
+
3791
+ constructor(map?: { [key: string]: any }) {
3792
+ super(map);
3793
+ }
3794
+ }
3795
+
3194
3796
 
3195
3797
  export default class Client extends OpenApi {
3196
3798
 
@@ -3242,6 +3844,10 @@ export default class Client extends OpenApi {
3242
3844
  query["Description"] = request.description;
3243
3845
  }
3244
3846
 
3847
+ if (!Util.isUnset(request.imageType)) {
3848
+ query["ImageType"] = request.imageType;
3849
+ }
3850
+
3245
3851
  if (!Util.isUnset(request.imageVersion)) {
3246
3852
  query["ImageVersion"] = request.imageVersion;
3247
3853
  }
@@ -3860,6 +4466,64 @@ export default class Client extends OpenApi {
3860
4466
  return await this.listJobsWithOptions(request, runtime);
3861
4467
  }
3862
4468
 
4469
+ /**
4470
+ * 查询一个或多个资源已经绑定的标签列表
4471
+ *
4472
+ * @param request - ListTagResourcesRequest
4473
+ * @param runtime - runtime options for this request RuntimeOptions
4474
+ * @returns ListTagResourcesResponse
4475
+ */
4476
+ async listTagResourcesWithOptions(request: ListTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
4477
+ Util.validateModel(request);
4478
+ let query = { };
4479
+ if (!Util.isUnset(request.maxResult)) {
4480
+ query["MaxResult"] = request.maxResult;
4481
+ }
4482
+
4483
+ if (!Util.isUnset(request.nextToken)) {
4484
+ query["NextToken"] = request.nextToken;
4485
+ }
4486
+
4487
+ if (!Util.isUnset(request.resourceId)) {
4488
+ query["ResourceId"] = request.resourceId;
4489
+ }
4490
+
4491
+ if (!Util.isUnset(request.resourceType)) {
4492
+ query["ResourceType"] = request.resourceType;
4493
+ }
4494
+
4495
+ if (!Util.isUnset(request.tag)) {
4496
+ query["Tag"] = request.tag;
4497
+ }
4498
+
4499
+ let req = new $OpenApi.OpenApiRequest({
4500
+ query: OpenApiUtil.query(query),
4501
+ });
4502
+ let params = new $OpenApi.Params({
4503
+ action: "ListTagResources",
4504
+ version: "2023-07-01",
4505
+ protocol: "HTTPS",
4506
+ pathname: "/",
4507
+ method: "POST",
4508
+ authType: "AK",
4509
+ style: "RPC",
4510
+ reqBodyType: "formData",
4511
+ bodyType: "json",
4512
+ });
4513
+ return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
4514
+ }
4515
+
4516
+ /**
4517
+ * 查询一个或多个资源已经绑定的标签列表
4518
+ *
4519
+ * @param request - ListTagResourcesRequest
4520
+ * @returns ListTagResourcesResponse
4521
+ */
4522
+ async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
4523
+ let runtime = new $Util.RuntimeOptions({ });
4524
+ return await this.listTagResourcesWithOptions(request, runtime);
4525
+ }
4526
+
3863
4527
  /**
3864
4528
  * 移除托管侧镜像信息。
3865
4529
  *
@@ -3874,6 +4538,10 @@ export default class Client extends OpenApi {
3874
4538
  query["ImageId"] = request.imageId;
3875
4539
  }
3876
4540
 
4541
+ if (!Util.isUnset(request.imageType)) {
4542
+ query["ImageType"] = request.imageType;
4543
+ }
4544
+
3877
4545
  let req = new $OpenApi.OpenApiRequest({
3878
4546
  query: OpenApiUtil.query(query),
3879
4547
  });
@@ -3902,4 +4570,108 @@ export default class Client extends OpenApi {
3902
4570
  return await this.removeImageWithOptions(request, runtime);
3903
4571
  }
3904
4572
 
4573
+ /**
4574
+ * 为指定的资源列表统一创建并绑定标签
4575
+ *
4576
+ * @param request - TagResourcesRequest
4577
+ * @param runtime - runtime options for this request RuntimeOptions
4578
+ * @returns TagResourcesResponse
4579
+ */
4580
+ async tagResourcesWithOptions(request: TagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse> {
4581
+ Util.validateModel(request);
4582
+ let query = { };
4583
+ if (!Util.isUnset(request.resourceId)) {
4584
+ query["ResourceId"] = request.resourceId;
4585
+ }
4586
+
4587
+ if (!Util.isUnset(request.resourceType)) {
4588
+ query["ResourceType"] = request.resourceType;
4589
+ }
4590
+
4591
+ if (!Util.isUnset(request.tag)) {
4592
+ query["Tag"] = request.tag;
4593
+ }
4594
+
4595
+ let req = new $OpenApi.OpenApiRequest({
4596
+ query: OpenApiUtil.query(query),
4597
+ });
4598
+ let params = new $OpenApi.Params({
4599
+ action: "TagResources",
4600
+ version: "2023-07-01",
4601
+ protocol: "HTTPS",
4602
+ pathname: "/",
4603
+ method: "POST",
4604
+ authType: "AK",
4605
+ style: "RPC",
4606
+ reqBodyType: "formData",
4607
+ bodyType: "json",
4608
+ });
4609
+ return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
4610
+ }
4611
+
4612
+ /**
4613
+ * 为指定的资源列表统一创建并绑定标签
4614
+ *
4615
+ * @param request - TagResourcesRequest
4616
+ * @returns TagResourcesResponse
4617
+ */
4618
+ async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
4619
+ let runtime = new $Util.RuntimeOptions({ });
4620
+ return await this.tagResourcesWithOptions(request, runtime);
4621
+ }
4622
+
4623
+ /**
4624
+ * 为指定的ECS资源列表统一解绑标签
4625
+ *
4626
+ * @param request - UnTagResourcesRequest
4627
+ * @param runtime - runtime options for this request RuntimeOptions
4628
+ * @returns UnTagResourcesResponse
4629
+ */
4630
+ async unTagResourcesWithOptions(request: UnTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<UnTagResourcesResponse> {
4631
+ Util.validateModel(request);
4632
+ let query = { };
4633
+ if (!Util.isUnset(request.all)) {
4634
+ query["All"] = request.all;
4635
+ }
4636
+
4637
+ if (!Util.isUnset(request.resourceId)) {
4638
+ query["ResourceId"] = request.resourceId;
4639
+ }
4640
+
4641
+ if (!Util.isUnset(request.resourceType)) {
4642
+ query["ResourceType"] = request.resourceType;
4643
+ }
4644
+
4645
+ if (!Util.isUnset(request.tagKey)) {
4646
+ query["TagKey"] = request.tagKey;
4647
+ }
4648
+
4649
+ let req = new $OpenApi.OpenApiRequest({
4650
+ query: OpenApiUtil.query(query),
4651
+ });
4652
+ let params = new $OpenApi.Params({
4653
+ action: "UnTagResources",
4654
+ version: "2023-07-01",
4655
+ protocol: "HTTPS",
4656
+ pathname: "/",
4657
+ method: "POST",
4658
+ authType: "AK",
4659
+ style: "RPC",
4660
+ reqBodyType: "formData",
4661
+ bodyType: "json",
4662
+ });
4663
+ return $tea.cast<UnTagResourcesResponse>(await this.callApi(params, req, runtime), new UnTagResourcesResponse({}));
4664
+ }
4665
+
4666
+ /**
4667
+ * 为指定的ECS资源列表统一解绑标签
4668
+ *
4669
+ * @param request - UnTagResourcesRequest
4670
+ * @returns UnTagResourcesResponse
4671
+ */
4672
+ async unTagResources(request: UnTagResourcesRequest): Promise<UnTagResourcesResponse> {
4673
+ let runtime = new $Util.RuntimeOptions({ });
4674
+ return await this.unTagResourcesWithOptions(request, runtime);
4675
+ }
4676
+
3905
4677
  }