@alicloud/ehpcinstant20230701 1.0.3 → 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/dist/client.d.ts +447 -0
- package/dist/client.js +585 -2
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +821 -3
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',
|
|
@@ -1171,6 +1177,7 @@ export class ListJobExecutorsRequest extends $tea.Model {
|
|
|
1171
1177
|
}
|
|
1172
1178
|
|
|
1173
1179
|
export class ListJobExecutorsResponseBody extends $tea.Model {
|
|
1180
|
+
executorStatus?: ListJobExecutorsResponseBodyExecutorStatus;
|
|
1174
1181
|
executors?: ListJobExecutorsResponseBodyExecutors[];
|
|
1175
1182
|
/**
|
|
1176
1183
|
* @example
|
|
@@ -1204,6 +1211,7 @@ export class ListJobExecutorsResponseBody extends $tea.Model {
|
|
|
1204
1211
|
totalCount?: string;
|
|
1205
1212
|
static names(): { [key: string]: string } {
|
|
1206
1213
|
return {
|
|
1214
|
+
executorStatus: 'ExecutorStatus',
|
|
1207
1215
|
executors: 'Executors',
|
|
1208
1216
|
jobId: 'JobId',
|
|
1209
1217
|
pageNumber: 'PageNumber',
|
|
@@ -1216,6 +1224,7 @@ export class ListJobExecutorsResponseBody extends $tea.Model {
|
|
|
1216
1224
|
|
|
1217
1225
|
static types(): { [key: string]: any } {
|
|
1218
1226
|
return {
|
|
1227
|
+
executorStatus: ListJobExecutorsResponseBodyExecutorStatus,
|
|
1219
1228
|
executors: { 'type': 'array', 'itemType': ListJobExecutorsResponseBodyExecutors },
|
|
1220
1229
|
jobId: 'string',
|
|
1221
1230
|
pageNumber: 'string',
|
|
@@ -1400,6 +1409,110 @@ export class ListJobsResponse extends $tea.Model {
|
|
|
1400
1409
|
}
|
|
1401
1410
|
}
|
|
1402
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
|
+
|
|
1403
1516
|
export class RemoveImageRequest extends $tea.Model {
|
|
1404
1517
|
/**
|
|
1405
1518
|
* @remarks
|
|
@@ -1409,15 +1522,18 @@ export class RemoveImageRequest extends $tea.Model {
|
|
|
1409
1522
|
* m-bp14wakr1rkxtb******
|
|
1410
1523
|
*/
|
|
1411
1524
|
imageId?: string;
|
|
1525
|
+
imageType?: string;
|
|
1412
1526
|
static names(): { [key: string]: string } {
|
|
1413
1527
|
return {
|
|
1414
1528
|
imageId: 'ImageId',
|
|
1529
|
+
imageType: 'ImageType',
|
|
1415
1530
|
};
|
|
1416
1531
|
}
|
|
1417
1532
|
|
|
1418
1533
|
static types(): { [key: string]: any } {
|
|
1419
1534
|
return {
|
|
1420
1535
|
imageId: 'string',
|
|
1536
|
+
imageType: 'string',
|
|
1421
1537
|
};
|
|
1422
1538
|
}
|
|
1423
1539
|
|
|
@@ -1481,6 +1597,185 @@ export class RemoveImageResponse extends $tea.Model {
|
|
|
1481
1597
|
}
|
|
1482
1598
|
}
|
|
1483
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
|
+
|
|
1484
1779
|
export class AddImageRequestContainerImageSpecRegistryCredential extends $tea.Model {
|
|
1485
1780
|
/**
|
|
1486
1781
|
* @example
|
|
@@ -1589,15 +1884,18 @@ export class AddImageRequestVMImageSpec extends $tea.Model {
|
|
|
1589
1884
|
}
|
|
1590
1885
|
|
|
1591
1886
|
export class CreateJobRequestDeploymentPolicyNetwork extends $tea.Model {
|
|
1887
|
+
enableExternalIpAddress?: boolean;
|
|
1592
1888
|
vswitch?: string[];
|
|
1593
1889
|
static names(): { [key: string]: string } {
|
|
1594
1890
|
return {
|
|
1891
|
+
enableExternalIpAddress: 'EnableExternalIpAddress',
|
|
1595
1892
|
vswitch: 'Vswitch',
|
|
1596
1893
|
};
|
|
1597
1894
|
}
|
|
1598
1895
|
|
|
1599
1896
|
static types(): { [key: string]: any } {
|
|
1600
1897
|
return {
|
|
1898
|
+
enableExternalIpAddress: 'boolean',
|
|
1601
1899
|
vswitch: { 'type': 'array', 'itemType': 'string' },
|
|
1602
1900
|
};
|
|
1603
1901
|
}
|
|
@@ -1607,6 +1905,32 @@ export class CreateJobRequestDeploymentPolicyNetwork extends $tea.Model {
|
|
|
1607
1905
|
}
|
|
1608
1906
|
}
|
|
1609
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
|
+
|
|
1610
1934
|
export class CreateJobRequestDeploymentPolicy extends $tea.Model {
|
|
1611
1935
|
/**
|
|
1612
1936
|
* @example
|
|
@@ -1614,10 +1938,12 @@ export class CreateJobRequestDeploymentPolicy extends $tea.Model {
|
|
|
1614
1938
|
*/
|
|
1615
1939
|
allocationSpec?: string;
|
|
1616
1940
|
network?: CreateJobRequestDeploymentPolicyNetwork;
|
|
1941
|
+
tag?: CreateJobRequestDeploymentPolicyTag[];
|
|
1617
1942
|
static names(): { [key: string]: string } {
|
|
1618
1943
|
return {
|
|
1619
1944
|
allocationSpec: 'AllocationSpec',
|
|
1620
1945
|
network: 'Network',
|
|
1946
|
+
tag: 'Tag',
|
|
1621
1947
|
};
|
|
1622
1948
|
}
|
|
1623
1949
|
|
|
@@ -1625,6 +1951,7 @@ export class CreateJobRequestDeploymentPolicy extends $tea.Model {
|
|
|
1625
1951
|
return {
|
|
1626
1952
|
allocationSpec: 'string',
|
|
1627
1953
|
network: CreateJobRequestDeploymentPolicyNetwork,
|
|
1954
|
+
tag: { 'type': 'array', 'itemType': CreateJobRequestDeploymentPolicyTag },
|
|
1628
1955
|
};
|
|
1629
1956
|
}
|
|
1630
1957
|
|
|
@@ -2300,15 +2627,18 @@ export class GetImageResponseBodyImage extends $tea.Model {
|
|
|
2300
2627
|
}
|
|
2301
2628
|
|
|
2302
2629
|
export class GetJobResponseBodyJobInfoDeploymentPolicyNetwork extends $tea.Model {
|
|
2630
|
+
enableExternalIpAddress?: boolean;
|
|
2303
2631
|
vswitch?: string[];
|
|
2304
2632
|
static names(): { [key: string]: string } {
|
|
2305
2633
|
return {
|
|
2634
|
+
enableExternalIpAddress: 'EnableExternalIpAddress',
|
|
2306
2635
|
vswitch: 'Vswitch',
|
|
2307
2636
|
};
|
|
2308
2637
|
}
|
|
2309
2638
|
|
|
2310
2639
|
static types(): { [key: string]: any } {
|
|
2311
2640
|
return {
|
|
2641
|
+
enableExternalIpAddress: 'boolean',
|
|
2312
2642
|
vswitch: { 'type': 'array', 'itemType': 'string' },
|
|
2313
2643
|
};
|
|
2314
2644
|
}
|
|
@@ -2727,6 +3057,7 @@ export class ListExecutorsRequestFilter extends $tea.Model {
|
|
|
2727
3057
|
* testJob
|
|
2728
3058
|
*/
|
|
2729
3059
|
jobName?: string;
|
|
3060
|
+
status?: string[];
|
|
2730
3061
|
/**
|
|
2731
3062
|
* @example
|
|
2732
3063
|
* 1703819914
|
|
@@ -2742,6 +3073,7 @@ export class ListExecutorsRequestFilter extends $tea.Model {
|
|
|
2742
3073
|
executorIds: 'ExecutorIds',
|
|
2743
3074
|
ipAddresses: 'IpAddresses',
|
|
2744
3075
|
jobName: 'JobName',
|
|
3076
|
+
status: 'Status',
|
|
2745
3077
|
timeCreatedAfter: 'TimeCreatedAfter',
|
|
2746
3078
|
timeCreatedBefore: 'TimeCreatedBefore',
|
|
2747
3079
|
};
|
|
@@ -2752,6 +3084,7 @@ export class ListExecutorsRequestFilter extends $tea.Model {
|
|
|
2752
3084
|
executorIds: { 'type': 'array', 'itemType': 'string' },
|
|
2753
3085
|
ipAddresses: { 'type': 'array', 'itemType': 'string' },
|
|
2754
3086
|
jobName: 'string',
|
|
3087
|
+
status: { 'type': 'array', 'itemType': 'string' },
|
|
2755
3088
|
timeCreatedAfter: 'number',
|
|
2756
3089
|
timeCreatedBefore: 'number',
|
|
2757
3090
|
};
|
|
@@ -2762,9 +3095,78 @@ export class ListExecutorsRequestFilter extends $tea.Model {
|
|
|
2762
3095
|
}
|
|
2763
3096
|
}
|
|
2764
3097
|
|
|
2765
|
-
export class
|
|
2766
|
-
|
|
2767
|
-
|
|
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
|
|
2768
3170
|
* 0
|
|
2769
3171
|
*/
|
|
2770
3172
|
arrayIndex?: number;
|
|
@@ -2783,7 +3185,9 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2783
3185
|
* job-xxxx-task0-1
|
|
2784
3186
|
*/
|
|
2785
3187
|
executorId?: string;
|
|
3188
|
+
externalIpAddress?: string[];
|
|
2786
3189
|
hostName?: string[];
|
|
3190
|
+
image?: string;
|
|
2787
3191
|
ipAddress?: string[];
|
|
2788
3192
|
/**
|
|
2789
3193
|
* @example
|
|
@@ -2795,6 +3199,9 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2795
3199
|
* testJob
|
|
2796
3200
|
*/
|
|
2797
3201
|
jobName?: string;
|
|
3202
|
+
resource?: ListExecutorsResponseBodyExecutorsResource;
|
|
3203
|
+
resourceType?: string;
|
|
3204
|
+
startTime?: string;
|
|
2798
3205
|
/**
|
|
2799
3206
|
* @example
|
|
2800
3207
|
* Running
|
|
@@ -2805,24 +3212,35 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2805
3212
|
* Succeeded to release executor resource
|
|
2806
3213
|
*/
|
|
2807
3214
|
statusReason?: string;
|
|
3215
|
+
tags?: ListExecutorsResponseBodyExecutorsTags[];
|
|
2808
3216
|
/**
|
|
2809
3217
|
* @example
|
|
2810
3218
|
* task0
|
|
2811
3219
|
*/
|
|
2812
3220
|
taskName?: string;
|
|
3221
|
+
taskSustainable?: boolean;
|
|
3222
|
+
vswitchId?: string;
|
|
2813
3223
|
static names(): { [key: string]: string } {
|
|
2814
3224
|
return {
|
|
2815
3225
|
arrayIndex: 'ArrayIndex',
|
|
2816
3226
|
createTime: 'CreateTime',
|
|
2817
3227
|
endTime: 'EndTime',
|
|
2818
3228
|
executorId: 'ExecutorId',
|
|
3229
|
+
externalIpAddress: 'ExternalIpAddress',
|
|
2819
3230
|
hostName: 'HostName',
|
|
3231
|
+
image: 'Image',
|
|
2820
3232
|
ipAddress: 'IpAddress',
|
|
2821
3233
|
jobId: 'JobId',
|
|
2822
3234
|
jobName: 'JobName',
|
|
3235
|
+
resource: 'Resource',
|
|
3236
|
+
resourceType: 'ResourceType',
|
|
3237
|
+
startTime: 'StartTime',
|
|
2823
3238
|
status: 'Status',
|
|
2824
3239
|
statusReason: 'StatusReason',
|
|
3240
|
+
tags: 'Tags',
|
|
2825
3241
|
taskName: 'TaskName',
|
|
3242
|
+
taskSustainable: 'TaskSustainable',
|
|
3243
|
+
vswitchId: 'VswitchId',
|
|
2826
3244
|
};
|
|
2827
3245
|
}
|
|
2828
3246
|
|
|
@@ -2832,13 +3250,21 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2832
3250
|
createTime: 'string',
|
|
2833
3251
|
endTime: 'string',
|
|
2834
3252
|
executorId: 'string',
|
|
3253
|
+
externalIpAddress: { 'type': 'array', 'itemType': 'string' },
|
|
2835
3254
|
hostName: { 'type': 'array', 'itemType': 'string' },
|
|
3255
|
+
image: 'string',
|
|
2836
3256
|
ipAddress: { 'type': 'array', 'itemType': 'string' },
|
|
2837
3257
|
jobId: 'string',
|
|
2838
3258
|
jobName: 'string',
|
|
3259
|
+
resource: ListExecutorsResponseBodyExecutorsResource,
|
|
3260
|
+
resourceType: 'string',
|
|
3261
|
+
startTime: 'string',
|
|
2839
3262
|
status: 'string',
|
|
2840
3263
|
statusReason: 'string',
|
|
3264
|
+
tags: { 'type': 'array', 'itemType': ListExecutorsResponseBodyExecutorsTags },
|
|
2841
3265
|
taskName: 'string',
|
|
3266
|
+
taskSustainable: 'boolean',
|
|
3267
|
+
vswitchId: 'string',
|
|
2842
3268
|
};
|
|
2843
3269
|
}
|
|
2844
3270
|
|
|
@@ -2914,6 +3340,65 @@ export class ListImagesResponseBodyImages extends $tea.Model {
|
|
|
2914
3340
|
}
|
|
2915
3341
|
}
|
|
2916
3342
|
|
|
3343
|
+
export class ListJobExecutorsResponseBodyExecutorStatus extends $tea.Model {
|
|
3344
|
+
deleted?: number;
|
|
3345
|
+
exception?: number;
|
|
3346
|
+
failed?: number;
|
|
3347
|
+
initing?: number;
|
|
3348
|
+
pending?: number;
|
|
3349
|
+
running?: number;
|
|
3350
|
+
succeeded?: number;
|
|
3351
|
+
static names(): { [key: string]: string } {
|
|
3352
|
+
return {
|
|
3353
|
+
deleted: 'Deleted',
|
|
3354
|
+
exception: 'Exception',
|
|
3355
|
+
failed: 'Failed',
|
|
3356
|
+
initing: 'Initing',
|
|
3357
|
+
pending: 'Pending',
|
|
3358
|
+
running: 'Running',
|
|
3359
|
+
succeeded: 'Succeeded',
|
|
3360
|
+
};
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
static types(): { [key: string]: any } {
|
|
3364
|
+
return {
|
|
3365
|
+
deleted: 'number',
|
|
3366
|
+
exception: 'number',
|
|
3367
|
+
failed: 'number',
|
|
3368
|
+
initing: 'number',
|
|
3369
|
+
pending: 'number',
|
|
3370
|
+
running: 'number',
|
|
3371
|
+
succeeded: 'number',
|
|
3372
|
+
};
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
constructor(map?: { [key: string]: any }) {
|
|
3376
|
+
super(map);
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
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
|
+
|
|
2917
3402
|
export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
|
|
2918
3403
|
/**
|
|
2919
3404
|
* @example
|
|
@@ -2930,8 +3415,11 @@ export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2930
3415
|
* 2024-02-20 10:04:18
|
|
2931
3416
|
*/
|
|
2932
3417
|
endTime?: string;
|
|
3418
|
+
executorId?: string;
|
|
3419
|
+
externalIpAddress?: string[];
|
|
2933
3420
|
hostName?: string[];
|
|
2934
3421
|
ipAddress?: string[];
|
|
3422
|
+
startTime?: string;
|
|
2935
3423
|
/**
|
|
2936
3424
|
* @example
|
|
2937
3425
|
* Running
|
|
@@ -2942,15 +3430,20 @@ export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2942
3430
|
* Creating executor
|
|
2943
3431
|
*/
|
|
2944
3432
|
statusReason?: string;
|
|
3433
|
+
tags?: ListJobExecutorsResponseBodyExecutorsTags[];
|
|
2945
3434
|
static names(): { [key: string]: string } {
|
|
2946
3435
|
return {
|
|
2947
3436
|
arrayIndex: 'ArrayIndex',
|
|
2948
3437
|
createTime: 'CreateTime',
|
|
2949
3438
|
endTime: 'EndTime',
|
|
3439
|
+
executorId: 'ExecutorId',
|
|
3440
|
+
externalIpAddress: 'ExternalIpAddress',
|
|
2950
3441
|
hostName: 'HostName',
|
|
2951
3442
|
ipAddress: 'IpAddress',
|
|
3443
|
+
startTime: 'StartTime',
|
|
2952
3444
|
status: 'Status',
|
|
2953
3445
|
statusReason: 'StatusReason',
|
|
3446
|
+
tags: 'Tags',
|
|
2954
3447
|
};
|
|
2955
3448
|
}
|
|
2956
3449
|
|
|
@@ -2959,10 +3452,14 @@ export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2959
3452
|
arrayIndex: 'number',
|
|
2960
3453
|
createTime: 'string',
|
|
2961
3454
|
endTime: 'string',
|
|
3455
|
+
executorId: 'string',
|
|
3456
|
+
externalIpAddress: { 'type': 'array', 'itemType': 'string' },
|
|
2962
3457
|
hostName: { 'type': 'array', 'itemType': 'string' },
|
|
2963
3458
|
ipAddress: { 'type': 'array', 'itemType': 'string' },
|
|
3459
|
+
startTime: 'string',
|
|
2964
3460
|
status: 'string',
|
|
2965
3461
|
statusReason: 'string',
|
|
3462
|
+
tags: { 'type': 'array', 'itemType': ListJobExecutorsResponseBodyExecutorsTags },
|
|
2966
3463
|
};
|
|
2967
3464
|
}
|
|
2968
3465
|
|
|
@@ -3052,6 +3549,28 @@ export class ListJobsRequestSortBy extends $tea.Model {
|
|
|
3052
3549
|
}
|
|
3053
3550
|
}
|
|
3054
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
|
+
|
|
3055
3574
|
export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
3056
3575
|
/**
|
|
3057
3576
|
* @example
|
|
@@ -3098,6 +3617,7 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
|
3098
3617
|
* Running
|
|
3099
3618
|
*/
|
|
3100
3619
|
status?: string;
|
|
3620
|
+
tags?: ListJobsResponseBodyJobListTags[];
|
|
3101
3621
|
/**
|
|
3102
3622
|
* @example
|
|
3103
3623
|
* 1
|
|
@@ -3119,6 +3639,7 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
|
3119
3639
|
ownerUid: 'OwnerUid',
|
|
3120
3640
|
startTime: 'StartTime',
|
|
3121
3641
|
status: 'Status',
|
|
3642
|
+
tags: 'Tags',
|
|
3122
3643
|
taskCount: 'TaskCount',
|
|
3123
3644
|
taskSustainable: 'TaskSustainable',
|
|
3124
3645
|
};
|
|
@@ -3135,6 +3656,7 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
|
3135
3656
|
ownerUid: 'string',
|
|
3136
3657
|
startTime: 'string',
|
|
3137
3658
|
status: 'string',
|
|
3659
|
+
tags: { 'type': 'array', 'itemType': ListJobsResponseBodyJobListTags },
|
|
3138
3660
|
taskCount: 'number',
|
|
3139
3661
|
taskSustainable: 'boolean',
|
|
3140
3662
|
};
|
|
@@ -3145,6 +3667,132 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
|
3145
3667
|
}
|
|
3146
3668
|
}
|
|
3147
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
|
+
|
|
3148
3796
|
|
|
3149
3797
|
export default class Client extends OpenApi {
|
|
3150
3798
|
|
|
@@ -3196,6 +3844,10 @@ export default class Client extends OpenApi {
|
|
|
3196
3844
|
query["Description"] = request.description;
|
|
3197
3845
|
}
|
|
3198
3846
|
|
|
3847
|
+
if (!Util.isUnset(request.imageType)) {
|
|
3848
|
+
query["ImageType"] = request.imageType;
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3199
3851
|
if (!Util.isUnset(request.imageVersion)) {
|
|
3200
3852
|
query["ImageVersion"] = request.imageVersion;
|
|
3201
3853
|
}
|
|
@@ -3814,6 +4466,64 @@ export default class Client extends OpenApi {
|
|
|
3814
4466
|
return await this.listJobsWithOptions(request, runtime);
|
|
3815
4467
|
}
|
|
3816
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
|
+
|
|
3817
4527
|
/**
|
|
3818
4528
|
* 移除托管侧镜像信息。
|
|
3819
4529
|
*
|
|
@@ -3828,6 +4538,10 @@ export default class Client extends OpenApi {
|
|
|
3828
4538
|
query["ImageId"] = request.imageId;
|
|
3829
4539
|
}
|
|
3830
4540
|
|
|
4541
|
+
if (!Util.isUnset(request.imageType)) {
|
|
4542
|
+
query["ImageType"] = request.imageType;
|
|
4543
|
+
}
|
|
4544
|
+
|
|
3831
4545
|
let req = new $OpenApi.OpenApiRequest({
|
|
3832
4546
|
query: OpenApiUtil.query(query),
|
|
3833
4547
|
});
|
|
@@ -3856,4 +4570,108 @@ export default class Client extends OpenApi {
|
|
|
3856
4570
|
return await this.removeImageWithOptions(request, runtime);
|
|
3857
4571
|
}
|
|
3858
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
|
+
|
|
3859
4677
|
}
|