@alicloud/polardbx20200202 2.0.2 → 2.2.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/src/client.ts CHANGED
@@ -4415,6 +4415,134 @@ export class DescribeEventsResponse extends $tea.Model {
4415
4415
  }
4416
4416
  }
4417
4417
 
4418
+ export class DescribeGdnInstancesRequest extends $tea.Model {
4419
+ /**
4420
+ * @example
4421
+ * gdn_id、
4422
+ * polarx_id
4423
+ */
4424
+ filterType?: string;
4425
+ /**
4426
+ * @example
4427
+ * gdn-***、
4428
+ * pxc-***
4429
+ */
4430
+ filterValue?: string;
4431
+ /**
4432
+ * @remarks
4433
+ * GDN ID。
4434
+ *
4435
+ * @example
4436
+ * gdn-***
4437
+ */
4438
+ GDNId?: string;
4439
+ /**
4440
+ * @example
4441
+ * 50
4442
+ */
4443
+ pageNum?: string;
4444
+ /**
4445
+ * @example
4446
+ * 30
4447
+ */
4448
+ pageSize?: string;
4449
+ /**
4450
+ * @example
4451
+ * cn-hangzhou
4452
+ */
4453
+ regionId?: string;
4454
+ static names(): { [key: string]: string } {
4455
+ return {
4456
+ filterType: 'FilterType',
4457
+ filterValue: 'FilterValue',
4458
+ GDNId: 'GDNId',
4459
+ pageNum: 'PageNum',
4460
+ pageSize: 'PageSize',
4461
+ regionId: 'RegionId',
4462
+ };
4463
+ }
4464
+
4465
+ static types(): { [key: string]: any } {
4466
+ return {
4467
+ filterType: 'string',
4468
+ filterValue: 'string',
4469
+ GDNId: 'string',
4470
+ pageNum: 'string',
4471
+ pageSize: 'string',
4472
+ regionId: 'string',
4473
+ };
4474
+ }
4475
+
4476
+ constructor(map?: { [key: string]: any }) {
4477
+ super(map);
4478
+ }
4479
+ }
4480
+
4481
+ export class DescribeGdnInstancesResponseBody extends $tea.Model {
4482
+ data?: DescribeGdnInstancesResponseBodyData;
4483
+ /**
4484
+ * @example
4485
+ * success
4486
+ */
4487
+ message?: string;
4488
+ /**
4489
+ * @example
4490
+ * 7B044BD1-6402-5DE9-9AED-63D15A994E37
4491
+ */
4492
+ requestId?: string;
4493
+ /**
4494
+ * @example
4495
+ * True
4496
+ */
4497
+ success?: boolean;
4498
+ static names(): { [key: string]: string } {
4499
+ return {
4500
+ data: 'Data',
4501
+ message: 'Message',
4502
+ requestId: 'RequestId',
4503
+ success: 'Success',
4504
+ };
4505
+ }
4506
+
4507
+ static types(): { [key: string]: any } {
4508
+ return {
4509
+ data: DescribeGdnInstancesResponseBodyData,
4510
+ message: 'string',
4511
+ requestId: 'string',
4512
+ success: 'boolean',
4513
+ };
4514
+ }
4515
+
4516
+ constructor(map?: { [key: string]: any }) {
4517
+ super(map);
4518
+ }
4519
+ }
4520
+
4521
+ export class DescribeGdnInstancesResponse extends $tea.Model {
4522
+ headers?: { [key: string]: string };
4523
+ statusCode?: number;
4524
+ body?: DescribeGdnInstancesResponseBody;
4525
+ static names(): { [key: string]: string } {
4526
+ return {
4527
+ headers: 'headers',
4528
+ statusCode: 'statusCode',
4529
+ body: 'body',
4530
+ };
4531
+ }
4532
+
4533
+ static types(): { [key: string]: any } {
4534
+ return {
4535
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4536
+ statusCode: 'number',
4537
+ body: DescribeGdnInstancesResponseBody,
4538
+ };
4539
+ }
4540
+
4541
+ constructor(map?: { [key: string]: any }) {
4542
+ super(map);
4543
+ }
4544
+ }
4545
+
4418
4546
  export class DescribeOpenBackupSetRequest extends $tea.Model {
4419
4547
  /**
4420
4548
  * @remarks
@@ -4978,6 +5106,182 @@ export class DescribeSecurityIpsResponse extends $tea.Model {
4978
5106
  }
4979
5107
  }
4980
5108
 
5109
+ export class DescribeSlowLogRecordsRequest extends $tea.Model {
5110
+ /**
5111
+ * @remarks
5112
+ * This parameter is required.
5113
+ *
5114
+ * @example
5115
+ * polarx_cn
5116
+ */
5117
+ characterType?: string;
5118
+ /**
5119
+ * @remarks
5120
+ * This parameter is required.
5121
+ *
5122
+ * @example
5123
+ * pxc-bjxxxxxxxx
5124
+ */
5125
+ DBInstanceName?: string;
5126
+ /**
5127
+ * @example
5128
+ * testdb
5129
+ */
5130
+ DBName?: string;
5131
+ /**
5132
+ * @example
5133
+ * pxc-i-mezcj4ejdz
5134
+ */
5135
+ DBNodeIds?: string;
5136
+ /**
5137
+ * @remarks
5138
+ * This parameter is required.
5139
+ *
5140
+ * @example
5141
+ * 2024-11-22T02:22Z
5142
+ */
5143
+ endTime?: string;
5144
+ /**
5145
+ * @example
5146
+ * 1
5147
+ */
5148
+ page?: number;
5149
+ /**
5150
+ * @example
5151
+ * 30
5152
+ */
5153
+ pageSize?: number;
5154
+ /**
5155
+ * @remarks
5156
+ * This parameter is required.
5157
+ *
5158
+ * @example
5159
+ * cn-hangzhou
5160
+ */
5161
+ regionId?: string;
5162
+ /**
5163
+ * @remarks
5164
+ * This parameter is required.
5165
+ *
5166
+ * @example
5167
+ * 2024-10-09T02:26
5168
+ */
5169
+ startTime?: string;
5170
+ static names(): { [key: string]: string } {
5171
+ return {
5172
+ characterType: 'CharacterType',
5173
+ DBInstanceName: 'DBInstanceName',
5174
+ DBName: 'DBName',
5175
+ DBNodeIds: 'DBNodeIds',
5176
+ endTime: 'EndTime',
5177
+ page: 'Page',
5178
+ pageSize: 'PageSize',
5179
+ regionId: 'RegionId',
5180
+ startTime: 'StartTime',
5181
+ };
5182
+ }
5183
+
5184
+ static types(): { [key: string]: any } {
5185
+ return {
5186
+ characterType: 'string',
5187
+ DBInstanceName: 'string',
5188
+ DBName: 'string',
5189
+ DBNodeIds: 'string',
5190
+ endTime: 'string',
5191
+ page: 'number',
5192
+ pageSize: 'number',
5193
+ regionId: 'string',
5194
+ startTime: 'string',
5195
+ };
5196
+ }
5197
+
5198
+ constructor(map?: { [key: string]: any }) {
5199
+ super(map);
5200
+ }
5201
+ }
5202
+
5203
+ export class DescribeSlowLogRecordsResponseBody extends $tea.Model {
5204
+ /**
5205
+ * @example
5206
+ * pxc-********
5207
+ */
5208
+ DBInstanceId?: string;
5209
+ items?: DescribeSlowLogRecordsResponseBodyItems[];
5210
+ /**
5211
+ * @example
5212
+ * 1
5213
+ */
5214
+ pageNumber?: string;
5215
+ /**
5216
+ * @example
5217
+ * 30
5218
+ */
5219
+ pageRecordCount?: string;
5220
+ /**
5221
+ * @remarks
5222
+ * Id of the request
5223
+ *
5224
+ * @example
5225
+ * C458B1E8-1683-3645-B154-6BA32080EEA
5226
+ */
5227
+ requestId?: string;
5228
+ /**
5229
+ * @example
5230
+ * 3
5231
+ */
5232
+ totalCount?: string;
5233
+ static names(): { [key: string]: string } {
5234
+ return {
5235
+ DBInstanceId: 'DBInstanceId',
5236
+ items: 'Items',
5237
+ pageNumber: 'PageNumber',
5238
+ pageRecordCount: 'PageRecordCount',
5239
+ requestId: 'RequestId',
5240
+ totalCount: 'TotalCount',
5241
+ };
5242
+ }
5243
+
5244
+ static types(): { [key: string]: any } {
5245
+ return {
5246
+ DBInstanceId: 'string',
5247
+ items: { 'type': 'array', 'itemType': DescribeSlowLogRecordsResponseBodyItems },
5248
+ pageNumber: 'string',
5249
+ pageRecordCount: 'string',
5250
+ requestId: 'string',
5251
+ totalCount: 'string',
5252
+ };
5253
+ }
5254
+
5255
+ constructor(map?: { [key: string]: any }) {
5256
+ super(map);
5257
+ }
5258
+ }
5259
+
5260
+ export class DescribeSlowLogRecordsResponse extends $tea.Model {
5261
+ headers?: { [key: string]: string };
5262
+ statusCode?: number;
5263
+ body?: DescribeSlowLogRecordsResponseBody;
5264
+ static names(): { [key: string]: string } {
5265
+ return {
5266
+ headers: 'headers',
5267
+ statusCode: 'statusCode',
5268
+ body: 'body',
5269
+ };
5270
+ }
5271
+
5272
+ static types(): { [key: string]: any } {
5273
+ return {
5274
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5275
+ statusCode: 'number',
5276
+ body: DescribeSlowLogRecordsResponseBody,
5277
+ };
5278
+ }
5279
+
5280
+ constructor(map?: { [key: string]: any }) {
5281
+ super(map);
5282
+ }
5283
+ }
5284
+
4981
5285
  export class DescribeTagsRequest extends $tea.Model {
4982
5286
  /**
4983
5287
  * @example
@@ -7436,13 +7740,124 @@ export class SwitchDBInstanceHAResponse extends $tea.Model {
7436
7740
  }
7437
7741
  }
7438
7742
 
7439
- export class TagResourcesRequest extends $tea.Model {
7743
+ export class SwitchGdnMemberRoleRequest extends $tea.Model {
7440
7744
  /**
7441
7745
  * @remarks
7442
7746
  * This parameter is required.
7443
7747
  *
7444
7748
  * @example
7445
- * cn-hangzhou
7749
+ * pxc-********
7750
+ */
7751
+ DBInstanceName?: string;
7752
+ /**
7753
+ * @remarks
7754
+ * This parameter is required.
7755
+ *
7756
+ * @example
7757
+ * cn-hangzhou
7758
+ */
7759
+ regionId?: string;
7760
+ /**
7761
+ * @remarks
7762
+ * This parameter is required.
7763
+ */
7764
+ switchMode?: string;
7765
+ static names(): { [key: string]: string } {
7766
+ return {
7767
+ DBInstanceName: 'DBInstanceName',
7768
+ regionId: 'RegionId',
7769
+ switchMode: 'SwitchMode',
7770
+ };
7771
+ }
7772
+
7773
+ static types(): { [key: string]: any } {
7774
+ return {
7775
+ DBInstanceName: 'string',
7776
+ regionId: 'string',
7777
+ switchMode: 'string',
7778
+ };
7779
+ }
7780
+
7781
+ constructor(map?: { [key: string]: any }) {
7782
+ super(map);
7783
+ }
7784
+ }
7785
+
7786
+ export class SwitchGdnMemberRoleResponseBody extends $tea.Model {
7787
+ data?: SwitchGdnMemberRoleResponseBodyData;
7788
+ /**
7789
+ * @example
7790
+ * success
7791
+ */
7792
+ message?: string;
7793
+ /**
7794
+ * @remarks
7795
+ * Id of the request
7796
+ *
7797
+ * @example
7798
+ * 9B2F3840-5C98-475C-B269-2D5C3A31797C
7799
+ */
7800
+ requestId?: string;
7801
+ /**
7802
+ * @example
7803
+ * true
7804
+ */
7805
+ success?: boolean;
7806
+ static names(): { [key: string]: string } {
7807
+ return {
7808
+ data: 'Data',
7809
+ message: 'Message',
7810
+ requestId: 'RequestId',
7811
+ success: 'Success',
7812
+ };
7813
+ }
7814
+
7815
+ static types(): { [key: string]: any } {
7816
+ return {
7817
+ data: SwitchGdnMemberRoleResponseBodyData,
7818
+ message: 'string',
7819
+ requestId: 'string',
7820
+ success: 'boolean',
7821
+ };
7822
+ }
7823
+
7824
+ constructor(map?: { [key: string]: any }) {
7825
+ super(map);
7826
+ }
7827
+ }
7828
+
7829
+ export class SwitchGdnMemberRoleResponse extends $tea.Model {
7830
+ headers?: { [key: string]: string };
7831
+ statusCode?: number;
7832
+ body?: SwitchGdnMemberRoleResponseBody;
7833
+ static names(): { [key: string]: string } {
7834
+ return {
7835
+ headers: 'headers',
7836
+ statusCode: 'statusCode',
7837
+ body: 'body',
7838
+ };
7839
+ }
7840
+
7841
+ static types(): { [key: string]: any } {
7842
+ return {
7843
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
7844
+ statusCode: 'number',
7845
+ body: SwitchGdnMemberRoleResponseBody,
7846
+ };
7847
+ }
7848
+
7849
+ constructor(map?: { [key: string]: any }) {
7850
+ super(map);
7851
+ }
7852
+ }
7853
+
7854
+ export class TagResourcesRequest extends $tea.Model {
7855
+ /**
7856
+ * @remarks
7857
+ * This parameter is required.
7858
+ *
7859
+ * @example
7860
+ * cn-hangzhou
7446
7861
  */
7447
7862
  regionId?: string;
7448
7863
  /**
@@ -11360,6 +11775,250 @@ export class DescribeEventsResponseBodyEventItems extends $tea.Model {
11360
11775
  }
11361
11776
  }
11362
11777
 
11778
+ export class DescribeGdnInstancesResponseBodyDataGdnInstanceListMemberList extends $tea.Model {
11779
+ /**
11780
+ * @example
11781
+ * polarx.x4.medium.2e
11782
+ */
11783
+ classCode?: string;
11784
+ /**
11785
+ * @example
11786
+ * polarx.x4.medium.2e
11787
+ */
11788
+ cnNodeClassCode?: string;
11789
+ /**
11790
+ * @example
11791
+ * 2
11792
+ */
11793
+ cnNodeCount?: string;
11794
+ /**
11795
+ * @example
11796
+ * drds_polarxpre_public_cn
11797
+ */
11798
+ commodityCode?: string;
11799
+ /**
11800
+ * @example
11801
+ * mysql.n4.medium.25
11802
+ */
11803
+ dnNodeClassCode?: string;
11804
+ /**
11805
+ * @example
11806
+ * 2
11807
+ */
11808
+ dnNodeCount?: string;
11809
+ /**
11810
+ * @example
11811
+ * 2025-01-02T13:11:10.000+0000
11812
+ */
11813
+ expireTime?: string;
11814
+ /**
11815
+ * @example
11816
+ * 2025-01-02T13:11:10.000+0000
11817
+ */
11818
+ gmtCreated?: string;
11819
+ /**
11820
+ * @example
11821
+ * pxc-***
11822
+ */
11823
+ memberName?: string;
11824
+ /**
11825
+ * @example
11826
+ * Prepaid
11827
+ */
11828
+ payType?: string;
11829
+ /**
11830
+ * @example
11831
+ * cn-zhangjiakou-a
11832
+ */
11833
+ primaryZone?: string;
11834
+ /**
11835
+ * @example
11836
+ * cn-hangzhou
11837
+ */
11838
+ regionId?: string;
11839
+ /**
11840
+ * @example
11841
+ * primary、
11842
+ * standby
11843
+ */
11844
+ role?: string;
11845
+ /**
11846
+ * @example
11847
+ * cn-zhangjiakou-a
11848
+ */
11849
+ secondaryZone?: string;
11850
+ /**
11851
+ * @example
11852
+ * 1s
11853
+ */
11854
+ secondsBehindMaster?: string;
11855
+ /**
11856
+ * @example
11857
+ * Creating
11858
+ */
11859
+ status?: string;
11860
+ /**
11861
+ * @example
11862
+ * cn-zhangjiakou-a
11863
+ */
11864
+ tertiaryZone?: string;
11865
+ /**
11866
+ * @example
11867
+ * cn-zhangjiakou-a
11868
+ */
11869
+ zoneId?: string;
11870
+ static names(): { [key: string]: string } {
11871
+ return {
11872
+ classCode: 'ClassCode',
11873
+ cnNodeClassCode: 'CnNodeClassCode',
11874
+ cnNodeCount: 'CnNodeCount',
11875
+ commodityCode: 'CommodityCode',
11876
+ dnNodeClassCode: 'DnNodeClassCode',
11877
+ dnNodeCount: 'DnNodeCount',
11878
+ expireTime: 'ExpireTime',
11879
+ gmtCreated: 'GmtCreated',
11880
+ memberName: 'MemberName',
11881
+ payType: 'PayType',
11882
+ primaryZone: 'PrimaryZone',
11883
+ regionId: 'RegionId',
11884
+ role: 'Role',
11885
+ secondaryZone: 'SecondaryZone',
11886
+ secondsBehindMaster: 'SecondsBehindMaster',
11887
+ status: 'Status',
11888
+ tertiaryZone: 'TertiaryZone',
11889
+ zoneId: 'ZoneId',
11890
+ };
11891
+ }
11892
+
11893
+ static types(): { [key: string]: any } {
11894
+ return {
11895
+ classCode: 'string',
11896
+ cnNodeClassCode: 'string',
11897
+ cnNodeCount: 'string',
11898
+ commodityCode: 'string',
11899
+ dnNodeClassCode: 'string',
11900
+ dnNodeCount: 'string',
11901
+ expireTime: 'string',
11902
+ gmtCreated: 'string',
11903
+ memberName: 'string',
11904
+ payType: 'string',
11905
+ primaryZone: 'string',
11906
+ regionId: 'string',
11907
+ role: 'string',
11908
+ secondaryZone: 'string',
11909
+ secondsBehindMaster: 'string',
11910
+ status: 'string',
11911
+ tertiaryZone: 'string',
11912
+ zoneId: 'string',
11913
+ };
11914
+ }
11915
+
11916
+ constructor(map?: { [key: string]: any }) {
11917
+ super(map);
11918
+ }
11919
+ }
11920
+
11921
+ export class DescribeGdnInstancesResponseBodyDataGdnInstanceList extends $tea.Model {
11922
+ /**
11923
+ * @example
11924
+ * test
11925
+ */
11926
+ description?: string;
11927
+ /**
11928
+ * @example
11929
+ * gdn-***
11930
+ */
11931
+ gdnInstanceName?: string;
11932
+ /**
11933
+ * @example
11934
+ * 2025-01-02T13:11:10.000+0000
11935
+ */
11936
+ gmtCreated?: string;
11937
+ memberList?: DescribeGdnInstancesResponseBodyDataGdnInstanceListMemberList[];
11938
+ /**
11939
+ * @example
11940
+ * 5.7
11941
+ */
11942
+ mysqlVersion?: string;
11943
+ /**
11944
+ * @example
11945
+ * Creating
11946
+ */
11947
+ status?: string;
11948
+ /**
11949
+ * @example
11950
+ * ""
11951
+ */
11952
+ switchHistory?: string;
11953
+ static names(): { [key: string]: string } {
11954
+ return {
11955
+ description: 'Description',
11956
+ gdnInstanceName: 'GdnInstanceName',
11957
+ gmtCreated: 'GmtCreated',
11958
+ memberList: 'MemberList',
11959
+ mysqlVersion: 'MysqlVersion',
11960
+ status: 'Status',
11961
+ switchHistory: 'SwitchHistory',
11962
+ };
11963
+ }
11964
+
11965
+ static types(): { [key: string]: any } {
11966
+ return {
11967
+ description: 'string',
11968
+ gdnInstanceName: 'string',
11969
+ gmtCreated: 'string',
11970
+ memberList: { 'type': 'array', 'itemType': DescribeGdnInstancesResponseBodyDataGdnInstanceListMemberList },
11971
+ mysqlVersion: 'string',
11972
+ status: 'string',
11973
+ switchHistory: 'string',
11974
+ };
11975
+ }
11976
+
11977
+ constructor(map?: { [key: string]: any }) {
11978
+ super(map);
11979
+ }
11980
+ }
11981
+
11982
+ export class DescribeGdnInstancesResponseBodyData extends $tea.Model {
11983
+ gdnInstanceList?: DescribeGdnInstancesResponseBodyDataGdnInstanceList[];
11984
+ /**
11985
+ * @example
11986
+ * 1
11987
+ */
11988
+ pageNumber?: string;
11989
+ /**
11990
+ * @example
11991
+ * 30
11992
+ */
11993
+ pageSize?: string;
11994
+ /**
11995
+ * @example
11996
+ * 130
11997
+ */
11998
+ totalNumber?: string;
11999
+ static names(): { [key: string]: string } {
12000
+ return {
12001
+ gdnInstanceList: 'GdnInstanceList',
12002
+ pageNumber: 'PageNumber',
12003
+ pageSize: 'PageSize',
12004
+ totalNumber: 'TotalNumber',
12005
+ };
12006
+ }
12007
+
12008
+ static types(): { [key: string]: any } {
12009
+ return {
12010
+ gdnInstanceList: { 'type': 'array', 'itemType': DescribeGdnInstancesResponseBodyDataGdnInstanceList },
12011
+ pageNumber: 'string',
12012
+ pageSize: 'string',
12013
+ totalNumber: 'string',
12014
+ };
12015
+ }
12016
+
12017
+ constructor(map?: { [key: string]: any }) {
12018
+ super(map);
12019
+ }
12020
+ }
12021
+
11363
12022
  export class DescribeParameterTemplatesResponseBodyDataParameters extends $tea.Model {
11364
12023
  /**
11365
12024
  * @example
@@ -11615,110 +12274,301 @@ export class DescribeRegionsResponseBodyRegionsRegionZones extends $tea.Model {
11615
12274
  export class DescribeRegionsResponseBodyRegionsRegion extends $tea.Model {
11616
12275
  /**
11617
12276
  * @example
11618
- * ch-hangzhou
12277
+ * ch-hangzhou
12278
+ */
12279
+ regionId?: string;
12280
+ /**
12281
+ * @example
12282
+ * true
12283
+ */
12284
+ supportPolarx10?: boolean;
12285
+ /**
12286
+ * @example
12287
+ * true
12288
+ */
12289
+ supportPolarx20?: boolean;
12290
+ zones?: DescribeRegionsResponseBodyRegionsRegionZones;
12291
+ static names(): { [key: string]: string } {
12292
+ return {
12293
+ regionId: 'RegionId',
12294
+ supportPolarx10: 'SupportPolarx10',
12295
+ supportPolarx20: 'SupportPolarx20',
12296
+ zones: 'Zones',
12297
+ };
12298
+ }
12299
+
12300
+ static types(): { [key: string]: any } {
12301
+ return {
12302
+ regionId: 'string',
12303
+ supportPolarx10: 'boolean',
12304
+ supportPolarx20: 'boolean',
12305
+ zones: DescribeRegionsResponseBodyRegionsRegionZones,
12306
+ };
12307
+ }
12308
+
12309
+ constructor(map?: { [key: string]: any }) {
12310
+ super(map);
12311
+ }
12312
+ }
12313
+
12314
+ export class DescribeRegionsResponseBodyRegions extends $tea.Model {
12315
+ region?: DescribeRegionsResponseBodyRegionsRegion[];
12316
+ static names(): { [key: string]: string } {
12317
+ return {
12318
+ region: 'Region',
12319
+ };
12320
+ }
12321
+
12322
+ static types(): { [key: string]: any } {
12323
+ return {
12324
+ region: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegionsRegion },
12325
+ };
12326
+ }
12327
+
12328
+ constructor(map?: { [key: string]: any }) {
12329
+ super(map);
12330
+ }
12331
+ }
12332
+
12333
+ export class DescribeSecurityIpsResponseBodyDataGroupItems extends $tea.Model {
12334
+ /**
12335
+ * @example
12336
+ * defaultGroup
12337
+ */
12338
+ groupName?: string;
12339
+ /**
12340
+ * @example
12341
+ * 127.0.0.1,172.168.0.0
12342
+ */
12343
+ securityIPList?: string;
12344
+ static names(): { [key: string]: string } {
12345
+ return {
12346
+ groupName: 'GroupName',
12347
+ securityIPList: 'SecurityIPList',
12348
+ };
12349
+ }
12350
+
12351
+ static types(): { [key: string]: any } {
12352
+ return {
12353
+ groupName: 'string',
12354
+ securityIPList: 'string',
12355
+ };
12356
+ }
12357
+
12358
+ constructor(map?: { [key: string]: any }) {
12359
+ super(map);
12360
+ }
12361
+ }
12362
+
12363
+ export class DescribeSecurityIpsResponseBodyData extends $tea.Model {
12364
+ /**
12365
+ * @example
12366
+ * pxc-hzjasd****
12367
+ */
12368
+ DBInstanceName?: string;
12369
+ groupItems?: DescribeSecurityIpsResponseBodyDataGroupItems[];
12370
+ static names(): { [key: string]: string } {
12371
+ return {
12372
+ DBInstanceName: 'DBInstanceName',
12373
+ groupItems: 'GroupItems',
12374
+ };
12375
+ }
12376
+
12377
+ static types(): { [key: string]: any } {
12378
+ return {
12379
+ DBInstanceName: 'string',
12380
+ groupItems: { 'type': 'array', 'itemType': DescribeSecurityIpsResponseBodyDataGroupItems },
12381
+ };
12382
+ }
12383
+
12384
+ constructor(map?: { [key: string]: any }) {
12385
+ super(map);
12386
+ }
12387
+ }
12388
+
12389
+ export class DescribeSlowLogRecordsResponseBodyItems extends $tea.Model {
12390
+ /**
12391
+ * @example
12392
+ * pxc-i-xxxx
12393
+ */
12394
+ CNname?: string;
12395
+ /**
12396
+ * @example
12397
+ * dcdev
12398
+ */
12399
+ DBName?: string;
12400
+ /**
12401
+ * @example
12402
+ * tddl:5.4.19-20240927
12403
+ */
12404
+ extension?: string;
12405
+ /**
12406
+ * @example
12407
+ * 0
12408
+ */
12409
+ fail?: string;
12410
+ /**
12411
+ * @example
12412
+ * 1
12413
+ */
12414
+ frows?: string;
12415
+ /**
12416
+ * @example
12417
+ * ****[****] @ [1XX.XX.XX.XX]
12418
+ */
12419
+ hostAddress?: string;
12420
+ /**
12421
+ * @example
12422
+ * pxc-xdb-s-xxxx
12423
+ */
12424
+ insName?: string;
12425
+ /**
12426
+ * @example
12427
+ * 0
12428
+ */
12429
+ isBind?: string;
12430
+ /**
12431
+ * @example
12432
+ * 1
12433
+ */
12434
+ lockTimeMS?: string;
12435
+ /**
12436
+ * @example
12437
+ * ["1"]
12438
+ */
12439
+ params?: string;
12440
+ /**
12441
+ * @example
12442
+ * 10
12443
+ */
12444
+ parseRowCounts?: string;
12445
+ /**
12446
+ * @example
12447
+ * 2024-11-22T02:22:22.444Z
12448
+ */
12449
+ queryStartTime?: string;
12450
+ /**
12451
+ * @example
12452
+ * 3.000
12453
+ */
12454
+ queryTime?: string;
12455
+ /**
12456
+ * @example
12457
+ * 3000.000
12458
+ */
12459
+ queryTimeMS?: string;
12460
+ /**
12461
+ * @example
12462
+ * 20
12463
+ */
12464
+ returnRowCounts?: string;
12465
+ /**
12466
+ * @example
12467
+ * 1
12468
+ */
12469
+ rows?: string;
12470
+ /**
12471
+ * @example
12472
+ * 1
12473
+ */
12474
+ SCNT?: string;
12475
+ /**
12476
+ * @example
12477
+ * c8df07e5d45cd68da8b4771c2016e20b
12478
+ */
12479
+ SQLHash?: string;
12480
+ /**
12481
+ * @example
12482
+ * select * from test
12483
+ */
12484
+ SQLText?: string;
12485
+ /**
12486
+ * @example
12487
+ * select
11619
12488
  */
11620
- regionId?: string;
12489
+ sqlType?: string;
11621
12490
  /**
11622
12491
  * @example
11623
- * true
12492
+ * 0
11624
12493
  */
11625
- supportPolarx10?: boolean;
12494
+ tooLong?: string;
11626
12495
  /**
11627
12496
  * @example
11628
- * true
12497
+ * 17a5c5c840006000
11629
12498
  */
11630
- supportPolarx20?: boolean;
11631
- zones?: DescribeRegionsResponseBodyRegionsRegionZones;
11632
- static names(): { [key: string]: string } {
11633
- return {
11634
- regionId: 'RegionId',
11635
- supportPolarx10: 'SupportPolarx10',
11636
- supportPolarx20: 'SupportPolarx20',
11637
- zones: 'Zones',
11638
- };
11639
- }
11640
-
11641
- static types(): { [key: string]: any } {
11642
- return {
11643
- regionId: 'string',
11644
- supportPolarx10: 'boolean',
11645
- supportPolarx20: 'boolean',
11646
- zones: DescribeRegionsResponseBodyRegionsRegionZones,
11647
- };
11648
- }
11649
-
11650
- constructor(map?: { [key: string]: any }) {
11651
- super(map);
11652
- }
11653
- }
11654
-
11655
- export class DescribeRegionsResponseBodyRegions extends $tea.Model {
11656
- region?: DescribeRegionsResponseBodyRegionsRegion[];
11657
- static names(): { [key: string]: string } {
11658
- return {
11659
- region: 'Region',
11660
- };
11661
- }
11662
-
11663
- static types(): { [key: string]: any } {
11664
- return {
11665
- region: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegionsRegion },
11666
- };
11667
- }
11668
-
11669
- constructor(map?: { [key: string]: any }) {
11670
- super(map);
11671
- }
11672
- }
11673
-
11674
- export class DescribeSecurityIpsResponseBodyDataGroupItems extends $tea.Model {
12499
+ traceId?: string;
11675
12500
  /**
11676
12501
  * @example
11677
- * defaultGroup
12502
+ * XA
11678
12503
  */
11679
- groupName?: string;
12504
+ transactionPolicy?: string;
11680
12505
  /**
11681
12506
  * @example
11682
- * 127.0.0.1,172.168.0.0
12507
+ * 17a5c5c840006000
11683
12508
  */
11684
- securityIPList?: string;
11685
- static names(): { [key: string]: string } {
11686
- return {
11687
- groupName: 'GroupName',
11688
- securityIPList: 'SecurityIPList',
11689
- };
11690
- }
11691
-
11692
- static types(): { [key: string]: any } {
11693
- return {
11694
- groupName: 'string',
11695
- securityIPList: 'string',
11696
- };
11697
- }
11698
-
11699
- constructor(map?: { [key: string]: any }) {
11700
- super(map);
11701
- }
11702
- }
11703
-
11704
- export class DescribeSecurityIpsResponseBodyData extends $tea.Model {
12509
+ trxId?: string;
11705
12510
  /**
11706
12511
  * @example
11707
- * pxc-hzjasd****
12512
+ * TP
11708
12513
  */
11709
- DBInstanceName?: string;
11710
- groupItems?: DescribeSecurityIpsResponseBodyDataGroupItems[];
12514
+ WT?: string;
11711
12515
  static names(): { [key: string]: string } {
11712
12516
  return {
11713
- DBInstanceName: 'DBInstanceName',
11714
- groupItems: 'GroupItems',
11715
- };
11716
- }
11717
-
11718
- static types(): { [key: string]: any } {
11719
- return {
11720
- DBInstanceName: 'string',
11721
- groupItems: { 'type': 'array', 'itemType': DescribeSecurityIpsResponseBodyDataGroupItems },
12517
+ CNname: 'CNname',
12518
+ DBName: 'DBName',
12519
+ extension: 'Extension',
12520
+ fail: 'Fail',
12521
+ frows: 'Frows',
12522
+ hostAddress: 'HostAddress',
12523
+ insName: 'InsName',
12524
+ isBind: 'IsBind',
12525
+ lockTimeMS: 'LockTimeMS',
12526
+ params: 'Params',
12527
+ parseRowCounts: 'ParseRowCounts',
12528
+ queryStartTime: 'QueryStartTime',
12529
+ queryTime: 'QueryTime',
12530
+ queryTimeMS: 'QueryTimeMS',
12531
+ returnRowCounts: 'ReturnRowCounts',
12532
+ rows: 'Rows',
12533
+ SCNT: 'SCNT',
12534
+ SQLHash: 'SQLHash',
12535
+ SQLText: 'SQLText',
12536
+ sqlType: 'SqlType',
12537
+ tooLong: 'TooLong',
12538
+ traceId: 'TraceId',
12539
+ transactionPolicy: 'TransactionPolicy',
12540
+ trxId: 'TrxId',
12541
+ WT: 'WT',
12542
+ };
12543
+ }
12544
+
12545
+ static types(): { [key: string]: any } {
12546
+ return {
12547
+ CNname: 'string',
12548
+ DBName: 'string',
12549
+ extension: 'string',
12550
+ fail: 'string',
12551
+ frows: 'string',
12552
+ hostAddress: 'string',
12553
+ insName: 'string',
12554
+ isBind: 'string',
12555
+ lockTimeMS: 'string',
12556
+ params: 'string',
12557
+ parseRowCounts: 'string',
12558
+ queryStartTime: 'string',
12559
+ queryTime: 'string',
12560
+ queryTimeMS: 'string',
12561
+ returnRowCounts: 'string',
12562
+ rows: 'string',
12563
+ SCNT: 'string',
12564
+ SQLHash: 'string',
12565
+ SQLText: 'string',
12566
+ sqlType: 'string',
12567
+ tooLong: 'string',
12568
+ traceId: 'string',
12569
+ transactionPolicy: 'string',
12570
+ trxId: 'string',
12571
+ WT: 'string',
11722
12572
  };
11723
12573
  }
11724
12574
 
@@ -12009,6 +12859,29 @@ export class ModifyDBInstanceConnectionStringResponseBodyData extends $tea.Model
12009
12859
  }
12010
12860
  }
12011
12861
 
12862
+ export class SwitchGdnMemberRoleResponseBodyData extends $tea.Model {
12863
+ /**
12864
+ * @example
12865
+ * 2209883
12866
+ */
12867
+ taskId?: number;
12868
+ static names(): { [key: string]: string } {
12869
+ return {
12870
+ taskId: 'TaskId',
12871
+ };
12872
+ }
12873
+
12874
+ static types(): { [key: string]: any } {
12875
+ return {
12876
+ taskId: 'number',
12877
+ };
12878
+ }
12879
+
12880
+ constructor(map?: { [key: string]: any }) {
12881
+ super(map);
12882
+ }
12883
+ }
12884
+
12012
12885
  export class TagResourcesRequestTag extends $tea.Model {
12013
12886
  /**
12014
12887
  * @example
@@ -14164,6 +15037,68 @@ export default class Client extends OpenApi {
14164
15037
  return await this.describeEventsWithOptions(request, runtime);
14165
15038
  }
14166
15039
 
15040
+ /**
15041
+ * 获取GDN实例列表
15042
+ *
15043
+ * @param request - DescribeGdnInstancesRequest
15044
+ * @param runtime - runtime options for this request RuntimeOptions
15045
+ * @returns DescribeGdnInstancesResponse
15046
+ */
15047
+ async describeGdnInstancesWithOptions(request: DescribeGdnInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeGdnInstancesResponse> {
15048
+ Util.validateModel(request);
15049
+ let query = { };
15050
+ if (!Util.isUnset(request.filterType)) {
15051
+ query["FilterType"] = request.filterType;
15052
+ }
15053
+
15054
+ if (!Util.isUnset(request.filterValue)) {
15055
+ query["FilterValue"] = request.filterValue;
15056
+ }
15057
+
15058
+ if (!Util.isUnset(request.GDNId)) {
15059
+ query["GDNId"] = request.GDNId;
15060
+ }
15061
+
15062
+ if (!Util.isUnset(request.pageNum)) {
15063
+ query["PageNum"] = request.pageNum;
15064
+ }
15065
+
15066
+ if (!Util.isUnset(request.pageSize)) {
15067
+ query["PageSize"] = request.pageSize;
15068
+ }
15069
+
15070
+ if (!Util.isUnset(request.regionId)) {
15071
+ query["RegionId"] = request.regionId;
15072
+ }
15073
+
15074
+ let req = new $OpenApi.OpenApiRequest({
15075
+ query: OpenApiUtil.query(query),
15076
+ });
15077
+ let params = new $OpenApi.Params({
15078
+ action: "DescribeGdnInstances",
15079
+ version: "2020-02-02",
15080
+ protocol: "HTTPS",
15081
+ pathname: "/",
15082
+ method: "POST",
15083
+ authType: "AK",
15084
+ style: "RPC",
15085
+ reqBodyType: "formData",
15086
+ bodyType: "json",
15087
+ });
15088
+ return $tea.cast<DescribeGdnInstancesResponse>(await this.callApi(params, req, runtime), new DescribeGdnInstancesResponse({}));
15089
+ }
15090
+
15091
+ /**
15092
+ * 获取GDN实例列表
15093
+ *
15094
+ * @param request - DescribeGdnInstancesRequest
15095
+ * @returns DescribeGdnInstancesResponse
15096
+ */
15097
+ async describeGdnInstances(request: DescribeGdnInstancesRequest): Promise<DescribeGdnInstancesResponse> {
15098
+ let runtime = new $Util.RuntimeOptions({ });
15099
+ return await this.describeGdnInstancesWithOptions(request, runtime);
15100
+ }
15101
+
14167
15102
  /**
14168
15103
  * 开放商业备份集
14169
15104
  *
@@ -14439,6 +15374,80 @@ export default class Client extends OpenApi {
14439
15374
  return await this.describeSecurityIpsWithOptions(request, runtime);
14440
15375
  }
14441
15376
 
15377
+ /**
15378
+ * 慢SQL明细
15379
+ *
15380
+ * @param request - DescribeSlowLogRecordsRequest
15381
+ * @param runtime - runtime options for this request RuntimeOptions
15382
+ * @returns DescribeSlowLogRecordsResponse
15383
+ */
15384
+ async describeSlowLogRecordsWithOptions(request: DescribeSlowLogRecordsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSlowLogRecordsResponse> {
15385
+ Util.validateModel(request);
15386
+ let query = { };
15387
+ if (!Util.isUnset(request.characterType)) {
15388
+ query["CharacterType"] = request.characterType;
15389
+ }
15390
+
15391
+ if (!Util.isUnset(request.DBInstanceName)) {
15392
+ query["DBInstanceName"] = request.DBInstanceName;
15393
+ }
15394
+
15395
+ if (!Util.isUnset(request.DBName)) {
15396
+ query["DBName"] = request.DBName;
15397
+ }
15398
+
15399
+ if (!Util.isUnset(request.DBNodeIds)) {
15400
+ query["DBNodeIds"] = request.DBNodeIds;
15401
+ }
15402
+
15403
+ if (!Util.isUnset(request.endTime)) {
15404
+ query["EndTime"] = request.endTime;
15405
+ }
15406
+
15407
+ if (!Util.isUnset(request.page)) {
15408
+ query["Page"] = request.page;
15409
+ }
15410
+
15411
+ if (!Util.isUnset(request.pageSize)) {
15412
+ query["PageSize"] = request.pageSize;
15413
+ }
15414
+
15415
+ if (!Util.isUnset(request.regionId)) {
15416
+ query["RegionId"] = request.regionId;
15417
+ }
15418
+
15419
+ if (!Util.isUnset(request.startTime)) {
15420
+ query["StartTime"] = request.startTime;
15421
+ }
15422
+
15423
+ let req = new $OpenApi.OpenApiRequest({
15424
+ query: OpenApiUtil.query(query),
15425
+ });
15426
+ let params = new $OpenApi.Params({
15427
+ action: "DescribeSlowLogRecords",
15428
+ version: "2020-02-02",
15429
+ protocol: "HTTPS",
15430
+ pathname: "/",
15431
+ method: "POST",
15432
+ authType: "AK",
15433
+ style: "RPC",
15434
+ reqBodyType: "formData",
15435
+ bodyType: "json",
15436
+ });
15437
+ return $tea.cast<DescribeSlowLogRecordsResponse>(await this.callApi(params, req, runtime), new DescribeSlowLogRecordsResponse({}));
15438
+ }
15439
+
15440
+ /**
15441
+ * 慢SQL明细
15442
+ *
15443
+ * @param request - DescribeSlowLogRecordsRequest
15444
+ * @returns DescribeSlowLogRecordsResponse
15445
+ */
15446
+ async describeSlowLogRecords(request: DescribeSlowLogRecordsRequest): Promise<DescribeSlowLogRecordsResponse> {
15447
+ let runtime = new $Util.RuntimeOptions({ });
15448
+ return await this.describeSlowLogRecordsWithOptions(request, runtime);
15449
+ }
15450
+
14442
15451
  /**
14443
15452
  * 标签列表查询
14444
15453
  *
@@ -15635,6 +16644,56 @@ export default class Client extends OpenApi {
15635
16644
  return await this.switchDBInstanceHAWithOptions(request, runtime);
15636
16645
  }
15637
16646
 
16647
+ /**
16648
+ * GDN主备切换
16649
+ *
16650
+ * @param request - SwitchGdnMemberRoleRequest
16651
+ * @param runtime - runtime options for this request RuntimeOptions
16652
+ * @returns SwitchGdnMemberRoleResponse
16653
+ */
16654
+ async switchGdnMemberRoleWithOptions(request: SwitchGdnMemberRoleRequest, runtime: $Util.RuntimeOptions): Promise<SwitchGdnMemberRoleResponse> {
16655
+ Util.validateModel(request);
16656
+ let query = { };
16657
+ if (!Util.isUnset(request.DBInstanceName)) {
16658
+ query["DBInstanceName"] = request.DBInstanceName;
16659
+ }
16660
+
16661
+ if (!Util.isUnset(request.regionId)) {
16662
+ query["RegionId"] = request.regionId;
16663
+ }
16664
+
16665
+ if (!Util.isUnset(request.switchMode)) {
16666
+ query["SwitchMode"] = request.switchMode;
16667
+ }
16668
+
16669
+ let req = new $OpenApi.OpenApiRequest({
16670
+ query: OpenApiUtil.query(query),
16671
+ });
16672
+ let params = new $OpenApi.Params({
16673
+ action: "SwitchGdnMemberRole",
16674
+ version: "2020-02-02",
16675
+ protocol: "HTTPS",
16676
+ pathname: "/",
16677
+ method: "POST",
16678
+ authType: "AK",
16679
+ style: "RPC",
16680
+ reqBodyType: "formData",
16681
+ bodyType: "json",
16682
+ });
16683
+ return $tea.cast<SwitchGdnMemberRoleResponse>(await this.callApi(params, req, runtime), new SwitchGdnMemberRoleResponse({}));
16684
+ }
16685
+
16686
+ /**
16687
+ * GDN主备切换
16688
+ *
16689
+ * @param request - SwitchGdnMemberRoleRequest
16690
+ * @returns SwitchGdnMemberRoleResponse
16691
+ */
16692
+ async switchGdnMemberRole(request: SwitchGdnMemberRoleRequest): Promise<SwitchGdnMemberRoleResponse> {
16693
+ let runtime = new $Util.RuntimeOptions({ });
16694
+ return await this.switchGdnMemberRoleWithOptions(request, runtime);
16695
+ }
16696
+
15638
16697
  /**
15639
16698
  * 打标签接口
15640
16699
  *