@alicloud/polardb20170801 4.0.1 → 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.1",
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
@@ -5966,6 +5966,87 @@ export class DescribeDBProxyPerformanceResponse extends $tea.Model {
5966
5966
  }
5967
5967
  }
5968
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
+
5969
6050
  export class DescribeDatabasesRequest extends $tea.Model {
5970
6051
  DBClusterId?: string;
5971
6052
  DBName?: string;
@@ -8496,6 +8577,7 @@ export class FailoverDBClusterRequest extends $tea.Model {
8496
8577
  ownerId?: number;
8497
8578
  resourceOwnerAccount?: string;
8498
8579
  resourceOwnerId?: number;
8580
+ rollBackForDisaster?: boolean;
8499
8581
  targetDBNodeId?: string;
8500
8582
  static names(): { [key: string]: string } {
8501
8583
  return {
@@ -8505,6 +8587,7 @@ export class FailoverDBClusterRequest extends $tea.Model {
8505
8587
  ownerId: 'OwnerId',
8506
8588
  resourceOwnerAccount: 'ResourceOwnerAccount',
8507
8589
  resourceOwnerId: 'ResourceOwnerId',
8590
+ rollBackForDisaster: 'RollBackForDisaster',
8508
8591
  targetDBNodeId: 'TargetDBNodeId',
8509
8592
  };
8510
8593
  }
@@ -8517,6 +8600,7 @@ export class FailoverDBClusterRequest extends $tea.Model {
8517
8600
  ownerId: 'number',
8518
8601
  resourceOwnerAccount: 'string',
8519
8602
  resourceOwnerId: 'number',
8603
+ rollBackForDisaster: 'boolean',
8520
8604
  targetDBNodeId: 'string',
8521
8605
  };
8522
8606
  }
@@ -13791,6 +13875,7 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $tea.Model {
13791
13875
  sccMode?: string;
13792
13876
  serverWeight?: string;
13793
13877
  serverlessType?: string;
13878
+ subCluster?: string;
13794
13879
  zoneId?: string;
13795
13880
  static names(): { [key: string]: string } {
13796
13881
  return {
@@ -13811,6 +13896,7 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $tea.Model {
13811
13896
  sccMode: 'SccMode',
13812
13897
  serverWeight: 'ServerWeight',
13813
13898
  serverlessType: 'ServerlessType',
13899
+ subCluster: 'SubCluster',
13814
13900
  zoneId: 'ZoneId',
13815
13901
  };
13816
13902
  }
@@ -13834,6 +13920,7 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $tea.Model {
13834
13920
  sccMode: 'string',
13835
13921
  serverWeight: 'string',
13836
13922
  serverlessType: 'string',
13923
+ subCluster: 'string',
13837
13924
  zoneId: 'string',
13838
13925
  };
13839
13926
  }
@@ -14061,11 +14148,13 @@ export class DescribeDBClusterMigrationResponseBodyDBClusterEndpointList extends
14061
14148
  addressItems?: DescribeDBClusterMigrationResponseBodyDBClusterEndpointListAddressItems[];
14062
14149
  DBEndpointId?: string;
14063
14150
  endpointType?: string;
14151
+ readWriteMode?: string;
14064
14152
  static names(): { [key: string]: string } {
14065
14153
  return {
14066
14154
  addressItems: 'AddressItems',
14067
14155
  DBEndpointId: 'DBEndpointId',
14068
14156
  endpointType: 'EndpointType',
14157
+ readWriteMode: 'ReadWriteMode',
14069
14158
  };
14070
14159
  }
14071
14160
 
@@ -14074,6 +14163,7 @@ export class DescribeDBClusterMigrationResponseBodyDBClusterEndpointList extends
14074
14163
  addressItems: { 'type': 'array', 'itemType': DescribeDBClusterMigrationResponseBodyDBClusterEndpointListAddressItems },
14075
14164
  DBEndpointId: 'string',
14076
14165
  endpointType: 'string',
14166
+ readWriteMode: 'string',
14077
14167
  };
14078
14168
  }
14079
14169
 
@@ -14121,11 +14211,13 @@ export class DescribeDBClusterMigrationResponseBodyRdsEndpointListAddressItems e
14121
14211
 
14122
14212
  export class DescribeDBClusterMigrationResponseBodyRdsEndpointList extends $tea.Model {
14123
14213
  addressItems?: DescribeDBClusterMigrationResponseBodyRdsEndpointListAddressItems[];
14214
+ custinsType?: string;
14124
14215
  DBEndpointId?: string;
14125
14216
  endpointType?: string;
14126
14217
  static names(): { [key: string]: string } {
14127
14218
  return {
14128
14219
  addressItems: 'AddressItems',
14220
+ custinsType: 'CustinsType',
14129
14221
  DBEndpointId: 'DBEndpointId',
14130
14222
  endpointType: 'EndpointType',
14131
14223
  };
@@ -14134,6 +14226,7 @@ export class DescribeDBClusterMigrationResponseBodyRdsEndpointList extends $tea.
14134
14226
  static types(): { [key: string]: any } {
14135
14227
  return {
14136
14228
  addressItems: { 'type': 'array', 'itemType': DescribeDBClusterMigrationResponseBodyRdsEndpointListAddressItems },
14229
+ custinsType: 'string',
14137
14230
  DBEndpointId: 'string',
14138
14231
  endpointType: 'string',
14139
14232
  };
@@ -20467,6 +20560,51 @@ export default class Client extends OpenApi {
20467
20560
  return await this.describeDBProxyPerformanceWithOptions(request, runtime);
20468
20561
  }
20469
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
+
20470
20608
  async describeDatabasesWithOptions(request: DescribeDatabasesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDatabasesResponse> {
20471
20609
  Util.validateModel(request);
20472
20610
  let query = { };
@@ -22134,6 +22272,10 @@ export default class Client extends OpenApi {
22134
22272
  query["ResourceOwnerId"] = request.resourceOwnerId;
22135
22273
  }
22136
22274
 
22275
+ if (!Util.isUnset(request.rollBackForDisaster)) {
22276
+ query["RollBackForDisaster"] = request.rollBackForDisaster;
22277
+ }
22278
+
22137
22279
  if (!Util.isUnset(request.targetDBNodeId)) {
22138
22280
  query["TargetDBNodeId"] = request.targetDBNodeId;
22139
22281
  }