@alicloud/polardb20170801 4.0.0 → 4.1.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/polardb20170801",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.7",
24
- "@alicloud/openapi-client": "^0.4.4",
24
+ "@alicloud/openapi-client": "^0.4.7",
25
25
  "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
package/src/client.ts CHANGED
@@ -870,6 +870,7 @@ export class CreateDBClusterRequest extends $tea.Model {
870
870
  parameterGroupId?: string;
871
871
  payType?: string;
872
872
  period?: string;
873
+ provisionedIops?: number;
873
874
  proxyClass?: string;
874
875
  proxyType?: string;
875
876
  regionId?: string;
@@ -925,6 +926,7 @@ export class CreateDBClusterRequest extends $tea.Model {
925
926
  parameterGroupId: 'ParameterGroupId',
926
927
  payType: 'PayType',
927
928
  period: 'Period',
929
+ provisionedIops: 'ProvisionedIops',
928
930
  proxyClass: 'ProxyClass',
929
931
  proxyType: 'ProxyType',
930
932
  regionId: 'RegionId',
@@ -983,6 +985,7 @@ export class CreateDBClusterRequest extends $tea.Model {
983
985
  parameterGroupId: 'string',
984
986
  payType: 'string',
985
987
  period: 'string',
988
+ provisionedIops: 'number',
986
989
  proxyClass: 'string',
987
990
  proxyType: 'string',
988
991
  regionId: 'string',
@@ -5963,6 +5966,87 @@ export class DescribeDBProxyPerformanceResponse extends $tea.Model {
5963
5966
  }
5964
5967
  }
5965
5968
 
5969
+ export class DescribeDasConfigRequest extends $tea.Model {
5970
+ DBClusterId?: string;
5971
+ ownerAccount?: string;
5972
+ ownerId?: number;
5973
+ resourceOwnerAccount?: string;
5974
+ resourceOwnerId?: number;
5975
+ static names(): { [key: string]: string } {
5976
+ return {
5977
+ DBClusterId: 'DBClusterId',
5978
+ ownerAccount: 'OwnerAccount',
5979
+ ownerId: 'OwnerId',
5980
+ resourceOwnerAccount: 'ResourceOwnerAccount',
5981
+ resourceOwnerId: 'ResourceOwnerId',
5982
+ };
5983
+ }
5984
+
5985
+ static types(): { [key: string]: any } {
5986
+ return {
5987
+ DBClusterId: 'string',
5988
+ ownerAccount: 'string',
5989
+ ownerId: 'number',
5990
+ resourceOwnerAccount: 'string',
5991
+ resourceOwnerId: 'number',
5992
+ };
5993
+ }
5994
+
5995
+ constructor(map?: { [key: string]: any }) {
5996
+ super(map);
5997
+ }
5998
+ }
5999
+
6000
+ export class DescribeDasConfigResponseBody extends $tea.Model {
6001
+ requestId?: string;
6002
+ storageAutoScale?: string;
6003
+ storageUpperBound?: number;
6004
+ static names(): { [key: string]: string } {
6005
+ return {
6006
+ requestId: 'RequestId',
6007
+ storageAutoScale: 'StorageAutoScale',
6008
+ storageUpperBound: 'StorageUpperBound',
6009
+ };
6010
+ }
6011
+
6012
+ static types(): { [key: string]: any } {
6013
+ return {
6014
+ requestId: 'string',
6015
+ storageAutoScale: 'string',
6016
+ storageUpperBound: 'number',
6017
+ };
6018
+ }
6019
+
6020
+ constructor(map?: { [key: string]: any }) {
6021
+ super(map);
6022
+ }
6023
+ }
6024
+
6025
+ export class DescribeDasConfigResponse extends $tea.Model {
6026
+ headers: { [key: string]: string };
6027
+ statusCode: number;
6028
+ body: DescribeDasConfigResponseBody;
6029
+ static names(): { [key: string]: string } {
6030
+ return {
6031
+ headers: 'headers',
6032
+ statusCode: 'statusCode',
6033
+ body: 'body',
6034
+ };
6035
+ }
6036
+
6037
+ static types(): { [key: string]: any } {
6038
+ return {
6039
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6040
+ statusCode: 'number',
6041
+ body: DescribeDasConfigResponseBody,
6042
+ };
6043
+ }
6044
+
6045
+ constructor(map?: { [key: string]: any }) {
6046
+ super(map);
6047
+ }
6048
+ }
6049
+
5966
6050
  export class DescribeDatabasesRequest extends $tea.Model {
5967
6051
  DBClusterId?: string;
5968
6052
  DBName?: string;
@@ -8493,6 +8577,7 @@ export class FailoverDBClusterRequest extends $tea.Model {
8493
8577
  ownerId?: number;
8494
8578
  resourceOwnerAccount?: string;
8495
8579
  resourceOwnerId?: number;
8580
+ rollBackForDisaster?: boolean;
8496
8581
  targetDBNodeId?: string;
8497
8582
  static names(): { [key: string]: string } {
8498
8583
  return {
@@ -8502,6 +8587,7 @@ export class FailoverDBClusterRequest extends $tea.Model {
8502
8587
  ownerId: 'OwnerId',
8503
8588
  resourceOwnerAccount: 'ResourceOwnerAccount',
8504
8589
  resourceOwnerId: 'ResourceOwnerId',
8590
+ rollBackForDisaster: 'RollBackForDisaster',
8505
8591
  targetDBNodeId: 'TargetDBNodeId',
8506
8592
  };
8507
8593
  }
@@ -8514,6 +8600,7 @@ export class FailoverDBClusterRequest extends $tea.Model {
8514
8600
  ownerId: 'number',
8515
8601
  resourceOwnerAccount: 'string',
8516
8602
  resourceOwnerId: 'number',
8603
+ rollBackForDisaster: 'boolean',
8517
8604
  targetDBNodeId: 'string',
8518
8605
  };
8519
8606
  }
@@ -13788,6 +13875,7 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $tea.Model {
13788
13875
  sccMode?: string;
13789
13876
  serverWeight?: string;
13790
13877
  serverlessType?: string;
13878
+ subCluster?: string;
13791
13879
  zoneId?: string;
13792
13880
  static names(): { [key: string]: string } {
13793
13881
  return {
@@ -13808,6 +13896,7 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $tea.Model {
13808
13896
  sccMode: 'SccMode',
13809
13897
  serverWeight: 'ServerWeight',
13810
13898
  serverlessType: 'ServerlessType',
13899
+ subCluster: 'SubCluster',
13811
13900
  zoneId: 'ZoneId',
13812
13901
  };
13813
13902
  }
@@ -13831,6 +13920,7 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $tea.Model {
13831
13920
  sccMode: 'string',
13832
13921
  serverWeight: 'string',
13833
13922
  serverlessType: 'string',
13923
+ subCluster: 'string',
13834
13924
  zoneId: 'string',
13835
13925
  };
13836
13926
  }
@@ -14058,11 +14148,13 @@ export class DescribeDBClusterMigrationResponseBodyDBClusterEndpointList extends
14058
14148
  addressItems?: DescribeDBClusterMigrationResponseBodyDBClusterEndpointListAddressItems[];
14059
14149
  DBEndpointId?: string;
14060
14150
  endpointType?: string;
14151
+ readWriteMode?: string;
14061
14152
  static names(): { [key: string]: string } {
14062
14153
  return {
14063
14154
  addressItems: 'AddressItems',
14064
14155
  DBEndpointId: 'DBEndpointId',
14065
14156
  endpointType: 'EndpointType',
14157
+ readWriteMode: 'ReadWriteMode',
14066
14158
  };
14067
14159
  }
14068
14160
 
@@ -14071,6 +14163,7 @@ export class DescribeDBClusterMigrationResponseBodyDBClusterEndpointList extends
14071
14163
  addressItems: { 'type': 'array', 'itemType': DescribeDBClusterMigrationResponseBodyDBClusterEndpointListAddressItems },
14072
14164
  DBEndpointId: 'string',
14073
14165
  endpointType: 'string',
14166
+ readWriteMode: 'string',
14074
14167
  };
14075
14168
  }
14076
14169
 
@@ -14118,11 +14211,13 @@ export class DescribeDBClusterMigrationResponseBodyRdsEndpointListAddressItems e
14118
14211
 
14119
14212
  export class DescribeDBClusterMigrationResponseBodyRdsEndpointList extends $tea.Model {
14120
14213
  addressItems?: DescribeDBClusterMigrationResponseBodyRdsEndpointListAddressItems[];
14214
+ custinsType?: string;
14121
14215
  DBEndpointId?: string;
14122
14216
  endpointType?: string;
14123
14217
  static names(): { [key: string]: string } {
14124
14218
  return {
14125
14219
  addressItems: 'AddressItems',
14220
+ custinsType: 'CustinsType',
14126
14221
  DBEndpointId: 'DBEndpointId',
14127
14222
  endpointType: 'EndpointType',
14128
14223
  };
@@ -14131,6 +14226,7 @@ export class DescribeDBClusterMigrationResponseBodyRdsEndpointList extends $tea.
14131
14226
  static types(): { [key: string]: any } {
14132
14227
  return {
14133
14228
  addressItems: { 'type': 'array', 'itemType': DescribeDBClusterMigrationResponseBodyRdsEndpointListAddressItems },
14229
+ custinsType: 'string',
14134
14230
  DBEndpointId: 'string',
14135
14231
  endpointType: 'string',
14136
14232
  };
@@ -17181,6 +17277,10 @@ export default class Client extends OpenApi {
17181
17277
  query["Period"] = request.period;
17182
17278
  }
17183
17279
 
17280
+ if (!Util.isUnset(request.provisionedIops)) {
17281
+ query["ProvisionedIops"] = request.provisionedIops;
17282
+ }
17283
+
17184
17284
  if (!Util.isUnset(request.proxyClass)) {
17185
17285
  query["ProxyClass"] = request.proxyClass;
17186
17286
  }
@@ -20460,6 +20560,51 @@ export default class Client extends OpenApi {
20460
20560
  return await this.describeDBProxyPerformanceWithOptions(request, runtime);
20461
20561
  }
20462
20562
 
20563
+ async describeDasConfigWithOptions(request: DescribeDasConfigRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDasConfigResponse> {
20564
+ Util.validateModel(request);
20565
+ let query = { };
20566
+ if (!Util.isUnset(request.DBClusterId)) {
20567
+ query["DBClusterId"] = request.DBClusterId;
20568
+ }
20569
+
20570
+ if (!Util.isUnset(request.ownerAccount)) {
20571
+ query["OwnerAccount"] = request.ownerAccount;
20572
+ }
20573
+
20574
+ if (!Util.isUnset(request.ownerId)) {
20575
+ query["OwnerId"] = request.ownerId;
20576
+ }
20577
+
20578
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
20579
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
20580
+ }
20581
+
20582
+ if (!Util.isUnset(request.resourceOwnerId)) {
20583
+ query["ResourceOwnerId"] = request.resourceOwnerId;
20584
+ }
20585
+
20586
+ let req = new $OpenApi.OpenApiRequest({
20587
+ query: OpenApiUtil.query(query),
20588
+ });
20589
+ let params = new $OpenApi.Params({
20590
+ action: "DescribeDasConfig",
20591
+ version: "2017-08-01",
20592
+ protocol: "HTTPS",
20593
+ pathname: "/",
20594
+ method: "POST",
20595
+ authType: "AK",
20596
+ style: "RPC",
20597
+ reqBodyType: "formData",
20598
+ bodyType: "json",
20599
+ });
20600
+ return $tea.cast<DescribeDasConfigResponse>(await this.callApi(params, req, runtime), new DescribeDasConfigResponse({}));
20601
+ }
20602
+
20603
+ async describeDasConfig(request: DescribeDasConfigRequest): Promise<DescribeDasConfigResponse> {
20604
+ let runtime = new $Util.RuntimeOptions({ });
20605
+ return await this.describeDasConfigWithOptions(request, runtime);
20606
+ }
20607
+
20463
20608
  async describeDatabasesWithOptions(request: DescribeDatabasesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDatabasesResponse> {
20464
20609
  Util.validateModel(request);
20465
20610
  let query = { };
@@ -22127,6 +22272,10 @@ export default class Client extends OpenApi {
22127
22272
  query["ResourceOwnerId"] = request.resourceOwnerId;
22128
22273
  }
22129
22274
 
22275
+ if (!Util.isUnset(request.rollBackForDisaster)) {
22276
+ query["RollBackForDisaster"] = request.rollBackForDisaster;
22277
+ }
22278
+
22130
22279
  if (!Util.isUnset(request.targetDBNodeId)) {
22131
22280
  query["TargetDBNodeId"] = request.targetDBNodeId;
22132
22281
  }