@alicloud/adb20211201 3.5.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
@@ -5621,21 +6015,169 @@ export class DescribeAdbMySqlSchemasResponseBody extends $tea.Model {
5621
6015
  schemas?: string[];
5622
6016
  /**
5623
6017
  * @remarks
5624
- * Indicates whether the request was successful. Valid values:
6018
+ * Indicates whether the request was successful. Valid values:
6019
+ *
6020
+ * * **true**
6021
+ * * **false**
6022
+ *
6023
+ * @example
6024
+ * true
6025
+ */
6026
+ success?: boolean;
6027
+ static names(): { [key: string]: string } {
6028
+ return {
6029
+ message: 'Message',
6030
+ requestId: 'RequestId',
6031
+ schemas: 'Schemas',
6032
+ success: 'Success',
6033
+ };
6034
+ }
6035
+
6036
+ static types(): { [key: string]: any } {
6037
+ return {
6038
+ message: 'string',
6039
+ requestId: 'string',
6040
+ schemas: { 'type': 'array', 'itemType': 'string' },
6041
+ success: 'boolean',
6042
+ };
6043
+ }
6044
+
6045
+ constructor(map?: { [key: string]: any }) {
6046
+ super(map);
6047
+ }
6048
+ }
6049
+
6050
+ export class DescribeAdbMySqlSchemasResponse extends $tea.Model {
6051
+ headers?: { [key: string]: string };
6052
+ statusCode?: number;
6053
+ body?: DescribeAdbMySqlSchemasResponseBody;
6054
+ static names(): { [key: string]: string } {
6055
+ return {
6056
+ headers: 'headers',
6057
+ statusCode: 'statusCode',
6058
+ body: 'body',
6059
+ };
6060
+ }
6061
+
6062
+ static types(): { [key: string]: any } {
6063
+ return {
6064
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6065
+ statusCode: 'number',
6066
+ body: DescribeAdbMySqlSchemasResponseBody,
6067
+ };
6068
+ }
6069
+
6070
+ constructor(map?: { [key: string]: any }) {
6071
+ super(map);
6072
+ }
6073
+ }
6074
+
6075
+ export class DescribeAdbMySqlTablesRequest extends $tea.Model {
6076
+ /**
6077
+ * @remarks
6078
+ * The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster.
6079
+ *
6080
+ * This parameter is required.
6081
+ *
6082
+ * @example
6083
+ * amv-bp11q28kvl688****
6084
+ */
6085
+ DBClusterId?: string;
6086
+ /**
6087
+ * @remarks
6088
+ * The region ID.
6089
+ *
6090
+ * > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/454314.html) operation to query the most recent region list.
6091
+ *
6092
+ * This parameter is required.
6093
+ *
6094
+ * @example
6095
+ * cn-hangzhou
6096
+ */
6097
+ regionId?: string;
6098
+ /**
6099
+ * @remarks
6100
+ * The name of the database.
6101
+ *
6102
+ * @example
6103
+ * adb_demo
6104
+ *
6105
+ * **if can be null:**
6106
+ * false
6107
+ */
6108
+ schema?: string;
6109
+ static names(): { [key: string]: string } {
6110
+ return {
6111
+ DBClusterId: 'DBClusterId',
6112
+ regionId: 'RegionId',
6113
+ schema: 'Schema',
6114
+ };
6115
+ }
6116
+
6117
+ static types(): { [key: string]: any } {
6118
+ return {
6119
+ DBClusterId: 'string',
6120
+ regionId: 'string',
6121
+ schema: 'string',
6122
+ };
6123
+ }
6124
+
6125
+ constructor(map?: { [key: string]: any }) {
6126
+ super(map);
6127
+ }
6128
+ }
6129
+
6130
+ export class DescribeAdbMySqlTablesResponseBody extends $tea.Model {
6131
+ /**
6132
+ * @remarks
6133
+ * The message returned for the operation. Valid values:
6134
+ *
6135
+ * * **Success** is returned if the operation is successful.
6136
+ * * An error message is returned if the operation fails.
6137
+ *
6138
+ * @example
6139
+ * Success
6140
+ */
6141
+ message?: string;
6142
+ /**
6143
+ * @remarks
6144
+ * The ID of the request.
6145
+ *
6146
+ * @example
6147
+ * 7A7D49E3-5585-5DF8-B62C-75C46B4991DC
6148
+ */
6149
+ requestId?: string;
6150
+ /**
6151
+ * @remarks
6152
+ * The name of the database.
6153
+ *
6154
+ * @example
6155
+ * adb_demo
6156
+ */
6157
+ schema?: string;
6158
+ /**
6159
+ * @remarks
6160
+ * Indicates whether the operation is successful. Valid values:
5625
6161
  *
5626
- * * **true**
5627
- * * **false**
6162
+ * * **true**: The operation is successful.
6163
+ * * **false**: The operation fails.
5628
6164
  *
5629
6165
  * @example
5630
6166
  * true
5631
6167
  */
5632
6168
  success?: boolean;
6169
+ /**
6170
+ * @remarks
6171
+ * The names of tables.
6172
+ */
6173
+ tables?: string[];
5633
6174
  static names(): { [key: string]: string } {
5634
6175
  return {
5635
6176
  message: 'Message',
5636
6177
  requestId: 'RequestId',
5637
- schemas: 'Schemas',
6178
+ schema: 'Schema',
5638
6179
  success: 'Success',
6180
+ tables: 'Tables',
5639
6181
  };
5640
6182
  }
5641
6183
 
@@ -5643,8 +6185,9 @@ export class DescribeAdbMySqlSchemasResponseBody extends $tea.Model {
5643
6185
  return {
5644
6186
  message: 'string',
5645
6187
  requestId: 'string',
5646
- schemas: { 'type': 'array', 'itemType': 'string' },
6188
+ schema: 'string',
5647
6189
  success: 'boolean',
6190
+ tables: { 'type': 'array', 'itemType': 'string' },
5648
6191
  };
5649
6192
  }
5650
6193
 
@@ -5653,10 +6196,10 @@ export class DescribeAdbMySqlSchemasResponseBody extends $tea.Model {
5653
6196
  }
5654
6197
  }
5655
6198
 
5656
- export class DescribeAdbMySqlSchemasResponse extends $tea.Model {
6199
+ export class DescribeAdbMySqlTablesResponse extends $tea.Model {
5657
6200
  headers?: { [key: string]: string };
5658
6201
  statusCode?: number;
5659
- body?: DescribeAdbMySqlSchemasResponseBody;
6202
+ body?: DescribeAdbMySqlTablesResponseBody;
5660
6203
  static names(): { [key: string]: string } {
5661
6204
  return {
5662
6205
  headers: 'headers',
@@ -5669,7 +6212,7 @@ export class DescribeAdbMySqlSchemasResponse extends $tea.Model {
5669
6212
  return {
5670
6213
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5671
6214
  statusCode: 'number',
5672
- body: DescribeAdbMySqlSchemasResponseBody,
6215
+ body: DescribeAdbMySqlTablesResponseBody,
5673
6216
  };
5674
6217
  }
5675
6218
 
@@ -5678,45 +6221,27 @@ export class DescribeAdbMySqlSchemasResponse extends $tea.Model {
5678
6221
  }
5679
6222
  }
5680
6223
 
5681
- export class DescribeAdbMySqlTablesRequest extends $tea.Model {
6224
+ export class DescribeAdviceServiceEnabledRequest extends $tea.Model {
5682
6225
  /**
5683
6226
  * @remarks
5684
- * The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster.
5685
- *
5686
6227
  * This parameter is required.
5687
6228
  *
5688
6229
  * @example
5689
- * amv-bp11q28kvl688****
6230
+ * amv-2ze0vp0j6t3to****
5690
6231
  */
5691
6232
  DBClusterId?: string;
5692
6233
  /**
5693
6234
  * @remarks
5694
- * The region ID.
5695
- *
5696
- * > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/454314.html) operation to query the most recent region list.
5697
- *
5698
6235
  * This parameter is required.
5699
6236
  *
5700
6237
  * @example
5701
6238
  * cn-hangzhou
5702
6239
  */
5703
6240
  regionId?: string;
5704
- /**
5705
- * @remarks
5706
- * The name of the database.
5707
- *
5708
- * @example
5709
- * adb_demo
5710
- *
5711
- * **if can be null:**
5712
- * false
5713
- */
5714
- schema?: string;
5715
6241
  static names(): { [key: string]: string } {
5716
6242
  return {
5717
6243
  DBClusterId: 'DBClusterId',
5718
6244
  regionId: 'RegionId',
5719
- schema: 'Schema',
5720
6245
  };
5721
6246
  }
5722
6247
 
@@ -5724,7 +6249,6 @@ export class DescribeAdbMySqlTablesRequest extends $tea.Model {
5724
6249
  return {
5725
6250
  DBClusterId: 'string',
5726
6251
  regionId: 'string',
5727
- schema: 'string',
5728
6252
  };
5729
6253
  }
5730
6254
 
@@ -5733,57 +6257,27 @@ export class DescribeAdbMySqlTablesRequest extends $tea.Model {
5733
6257
  }
5734
6258
  }
5735
6259
 
5736
- export class DescribeAdbMySqlTablesResponseBody extends $tea.Model {
6260
+ export class DescribeAdviceServiceEnabledResponseBody extends $tea.Model {
5737
6261
  /**
5738
- * @remarks
5739
- * The message returned for the operation. Valid values:
5740
- *
5741
- * * **Success** is returned if the operation is successful.
5742
- * * An error message is returned if the operation fails.
5743
- *
5744
6262
  * @example
5745
6263
  * Success
5746
6264
  */
5747
6265
  message?: string;
5748
6266
  /**
5749
- * @remarks
5750
- * The ID of the request.
5751
- *
5752
6267
  * @example
5753
- * 7A7D49E3-5585-5DF8-B62C-75C46B4991DC
6268
+ * E031AABF-BD56-5966-A063-4283EF18DB45
5754
6269
  */
5755
6270
  requestId?: string;
5756
6271
  /**
5757
- * @remarks
5758
- * The name of the database.
5759
- *
5760
- * @example
5761
- * adb_demo
5762
- */
5763
- schema?: string;
5764
- /**
5765
- * @remarks
5766
- * Indicates whether the operation is successful. Valid values:
5767
- *
5768
- * * **true**: The operation is successful.
5769
- * * **false**: The operation fails.
5770
- *
5771
6272
  * @example
5772
- * true
6273
+ * False
5773
6274
  */
5774
- success?: boolean;
5775
- /**
5776
- * @remarks
5777
- * The names of tables.
5778
- */
5779
- tables?: string[];
6275
+ result?: boolean;
5780
6276
  static names(): { [key: string]: string } {
5781
6277
  return {
5782
6278
  message: 'Message',
5783
6279
  requestId: 'RequestId',
5784
- schema: 'Schema',
5785
- success: 'Success',
5786
- tables: 'Tables',
6280
+ result: 'Result',
5787
6281
  };
5788
6282
  }
5789
6283
 
@@ -5791,9 +6285,7 @@ export class DescribeAdbMySqlTablesResponseBody extends $tea.Model {
5791
6285
  return {
5792
6286
  message: 'string',
5793
6287
  requestId: 'string',
5794
- schema: 'string',
5795
- success: 'boolean',
5796
- tables: { 'type': 'array', 'itemType': 'string' },
6288
+ result: 'boolean',
5797
6289
  };
5798
6290
  }
5799
6291
 
@@ -5802,10 +6294,10 @@ export class DescribeAdbMySqlTablesResponseBody extends $tea.Model {
5802
6294
  }
5803
6295
  }
5804
6296
 
5805
- export class DescribeAdbMySqlTablesResponse extends $tea.Model {
6297
+ export class DescribeAdviceServiceEnabledResponse extends $tea.Model {
5806
6298
  headers?: { [key: string]: string };
5807
6299
  statusCode?: number;
5808
- body?: DescribeAdbMySqlTablesResponseBody;
6300
+ body?: DescribeAdviceServiceEnabledResponseBody;
5809
6301
  static names(): { [key: string]: string } {
5810
6302
  return {
5811
6303
  headers: 'headers',
@@ -5818,7 +6310,7 @@ export class DescribeAdbMySqlTablesResponse extends $tea.Model {
5818
6310
  return {
5819
6311
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5820
6312
  statusCode: 'number',
5821
- body: DescribeAdbMySqlTablesResponseBody,
6313
+ body: DescribeAdviceServiceEnabledResponseBody,
5822
6314
  };
5823
6315
  }
5824
6316
 
@@ -31569,6 +32061,60 @@ export default class Client extends OpenApi {
31569
32061
  return await this.allocateClusterPublicConnectionWithOptions(request, runtime);
31570
32062
  }
31571
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
+
31572
32118
  /**
31573
32119
  * Attaches an elastic network interface (ENI) to an AnalyticDB for MySQL Data Lakehouse Edition cluster.
31574
32120
  *
@@ -31617,6 +32163,60 @@ export default class Client extends OpenApi {
31617
32163
  return await this.attachUserENIWithOptions(request, runtime);
31618
32164
  }
31619
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
+
31620
32220
  /**
31621
32221
  * Associates a standard account of an AnalyticDB for MySQL cluster with a Resource Access Management (RAM) user.
31622
32222
  *
@@ -31875,6 +32475,92 @@ export default class Client extends OpenApi {
31875
32475
  return await this.checkSampleDataSetWithOptions(request, runtime);
31876
32476
  }
31877
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
+
31878
32564
  /**
31879
32565
  * Creates a database account for an AnalyticDB for MySQL cluster.
31880
32566
  *
@@ -33483,6 +34169,52 @@ export default class Client extends OpenApi {
33483
34169
  return await this.describeAdbMySqlTablesWithOptions(request, runtime);
33484
34170
  }
33485
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
+
33486
34218
  /**
33487
34219
  * Queries a list of databases, tables, and columns in an AnalyticDB for MySQL cluster.
33488
34220
  *