@alicloud/polardbx20200202 2.1.0 → 2.2.1
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/dist/client.d.ts +384 -0
- package/dist/client.js +349 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +618 -0
package/package.json
CHANGED
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
|
|
@@ -7612,6 +7740,117 @@ export class SwitchDBInstanceHAResponse extends $tea.Model {
|
|
|
7612
7740
|
}
|
|
7613
7741
|
}
|
|
7614
7742
|
|
|
7743
|
+
export class SwitchGdnMemberRoleRequest extends $tea.Model {
|
|
7744
|
+
/**
|
|
7745
|
+
* @remarks
|
|
7746
|
+
* This parameter is required.
|
|
7747
|
+
*
|
|
7748
|
+
* @example
|
|
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
|
+
|
|
7615
7854
|
export class TagResourcesRequest extends $tea.Model {
|
|
7616
7855
|
/**
|
|
7617
7856
|
* @remarks
|
|
@@ -11536,6 +11775,250 @@ export class DescribeEventsResponseBodyEventItems extends $tea.Model {
|
|
|
11536
11775
|
}
|
|
11537
11776
|
}
|
|
11538
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
|
+
|
|
11539
12022
|
export class DescribeParameterTemplatesResponseBodyDataParameters extends $tea.Model {
|
|
11540
12023
|
/**
|
|
11541
12024
|
* @example
|
|
@@ -12376,6 +12859,29 @@ export class ModifyDBInstanceConnectionStringResponseBodyData extends $tea.Model
|
|
|
12376
12859
|
}
|
|
12377
12860
|
}
|
|
12378
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
|
+
|
|
12379
12885
|
export class TagResourcesRequestTag extends $tea.Model {
|
|
12380
12886
|
/**
|
|
12381
12887
|
* @example
|
|
@@ -14531,6 +15037,68 @@ export default class Client extends OpenApi {
|
|
|
14531
15037
|
return await this.describeEventsWithOptions(request, runtime);
|
|
14532
15038
|
}
|
|
14533
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
|
+
|
|
14534
15102
|
/**
|
|
14535
15103
|
* 开放商业备份集
|
|
14536
15104
|
*
|
|
@@ -16076,6 +16644,56 @@ export default class Client extends OpenApi {
|
|
|
16076
16644
|
return await this.switchDBInstanceHAWithOptions(request, runtime);
|
|
16077
16645
|
}
|
|
16078
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
|
+
|
|
16079
16697
|
/**
|
|
16080
16698
|
* 打标签接口
|
|
16081
16699
|
*
|