@huaweicloud/huaweicloud-sdk-rds 3.1.173 → 3.1.174
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 +2 -2
- package/v3/RdsClient.d.ts +85 -0
- package/v3/RdsClient.d.ts.map +1 -1
- package/v3/RdsClient.js +188 -0
- package/v3/RdsClient.js.map +1 -1
- package/v3/RdsRegion.d.ts +3 -0
- package/v3/RdsRegion.d.ts.map +1 -1
- package/v3/RdsRegion.js +7 -1
- package/v3/RdsRegion.js.map +1 -1
- package/v3/model/CreateIntelligentKillSessionRequest.d.ts +11 -0
- package/v3/model/CreateIntelligentKillSessionRequest.d.ts.map +1 -0
- package/v3/model/CreateIntelligentKillSessionRequest.js +24 -0
- package/v3/model/CreateIntelligentKillSessionRequest.js.map +1 -0
- package/v3/model/CreateIntelligentKillSessionResponse.d.ts +13 -0
- package/v3/model/CreateIntelligentKillSessionResponse.d.ts.map +1 -0
- package/v3/model/CreateIntelligentKillSessionResponse.js +31 -0
- package/v3/model/CreateIntelligentKillSessionResponse.js.map +1 -0
- package/v3/model/IntelligentKillSessionHistory.d.ts +20 -0
- package/v3/model/IntelligentKillSessionHistory.d.ts.map +1 -0
- package/v3/model/IntelligentKillSessionHistory.js +49 -0
- package/v3/model/IntelligentKillSessionHistory.js.map +1 -0
- package/v3/model/IntelligentKillSessionReq.d.ts +8 -0
- package/v3/model/IntelligentKillSessionReq.d.ts.map +1 -0
- package/v3/model/IntelligentKillSessionReq.js +19 -0
- package/v3/model/IntelligentKillSessionReq.js.map +1 -0
- package/v3/model/ListAutoScalingPolicyRequest.d.ts +12 -0
- package/v3/model/ListAutoScalingPolicyRequest.d.ts.map +1 -0
- package/v3/model/ListAutoScalingPolicyRequest.js +30 -0
- package/v3/model/ListAutoScalingPolicyRequest.js.map +1 -0
- package/v3/model/ListAutoScalingPolicyResponse.d.ts +39 -0
- package/v3/model/ListAutoScalingPolicyResponse.d.ts.map +1 -0
- package/v3/model/ListAutoScalingPolicyResponse.js +95 -0
- package/v3/model/ListAutoScalingPolicyResponse.js.map +1 -0
- package/v3/model/OperateUsedJobSchedule.d.ts +1 -1
- package/v3/model/OperateUsedJobSchedule.d.ts.map +1 -1
- package/v3/model/OperateUsedJobSchedule.js +1 -2
- package/v3/model/OperateUsedJobSchedule.js.map +1 -1
- package/v3/model/ShowIntelligentKillSessionHistoryRequest.d.ts +24 -0
- package/v3/model/ShowIntelligentKillSessionHistoryRequest.d.ts.map +1 -0
- package/v3/model/ShowIntelligentKillSessionHistoryRequest.js +60 -0
- package/v3/model/ShowIntelligentKillSessionHistoryRequest.js.map +1 -0
- package/v3/model/ShowIntelligentKillSessionHistoryResponse.d.ts +16 -0
- package/v3/model/ShowIntelligentKillSessionHistoryResponse.d.ts.map +1 -0
- package/v3/model/ShowIntelligentKillSessionHistoryResponse.js +35 -0
- package/v3/model/ShowIntelligentKillSessionHistoryResponse.js.map +1 -0
- package/v3/public-api.d.ts +8 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +8 -0
- package/v3/public-api.js.map +1 -1
package/v3/RdsClient.js
CHANGED
|
@@ -30,6 +30,7 @@ const CreateDbUserRequest_1 = require("./model/CreateDbUserRequest");
|
|
|
30
30
|
const CreateDnsNameRequest_1 = require("./model/CreateDnsNameRequest");
|
|
31
31
|
const CreateInstanceIam5Request_1 = require("./model/CreateInstanceIam5Request");
|
|
32
32
|
const CreateInstanceRequest_1 = require("./model/CreateInstanceRequest");
|
|
33
|
+
const CreateIntelligentKillSessionRequest_1 = require("./model/CreateIntelligentKillSessionRequest");
|
|
33
34
|
const CreateManualBackupRequest_1 = require("./model/CreateManualBackupRequest");
|
|
34
35
|
const CreatePostgresqlDatabaseRequest_1 = require("./model/CreatePostgresqlDatabaseRequest");
|
|
35
36
|
const CreatePostgresqlDatabaseSchemaRequest_1 = require("./model/CreatePostgresqlDatabaseSchemaRequest");
|
|
@@ -71,6 +72,7 @@ const ListAuditlogsRequest_1 = require("./model/ListAuditlogsRequest");
|
|
|
71
72
|
const ListAuthorizedDatabasesRequest_1 = require("./model/ListAuthorizedDatabasesRequest");
|
|
72
73
|
const ListAuthorizedDbUsersRequest_1 = require("./model/ListAuthorizedDbUsersRequest");
|
|
73
74
|
const ListAuthorizedSqlserverDbUsersRequest_1 = require("./model/ListAuthorizedSqlserverDbUsersRequest");
|
|
75
|
+
const ListAutoScalingPolicyRequest_1 = require("./model/ListAutoScalingPolicyRequest");
|
|
74
76
|
const ListBackupTransfersRequest_1 = require("./model/ListBackupTransfersRequest");
|
|
75
77
|
const ListBackupsRequest_1 = require("./model/ListBackupsRequest");
|
|
76
78
|
const ListBusinessPartnersRequest_1 = require("./model/ListBusinessPartnersRequest");
|
|
@@ -200,6 +202,7 @@ const ShowDrReplicaStatusRequest_1 = require("./model/ShowDrReplicaStatusRequest
|
|
|
200
202
|
const ShowIncreBackupPolicy1Request_1 = require("./model/ShowIncreBackupPolicy1Request");
|
|
201
203
|
const ShowInformationAboutDatabaseProxyRequest_1 = require("./model/ShowInformationAboutDatabaseProxyRequest");
|
|
202
204
|
const ShowInstanceConfigurationRequest_1 = require("./model/ShowInstanceConfigurationRequest");
|
|
205
|
+
const ShowIntelligentKillSessionHistoryRequest_1 = require("./model/ShowIntelligentKillSessionHistoryRequest");
|
|
203
206
|
const ShowOffSiteBackupPolicyRequest_1 = require("./model/ShowOffSiteBackupPolicyRequest");
|
|
204
207
|
const ShowPostgresqlParamValueRequest_1 = require("./model/ShowPostgresqlParamValueRequest");
|
|
205
208
|
const ShowPrecheckResultRequest_1 = require("./model/ShowPrecheckResultRequest");
|
|
@@ -918,6 +921,23 @@ class RdsClient {
|
|
|
918
921
|
options['responseHeaders'] = [''];
|
|
919
922
|
return this.hcClient.sendRequest(options);
|
|
920
923
|
}
|
|
924
|
+
/**
|
|
925
|
+
* 查询自动变配策略
|
|
926
|
+
*
|
|
927
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
928
|
+
*
|
|
929
|
+
* @summary 查询自动变配策略
|
|
930
|
+
* @param {string} instanceId **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,长度为36个字符。 **默认取值**: 不涉及。
|
|
931
|
+
* @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
|
932
|
+
* @param {*} [options] Override http request option.
|
|
933
|
+
* @throws {RequiredError}
|
|
934
|
+
*/
|
|
935
|
+
listAutoScalingPolicy(listAutoScalingPolicyRequest) {
|
|
936
|
+
const options = (0, exports.ParamCreater)().listAutoScalingPolicy(listAutoScalingPolicyRequest);
|
|
937
|
+
// @ts-ignore
|
|
938
|
+
options['responseHeaders'] = [''];
|
|
939
|
+
return this.hcClient.sendRequest(options);
|
|
940
|
+
}
|
|
921
941
|
/**
|
|
922
942
|
* 查询转储任务列表
|
|
923
943
|
*
|
|
@@ -4439,6 +4459,23 @@ class RdsClient {
|
|
|
4439
4459
|
options['responseHeaders'] = [''];
|
|
4440
4460
|
return this.hcClient.sendRequest(options);
|
|
4441
4461
|
}
|
|
4462
|
+
/**
|
|
4463
|
+
* 一键kill会话
|
|
4464
|
+
*
|
|
4465
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4466
|
+
*
|
|
4467
|
+
* @summary 一键kill会话
|
|
4468
|
+
* @param {string} instanceId 实例id
|
|
4469
|
+
* @param {IntelligentKillSessionReq} [createIntelligentKillSessionRequestBody] 一键自动kill会话请求体
|
|
4470
|
+
* @param {*} [options] Override http request option.
|
|
4471
|
+
* @throws {RequiredError}
|
|
4472
|
+
*/
|
|
4473
|
+
createIntelligentKillSession(createIntelligentKillSessionRequest) {
|
|
4474
|
+
const options = (0, exports.ParamCreater)().createIntelligentKillSession(createIntelligentKillSessionRequest);
|
|
4475
|
+
// @ts-ignore
|
|
4476
|
+
options['responseHeaders'] = [''];
|
|
4477
|
+
return this.hcClient.sendRequest(options);
|
|
4478
|
+
}
|
|
4442
4479
|
/**
|
|
4443
4480
|
* 查询无索引表诊断数据
|
|
4444
4481
|
*
|
|
@@ -4457,6 +4494,26 @@ class RdsClient {
|
|
|
4457
4494
|
options['responseHeaders'] = [''];
|
|
4458
4495
|
return this.hcClient.sendRequest(options);
|
|
4459
4496
|
}
|
|
4497
|
+
/**
|
|
4498
|
+
* 查询一键kill会话历史
|
|
4499
|
+
*
|
|
4500
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4501
|
+
*
|
|
4502
|
+
* @summary 查询一键kill会话历史
|
|
4503
|
+
* @param {string} instanceId 实例id
|
|
4504
|
+
* @param {number} [startTime] 查询开始时间
|
|
4505
|
+
* @param {number} [endTime] 查询结束时间
|
|
4506
|
+
* @param {number} [pageNum] 查询页编号
|
|
4507
|
+
* @param {number} [pageSize] 查询分页大小
|
|
4508
|
+
* @param {*} [options] Override http request option.
|
|
4509
|
+
* @throws {RequiredError}
|
|
4510
|
+
*/
|
|
4511
|
+
showIntelligentKillSessionHistory(showIntelligentKillSessionHistoryRequest) {
|
|
4512
|
+
const options = (0, exports.ParamCreater)().showIntelligentKillSessionHistory(showIntelligentKillSessionHistoryRequest);
|
|
4513
|
+
// @ts-ignore
|
|
4514
|
+
options['responseHeaders'] = [''];
|
|
4515
|
+
return this.hcClient.sendRequest(options);
|
|
4516
|
+
}
|
|
4460
4517
|
/**
|
|
4461
4518
|
* 授权数据库帐号。
|
|
4462
4519
|
*
|
|
@@ -6547,6 +6604,43 @@ const ParamCreater = function () {
|
|
|
6547
6604
|
options.headers = localVarHeaderParameter;
|
|
6548
6605
|
return options;
|
|
6549
6606
|
},
|
|
6607
|
+
/**
|
|
6608
|
+
* 查询自动变配策略
|
|
6609
|
+
*
|
|
6610
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
6611
|
+
*/
|
|
6612
|
+
listAutoScalingPolicy(listAutoScalingPolicyRequest) {
|
|
6613
|
+
const options = {
|
|
6614
|
+
method: "GET",
|
|
6615
|
+
url: "/v3/{project_id}/instances/{instance_id}/auto-scaling/policy",
|
|
6616
|
+
contentType: "application/json",
|
|
6617
|
+
queryParams: {},
|
|
6618
|
+
pathParams: {},
|
|
6619
|
+
headers: {}
|
|
6620
|
+
};
|
|
6621
|
+
const localVarHeaderParameter = {};
|
|
6622
|
+
let instanceId;
|
|
6623
|
+
let xLanguage;
|
|
6624
|
+
if (listAutoScalingPolicyRequest !== null && listAutoScalingPolicyRequest !== undefined) {
|
|
6625
|
+
if (listAutoScalingPolicyRequest instanceof ListAutoScalingPolicyRequest_1.ListAutoScalingPolicyRequest) {
|
|
6626
|
+
instanceId = listAutoScalingPolicyRequest.instanceId;
|
|
6627
|
+
xLanguage = listAutoScalingPolicyRequest.xLanguage;
|
|
6628
|
+
}
|
|
6629
|
+
else {
|
|
6630
|
+
instanceId = listAutoScalingPolicyRequest['instance_id'];
|
|
6631
|
+
xLanguage = listAutoScalingPolicyRequest['X-Language'];
|
|
6632
|
+
}
|
|
6633
|
+
}
|
|
6634
|
+
if (instanceId === null || instanceId === undefined) {
|
|
6635
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listAutoScalingPolicy.');
|
|
6636
|
+
}
|
|
6637
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
6638
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
6639
|
+
}
|
|
6640
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
6641
|
+
options.headers = localVarHeaderParameter;
|
|
6642
|
+
return options;
|
|
6643
|
+
},
|
|
6550
6644
|
/**
|
|
6551
6645
|
* 查询转储任务列表
|
|
6552
6646
|
*
|
|
@@ -15506,6 +15600,43 @@ const ParamCreater = function () {
|
|
|
15506
15600
|
options.headers = localVarHeaderParameter;
|
|
15507
15601
|
return options;
|
|
15508
15602
|
},
|
|
15603
|
+
/**
|
|
15604
|
+
* 一键kill会话
|
|
15605
|
+
*
|
|
15606
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15607
|
+
*/
|
|
15608
|
+
createIntelligentKillSession(createIntelligentKillSessionRequest) {
|
|
15609
|
+
const options = {
|
|
15610
|
+
method: "PUT",
|
|
15611
|
+
url: "/v3/{project_id}/instances/{instance_id}/ops/intelligent-kill-session",
|
|
15612
|
+
contentType: "application/json",
|
|
15613
|
+
queryParams: {},
|
|
15614
|
+
pathParams: {},
|
|
15615
|
+
headers: {},
|
|
15616
|
+
data: {}
|
|
15617
|
+
};
|
|
15618
|
+
const localVarHeaderParameter = {};
|
|
15619
|
+
let body;
|
|
15620
|
+
let instanceId;
|
|
15621
|
+
if (createIntelligentKillSessionRequest !== null && createIntelligentKillSessionRequest !== undefined) {
|
|
15622
|
+
if (createIntelligentKillSessionRequest instanceof CreateIntelligentKillSessionRequest_1.CreateIntelligentKillSessionRequest) {
|
|
15623
|
+
instanceId = createIntelligentKillSessionRequest.instanceId;
|
|
15624
|
+
body = createIntelligentKillSessionRequest.body;
|
|
15625
|
+
}
|
|
15626
|
+
else {
|
|
15627
|
+
instanceId = createIntelligentKillSessionRequest['instance_id'];
|
|
15628
|
+
body = createIntelligentKillSessionRequest['body'];
|
|
15629
|
+
}
|
|
15630
|
+
}
|
|
15631
|
+
if (instanceId === null || instanceId === undefined) {
|
|
15632
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createIntelligentKillSession.');
|
|
15633
|
+
}
|
|
15634
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15635
|
+
options.data = body !== undefined ? body : {};
|
|
15636
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
15637
|
+
options.headers = localVarHeaderParameter;
|
|
15638
|
+
return options;
|
|
15639
|
+
},
|
|
15509
15640
|
/**
|
|
15510
15641
|
* 查询无索引表诊断数据
|
|
15511
15642
|
*
|
|
@@ -15557,6 +15688,63 @@ const ParamCreater = function () {
|
|
|
15557
15688
|
options.headers = localVarHeaderParameter;
|
|
15558
15689
|
return options;
|
|
15559
15690
|
},
|
|
15691
|
+
/**
|
|
15692
|
+
* 查询一键kill会话历史
|
|
15693
|
+
*
|
|
15694
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15695
|
+
*/
|
|
15696
|
+
showIntelligentKillSessionHistory(showIntelligentKillSessionHistoryRequest) {
|
|
15697
|
+
const options = {
|
|
15698
|
+
method: "GET",
|
|
15699
|
+
url: "/v3/{project_id}/instances/{instance_id}/ops/intelligent-kill-session/history",
|
|
15700
|
+
contentType: "application/json",
|
|
15701
|
+
queryParams: {},
|
|
15702
|
+
pathParams: {},
|
|
15703
|
+
headers: {}
|
|
15704
|
+
};
|
|
15705
|
+
const localVarHeaderParameter = {};
|
|
15706
|
+
const localVarQueryParameter = {};
|
|
15707
|
+
let instanceId;
|
|
15708
|
+
let startTime;
|
|
15709
|
+
let endTime;
|
|
15710
|
+
let pageNum;
|
|
15711
|
+
let pageSize;
|
|
15712
|
+
if (showIntelligentKillSessionHistoryRequest !== null && showIntelligentKillSessionHistoryRequest !== undefined) {
|
|
15713
|
+
if (showIntelligentKillSessionHistoryRequest instanceof ShowIntelligentKillSessionHistoryRequest_1.ShowIntelligentKillSessionHistoryRequest) {
|
|
15714
|
+
instanceId = showIntelligentKillSessionHistoryRequest.instanceId;
|
|
15715
|
+
startTime = showIntelligentKillSessionHistoryRequest.startTime;
|
|
15716
|
+
endTime = showIntelligentKillSessionHistoryRequest.endTime;
|
|
15717
|
+
pageNum = showIntelligentKillSessionHistoryRequest.pageNum;
|
|
15718
|
+
pageSize = showIntelligentKillSessionHistoryRequest.pageSize;
|
|
15719
|
+
}
|
|
15720
|
+
else {
|
|
15721
|
+
instanceId = showIntelligentKillSessionHistoryRequest['instance_id'];
|
|
15722
|
+
startTime = showIntelligentKillSessionHistoryRequest['start_time'];
|
|
15723
|
+
endTime = showIntelligentKillSessionHistoryRequest['end_time'];
|
|
15724
|
+
pageNum = showIntelligentKillSessionHistoryRequest['page_num'];
|
|
15725
|
+
pageSize = showIntelligentKillSessionHistoryRequest['page_size'];
|
|
15726
|
+
}
|
|
15727
|
+
}
|
|
15728
|
+
if (instanceId === null || instanceId === undefined) {
|
|
15729
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showIntelligentKillSessionHistory.');
|
|
15730
|
+
}
|
|
15731
|
+
if (startTime !== null && startTime !== undefined) {
|
|
15732
|
+
localVarQueryParameter['start_time'] = startTime;
|
|
15733
|
+
}
|
|
15734
|
+
if (endTime !== null && endTime !== undefined) {
|
|
15735
|
+
localVarQueryParameter['end_time'] = endTime;
|
|
15736
|
+
}
|
|
15737
|
+
if (pageNum !== null && pageNum !== undefined) {
|
|
15738
|
+
localVarQueryParameter['page_num'] = pageNum;
|
|
15739
|
+
}
|
|
15740
|
+
if (pageSize !== null && pageSize !== undefined) {
|
|
15741
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
15742
|
+
}
|
|
15743
|
+
options.queryParams = localVarQueryParameter;
|
|
15744
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
15745
|
+
options.headers = localVarHeaderParameter;
|
|
15746
|
+
return options;
|
|
15747
|
+
},
|
|
15560
15748
|
/**
|
|
15561
15749
|
* 授权数据库帐号。
|
|
15562
15750
|
*
|