@alicloud/polardb20170801 3.1.0 → 3.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/dist/client.d.ts +104 -0
- package/dist/client.js +247 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +312 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -755,6 +755,93 @@ export class CreateBackupResponse extends $tea.Model {
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
+
export class CreateColdStorageInstanceRequest extends $tea.Model {
|
|
759
|
+
clientToken?: string;
|
|
760
|
+
coldStorageInstanceDescription?: string;
|
|
761
|
+
DBClusterId?: string;
|
|
762
|
+
ownerAccount?: string;
|
|
763
|
+
ownerId?: number;
|
|
764
|
+
resourceGroupId?: string;
|
|
765
|
+
resourceOwnerAccount?: string;
|
|
766
|
+
resourceOwnerId?: number;
|
|
767
|
+
static names(): { [key: string]: string } {
|
|
768
|
+
return {
|
|
769
|
+
clientToken: 'ClientToken',
|
|
770
|
+
coldStorageInstanceDescription: 'ColdStorageInstanceDescription',
|
|
771
|
+
DBClusterId: 'DBClusterId',
|
|
772
|
+
ownerAccount: 'OwnerAccount',
|
|
773
|
+
ownerId: 'OwnerId',
|
|
774
|
+
resourceGroupId: 'ResourceGroupId',
|
|
775
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
776
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
static types(): { [key: string]: any } {
|
|
781
|
+
return {
|
|
782
|
+
clientToken: 'string',
|
|
783
|
+
coldStorageInstanceDescription: 'string',
|
|
784
|
+
DBClusterId: 'string',
|
|
785
|
+
ownerAccount: 'string',
|
|
786
|
+
ownerId: 'number',
|
|
787
|
+
resourceGroupId: 'string',
|
|
788
|
+
resourceOwnerAccount: 'string',
|
|
789
|
+
resourceOwnerId: 'number',
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
constructor(map?: { [key: string]: any }) {
|
|
794
|
+
super(map);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export class CreateColdStorageInstanceResponseBody extends $tea.Model {
|
|
799
|
+
coldStorageInstanceId?: string;
|
|
800
|
+
requestId?: string;
|
|
801
|
+
static names(): { [key: string]: string } {
|
|
802
|
+
return {
|
|
803
|
+
coldStorageInstanceId: 'ColdStorageInstanceId',
|
|
804
|
+
requestId: 'RequestId',
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
static types(): { [key: string]: any } {
|
|
809
|
+
return {
|
|
810
|
+
coldStorageInstanceId: 'string',
|
|
811
|
+
requestId: 'string',
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
constructor(map?: { [key: string]: any }) {
|
|
816
|
+
super(map);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export class CreateColdStorageInstanceResponse extends $tea.Model {
|
|
821
|
+
headers: { [key: string]: string };
|
|
822
|
+
statusCode: number;
|
|
823
|
+
body: CreateColdStorageInstanceResponseBody;
|
|
824
|
+
static names(): { [key: string]: string } {
|
|
825
|
+
return {
|
|
826
|
+
headers: 'headers',
|
|
827
|
+
statusCode: 'statusCode',
|
|
828
|
+
body: 'body',
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
static types(): { [key: string]: any } {
|
|
833
|
+
return {
|
|
834
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
835
|
+
statusCode: 'number',
|
|
836
|
+
body: CreateColdStorageInstanceResponseBody,
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
constructor(map?: { [key: string]: any }) {
|
|
841
|
+
super(map);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
758
845
|
export class CreateDBClusterRequest extends $tea.Model {
|
|
759
846
|
allowShutDown?: string;
|
|
760
847
|
architecture?: string;
|
|
@@ -3902,6 +3989,7 @@ export class DescribeDBClusterAttributeResponseBody extends $tea.Model {
|
|
|
3902
3989
|
lockMode?: string;
|
|
3903
3990
|
maintainTime?: string;
|
|
3904
3991
|
payType?: string;
|
|
3992
|
+
provisionedIops?: string;
|
|
3905
3993
|
proxyCpuCores?: string;
|
|
3906
3994
|
proxyServerlessType?: string;
|
|
3907
3995
|
proxyStandardCpuCores?: string;
|
|
@@ -3957,6 +4045,7 @@ export class DescribeDBClusterAttributeResponseBody extends $tea.Model {
|
|
|
3957
4045
|
lockMode: 'LockMode',
|
|
3958
4046
|
maintainTime: 'MaintainTime',
|
|
3959
4047
|
payType: 'PayType',
|
|
4048
|
+
provisionedIops: 'ProvisionedIops',
|
|
3960
4049
|
proxyCpuCores: 'ProxyCpuCores',
|
|
3961
4050
|
proxyServerlessType: 'ProxyServerlessType',
|
|
3962
4051
|
proxyStandardCpuCores: 'ProxyStandardCpuCores',
|
|
@@ -4015,6 +4104,7 @@ export class DescribeDBClusterAttributeResponseBody extends $tea.Model {
|
|
|
4015
4104
|
lockMode: 'string',
|
|
4016
4105
|
maintainTime: 'string',
|
|
4017
4106
|
payType: 'string',
|
|
4107
|
+
provisionedIops: 'string',
|
|
4018
4108
|
proxyCpuCores: 'string',
|
|
4019
4109
|
proxyServerlessType: 'string',
|
|
4020
4110
|
proxyStandardCpuCores: 'string',
|
|
@@ -8102,6 +8192,102 @@ export class DisableDBClusterServerlessResponse extends $tea.Model {
|
|
|
8102
8192
|
}
|
|
8103
8193
|
}
|
|
8104
8194
|
|
|
8195
|
+
export class EnableDBClusterServerlessRequest extends $tea.Model {
|
|
8196
|
+
DBClusterId?: string;
|
|
8197
|
+
ownerAccount?: string;
|
|
8198
|
+
ownerId?: number;
|
|
8199
|
+
resourceOwnerAccount?: string;
|
|
8200
|
+
resourceOwnerId?: number;
|
|
8201
|
+
scaleApRoNumMax?: string;
|
|
8202
|
+
scaleApRoNumMin?: string;
|
|
8203
|
+
scaleMax?: string;
|
|
8204
|
+
scaleMin?: string;
|
|
8205
|
+
scaleRoNumMax?: string;
|
|
8206
|
+
scaleRoNumMin?: string;
|
|
8207
|
+
static names(): { [key: string]: string } {
|
|
8208
|
+
return {
|
|
8209
|
+
DBClusterId: 'DBClusterId',
|
|
8210
|
+
ownerAccount: 'OwnerAccount',
|
|
8211
|
+
ownerId: 'OwnerId',
|
|
8212
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
8213
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
8214
|
+
scaleApRoNumMax: 'ScaleApRoNumMax',
|
|
8215
|
+
scaleApRoNumMin: 'ScaleApRoNumMin',
|
|
8216
|
+
scaleMax: 'ScaleMax',
|
|
8217
|
+
scaleMin: 'ScaleMin',
|
|
8218
|
+
scaleRoNumMax: 'ScaleRoNumMax',
|
|
8219
|
+
scaleRoNumMin: 'ScaleRoNumMin',
|
|
8220
|
+
};
|
|
8221
|
+
}
|
|
8222
|
+
|
|
8223
|
+
static types(): { [key: string]: any } {
|
|
8224
|
+
return {
|
|
8225
|
+
DBClusterId: 'string',
|
|
8226
|
+
ownerAccount: 'string',
|
|
8227
|
+
ownerId: 'number',
|
|
8228
|
+
resourceOwnerAccount: 'string',
|
|
8229
|
+
resourceOwnerId: 'number',
|
|
8230
|
+
scaleApRoNumMax: 'string',
|
|
8231
|
+
scaleApRoNumMin: 'string',
|
|
8232
|
+
scaleMax: 'string',
|
|
8233
|
+
scaleMin: 'string',
|
|
8234
|
+
scaleRoNumMax: 'string',
|
|
8235
|
+
scaleRoNumMin: 'string',
|
|
8236
|
+
};
|
|
8237
|
+
}
|
|
8238
|
+
|
|
8239
|
+
constructor(map?: { [key: string]: any }) {
|
|
8240
|
+
super(map);
|
|
8241
|
+
}
|
|
8242
|
+
}
|
|
8243
|
+
|
|
8244
|
+
export class EnableDBClusterServerlessResponseBody extends $tea.Model {
|
|
8245
|
+
DBClusterId?: string;
|
|
8246
|
+
requestId?: string;
|
|
8247
|
+
static names(): { [key: string]: string } {
|
|
8248
|
+
return {
|
|
8249
|
+
DBClusterId: 'DBClusterId',
|
|
8250
|
+
requestId: 'RequestId',
|
|
8251
|
+
};
|
|
8252
|
+
}
|
|
8253
|
+
|
|
8254
|
+
static types(): { [key: string]: any } {
|
|
8255
|
+
return {
|
|
8256
|
+
DBClusterId: 'string',
|
|
8257
|
+
requestId: 'string',
|
|
8258
|
+
};
|
|
8259
|
+
}
|
|
8260
|
+
|
|
8261
|
+
constructor(map?: { [key: string]: any }) {
|
|
8262
|
+
super(map);
|
|
8263
|
+
}
|
|
8264
|
+
}
|
|
8265
|
+
|
|
8266
|
+
export class EnableDBClusterServerlessResponse extends $tea.Model {
|
|
8267
|
+
headers: { [key: string]: string };
|
|
8268
|
+
statusCode: number;
|
|
8269
|
+
body: EnableDBClusterServerlessResponseBody;
|
|
8270
|
+
static names(): { [key: string]: string } {
|
|
8271
|
+
return {
|
|
8272
|
+
headers: 'headers',
|
|
8273
|
+
statusCode: 'statusCode',
|
|
8274
|
+
body: 'body',
|
|
8275
|
+
};
|
|
8276
|
+
}
|
|
8277
|
+
|
|
8278
|
+
static types(): { [key: string]: any } {
|
|
8279
|
+
return {
|
|
8280
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8281
|
+
statusCode: 'number',
|
|
8282
|
+
body: EnableDBClusterServerlessResponseBody,
|
|
8283
|
+
};
|
|
8284
|
+
}
|
|
8285
|
+
|
|
8286
|
+
constructor(map?: { [key: string]: any }) {
|
|
8287
|
+
super(map);
|
|
8288
|
+
}
|
|
8289
|
+
}
|
|
8290
|
+
|
|
8105
8291
|
export class EnableFirewallRulesRequest extends $tea.Model {
|
|
8106
8292
|
DBClusterId?: string;
|
|
8107
8293
|
enable?: boolean;
|
|
@@ -16827,6 +17013,63 @@ export default class Client extends OpenApi {
|
|
|
16827
17013
|
return await this.createBackupWithOptions(request, runtime);
|
|
16828
17014
|
}
|
|
16829
17015
|
|
|
17016
|
+
async createColdStorageInstanceWithOptions(request: CreateColdStorageInstanceRequest, runtime: $Util.RuntimeOptions): Promise<CreateColdStorageInstanceResponse> {
|
|
17017
|
+
Util.validateModel(request);
|
|
17018
|
+
let query = { };
|
|
17019
|
+
if (!Util.isUnset(request.clientToken)) {
|
|
17020
|
+
query["ClientToken"] = request.clientToken;
|
|
17021
|
+
}
|
|
17022
|
+
|
|
17023
|
+
if (!Util.isUnset(request.coldStorageInstanceDescription)) {
|
|
17024
|
+
query["ColdStorageInstanceDescription"] = request.coldStorageInstanceDescription;
|
|
17025
|
+
}
|
|
17026
|
+
|
|
17027
|
+
if (!Util.isUnset(request.DBClusterId)) {
|
|
17028
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
17029
|
+
}
|
|
17030
|
+
|
|
17031
|
+
if (!Util.isUnset(request.ownerAccount)) {
|
|
17032
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
17033
|
+
}
|
|
17034
|
+
|
|
17035
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
17036
|
+
query["OwnerId"] = request.ownerId;
|
|
17037
|
+
}
|
|
17038
|
+
|
|
17039
|
+
if (!Util.isUnset(request.resourceGroupId)) {
|
|
17040
|
+
query["ResourceGroupId"] = request.resourceGroupId;
|
|
17041
|
+
}
|
|
17042
|
+
|
|
17043
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
17044
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
17045
|
+
}
|
|
17046
|
+
|
|
17047
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
17048
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
17049
|
+
}
|
|
17050
|
+
|
|
17051
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17052
|
+
query: OpenApiUtil.query(query),
|
|
17053
|
+
});
|
|
17054
|
+
let params = new $OpenApi.Params({
|
|
17055
|
+
action: "CreateColdStorageInstance",
|
|
17056
|
+
version: "2017-08-01",
|
|
17057
|
+
protocol: "HTTPS",
|
|
17058
|
+
pathname: "/",
|
|
17059
|
+
method: "POST",
|
|
17060
|
+
authType: "AK",
|
|
17061
|
+
style: "RPC",
|
|
17062
|
+
reqBodyType: "formData",
|
|
17063
|
+
bodyType: "json",
|
|
17064
|
+
});
|
|
17065
|
+
return $tea.cast<CreateColdStorageInstanceResponse>(await this.callApi(params, req, runtime), new CreateColdStorageInstanceResponse({}));
|
|
17066
|
+
}
|
|
17067
|
+
|
|
17068
|
+
async createColdStorageInstance(request: CreateColdStorageInstanceRequest): Promise<CreateColdStorageInstanceResponse> {
|
|
17069
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17070
|
+
return await this.createColdStorageInstanceWithOptions(request, runtime);
|
|
17071
|
+
}
|
|
17072
|
+
|
|
16830
17073
|
async createDBClusterWithOptions(request: CreateDBClusterRequest, runtime: $Util.RuntimeOptions): Promise<CreateDBClusterResponse> {
|
|
16831
17074
|
Util.validateModel(request);
|
|
16832
17075
|
let query = { };
|
|
@@ -21650,6 +21893,75 @@ export default class Client extends OpenApi {
|
|
|
21650
21893
|
return await this.disableDBClusterServerlessWithOptions(request, runtime);
|
|
21651
21894
|
}
|
|
21652
21895
|
|
|
21896
|
+
async enableDBClusterServerlessWithOptions(request: EnableDBClusterServerlessRequest, runtime: $Util.RuntimeOptions): Promise<EnableDBClusterServerlessResponse> {
|
|
21897
|
+
Util.validateModel(request);
|
|
21898
|
+
let query = { };
|
|
21899
|
+
if (!Util.isUnset(request.DBClusterId)) {
|
|
21900
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
21901
|
+
}
|
|
21902
|
+
|
|
21903
|
+
if (!Util.isUnset(request.ownerAccount)) {
|
|
21904
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
21905
|
+
}
|
|
21906
|
+
|
|
21907
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
21908
|
+
query["OwnerId"] = request.ownerId;
|
|
21909
|
+
}
|
|
21910
|
+
|
|
21911
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
21912
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
21913
|
+
}
|
|
21914
|
+
|
|
21915
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
21916
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
21917
|
+
}
|
|
21918
|
+
|
|
21919
|
+
if (!Util.isUnset(request.scaleApRoNumMax)) {
|
|
21920
|
+
query["ScaleApRoNumMax"] = request.scaleApRoNumMax;
|
|
21921
|
+
}
|
|
21922
|
+
|
|
21923
|
+
if (!Util.isUnset(request.scaleApRoNumMin)) {
|
|
21924
|
+
query["ScaleApRoNumMin"] = request.scaleApRoNumMin;
|
|
21925
|
+
}
|
|
21926
|
+
|
|
21927
|
+
if (!Util.isUnset(request.scaleMax)) {
|
|
21928
|
+
query["ScaleMax"] = request.scaleMax;
|
|
21929
|
+
}
|
|
21930
|
+
|
|
21931
|
+
if (!Util.isUnset(request.scaleMin)) {
|
|
21932
|
+
query["ScaleMin"] = request.scaleMin;
|
|
21933
|
+
}
|
|
21934
|
+
|
|
21935
|
+
if (!Util.isUnset(request.scaleRoNumMax)) {
|
|
21936
|
+
query["ScaleRoNumMax"] = request.scaleRoNumMax;
|
|
21937
|
+
}
|
|
21938
|
+
|
|
21939
|
+
if (!Util.isUnset(request.scaleRoNumMin)) {
|
|
21940
|
+
query["ScaleRoNumMin"] = request.scaleRoNumMin;
|
|
21941
|
+
}
|
|
21942
|
+
|
|
21943
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
21944
|
+
query: OpenApiUtil.query(query),
|
|
21945
|
+
});
|
|
21946
|
+
let params = new $OpenApi.Params({
|
|
21947
|
+
action: "EnableDBClusterServerless",
|
|
21948
|
+
version: "2017-08-01",
|
|
21949
|
+
protocol: "HTTPS",
|
|
21950
|
+
pathname: "/",
|
|
21951
|
+
method: "POST",
|
|
21952
|
+
authType: "AK",
|
|
21953
|
+
style: "RPC",
|
|
21954
|
+
reqBodyType: "formData",
|
|
21955
|
+
bodyType: "json",
|
|
21956
|
+
});
|
|
21957
|
+
return $tea.cast<EnableDBClusterServerlessResponse>(await this.callApi(params, req, runtime), new EnableDBClusterServerlessResponse({}));
|
|
21958
|
+
}
|
|
21959
|
+
|
|
21960
|
+
async enableDBClusterServerless(request: EnableDBClusterServerlessRequest): Promise<EnableDBClusterServerlessResponse> {
|
|
21961
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
21962
|
+
return await this.enableDBClusterServerlessWithOptions(request, runtime);
|
|
21963
|
+
}
|
|
21964
|
+
|
|
21653
21965
|
async enableFirewallRulesWithOptions(request: EnableFirewallRulesRequest, runtime: $Util.RuntimeOptions): Promise<EnableFirewallRulesResponse> {
|
|
21654
21966
|
Util.validateModel(request);
|
|
21655
21967
|
let query = { };
|