@alicloud/rds20140815 2.2.7 → 2.2.8

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/rds20140815",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -7070,6 +7070,126 @@ export class DescribeCharacterSetNameResponse extends $tea.Model {
7070
7070
  }
7071
7071
  }
7072
7072
 
7073
+ export class DescribeClassDetailsRequest extends $tea.Model {
7074
+ classCode?: string;
7075
+ clientToken?: string;
7076
+ commodityCode?: string;
7077
+ engine?: string;
7078
+ engineVersion?: string;
7079
+ ownerId?: number;
7080
+ regionId?: string;
7081
+ resourceOwnerAccount?: string;
7082
+ resourceOwnerId?: number;
7083
+ static names(): { [key: string]: string } {
7084
+ return {
7085
+ classCode: 'ClassCode',
7086
+ clientToken: 'ClientToken',
7087
+ commodityCode: 'CommodityCode',
7088
+ engine: 'Engine',
7089
+ engineVersion: 'EngineVersion',
7090
+ ownerId: 'OwnerId',
7091
+ regionId: 'RegionId',
7092
+ resourceOwnerAccount: 'ResourceOwnerAccount',
7093
+ resourceOwnerId: 'ResourceOwnerId',
7094
+ };
7095
+ }
7096
+
7097
+ static types(): { [key: string]: any } {
7098
+ return {
7099
+ classCode: 'string',
7100
+ clientToken: 'string',
7101
+ commodityCode: 'string',
7102
+ engine: 'string',
7103
+ engineVersion: 'string',
7104
+ ownerId: 'number',
7105
+ regionId: 'string',
7106
+ resourceOwnerAccount: 'string',
7107
+ resourceOwnerId: 'number',
7108
+ };
7109
+ }
7110
+
7111
+ constructor(map?: { [key: string]: any }) {
7112
+ super(map);
7113
+ }
7114
+ }
7115
+
7116
+ export class DescribeClassDetailsResponseBody extends $tea.Model {
7117
+ category?: string;
7118
+ classCode?: string;
7119
+ classGroup?: string;
7120
+ cpu?: string;
7121
+ DBInstanceStorageType?: string;
7122
+ instructionSetArch?: string;
7123
+ maxConnections?: string;
7124
+ maxIOMBPS?: string;
7125
+ maxIOPS?: string;
7126
+ memoryClass?: string;
7127
+ referencePrice?: string;
7128
+ requestId?: string;
7129
+ static names(): { [key: string]: string } {
7130
+ return {
7131
+ category: 'Category',
7132
+ classCode: 'ClassCode',
7133
+ classGroup: 'ClassGroup',
7134
+ cpu: 'Cpu',
7135
+ DBInstanceStorageType: 'DBInstanceStorageType',
7136
+ instructionSetArch: 'InstructionSetArch',
7137
+ maxConnections: 'MaxConnections',
7138
+ maxIOMBPS: 'MaxIOMBPS',
7139
+ maxIOPS: 'MaxIOPS',
7140
+ memoryClass: 'MemoryClass',
7141
+ referencePrice: 'ReferencePrice',
7142
+ requestId: 'RequestId',
7143
+ };
7144
+ }
7145
+
7146
+ static types(): { [key: string]: any } {
7147
+ return {
7148
+ category: 'string',
7149
+ classCode: 'string',
7150
+ classGroup: 'string',
7151
+ cpu: 'string',
7152
+ DBInstanceStorageType: 'string',
7153
+ instructionSetArch: 'string',
7154
+ maxConnections: 'string',
7155
+ maxIOMBPS: 'string',
7156
+ maxIOPS: 'string',
7157
+ memoryClass: 'string',
7158
+ referencePrice: 'string',
7159
+ requestId: 'string',
7160
+ };
7161
+ }
7162
+
7163
+ constructor(map?: { [key: string]: any }) {
7164
+ super(map);
7165
+ }
7166
+ }
7167
+
7168
+ export class DescribeClassDetailsResponse extends $tea.Model {
7169
+ headers: { [key: string]: string };
7170
+ statusCode: number;
7171
+ body: DescribeClassDetailsResponseBody;
7172
+ static names(): { [key: string]: string } {
7173
+ return {
7174
+ headers: 'headers',
7175
+ statusCode: 'statusCode',
7176
+ body: 'body',
7177
+ };
7178
+ }
7179
+
7180
+ static types(): { [key: string]: any } {
7181
+ return {
7182
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
7183
+ statusCode: 'number',
7184
+ body: DescribeClassDetailsResponseBody,
7185
+ };
7186
+ }
7187
+
7188
+ constructor(map?: { [key: string]: any }) {
7189
+ super(map);
7190
+ }
7191
+ }
7192
+
7073
7193
  export class DescribeCloudMigrationPrecheckResultRequest extends $tea.Model {
7074
7194
  DBInstanceName?: string;
7075
7195
  pageNumber?: number;
@@ -37812,6 +37932,67 @@ export default class Client extends OpenApi {
37812
37932
  return await this.describeCharacterSetNameWithOptions(request, runtime);
37813
37933
  }
37814
37934
 
37935
+ async describeClassDetailsWithOptions(request: DescribeClassDetailsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeClassDetailsResponse> {
37936
+ Util.validateModel(request);
37937
+ let query = { };
37938
+ if (!Util.isUnset(request.classCode)) {
37939
+ query["ClassCode"] = request.classCode;
37940
+ }
37941
+
37942
+ if (!Util.isUnset(request.clientToken)) {
37943
+ query["ClientToken"] = request.clientToken;
37944
+ }
37945
+
37946
+ if (!Util.isUnset(request.commodityCode)) {
37947
+ query["CommodityCode"] = request.commodityCode;
37948
+ }
37949
+
37950
+ if (!Util.isUnset(request.engine)) {
37951
+ query["Engine"] = request.engine;
37952
+ }
37953
+
37954
+ if (!Util.isUnset(request.engineVersion)) {
37955
+ query["EngineVersion"] = request.engineVersion;
37956
+ }
37957
+
37958
+ if (!Util.isUnset(request.ownerId)) {
37959
+ query["OwnerId"] = request.ownerId;
37960
+ }
37961
+
37962
+ if (!Util.isUnset(request.regionId)) {
37963
+ query["RegionId"] = request.regionId;
37964
+ }
37965
+
37966
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
37967
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
37968
+ }
37969
+
37970
+ if (!Util.isUnset(request.resourceOwnerId)) {
37971
+ query["ResourceOwnerId"] = request.resourceOwnerId;
37972
+ }
37973
+
37974
+ let req = new $OpenApi.OpenApiRequest({
37975
+ query: OpenApiUtil.query(query),
37976
+ });
37977
+ let params = new $OpenApi.Params({
37978
+ action: "DescribeClassDetails",
37979
+ version: "2014-08-15",
37980
+ protocol: "HTTPS",
37981
+ pathname: "/",
37982
+ method: "POST",
37983
+ authType: "AK",
37984
+ style: "RPC",
37985
+ reqBodyType: "formData",
37986
+ bodyType: "json",
37987
+ });
37988
+ return $tea.cast<DescribeClassDetailsResponse>(await this.callApi(params, req, runtime), new DescribeClassDetailsResponse({}));
37989
+ }
37990
+
37991
+ async describeClassDetails(request: DescribeClassDetailsRequest): Promise<DescribeClassDetailsResponse> {
37992
+ let runtime = new $Util.RuntimeOptions({ });
37993
+ return await this.describeClassDetailsWithOptions(request, runtime);
37994
+ }
37995
+
37815
37996
  /**
37816
37997
  * ## Prerequisites
37817
37998
  * 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.