@alicloud/ehpcinstant20230701 1.0.4 → 1.1.1
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 +440 -0
- package/dist/client.js +571 -2
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +802 -5
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
|
}
|
|
@@ -2321,17 +2648,41 @@ export class GetJobResponseBodyJobInfoDeploymentPolicyNetwork extends $tea.Model
|
|
|
2321
2648
|
}
|
|
2322
2649
|
}
|
|
2323
2650
|
|
|
2324
|
-
export class
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2651
|
+
export class GetJobResponseBodyJobInfoDeploymentPolicyTags extends $tea.Model {
|
|
2652
|
+
tagKey?: string;
|
|
2653
|
+
tagValue?: string;
|
|
2654
|
+
static names(): { [key: string]: string } {
|
|
2655
|
+
return {
|
|
2656
|
+
tagKey: 'TagKey',
|
|
2657
|
+
tagValue: 'TagValue',
|
|
2658
|
+
};
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
static types(): { [key: string]: any } {
|
|
2662
|
+
return {
|
|
2663
|
+
tagKey: 'string',
|
|
2664
|
+
tagValue: 'string',
|
|
2665
|
+
};
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
constructor(map?: { [key: string]: any }) {
|
|
2669
|
+
super(map);
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
export class GetJobResponseBodyJobInfoDeploymentPolicy extends $tea.Model {
|
|
2674
|
+
/**
|
|
2675
|
+
* @example
|
|
2676
|
+
* Dedicated
|
|
2677
|
+
*/
|
|
2329
2678
|
allocationSpec?: string;
|
|
2330
2679
|
network?: GetJobResponseBodyJobInfoDeploymentPolicyNetwork;
|
|
2680
|
+
tags?: GetJobResponseBodyJobInfoDeploymentPolicyTags[];
|
|
2331
2681
|
static names(): { [key: string]: string } {
|
|
2332
2682
|
return {
|
|
2333
2683
|
allocationSpec: 'AllocationSpec',
|
|
2334
2684
|
network: 'Network',
|
|
2685
|
+
tags: 'Tags',
|
|
2335
2686
|
};
|
|
2336
2687
|
}
|
|
2337
2688
|
|
|
@@ -2339,6 +2690,7 @@ export class GetJobResponseBodyJobInfoDeploymentPolicy extends $tea.Model {
|
|
|
2339
2690
|
return {
|
|
2340
2691
|
allocationSpec: 'string',
|
|
2341
2692
|
network: GetJobResponseBodyJobInfoDeploymentPolicyNetwork,
|
|
2693
|
+
tags: { 'type': 'array', 'itemType': GetJobResponseBodyJobInfoDeploymentPolicyTags },
|
|
2342
2694
|
};
|
|
2343
2695
|
}
|
|
2344
2696
|
|
|
@@ -2730,6 +3082,7 @@ export class ListExecutorsRequestFilter extends $tea.Model {
|
|
|
2730
3082
|
* testJob
|
|
2731
3083
|
*/
|
|
2732
3084
|
jobName?: string;
|
|
3085
|
+
status?: string[];
|
|
2733
3086
|
/**
|
|
2734
3087
|
* @example
|
|
2735
3088
|
* 1703819914
|
|
@@ -2745,6 +3098,7 @@ export class ListExecutorsRequestFilter extends $tea.Model {
|
|
|
2745
3098
|
executorIds: 'ExecutorIds',
|
|
2746
3099
|
ipAddresses: 'IpAddresses',
|
|
2747
3100
|
jobName: 'JobName',
|
|
3101
|
+
status: 'Status',
|
|
2748
3102
|
timeCreatedAfter: 'TimeCreatedAfter',
|
|
2749
3103
|
timeCreatedBefore: 'TimeCreatedBefore',
|
|
2750
3104
|
};
|
|
@@ -2755,6 +3109,7 @@ export class ListExecutorsRequestFilter extends $tea.Model {
|
|
|
2755
3109
|
executorIds: { 'type': 'array', 'itemType': 'string' },
|
|
2756
3110
|
ipAddresses: { 'type': 'array', 'itemType': 'string' },
|
|
2757
3111
|
jobName: 'string',
|
|
3112
|
+
status: { 'type': 'array', 'itemType': 'string' },
|
|
2758
3113
|
timeCreatedAfter: 'number',
|
|
2759
3114
|
timeCreatedBefore: 'number',
|
|
2760
3115
|
};
|
|
@@ -2765,6 +3120,75 @@ export class ListExecutorsRequestFilter extends $tea.Model {
|
|
|
2765
3120
|
}
|
|
2766
3121
|
}
|
|
2767
3122
|
|
|
3123
|
+
export class ListExecutorsResponseBodyExecutorsResourceDisks extends $tea.Model {
|
|
3124
|
+
size?: number;
|
|
3125
|
+
type?: string;
|
|
3126
|
+
static names(): { [key: string]: string } {
|
|
3127
|
+
return {
|
|
3128
|
+
size: 'Size',
|
|
3129
|
+
type: 'Type',
|
|
3130
|
+
};
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
static types(): { [key: string]: any } {
|
|
3134
|
+
return {
|
|
3135
|
+
size: 'number',
|
|
3136
|
+
type: 'string',
|
|
3137
|
+
};
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3140
|
+
constructor(map?: { [key: string]: any }) {
|
|
3141
|
+
super(map);
|
|
3142
|
+
}
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
export class ListExecutorsResponseBodyExecutorsResource extends $tea.Model {
|
|
3146
|
+
cores?: number;
|
|
3147
|
+
disks?: ListExecutorsResponseBodyExecutorsResourceDisks[];
|
|
3148
|
+
memory?: number;
|
|
3149
|
+
static names(): { [key: string]: string } {
|
|
3150
|
+
return {
|
|
3151
|
+
cores: 'Cores',
|
|
3152
|
+
disks: 'Disks',
|
|
3153
|
+
memory: 'Memory',
|
|
3154
|
+
};
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
static types(): { [key: string]: any } {
|
|
3158
|
+
return {
|
|
3159
|
+
cores: 'number',
|
|
3160
|
+
disks: { 'type': 'array', 'itemType': ListExecutorsResponseBodyExecutorsResourceDisks },
|
|
3161
|
+
memory: 'number',
|
|
3162
|
+
};
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3165
|
+
constructor(map?: { [key: string]: any }) {
|
|
3166
|
+
super(map);
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
export class ListExecutorsResponseBodyExecutorsTags extends $tea.Model {
|
|
3171
|
+
tagKey?: string;
|
|
3172
|
+
tagValue?: string;
|
|
3173
|
+
static names(): { [key: string]: string } {
|
|
3174
|
+
return {
|
|
3175
|
+
tagKey: 'TagKey',
|
|
3176
|
+
tagValue: 'TagValue',
|
|
3177
|
+
};
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
static types(): { [key: string]: any } {
|
|
3181
|
+
return {
|
|
3182
|
+
tagKey: 'string',
|
|
3183
|
+
tagValue: 'string',
|
|
3184
|
+
};
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
constructor(map?: { [key: string]: any }) {
|
|
3188
|
+
super(map);
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
|
|
2768
3192
|
export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
2769
3193
|
/**
|
|
2770
3194
|
* @example
|
|
@@ -2786,6 +3210,7 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2786
3210
|
* job-xxxx-task0-1
|
|
2787
3211
|
*/
|
|
2788
3212
|
executorId?: string;
|
|
3213
|
+
externalIpAddress?: string[];
|
|
2789
3214
|
hostName?: string[];
|
|
2790
3215
|
image?: string;
|
|
2791
3216
|
ipAddress?: string[];
|
|
@@ -2799,6 +3224,9 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2799
3224
|
* testJob
|
|
2800
3225
|
*/
|
|
2801
3226
|
jobName?: string;
|
|
3227
|
+
resource?: ListExecutorsResponseBodyExecutorsResource;
|
|
3228
|
+
resourceType?: string;
|
|
3229
|
+
startTime?: string;
|
|
2802
3230
|
/**
|
|
2803
3231
|
* @example
|
|
2804
3232
|
* Running
|
|
@@ -2809,25 +3237,35 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2809
3237
|
* Succeeded to release executor resource
|
|
2810
3238
|
*/
|
|
2811
3239
|
statusReason?: string;
|
|
3240
|
+
tags?: ListExecutorsResponseBodyExecutorsTags[];
|
|
2812
3241
|
/**
|
|
2813
3242
|
* @example
|
|
2814
3243
|
* task0
|
|
2815
3244
|
*/
|
|
2816
3245
|
taskName?: string;
|
|
3246
|
+
taskSustainable?: boolean;
|
|
3247
|
+
vswitchId?: string;
|
|
2817
3248
|
static names(): { [key: string]: string } {
|
|
2818
3249
|
return {
|
|
2819
3250
|
arrayIndex: 'ArrayIndex',
|
|
2820
3251
|
createTime: 'CreateTime',
|
|
2821
3252
|
endTime: 'EndTime',
|
|
2822
3253
|
executorId: 'ExecutorId',
|
|
3254
|
+
externalIpAddress: 'ExternalIpAddress',
|
|
2823
3255
|
hostName: 'HostName',
|
|
2824
3256
|
image: 'Image',
|
|
2825
3257
|
ipAddress: 'IpAddress',
|
|
2826
3258
|
jobId: 'JobId',
|
|
2827
3259
|
jobName: 'JobName',
|
|
3260
|
+
resource: 'Resource',
|
|
3261
|
+
resourceType: 'ResourceType',
|
|
3262
|
+
startTime: 'StartTime',
|
|
2828
3263
|
status: 'Status',
|
|
2829
3264
|
statusReason: 'StatusReason',
|
|
3265
|
+
tags: 'Tags',
|
|
2830
3266
|
taskName: 'TaskName',
|
|
3267
|
+
taskSustainable: 'TaskSustainable',
|
|
3268
|
+
vswitchId: 'VswitchId',
|
|
2831
3269
|
};
|
|
2832
3270
|
}
|
|
2833
3271
|
|
|
@@ -2837,14 +3275,21 @@ export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2837
3275
|
createTime: 'string',
|
|
2838
3276
|
endTime: 'string',
|
|
2839
3277
|
executorId: 'string',
|
|
3278
|
+
externalIpAddress: { 'type': 'array', 'itemType': 'string' },
|
|
2840
3279
|
hostName: { 'type': 'array', 'itemType': 'string' },
|
|
2841
3280
|
image: 'string',
|
|
2842
3281
|
ipAddress: { 'type': 'array', 'itemType': 'string' },
|
|
2843
3282
|
jobId: 'string',
|
|
2844
3283
|
jobName: 'string',
|
|
3284
|
+
resource: ListExecutorsResponseBodyExecutorsResource,
|
|
3285
|
+
resourceType: 'string',
|
|
3286
|
+
startTime: 'string',
|
|
2845
3287
|
status: 'string',
|
|
2846
3288
|
statusReason: 'string',
|
|
3289
|
+
tags: { 'type': 'array', 'itemType': ListExecutorsResponseBodyExecutorsTags },
|
|
2847
3290
|
taskName: 'string',
|
|
3291
|
+
taskSustainable: 'boolean',
|
|
3292
|
+
vswitchId: 'string',
|
|
2848
3293
|
};
|
|
2849
3294
|
}
|
|
2850
3295
|
|
|
@@ -2957,6 +3402,28 @@ export class ListJobExecutorsResponseBodyExecutorStatus extends $tea.Model {
|
|
|
2957
3402
|
}
|
|
2958
3403
|
}
|
|
2959
3404
|
|
|
3405
|
+
export class ListJobExecutorsResponseBodyExecutorsTags extends $tea.Model {
|
|
3406
|
+
tagKey?: string;
|
|
3407
|
+
tagValue?: string;
|
|
3408
|
+
static names(): { [key: string]: string } {
|
|
3409
|
+
return {
|
|
3410
|
+
tagKey: 'TagKey',
|
|
3411
|
+
tagValue: 'TagValue',
|
|
3412
|
+
};
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
static types(): { [key: string]: any } {
|
|
3416
|
+
return {
|
|
3417
|
+
tagKey: 'string',
|
|
3418
|
+
tagValue: 'string',
|
|
3419
|
+
};
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
constructor(map?: { [key: string]: any }) {
|
|
3423
|
+
super(map);
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
|
|
2960
3427
|
export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
|
|
2961
3428
|
/**
|
|
2962
3429
|
* @example
|
|
@@ -2974,8 +3441,10 @@ export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2974
3441
|
*/
|
|
2975
3442
|
endTime?: string;
|
|
2976
3443
|
executorId?: string;
|
|
3444
|
+
externalIpAddress?: string[];
|
|
2977
3445
|
hostName?: string[];
|
|
2978
3446
|
ipAddress?: string[];
|
|
3447
|
+
startTime?: string;
|
|
2979
3448
|
/**
|
|
2980
3449
|
* @example
|
|
2981
3450
|
* Running
|
|
@@ -2986,16 +3455,20 @@ export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
2986
3455
|
* Creating executor
|
|
2987
3456
|
*/
|
|
2988
3457
|
statusReason?: string;
|
|
3458
|
+
tags?: ListJobExecutorsResponseBodyExecutorsTags[];
|
|
2989
3459
|
static names(): { [key: string]: string } {
|
|
2990
3460
|
return {
|
|
2991
3461
|
arrayIndex: 'ArrayIndex',
|
|
2992
3462
|
createTime: 'CreateTime',
|
|
2993
3463
|
endTime: 'EndTime',
|
|
2994
3464
|
executorId: 'ExecutorId',
|
|
3465
|
+
externalIpAddress: 'ExternalIpAddress',
|
|
2995
3466
|
hostName: 'HostName',
|
|
2996
3467
|
ipAddress: 'IpAddress',
|
|
3468
|
+
startTime: 'StartTime',
|
|
2997
3469
|
status: 'Status',
|
|
2998
3470
|
statusReason: 'StatusReason',
|
|
3471
|
+
tags: 'Tags',
|
|
2999
3472
|
};
|
|
3000
3473
|
}
|
|
3001
3474
|
|
|
@@ -3005,10 +3478,13 @@ export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
|
|
|
3005
3478
|
createTime: 'string',
|
|
3006
3479
|
endTime: 'string',
|
|
3007
3480
|
executorId: 'string',
|
|
3481
|
+
externalIpAddress: { 'type': 'array', 'itemType': 'string' },
|
|
3008
3482
|
hostName: { 'type': 'array', 'itemType': 'string' },
|
|
3009
3483
|
ipAddress: { 'type': 'array', 'itemType': 'string' },
|
|
3484
|
+
startTime: 'string',
|
|
3010
3485
|
status: 'string',
|
|
3011
3486
|
statusReason: 'string',
|
|
3487
|
+
tags: { 'type': 'array', 'itemType': ListJobExecutorsResponseBodyExecutorsTags },
|
|
3012
3488
|
};
|
|
3013
3489
|
}
|
|
3014
3490
|
|
|
@@ -3098,6 +3574,28 @@ export class ListJobsRequestSortBy extends $tea.Model {
|
|
|
3098
3574
|
}
|
|
3099
3575
|
}
|
|
3100
3576
|
|
|
3577
|
+
export class ListJobsResponseBodyJobListTags extends $tea.Model {
|
|
3578
|
+
tagKey?: string;
|
|
3579
|
+
tagValue?: string;
|
|
3580
|
+
static names(): { [key: string]: string } {
|
|
3581
|
+
return {
|
|
3582
|
+
tagKey: 'TagKey',
|
|
3583
|
+
tagValue: 'TagValue',
|
|
3584
|
+
};
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3587
|
+
static types(): { [key: string]: any } {
|
|
3588
|
+
return {
|
|
3589
|
+
tagKey: 'string',
|
|
3590
|
+
tagValue: 'string',
|
|
3591
|
+
};
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
constructor(map?: { [key: string]: any }) {
|
|
3595
|
+
super(map);
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3101
3599
|
export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
3102
3600
|
/**
|
|
3103
3601
|
* @example
|
|
@@ -3144,6 +3642,7 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
|
3144
3642
|
* Running
|
|
3145
3643
|
*/
|
|
3146
3644
|
status?: string;
|
|
3645
|
+
tags?: ListJobsResponseBodyJobListTags[];
|
|
3147
3646
|
/**
|
|
3148
3647
|
* @example
|
|
3149
3648
|
* 1
|
|
@@ -3165,6 +3664,7 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
|
3165
3664
|
ownerUid: 'OwnerUid',
|
|
3166
3665
|
startTime: 'StartTime',
|
|
3167
3666
|
status: 'Status',
|
|
3667
|
+
tags: 'Tags',
|
|
3168
3668
|
taskCount: 'TaskCount',
|
|
3169
3669
|
taskSustainable: 'TaskSustainable',
|
|
3170
3670
|
};
|
|
@@ -3181,6 +3681,7 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
|
3181
3681
|
ownerUid: 'string',
|
|
3182
3682
|
startTime: 'string',
|
|
3183
3683
|
status: 'string',
|
|
3684
|
+
tags: { 'type': 'array', 'itemType': ListJobsResponseBodyJobListTags },
|
|
3184
3685
|
taskCount: 'number',
|
|
3185
3686
|
taskSustainable: 'boolean',
|
|
3186
3687
|
};
|
|
@@ -3191,6 +3692,132 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
|
3191
3692
|
}
|
|
3192
3693
|
}
|
|
3193
3694
|
|
|
3695
|
+
export class ListTagResourcesRequestTag extends $tea.Model {
|
|
3696
|
+
/**
|
|
3697
|
+
* @example
|
|
3698
|
+
* TestKey
|
|
3699
|
+
*/
|
|
3700
|
+
key?: string;
|
|
3701
|
+
/**
|
|
3702
|
+
* @example
|
|
3703
|
+
* TestValue
|
|
3704
|
+
*/
|
|
3705
|
+
value?: string;
|
|
3706
|
+
static names(): { [key: string]: string } {
|
|
3707
|
+
return {
|
|
3708
|
+
key: 'Key',
|
|
3709
|
+
value: 'Value',
|
|
3710
|
+
};
|
|
3711
|
+
}
|
|
3712
|
+
|
|
3713
|
+
static types(): { [key: string]: any } {
|
|
3714
|
+
return {
|
|
3715
|
+
key: 'string',
|
|
3716
|
+
value: 'string',
|
|
3717
|
+
};
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
constructor(map?: { [key: string]: any }) {
|
|
3721
|
+
super(map);
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
export class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
|
|
3726
|
+
/**
|
|
3727
|
+
* @example
|
|
3728
|
+
* job-xxxxxxxx
|
|
3729
|
+
*/
|
|
3730
|
+
resourceId?: string;
|
|
3731
|
+
/**
|
|
3732
|
+
* @example
|
|
3733
|
+
* Job
|
|
3734
|
+
*/
|
|
3735
|
+
resourceType?: string;
|
|
3736
|
+
/**
|
|
3737
|
+
* @example
|
|
3738
|
+
* TestKey
|
|
3739
|
+
*/
|
|
3740
|
+
tagKey?: string;
|
|
3741
|
+
/**
|
|
3742
|
+
* @example
|
|
3743
|
+
* TestValue
|
|
3744
|
+
*/
|
|
3745
|
+
tagValue?: string;
|
|
3746
|
+
static names(): { [key: string]: string } {
|
|
3747
|
+
return {
|
|
3748
|
+
resourceId: 'ResourceId',
|
|
3749
|
+
resourceType: 'ResourceType',
|
|
3750
|
+
tagKey: 'TagKey',
|
|
3751
|
+
tagValue: 'TagValue',
|
|
3752
|
+
};
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3755
|
+
static types(): { [key: string]: any } {
|
|
3756
|
+
return {
|
|
3757
|
+
resourceId: 'string',
|
|
3758
|
+
resourceType: 'string',
|
|
3759
|
+
tagKey: 'string',
|
|
3760
|
+
tagValue: 'string',
|
|
3761
|
+
};
|
|
3762
|
+
}
|
|
3763
|
+
|
|
3764
|
+
constructor(map?: { [key: string]: any }) {
|
|
3765
|
+
super(map);
|
|
3766
|
+
}
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
export class ListTagResourcesResponseBodyTagResources extends $tea.Model {
|
|
3770
|
+
tagResource?: ListTagResourcesResponseBodyTagResourcesTagResource[];
|
|
3771
|
+
static names(): { [key: string]: string } {
|
|
3772
|
+
return {
|
|
3773
|
+
tagResource: 'TagResource',
|
|
3774
|
+
};
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
static types(): { [key: string]: any } {
|
|
3778
|
+
return {
|
|
3779
|
+
tagResource: { 'type': 'array', 'itemType': ListTagResourcesResponseBodyTagResourcesTagResource },
|
|
3780
|
+
};
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3783
|
+
constructor(map?: { [key: string]: any }) {
|
|
3784
|
+
super(map);
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
export class TagResourcesRequestTag extends $tea.Model {
|
|
3789
|
+
/**
|
|
3790
|
+
* @remarks
|
|
3791
|
+
* This parameter is required.
|
|
3792
|
+
*
|
|
3793
|
+
* @example
|
|
3794
|
+
* TestKey
|
|
3795
|
+
*/
|
|
3796
|
+
key?: string;
|
|
3797
|
+
/**
|
|
3798
|
+
* @example
|
|
3799
|
+
* TestValue
|
|
3800
|
+
*/
|
|
3801
|
+
value?: string;
|
|
3802
|
+
static names(): { [key: string]: string } {
|
|
3803
|
+
return {
|
|
3804
|
+
key: 'Key',
|
|
3805
|
+
value: 'Value',
|
|
3806
|
+
};
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
static types(): { [key: string]: any } {
|
|
3810
|
+
return {
|
|
3811
|
+
key: 'string',
|
|
3812
|
+
value: 'string',
|
|
3813
|
+
};
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
constructor(map?: { [key: string]: any }) {
|
|
3817
|
+
super(map);
|
|
3818
|
+
}
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3194
3821
|
|
|
3195
3822
|
export default class Client extends OpenApi {
|
|
3196
3823
|
|
|
@@ -3242,6 +3869,10 @@ export default class Client extends OpenApi {
|
|
|
3242
3869
|
query["Description"] = request.description;
|
|
3243
3870
|
}
|
|
3244
3871
|
|
|
3872
|
+
if (!Util.isUnset(request.imageType)) {
|
|
3873
|
+
query["ImageType"] = request.imageType;
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3245
3876
|
if (!Util.isUnset(request.imageVersion)) {
|
|
3246
3877
|
query["ImageVersion"] = request.imageVersion;
|
|
3247
3878
|
}
|
|
@@ -3860,6 +4491,64 @@ export default class Client extends OpenApi {
|
|
|
3860
4491
|
return await this.listJobsWithOptions(request, runtime);
|
|
3861
4492
|
}
|
|
3862
4493
|
|
|
4494
|
+
/**
|
|
4495
|
+
* 查询一个或多个资源已经绑定的标签列表
|
|
4496
|
+
*
|
|
4497
|
+
* @param request - ListTagResourcesRequest
|
|
4498
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4499
|
+
* @returns ListTagResourcesResponse
|
|
4500
|
+
*/
|
|
4501
|
+
async listTagResourcesWithOptions(request: ListTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
|
|
4502
|
+
Util.validateModel(request);
|
|
4503
|
+
let query = { };
|
|
4504
|
+
if (!Util.isUnset(request.maxResult)) {
|
|
4505
|
+
query["MaxResult"] = request.maxResult;
|
|
4506
|
+
}
|
|
4507
|
+
|
|
4508
|
+
if (!Util.isUnset(request.nextToken)) {
|
|
4509
|
+
query["NextToken"] = request.nextToken;
|
|
4510
|
+
}
|
|
4511
|
+
|
|
4512
|
+
if (!Util.isUnset(request.resourceId)) {
|
|
4513
|
+
query["ResourceId"] = request.resourceId;
|
|
4514
|
+
}
|
|
4515
|
+
|
|
4516
|
+
if (!Util.isUnset(request.resourceType)) {
|
|
4517
|
+
query["ResourceType"] = request.resourceType;
|
|
4518
|
+
}
|
|
4519
|
+
|
|
4520
|
+
if (!Util.isUnset(request.tag)) {
|
|
4521
|
+
query["Tag"] = request.tag;
|
|
4522
|
+
}
|
|
4523
|
+
|
|
4524
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4525
|
+
query: OpenApiUtil.query(query),
|
|
4526
|
+
});
|
|
4527
|
+
let params = new $OpenApi.Params({
|
|
4528
|
+
action: "ListTagResources",
|
|
4529
|
+
version: "2023-07-01",
|
|
4530
|
+
protocol: "HTTPS",
|
|
4531
|
+
pathname: "/",
|
|
4532
|
+
method: "POST",
|
|
4533
|
+
authType: "AK",
|
|
4534
|
+
style: "RPC",
|
|
4535
|
+
reqBodyType: "formData",
|
|
4536
|
+
bodyType: "json",
|
|
4537
|
+
});
|
|
4538
|
+
return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
4539
|
+
}
|
|
4540
|
+
|
|
4541
|
+
/**
|
|
4542
|
+
* 查询一个或多个资源已经绑定的标签列表
|
|
4543
|
+
*
|
|
4544
|
+
* @param request - ListTagResourcesRequest
|
|
4545
|
+
* @returns ListTagResourcesResponse
|
|
4546
|
+
*/
|
|
4547
|
+
async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
|
|
4548
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
4549
|
+
return await this.listTagResourcesWithOptions(request, runtime);
|
|
4550
|
+
}
|
|
4551
|
+
|
|
3863
4552
|
/**
|
|
3864
4553
|
* 移除托管侧镜像信息。
|
|
3865
4554
|
*
|
|
@@ -3874,6 +4563,10 @@ export default class Client extends OpenApi {
|
|
|
3874
4563
|
query["ImageId"] = request.imageId;
|
|
3875
4564
|
}
|
|
3876
4565
|
|
|
4566
|
+
if (!Util.isUnset(request.imageType)) {
|
|
4567
|
+
query["ImageType"] = request.imageType;
|
|
4568
|
+
}
|
|
4569
|
+
|
|
3877
4570
|
let req = new $OpenApi.OpenApiRequest({
|
|
3878
4571
|
query: OpenApiUtil.query(query),
|
|
3879
4572
|
});
|
|
@@ -3902,4 +4595,108 @@ export default class Client extends OpenApi {
|
|
|
3902
4595
|
return await this.removeImageWithOptions(request, runtime);
|
|
3903
4596
|
}
|
|
3904
4597
|
|
|
4598
|
+
/**
|
|
4599
|
+
* 为指定的资源列表统一创建并绑定标签
|
|
4600
|
+
*
|
|
4601
|
+
* @param request - TagResourcesRequest
|
|
4602
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4603
|
+
* @returns TagResourcesResponse
|
|
4604
|
+
*/
|
|
4605
|
+
async tagResourcesWithOptions(request: TagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse> {
|
|
4606
|
+
Util.validateModel(request);
|
|
4607
|
+
let query = { };
|
|
4608
|
+
if (!Util.isUnset(request.resourceId)) {
|
|
4609
|
+
query["ResourceId"] = request.resourceId;
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
if (!Util.isUnset(request.resourceType)) {
|
|
4613
|
+
query["ResourceType"] = request.resourceType;
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
if (!Util.isUnset(request.tag)) {
|
|
4617
|
+
query["Tag"] = request.tag;
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4621
|
+
query: OpenApiUtil.query(query),
|
|
4622
|
+
});
|
|
4623
|
+
let params = new $OpenApi.Params({
|
|
4624
|
+
action: "TagResources",
|
|
4625
|
+
version: "2023-07-01",
|
|
4626
|
+
protocol: "HTTPS",
|
|
4627
|
+
pathname: "/",
|
|
4628
|
+
method: "POST",
|
|
4629
|
+
authType: "AK",
|
|
4630
|
+
style: "RPC",
|
|
4631
|
+
reqBodyType: "formData",
|
|
4632
|
+
bodyType: "json",
|
|
4633
|
+
});
|
|
4634
|
+
return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4637
|
+
/**
|
|
4638
|
+
* 为指定的资源列表统一创建并绑定标签
|
|
4639
|
+
*
|
|
4640
|
+
* @param request - TagResourcesRequest
|
|
4641
|
+
* @returns TagResourcesResponse
|
|
4642
|
+
*/
|
|
4643
|
+
async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
|
|
4644
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
4645
|
+
return await this.tagResourcesWithOptions(request, runtime);
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
/**
|
|
4649
|
+
* 为指定的ECS资源列表统一解绑标签
|
|
4650
|
+
*
|
|
4651
|
+
* @param request - UnTagResourcesRequest
|
|
4652
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4653
|
+
* @returns UnTagResourcesResponse
|
|
4654
|
+
*/
|
|
4655
|
+
async unTagResourcesWithOptions(request: UnTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<UnTagResourcesResponse> {
|
|
4656
|
+
Util.validateModel(request);
|
|
4657
|
+
let query = { };
|
|
4658
|
+
if (!Util.isUnset(request.all)) {
|
|
4659
|
+
query["All"] = request.all;
|
|
4660
|
+
}
|
|
4661
|
+
|
|
4662
|
+
if (!Util.isUnset(request.resourceId)) {
|
|
4663
|
+
query["ResourceId"] = request.resourceId;
|
|
4664
|
+
}
|
|
4665
|
+
|
|
4666
|
+
if (!Util.isUnset(request.resourceType)) {
|
|
4667
|
+
query["ResourceType"] = request.resourceType;
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4670
|
+
if (!Util.isUnset(request.tagKey)) {
|
|
4671
|
+
query["TagKey"] = request.tagKey;
|
|
4672
|
+
}
|
|
4673
|
+
|
|
4674
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4675
|
+
query: OpenApiUtil.query(query),
|
|
4676
|
+
});
|
|
4677
|
+
let params = new $OpenApi.Params({
|
|
4678
|
+
action: "UnTagResources",
|
|
4679
|
+
version: "2023-07-01",
|
|
4680
|
+
protocol: "HTTPS",
|
|
4681
|
+
pathname: "/",
|
|
4682
|
+
method: "POST",
|
|
4683
|
+
authType: "AK",
|
|
4684
|
+
style: "RPC",
|
|
4685
|
+
reqBodyType: "formData",
|
|
4686
|
+
bodyType: "json",
|
|
4687
|
+
});
|
|
4688
|
+
return $tea.cast<UnTagResourcesResponse>(await this.callApi(params, req, runtime), new UnTagResourcesResponse({}));
|
|
4689
|
+
}
|
|
4690
|
+
|
|
4691
|
+
/**
|
|
4692
|
+
* 为指定的ECS资源列表统一解绑标签
|
|
4693
|
+
*
|
|
4694
|
+
* @param request - UnTagResourcesRequest
|
|
4695
|
+
* @returns UnTagResourcesResponse
|
|
4696
|
+
*/
|
|
4697
|
+
async unTagResources(request: UnTagResourcesRequest): Promise<UnTagResourcesResponse> {
|
|
4698
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
4699
|
+
return await this.unTagResourcesWithOptions(request, runtime);
|
|
4700
|
+
}
|
|
4701
|
+
|
|
3905
4702
|
}
|