@huaweicloud/huaweicloud-sdk-rds 3.1.177 → 3.1.179
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 +284 -2
- package/v3/RdsClient.d.ts.map +1 -1
- package/v3/RdsClient.js +624 -2
- package/v3/RdsClient.js.map +1 -1
- package/v3/model/AutoCesAlarmInfo.d.ts +58 -0
- package/v3/model/AutoCesAlarmInfo.d.ts.map +1 -0
- package/v3/model/AutoCesAlarmInfo.js +143 -0
- package/v3/model/AutoCesAlarmInfo.js.map +1 -0
- package/v3/model/BatchDeleteInstanceRequest.d.ts +11 -0
- package/v3/model/BatchDeleteInstanceRequest.d.ts.map +1 -0
- package/v3/model/BatchDeleteInstanceRequest.js +23 -0
- package/v3/model/BatchDeleteInstanceRequest.js.map +1 -0
- package/v3/model/BatchDeleteInstanceResponse.d.ts +8 -0
- package/v3/model/BatchDeleteInstanceResponse.d.ts.map +1 -0
- package/v3/model/BatchDeleteInstanceResponse.js +15 -0
- package/v3/model/BatchDeleteInstanceResponse.js.map +1 -0
- package/v3/model/BatchExecuteEventsRequest.d.ts +11 -0
- package/v3/model/BatchExecuteEventsRequest.d.ts.map +1 -0
- package/v3/model/BatchExecuteEventsRequest.js +23 -0
- package/v3/model/BatchExecuteEventsRequest.js.map +1 -0
- package/v3/model/BatchExecuteEventsResponse.d.ts +8 -0
- package/v3/model/BatchExecuteEventsResponse.d.ts.map +1 -0
- package/v3/model/BatchExecuteEventsResponse.js +15 -0
- package/v3/model/BatchExecuteEventsResponse.js.map +1 -0
- package/v3/model/CompareConfigurationRequest.d.ts +15 -0
- package/v3/model/CompareConfigurationRequest.d.ts.map +1 -0
- package/v3/model/CompareConfigurationRequest.js +34 -0
- package/v3/model/CompareConfigurationRequest.js.map +1 -0
- package/v3/model/CompareConfigurationRequestBody.d.ts +12 -0
- package/v3/model/CompareConfigurationRequestBody.d.ts.map +1 -0
- package/v3/model/CompareConfigurationRequestBody.js +31 -0
- package/v3/model/CompareConfigurationRequestBody.js.map +1 -0
- package/v3/model/CompareConfigurationResponse.d.ts +24 -0
- package/v3/model/CompareConfigurationResponse.d.ts.map +1 -0
- package/v3/model/CompareConfigurationResponse.js +55 -0
- package/v3/model/CompareConfigurationResponse.js.map +1 -0
- package/v3/model/CreateRebuildSlaveRequest.d.ts +8 -0
- package/v3/model/CreateRebuildSlaveRequest.d.ts.map +1 -0
- package/v3/model/CreateRebuildSlaveRequest.js +20 -0
- package/v3/model/CreateRebuildSlaveRequest.js.map +1 -0
- package/v3/model/CreateRebuildSlaveResponse.d.ts +13 -0
- package/v3/model/CreateRebuildSlaveResponse.d.ts.map +1 -0
- package/v3/model/CreateRebuildSlaveResponse.js +31 -0
- package/v3/model/CreateRebuildSlaveResponse.js.map +1 -0
- package/v3/model/CustomerBatchDeleteInstanceRecord.d.ts +12 -0
- package/v3/model/CustomerBatchDeleteInstanceRecord.d.ts.map +1 -0
- package/v3/model/CustomerBatchDeleteInstanceRecord.js +29 -0
- package/v3/model/CustomerBatchDeleteInstanceRecord.js.map +1 -0
- package/v3/model/EventInstance.d.ts +12 -0
- package/v3/model/EventInstance.d.ts.map +1 -0
- package/v3/model/EventInstance.js +31 -0
- package/v3/model/EventInstance.js.map +1 -0
- package/v3/model/EventJobResult.d.ts +24 -0
- package/v3/model/EventJobResult.d.ts.map +1 -0
- package/v3/model/EventJobResult.js +57 -0
- package/v3/model/EventJobResult.js.map +1 -0
- package/v3/model/EventScheduleWindow.d.ts +16 -0
- package/v3/model/EventScheduleWindow.d.ts.map +1 -0
- package/v3/model/EventScheduleWindow.js +40 -0
- package/v3/model/EventScheduleWindow.js.map +1 -0
- package/v3/model/IntelligentKillSessionStatistic.d.ts +34 -0
- package/v3/model/IntelligentKillSessionStatistic.d.ts.map +1 -0
- package/v3/model/IntelligentKillSessionStatistic.js +79 -0
- package/v3/model/IntelligentKillSessionStatistic.js.map +1 -0
- package/v3/model/ListPackLogInfosRequest.d.ts +16 -0
- package/v3/model/ListPackLogInfosRequest.d.ts.map +1 -0
- package/v3/model/ListPackLogInfosRequest.js +38 -0
- package/v3/model/ListPackLogInfosRequest.js.map +1 -0
- package/v3/model/ListPackLogInfosResponse.d.ts +14 -0
- package/v3/model/ListPackLogInfosResponse.d.ts.map +1 -0
- package/v3/model/ListPackLogInfosResponse.js +31 -0
- package/v3/model/ListPackLogInfosResponse.js.map +1 -0
- package/v3/model/ListScheduleEventsRequest.d.ts +26 -0
- package/v3/model/ListScheduleEventsRequest.d.ts.map +1 -0
- package/v3/model/ListScheduleEventsRequest.js +57 -0
- package/v3/model/ListScheduleEventsRequest.js.map +1 -0
- package/v3/model/ListScheduleEventsResponse.d.ts +28 -0
- package/v3/model/ListScheduleEventsResponse.d.ts.map +1 -0
- package/v3/model/ListScheduleEventsResponse.js +65 -0
- package/v3/model/ListScheduleEventsResponse.js.map +1 -0
- package/v3/model/MultipleDeleteInsReq.d.ts +8 -0
- package/v3/model/MultipleDeleteInsReq.d.ts.map +1 -0
- package/v3/model/MultipleDeleteInsReq.js +20 -0
- package/v3/model/MultipleDeleteInsReq.js.map +1 -0
- package/v3/model/OperateEventReq.d.ts +18 -0
- package/v3/model/OperateEventReq.d.ts.map +1 -0
- package/v3/model/OperateEventReq.js +41 -0
- package/v3/model/OperateEventReq.js.map +1 -0
- package/v3/model/PackLogInfo.d.ts +30 -0
- package/v3/model/PackLogInfo.d.ts.map +1 -0
- package/v3/model/PackLogInfo.js +71 -0
- package/v3/model/PackLogInfo.js.map +1 -0
- package/v3/model/ParamGroupParameterDiff.d.ts +14 -0
- package/v3/model/ParamGroupParameterDiff.d.ts.map +1 -0
- package/v3/model/ParamGroupParameterDiff.js +33 -0
- package/v3/model/ParamGroupParameterDiff.js.map +1 -0
- package/v3/model/ResetConfigurationRequest.d.ts +12 -0
- package/v3/model/ResetConfigurationRequest.d.ts.map +1 -0
- package/v3/model/ResetConfigurationRequest.js +30 -0
- package/v3/model/ResetConfigurationRequest.js.map +1 -0
- package/v3/model/ResetConfigurationResponse.d.ts +13 -0
- package/v3/model/ResetConfigurationResponse.d.ts.map +1 -0
- package/v3/model/ResetConfigurationResponse.js +31 -0
- package/v3/model/ResetConfigurationResponse.js.map +1 -0
- package/v3/model/ScheduleEventInfo.d.ts +44 -0
- package/v3/model/ScheduleEventInfo.d.ts.map +1 -0
- package/v3/model/ScheduleEventInfo.js +114 -0
- package/v3/model/ScheduleEventInfo.js.map +1 -0
- package/v3/model/ShowAutoCesAlarmRequest.d.ts +10 -0
- package/v3/model/ShowAutoCesAlarmRequest.d.ts.map +1 -0
- package/v3/model/ShowAutoCesAlarmRequest.js +23 -0
- package/v3/model/ShowAutoCesAlarmRequest.js.map +1 -0
- package/v3/model/ShowAutoCesAlarmResponse.d.ts +10 -0
- package/v3/model/ShowAutoCesAlarmResponse.d.ts.map +1 -0
- package/v3/model/ShowAutoCesAlarmResponse.js +19 -0
- package/v3/model/ShowAutoCesAlarmResponse.js.map +1 -0
- package/v3/model/ShowIntelligentKillSessionStatisticRequest.d.ts +16 -0
- package/v3/model/ShowIntelligentKillSessionStatisticRequest.d.ts.map +1 -0
- package/v3/model/ShowIntelligentKillSessionStatisticRequest.js +40 -0
- package/v3/model/ShowIntelligentKillSessionStatisticRequest.js.map +1 -0
- package/v3/model/ShowIntelligentKillSessionStatisticResponse.d.ts +8 -0
- package/v3/model/ShowIntelligentKillSessionStatisticResponse.d.ts.map +1 -0
- package/v3/model/ShowIntelligentKillSessionStatisticResponse.js +15 -0
- package/v3/model/ShowIntelligentKillSessionStatisticResponse.js.map +1 -0
- package/v3/model/ShowRebuildSlaveStatusRequest.d.ts +8 -0
- package/v3/model/ShowRebuildSlaveStatusRequest.d.ts.map +1 -0
- package/v3/model/ShowRebuildSlaveStatusRequest.js +20 -0
- package/v3/model/ShowRebuildSlaveStatusRequest.js.map +1 -0
- package/v3/model/ShowRebuildSlaveStatusResponse.d.ts +21 -0
- package/v3/model/ShowRebuildSlaveStatusResponse.d.ts.map +1 -0
- package/v3/model/ShowRebuildSlaveStatusResponse.js +51 -0
- package/v3/model/ShowRebuildSlaveStatusResponse.js.map +1 -0
- package/v3/model/Statistic.d.ts +4 -6
- package/v3/model/Statistic.d.ts.map +1 -1
- package/v3/model/Statistic.js +1 -7
- package/v3/model/Statistic.js.map +1 -1
- package/v3/public-api.d.ts +32 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +32 -0
- package/v3/public-api.js.map +1 -1
package/v3/RdsClient.js
CHANGED
|
@@ -9,7 +9,9 @@ const AllowSqlserverDbUserPrivilegeRequest_1 = require("./model/AllowSqlserverDb
|
|
|
9
9
|
const ApplyConfigurationAsyncRequest_1 = require("./model/ApplyConfigurationAsyncRequest");
|
|
10
10
|
const AttachEipRequest_1 = require("./model/AttachEipRequest");
|
|
11
11
|
const BatchAddMsdtcsRequest_1 = require("./model/BatchAddMsdtcsRequest");
|
|
12
|
+
const BatchDeleteInstanceRequest_1 = require("./model/BatchDeleteInstanceRequest");
|
|
12
13
|
const BatchDeleteManualBackupRequest_1 = require("./model/BatchDeleteManualBackupRequest");
|
|
14
|
+
const BatchExecuteEventsRequest_1 = require("./model/BatchExecuteEventsRequest");
|
|
13
15
|
const BatchModifyPublicationRequest_1 = require("./model/BatchModifyPublicationRequest");
|
|
14
16
|
const BatchModifySubscriptionRequest_1 = require("./model/BatchModifySubscriptionRequest");
|
|
15
17
|
const BatchRestoreDatabaseRequest_1 = require("./model/BatchRestoreDatabaseRequest");
|
|
@@ -26,6 +28,7 @@ const CheckInstanceForUpgradeRequest_1 = require("./model/CheckInstanceForUpgrad
|
|
|
26
28
|
const CheckWeakpwdRequest_1 = require("./model/CheckWeakpwdRequest");
|
|
27
29
|
const CollectPublicationMonitorRequest_1 = require("./model/CollectPublicationMonitorRequest");
|
|
28
30
|
const CollectSubscriptionMonitorRequest_1 = require("./model/CollectSubscriptionMonitorRequest");
|
|
31
|
+
const CompareConfigurationRequest_1 = require("./model/CompareConfigurationRequest");
|
|
29
32
|
const CopyConfigurationRequest_1 = require("./model/CopyConfigurationRequest");
|
|
30
33
|
const CopyDatabaseRequest_1 = require("./model/CopyDatabaseRequest");
|
|
31
34
|
const CreateConfigurationRequest_1 = require("./model/CreateConfigurationRequest");
|
|
@@ -43,6 +46,7 @@ const CreatePostgresqlDbUserRequest_1 = require("./model/CreatePostgresqlDbUserR
|
|
|
43
46
|
const CreatePostgresqlExtensionRequest_1 = require("./model/CreatePostgresqlExtensionRequest");
|
|
44
47
|
const CreatePublicationRequest_1 = require("./model/CreatePublicationRequest");
|
|
45
48
|
const CreateRdSforMySqlProxyRequest_1 = require("./model/CreateRdSforMySqlProxyRequest");
|
|
49
|
+
const CreateRebuildSlaveRequest_1 = require("./model/CreateRebuildSlaveRequest");
|
|
46
50
|
const CreateRestoreInstanceRequest_1 = require("./model/CreateRestoreInstanceRequest");
|
|
47
51
|
const CreateSqlLimitRequest_1 = require("./model/CreateSqlLimitRequest");
|
|
48
52
|
const CreateSqlserverDatabaseRequest_1 = require("./model/CreateSqlserverDatabaseRequest");
|
|
@@ -122,6 +126,7 @@ const ListMsdtcHostsRequest_1 = require("./model/ListMsdtcHostsRequest");
|
|
|
122
126
|
const ListOffSiteBackupsRequest_1 = require("./model/ListOffSiteBackupsRequest");
|
|
123
127
|
const ListOffSiteInstancesRequest_1 = require("./model/ListOffSiteInstancesRequest");
|
|
124
128
|
const ListOffSiteRestoreTimesRequest_1 = require("./model/ListOffSiteRestoreTimesRequest");
|
|
129
|
+
const ListPackLogInfosRequest_1 = require("./model/ListPackLogInfosRequest");
|
|
125
130
|
const ListPostgresqlDatabaseSchemasRequest_1 = require("./model/ListPostgresqlDatabaseSchemasRequest");
|
|
126
131
|
const ListPostgresqlDatabasesRequest_1 = require("./model/ListPostgresqlDatabasesRequest");
|
|
127
132
|
const ListPostgresqlDbUserPaginatedRequest_1 = require("./model/ListPostgresqlDbUserPaginatedRequest");
|
|
@@ -141,6 +146,7 @@ const ListRemoteDbRequest_1 = require("./model/ListRemoteDbRequest");
|
|
|
141
146
|
const ListReplicationErrorsRequest_1 = require("./model/ListReplicationErrorsRequest");
|
|
142
147
|
const ListReplicationProfilesRequest_1 = require("./model/ListReplicationProfilesRequest");
|
|
143
148
|
const ListRestoreTimesRequest_1 = require("./model/ListRestoreTimesRequest");
|
|
149
|
+
const ListScheduleEventsRequest_1 = require("./model/ListScheduleEventsRequest");
|
|
144
150
|
const ListScheduleTasksRequest_1 = require("./model/ListScheduleTasksRequest");
|
|
145
151
|
const ListShareBackupsRequest_1 = require("./model/ListShareBackupsRequest");
|
|
146
152
|
const ListSimplifiedInstancesRequest_1 = require("./model/ListSimplifiedInstancesRequest");
|
|
@@ -174,6 +180,7 @@ const ModifyRdSforMySqlProxyRouteModeRequest_1 = require("./model/ModifyRdSforMy
|
|
|
174
180
|
const NotifyReplaceNodeRequest_1 = require("./model/NotifyReplaceNodeRequest");
|
|
175
181
|
const RefreshPublicationSnapshotRequest_1 = require("./model/RefreshPublicationSnapshotRequest");
|
|
176
182
|
const RefreshSubscriptionRequest_1 = require("./model/RefreshSubscriptionRequest");
|
|
183
|
+
const ResetConfigurationRequest_1 = require("./model/ResetConfigurationRequest");
|
|
177
184
|
const ResetPwdRequest_1 = require("./model/ResetPwdRequest");
|
|
178
185
|
const ResetViewSqlStatisticsRequest_1 = require("./model/ResetViewSqlStatisticsRequest");
|
|
179
186
|
const RestartDbAgentJobRequest_1 = require("./model/RestartDbAgentJobRequest");
|
|
@@ -208,6 +215,7 @@ const SetTransferPolicyRequest_1 = require("./model/SetTransferPolicyRequest");
|
|
|
208
215
|
const ShowApiVersionRequest_1 = require("./model/ShowApiVersionRequest");
|
|
209
216
|
const ShowAuditlogDownloadLinkRequest_1 = require("./model/ShowAuditlogDownloadLinkRequest");
|
|
210
217
|
const ShowAuditlogPolicyRequest_1 = require("./model/ShowAuditlogPolicyRequest");
|
|
218
|
+
const ShowAutoCesAlarmRequest_1 = require("./model/ShowAutoCesAlarmRequest");
|
|
211
219
|
const ShowAutoEnlargePolicyRequest_1 = require("./model/ShowAutoEnlargePolicyRequest");
|
|
212
220
|
const ShowAutoUpgradePolicyRequest_1 = require("./model/ShowAutoUpgradePolicyRequest");
|
|
213
221
|
const ShowAvailableVersionRequest_1 = require("./model/ShowAvailableVersionRequest");
|
|
@@ -223,10 +231,12 @@ const ShowIncreBackupPolicy1Request_1 = require("./model/ShowIncreBackupPolicy1R
|
|
|
223
231
|
const ShowInformationAboutDatabaseProxyRequest_1 = require("./model/ShowInformationAboutDatabaseProxyRequest");
|
|
224
232
|
const ShowInstanceConfigurationRequest_1 = require("./model/ShowInstanceConfigurationRequest");
|
|
225
233
|
const ShowIntelligentKillSessionHistoryRequest_1 = require("./model/ShowIntelligentKillSessionHistoryRequest");
|
|
234
|
+
const ShowIntelligentKillSessionStatisticRequest_1 = require("./model/ShowIntelligentKillSessionStatisticRequest");
|
|
226
235
|
const ShowOffSiteBackupPolicyRequest_1 = require("./model/ShowOffSiteBackupPolicyRequest");
|
|
227
236
|
const ShowPostgresqlParamValueRequest_1 = require("./model/ShowPostgresqlParamValueRequest");
|
|
228
237
|
const ShowPrecheckResultRequest_1 = require("./model/ShowPrecheckResultRequest");
|
|
229
238
|
const ShowQuotasRequest_1 = require("./model/ShowQuotasRequest");
|
|
239
|
+
const ShowRebuildSlaveStatusRequest_1 = require("./model/ShowRebuildSlaveStatusRequest");
|
|
230
240
|
const ShowRecoveryTimeWindowRequest_1 = require("./model/ShowRecoveryTimeWindowRequest");
|
|
231
241
|
const ShowRecyclePolicyRequest_1 = require("./model/ShowRecyclePolicyRequest");
|
|
232
242
|
const ShowReplayDelayStatusRequest_1 = require("./model/ShowReplayDelayStatusRequest");
|
|
@@ -350,6 +360,23 @@ class RdsClient {
|
|
|
350
360
|
options['responseHeaders'] = [''];
|
|
351
361
|
return this.hcClient.sendRequest(options);
|
|
352
362
|
}
|
|
363
|
+
/**
|
|
364
|
+
* 批量删除数据库实例
|
|
365
|
+
*
|
|
366
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
367
|
+
*
|
|
368
|
+
* @summary 批量删除实例
|
|
369
|
+
* @param {MultipleDeleteInsReq} requestBody 批量删除实例请求参数
|
|
370
|
+
* @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
batchDeleteInstance(batchDeleteInstanceRequest) {
|
|
375
|
+
const options = (0, exports.ParamCreater)().batchDeleteInstance(batchDeleteInstanceRequest);
|
|
376
|
+
// @ts-ignore
|
|
377
|
+
options['responseHeaders'] = [''];
|
|
378
|
+
return this.hcClient.sendRequest(options);
|
|
379
|
+
}
|
|
353
380
|
/**
|
|
354
381
|
* 批量删除手动备份。
|
|
355
382
|
*
|
|
@@ -367,6 +394,23 @@ class RdsClient {
|
|
|
367
394
|
options['responseHeaders'] = [''];
|
|
368
395
|
return this.hcClient.sendRequest(options);
|
|
369
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* 操作EG事件中心通知的事件
|
|
399
|
+
*
|
|
400
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
401
|
+
*
|
|
402
|
+
* @summary 操作EG事件中心通知的事件
|
|
403
|
+
* @param {OperateEventReq} batchExecuteEventsRequestBody 操作事件请求体
|
|
404
|
+
* @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
*/
|
|
408
|
+
batchExecuteEvents(batchExecuteEventsRequest) {
|
|
409
|
+
const options = (0, exports.ParamCreater)().batchExecuteEvents(batchExecuteEventsRequest);
|
|
410
|
+
// @ts-ignore
|
|
411
|
+
options['responseHeaders'] = [''];
|
|
412
|
+
return this.hcClient.sendRequest(options);
|
|
413
|
+
}
|
|
370
414
|
/**
|
|
371
415
|
* 库级时间点恢复
|
|
372
416
|
*
|
|
@@ -540,6 +584,24 @@ class RdsClient {
|
|
|
540
584
|
options['responseHeaders'] = [''];
|
|
541
585
|
return this.hcClient.sendRequest(options);
|
|
542
586
|
}
|
|
587
|
+
/**
|
|
588
|
+
* 比较参数模板
|
|
589
|
+
*
|
|
590
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
591
|
+
*
|
|
592
|
+
* @summary 比较参数模板
|
|
593
|
+
* @param {string} contentType **参数解释**: 内容类型。 **约束限制**: 不涉及。 **取值范围**: application/json。 **默认取值**: application/json。
|
|
594
|
+
* @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
|
595
|
+
* @param {CompareConfigurationRequestBody} [compareConfigurationRequestBody] 比较参数模板请求体。
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
compareConfiguration(compareConfigurationRequest) {
|
|
600
|
+
const options = (0, exports.ParamCreater)().compareConfiguration(compareConfigurationRequest);
|
|
601
|
+
// @ts-ignore
|
|
602
|
+
options['responseHeaders'] = [''];
|
|
603
|
+
return this.hcClient.sendRequest(options);
|
|
604
|
+
}
|
|
543
605
|
/**
|
|
544
606
|
* 复制参数模板
|
|
545
607
|
*
|
|
@@ -664,6 +726,22 @@ class RdsClient {
|
|
|
664
726
|
options['responseHeaders'] = [''];
|
|
665
727
|
return this.hcClient.sendRequest(options);
|
|
666
728
|
}
|
|
729
|
+
/**
|
|
730
|
+
* 重建从机,消除复制延迟
|
|
731
|
+
*
|
|
732
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
733
|
+
*
|
|
734
|
+
* @summary 重建从机
|
|
735
|
+
* @param {string} instanceId **参数解释**: 实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
736
|
+
* @param {*} [options] Override http request option.
|
|
737
|
+
* @throws {RequiredError}
|
|
738
|
+
*/
|
|
739
|
+
createRebuildSlave(createRebuildSlaveRequest) {
|
|
740
|
+
const options = (0, exports.ParamCreater)().createRebuildSlave(createRebuildSlaveRequest);
|
|
741
|
+
// @ts-ignore
|
|
742
|
+
options['responseHeaders'] = [''];
|
|
743
|
+
return this.hcClient.sendRequest(options);
|
|
744
|
+
}
|
|
667
745
|
/**
|
|
668
746
|
* 恢复到新实例。
|
|
669
747
|
*
|
|
@@ -1553,6 +1631,25 @@ class RdsClient {
|
|
|
1553
1631
|
options['responseHeaders'] = [''];
|
|
1554
1632
|
return this.hcClient.sendRequest(options);
|
|
1555
1633
|
}
|
|
1634
|
+
/**
|
|
1635
|
+
* 查询binlog合并下载文件
|
|
1636
|
+
*
|
|
1637
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1638
|
+
*
|
|
1639
|
+
* @summary 查询binlog合并下载文件
|
|
1640
|
+
* @param {string} instanceId **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,长度为36个字符。 **默认取值**: 不涉及。
|
|
1641
|
+
* @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
|
1642
|
+
* @param {number} [offset] **参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 **约束限制**: 不涉及。 **取值范围**: 不涉及 **默认取值**: 0
|
|
1643
|
+
* @param {number} [limit] **参数解释**: 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。 **约束限制**: 不涉及。 **取值范围**: 不涉及 **默认取值**: 10
|
|
1644
|
+
* @param {*} [options] Override http request option.
|
|
1645
|
+
* @throws {RequiredError}
|
|
1646
|
+
*/
|
|
1647
|
+
listPackLogInfos(listPackLogInfosRequest) {
|
|
1648
|
+
const options = (0, exports.ParamCreater)().listPackLogInfos(listPackLogInfosRequest);
|
|
1649
|
+
// @ts-ignore
|
|
1650
|
+
options['responseHeaders'] = [''];
|
|
1651
|
+
return this.hcClient.sendRequest(options);
|
|
1652
|
+
}
|
|
1556
1653
|
/**
|
|
1557
1654
|
* 查询实例的pg_hba.conf文件配置
|
|
1558
1655
|
*
|
|
@@ -1728,6 +1825,30 @@ class RdsClient {
|
|
|
1728
1825
|
options['responseHeaders'] = [''];
|
|
1729
1826
|
return this.hcClient.sendRequest(options);
|
|
1730
1827
|
}
|
|
1828
|
+
/**
|
|
1829
|
+
* 查询事件列表
|
|
1830
|
+
*
|
|
1831
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1832
|
+
*
|
|
1833
|
+
* @summary 查询事件列表
|
|
1834
|
+
* @param {string} [id] **参数解释**: 事件ID。 **约束限制**: 不涉及。
|
|
1835
|
+
* @param {string} [instanceId] **参数解释**: 实例ID。 **约束限制**: 不涉及。
|
|
1836
|
+
* @param {string} [status] **参数解释**: 事件状态 **约束限制**: 不涉及。 **取值范围**: 枚举值:WAITING 等待中;INQUIRING 待授权; SCHEDULED 待执行; EXECUTING 执行中; COMPLETED 已完成; FAILED 失败; CANCELED 已取消。
|
|
1837
|
+
* @param {string} [type] **参数解释**: 事件类型 **约束限制**: 不涉及。 **取值范围**: 枚举值:RESTAT_NODE 重启实例节点。
|
|
1838
|
+
* @param {string} [level] **参数解释**: 事件级别 **约束限制**: 不涉及。 **取值范围**: CRITICAL 紧急;MAJOR 重要;MINOR 一般;INFO 提示。
|
|
1839
|
+
* @param {string} [sortField] **参数解释**: 排序字段,支持planned_execution_time、created_time、latest_execution_time。 **约束限制**: 不涉及。
|
|
1840
|
+
* @param {string} [order] **参数解释**: 排序顺序 **约束限制**: 不涉及。 **取值范围**: DESC 降序;ASC升序 **默认取值**: DESC 降序
|
|
1841
|
+
* @param {number} [offset] **参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 **约束限制**: 不涉及。 **取值范围**: 不涉及 **默认取值**: 0
|
|
1842
|
+
* @param {number} [limit] **参数解释**: 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。 **约束限制**: 不涉及。 **取值范围**: 不涉及 **默认取值**: 10
|
|
1843
|
+
* @param {*} [options] Override http request option.
|
|
1844
|
+
* @throws {RequiredError}
|
|
1845
|
+
*/
|
|
1846
|
+
listScheduleEvents(listScheduleEventsRequest) {
|
|
1847
|
+
const options = (0, exports.ParamCreater)().listScheduleEvents(listScheduleEventsRequest);
|
|
1848
|
+
// @ts-ignore
|
|
1849
|
+
options['responseHeaders'] = [''];
|
|
1850
|
+
return this.hcClient.sendRequest(options);
|
|
1851
|
+
}
|
|
1731
1852
|
/**
|
|
1732
1853
|
* 查询定时任务列表
|
|
1733
1854
|
*
|
|
@@ -2177,6 +2298,23 @@ class RdsClient {
|
|
|
2177
2298
|
options['responseHeaders'] = [''];
|
|
2178
2299
|
return this.hcClient.sendRequest(options);
|
|
2179
2300
|
}
|
|
2301
|
+
/**
|
|
2302
|
+
* 重置自定义参数模板
|
|
2303
|
+
*
|
|
2304
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2305
|
+
*
|
|
2306
|
+
* @summary 重置自定义参数模板
|
|
2307
|
+
* @param {string} configId **参数解释**: 参数模板id。 **约束限制**: 只允许填写自定义参数模板。
|
|
2308
|
+
* @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
|
2309
|
+
* @param {*} [options] Override http request option.
|
|
2310
|
+
* @throws {RequiredError}
|
|
2311
|
+
*/
|
|
2312
|
+
resetConfiguration(resetConfigurationRequest) {
|
|
2313
|
+
const options = (0, exports.ParamCreater)().resetConfiguration(resetConfigurationRequest);
|
|
2314
|
+
// @ts-ignore
|
|
2315
|
+
options['responseHeaders'] = [''];
|
|
2316
|
+
return this.hcClient.sendRequest(options);
|
|
2317
|
+
}
|
|
2180
2318
|
/**
|
|
2181
2319
|
* 恢复到已有实例。
|
|
2182
2320
|
*
|
|
@@ -2793,6 +2931,22 @@ class RdsClient {
|
|
|
2793
2931
|
options['responseHeaders'] = [''];
|
|
2794
2932
|
return this.hcClient.sendRequest(options);
|
|
2795
2933
|
}
|
|
2934
|
+
/**
|
|
2935
|
+
* 查询重建从机的状态
|
|
2936
|
+
*
|
|
2937
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2938
|
+
*
|
|
2939
|
+
* @summary 查询重建从机状态
|
|
2940
|
+
* @param {string} instanceId **参数解释**: 实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
2941
|
+
* @param {*} [options] Override http request option.
|
|
2942
|
+
* @throws {RequiredError}
|
|
2943
|
+
*/
|
|
2944
|
+
showRebuildSlaveStatus(showRebuildSlaveStatusRequest) {
|
|
2945
|
+
const options = (0, exports.ParamCreater)().showRebuildSlaveStatus(showRebuildSlaveStatusRequest);
|
|
2946
|
+
// @ts-ignore
|
|
2947
|
+
options['responseHeaders'] = [''];
|
|
2948
|
+
return this.hcClient.sendRequest(options);
|
|
2949
|
+
}
|
|
2796
2950
|
/**
|
|
2797
2951
|
* 查询回收站的回收策略。
|
|
2798
2952
|
*
|
|
@@ -4520,6 +4674,23 @@ class RdsClient {
|
|
|
4520
4674
|
options['responseHeaders'] = [''];
|
|
4521
4675
|
return this.hcClient.sendRequest(options);
|
|
4522
4676
|
}
|
|
4677
|
+
/**
|
|
4678
|
+
* 查询当前用户自动告警配置
|
|
4679
|
+
*
|
|
4680
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4681
|
+
*
|
|
4682
|
+
* @summary 查询当前用户自动告警配置
|
|
4683
|
+
* @param {string} [engine] **参数解释**: 数据库引擎。 **约束限制**: 不涉及。
|
|
4684
|
+
* @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
|
4685
|
+
* @param {*} [options] Override http request option.
|
|
4686
|
+
* @throws {RequiredError}
|
|
4687
|
+
*/
|
|
4688
|
+
showAutoCesAlarm(showAutoCesAlarmRequest) {
|
|
4689
|
+
const options = (0, exports.ParamCreater)().showAutoCesAlarm(showAutoCesAlarmRequest);
|
|
4690
|
+
// @ts-ignore
|
|
4691
|
+
options['responseHeaders'] = [''];
|
|
4692
|
+
return this.hcClient.sendRequest(options);
|
|
4693
|
+
}
|
|
4523
4694
|
/**
|
|
4524
4695
|
* 查询一键kill会话历史
|
|
4525
4696
|
*
|
|
@@ -4540,6 +4711,24 @@ class RdsClient {
|
|
|
4540
4711
|
options['responseHeaders'] = [''];
|
|
4541
4712
|
return this.hcClient.sendRequest(options);
|
|
4542
4713
|
}
|
|
4714
|
+
/**
|
|
4715
|
+
* 查询一键kill会话实时统计信息
|
|
4716
|
+
*
|
|
4717
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4718
|
+
*
|
|
4719
|
+
* @summary 查询一键kill会话实时统计信息
|
|
4720
|
+
* @param {string} instanceId **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。
|
|
4721
|
+
* @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
|
4722
|
+
* @param {string} [nodeId] **参数解释**: 节点ID。 **约束限制**: 只有当实例为集群版时该参数有效。
|
|
4723
|
+
* @param {*} [options] Override http request option.
|
|
4724
|
+
* @throws {RequiredError}
|
|
4725
|
+
*/
|
|
4726
|
+
showIntelligentKillSessionStatistic(showIntelligentKillSessionStatisticRequest) {
|
|
4727
|
+
const options = (0, exports.ParamCreater)().showIntelligentKillSessionStatistic(showIntelligentKillSessionStatisticRequest);
|
|
4728
|
+
// @ts-ignore
|
|
4729
|
+
options['responseHeaders'] = [''];
|
|
4730
|
+
return this.hcClient.sendRequest(options);
|
|
4731
|
+
}
|
|
4543
4732
|
/**
|
|
4544
4733
|
* 授权数据库帐号。
|
|
4545
4734
|
*
|
|
@@ -5194,8 +5383,8 @@ class RdsClient {
|
|
|
5194
5383
|
* @summary 查询可配置为当前实例订阅服务器的实例列表
|
|
5195
5384
|
* @param {string} instanceId 实例ID
|
|
5196
5385
|
* @param {string} [xLanguage] 语言。默认en-us。
|
|
5197
|
-
* @param {string} [subscriberInstanceId]
|
|
5198
|
-
* @param {string} [subscriberInstanceName]
|
|
5386
|
+
* @param {string} [subscriberInstanceId] 订阅实例ID
|
|
5387
|
+
* @param {string} [subscriberInstanceName] 订阅实例名
|
|
5199
5388
|
* @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
5200
5389
|
* @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
|
5201
5390
|
* @param {*} [options] Override http request option.
|
|
@@ -5630,6 +5819,45 @@ const ParamCreater = function () {
|
|
|
5630
5819
|
options.headers = localVarHeaderParameter;
|
|
5631
5820
|
return options;
|
|
5632
5821
|
},
|
|
5822
|
+
/**
|
|
5823
|
+
* 批量删除数据库实例
|
|
5824
|
+
*
|
|
5825
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5826
|
+
*/
|
|
5827
|
+
batchDeleteInstance(batchDeleteInstanceRequest) {
|
|
5828
|
+
const options = {
|
|
5829
|
+
method: "POST",
|
|
5830
|
+
url: "/v3/{project_id}/instances/batch-delete",
|
|
5831
|
+
contentType: "application/json",
|
|
5832
|
+
queryParams: {},
|
|
5833
|
+
pathParams: {},
|
|
5834
|
+
headers: {},
|
|
5835
|
+
data: {}
|
|
5836
|
+
};
|
|
5837
|
+
const localVarHeaderParameter = {};
|
|
5838
|
+
let body;
|
|
5839
|
+
let xLanguage;
|
|
5840
|
+
if (batchDeleteInstanceRequest !== null && batchDeleteInstanceRequest !== undefined) {
|
|
5841
|
+
if (batchDeleteInstanceRequest instanceof BatchDeleteInstanceRequest_1.BatchDeleteInstanceRequest) {
|
|
5842
|
+
body = batchDeleteInstanceRequest.body;
|
|
5843
|
+
xLanguage = batchDeleteInstanceRequest.xLanguage;
|
|
5844
|
+
}
|
|
5845
|
+
else {
|
|
5846
|
+
body = batchDeleteInstanceRequest['body'];
|
|
5847
|
+
xLanguage = batchDeleteInstanceRequest['X-Language'];
|
|
5848
|
+
}
|
|
5849
|
+
}
|
|
5850
|
+
if (body === null || body === undefined) {
|
|
5851
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
5852
|
+
}
|
|
5853
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
5854
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
5855
|
+
}
|
|
5856
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5857
|
+
options.data = body !== undefined ? body : {};
|
|
5858
|
+
options.headers = localVarHeaderParameter;
|
|
5859
|
+
return options;
|
|
5860
|
+
},
|
|
5633
5861
|
/**
|
|
5634
5862
|
* 批量删除手动备份。
|
|
5635
5863
|
*
|
|
@@ -5669,6 +5897,45 @@ const ParamCreater = function () {
|
|
|
5669
5897
|
options.headers = localVarHeaderParameter;
|
|
5670
5898
|
return options;
|
|
5671
5899
|
},
|
|
5900
|
+
/**
|
|
5901
|
+
* 操作EG事件中心通知的事件
|
|
5902
|
+
*
|
|
5903
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5904
|
+
*/
|
|
5905
|
+
batchExecuteEvents(batchExecuteEventsRequest) {
|
|
5906
|
+
const options = {
|
|
5907
|
+
method: "POST",
|
|
5908
|
+
url: "/v3/{project_id}/schedule-events",
|
|
5909
|
+
contentType: "application/json",
|
|
5910
|
+
queryParams: {},
|
|
5911
|
+
pathParams: {},
|
|
5912
|
+
headers: {},
|
|
5913
|
+
data: {}
|
|
5914
|
+
};
|
|
5915
|
+
const localVarHeaderParameter = {};
|
|
5916
|
+
let body;
|
|
5917
|
+
let xLanguage;
|
|
5918
|
+
if (batchExecuteEventsRequest !== null && batchExecuteEventsRequest !== undefined) {
|
|
5919
|
+
if (batchExecuteEventsRequest instanceof BatchExecuteEventsRequest_1.BatchExecuteEventsRequest) {
|
|
5920
|
+
body = batchExecuteEventsRequest.body;
|
|
5921
|
+
xLanguage = batchExecuteEventsRequest.xLanguage;
|
|
5922
|
+
}
|
|
5923
|
+
else {
|
|
5924
|
+
body = batchExecuteEventsRequest['body'];
|
|
5925
|
+
xLanguage = batchExecuteEventsRequest['X-Language'];
|
|
5926
|
+
}
|
|
5927
|
+
}
|
|
5928
|
+
if (body === null || body === undefined) {
|
|
5929
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
5930
|
+
}
|
|
5931
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
5932
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
5933
|
+
}
|
|
5934
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5935
|
+
options.data = body !== undefined ? body : {};
|
|
5936
|
+
options.headers = localVarHeaderParameter;
|
|
5937
|
+
return options;
|
|
5938
|
+
},
|
|
5672
5939
|
/**
|
|
5673
5940
|
* 库级时间点恢复
|
|
5674
5941
|
*
|
|
@@ -6077,6 +6344,48 @@ const ParamCreater = function () {
|
|
|
6077
6344
|
options.headers = localVarHeaderParameter;
|
|
6078
6345
|
return options;
|
|
6079
6346
|
},
|
|
6347
|
+
/**
|
|
6348
|
+
* 比较参数模板
|
|
6349
|
+
*
|
|
6350
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
6351
|
+
*/
|
|
6352
|
+
compareConfiguration(compareConfigurationRequest) {
|
|
6353
|
+
const options = {
|
|
6354
|
+
method: "PUT",
|
|
6355
|
+
url: "/v3/{project_id}/configurations/difference",
|
|
6356
|
+
contentType: "application/json",
|
|
6357
|
+
queryParams: {},
|
|
6358
|
+
pathParams: {},
|
|
6359
|
+
headers: {},
|
|
6360
|
+
data: {}
|
|
6361
|
+
};
|
|
6362
|
+
const localVarHeaderParameter = {};
|
|
6363
|
+
let body;
|
|
6364
|
+
let contentType;
|
|
6365
|
+
let xLanguage;
|
|
6366
|
+
if (compareConfigurationRequest !== null && compareConfigurationRequest !== undefined) {
|
|
6367
|
+
if (compareConfigurationRequest instanceof CompareConfigurationRequest_1.CompareConfigurationRequest) {
|
|
6368
|
+
contentType = compareConfigurationRequest.contentType;
|
|
6369
|
+
xLanguage = compareConfigurationRequest.xLanguage;
|
|
6370
|
+
body = compareConfigurationRequest.body;
|
|
6371
|
+
}
|
|
6372
|
+
else {
|
|
6373
|
+
contentType = compareConfigurationRequest['Content-Type'];
|
|
6374
|
+
xLanguage = compareConfigurationRequest['X-Language'];
|
|
6375
|
+
body = compareConfigurationRequest['body'];
|
|
6376
|
+
}
|
|
6377
|
+
}
|
|
6378
|
+
if (contentType !== undefined && contentType !== null) {
|
|
6379
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
6380
|
+
}
|
|
6381
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
6382
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
6383
|
+
}
|
|
6384
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6385
|
+
options.data = body !== undefined ? body : {};
|
|
6386
|
+
options.headers = localVarHeaderParameter;
|
|
6387
|
+
return options;
|
|
6388
|
+
},
|
|
6080
6389
|
/**
|
|
6081
6390
|
* 复制参数模板
|
|
6082
6391
|
*
|
|
@@ -6380,6 +6689,37 @@ const ParamCreater = function () {
|
|
|
6380
6689
|
options.headers = localVarHeaderParameter;
|
|
6381
6690
|
return options;
|
|
6382
6691
|
},
|
|
6692
|
+
/**
|
|
6693
|
+
* 重建从机,消除复制延迟
|
|
6694
|
+
*
|
|
6695
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
6696
|
+
*/
|
|
6697
|
+
createRebuildSlave(createRebuildSlaveRequest) {
|
|
6698
|
+
const options = {
|
|
6699
|
+
method: "PUT",
|
|
6700
|
+
url: "/v3/{project_id}/instances/{instance_id}/rebuild",
|
|
6701
|
+
contentType: "application/json",
|
|
6702
|
+
queryParams: {},
|
|
6703
|
+
pathParams: {},
|
|
6704
|
+
headers: {}
|
|
6705
|
+
};
|
|
6706
|
+
const localVarHeaderParameter = {};
|
|
6707
|
+
let instanceId;
|
|
6708
|
+
if (createRebuildSlaveRequest !== null && createRebuildSlaveRequest !== undefined) {
|
|
6709
|
+
if (createRebuildSlaveRequest instanceof CreateRebuildSlaveRequest_1.CreateRebuildSlaveRequest) {
|
|
6710
|
+
instanceId = createRebuildSlaveRequest.instanceId;
|
|
6711
|
+
}
|
|
6712
|
+
else {
|
|
6713
|
+
instanceId = createRebuildSlaveRequest['instance_id'];
|
|
6714
|
+
}
|
|
6715
|
+
}
|
|
6716
|
+
if (instanceId === null || instanceId === undefined) {
|
|
6717
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createRebuildSlave.');
|
|
6718
|
+
}
|
|
6719
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
6720
|
+
options.headers = localVarHeaderParameter;
|
|
6721
|
+
return options;
|
|
6722
|
+
},
|
|
6383
6723
|
/**
|
|
6384
6724
|
* 恢复到新实例。
|
|
6385
6725
|
*
|
|
@@ -8770,6 +9110,57 @@ const ParamCreater = function () {
|
|
|
8770
9110
|
options.headers = localVarHeaderParameter;
|
|
8771
9111
|
return options;
|
|
8772
9112
|
},
|
|
9113
|
+
/**
|
|
9114
|
+
* 查询binlog合并下载文件
|
|
9115
|
+
*
|
|
9116
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
9117
|
+
*/
|
|
9118
|
+
listPackLogInfos(listPackLogInfosRequest) {
|
|
9119
|
+
const options = {
|
|
9120
|
+
method: "GET",
|
|
9121
|
+
url: "/v3/{project_id}/instances/{instance_id}/packlog/infos",
|
|
9122
|
+
contentType: "application/json",
|
|
9123
|
+
queryParams: {},
|
|
9124
|
+
pathParams: {},
|
|
9125
|
+
headers: {}
|
|
9126
|
+
};
|
|
9127
|
+
const localVarHeaderParameter = {};
|
|
9128
|
+
const localVarQueryParameter = {};
|
|
9129
|
+
let instanceId;
|
|
9130
|
+
let xLanguage;
|
|
9131
|
+
let offset;
|
|
9132
|
+
let limit;
|
|
9133
|
+
if (listPackLogInfosRequest !== null && listPackLogInfosRequest !== undefined) {
|
|
9134
|
+
if (listPackLogInfosRequest instanceof ListPackLogInfosRequest_1.ListPackLogInfosRequest) {
|
|
9135
|
+
instanceId = listPackLogInfosRequest.instanceId;
|
|
9136
|
+
xLanguage = listPackLogInfosRequest.xLanguage;
|
|
9137
|
+
offset = listPackLogInfosRequest.offset;
|
|
9138
|
+
limit = listPackLogInfosRequest.limit;
|
|
9139
|
+
}
|
|
9140
|
+
else {
|
|
9141
|
+
instanceId = listPackLogInfosRequest['instance_id'];
|
|
9142
|
+
xLanguage = listPackLogInfosRequest['X-Language'];
|
|
9143
|
+
offset = listPackLogInfosRequest['offset'];
|
|
9144
|
+
limit = listPackLogInfosRequest['limit'];
|
|
9145
|
+
}
|
|
9146
|
+
}
|
|
9147
|
+
if (instanceId === null || instanceId === undefined) {
|
|
9148
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listPackLogInfos.');
|
|
9149
|
+
}
|
|
9150
|
+
if (offset !== null && offset !== undefined) {
|
|
9151
|
+
localVarQueryParameter['offset'] = offset;
|
|
9152
|
+
}
|
|
9153
|
+
if (limit !== null && limit !== undefined) {
|
|
9154
|
+
localVarQueryParameter['limit'] = limit;
|
|
9155
|
+
}
|
|
9156
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
9157
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
9158
|
+
}
|
|
9159
|
+
options.queryParams = localVarQueryParameter;
|
|
9160
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
9161
|
+
options.headers = localVarHeaderParameter;
|
|
9162
|
+
return options;
|
|
9163
|
+
},
|
|
8773
9164
|
/**
|
|
8774
9165
|
* 查询实例的pg_hba.conf文件配置
|
|
8775
9166
|
*
|
|
@@ -9179,6 +9570,86 @@ const ParamCreater = function () {
|
|
|
9179
9570
|
options.headers = localVarHeaderParameter;
|
|
9180
9571
|
return options;
|
|
9181
9572
|
},
|
|
9573
|
+
/**
|
|
9574
|
+
* 查询事件列表
|
|
9575
|
+
*
|
|
9576
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
9577
|
+
*/
|
|
9578
|
+
listScheduleEvents(listScheduleEventsRequest) {
|
|
9579
|
+
const options = {
|
|
9580
|
+
method: "GET",
|
|
9581
|
+
url: "/v3/{project_id}/schedule-events",
|
|
9582
|
+
contentType: "application/json",
|
|
9583
|
+
queryParams: {},
|
|
9584
|
+
pathParams: {},
|
|
9585
|
+
headers: {}
|
|
9586
|
+
};
|
|
9587
|
+
const localVarHeaderParameter = {};
|
|
9588
|
+
const localVarQueryParameter = {};
|
|
9589
|
+
let id;
|
|
9590
|
+
let instanceId;
|
|
9591
|
+
let status;
|
|
9592
|
+
let type;
|
|
9593
|
+
let level;
|
|
9594
|
+
let sortField;
|
|
9595
|
+
let order;
|
|
9596
|
+
let offset;
|
|
9597
|
+
let limit;
|
|
9598
|
+
if (listScheduleEventsRequest !== null && listScheduleEventsRequest !== undefined) {
|
|
9599
|
+
if (listScheduleEventsRequest instanceof ListScheduleEventsRequest_1.ListScheduleEventsRequest) {
|
|
9600
|
+
id = listScheduleEventsRequest.id;
|
|
9601
|
+
instanceId = listScheduleEventsRequest.instanceId;
|
|
9602
|
+
status = listScheduleEventsRequest.status;
|
|
9603
|
+
type = listScheduleEventsRequest.type;
|
|
9604
|
+
level = listScheduleEventsRequest.level;
|
|
9605
|
+
sortField = listScheduleEventsRequest.sortField;
|
|
9606
|
+
order = listScheduleEventsRequest.order;
|
|
9607
|
+
offset = listScheduleEventsRequest.offset;
|
|
9608
|
+
limit = listScheduleEventsRequest.limit;
|
|
9609
|
+
}
|
|
9610
|
+
else {
|
|
9611
|
+
id = listScheduleEventsRequest['id'];
|
|
9612
|
+
instanceId = listScheduleEventsRequest['instance_id'];
|
|
9613
|
+
status = listScheduleEventsRequest['status'];
|
|
9614
|
+
type = listScheduleEventsRequest['type'];
|
|
9615
|
+
level = listScheduleEventsRequest['level'];
|
|
9616
|
+
sortField = listScheduleEventsRequest['sort_field'];
|
|
9617
|
+
order = listScheduleEventsRequest['order'];
|
|
9618
|
+
offset = listScheduleEventsRequest['offset'];
|
|
9619
|
+
limit = listScheduleEventsRequest['limit'];
|
|
9620
|
+
}
|
|
9621
|
+
}
|
|
9622
|
+
if (id !== null && id !== undefined) {
|
|
9623
|
+
localVarQueryParameter['id'] = id;
|
|
9624
|
+
}
|
|
9625
|
+
if (instanceId !== null && instanceId !== undefined) {
|
|
9626
|
+
localVarQueryParameter['instance_id'] = instanceId;
|
|
9627
|
+
}
|
|
9628
|
+
if (status !== null && status !== undefined) {
|
|
9629
|
+
localVarQueryParameter['status'] = status;
|
|
9630
|
+
}
|
|
9631
|
+
if (type !== null && type !== undefined) {
|
|
9632
|
+
localVarQueryParameter['type'] = type;
|
|
9633
|
+
}
|
|
9634
|
+
if (level !== null && level !== undefined) {
|
|
9635
|
+
localVarQueryParameter['level'] = level;
|
|
9636
|
+
}
|
|
9637
|
+
if (sortField !== null && sortField !== undefined) {
|
|
9638
|
+
localVarQueryParameter['sort_field'] = sortField;
|
|
9639
|
+
}
|
|
9640
|
+
if (order !== null && order !== undefined) {
|
|
9641
|
+
localVarQueryParameter['order'] = order;
|
|
9642
|
+
}
|
|
9643
|
+
if (offset !== null && offset !== undefined) {
|
|
9644
|
+
localVarQueryParameter['offset'] = offset;
|
|
9645
|
+
}
|
|
9646
|
+
if (limit !== null && limit !== undefined) {
|
|
9647
|
+
localVarQueryParameter['limit'] = limit;
|
|
9648
|
+
}
|
|
9649
|
+
options.queryParams = localVarQueryParameter;
|
|
9650
|
+
options.headers = localVarHeaderParameter;
|
|
9651
|
+
return options;
|
|
9652
|
+
},
|
|
9182
9653
|
/**
|
|
9183
9654
|
* 查询定时任务列表
|
|
9184
9655
|
*
|
|
@@ -10446,6 +10917,43 @@ const ParamCreater = function () {
|
|
|
10446
10917
|
options.headers = localVarHeaderParameter;
|
|
10447
10918
|
return options;
|
|
10448
10919
|
},
|
|
10920
|
+
/**
|
|
10921
|
+
* 重置自定义参数模板
|
|
10922
|
+
*
|
|
10923
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
10924
|
+
*/
|
|
10925
|
+
resetConfiguration(resetConfigurationRequest) {
|
|
10926
|
+
const options = {
|
|
10927
|
+
method: "PUT",
|
|
10928
|
+
url: "/v3/{project_id}/configurations/{config_id}/reset",
|
|
10929
|
+
contentType: "application/json",
|
|
10930
|
+
queryParams: {},
|
|
10931
|
+
pathParams: {},
|
|
10932
|
+
headers: {}
|
|
10933
|
+
};
|
|
10934
|
+
const localVarHeaderParameter = {};
|
|
10935
|
+
let configId;
|
|
10936
|
+
let xLanguage;
|
|
10937
|
+
if (resetConfigurationRequest !== null && resetConfigurationRequest !== undefined) {
|
|
10938
|
+
if (resetConfigurationRequest instanceof ResetConfigurationRequest_1.ResetConfigurationRequest) {
|
|
10939
|
+
configId = resetConfigurationRequest.configId;
|
|
10940
|
+
xLanguage = resetConfigurationRequest.xLanguage;
|
|
10941
|
+
}
|
|
10942
|
+
else {
|
|
10943
|
+
configId = resetConfigurationRequest['config_id'];
|
|
10944
|
+
xLanguage = resetConfigurationRequest['X-Language'];
|
|
10945
|
+
}
|
|
10946
|
+
}
|
|
10947
|
+
if (configId === null || configId === undefined) {
|
|
10948
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling resetConfiguration.');
|
|
10949
|
+
}
|
|
10950
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
10951
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
10952
|
+
}
|
|
10953
|
+
options.pathParams = { 'config_id': configId, };
|
|
10954
|
+
options.headers = localVarHeaderParameter;
|
|
10955
|
+
return options;
|
|
10956
|
+
},
|
|
10449
10957
|
/**
|
|
10450
10958
|
* 恢复到已有实例。
|
|
10451
10959
|
*
|
|
@@ -11908,6 +12416,37 @@ const ParamCreater = function () {
|
|
|
11908
12416
|
options.headers = localVarHeaderParameter;
|
|
11909
12417
|
return options;
|
|
11910
12418
|
},
|
|
12419
|
+
/**
|
|
12420
|
+
* 查询重建从机的状态
|
|
12421
|
+
*
|
|
12422
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12423
|
+
*/
|
|
12424
|
+
showRebuildSlaveStatus(showRebuildSlaveStatusRequest) {
|
|
12425
|
+
const options = {
|
|
12426
|
+
method: "GET",
|
|
12427
|
+
url: "/v3/{project_id}/instances/{instance_id}/rebuild",
|
|
12428
|
+
contentType: "application/json",
|
|
12429
|
+
queryParams: {},
|
|
12430
|
+
pathParams: {},
|
|
12431
|
+
headers: {}
|
|
12432
|
+
};
|
|
12433
|
+
const localVarHeaderParameter = {};
|
|
12434
|
+
let instanceId;
|
|
12435
|
+
if (showRebuildSlaveStatusRequest !== null && showRebuildSlaveStatusRequest !== undefined) {
|
|
12436
|
+
if (showRebuildSlaveStatusRequest instanceof ShowRebuildSlaveStatusRequest_1.ShowRebuildSlaveStatusRequest) {
|
|
12437
|
+
instanceId = showRebuildSlaveStatusRequest.instanceId;
|
|
12438
|
+
}
|
|
12439
|
+
else {
|
|
12440
|
+
instanceId = showRebuildSlaveStatusRequest['instance_id'];
|
|
12441
|
+
}
|
|
12442
|
+
}
|
|
12443
|
+
if (instanceId === null || instanceId === undefined) {
|
|
12444
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showRebuildSlaveStatus.');
|
|
12445
|
+
}
|
|
12446
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
12447
|
+
options.headers = localVarHeaderParameter;
|
|
12448
|
+
return options;
|
|
12449
|
+
},
|
|
11911
12450
|
/**
|
|
11912
12451
|
* 查询回收站的回收策略。
|
|
11913
12452
|
*
|
|
@@ -16168,6 +16707,44 @@ const ParamCreater = function () {
|
|
|
16168
16707
|
options.headers = localVarHeaderParameter;
|
|
16169
16708
|
return options;
|
|
16170
16709
|
},
|
|
16710
|
+
/**
|
|
16711
|
+
* 查询当前用户自动告警配置
|
|
16712
|
+
*
|
|
16713
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16714
|
+
*/
|
|
16715
|
+
showAutoCesAlarm(showAutoCesAlarmRequest) {
|
|
16716
|
+
const options = {
|
|
16717
|
+
method: "GET",
|
|
16718
|
+
url: "/v3/{project_id}/auto-ces-alarm",
|
|
16719
|
+
contentType: "application/json",
|
|
16720
|
+
queryParams: {},
|
|
16721
|
+
pathParams: {},
|
|
16722
|
+
headers: {}
|
|
16723
|
+
};
|
|
16724
|
+
const localVarHeaderParameter = {};
|
|
16725
|
+
const localVarQueryParameter = {};
|
|
16726
|
+
let engine;
|
|
16727
|
+
let xLanguage;
|
|
16728
|
+
if (showAutoCesAlarmRequest !== null && showAutoCesAlarmRequest !== undefined) {
|
|
16729
|
+
if (showAutoCesAlarmRequest instanceof ShowAutoCesAlarmRequest_1.ShowAutoCesAlarmRequest) {
|
|
16730
|
+
engine = showAutoCesAlarmRequest.engine;
|
|
16731
|
+
xLanguage = showAutoCesAlarmRequest.xLanguage;
|
|
16732
|
+
}
|
|
16733
|
+
else {
|
|
16734
|
+
engine = showAutoCesAlarmRequest['engine'];
|
|
16735
|
+
xLanguage = showAutoCesAlarmRequest['X-Language'];
|
|
16736
|
+
}
|
|
16737
|
+
}
|
|
16738
|
+
if (engine !== null && engine !== undefined) {
|
|
16739
|
+
localVarQueryParameter['engine'] = engine;
|
|
16740
|
+
}
|
|
16741
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16742
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16743
|
+
}
|
|
16744
|
+
options.queryParams = localVarQueryParameter;
|
|
16745
|
+
options.headers = localVarHeaderParameter;
|
|
16746
|
+
return options;
|
|
16747
|
+
},
|
|
16171
16748
|
/**
|
|
16172
16749
|
* 查询一键kill会话历史
|
|
16173
16750
|
*
|
|
@@ -16225,6 +16802,51 @@ const ParamCreater = function () {
|
|
|
16225
16802
|
options.headers = localVarHeaderParameter;
|
|
16226
16803
|
return options;
|
|
16227
16804
|
},
|
|
16805
|
+
/**
|
|
16806
|
+
* 查询一键kill会话实时统计信息
|
|
16807
|
+
*
|
|
16808
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16809
|
+
*/
|
|
16810
|
+
showIntelligentKillSessionStatistic(showIntelligentKillSessionStatisticRequest) {
|
|
16811
|
+
const options = {
|
|
16812
|
+
method: "GET",
|
|
16813
|
+
url: "/v3/{project_id}/instances/{instance_id}/ops/intelligent-kill-session/statistic",
|
|
16814
|
+
contentType: "application/json",
|
|
16815
|
+
queryParams: {},
|
|
16816
|
+
pathParams: {},
|
|
16817
|
+
headers: {}
|
|
16818
|
+
};
|
|
16819
|
+
const localVarHeaderParameter = {};
|
|
16820
|
+
const localVarQueryParameter = {};
|
|
16821
|
+
let instanceId;
|
|
16822
|
+
let xLanguage;
|
|
16823
|
+
let nodeId;
|
|
16824
|
+
if (showIntelligentKillSessionStatisticRequest !== null && showIntelligentKillSessionStatisticRequest !== undefined) {
|
|
16825
|
+
if (showIntelligentKillSessionStatisticRequest instanceof ShowIntelligentKillSessionStatisticRequest_1.ShowIntelligentKillSessionStatisticRequest) {
|
|
16826
|
+
instanceId = showIntelligentKillSessionStatisticRequest.instanceId;
|
|
16827
|
+
xLanguage = showIntelligentKillSessionStatisticRequest.xLanguage;
|
|
16828
|
+
nodeId = showIntelligentKillSessionStatisticRequest.nodeId;
|
|
16829
|
+
}
|
|
16830
|
+
else {
|
|
16831
|
+
instanceId = showIntelligentKillSessionStatisticRequest['instance_id'];
|
|
16832
|
+
xLanguage = showIntelligentKillSessionStatisticRequest['X-Language'];
|
|
16833
|
+
nodeId = showIntelligentKillSessionStatisticRequest['node_id'];
|
|
16834
|
+
}
|
|
16835
|
+
}
|
|
16836
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16837
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showIntelligentKillSessionStatistic.');
|
|
16838
|
+
}
|
|
16839
|
+
if (nodeId !== null && nodeId !== undefined) {
|
|
16840
|
+
localVarQueryParameter['node_id'] = nodeId;
|
|
16841
|
+
}
|
|
16842
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16843
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16844
|
+
}
|
|
16845
|
+
options.queryParams = localVarQueryParameter;
|
|
16846
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16847
|
+
options.headers = localVarHeaderParameter;
|
|
16848
|
+
return options;
|
|
16849
|
+
},
|
|
16228
16850
|
/**
|
|
16229
16851
|
* 授权数据库帐号。
|
|
16230
16852
|
*
|