@alicloud/polardbx20200202 1.0.6 → 1.0.7

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/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ English | [简体中文](README-CN.md)
2
+ ![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
3
+
4
+ # Alibaba Cloud polardbx SDK for NodeJS
5
+
6
+ ## Installation
7
+ If you use `npm` to manage your dependence, you can use the following command:
8
+
9
+ ```sh
10
+ npm install @alicloud/polardbx20200202 -S
11
+ ```
12
+
13
+ ## Issues
14
+ [Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
15
+
16
+ ## Usage
17
+ [Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
18
+
19
+ ## References
20
+ * [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
21
+
22
+ ## License
23
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
24
+
25
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
package/dist/client.d.ts CHANGED
@@ -328,8 +328,12 @@ export declare class CreateDBInstanceRequest extends $tea.Model {
328
328
  payType?: string;
329
329
  period?: string;
330
330
  primaryDBInstanceName?: string;
331
+ primaryZone?: string;
331
332
  regionId?: string;
332
333
  resourceGroupId?: string;
334
+ secondaryZone?: string;
335
+ tertiaryZone?: string;
336
+ topologyType?: string;
333
337
  usedTime?: number;
334
338
  VPCId?: string;
335
339
  vSwitchId?: string;
@@ -509,7 +513,6 @@ export declare class DeleteDBResponse extends $tea.Model {
509
513
  export declare class DeleteDBInstanceRequest extends $tea.Model {
510
514
  DBInstanceName?: string;
511
515
  regionId?: string;
512
- resourceGroupId?: string;
513
516
  static names(): {
514
517
  [key: string]: string;
515
518
  };
@@ -2612,6 +2615,7 @@ export declare class UpdatePolarDBXInstanceNodeResponse extends $tea.Model {
2612
2615
  export declare class UpgradeDBInstanceKernelVersionRequest extends $tea.Model {
2613
2616
  DBInstanceName?: string;
2614
2617
  regionId?: string;
2618
+ switchMode?: string;
2615
2619
  static names(): {
2616
2620
  [key: string]: string;
2617
2621
  };
@@ -2959,6 +2963,19 @@ export declare class DescribeDBInstanceTDEResponseBodyData extends $tea.Model {
2959
2963
  [key: string]: any;
2960
2964
  });
2961
2965
  }
2966
+ export declare class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsAzoneRoleList extends $tea.Model {
2967
+ azone?: string;
2968
+ role?: string;
2969
+ static names(): {
2970
+ [key: string]: string;
2971
+ };
2972
+ static types(): {
2973
+ [key: string]: any;
2974
+ };
2975
+ constructor(map?: {
2976
+ [key: string]: any;
2977
+ });
2978
+ }
2962
2979
  export declare class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsConnectionIp extends $tea.Model {
2963
2980
  connectionString?: string;
2964
2981
  DBInstanceNetType?: number;
@@ -2974,6 +2991,9 @@ export declare class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopo
2974
2991
  });
2975
2992
  }
2976
2993
  export declare class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItems extends $tea.Model {
2994
+ activated?: boolean;
2995
+ azone?: string;
2996
+ azoneRoleList?: DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsAzoneRoleList[];
2977
2997
  characterType?: string;
2978
2998
  connectionIp?: DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsConnectionIp[];
2979
2999
  DBInstanceConnType?: number;
@@ -2992,6 +3012,8 @@ export declare class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopo
2992
3012
  maintainStartTime?: string;
2993
3013
  maxConnections?: number;
2994
3014
  maxIops?: number;
3015
+ region?: string;
3016
+ role?: string;
2995
3017
  static names(): {
2996
3018
  [key: string]: string;
2997
3019
  };
package/dist/client.js CHANGED
@@ -465,8 +465,12 @@ class CreateDBInstanceRequest extends $tea.Model {
465
465
  payType: 'PayType',
466
466
  period: 'Period',
467
467
  primaryDBInstanceName: 'PrimaryDBInstanceName',
468
+ primaryZone: 'PrimaryZone',
468
469
  regionId: 'RegionId',
469
470
  resourceGroupId: 'ResourceGroupId',
471
+ secondaryZone: 'SecondaryZone',
472
+ tertiaryZone: 'TertiaryZone',
473
+ topologyType: 'TopologyType',
470
474
  usedTime: 'UsedTime',
471
475
  VPCId: 'VPCId',
472
476
  vSwitchId: 'VSwitchId',
@@ -485,8 +489,12 @@ class CreateDBInstanceRequest extends $tea.Model {
485
489
  payType: 'string',
486
490
  period: 'string',
487
491
  primaryDBInstanceName: 'string',
492
+ primaryZone: 'string',
488
493
  regionId: 'string',
489
494
  resourceGroupId: 'string',
495
+ secondaryZone: 'string',
496
+ tertiaryZone: 'string',
497
+ topologyType: 'string',
490
498
  usedTime: 'number',
491
499
  VPCId: 'string',
492
500
  vSwitchId: 'string',
@@ -723,14 +731,12 @@ class DeleteDBInstanceRequest extends $tea.Model {
723
731
  return {
724
732
  DBInstanceName: 'DBInstanceName',
725
733
  regionId: 'RegionId',
726
- resourceGroupId: 'ResourceGroupId',
727
734
  };
728
735
  }
729
736
  static types() {
730
737
  return {
731
738
  DBInstanceName: 'string',
732
739
  regionId: 'string',
733
- resourceGroupId: 'string',
734
740
  };
735
741
  }
736
742
  }
@@ -3593,12 +3599,14 @@ class UpgradeDBInstanceKernelVersionRequest extends $tea.Model {
3593
3599
  return {
3594
3600
  DBInstanceName: 'DBInstanceName',
3595
3601
  regionId: 'RegionId',
3602
+ switchMode: 'SwitchMode',
3596
3603
  };
3597
3604
  }
3598
3605
  static types() {
3599
3606
  return {
3600
3607
  DBInstanceName: 'string',
3601
3608
  regionId: 'string',
3609
+ switchMode: 'string',
3602
3610
  };
3603
3611
  }
3604
3612
  }
@@ -4129,6 +4137,24 @@ class DescribeDBInstanceTDEResponseBodyData extends $tea.Model {
4129
4137
  }
4130
4138
  }
4131
4139
  exports.DescribeDBInstanceTDEResponseBodyData = DescribeDBInstanceTDEResponseBodyData;
4140
+ class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsAzoneRoleList extends $tea.Model {
4141
+ constructor(map) {
4142
+ super(map);
4143
+ }
4144
+ static names() {
4145
+ return {
4146
+ azone: 'Azone',
4147
+ role: 'Role',
4148
+ };
4149
+ }
4150
+ static types() {
4151
+ return {
4152
+ azone: 'string',
4153
+ role: 'string',
4154
+ };
4155
+ }
4156
+ }
4157
+ exports.DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsAzoneRoleList = DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsAzoneRoleList;
4132
4158
  class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsConnectionIp extends $tea.Model {
4133
4159
  constructor(map) {
4134
4160
  super(map);
@@ -4155,6 +4181,9 @@ class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItems exten
4155
4181
  }
4156
4182
  static names() {
4157
4183
  return {
4184
+ activated: 'Activated',
4185
+ azone: 'Azone',
4186
+ azoneRoleList: 'AzoneRoleList',
4158
4187
  characterType: 'CharacterType',
4159
4188
  connectionIp: 'ConnectionIp',
4160
4189
  DBInstanceConnType: 'DBInstanceConnType',
@@ -4173,10 +4202,15 @@ class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItems exten
4173
4202
  maintainStartTime: 'MaintainStartTime',
4174
4203
  maxConnections: 'MaxConnections',
4175
4204
  maxIops: 'MaxIops',
4205
+ region: 'Region',
4206
+ role: 'Role',
4176
4207
  };
4177
4208
  }
4178
4209
  static types() {
4179
4210
  return {
4211
+ activated: 'boolean',
4212
+ azone: 'string',
4213
+ azoneRoleList: { 'type': 'array', 'itemType': DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsAzoneRoleList },
4180
4214
  characterType: 'string',
4181
4215
  connectionIp: { 'type': 'array', 'itemType': DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItemsConnectionIp },
4182
4216
  DBInstanceConnType: 'number',
@@ -4195,6 +4229,8 @@ class DescribeDBInstanceTopologyResponseBodyDataLogicInstanceTopologyItems exten
4195
4229
  maintainStartTime: 'string',
4196
4230
  maxConnections: 'number',
4197
4231
  maxIops: 'number',
4232
+ region: 'string',
4233
+ role: 'string',
4198
4234
  };
4199
4235
  }
4200
4236
  }
@@ -5464,12 +5500,24 @@ class Client extends openapi_client_1.default {
5464
5500
  if (!tea_util_1.default.isUnset(request.primaryDBInstanceName)) {
5465
5501
  query["PrimaryDBInstanceName"] = request.primaryDBInstanceName;
5466
5502
  }
5503
+ if (!tea_util_1.default.isUnset(request.primaryZone)) {
5504
+ query["PrimaryZone"] = request.primaryZone;
5505
+ }
5467
5506
  if (!tea_util_1.default.isUnset(request.regionId)) {
5468
5507
  query["RegionId"] = request.regionId;
5469
5508
  }
5470
5509
  if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
5471
5510
  query["ResourceGroupId"] = request.resourceGroupId;
5472
5511
  }
5512
+ if (!tea_util_1.default.isUnset(request.secondaryZone)) {
5513
+ query["SecondaryZone"] = request.secondaryZone;
5514
+ }
5515
+ if (!tea_util_1.default.isUnset(request.tertiaryZone)) {
5516
+ query["TertiaryZone"] = request.tertiaryZone;
5517
+ }
5518
+ if (!tea_util_1.default.isUnset(request.topologyType)) {
5519
+ query["TopologyType"] = request.topologyType;
5520
+ }
5473
5521
  if (!tea_util_1.default.isUnset(request.usedTime)) {
5474
5522
  query["UsedTime"] = request.usedTime;
5475
5523
  }
@@ -5619,9 +5667,6 @@ class Client extends openapi_client_1.default {
5619
5667
  if (!tea_util_1.default.isUnset(request.regionId)) {
5620
5668
  query["RegionId"] = request.regionId;
5621
5669
  }
5622
- if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
5623
- query["ResourceGroupId"] = request.resourceGroupId;
5624
- }
5625
5670
  let req = new $OpenApi.OpenApiRequest({
5626
5671
  query: openapi_util_1.default.query(query),
5627
5672
  });
@@ -7235,6 +7280,9 @@ class Client extends openapi_client_1.default {
7235
7280
  if (!tea_util_1.default.isUnset(request.regionId)) {
7236
7281
  query["RegionId"] = request.regionId;
7237
7282
  }
7283
+ if (!tea_util_1.default.isUnset(request.switchMode)) {
7284
+ query["SwitchMode"] = request.switchMode;
7285
+ }
7238
7286
  let req = new $OpenApi.OpenApiRequest({
7239
7287
  query: openapi_util_1.default.query(query),
7240
7288
  });