@alicloud/rds20140815 2.2.7 → 2.2.9

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 CHANGED
@@ -3741,6 +3741,65 @@ export declare class DescribeCharacterSetNameResponse extends $tea.Model {
3741
3741
  [key: string]: any;
3742
3742
  });
3743
3743
  }
3744
+ export declare class DescribeClassDetailsRequest extends $tea.Model {
3745
+ classCode?: string;
3746
+ clientToken?: string;
3747
+ commodityCode?: string;
3748
+ engine?: string;
3749
+ engineVersion?: string;
3750
+ ownerId?: number;
3751
+ regionId?: string;
3752
+ resourceOwnerAccount?: string;
3753
+ resourceOwnerId?: number;
3754
+ static names(): {
3755
+ [key: string]: string;
3756
+ };
3757
+ static types(): {
3758
+ [key: string]: any;
3759
+ };
3760
+ constructor(map?: {
3761
+ [key: string]: any;
3762
+ });
3763
+ }
3764
+ export declare class DescribeClassDetailsResponseBody extends $tea.Model {
3765
+ category?: string;
3766
+ classCode?: string;
3767
+ classGroup?: string;
3768
+ cpu?: string;
3769
+ DBInstanceStorageType?: string;
3770
+ instructionSetArch?: string;
3771
+ maxConnections?: string;
3772
+ maxIOMBPS?: string;
3773
+ maxIOPS?: string;
3774
+ memoryClass?: string;
3775
+ referencePrice?: string;
3776
+ requestId?: string;
3777
+ static names(): {
3778
+ [key: string]: string;
3779
+ };
3780
+ static types(): {
3781
+ [key: string]: any;
3782
+ };
3783
+ constructor(map?: {
3784
+ [key: string]: any;
3785
+ });
3786
+ }
3787
+ export declare class DescribeClassDetailsResponse extends $tea.Model {
3788
+ headers: {
3789
+ [key: string]: string;
3790
+ };
3791
+ statusCode: number;
3792
+ body: DescribeClassDetailsResponseBody;
3793
+ static names(): {
3794
+ [key: string]: string;
3795
+ };
3796
+ static types(): {
3797
+ [key: string]: any;
3798
+ };
3799
+ constructor(map?: {
3800
+ [key: string]: any;
3801
+ });
3802
+ }
3744
3803
  export declare class DescribeCloudMigrationPrecheckResultRequest extends $tea.Model {
3745
3804
  DBInstanceName?: string;
3746
3805
  pageNumber?: number;
@@ -18338,6 +18397,8 @@ export default class Client extends OpenApi {
18338
18397
  describeBinlogFiles(request: DescribeBinlogFilesRequest): Promise<DescribeBinlogFilesResponse>;
18339
18398
  describeCharacterSetNameWithOptions(request: DescribeCharacterSetNameRequest, runtime: $Util.RuntimeOptions): Promise<DescribeCharacterSetNameResponse>;
18340
18399
  describeCharacterSetName(request: DescribeCharacterSetNameRequest): Promise<DescribeCharacterSetNameResponse>;
18400
+ describeClassDetailsWithOptions(request: DescribeClassDetailsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeClassDetailsResponse>;
18401
+ describeClassDetails(request: DescribeClassDetailsRequest): Promise<DescribeClassDetailsResponse>;
18341
18402
  /**
18342
18403
  * ## Prerequisites
18343
18404
  * Before you call the DescribeCloudMigrationPrecheckResult operation, make sure that the CreateCloudMigrationPrecheckTask operation is called to create a cloud migration assessment task for the ApsaraDB RDS for PostgreSQL instance.
package/dist/client.js CHANGED
@@ -5457,6 +5457,96 @@ class DescribeCharacterSetNameResponse extends $tea.Model {
5457
5457
  }
5458
5458
  }
5459
5459
  exports.DescribeCharacterSetNameResponse = DescribeCharacterSetNameResponse;
5460
+ class DescribeClassDetailsRequest extends $tea.Model {
5461
+ constructor(map) {
5462
+ super(map);
5463
+ }
5464
+ static names() {
5465
+ return {
5466
+ classCode: 'ClassCode',
5467
+ clientToken: 'ClientToken',
5468
+ commodityCode: 'CommodityCode',
5469
+ engine: 'Engine',
5470
+ engineVersion: 'EngineVersion',
5471
+ ownerId: 'OwnerId',
5472
+ regionId: 'RegionId',
5473
+ resourceOwnerAccount: 'ResourceOwnerAccount',
5474
+ resourceOwnerId: 'ResourceOwnerId',
5475
+ };
5476
+ }
5477
+ static types() {
5478
+ return {
5479
+ classCode: 'string',
5480
+ clientToken: 'string',
5481
+ commodityCode: 'string',
5482
+ engine: 'string',
5483
+ engineVersion: 'string',
5484
+ ownerId: 'number',
5485
+ regionId: 'string',
5486
+ resourceOwnerAccount: 'string',
5487
+ resourceOwnerId: 'number',
5488
+ };
5489
+ }
5490
+ }
5491
+ exports.DescribeClassDetailsRequest = DescribeClassDetailsRequest;
5492
+ class DescribeClassDetailsResponseBody extends $tea.Model {
5493
+ constructor(map) {
5494
+ super(map);
5495
+ }
5496
+ static names() {
5497
+ return {
5498
+ category: 'Category',
5499
+ classCode: 'ClassCode',
5500
+ classGroup: 'ClassGroup',
5501
+ cpu: 'Cpu',
5502
+ DBInstanceStorageType: 'DBInstanceStorageType',
5503
+ instructionSetArch: 'InstructionSetArch',
5504
+ maxConnections: 'MaxConnections',
5505
+ maxIOMBPS: 'MaxIOMBPS',
5506
+ maxIOPS: 'MaxIOPS',
5507
+ memoryClass: 'MemoryClass',
5508
+ referencePrice: 'ReferencePrice',
5509
+ requestId: 'RequestId',
5510
+ };
5511
+ }
5512
+ static types() {
5513
+ return {
5514
+ category: 'string',
5515
+ classCode: 'string',
5516
+ classGroup: 'string',
5517
+ cpu: 'string',
5518
+ DBInstanceStorageType: 'string',
5519
+ instructionSetArch: 'string',
5520
+ maxConnections: 'string',
5521
+ maxIOMBPS: 'string',
5522
+ maxIOPS: 'string',
5523
+ memoryClass: 'string',
5524
+ referencePrice: 'string',
5525
+ requestId: 'string',
5526
+ };
5527
+ }
5528
+ }
5529
+ exports.DescribeClassDetailsResponseBody = DescribeClassDetailsResponseBody;
5530
+ class DescribeClassDetailsResponse extends $tea.Model {
5531
+ constructor(map) {
5532
+ super(map);
5533
+ }
5534
+ static names() {
5535
+ return {
5536
+ headers: 'headers',
5537
+ statusCode: 'statusCode',
5538
+ body: 'body',
5539
+ };
5540
+ }
5541
+ static types() {
5542
+ return {
5543
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5544
+ statusCode: 'number',
5545
+ body: DescribeClassDetailsResponseBody,
5546
+ };
5547
+ }
5548
+ }
5549
+ exports.DescribeClassDetailsResponse = DescribeClassDetailsResponse;
5460
5550
  class DescribeCloudMigrationPrecheckResultRequest extends $tea.Model {
5461
5551
  constructor(map) {
5462
5552
  super(map);
@@ -29711,6 +29801,56 @@ class Client extends openapi_client_1.default {
29711
29801
  let runtime = new $Util.RuntimeOptions({});
29712
29802
  return await this.describeCharacterSetNameWithOptions(request, runtime);
29713
29803
  }
29804
+ async describeClassDetailsWithOptions(request, runtime) {
29805
+ tea_util_1.default.validateModel(request);
29806
+ let query = {};
29807
+ if (!tea_util_1.default.isUnset(request.classCode)) {
29808
+ query["ClassCode"] = request.classCode;
29809
+ }
29810
+ if (!tea_util_1.default.isUnset(request.clientToken)) {
29811
+ query["ClientToken"] = request.clientToken;
29812
+ }
29813
+ if (!tea_util_1.default.isUnset(request.commodityCode)) {
29814
+ query["CommodityCode"] = request.commodityCode;
29815
+ }
29816
+ if (!tea_util_1.default.isUnset(request.engine)) {
29817
+ query["Engine"] = request.engine;
29818
+ }
29819
+ if (!tea_util_1.default.isUnset(request.engineVersion)) {
29820
+ query["EngineVersion"] = request.engineVersion;
29821
+ }
29822
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
29823
+ query["OwnerId"] = request.ownerId;
29824
+ }
29825
+ if (!tea_util_1.default.isUnset(request.regionId)) {
29826
+ query["RegionId"] = request.regionId;
29827
+ }
29828
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
29829
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
29830
+ }
29831
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
29832
+ query["ResourceOwnerId"] = request.resourceOwnerId;
29833
+ }
29834
+ let req = new $OpenApi.OpenApiRequest({
29835
+ query: openapi_util_1.default.query(query),
29836
+ });
29837
+ let params = new $OpenApi.Params({
29838
+ action: "DescribeClassDetails",
29839
+ version: "2014-08-15",
29840
+ protocol: "HTTPS",
29841
+ pathname: "/",
29842
+ method: "POST",
29843
+ authType: "AK",
29844
+ style: "RPC",
29845
+ reqBodyType: "formData",
29846
+ bodyType: "json",
29847
+ });
29848
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeClassDetailsResponse({}));
29849
+ }
29850
+ async describeClassDetails(request) {
29851
+ let runtime = new $Util.RuntimeOptions({});
29852
+ return await this.describeClassDetailsWithOptions(request, runtime);
29853
+ }
29714
29854
  /**
29715
29855
  * ## Prerequisites
29716
29856
  * Before you call the DescribeCloudMigrationPrecheckResult operation, make sure that the CreateCloudMigrationPrecheckTask operation is called to create a cloud migration assessment task for the ApsaraDB RDS for PostgreSQL instance.