@alicloud/adb20211201 3.2.0 → 3.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/adb20211201",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -14375,6 +14375,143 @@ export class ExistRunningSQLEngineResponse extends $tea.Model {
14375
14375
  }
14376
14376
  }
14377
14377
 
14378
+ export class GetCreateTableSQLRequest extends $tea.Model {
14379
+ /**
14380
+ * @remarks
14381
+ * The ID of the AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster.
14382
+ *
14383
+ * This parameter is required.
14384
+ *
14385
+ * @example
14386
+ * amv-2ze8mbuai974s4y2
14387
+ */
14388
+ DBClusterId?: string;
14389
+ ownerAccount?: string;
14390
+ ownerId?: number;
14391
+ /**
14392
+ * @remarks
14393
+ * The region ID of the cluster.
14394
+ *
14395
+ * > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/143074.html) operation to query the most recent region list.
14396
+ *
14397
+ * This parameter is required.
14398
+ *
14399
+ * @example
14400
+ * cn-hangzhou
14401
+ */
14402
+ regionId?: string;
14403
+ resourceOwnerAccount?: string;
14404
+ resourceOwnerId?: number;
14405
+ /**
14406
+ * @remarks
14407
+ * The name of the database.
14408
+ *
14409
+ * @example
14410
+ * adb_demo
14411
+ */
14412
+ schemaName?: string;
14413
+ /**
14414
+ * @remarks
14415
+ * The name of the table.
14416
+ *
14417
+ * @example
14418
+ * test
14419
+ */
14420
+ tableName?: string;
14421
+ static names(): { [key: string]: string } {
14422
+ return {
14423
+ DBClusterId: 'DBClusterId',
14424
+ ownerAccount: 'OwnerAccount',
14425
+ ownerId: 'OwnerId',
14426
+ regionId: 'RegionId',
14427
+ resourceOwnerAccount: 'ResourceOwnerAccount',
14428
+ resourceOwnerId: 'ResourceOwnerId',
14429
+ schemaName: 'SchemaName',
14430
+ tableName: 'TableName',
14431
+ };
14432
+ }
14433
+
14434
+ static types(): { [key: string]: any } {
14435
+ return {
14436
+ DBClusterId: 'string',
14437
+ ownerAccount: 'string',
14438
+ ownerId: 'number',
14439
+ regionId: 'string',
14440
+ resourceOwnerAccount: 'string',
14441
+ resourceOwnerId: 'number',
14442
+ schemaName: 'string',
14443
+ tableName: 'string',
14444
+ };
14445
+ }
14446
+
14447
+ constructor(map?: { [key: string]: any }) {
14448
+ super(map);
14449
+ }
14450
+ }
14451
+
14452
+ export class GetCreateTableSQLResponseBody extends $tea.Model {
14453
+ /**
14454
+ * @remarks
14455
+ * The request ID.
14456
+ *
14457
+ * @example
14458
+ * 109462AF-B5FA-3D5A-9377-B27E5B******
14459
+ */
14460
+ requestId?: string;
14461
+ /**
14462
+ * @remarks
14463
+ * The SQL statement.
14464
+ *
14465
+ * @example
14466
+ * create table (
14467
+ * id varchar(32)
14468
+ * );
14469
+ */
14470
+ SQL?: string;
14471
+ static names(): { [key: string]: string } {
14472
+ return {
14473
+ requestId: 'RequestId',
14474
+ SQL: 'SQL',
14475
+ };
14476
+ }
14477
+
14478
+ static types(): { [key: string]: any } {
14479
+ return {
14480
+ requestId: 'string',
14481
+ SQL: 'string',
14482
+ };
14483
+ }
14484
+
14485
+ constructor(map?: { [key: string]: any }) {
14486
+ super(map);
14487
+ }
14488
+ }
14489
+
14490
+ export class GetCreateTableSQLResponse extends $tea.Model {
14491
+ headers?: { [key: string]: string };
14492
+ statusCode?: number;
14493
+ body?: GetCreateTableSQLResponseBody;
14494
+ static names(): { [key: string]: string } {
14495
+ return {
14496
+ headers: 'headers',
14497
+ statusCode: 'statusCode',
14498
+ body: 'body',
14499
+ };
14500
+ }
14501
+
14502
+ static types(): { [key: string]: any } {
14503
+ return {
14504
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
14505
+ statusCode: 'number',
14506
+ body: GetCreateTableSQLResponseBody,
14507
+ };
14508
+ }
14509
+
14510
+ constructor(map?: { [key: string]: any }) {
14511
+ super(map);
14512
+ }
14513
+ }
14514
+
14378
14515
  export class GetDatabaseObjectsRequest extends $tea.Model {
14379
14516
  /**
14380
14517
  * @remarks
@@ -25455,6 +25592,7 @@ export class DescribeDBClusterPerformanceResponseBodyPerformancesSeries extends
25455
25592
  * {instance_name: "am-***"}
25456
25593
  */
25457
25594
  tags?: string;
25595
+ translateKey?: string;
25458
25596
  /**
25459
25597
  * @remarks
25460
25598
  * The values of the performance metric at different points in time.
@@ -25464,6 +25602,7 @@ export class DescribeDBClusterPerformanceResponseBodyPerformancesSeries extends
25464
25602
  return {
25465
25603
  name: 'Name',
25466
25604
  tags: 'Tags',
25605
+ translateKey: 'TranslateKey',
25467
25606
  values: 'Values',
25468
25607
  };
25469
25608
  }
@@ -25472,6 +25611,7 @@ export class DescribeDBClusterPerformanceResponseBodyPerformancesSeries extends
25472
25611
  return {
25473
25612
  name: 'string',
25474
25613
  tags: 'string',
25614
+ translateKey: 'string',
25475
25615
  values: { 'type': 'array', 'itemType': 'string' },
25476
25616
  };
25477
25617
  }
@@ -36739,6 +36879,76 @@ export default class Client extends OpenApi {
36739
36879
  return await this.existRunningSQLEngineWithOptions(request, runtime);
36740
36880
  }
36741
36881
 
36882
+ /**
36883
+ * Queries the table creation statement for tables.
36884
+ *
36885
+ * @param request - GetCreateTableSQLRequest
36886
+ * @param runtime - runtime options for this request RuntimeOptions
36887
+ * @returns GetCreateTableSQLResponse
36888
+ */
36889
+ async getCreateTableSQLWithOptions(request: GetCreateTableSQLRequest, runtime: $Util.RuntimeOptions): Promise<GetCreateTableSQLResponse> {
36890
+ Util.validateModel(request);
36891
+ let query = { };
36892
+ if (!Util.isUnset(request.DBClusterId)) {
36893
+ query["DBClusterId"] = request.DBClusterId;
36894
+ }
36895
+
36896
+ if (!Util.isUnset(request.ownerAccount)) {
36897
+ query["OwnerAccount"] = request.ownerAccount;
36898
+ }
36899
+
36900
+ if (!Util.isUnset(request.ownerId)) {
36901
+ query["OwnerId"] = request.ownerId;
36902
+ }
36903
+
36904
+ if (!Util.isUnset(request.regionId)) {
36905
+ query["RegionId"] = request.regionId;
36906
+ }
36907
+
36908
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
36909
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
36910
+ }
36911
+
36912
+ if (!Util.isUnset(request.resourceOwnerId)) {
36913
+ query["ResourceOwnerId"] = request.resourceOwnerId;
36914
+ }
36915
+
36916
+ if (!Util.isUnset(request.schemaName)) {
36917
+ query["SchemaName"] = request.schemaName;
36918
+ }
36919
+
36920
+ if (!Util.isUnset(request.tableName)) {
36921
+ query["TableName"] = request.tableName;
36922
+ }
36923
+
36924
+ let req = new $OpenApi.OpenApiRequest({
36925
+ query: OpenApiUtil.query(query),
36926
+ });
36927
+ let params = new $OpenApi.Params({
36928
+ action: "GetCreateTableSQL",
36929
+ version: "2021-12-01",
36930
+ protocol: "HTTPS",
36931
+ pathname: "/",
36932
+ method: "POST",
36933
+ authType: "AK",
36934
+ style: "RPC",
36935
+ reqBodyType: "formData",
36936
+ bodyType: "json",
36937
+ });
36938
+ return $tea.cast<GetCreateTableSQLResponse>(await this.callApi(params, req, runtime), new GetCreateTableSQLResponse({}));
36939
+ }
36940
+
36941
+ /**
36942
+ * Queries the table creation statement for tables.
36943
+ *
36944
+ * @param request - GetCreateTableSQLRequest
36945
+ * @returns GetCreateTableSQLResponse
36946
+ */
36947
+ async getCreateTableSQL(request: GetCreateTableSQLRequest): Promise<GetCreateTableSQLResponse> {
36948
+ let runtime = new $Util.RuntimeOptions({ });
36949
+ return await this.getCreateTableSQLWithOptions(request, runtime);
36950
+ }
36951
+
36742
36952
  /**
36743
36953
  * Queries the information about databases.
36744
36954
  *