@alicloud/adb20211201 3.4.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/client.ts CHANGED
@@ -1466,6 +1466,104 @@ export class AllocateClusterPublicConnectionResponse extends $tea.Model {
1466
1466
  }
1467
1467
  }
1468
1468
 
1469
+ export class ApplyAdviceByIdRequest extends $tea.Model {
1470
+ /**
1471
+ * @example
1472
+ * 20221101
1473
+ */
1474
+ adviceDate?: number;
1475
+ /**
1476
+ * @example
1477
+ * 0baf1f52-53df-487f-8292-99a03716****
1478
+ */
1479
+ adviceId?: string;
1480
+ /**
1481
+ * @remarks
1482
+ * This parameter is required.
1483
+ *
1484
+ * @example
1485
+ * am-uf6g8w25jacm7****
1486
+ */
1487
+ DBClusterId?: string;
1488
+ /**
1489
+ * @remarks
1490
+ * This parameter is required.
1491
+ *
1492
+ * @example
1493
+ * cn-hangzhou
1494
+ */
1495
+ regionId?: string;
1496
+ static names(): { [key: string]: string } {
1497
+ return {
1498
+ adviceDate: 'AdviceDate',
1499
+ adviceId: 'AdviceId',
1500
+ DBClusterId: 'DBClusterId',
1501
+ regionId: 'RegionId',
1502
+ };
1503
+ }
1504
+
1505
+ static types(): { [key: string]: any } {
1506
+ return {
1507
+ adviceDate: 'number',
1508
+ adviceId: 'string',
1509
+ DBClusterId: 'string',
1510
+ regionId: 'string',
1511
+ };
1512
+ }
1513
+
1514
+ constructor(map?: { [key: string]: any }) {
1515
+ super(map);
1516
+ }
1517
+ }
1518
+
1519
+ export class ApplyAdviceByIdResponseBody extends $tea.Model {
1520
+ /**
1521
+ * @example
1522
+ * 5DC10091-348D-12B1-906D-AB49D658012E
1523
+ */
1524
+ requestId?: string;
1525
+ static names(): { [key: string]: string } {
1526
+ return {
1527
+ requestId: 'RequestId',
1528
+ };
1529
+ }
1530
+
1531
+ static types(): { [key: string]: any } {
1532
+ return {
1533
+ requestId: 'string',
1534
+ };
1535
+ }
1536
+
1537
+ constructor(map?: { [key: string]: any }) {
1538
+ super(map);
1539
+ }
1540
+ }
1541
+
1542
+ export class ApplyAdviceByIdResponse extends $tea.Model {
1543
+ headers?: { [key: string]: string };
1544
+ statusCode?: number;
1545
+ body?: ApplyAdviceByIdResponseBody;
1546
+ static names(): { [key: string]: string } {
1547
+ return {
1548
+ headers: 'headers',
1549
+ statusCode: 'statusCode',
1550
+ body: 'body',
1551
+ };
1552
+ }
1553
+
1554
+ static types(): { [key: string]: any } {
1555
+ return {
1556
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1557
+ statusCode: 'number',
1558
+ body: ApplyAdviceByIdResponseBody,
1559
+ };
1560
+ }
1561
+
1562
+ constructor(map?: { [key: string]: any }) {
1563
+ super(map);
1564
+ }
1565
+ }
1566
+
1469
1567
  export class AttachUserENIRequest extends $tea.Model {
1470
1568
  /**
1471
1569
  * @remarks
@@ -1547,6 +1645,104 @@ export class AttachUserENIResponse extends $tea.Model {
1547
1645
  }
1548
1646
  }
1549
1647
 
1648
+ export class BatchApplyAdviceByIdListRequest extends $tea.Model {
1649
+ /**
1650
+ * @example
1651
+ * 20221115
1652
+ */
1653
+ adviceDate?: number;
1654
+ /**
1655
+ * @example
1656
+ * c2589ff3-e86c-4f19-80c8-2aeb7dd9****,53414470-ebf4-4a53-a312-8a1ad8fd****,6e8dce84-fec8-4b0b-9c04-b0cea12c****,b3b9703d-55ca-47e0-96dd-6a4a9dbf****
1657
+ */
1658
+ adviceIdList?: string;
1659
+ /**
1660
+ * @remarks
1661
+ * This parameter is required.
1662
+ *
1663
+ * @example
1664
+ * am-uf6g8w25jacm7****
1665
+ */
1666
+ DBClusterId?: string;
1667
+ /**
1668
+ * @remarks
1669
+ * This parameter is required.
1670
+ *
1671
+ * @example
1672
+ * cn-hangzhou
1673
+ */
1674
+ regionId?: string;
1675
+ static names(): { [key: string]: string } {
1676
+ return {
1677
+ adviceDate: 'AdviceDate',
1678
+ adviceIdList: 'AdviceIdList',
1679
+ DBClusterId: 'DBClusterId',
1680
+ regionId: 'RegionId',
1681
+ };
1682
+ }
1683
+
1684
+ static types(): { [key: string]: any } {
1685
+ return {
1686
+ adviceDate: 'number',
1687
+ adviceIdList: 'string',
1688
+ DBClusterId: 'string',
1689
+ regionId: 'string',
1690
+ };
1691
+ }
1692
+
1693
+ constructor(map?: { [key: string]: any }) {
1694
+ super(map);
1695
+ }
1696
+ }
1697
+
1698
+ export class BatchApplyAdviceByIdListResponseBody extends $tea.Model {
1699
+ /**
1700
+ * @example
1701
+ * 86F92D26-B774-5FA1-8E53-82CBEEEBB012
1702
+ */
1703
+ requestId?: string;
1704
+ static names(): { [key: string]: string } {
1705
+ return {
1706
+ requestId: 'RequestId',
1707
+ };
1708
+ }
1709
+
1710
+ static types(): { [key: string]: any } {
1711
+ return {
1712
+ requestId: 'string',
1713
+ };
1714
+ }
1715
+
1716
+ constructor(map?: { [key: string]: any }) {
1717
+ super(map);
1718
+ }
1719
+ }
1720
+
1721
+ export class BatchApplyAdviceByIdListResponse extends $tea.Model {
1722
+ headers?: { [key: string]: string };
1723
+ statusCode?: number;
1724
+ body?: BatchApplyAdviceByIdListResponseBody;
1725
+ static names(): { [key: string]: string } {
1726
+ return {
1727
+ headers: 'headers',
1728
+ statusCode: 'statusCode',
1729
+ body: 'body',
1730
+ };
1731
+ }
1732
+
1733
+ static types(): { [key: string]: any } {
1734
+ return {
1735
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1736
+ statusCode: 'number',
1737
+ body: BatchApplyAdviceByIdListResponseBody,
1738
+ };
1739
+ }
1740
+
1741
+ constructor(map?: { [key: string]: any }) {
1742
+ super(map);
1743
+ }
1744
+ }
1745
+
1550
1746
  export class BindAccountRequest extends $tea.Model {
1551
1747
  /**
1552
1748
  * @remarks
@@ -2037,6 +2233,204 @@ export class CheckSampleDataSetResponse extends $tea.Model {
2037
2233
  }
2038
2234
  }
2039
2235
 
2236
+ export class CreateAPSJobRequest extends $tea.Model {
2237
+ /**
2238
+ * @remarks
2239
+ * This parameter is required.
2240
+ *
2241
+ * @example
2242
+ * aps-xxxxx
2243
+ */
2244
+ apsJobName?: string;
2245
+ /**
2246
+ * @remarks
2247
+ * This parameter is required.
2248
+ *
2249
+ * @example
2250
+ * {"EntireInstance":true}
2251
+ */
2252
+ dbList?: string;
2253
+ /**
2254
+ * @remarks
2255
+ * This parameter is required.
2256
+ *
2257
+ * @example
2258
+ * amv-xxxxx
2259
+ */
2260
+ destinationEndpointInstanceID?: string;
2261
+ /**
2262
+ * @example
2263
+ * ******
2264
+ */
2265
+ destinationEndpointPassword?: string;
2266
+ /**
2267
+ * @example
2268
+ * ******
2269
+ */
2270
+ destinationEndpointUserName?: string;
2271
+ /**
2272
+ * @example
2273
+ * {}
2274
+ */
2275
+ partitionList?: string;
2276
+ /**
2277
+ * @remarks
2278
+ * This parameter is required.
2279
+ *
2280
+ * @example
2281
+ * cn-shanghai
2282
+ */
2283
+ regionId?: string;
2284
+ /**
2285
+ * @remarks
2286
+ * This parameter is required.
2287
+ *
2288
+ * @example
2289
+ * pc-xxxxx
2290
+ */
2291
+ sourceEndpointInstanceID?: string;
2292
+ /**
2293
+ * @example
2294
+ * ******
2295
+ */
2296
+ sourceEndpointPassword?: string;
2297
+ /**
2298
+ * @example
2299
+ * cn-beijing
2300
+ */
2301
+ sourceEndpointRegion?: string;
2302
+ /**
2303
+ * @example
2304
+ * xxxx
2305
+ */
2306
+ sourceEndpointUserName?: string;
2307
+ /**
2308
+ * @example
2309
+ * 1
2310
+ */
2311
+ targetTableMode?: string;
2312
+ static names(): { [key: string]: string } {
2313
+ return {
2314
+ apsJobName: 'ApsJobName',
2315
+ dbList: 'DbList',
2316
+ destinationEndpointInstanceID: 'DestinationEndpointInstanceID',
2317
+ destinationEndpointPassword: 'DestinationEndpointPassword',
2318
+ destinationEndpointUserName: 'DestinationEndpointUserName',
2319
+ partitionList: 'PartitionList',
2320
+ regionId: 'RegionId',
2321
+ sourceEndpointInstanceID: 'SourceEndpointInstanceID',
2322
+ sourceEndpointPassword: 'SourceEndpointPassword',
2323
+ sourceEndpointRegion: 'SourceEndpointRegion',
2324
+ sourceEndpointUserName: 'SourceEndpointUserName',
2325
+ targetTableMode: 'TargetTableMode',
2326
+ };
2327
+ }
2328
+
2329
+ static types(): { [key: string]: any } {
2330
+ return {
2331
+ apsJobName: 'string',
2332
+ dbList: 'string',
2333
+ destinationEndpointInstanceID: 'string',
2334
+ destinationEndpointPassword: 'string',
2335
+ destinationEndpointUserName: 'string',
2336
+ partitionList: 'string',
2337
+ regionId: 'string',
2338
+ sourceEndpointInstanceID: 'string',
2339
+ sourceEndpointPassword: 'string',
2340
+ sourceEndpointRegion: 'string',
2341
+ sourceEndpointUserName: 'string',
2342
+ targetTableMode: 'string',
2343
+ };
2344
+ }
2345
+
2346
+ constructor(map?: { [key: string]: any }) {
2347
+ super(map);
2348
+ }
2349
+ }
2350
+
2351
+ export class CreateAPSJobResponseBody extends $tea.Model {
2352
+ /**
2353
+ * @example
2354
+ * aps-bj1xxxxxx
2355
+ */
2356
+ apsJobId?: string;
2357
+ /**
2358
+ * @example
2359
+ * InvalidInput
2360
+ */
2361
+ code?: string;
2362
+ /**
2363
+ * @example
2364
+ * 200
2365
+ */
2366
+ httpStatusCode?: number;
2367
+ /**
2368
+ * @example
2369
+ * OK
2370
+ */
2371
+ message?: string;
2372
+ /**
2373
+ * @example
2374
+ * D1B8ED33-5E9B-512D-B188-1579ED6xxx
2375
+ */
2376
+ requestId?: string;
2377
+ /**
2378
+ * @example
2379
+ * True
2380
+ */
2381
+ success?: boolean;
2382
+ static names(): { [key: string]: string } {
2383
+ return {
2384
+ apsJobId: 'ApsJobId',
2385
+ code: 'Code',
2386
+ httpStatusCode: 'HttpStatusCode',
2387
+ message: 'Message',
2388
+ requestId: 'RequestId',
2389
+ success: 'Success',
2390
+ };
2391
+ }
2392
+
2393
+ static types(): { [key: string]: any } {
2394
+ return {
2395
+ apsJobId: 'string',
2396
+ code: 'string',
2397
+ httpStatusCode: 'number',
2398
+ message: 'string',
2399
+ requestId: 'string',
2400
+ success: 'boolean',
2401
+ };
2402
+ }
2403
+
2404
+ constructor(map?: { [key: string]: any }) {
2405
+ super(map);
2406
+ }
2407
+ }
2408
+
2409
+ export class CreateAPSJobResponse extends $tea.Model {
2410
+ headers?: { [key: string]: string };
2411
+ statusCode?: number;
2412
+ body?: CreateAPSJobResponseBody;
2413
+ static names(): { [key: string]: string } {
2414
+ return {
2415
+ headers: 'headers',
2416
+ statusCode: 'statusCode',
2417
+ body: 'body',
2418
+ };
2419
+ }
2420
+
2421
+ static types(): { [key: string]: any } {
2422
+ return {
2423
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2424
+ statusCode: 'number',
2425
+ body: CreateAPSJobResponseBody,
2426
+ };
2427
+ }
2428
+
2429
+ constructor(map?: { [key: string]: any }) {
2430
+ super(map);
2431
+ }
2432
+ }
2433
+
2040
2434
  export class CreateAccountRequest extends $tea.Model {
2041
2435
  /**
2042
2436
  * @remarks
@@ -5827,6 +6221,104 @@ export class DescribeAdbMySqlTablesResponse extends $tea.Model {
5827
6221
  }
5828
6222
  }
5829
6223
 
6224
+ export class DescribeAdviceServiceEnabledRequest extends $tea.Model {
6225
+ /**
6226
+ * @remarks
6227
+ * This parameter is required.
6228
+ *
6229
+ * @example
6230
+ * amv-2ze0vp0j6t3to****
6231
+ */
6232
+ DBClusterId?: string;
6233
+ /**
6234
+ * @remarks
6235
+ * This parameter is required.
6236
+ *
6237
+ * @example
6238
+ * cn-hangzhou
6239
+ */
6240
+ regionId?: string;
6241
+ static names(): { [key: string]: string } {
6242
+ return {
6243
+ DBClusterId: 'DBClusterId',
6244
+ regionId: 'RegionId',
6245
+ };
6246
+ }
6247
+
6248
+ static types(): { [key: string]: any } {
6249
+ return {
6250
+ DBClusterId: 'string',
6251
+ regionId: 'string',
6252
+ };
6253
+ }
6254
+
6255
+ constructor(map?: { [key: string]: any }) {
6256
+ super(map);
6257
+ }
6258
+ }
6259
+
6260
+ export class DescribeAdviceServiceEnabledResponseBody extends $tea.Model {
6261
+ /**
6262
+ * @example
6263
+ * Success
6264
+ */
6265
+ message?: string;
6266
+ /**
6267
+ * @example
6268
+ * E031AABF-BD56-5966-A063-4283EF18DB45
6269
+ */
6270
+ requestId?: string;
6271
+ /**
6272
+ * @example
6273
+ * False
6274
+ */
6275
+ result?: boolean;
6276
+ static names(): { [key: string]: string } {
6277
+ return {
6278
+ message: 'Message',
6279
+ requestId: 'RequestId',
6280
+ result: 'Result',
6281
+ };
6282
+ }
6283
+
6284
+ static types(): { [key: string]: any } {
6285
+ return {
6286
+ message: 'string',
6287
+ requestId: 'string',
6288
+ result: 'boolean',
6289
+ };
6290
+ }
6291
+
6292
+ constructor(map?: { [key: string]: any }) {
6293
+ super(map);
6294
+ }
6295
+ }
6296
+
6297
+ export class DescribeAdviceServiceEnabledResponse extends $tea.Model {
6298
+ headers?: { [key: string]: string };
6299
+ statusCode?: number;
6300
+ body?: DescribeAdviceServiceEnabledResponseBody;
6301
+ static names(): { [key: string]: string } {
6302
+ return {
6303
+ headers: 'headers',
6304
+ statusCode: 'statusCode',
6305
+ body: 'body',
6306
+ };
6307
+ }
6308
+
6309
+ static types(): { [key: string]: any } {
6310
+ return {
6311
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6312
+ statusCode: 'number',
6313
+ body: DescribeAdviceServiceEnabledResponseBody,
6314
+ };
6315
+ }
6316
+
6317
+ constructor(map?: { [key: string]: any }) {
6318
+ super(map);
6319
+ }
6320
+ }
6321
+
5830
6322
  export class DescribeAllDataSourceRequest extends $tea.Model {
5831
6323
  /**
5832
6324
  * @remarks
@@ -20785,6 +21277,137 @@ export class ModifyPerformanceViewResponse extends $tea.Model {
20785
21277
  }
20786
21278
  }
20787
21279
 
21280
+ export class ModifyUserEniVswitchOptionsRequest extends $tea.Model {
21281
+ /**
21282
+ * @remarks
21283
+ * This parameter is required.
21284
+ *
21285
+ * @example
21286
+ * amv-bp11q28kvl688****
21287
+ */
21288
+ dbClusterId?: string;
21289
+ ownerAccount?: string;
21290
+ ownerId?: number;
21291
+ /**
21292
+ * @example
21293
+ * cn-hangzhou
21294
+ */
21295
+ regionId?: string;
21296
+ resourceOwnerAccount?: string;
21297
+ resourceOwnerId?: number;
21298
+ /**
21299
+ * @remarks
21300
+ * This parameter is required.
21301
+ *
21302
+ * @example
21303
+ * vsw-rj9ixufmywqq98z******,vsw-rj95ij6wcz656v7******
21304
+ */
21305
+ vSwitchOptions?: string;
21306
+ static names(): { [key: string]: string } {
21307
+ return {
21308
+ dbClusterId: 'DbClusterId',
21309
+ ownerAccount: 'OwnerAccount',
21310
+ ownerId: 'OwnerId',
21311
+ regionId: 'RegionId',
21312
+ resourceOwnerAccount: 'ResourceOwnerAccount',
21313
+ resourceOwnerId: 'ResourceOwnerId',
21314
+ vSwitchOptions: 'VSwitchOptions',
21315
+ };
21316
+ }
21317
+
21318
+ static types(): { [key: string]: any } {
21319
+ return {
21320
+ dbClusterId: 'string',
21321
+ ownerAccount: 'string',
21322
+ ownerId: 'number',
21323
+ regionId: 'string',
21324
+ resourceOwnerAccount: 'string',
21325
+ resourceOwnerId: 'number',
21326
+ vSwitchOptions: 'string',
21327
+ };
21328
+ }
21329
+
21330
+ constructor(map?: { [key: string]: any }) {
21331
+ super(map);
21332
+ }
21333
+ }
21334
+
21335
+ export class ModifyUserEniVswitchOptionsResponseBody extends $tea.Model {
21336
+ /**
21337
+ * @example
21338
+ * 200
21339
+ */
21340
+ code?: string;
21341
+ /**
21342
+ * @example
21343
+ * 200
21344
+ */
21345
+ httpStatusCode?: number;
21346
+ /**
21347
+ * @example
21348
+ * SUCCESS
21349
+ */
21350
+ message?: string;
21351
+ /**
21352
+ * @example
21353
+ * 1AD222E9-E606-4A42-BF6D-8A4442913CEF
21354
+ */
21355
+ requestId?: string;
21356
+ /**
21357
+ * @example
21358
+ * true
21359
+ */
21360
+ success?: boolean;
21361
+ static names(): { [key: string]: string } {
21362
+ return {
21363
+ code: 'Code',
21364
+ httpStatusCode: 'HttpStatusCode',
21365
+ message: 'Message',
21366
+ requestId: 'RequestId',
21367
+ success: 'Success',
21368
+ };
21369
+ }
21370
+
21371
+ static types(): { [key: string]: any } {
21372
+ return {
21373
+ code: 'string',
21374
+ httpStatusCode: 'number',
21375
+ message: 'string',
21376
+ requestId: 'string',
21377
+ success: 'boolean',
21378
+ };
21379
+ }
21380
+
21381
+ constructor(map?: { [key: string]: any }) {
21382
+ super(map);
21383
+ }
21384
+ }
21385
+
21386
+ export class ModifyUserEniVswitchOptionsResponse extends $tea.Model {
21387
+ headers?: { [key: string]: string };
21388
+ statusCode?: number;
21389
+ body?: ModifyUserEniVswitchOptionsResponseBody;
21390
+ static names(): { [key: string]: string } {
21391
+ return {
21392
+ headers: 'headers',
21393
+ statusCode: 'statusCode',
21394
+ body: 'body',
21395
+ };
21396
+ }
21397
+
21398
+ static types(): { [key: string]: any } {
21399
+ return {
21400
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21401
+ statusCode: 'number',
21402
+ body: ModifyUserEniVswitchOptionsResponseBody,
21403
+ };
21404
+ }
21405
+
21406
+ constructor(map?: { [key: string]: any }) {
21407
+ super(map);
21408
+ }
21409
+ }
21410
+
20788
21411
  export class PreloadSparkAppMetricsRequest extends $tea.Model {
20789
21412
  /**
20790
21413
  * @remarks
@@ -25045,6 +25668,9 @@ export class DescribeDBClusterAttributeResponseBodyItemsDBCluster extends $tea.M
25045
25668
  * false
25046
25669
  */
25047
25670
  userENIStatus?: boolean;
25671
+ userENIVSwitchOptions?: string;
25672
+ userENIVpcId?: string;
25673
+ userENIZoneOptions?: string;
25048
25674
  /**
25049
25675
  * @remarks
25050
25676
  * The virtual private cloud (VPC) ID of the cluster.
@@ -25108,6 +25734,9 @@ export class DescribeDBClusterAttributeResponseBodyItemsDBCluster extends $tea.M
25108
25734
  tags: 'Tags',
25109
25735
  taskInfo: 'TaskInfo',
25110
25736
  userENIStatus: 'UserENIStatus',
25737
+ userENIVSwitchOptions: 'UserENIVSwitchOptions',
25738
+ userENIVpcId: 'UserENIVpcId',
25739
+ userENIZoneOptions: 'UserENIZoneOptions',
25111
25740
  VPCId: 'VPCId',
25112
25741
  vSwitchId: 'VSwitchId',
25113
25742
  zoneId: 'ZoneId',
@@ -25153,6 +25782,9 @@ export class DescribeDBClusterAttributeResponseBodyItemsDBCluster extends $tea.M
25153
25782
  tags: DescribeDBClusterAttributeResponseBodyItemsDBClusterTags,
25154
25783
  taskInfo: DescribeDBClusterAttributeResponseBodyItemsDBClusterTaskInfo,
25155
25784
  userENIStatus: 'boolean',
25785
+ userENIVSwitchOptions: 'string',
25786
+ userENIVpcId: 'string',
25787
+ userENIZoneOptions: 'string',
25156
25788
  VPCId: 'string',
25157
25789
  vSwitchId: 'string',
25158
25790
  zoneId: 'string',
@@ -31429,6 +32061,60 @@ export default class Client extends OpenApi {
31429
32061
  return await this.allocateClusterPublicConnectionWithOptions(request, runtime);
31430
32062
  }
31431
32063
 
32064
+ /**
32065
+ * 应用单条优化建议
32066
+ *
32067
+ * @param request - ApplyAdviceByIdRequest
32068
+ * @param runtime - runtime options for this request RuntimeOptions
32069
+ * @returns ApplyAdviceByIdResponse
32070
+ */
32071
+ async applyAdviceByIdWithOptions(request: ApplyAdviceByIdRequest, runtime: $Util.RuntimeOptions): Promise<ApplyAdviceByIdResponse> {
32072
+ Util.validateModel(request);
32073
+ let query = { };
32074
+ if (!Util.isUnset(request.adviceDate)) {
32075
+ query["AdviceDate"] = request.adviceDate;
32076
+ }
32077
+
32078
+ if (!Util.isUnset(request.adviceId)) {
32079
+ query["AdviceId"] = request.adviceId;
32080
+ }
32081
+
32082
+ if (!Util.isUnset(request.DBClusterId)) {
32083
+ query["DBClusterId"] = request.DBClusterId;
32084
+ }
32085
+
32086
+ if (!Util.isUnset(request.regionId)) {
32087
+ query["RegionId"] = request.regionId;
32088
+ }
32089
+
32090
+ let req = new $OpenApi.OpenApiRequest({
32091
+ query: OpenApiUtil.query(query),
32092
+ });
32093
+ let params = new $OpenApi.Params({
32094
+ action: "ApplyAdviceById",
32095
+ version: "2021-12-01",
32096
+ protocol: "HTTPS",
32097
+ pathname: "/",
32098
+ method: "POST",
32099
+ authType: "AK",
32100
+ style: "RPC",
32101
+ reqBodyType: "formData",
32102
+ bodyType: "json",
32103
+ });
32104
+ return $tea.cast<ApplyAdviceByIdResponse>(await this.callApi(params, req, runtime), new ApplyAdviceByIdResponse({}));
32105
+ }
32106
+
32107
+ /**
32108
+ * 应用单条优化建议
32109
+ *
32110
+ * @param request - ApplyAdviceByIdRequest
32111
+ * @returns ApplyAdviceByIdResponse
32112
+ */
32113
+ async applyAdviceById(request: ApplyAdviceByIdRequest): Promise<ApplyAdviceByIdResponse> {
32114
+ let runtime = new $Util.RuntimeOptions({ });
32115
+ return await this.applyAdviceByIdWithOptions(request, runtime);
32116
+ }
32117
+
31432
32118
  /**
31433
32119
  * Attaches an elastic network interface (ENI) to an AnalyticDB for MySQL Data Lakehouse Edition cluster.
31434
32120
  *
@@ -31477,6 +32163,60 @@ export default class Client extends OpenApi {
31477
32163
  return await this.attachUserENIWithOptions(request, runtime);
31478
32164
  }
31479
32165
 
32166
+ /**
32167
+ * 批量应用优化建议
32168
+ *
32169
+ * @param request - BatchApplyAdviceByIdListRequest
32170
+ * @param runtime - runtime options for this request RuntimeOptions
32171
+ * @returns BatchApplyAdviceByIdListResponse
32172
+ */
32173
+ async batchApplyAdviceByIdListWithOptions(request: BatchApplyAdviceByIdListRequest, runtime: $Util.RuntimeOptions): Promise<BatchApplyAdviceByIdListResponse> {
32174
+ Util.validateModel(request);
32175
+ let query = { };
32176
+ if (!Util.isUnset(request.adviceDate)) {
32177
+ query["AdviceDate"] = request.adviceDate;
32178
+ }
32179
+
32180
+ if (!Util.isUnset(request.adviceIdList)) {
32181
+ query["AdviceIdList"] = request.adviceIdList;
32182
+ }
32183
+
32184
+ if (!Util.isUnset(request.DBClusterId)) {
32185
+ query["DBClusterId"] = request.DBClusterId;
32186
+ }
32187
+
32188
+ if (!Util.isUnset(request.regionId)) {
32189
+ query["RegionId"] = request.regionId;
32190
+ }
32191
+
32192
+ let req = new $OpenApi.OpenApiRequest({
32193
+ query: OpenApiUtil.query(query),
32194
+ });
32195
+ let params = new $OpenApi.Params({
32196
+ action: "BatchApplyAdviceByIdList",
32197
+ version: "2021-12-01",
32198
+ protocol: "HTTPS",
32199
+ pathname: "/",
32200
+ method: "POST",
32201
+ authType: "AK",
32202
+ style: "RPC",
32203
+ reqBodyType: "formData",
32204
+ bodyType: "json",
32205
+ });
32206
+ return $tea.cast<BatchApplyAdviceByIdListResponse>(await this.callApi(params, req, runtime), new BatchApplyAdviceByIdListResponse({}));
32207
+ }
32208
+
32209
+ /**
32210
+ * 批量应用优化建议
32211
+ *
32212
+ * @param request - BatchApplyAdviceByIdListRequest
32213
+ * @returns BatchApplyAdviceByIdListResponse
32214
+ */
32215
+ async batchApplyAdviceByIdList(request: BatchApplyAdviceByIdListRequest): Promise<BatchApplyAdviceByIdListResponse> {
32216
+ let runtime = new $Util.RuntimeOptions({ });
32217
+ return await this.batchApplyAdviceByIdListWithOptions(request, runtime);
32218
+ }
32219
+
31480
32220
  /**
31481
32221
  * Associates a standard account of an AnalyticDB for MySQL cluster with a Resource Access Management (RAM) user.
31482
32222
  *
@@ -31735,6 +32475,92 @@ export default class Client extends OpenApi {
31735
32475
  return await this.checkSampleDataSetWithOptions(request, runtime);
31736
32476
  }
31737
32477
 
32478
+ /**
32479
+ * 创建一站式链路
32480
+ *
32481
+ * @param request - CreateAPSJobRequest
32482
+ * @param runtime - runtime options for this request RuntimeOptions
32483
+ * @returns CreateAPSJobResponse
32484
+ */
32485
+ async createAPSJobWithOptions(request: CreateAPSJobRequest, runtime: $Util.RuntimeOptions): Promise<CreateAPSJobResponse> {
32486
+ Util.validateModel(request);
32487
+ let body : {[key: string ]: any} = { };
32488
+ if (!Util.isUnset(request.apsJobName)) {
32489
+ body["ApsJobName"] = request.apsJobName;
32490
+ }
32491
+
32492
+ if (!Util.isUnset(request.dbList)) {
32493
+ body["DbList"] = request.dbList;
32494
+ }
32495
+
32496
+ if (!Util.isUnset(request.destinationEndpointInstanceID)) {
32497
+ body["DestinationEndpointInstanceID"] = request.destinationEndpointInstanceID;
32498
+ }
32499
+
32500
+ if (!Util.isUnset(request.destinationEndpointPassword)) {
32501
+ body["DestinationEndpointPassword"] = request.destinationEndpointPassword;
32502
+ }
32503
+
32504
+ if (!Util.isUnset(request.destinationEndpointUserName)) {
32505
+ body["DestinationEndpointUserName"] = request.destinationEndpointUserName;
32506
+ }
32507
+
32508
+ if (!Util.isUnset(request.partitionList)) {
32509
+ body["PartitionList"] = request.partitionList;
32510
+ }
32511
+
32512
+ if (!Util.isUnset(request.regionId)) {
32513
+ body["RegionId"] = request.regionId;
32514
+ }
32515
+
32516
+ if (!Util.isUnset(request.sourceEndpointInstanceID)) {
32517
+ body["SourceEndpointInstanceID"] = request.sourceEndpointInstanceID;
32518
+ }
32519
+
32520
+ if (!Util.isUnset(request.sourceEndpointPassword)) {
32521
+ body["SourceEndpointPassword"] = request.sourceEndpointPassword;
32522
+ }
32523
+
32524
+ if (!Util.isUnset(request.sourceEndpointRegion)) {
32525
+ body["SourceEndpointRegion"] = request.sourceEndpointRegion;
32526
+ }
32527
+
32528
+ if (!Util.isUnset(request.sourceEndpointUserName)) {
32529
+ body["SourceEndpointUserName"] = request.sourceEndpointUserName;
32530
+ }
32531
+
32532
+ if (!Util.isUnset(request.targetTableMode)) {
32533
+ body["TargetTableMode"] = request.targetTableMode;
32534
+ }
32535
+
32536
+ let req = new $OpenApi.OpenApiRequest({
32537
+ body: OpenApiUtil.parseToMap(body),
32538
+ });
32539
+ let params = new $OpenApi.Params({
32540
+ action: "CreateAPSJob",
32541
+ version: "2021-12-01",
32542
+ protocol: "HTTPS",
32543
+ pathname: "/",
32544
+ method: "POST",
32545
+ authType: "AK",
32546
+ style: "RPC",
32547
+ reqBodyType: "formData",
32548
+ bodyType: "json",
32549
+ });
32550
+ return $tea.cast<CreateAPSJobResponse>(await this.callApi(params, req, runtime), new CreateAPSJobResponse({}));
32551
+ }
32552
+
32553
+ /**
32554
+ * 创建一站式链路
32555
+ *
32556
+ * @param request - CreateAPSJobRequest
32557
+ * @returns CreateAPSJobResponse
32558
+ */
32559
+ async createAPSJob(request: CreateAPSJobRequest): Promise<CreateAPSJobResponse> {
32560
+ let runtime = new $Util.RuntimeOptions({ });
32561
+ return await this.createAPSJobWithOptions(request, runtime);
32562
+ }
32563
+
31738
32564
  /**
31739
32565
  * Creates a database account for an AnalyticDB for MySQL cluster.
31740
32566
  *
@@ -33343,6 +34169,52 @@ export default class Client extends OpenApi {
33343
34169
  return await this.describeAdbMySqlTablesWithOptions(request, runtime);
33344
34170
  }
33345
34171
 
34172
+ /**
34173
+ * 查询建议服务是否开启
34174
+ *
34175
+ * @param request - DescribeAdviceServiceEnabledRequest
34176
+ * @param runtime - runtime options for this request RuntimeOptions
34177
+ * @returns DescribeAdviceServiceEnabledResponse
34178
+ */
34179
+ async describeAdviceServiceEnabledWithOptions(request: DescribeAdviceServiceEnabledRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAdviceServiceEnabledResponse> {
34180
+ Util.validateModel(request);
34181
+ let query = { };
34182
+ if (!Util.isUnset(request.DBClusterId)) {
34183
+ query["DBClusterId"] = request.DBClusterId;
34184
+ }
34185
+
34186
+ if (!Util.isUnset(request.regionId)) {
34187
+ query["RegionId"] = request.regionId;
34188
+ }
34189
+
34190
+ let req = new $OpenApi.OpenApiRequest({
34191
+ query: OpenApiUtil.query(query),
34192
+ });
34193
+ let params = new $OpenApi.Params({
34194
+ action: "DescribeAdviceServiceEnabled",
34195
+ version: "2021-12-01",
34196
+ protocol: "HTTPS",
34197
+ pathname: "/",
34198
+ method: "POST",
34199
+ authType: "AK",
34200
+ style: "RPC",
34201
+ reqBodyType: "formData",
34202
+ bodyType: "json",
34203
+ });
34204
+ return $tea.cast<DescribeAdviceServiceEnabledResponse>(await this.callApi(params, req, runtime), new DescribeAdviceServiceEnabledResponse({}));
34205
+ }
34206
+
34207
+ /**
34208
+ * 查询建议服务是否开启
34209
+ *
34210
+ * @param request - DescribeAdviceServiceEnabledRequest
34211
+ * @returns DescribeAdviceServiceEnabledResponse
34212
+ */
34213
+ async describeAdviceServiceEnabled(request: DescribeAdviceServiceEnabledRequest): Promise<DescribeAdviceServiceEnabledResponse> {
34214
+ let runtime = new $Util.RuntimeOptions({ });
34215
+ return await this.describeAdviceServiceEnabledWithOptions(request, runtime);
34216
+ }
34217
+
33346
34218
  /**
33347
34219
  * Queries a list of databases, tables, and columns in an AnalyticDB for MySQL cluster.
33348
34220
  *
@@ -33690,6 +34562,8 @@ export default class Client extends OpenApi {
33690
34562
  }
33691
34563
 
33692
34564
  /**
34565
+ * 查看集群备份设置
34566
+ *
33693
34567
  * @remarks
33694
34568
  * For information about the endpoints of AnalyticDB for MySQL, see [Endpoints](https://help.aliyun.com/document_detail/612373.html).
33695
34569
  *
@@ -33738,6 +34612,8 @@ export default class Client extends OpenApi {
33738
34612
  }
33739
34613
 
33740
34614
  /**
34615
+ * 查看集群备份设置
34616
+ *
33741
34617
  * @remarks
33742
34618
  * For information about the endpoints of AnalyticDB for MySQL, see [Endpoints](https://help.aliyun.com/document_detail/612373.html).
33743
34619
  *
@@ -36518,6 +37394,8 @@ export default class Client extends OpenApi {
36518
37394
  }
36519
37395
 
36520
37396
  /**
37397
+ * 解绑用户弹性网卡
37398
+ *
36521
37399
  * @remarks
36522
37400
  * For information about the endpoints of AnalyticDB for MySQL, see [Endpoints](https://help.aliyun.com/document_detail/612373.html).
36523
37401
  *
@@ -36550,6 +37428,8 @@ export default class Client extends OpenApi {
36550
37428
  }
36551
37429
 
36552
37430
  /**
37431
+ * 解绑用户弹性网卡
37432
+ *
36553
37433
  * @remarks
36554
37434
  * For information about the endpoints of AnalyticDB for MySQL, see [Endpoints](https://help.aliyun.com/document_detail/612373.html).
36555
37435
  *
@@ -39945,6 +40825,74 @@ export default class Client extends OpenApi {
39945
40825
  return await this.modifyPerformanceViewWithOptions(request, runtime);
39946
40826
  }
39947
40827
 
40828
+ /**
40829
+ * 修改用户eni交换机
40830
+ *
40831
+ * @param request - ModifyUserEniVswitchOptionsRequest
40832
+ * @param runtime - runtime options for this request RuntimeOptions
40833
+ * @returns ModifyUserEniVswitchOptionsResponse
40834
+ */
40835
+ async modifyUserEniVswitchOptionsWithOptions(request: ModifyUserEniVswitchOptionsRequest, runtime: $Util.RuntimeOptions): Promise<ModifyUserEniVswitchOptionsResponse> {
40836
+ Util.validateModel(request);
40837
+ let query = { };
40838
+ if (!Util.isUnset(request.dbClusterId)) {
40839
+ query["DbClusterId"] = request.dbClusterId;
40840
+ }
40841
+
40842
+ if (!Util.isUnset(request.ownerAccount)) {
40843
+ query["OwnerAccount"] = request.ownerAccount;
40844
+ }
40845
+
40846
+ if (!Util.isUnset(request.ownerId)) {
40847
+ query["OwnerId"] = request.ownerId;
40848
+ }
40849
+
40850
+ if (!Util.isUnset(request.regionId)) {
40851
+ query["RegionId"] = request.regionId;
40852
+ }
40853
+
40854
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
40855
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
40856
+ }
40857
+
40858
+ if (!Util.isUnset(request.resourceOwnerId)) {
40859
+ query["ResourceOwnerId"] = request.resourceOwnerId;
40860
+ }
40861
+
40862
+ let body : {[key: string ]: any} = { };
40863
+ if (!Util.isUnset(request.vSwitchOptions)) {
40864
+ body["VSwitchOptions"] = request.vSwitchOptions;
40865
+ }
40866
+
40867
+ let req = new $OpenApi.OpenApiRequest({
40868
+ query: OpenApiUtil.query(query),
40869
+ body: OpenApiUtil.parseToMap(body),
40870
+ });
40871
+ let params = new $OpenApi.Params({
40872
+ action: "ModifyUserEniVswitchOptions",
40873
+ version: "2021-12-01",
40874
+ protocol: "HTTPS",
40875
+ pathname: "/",
40876
+ method: "POST",
40877
+ authType: "AK",
40878
+ style: "RPC",
40879
+ reqBodyType: "formData",
40880
+ bodyType: "json",
40881
+ });
40882
+ return $tea.cast<ModifyUserEniVswitchOptionsResponse>(await this.callApi(params, req, runtime), new ModifyUserEniVswitchOptionsResponse({}));
40883
+ }
40884
+
40885
+ /**
40886
+ * 修改用户eni交换机
40887
+ *
40888
+ * @param request - ModifyUserEniVswitchOptionsRequest
40889
+ * @returns ModifyUserEniVswitchOptionsResponse
40890
+ */
40891
+ async modifyUserEniVswitchOptions(request: ModifyUserEniVswitchOptionsRequest): Promise<ModifyUserEniVswitchOptionsResponse> {
40892
+ let runtime = new $Util.RuntimeOptions({ });
40893
+ return await this.modifyUserEniVswitchOptionsWithOptions(request, runtime);
40894
+ }
40895
+
39948
40896
  /**
39949
40897
  * Preloads metrics for a Spark application.
39950
40898
  *