@alicloud/eas20210701 1.1.6 → 2.0.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 +305 -19
- package/dist/client.js +618 -159
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +765 -170
package/dist/client.js
CHANGED
|
@@ -19,6 +19,36 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
|
|
|
19
19
|
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
20
20
|
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
21
21
|
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
22
|
+
class Group extends $tea.Model {
|
|
23
|
+
constructor(map) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
static names() {
|
|
27
|
+
return {
|
|
28
|
+
accessToken: 'AccessToken',
|
|
29
|
+
clusterId: 'ClusterId',
|
|
30
|
+
createTime: 'CreateTime',
|
|
31
|
+
internetEndpoint: 'InternetEndpoint',
|
|
32
|
+
intranetEndpoint: 'IntranetEndpoint',
|
|
33
|
+
name: 'Name',
|
|
34
|
+
queueService: 'QueueService',
|
|
35
|
+
updateTime: 'UpdateTime',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
static types() {
|
|
39
|
+
return {
|
|
40
|
+
accessToken: 'string',
|
|
41
|
+
clusterId: 'string',
|
|
42
|
+
createTime: 'string',
|
|
43
|
+
internetEndpoint: 'string',
|
|
44
|
+
intranetEndpoint: 'string',
|
|
45
|
+
name: 'string',
|
|
46
|
+
queueService: 'string',
|
|
47
|
+
updateTime: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.Group = Group;
|
|
22
52
|
class Instance extends $tea.Model {
|
|
23
53
|
constructor(map) {
|
|
24
54
|
super(map);
|
|
@@ -105,12 +135,14 @@ class ResourceInstance extends $tea.Model {
|
|
|
105
135
|
}
|
|
106
136
|
static names() {
|
|
107
137
|
return {
|
|
138
|
+
arch: 'Arch',
|
|
108
139
|
autoRenewal: 'AutoRenewal',
|
|
109
140
|
chargeType: 'ChargeType',
|
|
110
141
|
createTime: 'CreateTime',
|
|
111
142
|
expiredTime: 'ExpiredTime',
|
|
112
143
|
instanceCpuCount: 'InstanceCpuCount',
|
|
113
144
|
instanceGpuCount: 'InstanceGpuCount',
|
|
145
|
+
instanceGpuMemory: 'InstanceGpuMemory',
|
|
114
146
|
instanceId: 'InstanceId',
|
|
115
147
|
instanceIp: 'InstanceIp',
|
|
116
148
|
instanceMemory: 'InstanceMemory',
|
|
@@ -120,16 +152,20 @@ class ResourceInstance extends $tea.Model {
|
|
|
120
152
|
instanceUsedCpu: 'InstanceUsedCpu',
|
|
121
153
|
instanceUsedGpu: 'InstanceUsedGpu',
|
|
122
154
|
instanceUsedMemory: 'InstanceUsedMemory',
|
|
155
|
+
region: 'Region',
|
|
156
|
+
zone: 'Zone',
|
|
123
157
|
};
|
|
124
158
|
}
|
|
125
159
|
static types() {
|
|
126
160
|
return {
|
|
161
|
+
arch: 'string',
|
|
127
162
|
autoRenewal: 'boolean',
|
|
128
163
|
chargeType: 'string',
|
|
129
164
|
createTime: 'string',
|
|
130
165
|
expiredTime: 'string',
|
|
131
166
|
instanceCpuCount: 'number',
|
|
132
167
|
instanceGpuCount: 'number',
|
|
168
|
+
instanceGpuMemory: 'string',
|
|
133
169
|
instanceId: 'string',
|
|
134
170
|
instanceIp: 'string',
|
|
135
171
|
instanceMemory: 'string',
|
|
@@ -139,6 +175,8 @@ class ResourceInstance extends $tea.Model {
|
|
|
139
175
|
instanceUsedCpu: 'number',
|
|
140
176
|
instanceUsedGpu: 'number',
|
|
141
177
|
instanceUsedMemory: 'string',
|
|
178
|
+
region: 'string',
|
|
179
|
+
zone: 'string',
|
|
142
180
|
};
|
|
143
181
|
}
|
|
144
182
|
}
|
|
@@ -208,11 +246,14 @@ class Service extends $tea.Model {
|
|
|
208
246
|
requestId: 'RequestId',
|
|
209
247
|
resource: 'Resource',
|
|
210
248
|
resourceAlias: 'ResourceAlias',
|
|
249
|
+
role: 'Role',
|
|
250
|
+
roleAttrs: 'RoleAttrs',
|
|
211
251
|
runningInstance: 'RunningInstance',
|
|
212
252
|
serviceConfig: 'ServiceConfig',
|
|
213
253
|
serviceGroup: 'ServiceGroup',
|
|
214
254
|
serviceId: 'ServiceId',
|
|
215
255
|
serviceName: 'ServiceName',
|
|
256
|
+
serviceUid: 'ServiceUid',
|
|
216
257
|
source: 'Source',
|
|
217
258
|
status: 'Status',
|
|
218
259
|
totalInstance: 'TotalInstance',
|
|
@@ -243,11 +284,14 @@ class Service extends $tea.Model {
|
|
|
243
284
|
requestId: 'string',
|
|
244
285
|
resource: 'string',
|
|
245
286
|
resourceAlias: 'string',
|
|
287
|
+
role: 'string',
|
|
288
|
+
roleAttrs: 'string',
|
|
246
289
|
runningInstance: 'number',
|
|
247
290
|
serviceConfig: 'string',
|
|
248
291
|
serviceGroup: 'string',
|
|
249
292
|
serviceId: 'string',
|
|
250
293
|
serviceName: 'string',
|
|
294
|
+
serviceUid: 'string',
|
|
251
295
|
source: 'string',
|
|
252
296
|
status: 'string',
|
|
253
297
|
totalInstance: 'number',
|
|
@@ -280,17 +324,17 @@ class CreateBenchmarkTaskResponseBody extends $tea.Model {
|
|
|
280
324
|
static names() {
|
|
281
325
|
return {
|
|
282
326
|
message: 'Message',
|
|
283
|
-
name: 'Name',
|
|
284
327
|
region: 'Region',
|
|
285
328
|
requestId: 'RequestId',
|
|
329
|
+
taskName: 'TaskName',
|
|
286
330
|
};
|
|
287
331
|
}
|
|
288
332
|
static types() {
|
|
289
333
|
return {
|
|
290
334
|
message: 'string',
|
|
291
|
-
name: 'string',
|
|
292
335
|
region: 'string',
|
|
293
336
|
requestId: 'string',
|
|
337
|
+
taskName: 'string',
|
|
294
338
|
};
|
|
295
339
|
}
|
|
296
340
|
}
|
|
@@ -571,14 +615,14 @@ class CreateServiceAutoScalerRequest extends $tea.Model {
|
|
|
571
615
|
return {
|
|
572
616
|
max: 'max',
|
|
573
617
|
min: 'min',
|
|
574
|
-
|
|
618
|
+
scaleStrategies: 'scaleStrategies',
|
|
575
619
|
};
|
|
576
620
|
}
|
|
577
621
|
static types() {
|
|
578
622
|
return {
|
|
579
623
|
max: 'number',
|
|
580
624
|
min: 'number',
|
|
581
|
-
|
|
625
|
+
scaleStrategies: { 'type': 'array', 'itemType': CreateServiceAutoScalerRequestScaleStrategies },
|
|
582
626
|
};
|
|
583
627
|
}
|
|
584
628
|
}
|
|
@@ -1156,6 +1200,7 @@ class DescribeBenchmarkTaskResponseBody extends $tea.Model {
|
|
|
1156
1200
|
availableAgent: 'AvailableAgent',
|
|
1157
1201
|
callerUid: 'CallerUid',
|
|
1158
1202
|
desiredAgent: 'DesiredAgent',
|
|
1203
|
+
endpoint: 'Endpoint',
|
|
1159
1204
|
message: 'Message',
|
|
1160
1205
|
parentUid: 'ParentUid',
|
|
1161
1206
|
reason: 'Reason',
|
|
@@ -1172,6 +1217,7 @@ class DescribeBenchmarkTaskResponseBody extends $tea.Model {
|
|
|
1172
1217
|
availableAgent: 'number',
|
|
1173
1218
|
callerUid: 'string',
|
|
1174
1219
|
desiredAgent: 'number',
|
|
1220
|
+
endpoint: 'string',
|
|
1175
1221
|
message: 'string',
|
|
1176
1222
|
parentUid: 'string',
|
|
1177
1223
|
reason: 'string',
|
|
@@ -1205,18 +1251,36 @@ class DescribeBenchmarkTaskResponse extends $tea.Model {
|
|
|
1205
1251
|
}
|
|
1206
1252
|
}
|
|
1207
1253
|
exports.DescribeBenchmarkTaskResponse = DescribeBenchmarkTaskResponse;
|
|
1254
|
+
class DescribeBenchmarkTaskReportRequest extends $tea.Model {
|
|
1255
|
+
constructor(map) {
|
|
1256
|
+
super(map);
|
|
1257
|
+
}
|
|
1258
|
+
static names() {
|
|
1259
|
+
return {
|
|
1260
|
+
reportType: 'ReportType',
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
static types() {
|
|
1264
|
+
return {
|
|
1265
|
+
reportType: 'string',
|
|
1266
|
+
};
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
exports.DescribeBenchmarkTaskReportRequest = DescribeBenchmarkTaskReportRequest;
|
|
1208
1270
|
class DescribeBenchmarkTaskReportResponseBody extends $tea.Model {
|
|
1209
1271
|
constructor(map) {
|
|
1210
1272
|
super(map);
|
|
1211
1273
|
}
|
|
1212
1274
|
static names() {
|
|
1213
1275
|
return {
|
|
1276
|
+
data: 'Data',
|
|
1214
1277
|
reportUrl: 'ReportUrl',
|
|
1215
1278
|
requestId: 'RequestId',
|
|
1216
1279
|
};
|
|
1217
1280
|
}
|
|
1218
1281
|
static types() {
|
|
1219
1282
|
return {
|
|
1283
|
+
data: 'any',
|
|
1220
1284
|
reportUrl: 'string',
|
|
1221
1285
|
requestId: 'string',
|
|
1222
1286
|
};
|
|
@@ -1243,6 +1307,26 @@ class DescribeBenchmarkTaskReportResponse extends $tea.Model {
|
|
|
1243
1307
|
}
|
|
1244
1308
|
}
|
|
1245
1309
|
exports.DescribeBenchmarkTaskReportResponse = DescribeBenchmarkTaskReportResponse;
|
|
1310
|
+
class DescribeGroupResponse extends $tea.Model {
|
|
1311
|
+
constructor(map) {
|
|
1312
|
+
super(map);
|
|
1313
|
+
}
|
|
1314
|
+
static names() {
|
|
1315
|
+
return {
|
|
1316
|
+
headers: 'headers',
|
|
1317
|
+
statusCode: 'statusCode',
|
|
1318
|
+
body: 'body',
|
|
1319
|
+
};
|
|
1320
|
+
}
|
|
1321
|
+
static types() {
|
|
1322
|
+
return {
|
|
1323
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1324
|
+
statusCode: 'number',
|
|
1325
|
+
body: Group,
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
exports.DescribeGroupResponse = DescribeGroupResponse;
|
|
1246
1330
|
class DescribeResourceResponseBody extends $tea.Model {
|
|
1247
1331
|
constructor(map) {
|
|
1248
1332
|
super(map);
|
|
@@ -1424,23 +1508,23 @@ class DescribeServiceAutoScalerResponseBody extends $tea.Model {
|
|
|
1424
1508
|
static names() {
|
|
1425
1509
|
return {
|
|
1426
1510
|
behavior: 'Behavior',
|
|
1427
|
-
|
|
1511
|
+
currentMetrics: 'CurrentMetrics',
|
|
1428
1512
|
maxReplica: 'MaxReplica',
|
|
1429
1513
|
minReplica: 'MinReplica',
|
|
1430
1514
|
requestId: 'RequestId',
|
|
1515
|
+
scaleStrategies: 'ScaleStrategies',
|
|
1431
1516
|
serviceName: 'ServiceName',
|
|
1432
|
-
strategies: 'Strategies',
|
|
1433
1517
|
};
|
|
1434
1518
|
}
|
|
1435
1519
|
static types() {
|
|
1436
1520
|
return {
|
|
1437
1521
|
behavior: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1438
|
-
|
|
1522
|
+
currentMetrics: { 'type': 'array', 'itemType': DescribeServiceAutoScalerResponseBodyCurrentMetrics },
|
|
1439
1523
|
maxReplica: 'number',
|
|
1440
1524
|
minReplica: 'number',
|
|
1441
1525
|
requestId: 'string',
|
|
1526
|
+
scaleStrategies: { 'type': 'array', 'itemType': DescribeServiceAutoScalerResponseBodyScaleStrategies },
|
|
1442
1527
|
serviceName: 'string',
|
|
1443
|
-
strategies: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1444
1528
|
};
|
|
1445
1529
|
}
|
|
1446
1530
|
}
|
|
@@ -1507,6 +1591,72 @@ class DescribeServiceCronScalerResponse extends $tea.Model {
|
|
|
1507
1591
|
}
|
|
1508
1592
|
}
|
|
1509
1593
|
exports.DescribeServiceCronScalerResponse = DescribeServiceCronScalerResponse;
|
|
1594
|
+
class DescribeServiceEventRequest extends $tea.Model {
|
|
1595
|
+
constructor(map) {
|
|
1596
|
+
super(map);
|
|
1597
|
+
}
|
|
1598
|
+
static names() {
|
|
1599
|
+
return {
|
|
1600
|
+
endTime: 'EndTime',
|
|
1601
|
+
pageNum: 'PageNum',
|
|
1602
|
+
pageSize: 'PageSize',
|
|
1603
|
+
startTime: 'StartTime',
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1606
|
+
static types() {
|
|
1607
|
+
return {
|
|
1608
|
+
endTime: 'string',
|
|
1609
|
+
pageNum: 'string',
|
|
1610
|
+
pageSize: 'string',
|
|
1611
|
+
startTime: 'string',
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
exports.DescribeServiceEventRequest = DescribeServiceEventRequest;
|
|
1616
|
+
class DescribeServiceEventResponseBody extends $tea.Model {
|
|
1617
|
+
constructor(map) {
|
|
1618
|
+
super(map);
|
|
1619
|
+
}
|
|
1620
|
+
static names() {
|
|
1621
|
+
return {
|
|
1622
|
+
events: 'Events',
|
|
1623
|
+
pageNum: 'PageNum',
|
|
1624
|
+
requestId: 'RequestId',
|
|
1625
|
+
totalCount: 'TotalCount',
|
|
1626
|
+
totalPageNum: 'TotalPageNum',
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
static types() {
|
|
1630
|
+
return {
|
|
1631
|
+
events: { 'type': 'array', 'itemType': DescribeServiceEventResponseBodyEvents },
|
|
1632
|
+
pageNum: 'number',
|
|
1633
|
+
requestId: 'string',
|
|
1634
|
+
totalCount: 'number',
|
|
1635
|
+
totalPageNum: 'number',
|
|
1636
|
+
};
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
exports.DescribeServiceEventResponseBody = DescribeServiceEventResponseBody;
|
|
1640
|
+
class DescribeServiceEventResponse extends $tea.Model {
|
|
1641
|
+
constructor(map) {
|
|
1642
|
+
super(map);
|
|
1643
|
+
}
|
|
1644
|
+
static names() {
|
|
1645
|
+
return {
|
|
1646
|
+
headers: 'headers',
|
|
1647
|
+
statusCode: 'statusCode',
|
|
1648
|
+
body: 'body',
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
static types() {
|
|
1652
|
+
return {
|
|
1653
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1654
|
+
statusCode: 'number',
|
|
1655
|
+
body: DescribeServiceEventResponseBody,
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
exports.DescribeServiceEventResponse = DescribeServiceEventResponse;
|
|
1510
1660
|
class DescribeServiceLogRequest extends $tea.Model {
|
|
1511
1661
|
constructor(map) {
|
|
1512
1662
|
super(map);
|
|
@@ -1619,20 +1769,48 @@ class DescribeServiceMirrorResponse extends $tea.Model {
|
|
|
1619
1769
|
}
|
|
1620
1770
|
}
|
|
1621
1771
|
exports.DescribeServiceMirrorResponse = DescribeServiceMirrorResponse;
|
|
1772
|
+
class ListBenchmarkTaskRequest extends $tea.Model {
|
|
1773
|
+
constructor(map) {
|
|
1774
|
+
super(map);
|
|
1775
|
+
}
|
|
1776
|
+
static names() {
|
|
1777
|
+
return {
|
|
1778
|
+
fileter: 'Fileter',
|
|
1779
|
+
pageNumber: 'PageNumber',
|
|
1780
|
+
pageSize: 'PageSize',
|
|
1781
|
+
serviceName: 'ServiceName',
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
static types() {
|
|
1785
|
+
return {
|
|
1786
|
+
fileter: 'string',
|
|
1787
|
+
pageNumber: 'string',
|
|
1788
|
+
pageSize: 'string',
|
|
1789
|
+
serviceName: 'string',
|
|
1790
|
+
};
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
exports.ListBenchmarkTaskRequest = ListBenchmarkTaskRequest;
|
|
1622
1794
|
class ListBenchmarkTaskResponseBody extends $tea.Model {
|
|
1623
1795
|
constructor(map) {
|
|
1624
1796
|
super(map);
|
|
1625
1797
|
}
|
|
1626
1798
|
static names() {
|
|
1627
1799
|
return {
|
|
1800
|
+
pageNumber: 'PageNumber',
|
|
1801
|
+
pageSize: 'PageSize',
|
|
1628
1802
|
requestId: 'RequestId',
|
|
1629
1803
|
tasks: 'Tasks',
|
|
1804
|
+
totalCount: 'TotalCount',
|
|
1630
1805
|
};
|
|
1631
1806
|
}
|
|
1632
1807
|
static types() {
|
|
1633
1808
|
return {
|
|
1809
|
+
pageNumber: 'number',
|
|
1810
|
+
pageSize: 'number',
|
|
1634
1811
|
requestId: 'string',
|
|
1635
1812
|
tasks: { 'type': 'array', 'itemType': ListBenchmarkTaskResponseBodyTasks },
|
|
1813
|
+
totalCount: 'number',
|
|
1636
1814
|
};
|
|
1637
1815
|
}
|
|
1638
1816
|
}
|
|
@@ -1657,6 +1835,70 @@ class ListBenchmarkTaskResponse extends $tea.Model {
|
|
|
1657
1835
|
}
|
|
1658
1836
|
}
|
|
1659
1837
|
exports.ListBenchmarkTaskResponse = ListBenchmarkTaskResponse;
|
|
1838
|
+
class ListGroupsRequest extends $tea.Model {
|
|
1839
|
+
constructor(map) {
|
|
1840
|
+
super(map);
|
|
1841
|
+
}
|
|
1842
|
+
static names() {
|
|
1843
|
+
return {
|
|
1844
|
+
filter: 'Filter',
|
|
1845
|
+
pageNumber: 'PageNumber',
|
|
1846
|
+
pageSize: 'PageSize',
|
|
1847
|
+
};
|
|
1848
|
+
}
|
|
1849
|
+
static types() {
|
|
1850
|
+
return {
|
|
1851
|
+
filter: 'string',
|
|
1852
|
+
pageNumber: 'string',
|
|
1853
|
+
pageSize: 'string',
|
|
1854
|
+
};
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
exports.ListGroupsRequest = ListGroupsRequest;
|
|
1858
|
+
class ListGroupsResponseBody extends $tea.Model {
|
|
1859
|
+
constructor(map) {
|
|
1860
|
+
super(map);
|
|
1861
|
+
}
|
|
1862
|
+
static names() {
|
|
1863
|
+
return {
|
|
1864
|
+
groups: 'Groups',
|
|
1865
|
+
pageNumber: 'PageNumber',
|
|
1866
|
+
pageSize: 'PageSize',
|
|
1867
|
+
requestId: 'RequestId',
|
|
1868
|
+
totalCount: 'TotalCount',
|
|
1869
|
+
};
|
|
1870
|
+
}
|
|
1871
|
+
static types() {
|
|
1872
|
+
return {
|
|
1873
|
+
groups: { 'type': 'array', 'itemType': Group },
|
|
1874
|
+
pageNumber: 'number',
|
|
1875
|
+
pageSize: 'number',
|
|
1876
|
+
requestId: 'string',
|
|
1877
|
+
totalCount: 'number',
|
|
1878
|
+
};
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
exports.ListGroupsResponseBody = ListGroupsResponseBody;
|
|
1882
|
+
class ListGroupsResponse extends $tea.Model {
|
|
1883
|
+
constructor(map) {
|
|
1884
|
+
super(map);
|
|
1885
|
+
}
|
|
1886
|
+
static names() {
|
|
1887
|
+
return {
|
|
1888
|
+
headers: 'headers',
|
|
1889
|
+
statusCode: 'statusCode',
|
|
1890
|
+
body: 'body',
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
static types() {
|
|
1894
|
+
return {
|
|
1895
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1896
|
+
statusCode: 'number',
|
|
1897
|
+
body: ListGroupsResponseBody,
|
|
1898
|
+
};
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
exports.ListGroupsResponse = ListGroupsResponse;
|
|
1660
1902
|
class ListResourceInstanceWorkerRequest extends $tea.Model {
|
|
1661
1903
|
constructor(map) {
|
|
1662
1904
|
super(map);
|
|
@@ -1969,6 +2211,68 @@ class ListServiceInstancesResponse extends $tea.Model {
|
|
|
1969
2211
|
}
|
|
1970
2212
|
}
|
|
1971
2213
|
exports.ListServiceInstancesResponse = ListServiceInstancesResponse;
|
|
2214
|
+
class ListServiceVersionsRequest extends $tea.Model {
|
|
2215
|
+
constructor(map) {
|
|
2216
|
+
super(map);
|
|
2217
|
+
}
|
|
2218
|
+
static names() {
|
|
2219
|
+
return {
|
|
2220
|
+
pageNumber: 'PageNumber',
|
|
2221
|
+
pageSize: 'PageSize',
|
|
2222
|
+
};
|
|
2223
|
+
}
|
|
2224
|
+
static types() {
|
|
2225
|
+
return {
|
|
2226
|
+
pageNumber: 'number',
|
|
2227
|
+
pageSize: 'number',
|
|
2228
|
+
};
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
exports.ListServiceVersionsRequest = ListServiceVersionsRequest;
|
|
2232
|
+
class ListServiceVersionsResponseBody extends $tea.Model {
|
|
2233
|
+
constructor(map) {
|
|
2234
|
+
super(map);
|
|
2235
|
+
}
|
|
2236
|
+
static names() {
|
|
2237
|
+
return {
|
|
2238
|
+
pageNumber: 'PageNumber',
|
|
2239
|
+
pageSize: 'PageSize',
|
|
2240
|
+
requestId: 'RequestId',
|
|
2241
|
+
totalCount: 'TotalCount',
|
|
2242
|
+
versions: 'Versions',
|
|
2243
|
+
};
|
|
2244
|
+
}
|
|
2245
|
+
static types() {
|
|
2246
|
+
return {
|
|
2247
|
+
pageNumber: 'number',
|
|
2248
|
+
pageSize: 'number',
|
|
2249
|
+
requestId: 'string',
|
|
2250
|
+
totalCount: 'number',
|
|
2251
|
+
versions: { 'type': 'array', 'itemType': ListServiceVersionsResponseBodyVersions },
|
|
2252
|
+
};
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
exports.ListServiceVersionsResponseBody = ListServiceVersionsResponseBody;
|
|
2256
|
+
class ListServiceVersionsResponse extends $tea.Model {
|
|
2257
|
+
constructor(map) {
|
|
2258
|
+
super(map);
|
|
2259
|
+
}
|
|
2260
|
+
static names() {
|
|
2261
|
+
return {
|
|
2262
|
+
headers: 'headers',
|
|
2263
|
+
statusCode: 'statusCode',
|
|
2264
|
+
body: 'body',
|
|
2265
|
+
};
|
|
2266
|
+
}
|
|
2267
|
+
static types() {
|
|
2268
|
+
return {
|
|
2269
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2270
|
+
statusCode: 'number',
|
|
2271
|
+
body: ListServiceVersionsResponseBody,
|
|
2272
|
+
};
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
exports.ListServiceVersionsResponse = ListServiceVersionsResponse;
|
|
1972
2276
|
class ListServicesRequest extends $tea.Model {
|
|
1973
2277
|
constructor(map) {
|
|
1974
2278
|
super(map);
|
|
@@ -1976,6 +2280,7 @@ class ListServicesRequest extends $tea.Model {
|
|
|
1976
2280
|
static names() {
|
|
1977
2281
|
return {
|
|
1978
2282
|
filter: 'Filter',
|
|
2283
|
+
groupName: 'GroupName',
|
|
1979
2284
|
order: 'Order',
|
|
1980
2285
|
pageNumber: 'PageNumber',
|
|
1981
2286
|
pageSize: 'PageSize',
|
|
@@ -1985,6 +2290,7 @@ class ListServicesRequest extends $tea.Model {
|
|
|
1985
2290
|
static types() {
|
|
1986
2291
|
return {
|
|
1987
2292
|
filter: 'string',
|
|
2293
|
+
groupName: 'string',
|
|
1988
2294
|
order: 'string',
|
|
1989
2295
|
pageNumber: 'number',
|
|
1990
2296
|
pageSize: 'number',
|
|
@@ -2477,14 +2783,14 @@ class UpdateServiceAutoScalerRequest extends $tea.Model {
|
|
|
2477
2783
|
return {
|
|
2478
2784
|
max: 'max',
|
|
2479
2785
|
min: 'min',
|
|
2480
|
-
|
|
2786
|
+
scaleStrategies: 'scaleStrategies',
|
|
2481
2787
|
};
|
|
2482
2788
|
}
|
|
2483
2789
|
static types() {
|
|
2484
2790
|
return {
|
|
2485
2791
|
max: 'number',
|
|
2486
2792
|
min: 'number',
|
|
2487
|
-
|
|
2793
|
+
scaleStrategies: { 'type': 'array', 'itemType': UpdateServiceAutoScalerRequestScaleStrategies },
|
|
2488
2794
|
};
|
|
2489
2795
|
}
|
|
2490
2796
|
}
|
|
@@ -2693,24 +2999,26 @@ class UpdateServiceVersionResponse extends $tea.Model {
|
|
|
2693
2999
|
}
|
|
2694
3000
|
}
|
|
2695
3001
|
exports.UpdateServiceVersionResponse = UpdateServiceVersionResponse;
|
|
2696
|
-
class
|
|
3002
|
+
class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
|
|
2697
3003
|
constructor(map) {
|
|
2698
3004
|
super(map);
|
|
2699
3005
|
}
|
|
2700
3006
|
static names() {
|
|
2701
3007
|
return {
|
|
2702
|
-
|
|
2703
|
-
|
|
3008
|
+
metricName: 'metricName',
|
|
3009
|
+
service: 'service',
|
|
3010
|
+
threshold: 'threshold',
|
|
2704
3011
|
};
|
|
2705
3012
|
}
|
|
2706
3013
|
static types() {
|
|
2707
3014
|
return {
|
|
2708
|
-
|
|
2709
|
-
|
|
3015
|
+
metricName: 'string',
|
|
3016
|
+
service: 'string',
|
|
3017
|
+
threshold: 'number',
|
|
2710
3018
|
};
|
|
2711
3019
|
}
|
|
2712
3020
|
}
|
|
2713
|
-
exports.
|
|
3021
|
+
exports.CreateServiceAutoScalerRequestScaleStrategies = CreateServiceAutoScalerRequestScaleStrategies;
|
|
2714
3022
|
class CreateServiceCronScalerRequestScaleJobs extends $tea.Model {
|
|
2715
3023
|
constructor(map) {
|
|
2716
3024
|
super(map);
|
|
@@ -2731,6 +3039,46 @@ class CreateServiceCronScalerRequestScaleJobs extends $tea.Model {
|
|
|
2731
3039
|
}
|
|
2732
3040
|
}
|
|
2733
3041
|
exports.CreateServiceCronScalerRequestScaleJobs = CreateServiceCronScalerRequestScaleJobs;
|
|
3042
|
+
class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $tea.Model {
|
|
3043
|
+
constructor(map) {
|
|
3044
|
+
super(map);
|
|
3045
|
+
}
|
|
3046
|
+
static names() {
|
|
3047
|
+
return {
|
|
3048
|
+
metricName: 'metricName',
|
|
3049
|
+
service: 'service',
|
|
3050
|
+
value: 'value',
|
|
3051
|
+
};
|
|
3052
|
+
}
|
|
3053
|
+
static types() {
|
|
3054
|
+
return {
|
|
3055
|
+
metricName: 'string',
|
|
3056
|
+
service: 'string',
|
|
3057
|
+
value: 'number',
|
|
3058
|
+
};
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
exports.DescribeServiceAutoScalerResponseBodyCurrentMetrics = DescribeServiceAutoScalerResponseBodyCurrentMetrics;
|
|
3062
|
+
class DescribeServiceAutoScalerResponseBodyScaleStrategies extends $tea.Model {
|
|
3063
|
+
constructor(map) {
|
|
3064
|
+
super(map);
|
|
3065
|
+
}
|
|
3066
|
+
static names() {
|
|
3067
|
+
return {
|
|
3068
|
+
metricName: 'metricName',
|
|
3069
|
+
service: 'service',
|
|
3070
|
+
threshold: 'threshold',
|
|
3071
|
+
};
|
|
3072
|
+
}
|
|
3073
|
+
static types() {
|
|
3074
|
+
return {
|
|
3075
|
+
metricName: 'string',
|
|
3076
|
+
service: 'string',
|
|
3077
|
+
threshold: 'number',
|
|
3078
|
+
};
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
exports.DescribeServiceAutoScalerResponseBodyScaleStrategies = DescribeServiceAutoScalerResponseBodyScaleStrategies;
|
|
2734
3082
|
class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
|
|
2735
3083
|
constructor(map) {
|
|
2736
3084
|
super(map);
|
|
@@ -2759,6 +3107,28 @@ class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
|
|
|
2759
3107
|
}
|
|
2760
3108
|
}
|
|
2761
3109
|
exports.DescribeServiceCronScalerResponseBodyScaleJobs = DescribeServiceCronScalerResponseBodyScaleJobs;
|
|
3110
|
+
class DescribeServiceEventResponseBodyEvents extends $tea.Model {
|
|
3111
|
+
constructor(map) {
|
|
3112
|
+
super(map);
|
|
3113
|
+
}
|
|
3114
|
+
static names() {
|
|
3115
|
+
return {
|
|
3116
|
+
message: 'Message',
|
|
3117
|
+
reason: 'Reason',
|
|
3118
|
+
time: 'Time',
|
|
3119
|
+
type: 'Type',
|
|
3120
|
+
};
|
|
3121
|
+
}
|
|
3122
|
+
static types() {
|
|
3123
|
+
return {
|
|
3124
|
+
message: 'string',
|
|
3125
|
+
reason: 'string',
|
|
3126
|
+
time: 'string',
|
|
3127
|
+
type: 'string',
|
|
3128
|
+
};
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
exports.DescribeServiceEventResponseBodyEvents = DescribeServiceEventResponseBodyEvents;
|
|
2762
3132
|
class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
|
|
2763
3133
|
constructor(map) {
|
|
2764
3134
|
super(map);
|
|
@@ -2791,24 +3161,50 @@ class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
|
|
|
2791
3161
|
}
|
|
2792
3162
|
}
|
|
2793
3163
|
exports.ListBenchmarkTaskResponseBodyTasks = ListBenchmarkTaskResponseBodyTasks;
|
|
2794
|
-
class
|
|
3164
|
+
class ListServiceVersionsResponseBodyVersions extends $tea.Model {
|
|
3165
|
+
constructor(map) {
|
|
3166
|
+
super(map);
|
|
3167
|
+
}
|
|
3168
|
+
static names() {
|
|
3169
|
+
return {
|
|
3170
|
+
buildTime: 'BuildTime',
|
|
3171
|
+
imageAvailable: 'ImageAvailable',
|
|
3172
|
+
imageId: 'ImageId',
|
|
3173
|
+
message: 'Message',
|
|
3174
|
+
serviceRunnable: 'ServiceRunnable',
|
|
3175
|
+
};
|
|
3176
|
+
}
|
|
3177
|
+
static types() {
|
|
3178
|
+
return {
|
|
3179
|
+
buildTime: 'string',
|
|
3180
|
+
imageAvailable: 'string',
|
|
3181
|
+
imageId: 'number',
|
|
3182
|
+
message: 'string',
|
|
3183
|
+
serviceRunnable: 'string',
|
|
3184
|
+
};
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
exports.ListServiceVersionsResponseBodyVersions = ListServiceVersionsResponseBodyVersions;
|
|
3188
|
+
class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
|
|
2795
3189
|
constructor(map) {
|
|
2796
3190
|
super(map);
|
|
2797
3191
|
}
|
|
2798
3192
|
static names() {
|
|
2799
3193
|
return {
|
|
2800
|
-
|
|
2801
|
-
|
|
3194
|
+
metricName: 'metricName',
|
|
3195
|
+
service: 'service',
|
|
3196
|
+
threshold: 'threshold',
|
|
2802
3197
|
};
|
|
2803
3198
|
}
|
|
2804
3199
|
static types() {
|
|
2805
3200
|
return {
|
|
2806
|
-
|
|
2807
|
-
|
|
3201
|
+
metricName: 'string',
|
|
3202
|
+
service: 'string',
|
|
3203
|
+
threshold: 'number',
|
|
2808
3204
|
};
|
|
2809
3205
|
}
|
|
2810
3206
|
}
|
|
2811
|
-
exports.
|
|
3207
|
+
exports.UpdateServiceAutoScalerRequestScaleStrategies = UpdateServiceAutoScalerRequestScaleStrategies;
|
|
2812
3208
|
class UpdateServiceCronScalerRequestScaleJobs extends $tea.Model {
|
|
2813
3209
|
constructor(map) {
|
|
2814
3210
|
super(map);
|
|
@@ -2930,8 +3326,6 @@ class Client extends openapi_client_1.default {
|
|
|
2930
3326
|
}
|
|
2931
3327
|
async createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
|
|
2932
3328
|
tea_util_1.default.validateModel(request);
|
|
2933
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
2934
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
2935
3329
|
let body = {};
|
|
2936
3330
|
if (!tea_util_1.default.isUnset(request.autoRenewal)) {
|
|
2937
3331
|
body["AutoRenewal"] = request.autoRenewal;
|
|
@@ -2956,7 +3350,7 @@ class Client extends openapi_client_1.default {
|
|
|
2956
3350
|
action: "CreateResourceInstances",
|
|
2957
3351
|
version: "2021-07-01",
|
|
2958
3352
|
protocol: "HTTPS",
|
|
2959
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/instances`,
|
|
3353
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/instances`,
|
|
2960
3354
|
method: "POST",
|
|
2961
3355
|
authType: "AK",
|
|
2962
3356
|
style: "ROA",
|
|
@@ -2972,8 +3366,6 @@ class Client extends openapi_client_1.default {
|
|
|
2972
3366
|
}
|
|
2973
3367
|
async createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime) {
|
|
2974
3368
|
tea_util_1.default.validateModel(request);
|
|
2975
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
2976
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
2977
3369
|
let body = {};
|
|
2978
3370
|
if (!tea_util_1.default.isUnset(request.logStore)) {
|
|
2979
3371
|
body["LogStore"] = request.logStore;
|
|
@@ -2989,7 +3381,7 @@ class Client extends openapi_client_1.default {
|
|
|
2989
3381
|
action: "CreateResourceLog",
|
|
2990
3382
|
version: "2021-07-01",
|
|
2991
3383
|
protocol: "HTTPS",
|
|
2992
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/log`,
|
|
3384
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/log`,
|
|
2993
3385
|
method: "POST",
|
|
2994
3386
|
authType: "AK",
|
|
2995
3387
|
style: "ROA",
|
|
@@ -3029,8 +3421,6 @@ class Client extends openapi_client_1.default {
|
|
|
3029
3421
|
}
|
|
3030
3422
|
async createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
3031
3423
|
tea_util_1.default.validateModel(request);
|
|
3032
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3033
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3034
3424
|
let body = {};
|
|
3035
3425
|
if (!tea_util_1.default.isUnset(request.max)) {
|
|
3036
3426
|
body["max"] = request.max;
|
|
@@ -3038,8 +3428,8 @@ class Client extends openapi_client_1.default {
|
|
|
3038
3428
|
if (!tea_util_1.default.isUnset(request.min)) {
|
|
3039
3429
|
body["min"] = request.min;
|
|
3040
3430
|
}
|
|
3041
|
-
if (!tea_util_1.default.isUnset(
|
|
3042
|
-
body["
|
|
3431
|
+
if (!tea_util_1.default.isUnset(request.scaleStrategies)) {
|
|
3432
|
+
body["scaleStrategies"] = request.scaleStrategies;
|
|
3043
3433
|
}
|
|
3044
3434
|
let req = new $OpenApi.OpenApiRequest({
|
|
3045
3435
|
headers: headers,
|
|
@@ -3049,7 +3439,7 @@ class Client extends openapi_client_1.default {
|
|
|
3049
3439
|
action: "CreateServiceAutoScaler",
|
|
3050
3440
|
version: "2021-07-01",
|
|
3051
3441
|
protocol: "HTTPS",
|
|
3052
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/autoscaler`,
|
|
3442
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/autoscaler`,
|
|
3053
3443
|
method: "POST",
|
|
3054
3444
|
authType: "AK",
|
|
3055
3445
|
style: "ROA",
|
|
@@ -3065,8 +3455,6 @@ class Client extends openapi_client_1.default {
|
|
|
3065
3455
|
}
|
|
3066
3456
|
async createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
3067
3457
|
tea_util_1.default.validateModel(request);
|
|
3068
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3069
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3070
3458
|
let body = {};
|
|
3071
3459
|
if (!tea_util_1.default.isUnset(request.excludeDates)) {
|
|
3072
3460
|
body["ExcludeDates"] = request.excludeDates;
|
|
@@ -3082,7 +3470,7 @@ class Client extends openapi_client_1.default {
|
|
|
3082
3470
|
action: "CreateServiceCronScaler",
|
|
3083
3471
|
version: "2021-07-01",
|
|
3084
3472
|
protocol: "HTTPS",
|
|
3085
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/cronscaler`,
|
|
3473
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/cronscaler`,
|
|
3086
3474
|
method: "POST",
|
|
3087
3475
|
authType: "AK",
|
|
3088
3476
|
style: "ROA",
|
|
@@ -3098,8 +3486,6 @@ class Client extends openapi_client_1.default {
|
|
|
3098
3486
|
}
|
|
3099
3487
|
async createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
3100
3488
|
tea_util_1.default.validateModel(request);
|
|
3101
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3102
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3103
3489
|
let body = {};
|
|
3104
3490
|
if (!tea_util_1.default.isUnset(request.ratio)) {
|
|
3105
3491
|
body["Ratio"] = request.ratio;
|
|
@@ -3115,7 +3501,7 @@ class Client extends openapi_client_1.default {
|
|
|
3115
3501
|
action: "CreateServiceMirror",
|
|
3116
3502
|
version: "2021-07-01",
|
|
3117
3503
|
protocol: "HTTPS",
|
|
3118
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/mirror`,
|
|
3504
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/mirror`,
|
|
3119
3505
|
method: "POST",
|
|
3120
3506
|
authType: "AK",
|
|
3121
3507
|
style: "ROA",
|
|
@@ -3130,8 +3516,6 @@ class Client extends openapi_client_1.default {
|
|
|
3130
3516
|
return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
3131
3517
|
}
|
|
3132
3518
|
async deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
|
|
3133
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3134
|
-
TaskName = openapi_util_1.default.getEncodeParam(TaskName);
|
|
3135
3519
|
let req = new $OpenApi.OpenApiRequest({
|
|
3136
3520
|
headers: headers,
|
|
3137
3521
|
});
|
|
@@ -3139,7 +3523,7 @@ class Client extends openapi_client_1.default {
|
|
|
3139
3523
|
action: "DeleteBenchmarkTask",
|
|
3140
3524
|
version: "2021-07-01",
|
|
3141
3525
|
protocol: "HTTPS",
|
|
3142
|
-
pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
|
|
3526
|
+
pathname: `/api/v2/benchmark-tasks/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(TaskName)}`,
|
|
3143
3527
|
method: "DELETE",
|
|
3144
3528
|
authType: "AK",
|
|
3145
3529
|
style: "ROA",
|
|
@@ -3154,8 +3538,6 @@ class Client extends openapi_client_1.default {
|
|
|
3154
3538
|
return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
3155
3539
|
}
|
|
3156
3540
|
async deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
|
|
3157
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3158
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3159
3541
|
let req = new $OpenApi.OpenApiRequest({
|
|
3160
3542
|
headers: headers,
|
|
3161
3543
|
});
|
|
@@ -3163,7 +3545,7 @@ class Client extends openapi_client_1.default {
|
|
|
3163
3545
|
action: "DeleteResource",
|
|
3164
3546
|
version: "2021-07-01",
|
|
3165
3547
|
protocol: "HTTPS",
|
|
3166
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}`,
|
|
3548
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}`,
|
|
3167
3549
|
method: "DELETE",
|
|
3168
3550
|
authType: "AK",
|
|
3169
3551
|
style: "ROA",
|
|
@@ -3178,8 +3560,6 @@ class Client extends openapi_client_1.default {
|
|
|
3178
3560
|
return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
3179
3561
|
}
|
|
3180
3562
|
async deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
|
|
3181
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3182
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3183
3563
|
let req = new $OpenApi.OpenApiRequest({
|
|
3184
3564
|
headers: headers,
|
|
3185
3565
|
});
|
|
@@ -3187,7 +3567,7 @@ class Client extends openapi_client_1.default {
|
|
|
3187
3567
|
action: "DeleteResourceDLink",
|
|
3188
3568
|
version: "2021-07-01",
|
|
3189
3569
|
protocol: "HTTPS",
|
|
3190
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/dlink`,
|
|
3570
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/dlink`,
|
|
3191
3571
|
method: "DELETE",
|
|
3192
3572
|
authType: "AK",
|
|
3193
3573
|
style: "ROA",
|
|
@@ -3203,8 +3583,6 @@ class Client extends openapi_client_1.default {
|
|
|
3203
3583
|
}
|
|
3204
3584
|
async deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
|
|
3205
3585
|
tea_util_1.default.validateModel(request);
|
|
3206
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3207
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3208
3586
|
let query = {};
|
|
3209
3587
|
if (!tea_util_1.default.isUnset(request.allFailed)) {
|
|
3210
3588
|
query["AllFailed"] = request.allFailed;
|
|
@@ -3220,7 +3598,7 @@ class Client extends openapi_client_1.default {
|
|
|
3220
3598
|
action: "DeleteResourceInstances",
|
|
3221
3599
|
version: "2021-07-01",
|
|
3222
3600
|
protocol: "HTTPS",
|
|
3223
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/instances`,
|
|
3601
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/instances`,
|
|
3224
3602
|
method: "DELETE",
|
|
3225
3603
|
authType: "AK",
|
|
3226
3604
|
style: "ROA",
|
|
@@ -3235,8 +3613,6 @@ class Client extends openapi_client_1.default {
|
|
|
3235
3613
|
return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
3236
3614
|
}
|
|
3237
3615
|
async deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
|
|
3238
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3239
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3240
3616
|
let req = new $OpenApi.OpenApiRequest({
|
|
3241
3617
|
headers: headers,
|
|
3242
3618
|
});
|
|
@@ -3244,7 +3620,7 @@ class Client extends openapi_client_1.default {
|
|
|
3244
3620
|
action: "DeleteResourceLog",
|
|
3245
3621
|
version: "2021-07-01",
|
|
3246
3622
|
protocol: "HTTPS",
|
|
3247
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/log`,
|
|
3623
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/log`,
|
|
3248
3624
|
method: "DELETE",
|
|
3249
3625
|
authType: "AK",
|
|
3250
3626
|
style: "ROA",
|
|
@@ -3259,8 +3635,6 @@ class Client extends openapi_client_1.default {
|
|
|
3259
3635
|
return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3260
3636
|
}
|
|
3261
3637
|
async deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3262
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3263
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3264
3638
|
let req = new $OpenApi.OpenApiRequest({
|
|
3265
3639
|
headers: headers,
|
|
3266
3640
|
});
|
|
@@ -3268,7 +3642,7 @@ class Client extends openapi_client_1.default {
|
|
|
3268
3642
|
action: "DeleteService",
|
|
3269
3643
|
version: "2021-07-01",
|
|
3270
3644
|
protocol: "HTTPS",
|
|
3271
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}`,
|
|
3645
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}`,
|
|
3272
3646
|
method: "DELETE",
|
|
3273
3647
|
authType: "AK",
|
|
3274
3648
|
style: "ROA",
|
|
@@ -3283,8 +3657,6 @@ class Client extends openapi_client_1.default {
|
|
|
3283
3657
|
return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3284
3658
|
}
|
|
3285
3659
|
async deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3286
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3287
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3288
3660
|
let req = new $OpenApi.OpenApiRequest({
|
|
3289
3661
|
headers: headers,
|
|
3290
3662
|
});
|
|
@@ -3292,7 +3664,7 @@ class Client extends openapi_client_1.default {
|
|
|
3292
3664
|
action: "DeleteServiceAutoScaler",
|
|
3293
3665
|
version: "2021-07-01",
|
|
3294
3666
|
protocol: "HTTPS",
|
|
3295
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/autoscaler`,
|
|
3667
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/autoscaler`,
|
|
3296
3668
|
method: "DELETE",
|
|
3297
3669
|
authType: "AK",
|
|
3298
3670
|
style: "ROA",
|
|
@@ -3307,8 +3679,6 @@ class Client extends openapi_client_1.default {
|
|
|
3307
3679
|
return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3308
3680
|
}
|
|
3309
3681
|
async deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3310
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3311
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3312
3682
|
let req = new $OpenApi.OpenApiRequest({
|
|
3313
3683
|
headers: headers,
|
|
3314
3684
|
});
|
|
@@ -3316,7 +3686,7 @@ class Client extends openapi_client_1.default {
|
|
|
3316
3686
|
action: "DeleteServiceCronScaler",
|
|
3317
3687
|
version: "2021-07-01",
|
|
3318
3688
|
protocol: "HTTPS",
|
|
3319
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/cronscaler`,
|
|
3689
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/cronscaler`,
|
|
3320
3690
|
method: "DELETE",
|
|
3321
3691
|
authType: "AK",
|
|
3322
3692
|
style: "ROA",
|
|
@@ -3332,8 +3702,6 @@ class Client extends openapi_client_1.default {
|
|
|
3332
3702
|
}
|
|
3333
3703
|
async deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
3334
3704
|
tea_util_1.default.validateModel(request);
|
|
3335
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3336
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3337
3705
|
let query = {};
|
|
3338
3706
|
if (!tea_util_1.default.isUnset(request.instanceList)) {
|
|
3339
3707
|
query["InstanceList"] = request.instanceList;
|
|
@@ -3346,7 +3714,7 @@ class Client extends openapi_client_1.default {
|
|
|
3346
3714
|
action: "DeleteServiceInstances",
|
|
3347
3715
|
version: "2021-07-01",
|
|
3348
3716
|
protocol: "HTTPS",
|
|
3349
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/instances`,
|
|
3717
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/instances`,
|
|
3350
3718
|
method: "DELETE",
|
|
3351
3719
|
authType: "AK",
|
|
3352
3720
|
style: "ROA",
|
|
@@ -3361,8 +3729,6 @@ class Client extends openapi_client_1.default {
|
|
|
3361
3729
|
return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3362
3730
|
}
|
|
3363
3731
|
async deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3364
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3365
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3366
3732
|
let req = new $OpenApi.OpenApiRequest({
|
|
3367
3733
|
headers: headers,
|
|
3368
3734
|
});
|
|
@@ -3370,7 +3736,7 @@ class Client extends openapi_client_1.default {
|
|
|
3370
3736
|
action: "DeleteServiceMirror",
|
|
3371
3737
|
version: "2021-07-01",
|
|
3372
3738
|
protocol: "HTTPS",
|
|
3373
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/mirror`,
|
|
3739
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/mirror`,
|
|
3374
3740
|
method: "DELETE",
|
|
3375
3741
|
authType: "AK",
|
|
3376
3742
|
style: "ROA",
|
|
@@ -3385,8 +3751,6 @@ class Client extends openapi_client_1.default {
|
|
|
3385
3751
|
return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
3386
3752
|
}
|
|
3387
3753
|
async describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
|
|
3388
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3389
|
-
TaskName = openapi_util_1.default.getEncodeParam(TaskName);
|
|
3390
3754
|
let req = new $OpenApi.OpenApiRequest({
|
|
3391
3755
|
headers: headers,
|
|
3392
3756
|
});
|
|
@@ -3394,7 +3758,7 @@ class Client extends openapi_client_1.default {
|
|
|
3394
3758
|
action: "DescribeBenchmarkTask",
|
|
3395
3759
|
version: "2021-07-01",
|
|
3396
3760
|
protocol: "HTTPS",
|
|
3397
|
-
pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
|
|
3761
|
+
pathname: `/api/v2/benchmark-tasks/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(TaskName)}`,
|
|
3398
3762
|
method: "GET",
|
|
3399
3763
|
authType: "AK",
|
|
3400
3764
|
style: "ROA",
|
|
@@ -3403,22 +3767,26 @@ class Client extends openapi_client_1.default {
|
|
|
3403
3767
|
});
|
|
3404
3768
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
|
|
3405
3769
|
}
|
|
3406
|
-
async describeBenchmarkTaskReport(ClusterId, TaskName) {
|
|
3770
|
+
async describeBenchmarkTaskReport(ClusterId, TaskName, request) {
|
|
3407
3771
|
let runtime = new $Util.RuntimeOptions({});
|
|
3408
3772
|
let headers = {};
|
|
3409
|
-
return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, headers, runtime);
|
|
3773
|
+
return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
|
|
3410
3774
|
}
|
|
3411
|
-
async describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, headers, runtime) {
|
|
3412
|
-
|
|
3413
|
-
|
|
3775
|
+
async describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime) {
|
|
3776
|
+
tea_util_1.default.validateModel(request);
|
|
3777
|
+
let query = {};
|
|
3778
|
+
if (!tea_util_1.default.isUnset(request.reportType)) {
|
|
3779
|
+
query["ReportType"] = request.reportType;
|
|
3780
|
+
}
|
|
3414
3781
|
let req = new $OpenApi.OpenApiRequest({
|
|
3415
3782
|
headers: headers,
|
|
3783
|
+
query: openapi_util_1.default.query(query),
|
|
3416
3784
|
});
|
|
3417
3785
|
let params = new $OpenApi.Params({
|
|
3418
3786
|
action: "DescribeBenchmarkTaskReport",
|
|
3419
3787
|
version: "2021-07-01",
|
|
3420
3788
|
protocol: "HTTPS",
|
|
3421
|
-
pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/report`,
|
|
3789
|
+
pathname: `/api/v2/benchmark-tasks/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(TaskName)}/report`,
|
|
3422
3790
|
method: "GET",
|
|
3423
3791
|
authType: "AK",
|
|
3424
3792
|
style: "ROA",
|
|
@@ -3427,14 +3795,34 @@ class Client extends openapi_client_1.default {
|
|
|
3427
3795
|
});
|
|
3428
3796
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
|
|
3429
3797
|
}
|
|
3798
|
+
async describeGroup(ClusterId, GroupName) {
|
|
3799
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3800
|
+
let headers = {};
|
|
3801
|
+
return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
|
|
3802
|
+
}
|
|
3803
|
+
async describeGroupWithOptions(ClusterId, GroupName, headers, runtime) {
|
|
3804
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3805
|
+
headers: headers,
|
|
3806
|
+
});
|
|
3807
|
+
let params = new $OpenApi.Params({
|
|
3808
|
+
action: "DescribeGroup",
|
|
3809
|
+
version: "2021-07-01",
|
|
3810
|
+
protocol: "HTTPS",
|
|
3811
|
+
pathname: `/api/v2/groups/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(GroupName)}`,
|
|
3812
|
+
method: "GET",
|
|
3813
|
+
authType: "AK",
|
|
3814
|
+
style: "ROA",
|
|
3815
|
+
reqBodyType: "json",
|
|
3816
|
+
bodyType: "json",
|
|
3817
|
+
});
|
|
3818
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeGroupResponse({}));
|
|
3819
|
+
}
|
|
3430
3820
|
async describeResource(ClusterId, ResourceId) {
|
|
3431
3821
|
let runtime = new $Util.RuntimeOptions({});
|
|
3432
3822
|
let headers = {};
|
|
3433
3823
|
return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
3434
3824
|
}
|
|
3435
3825
|
async describeResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
|
|
3436
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3437
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3438
3826
|
let req = new $OpenApi.OpenApiRequest({
|
|
3439
3827
|
headers: headers,
|
|
3440
3828
|
});
|
|
@@ -3442,7 +3830,7 @@ class Client extends openapi_client_1.default {
|
|
|
3442
3830
|
action: "DescribeResource",
|
|
3443
3831
|
version: "2021-07-01",
|
|
3444
3832
|
protocol: "HTTPS",
|
|
3445
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}`,
|
|
3833
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}`,
|
|
3446
3834
|
method: "GET",
|
|
3447
3835
|
authType: "AK",
|
|
3448
3836
|
style: "ROA",
|
|
@@ -3457,8 +3845,6 @@ class Client extends openapi_client_1.default {
|
|
|
3457
3845
|
return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
3458
3846
|
}
|
|
3459
3847
|
async describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
|
|
3460
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3461
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3462
3848
|
let req = new $OpenApi.OpenApiRequest({
|
|
3463
3849
|
headers: headers,
|
|
3464
3850
|
});
|
|
@@ -3466,7 +3852,7 @@ class Client extends openapi_client_1.default {
|
|
|
3466
3852
|
action: "DescribeResourceDLink",
|
|
3467
3853
|
version: "2021-07-01",
|
|
3468
3854
|
protocol: "HTTPS",
|
|
3469
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/dlink`,
|
|
3855
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/dlink`,
|
|
3470
3856
|
method: "GET",
|
|
3471
3857
|
authType: "AK",
|
|
3472
3858
|
style: "ROA",
|
|
@@ -3481,8 +3867,6 @@ class Client extends openapi_client_1.default {
|
|
|
3481
3867
|
return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
3482
3868
|
}
|
|
3483
3869
|
async describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
|
|
3484
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3485
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3486
3870
|
let req = new $OpenApi.OpenApiRequest({
|
|
3487
3871
|
headers: headers,
|
|
3488
3872
|
});
|
|
@@ -3490,7 +3874,7 @@ class Client extends openapi_client_1.default {
|
|
|
3490
3874
|
action: "DescribeResourceLog",
|
|
3491
3875
|
version: "2021-07-01",
|
|
3492
3876
|
protocol: "HTTPS",
|
|
3493
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/log`,
|
|
3877
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/log`,
|
|
3494
3878
|
method: "GET",
|
|
3495
3879
|
authType: "AK",
|
|
3496
3880
|
style: "ROA",
|
|
@@ -3505,8 +3889,6 @@ class Client extends openapi_client_1.default {
|
|
|
3505
3889
|
return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3506
3890
|
}
|
|
3507
3891
|
async describeServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3508
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3509
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3510
3892
|
let req = new $OpenApi.OpenApiRequest({
|
|
3511
3893
|
headers: headers,
|
|
3512
3894
|
});
|
|
@@ -3514,7 +3896,7 @@ class Client extends openapi_client_1.default {
|
|
|
3514
3896
|
action: "DescribeService",
|
|
3515
3897
|
version: "2021-07-01",
|
|
3516
3898
|
protocol: "HTTPS",
|
|
3517
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}`,
|
|
3899
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}`,
|
|
3518
3900
|
method: "GET",
|
|
3519
3901
|
authType: "AK",
|
|
3520
3902
|
style: "ROA",
|
|
@@ -3529,8 +3911,6 @@ class Client extends openapi_client_1.default {
|
|
|
3529
3911
|
return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3530
3912
|
}
|
|
3531
3913
|
async describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3532
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3533
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3534
3914
|
let req = new $OpenApi.OpenApiRequest({
|
|
3535
3915
|
headers: headers,
|
|
3536
3916
|
});
|
|
@@ -3538,7 +3918,7 @@ class Client extends openapi_client_1.default {
|
|
|
3538
3918
|
action: "DescribeServiceAutoScaler",
|
|
3539
3919
|
version: "2021-07-01",
|
|
3540
3920
|
protocol: "HTTPS",
|
|
3541
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/autoscaler`,
|
|
3921
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/autoscaler`,
|
|
3542
3922
|
method: "GET",
|
|
3543
3923
|
authType: "AK",
|
|
3544
3924
|
style: "ROA",
|
|
@@ -3553,8 +3933,6 @@ class Client extends openapi_client_1.default {
|
|
|
3553
3933
|
return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3554
3934
|
}
|
|
3555
3935
|
async describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3556
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3557
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3558
3936
|
let req = new $OpenApi.OpenApiRequest({
|
|
3559
3937
|
headers: headers,
|
|
3560
3938
|
});
|
|
@@ -3562,7 +3940,7 @@ class Client extends openapi_client_1.default {
|
|
|
3562
3940
|
action: "DescribeServiceCronScaler",
|
|
3563
3941
|
version: "2021-07-01",
|
|
3564
3942
|
protocol: "HTTPS",
|
|
3565
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/cronscaler`,
|
|
3943
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/cronscaler`,
|
|
3566
3944
|
method: "GET",
|
|
3567
3945
|
authType: "AK",
|
|
3568
3946
|
style: "ROA",
|
|
@@ -3571,6 +3949,43 @@ class Client extends openapi_client_1.default {
|
|
|
3571
3949
|
});
|
|
3572
3950
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceCronScalerResponse({}));
|
|
3573
3951
|
}
|
|
3952
|
+
async describeServiceEvent(ClusterId, ServiceName, request) {
|
|
3953
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3954
|
+
let headers = {};
|
|
3955
|
+
return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
3956
|
+
}
|
|
3957
|
+
async describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
3958
|
+
tea_util_1.default.validateModel(request);
|
|
3959
|
+
let query = {};
|
|
3960
|
+
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
3961
|
+
query["EndTime"] = request.endTime;
|
|
3962
|
+
}
|
|
3963
|
+
if (!tea_util_1.default.isUnset(request.pageNum)) {
|
|
3964
|
+
query["PageNum"] = request.pageNum;
|
|
3965
|
+
}
|
|
3966
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
3967
|
+
query["PageSize"] = request.pageSize;
|
|
3968
|
+
}
|
|
3969
|
+
if (!tea_util_1.default.isUnset(request.startTime)) {
|
|
3970
|
+
query["StartTime"] = request.startTime;
|
|
3971
|
+
}
|
|
3972
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3973
|
+
headers: headers,
|
|
3974
|
+
query: openapi_util_1.default.query(query),
|
|
3975
|
+
});
|
|
3976
|
+
let params = new $OpenApi.Params({
|
|
3977
|
+
action: "DescribeServiceEvent",
|
|
3978
|
+
version: "2021-07-01",
|
|
3979
|
+
protocol: "HTTPS",
|
|
3980
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/events`,
|
|
3981
|
+
method: "GET",
|
|
3982
|
+
authType: "AK",
|
|
3983
|
+
style: "ROA",
|
|
3984
|
+
reqBodyType: "json",
|
|
3985
|
+
bodyType: "json",
|
|
3986
|
+
});
|
|
3987
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceEventResponse({}));
|
|
3988
|
+
}
|
|
3574
3989
|
async describeServiceLog(ClusterId, ServiceName, request) {
|
|
3575
3990
|
let runtime = new $Util.RuntimeOptions({});
|
|
3576
3991
|
let headers = {};
|
|
@@ -3578,8 +3993,6 @@ class Client extends openapi_client_1.default {
|
|
|
3578
3993
|
}
|
|
3579
3994
|
async describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
3580
3995
|
tea_util_1.default.validateModel(request);
|
|
3581
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3582
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3583
3996
|
let query = {};
|
|
3584
3997
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
3585
3998
|
query["EndTime"] = request.endTime;
|
|
@@ -3607,7 +4020,7 @@ class Client extends openapi_client_1.default {
|
|
|
3607
4020
|
action: "DescribeServiceLog",
|
|
3608
4021
|
version: "2021-07-01",
|
|
3609
4022
|
protocol: "HTTPS",
|
|
3610
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/logs`,
|
|
4023
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/logs`,
|
|
3611
4024
|
method: "GET",
|
|
3612
4025
|
authType: "AK",
|
|
3613
4026
|
style: "ROA",
|
|
@@ -3622,8 +4035,6 @@ class Client extends openapi_client_1.default {
|
|
|
3622
4035
|
return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3623
4036
|
}
|
|
3624
4037
|
async describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3625
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3626
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3627
4038
|
let req = new $OpenApi.OpenApiRequest({
|
|
3628
4039
|
headers: headers,
|
|
3629
4040
|
});
|
|
@@ -3631,7 +4042,7 @@ class Client extends openapi_client_1.default {
|
|
|
3631
4042
|
action: "DescribeServiceMirror",
|
|
3632
4043
|
version: "2021-07-01",
|
|
3633
4044
|
protocol: "HTTPS",
|
|
3634
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/mirror`,
|
|
4045
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/mirror`,
|
|
3635
4046
|
method: "GET",
|
|
3636
4047
|
authType: "AK",
|
|
3637
4048
|
style: "ROA",
|
|
@@ -3640,14 +4051,29 @@ class Client extends openapi_client_1.default {
|
|
|
3640
4051
|
});
|
|
3641
4052
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
|
|
3642
4053
|
}
|
|
3643
|
-
async listBenchmarkTask() {
|
|
4054
|
+
async listBenchmarkTask(request) {
|
|
3644
4055
|
let runtime = new $Util.RuntimeOptions({});
|
|
3645
4056
|
let headers = {};
|
|
3646
|
-
return await this.listBenchmarkTaskWithOptions(headers, runtime);
|
|
4057
|
+
return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
|
|
3647
4058
|
}
|
|
3648
|
-
async listBenchmarkTaskWithOptions(headers, runtime) {
|
|
4059
|
+
async listBenchmarkTaskWithOptions(request, headers, runtime) {
|
|
4060
|
+
tea_util_1.default.validateModel(request);
|
|
4061
|
+
let query = {};
|
|
4062
|
+
if (!tea_util_1.default.isUnset(request.fileter)) {
|
|
4063
|
+
query["Fileter"] = request.fileter;
|
|
4064
|
+
}
|
|
4065
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
4066
|
+
query["PageNumber"] = request.pageNumber;
|
|
4067
|
+
}
|
|
4068
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4069
|
+
query["PageSize"] = request.pageSize;
|
|
4070
|
+
}
|
|
4071
|
+
if (!tea_util_1.default.isUnset(request.serviceName)) {
|
|
4072
|
+
query["ServiceName"] = request.serviceName;
|
|
4073
|
+
}
|
|
3649
4074
|
let req = new $OpenApi.OpenApiRequest({
|
|
3650
4075
|
headers: headers,
|
|
4076
|
+
query: openapi_util_1.default.query(query),
|
|
3651
4077
|
});
|
|
3652
4078
|
let params = new $OpenApi.Params({
|
|
3653
4079
|
action: "ListBenchmarkTask",
|
|
@@ -3662,6 +4088,40 @@ class Client extends openapi_client_1.default {
|
|
|
3662
4088
|
});
|
|
3663
4089
|
return $tea.cast(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
|
|
3664
4090
|
}
|
|
4091
|
+
async listGroups(request) {
|
|
4092
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4093
|
+
let headers = {};
|
|
4094
|
+
return await this.listGroupsWithOptions(request, headers, runtime);
|
|
4095
|
+
}
|
|
4096
|
+
async listGroupsWithOptions(request, headers, runtime) {
|
|
4097
|
+
tea_util_1.default.validateModel(request);
|
|
4098
|
+
let query = {};
|
|
4099
|
+
if (!tea_util_1.default.isUnset(request.filter)) {
|
|
4100
|
+
query["Filter"] = request.filter;
|
|
4101
|
+
}
|
|
4102
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
4103
|
+
query["PageNumber"] = request.pageNumber;
|
|
4104
|
+
}
|
|
4105
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4106
|
+
query["PageSize"] = request.pageSize;
|
|
4107
|
+
}
|
|
4108
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4109
|
+
headers: headers,
|
|
4110
|
+
query: openapi_util_1.default.query(query),
|
|
4111
|
+
});
|
|
4112
|
+
let params = new $OpenApi.Params({
|
|
4113
|
+
action: "ListGroups",
|
|
4114
|
+
version: "2021-07-01",
|
|
4115
|
+
protocol: "HTTPS",
|
|
4116
|
+
pathname: `/api/v2/groups`,
|
|
4117
|
+
method: "GET",
|
|
4118
|
+
authType: "AK",
|
|
4119
|
+
style: "ROA",
|
|
4120
|
+
reqBodyType: "json",
|
|
4121
|
+
bodyType: "json",
|
|
4122
|
+
});
|
|
4123
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListGroupsResponse({}));
|
|
4124
|
+
}
|
|
3665
4125
|
async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
|
|
3666
4126
|
let runtime = new $Util.RuntimeOptions({});
|
|
3667
4127
|
let headers = {};
|
|
@@ -3669,9 +4129,6 @@ class Client extends openapi_client_1.default {
|
|
|
3669
4129
|
}
|
|
3670
4130
|
async listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime) {
|
|
3671
4131
|
tea_util_1.default.validateModel(request);
|
|
3672
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3673
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3674
|
-
InstanceName = openapi_util_1.default.getEncodeParam(InstanceName);
|
|
3675
4132
|
let query = {};
|
|
3676
4133
|
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
3677
4134
|
query["PageNumber"] = request.pageNumber;
|
|
@@ -3687,7 +4144,7 @@ class Client extends openapi_client_1.default {
|
|
|
3687
4144
|
action: "ListResourceInstanceWorker",
|
|
3688
4145
|
version: "2021-07-01",
|
|
3689
4146
|
protocol: "HTTPS",
|
|
3690
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/instance/${InstanceName}/workers`,
|
|
4147
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/instance/${openapi_util_1.default.getEncodeParam(InstanceName)}/workers`,
|
|
3691
4148
|
method: "GET",
|
|
3692
4149
|
authType: "AK",
|
|
3693
4150
|
style: "ROA",
|
|
@@ -3703,8 +4160,6 @@ class Client extends openapi_client_1.default {
|
|
|
3703
4160
|
}
|
|
3704
4161
|
async listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
|
|
3705
4162
|
tea_util_1.default.validateModel(request);
|
|
3706
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3707
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3708
4163
|
let query = {};
|
|
3709
4164
|
if (!tea_util_1.default.isUnset(request.chargeType)) {
|
|
3710
4165
|
query["ChargeType"] = request.chargeType;
|
|
@@ -3723,7 +4178,7 @@ class Client extends openapi_client_1.default {
|
|
|
3723
4178
|
action: "ListResourceInstances",
|
|
3724
4179
|
version: "2021-07-01",
|
|
3725
4180
|
protocol: "HTTPS",
|
|
3726
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/instances`,
|
|
4181
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/instances`,
|
|
3727
4182
|
method: "GET",
|
|
3728
4183
|
authType: "AK",
|
|
3729
4184
|
style: "ROA",
|
|
@@ -3739,8 +4194,6 @@ class Client extends openapi_client_1.default {
|
|
|
3739
4194
|
}
|
|
3740
4195
|
async listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
|
|
3741
4196
|
tea_util_1.default.validateModel(request);
|
|
3742
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3743
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
3744
4197
|
let query = {};
|
|
3745
4198
|
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
3746
4199
|
query["PageNumber"] = request.pageNumber;
|
|
@@ -3756,7 +4209,7 @@ class Client extends openapi_client_1.default {
|
|
|
3756
4209
|
action: "ListResourceServices",
|
|
3757
4210
|
version: "2021-07-01",
|
|
3758
4211
|
protocol: "HTTPS",
|
|
3759
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/services`,
|
|
4212
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/services`,
|
|
3760
4213
|
method: "GET",
|
|
3761
4214
|
authType: "AK",
|
|
3762
4215
|
style: "ROA",
|
|
@@ -3803,8 +4256,6 @@ class Client extends openapi_client_1.default {
|
|
|
3803
4256
|
}
|
|
3804
4257
|
async listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
3805
4258
|
tea_util_1.default.validateModel(request);
|
|
3806
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3807
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3808
4259
|
let query = {};
|
|
3809
4260
|
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
3810
4261
|
query["PageNumber"] = request.pageNumber;
|
|
@@ -3820,7 +4271,7 @@ class Client extends openapi_client_1.default {
|
|
|
3820
4271
|
action: "ListServiceInstances",
|
|
3821
4272
|
version: "2021-07-01",
|
|
3822
4273
|
protocol: "HTTPS",
|
|
3823
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/instances`,
|
|
4274
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/instances`,
|
|
3824
4275
|
method: "GET",
|
|
3825
4276
|
authType: "AK",
|
|
3826
4277
|
style: "ROA",
|
|
@@ -3829,6 +4280,37 @@ class Client extends openapi_client_1.default {
|
|
|
3829
4280
|
});
|
|
3830
4281
|
return $tea.cast(await this.callApi(params, req, runtime), new ListServiceInstancesResponse({}));
|
|
3831
4282
|
}
|
|
4283
|
+
async listServiceVersions(ClusterId, ServiceName, request) {
|
|
4284
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4285
|
+
let headers = {};
|
|
4286
|
+
return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4287
|
+
}
|
|
4288
|
+
async listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
4289
|
+
tea_util_1.default.validateModel(request);
|
|
4290
|
+
let query = {};
|
|
4291
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
4292
|
+
query["PageNumber"] = request.pageNumber;
|
|
4293
|
+
}
|
|
4294
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4295
|
+
query["PageSize"] = request.pageSize;
|
|
4296
|
+
}
|
|
4297
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4298
|
+
headers: headers,
|
|
4299
|
+
query: openapi_util_1.default.query(query),
|
|
4300
|
+
});
|
|
4301
|
+
let params = new $OpenApi.Params({
|
|
4302
|
+
action: "ListServiceVersions",
|
|
4303
|
+
version: "2021-07-01",
|
|
4304
|
+
protocol: "HTTPS",
|
|
4305
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/versions`,
|
|
4306
|
+
method: "GET",
|
|
4307
|
+
authType: "AK",
|
|
4308
|
+
style: "ROA",
|
|
4309
|
+
reqBodyType: "json",
|
|
4310
|
+
bodyType: "json",
|
|
4311
|
+
});
|
|
4312
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListServiceVersionsResponse({}));
|
|
4313
|
+
}
|
|
3832
4314
|
async listServices(request) {
|
|
3833
4315
|
let runtime = new $Util.RuntimeOptions({});
|
|
3834
4316
|
let headers = {};
|
|
@@ -3840,6 +4322,9 @@ class Client extends openapi_client_1.default {
|
|
|
3840
4322
|
if (!tea_util_1.default.isUnset(request.filter)) {
|
|
3841
4323
|
query["Filter"] = request.filter;
|
|
3842
4324
|
}
|
|
4325
|
+
if (!tea_util_1.default.isUnset(request.groupName)) {
|
|
4326
|
+
query["GroupName"] = request.groupName;
|
|
4327
|
+
}
|
|
3843
4328
|
if (!tea_util_1.default.isUnset(request.order)) {
|
|
3844
4329
|
query["Order"] = request.order;
|
|
3845
4330
|
}
|
|
@@ -3876,8 +4361,6 @@ class Client extends openapi_client_1.default {
|
|
|
3876
4361
|
}
|
|
3877
4362
|
async releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
3878
4363
|
tea_util_1.default.validateModel(request);
|
|
3879
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3880
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3881
4364
|
let body = {};
|
|
3882
4365
|
if (!tea_util_1.default.isUnset(request.trafficState)) {
|
|
3883
4366
|
body["TrafficState"] = request.trafficState;
|
|
@@ -3893,7 +4376,7 @@ class Client extends openapi_client_1.default {
|
|
|
3893
4376
|
action: "ReleaseService",
|
|
3894
4377
|
version: "2021-07-01",
|
|
3895
4378
|
protocol: "HTTPS",
|
|
3896
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/release`,
|
|
4379
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/release`,
|
|
3897
4380
|
method: "PUT",
|
|
3898
4381
|
authType: "AK",
|
|
3899
4382
|
style: "ROA",
|
|
@@ -3908,8 +4391,6 @@ class Client extends openapi_client_1.default {
|
|
|
3908
4391
|
return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
3909
4392
|
}
|
|
3910
4393
|
async startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
|
|
3911
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3912
|
-
TaskName = openapi_util_1.default.getEncodeParam(TaskName);
|
|
3913
4394
|
let req = new $OpenApi.OpenApiRequest({
|
|
3914
4395
|
headers: headers,
|
|
3915
4396
|
});
|
|
@@ -3917,7 +4398,7 @@ class Client extends openapi_client_1.default {
|
|
|
3917
4398
|
action: "StartBenchmarkTask",
|
|
3918
4399
|
version: "2021-07-01",
|
|
3919
4400
|
protocol: "HTTPS",
|
|
3920
|
-
pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/start`,
|
|
4401
|
+
pathname: `/api/v2/benchmark-tasks/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(TaskName)}/start`,
|
|
3921
4402
|
method: "PUT",
|
|
3922
4403
|
authType: "AK",
|
|
3923
4404
|
style: "ROA",
|
|
@@ -3932,8 +4413,6 @@ class Client extends openapi_client_1.default {
|
|
|
3932
4413
|
return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3933
4414
|
}
|
|
3934
4415
|
async startServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3935
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3936
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3937
4416
|
let req = new $OpenApi.OpenApiRequest({
|
|
3938
4417
|
headers: headers,
|
|
3939
4418
|
});
|
|
@@ -3941,7 +4420,7 @@ class Client extends openapi_client_1.default {
|
|
|
3941
4420
|
action: "StartService",
|
|
3942
4421
|
version: "2021-07-01",
|
|
3943
4422
|
protocol: "HTTPS",
|
|
3944
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/start`,
|
|
4423
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/start`,
|
|
3945
4424
|
method: "PUT",
|
|
3946
4425
|
authType: "AK",
|
|
3947
4426
|
style: "ROA",
|
|
@@ -3956,8 +4435,6 @@ class Client extends openapi_client_1.default {
|
|
|
3956
4435
|
return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
3957
4436
|
}
|
|
3958
4437
|
async stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
|
|
3959
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3960
|
-
TaskName = openapi_util_1.default.getEncodeParam(TaskName);
|
|
3961
4438
|
let req = new $OpenApi.OpenApiRequest({
|
|
3962
4439
|
headers: headers,
|
|
3963
4440
|
});
|
|
@@ -3965,7 +4442,7 @@ class Client extends openapi_client_1.default {
|
|
|
3965
4442
|
action: "StopBenchmarkTask",
|
|
3966
4443
|
version: "2021-07-01",
|
|
3967
4444
|
protocol: "HTTPS",
|
|
3968
|
-
pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/stop`,
|
|
4445
|
+
pathname: `/api/v2/benchmark-tasks/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(TaskName)}/stop`,
|
|
3969
4446
|
method: "PUT",
|
|
3970
4447
|
authType: "AK",
|
|
3971
4448
|
style: "ROA",
|
|
@@ -3980,8 +4457,6 @@ class Client extends openapi_client_1.default {
|
|
|
3980
4457
|
return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
3981
4458
|
}
|
|
3982
4459
|
async stopServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
|
|
3983
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3984
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3985
4460
|
let req = new $OpenApi.OpenApiRequest({
|
|
3986
4461
|
headers: headers,
|
|
3987
4462
|
});
|
|
@@ -3989,7 +4464,7 @@ class Client extends openapi_client_1.default {
|
|
|
3989
4464
|
action: "StopService",
|
|
3990
4465
|
version: "2021-07-01",
|
|
3991
4466
|
protocol: "HTTPS",
|
|
3992
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/stop`,
|
|
4467
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/stop`,
|
|
3993
4468
|
method: "PUT",
|
|
3994
4469
|
authType: "AK",
|
|
3995
4470
|
style: "ROA",
|
|
@@ -4005,8 +4480,6 @@ class Client extends openapi_client_1.default {
|
|
|
4005
4480
|
}
|
|
4006
4481
|
async updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime) {
|
|
4007
4482
|
tea_util_1.default.validateModel(request);
|
|
4008
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4009
|
-
TaskName = openapi_util_1.default.getEncodeParam(TaskName);
|
|
4010
4483
|
let req = new $OpenApi.OpenApiRequest({
|
|
4011
4484
|
headers: headers,
|
|
4012
4485
|
body: request.body,
|
|
@@ -4015,7 +4488,7 @@ class Client extends openapi_client_1.default {
|
|
|
4015
4488
|
action: "UpdateBenchmarkTask",
|
|
4016
4489
|
version: "2021-07-01",
|
|
4017
4490
|
protocol: "HTTPS",
|
|
4018
|
-
pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
|
|
4491
|
+
pathname: `/api/v2/benchmark-tasks/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(TaskName)}`,
|
|
4019
4492
|
method: "PUT",
|
|
4020
4493
|
authType: "AK",
|
|
4021
4494
|
style: "ROA",
|
|
@@ -4031,8 +4504,6 @@ class Client extends openapi_client_1.default {
|
|
|
4031
4504
|
}
|
|
4032
4505
|
async updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime) {
|
|
4033
4506
|
tea_util_1.default.validateModel(request);
|
|
4034
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4035
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
4036
4507
|
let body = {};
|
|
4037
4508
|
if (!tea_util_1.default.isUnset(request.resourceName)) {
|
|
4038
4509
|
body["ResourceName"] = request.resourceName;
|
|
@@ -4045,7 +4516,7 @@ class Client extends openapi_client_1.default {
|
|
|
4045
4516
|
action: "UpdateResource",
|
|
4046
4517
|
version: "2021-07-01",
|
|
4047
4518
|
protocol: "HTTPS",
|
|
4048
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}`,
|
|
4519
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}`,
|
|
4049
4520
|
method: "PUT",
|
|
4050
4521
|
authType: "AK",
|
|
4051
4522
|
style: "ROA",
|
|
@@ -4061,8 +4532,6 @@ class Client extends openapi_client_1.default {
|
|
|
4061
4532
|
}
|
|
4062
4533
|
async updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime) {
|
|
4063
4534
|
tea_util_1.default.validateModel(request);
|
|
4064
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4065
|
-
ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
|
|
4066
4535
|
let body = {};
|
|
4067
4536
|
if (!tea_util_1.default.isUnset(request.destinationCIDRs)) {
|
|
4068
4537
|
body["DestinationCIDRs"] = request.destinationCIDRs;
|
|
@@ -4084,7 +4553,7 @@ class Client extends openapi_client_1.default {
|
|
|
4084
4553
|
action: "UpdateResourceDLink",
|
|
4085
4554
|
version: "2021-07-01",
|
|
4086
4555
|
protocol: "HTTPS",
|
|
4087
|
-
pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/dlink`,
|
|
4556
|
+
pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/dlink`,
|
|
4088
4557
|
method: "PUT",
|
|
4089
4558
|
authType: "AK",
|
|
4090
4559
|
style: "ROA",
|
|
@@ -4100,8 +4569,6 @@ class Client extends openapi_client_1.default {
|
|
|
4100
4569
|
}
|
|
4101
4570
|
async updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
4102
4571
|
tea_util_1.default.validateModel(request);
|
|
4103
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4104
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
4105
4572
|
let req = new $OpenApi.OpenApiRequest({
|
|
4106
4573
|
headers: headers,
|
|
4107
4574
|
body: request.body,
|
|
@@ -4110,7 +4577,7 @@ class Client extends openapi_client_1.default {
|
|
|
4110
4577
|
action: "UpdateService",
|
|
4111
4578
|
version: "2021-07-01",
|
|
4112
4579
|
protocol: "HTTPS",
|
|
4113
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}`,
|
|
4580
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}`,
|
|
4114
4581
|
method: "PUT",
|
|
4115
4582
|
authType: "AK",
|
|
4116
4583
|
style: "ROA",
|
|
@@ -4126,8 +4593,6 @@ class Client extends openapi_client_1.default {
|
|
|
4126
4593
|
}
|
|
4127
4594
|
async updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
4128
4595
|
tea_util_1.default.validateModel(request);
|
|
4129
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4130
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
4131
4596
|
let body = {};
|
|
4132
4597
|
if (!tea_util_1.default.isUnset(request.max)) {
|
|
4133
4598
|
body["max"] = request.max;
|
|
@@ -4135,8 +4600,8 @@ class Client extends openapi_client_1.default {
|
|
|
4135
4600
|
if (!tea_util_1.default.isUnset(request.min)) {
|
|
4136
4601
|
body["min"] = request.min;
|
|
4137
4602
|
}
|
|
4138
|
-
if (!tea_util_1.default.isUnset(
|
|
4139
|
-
body["
|
|
4603
|
+
if (!tea_util_1.default.isUnset(request.scaleStrategies)) {
|
|
4604
|
+
body["scaleStrategies"] = request.scaleStrategies;
|
|
4140
4605
|
}
|
|
4141
4606
|
let req = new $OpenApi.OpenApiRequest({
|
|
4142
4607
|
headers: headers,
|
|
@@ -4146,7 +4611,7 @@ class Client extends openapi_client_1.default {
|
|
|
4146
4611
|
action: "UpdateServiceAutoScaler",
|
|
4147
4612
|
version: "2021-07-01",
|
|
4148
4613
|
protocol: "HTTPS",
|
|
4149
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/autoscaler`,
|
|
4614
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/autoscaler`,
|
|
4150
4615
|
method: "PUT",
|
|
4151
4616
|
authType: "AK",
|
|
4152
4617
|
style: "ROA",
|
|
@@ -4162,8 +4627,6 @@ class Client extends openapi_client_1.default {
|
|
|
4162
4627
|
}
|
|
4163
4628
|
async updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
4164
4629
|
tea_util_1.default.validateModel(request);
|
|
4165
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4166
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
4167
4630
|
let body = {};
|
|
4168
4631
|
if (!tea_util_1.default.isUnset(request.excludeDates)) {
|
|
4169
4632
|
body["ExcludeDates"] = request.excludeDates;
|
|
@@ -4179,7 +4642,7 @@ class Client extends openapi_client_1.default {
|
|
|
4179
4642
|
action: "UpdateServiceCronScaler",
|
|
4180
4643
|
version: "2021-07-01",
|
|
4181
4644
|
protocol: "HTTPS",
|
|
4182
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/cronscaler`,
|
|
4645
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/cronscaler`,
|
|
4183
4646
|
method: "PUT",
|
|
4184
4647
|
authType: "AK",
|
|
4185
4648
|
style: "ROA",
|
|
@@ -4195,8 +4658,6 @@ class Client extends openapi_client_1.default {
|
|
|
4195
4658
|
}
|
|
4196
4659
|
async updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
4197
4660
|
tea_util_1.default.validateModel(request);
|
|
4198
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4199
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
4200
4661
|
let body = {};
|
|
4201
4662
|
if (!tea_util_1.default.isUnset(request.ratio)) {
|
|
4202
4663
|
body["Ratio"] = request.ratio;
|
|
@@ -4212,7 +4673,7 @@ class Client extends openapi_client_1.default {
|
|
|
4212
4673
|
action: "UpdateServiceMirror",
|
|
4213
4674
|
version: "2021-07-01",
|
|
4214
4675
|
protocol: "HTTPS",
|
|
4215
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/mirror`,
|
|
4676
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/mirror`,
|
|
4216
4677
|
method: "PUT",
|
|
4217
4678
|
authType: "AK",
|
|
4218
4679
|
style: "ROA",
|
|
@@ -4228,8 +4689,6 @@ class Client extends openapi_client_1.default {
|
|
|
4228
4689
|
}
|
|
4229
4690
|
async updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
4230
4691
|
tea_util_1.default.validateModel(request);
|
|
4231
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4232
|
-
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
4233
4692
|
let body = {};
|
|
4234
4693
|
if (!tea_util_1.default.isUnset(request.version)) {
|
|
4235
4694
|
body["Version"] = request.version;
|
|
@@ -4242,7 +4701,7 @@ class Client extends openapi_client_1.default {
|
|
|
4242
4701
|
action: "UpdateServiceVersion",
|
|
4243
4702
|
version: "2021-07-01",
|
|
4244
4703
|
protocol: "HTTPS",
|
|
4245
|
-
pathname: `/api/v2/services/${ClusterId}/${ServiceName}/version`,
|
|
4704
|
+
pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/version`,
|
|
4246
4705
|
method: "PUT",
|
|
4247
4706
|
authType: "AK",
|
|
4248
4707
|
style: "ROA",
|