@huaweicloud/huaweicloud-sdk-rds 3.1.176 → 3.1.177
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 +258 -0
- package/v3/RdsClient.d.ts.map +1 -1
- package/v3/RdsClient.js +575 -0
- package/v3/RdsClient.js.map +1 -1
- package/v3/model/BatchModifyPublicationRequest.d.ts +11 -0
- package/v3/model/BatchModifyPublicationRequest.d.ts.map +1 -0
- package/v3/model/BatchModifyPublicationRequest.js +24 -0
- package/v3/model/BatchModifyPublicationRequest.js.map +1 -0
- package/v3/model/BatchModifyPublicationResponse.d.ts +8 -0
- package/v3/model/BatchModifyPublicationResponse.d.ts.map +1 -0
- package/v3/model/BatchModifyPublicationResponse.js +15 -0
- package/v3/model/BatchModifyPublicationResponse.js.map +1 -0
- package/v3/model/BatchModifyPublicationsRequestBody.d.ts +13 -0
- package/v3/model/BatchModifyPublicationsRequestBody.d.ts.map +1 -0
- package/v3/model/BatchModifyPublicationsRequestBody.js +31 -0
- package/v3/model/BatchModifyPublicationsRequestBody.js.map +1 -0
- package/v3/model/CreateDistributionRequest.d.ts +11 -0
- package/v3/model/CreateDistributionRequest.d.ts.map +1 -0
- package/v3/model/CreateDistributionRequest.js +24 -0
- package/v3/model/CreateDistributionRequest.js.map +1 -0
- package/v3/model/CreateDistributionRequestBody.d.ts +8 -0
- package/v3/model/CreateDistributionRequestBody.d.ts.map +1 -0
- package/v3/model/CreateDistributionRequestBody.js +20 -0
- package/v3/model/CreateDistributionRequestBody.js.map +1 -0
- package/v3/model/CreateDistributionResponse.d.ts +9 -0
- package/v3/model/CreateDistributionResponse.d.ts.map +1 -0
- package/v3/model/CreateDistributionResponse.js +21 -0
- package/v3/model/CreateDistributionResponse.js.map +1 -0
- package/v3/model/CreatePublicationRequest.d.ts +11 -0
- package/v3/model/CreatePublicationRequest.d.ts.map +1 -0
- package/v3/model/CreatePublicationRequest.js +24 -0
- package/v3/model/CreatePublicationRequest.js.map +1 -0
- package/v3/model/CreatePublicationResponse.d.ts +9 -0
- package/v3/model/CreatePublicationResponse.d.ts.map +1 -0
- package/v3/model/CreatePublicationResponse.js +21 -0
- package/v3/model/CreatePublicationResponse.js.map +1 -0
- package/v3/model/CreatePublicationsRequestBody.d.ts +37 -0
- package/v3/model/CreatePublicationsRequestBody.d.ts.map +1 -0
- package/v3/model/CreatePublicationsRequestBody.js +88 -0
- package/v3/model/CreatePublicationsRequestBody.js.map +1 -0
- package/v3/model/GetInstancesNoIndexTablesRequest.d.ts +4 -0
- package/v3/model/GetInstancesNoIndexTablesRequest.d.ts.map +1 -1
- package/v3/model/GetInstancesNoIndexTablesRequest.js +8 -0
- package/v3/model/GetInstancesNoIndexTablesRequest.js.map +1 -1
- package/v3/model/GetInstancesNoIndexTablesResponse.d.ts +3 -0
- package/v3/model/GetInstancesNoIndexTablesResponse.d.ts.map +1 -1
- package/v3/model/GetInstancesNoIndexTablesResponse.js +4 -0
- package/v3/model/GetInstancesNoIndexTablesResponse.js.map +1 -1
- package/v3/model/ListRemoteDbRequest.d.ts +11 -0
- package/v3/model/ListRemoteDbRequest.d.ts.map +1 -0
- package/v3/model/ListRemoteDbRequest.js +24 -0
- package/v3/model/ListRemoteDbRequest.js.map +1 -0
- package/v3/model/ListRemoteDbRequestBody.d.ts +24 -0
- package/v3/model/ListRemoteDbRequestBody.d.ts.map +1 -0
- package/v3/model/ListRemoteDbRequestBody.js +61 -0
- package/v3/model/ListRemoteDbRequestBody.js.map +1 -0
- package/v3/model/ListRemoteDbResponse.d.ts +12 -0
- package/v3/model/ListRemoteDbResponse.d.ts.map +1 -0
- package/v3/model/ListRemoteDbResponse.js +25 -0
- package/v3/model/ListRemoteDbResponse.js.map +1 -0
- package/v3/model/ListReplicationErrorsRequest.d.ts +16 -0
- package/v3/model/ListReplicationErrorsRequest.d.ts.map +1 -0
- package/v3/model/ListReplicationErrorsRequest.js +38 -0
- package/v3/model/ListReplicationErrorsRequest.js.map +1 -0
- package/v3/model/ListReplicationErrorsResponse.d.ts +12 -0
- package/v3/model/ListReplicationErrorsResponse.d.ts.map +1 -0
- package/v3/model/ListReplicationErrorsResponse.js +25 -0
- package/v3/model/ListReplicationErrorsResponse.js.map +1 -0
- package/v3/model/ListReplicationErrorsResult.d.ts +24 -0
- package/v3/model/ListReplicationErrorsResult.d.ts.map +1 -0
- package/v3/model/ListReplicationErrorsResult.js +59 -0
- package/v3/model/ListReplicationErrorsResult.js.map +1 -0
- package/v3/model/ModifyDbAgentJobRequest.d.ts +19 -0
- package/v3/model/ModifyDbAgentJobRequest.d.ts.map +1 -0
- package/v3/model/ModifyDbAgentJobRequest.js +45 -0
- package/v3/model/ModifyDbAgentJobRequest.js.map +1 -0
- package/v3/model/ModifyDbAgentJobRequestBody.d.ts +8 -0
- package/v3/model/ModifyDbAgentJobRequestBody.d.ts.map +1 -0
- package/v3/model/ModifyDbAgentJobRequestBody.js +20 -0
- package/v3/model/ModifyDbAgentJobRequestBody.js.map +1 -0
- package/v3/model/ModifyDbAgentJobResponse.d.ts +45 -0
- package/v3/model/ModifyDbAgentJobResponse.d.ts.map +1 -0
- package/v3/model/ModifyDbAgentJobResponse.js +111 -0
- package/v3/model/ModifyDbAgentJobResponse.js.map +1 -0
- package/v3/model/RestartDbAgentJobRequest.d.ts +16 -0
- package/v3/model/RestartDbAgentJobRequest.d.ts.map +1 -0
- package/v3/model/RestartDbAgentJobRequest.js +41 -0
- package/v3/model/RestartDbAgentJobRequest.js.map +1 -0
- package/v3/model/RestartDbAgentJobResponse.d.ts +5 -0
- package/v3/model/RestartDbAgentJobResponse.d.ts.map +1 -0
- package/v3/model/RestartDbAgentJobResponse.js +11 -0
- package/v3/model/RestartDbAgentJobResponse.js.map +1 -0
- package/v3/model/SwitchDbAgentJobRequest.d.ts +16 -0
- package/v3/model/SwitchDbAgentJobRequest.d.ts.map +1 -0
- package/v3/model/SwitchDbAgentJobRequest.js +41 -0
- package/v3/model/SwitchDbAgentJobRequest.js.map +1 -0
- package/v3/model/SwitchDbAgentJobResponse.d.ts +5 -0
- package/v3/model/SwitchDbAgentJobResponse.d.ts.map +1 -0
- package/v3/model/SwitchDbAgentJobResponse.js +11 -0
- package/v3/model/SwitchDbAgentJobResponse.js.map +1 -0
- package/v3/model/Table.d.ts +16 -0
- package/v3/model/Table.d.ts.map +1 -0
- package/v3/model/Table.js +39 -0
- package/v3/model/Table.js.map +1 -0
- package/v3/model/UpdateStatisticsRequest.d.ts +15 -0
- package/v3/model/UpdateStatisticsRequest.d.ts.map +1 -0
- package/v3/model/UpdateStatisticsRequest.js +34 -0
- package/v3/model/UpdateStatisticsRequest.js.map +1 -0
- package/v3/model/UpdateStatisticsRequestBody.d.ts +8 -0
- package/v3/model/UpdateStatisticsRequestBody.d.ts.map +1 -0
- package/v3/model/UpdateStatisticsRequestBody.js +19 -0
- package/v3/model/UpdateStatisticsRequestBody.js.map +1 -0
- package/v3/model/UpdateStatisticsResponse.d.ts +7 -0
- package/v3/model/UpdateStatisticsResponse.d.ts.map +1 -0
- package/v3/model/UpdateStatisticsResponse.js +15 -0
- package/v3/model/UpdateStatisticsResponse.js.map +1 -0
- package/v3/public-api.d.ts +26 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +26 -0
- package/v3/public-api.js.map +1 -1
package/v3/RdsClient.js
CHANGED
|
@@ -10,6 +10,7 @@ const ApplyConfigurationAsyncRequest_1 = require("./model/ApplyConfigurationAsyn
|
|
|
10
10
|
const AttachEipRequest_1 = require("./model/AttachEipRequest");
|
|
11
11
|
const BatchAddMsdtcsRequest_1 = require("./model/BatchAddMsdtcsRequest");
|
|
12
12
|
const BatchDeleteManualBackupRequest_1 = require("./model/BatchDeleteManualBackupRequest");
|
|
13
|
+
const BatchModifyPublicationRequest_1 = require("./model/BatchModifyPublicationRequest");
|
|
13
14
|
const BatchModifySubscriptionRequest_1 = require("./model/BatchModifySubscriptionRequest");
|
|
14
15
|
const BatchRestoreDatabaseRequest_1 = require("./model/BatchRestoreDatabaseRequest");
|
|
15
16
|
const BatchRestorePostgreSqlTablesRequest_1 = require("./model/BatchRestorePostgreSqlTablesRequest");
|
|
@@ -30,6 +31,7 @@ const CopyDatabaseRequest_1 = require("./model/CopyDatabaseRequest");
|
|
|
30
31
|
const CreateConfigurationRequest_1 = require("./model/CreateConfigurationRequest");
|
|
31
32
|
const CreateDatabaseRequest_1 = require("./model/CreateDatabaseRequest");
|
|
32
33
|
const CreateDbUserRequest_1 = require("./model/CreateDbUserRequest");
|
|
34
|
+
const CreateDistributionRequest_1 = require("./model/CreateDistributionRequest");
|
|
33
35
|
const CreateDnsNameRequest_1 = require("./model/CreateDnsNameRequest");
|
|
34
36
|
const CreateInstanceIam5Request_1 = require("./model/CreateInstanceIam5Request");
|
|
35
37
|
const CreateInstanceRequest_1 = require("./model/CreateInstanceRequest");
|
|
@@ -39,6 +41,7 @@ const CreatePostgresqlDatabaseRequest_1 = require("./model/CreatePostgresqlDatab
|
|
|
39
41
|
const CreatePostgresqlDatabaseSchemaRequest_1 = require("./model/CreatePostgresqlDatabaseSchemaRequest");
|
|
40
42
|
const CreatePostgresqlDbUserRequest_1 = require("./model/CreatePostgresqlDbUserRequest");
|
|
41
43
|
const CreatePostgresqlExtensionRequest_1 = require("./model/CreatePostgresqlExtensionRequest");
|
|
44
|
+
const CreatePublicationRequest_1 = require("./model/CreatePublicationRequest");
|
|
42
45
|
const CreateRdSforMySqlProxyRequest_1 = require("./model/CreateRdSforMySqlProxyRequest");
|
|
43
46
|
const CreateRestoreInstanceRequest_1 = require("./model/CreateRestoreInstanceRequest");
|
|
44
47
|
const CreateSqlLimitRequest_1 = require("./model/CreateSqlLimitRequest");
|
|
@@ -134,6 +137,8 @@ const ListRdSforMySqlProxyRequest_1 = require("./model/ListRdSforMySqlProxyReque
|
|
|
134
137
|
const ListRdSforMysqlProxyFlavorsRequest_1 = require("./model/ListRdSforMysqlProxyFlavorsRequest");
|
|
135
138
|
const ListReadOnlyReplayDatabaseRequest_1 = require("./model/ListReadOnlyReplayDatabaseRequest");
|
|
136
139
|
const ListRecycleInstancesRequest_1 = require("./model/ListRecycleInstancesRequest");
|
|
140
|
+
const ListRemoteDbRequest_1 = require("./model/ListRemoteDbRequest");
|
|
141
|
+
const ListReplicationErrorsRequest_1 = require("./model/ListReplicationErrorsRequest");
|
|
137
142
|
const ListReplicationProfilesRequest_1 = require("./model/ListReplicationProfilesRequest");
|
|
138
143
|
const ListRestoreTimesRequest_1 = require("./model/ListRestoreTimesRequest");
|
|
139
144
|
const ListScheduleTasksRequest_1 = require("./model/ListScheduleTasksRequest");
|
|
@@ -162,6 +167,7 @@ const ListVolumeInfoRequest_1 = require("./model/ListVolumeInfoRequest");
|
|
|
162
167
|
const ListXellogFilesRequest_1 = require("./model/ListXellogFilesRequest");
|
|
163
168
|
const MigrateFollowerRequest_1 = require("./model/MigrateFollowerRequest");
|
|
164
169
|
const ModifyCollationRequest_1 = require("./model/ModifyCollationRequest");
|
|
170
|
+
const ModifyDbAgentJobRequest_1 = require("./model/ModifyDbAgentJobRequest");
|
|
165
171
|
const ModifyPostgresqlHbaConfRequest_1 = require("./model/ModifyPostgresqlHbaConfRequest");
|
|
166
172
|
const ModifyPublicationRequest_1 = require("./model/ModifyPublicationRequest");
|
|
167
173
|
const ModifyRdSforMySqlProxyRouteModeRequest_1 = require("./model/ModifyRdSforMySqlProxyRouteModeRequest");
|
|
@@ -170,6 +176,7 @@ const RefreshPublicationSnapshotRequest_1 = require("./model/RefreshPublicationS
|
|
|
170
176
|
const RefreshSubscriptionRequest_1 = require("./model/RefreshSubscriptionRequest");
|
|
171
177
|
const ResetPwdRequest_1 = require("./model/ResetPwdRequest");
|
|
172
178
|
const ResetViewSqlStatisticsRequest_1 = require("./model/ResetViewSqlStatisticsRequest");
|
|
179
|
+
const RestartDbAgentJobRequest_1 = require("./model/RestartDbAgentJobRequest");
|
|
173
180
|
const RestoreExistInstanceRequest_1 = require("./model/RestoreExistInstanceRequest");
|
|
174
181
|
const RestoreLogReplayDatabaseRequest_1 = require("./model/RestoreLogReplayDatabaseRequest");
|
|
175
182
|
const RestoreTablesNewRequest_1 = require("./model/RestoreTablesNewRequest");
|
|
@@ -243,6 +250,7 @@ const StartupInstanceRequest_1 = require("./model/StartupInstanceRequest");
|
|
|
243
250
|
const StopBackupRequest_1 = require("./model/StopBackupRequest");
|
|
244
251
|
const StopDatabaseProxyRequest_1 = require("./model/StopDatabaseProxyRequest");
|
|
245
252
|
const StopInstanceRequest_1 = require("./model/StopInstanceRequest");
|
|
253
|
+
const SwitchDbAgentJobRequest_1 = require("./model/SwitchDbAgentJobRequest");
|
|
246
254
|
const SwitchLogReplayRequest_1 = require("./model/SwitchLogReplayRequest");
|
|
247
255
|
const SwitchSqlLimitRequest_1 = require("./model/SwitchSqlLimitRequest");
|
|
248
256
|
const SwitchSslRequest_1 = require("./model/SwitchSslRequest");
|
|
@@ -269,6 +277,7 @@ const UpdatePostgresqlInstanceAliasRequest_1 = require("./model/UpdatePostgresql
|
|
|
269
277
|
const UpdatePostgresqlParameterValueRequest_1 = require("./model/UpdatePostgresqlParameterValueRequest");
|
|
270
278
|
const UpdateReadWeightRequest_1 = require("./model/UpdateReadWeightRequest");
|
|
271
279
|
const UpdateSqlLimitRequest_1 = require("./model/UpdateSqlLimitRequest");
|
|
280
|
+
const UpdateStatisticsRequest_1 = require("./model/UpdateStatisticsRequest");
|
|
272
281
|
const UpdateTdeStatusRequest_1 = require("./model/UpdateTdeStatusRequest");
|
|
273
282
|
const UpdateToPeriodRequest_1 = require("./model/UpdateToPeriodRequest");
|
|
274
283
|
const UpgradeDbMajorVersionPreCheckRequest_1 = require("./model/UpgradeDbMajorVersionPreCheckRequest");
|
|
@@ -4500,6 +4509,8 @@ class RdsClient {
|
|
|
4500
4509
|
* @param {string} instanceId 实例ID
|
|
4501
4510
|
* @param {boolean} newest 指定查询是否应侧重于检索最新或最新的特殊表。
|
|
4502
4511
|
* @param {string} tableType 表格类型。
|
|
4512
|
+
* @param {string} [offset] 索引位置,偏移量。
|
|
4513
|
+
* @param {string} [limit] 查询记录数。
|
|
4503
4514
|
* @param {*} [options] Override http request option.
|
|
4504
4515
|
* @throws {RequiredError}
|
|
4505
4516
|
*/
|
|
@@ -4564,6 +4575,23 @@ class RdsClient {
|
|
|
4564
4575
|
options['responseHeaders'] = [''];
|
|
4565
4576
|
return this.hcClient.sendRequest(options);
|
|
4566
4577
|
}
|
|
4578
|
+
/**
|
|
4579
|
+
* 批量修改发布。只支持批量修改快照策略
|
|
4580
|
+
*
|
|
4581
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4582
|
+
*
|
|
4583
|
+
* @summary 批量修改发布
|
|
4584
|
+
* @param {string} instanceId 实例ID
|
|
4585
|
+
* @param {BatchModifyPublicationsRequestBody} batchModifyPublicationRequestBody 批量修改发布请求体。
|
|
4586
|
+
* @param {*} [options] Override http request option.
|
|
4587
|
+
* @throws {RequiredError}
|
|
4588
|
+
*/
|
|
4589
|
+
batchModifyPublication(batchModifyPublicationRequest) {
|
|
4590
|
+
const options = (0, exports.ParamCreater)().batchModifyPublication(batchModifyPublicationRequest);
|
|
4591
|
+
// @ts-ignore
|
|
4592
|
+
options['responseHeaders'] = [''];
|
|
4593
|
+
return this.hcClient.sendRequest(options);
|
|
4594
|
+
}
|
|
4567
4595
|
/**
|
|
4568
4596
|
* 批量修改订阅
|
|
4569
4597
|
*
|
|
@@ -4635,6 +4663,40 @@ class RdsClient {
|
|
|
4635
4663
|
options['responseHeaders'] = [''];
|
|
4636
4664
|
return this.hcClient.sendRequest(options);
|
|
4637
4665
|
}
|
|
4666
|
+
/**
|
|
4667
|
+
* 给当前实例配置分发服务器
|
|
4668
|
+
*
|
|
4669
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4670
|
+
*
|
|
4671
|
+
* @summary 给当前实例配置分发服务器
|
|
4672
|
+
* @param {string} instanceId 实例ID
|
|
4673
|
+
* @param {CreateDistributionRequestBody} createDistributionRequestBody 给当前实例配置分发服务器请求体。
|
|
4674
|
+
* @param {*} [options] Override http request option.
|
|
4675
|
+
* @throws {RequiredError}
|
|
4676
|
+
*/
|
|
4677
|
+
createDistribution(createDistributionRequest) {
|
|
4678
|
+
const options = (0, exports.ParamCreater)().createDistribution(createDistributionRequest);
|
|
4679
|
+
// @ts-ignore
|
|
4680
|
+
options['responseHeaders'] = [''];
|
|
4681
|
+
return this.hcClient.sendRequest(options);
|
|
4682
|
+
}
|
|
4683
|
+
/**
|
|
4684
|
+
* 创建发布
|
|
4685
|
+
*
|
|
4686
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4687
|
+
*
|
|
4688
|
+
* @summary 创建发布
|
|
4689
|
+
* @param {string} instanceId 实例ID
|
|
4690
|
+
* @param {CreatePublicationsRequestBody} createPublicationRequestBody 创建发布请求体。
|
|
4691
|
+
* @param {*} [options] Override http request option.
|
|
4692
|
+
* @throws {RequiredError}
|
|
4693
|
+
*/
|
|
4694
|
+
createPublication(createPublicationRequest) {
|
|
4695
|
+
const options = (0, exports.ParamCreater)().createPublication(createPublicationRequest);
|
|
4696
|
+
// @ts-ignore
|
|
4697
|
+
options['responseHeaders'] = [''];
|
|
4698
|
+
return this.hcClient.sendRequest(options);
|
|
4699
|
+
}
|
|
4638
4700
|
/**
|
|
4639
4701
|
* 创建数据库。
|
|
4640
4702
|
*
|
|
@@ -5028,6 +5090,42 @@ class RdsClient {
|
|
|
5028
5090
|
options['responseHeaders'] = [''];
|
|
5029
5091
|
return this.hcClient.sendRequest(options);
|
|
5030
5092
|
}
|
|
5093
|
+
/**
|
|
5094
|
+
* 查询远程SQL Server数据库列表
|
|
5095
|
+
*
|
|
5096
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5097
|
+
*
|
|
5098
|
+
* @summary 查询远程SQL Server数据库列表
|
|
5099
|
+
* @param {string} instanceId 实例ID
|
|
5100
|
+
* @param {ListRemoteDbRequestBody} [listRemoteDbRequestBody] 实例ID
|
|
5101
|
+
* @param {*} [options] Override http request option.
|
|
5102
|
+
* @throws {RequiredError}
|
|
5103
|
+
*/
|
|
5104
|
+
listRemoteDb(listRemoteDbRequest) {
|
|
5105
|
+
const options = (0, exports.ParamCreater)().listRemoteDb(listRemoteDbRequest);
|
|
5106
|
+
// @ts-ignore
|
|
5107
|
+
options['responseHeaders'] = [''];
|
|
5108
|
+
return this.hcClient.sendRequest(options);
|
|
5109
|
+
}
|
|
5110
|
+
/**
|
|
5111
|
+
* 查询发布订阅报错列表
|
|
5112
|
+
*
|
|
5113
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5114
|
+
*
|
|
5115
|
+
* @summary 查询发布订阅报错列表
|
|
5116
|
+
* @param {string} instanceId 实例ID。
|
|
5117
|
+
* @param {string} [subscriptionId] 订阅id。 若该参数为空,则查询当前实例作为分发服务器时,分发下的所有报错信息。 若该参数不为空,则查询该订阅的所有报错信息。
|
|
5118
|
+
* @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
5119
|
+
* @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
|
5120
|
+
* @param {*} [options] Override http request option.
|
|
5121
|
+
* @throws {RequiredError}
|
|
5122
|
+
*/
|
|
5123
|
+
listReplicationErrors(listReplicationErrorsRequest) {
|
|
5124
|
+
const options = (0, exports.ParamCreater)().listReplicationErrors(listReplicationErrorsRequest);
|
|
5125
|
+
// @ts-ignore
|
|
5126
|
+
options['responseHeaders'] = [''];
|
|
5127
|
+
return this.hcClient.sendRequest(options);
|
|
5128
|
+
}
|
|
5031
5129
|
/**
|
|
5032
5130
|
* 查询发布订阅配置文件列表。
|
|
5033
5131
|
*
|
|
@@ -5150,6 +5248,25 @@ class RdsClient {
|
|
|
5150
5248
|
options['responseHeaders'] = [''];
|
|
5151
5249
|
return this.hcClient.sendRequest(options);
|
|
5152
5250
|
}
|
|
5251
|
+
/**
|
|
5252
|
+
* 修改数据库代理作业。
|
|
5253
|
+
*
|
|
5254
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5255
|
+
*
|
|
5256
|
+
* @summary 修改数据库代理作业
|
|
5257
|
+
* @param {string} instanceId 实例ID
|
|
5258
|
+
* @param {string} jobId 作业ID
|
|
5259
|
+
* @param {ModifyDbAgentJobRequestBody} modifyDbAgentJobRequestBody 修改数据库代理作业请求体。
|
|
5260
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
5261
|
+
* @param {*} [options] Override http request option.
|
|
5262
|
+
* @throws {RequiredError}
|
|
5263
|
+
*/
|
|
5264
|
+
modifyDbAgentJob(modifyDbAgentJobRequest) {
|
|
5265
|
+
const options = (0, exports.ParamCreater)().modifyDbAgentJob(modifyDbAgentJobRequest);
|
|
5266
|
+
// @ts-ignore
|
|
5267
|
+
options['responseHeaders'] = [''];
|
|
5268
|
+
return this.hcClient.sendRequest(options);
|
|
5269
|
+
}
|
|
5153
5270
|
/**
|
|
5154
5271
|
* 修改发布
|
|
5155
5272
|
*
|
|
@@ -5205,6 +5322,24 @@ class RdsClient {
|
|
|
5205
5322
|
options['responseHeaders'] = [''];
|
|
5206
5323
|
return this.hcClient.sendRequest(options);
|
|
5207
5324
|
}
|
|
5325
|
+
/**
|
|
5326
|
+
* 重启数据库代理作业。
|
|
5327
|
+
*
|
|
5328
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5329
|
+
*
|
|
5330
|
+
* @summary 重启数据库代理作业
|
|
5331
|
+
* @param {string} instanceId 实例ID
|
|
5332
|
+
* @param {string} jobId 作业ID
|
|
5333
|
+
* @param {string} [xLanguage] 语言。
|
|
5334
|
+
* @param {*} [options] Override http request option.
|
|
5335
|
+
* @throws {RequiredError}
|
|
5336
|
+
*/
|
|
5337
|
+
restartDbAgentJob(restartDbAgentJobRequest) {
|
|
5338
|
+
const options = (0, exports.ParamCreater)().restartDbAgentJob(restartDbAgentJobRequest);
|
|
5339
|
+
// @ts-ignore
|
|
5340
|
+
options['responseHeaders'] = [''];
|
|
5341
|
+
return this.hcClient.sendRequest(options);
|
|
5342
|
+
}
|
|
5208
5343
|
/**
|
|
5209
5344
|
* 解除数据库帐号权限。
|
|
5210
5345
|
*
|
|
@@ -5257,6 +5392,24 @@ class RdsClient {
|
|
|
5257
5392
|
options['responseHeaders'] = [''];
|
|
5258
5393
|
return this.hcClient.sendRequest(options);
|
|
5259
5394
|
}
|
|
5395
|
+
/**
|
|
5396
|
+
* 禁用启动切换数据库代理作业。
|
|
5397
|
+
*
|
|
5398
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5399
|
+
*
|
|
5400
|
+
* @summary 禁用启动切换数据库代理作业
|
|
5401
|
+
* @param {string} instanceId 实例ID
|
|
5402
|
+
* @param {string} jobId 作业ID
|
|
5403
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
5404
|
+
* @param {*} [options] Override http request option.
|
|
5405
|
+
* @throws {RequiredError}
|
|
5406
|
+
*/
|
|
5407
|
+
switchDbAgentJob(switchDbAgentJobRequest) {
|
|
5408
|
+
const options = (0, exports.ParamCreater)().switchDbAgentJob(switchDbAgentJobRequest);
|
|
5409
|
+
// @ts-ignore
|
|
5410
|
+
options['responseHeaders'] = [''];
|
|
5411
|
+
return this.hcClient.sendRequest(options);
|
|
5412
|
+
}
|
|
5260
5413
|
/**
|
|
5261
5414
|
* 同步发布订阅元数据。
|
|
5262
5415
|
*
|
|
@@ -5274,6 +5427,24 @@ class RdsClient {
|
|
|
5274
5427
|
options['responseHeaders'] = [''];
|
|
5275
5428
|
return this.hcClient.sendRequest(options);
|
|
5276
5429
|
}
|
|
5430
|
+
/**
|
|
5431
|
+
* 更新统计信息
|
|
5432
|
+
*
|
|
5433
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5434
|
+
*
|
|
5435
|
+
* @summary 更新统计信息
|
|
5436
|
+
* @param {string} instanceId 实例ID
|
|
5437
|
+
* @param {UpdateStatisticsRequestBody} updateStatisticsRequestBody 更新统计信息
|
|
5438
|
+
* @param {string} [xLanguage] 语言
|
|
5439
|
+
* @param {*} [options] Override http request option.
|
|
5440
|
+
* @throws {RequiredError}
|
|
5441
|
+
*/
|
|
5442
|
+
updateStatistics(updateStatisticsRequest) {
|
|
5443
|
+
const options = (0, exports.ParamCreater)().updateStatistics(updateStatisticsRequest);
|
|
5444
|
+
// @ts-ignore
|
|
5445
|
+
options['responseHeaders'] = [''];
|
|
5446
|
+
return this.hcClient.sendRequest(options);
|
|
5447
|
+
}
|
|
5277
5448
|
/**
|
|
5278
5449
|
* RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
|
|
5279
5450
|
*
|
|
@@ -15953,16 +16124,22 @@ const ParamCreater = function () {
|
|
|
15953
16124
|
let instanceId;
|
|
15954
16125
|
let newest;
|
|
15955
16126
|
let tableType;
|
|
16127
|
+
let offset;
|
|
16128
|
+
let limit;
|
|
15956
16129
|
if (getInstancesNoIndexTablesRequest !== null && getInstancesNoIndexTablesRequest !== undefined) {
|
|
15957
16130
|
if (getInstancesNoIndexTablesRequest instanceof GetInstancesNoIndexTablesRequest_1.GetInstancesNoIndexTablesRequest) {
|
|
15958
16131
|
instanceId = getInstancesNoIndexTablesRequest.instanceId;
|
|
15959
16132
|
newest = getInstancesNoIndexTablesRequest.newest;
|
|
15960
16133
|
tableType = getInstancesNoIndexTablesRequest.tableType;
|
|
16134
|
+
offset = getInstancesNoIndexTablesRequest.offset;
|
|
16135
|
+
limit = getInstancesNoIndexTablesRequest.limit;
|
|
15961
16136
|
}
|
|
15962
16137
|
else {
|
|
15963
16138
|
instanceId = getInstancesNoIndexTablesRequest['instance_id'];
|
|
15964
16139
|
newest = getInstancesNoIndexTablesRequest['newest'];
|
|
15965
16140
|
tableType = getInstancesNoIndexTablesRequest['table_type'];
|
|
16141
|
+
offset = getInstancesNoIndexTablesRequest['offset'];
|
|
16142
|
+
limit = getInstancesNoIndexTablesRequest['limit'];
|
|
15966
16143
|
}
|
|
15967
16144
|
}
|
|
15968
16145
|
if (instanceId === null || instanceId === undefined) {
|
|
@@ -15980,6 +16157,12 @@ const ParamCreater = function () {
|
|
|
15980
16157
|
if (tableType !== null && tableType !== undefined) {
|
|
15981
16158
|
localVarQueryParameter['table_type'] = tableType;
|
|
15982
16159
|
}
|
|
16160
|
+
if (offset !== null && offset !== undefined) {
|
|
16161
|
+
localVarQueryParameter['offset'] = offset;
|
|
16162
|
+
}
|
|
16163
|
+
if (limit !== null && limit !== undefined) {
|
|
16164
|
+
localVarQueryParameter['limit'] = limit;
|
|
16165
|
+
}
|
|
15983
16166
|
options.queryParams = localVarQueryParameter;
|
|
15984
16167
|
options.pathParams = { 'instance_id': instanceId, };
|
|
15985
16168
|
options.headers = localVarHeaderParameter;
|
|
@@ -16128,6 +16311,46 @@ const ParamCreater = function () {
|
|
|
16128
16311
|
options.headers = localVarHeaderParameter;
|
|
16129
16312
|
return options;
|
|
16130
16313
|
},
|
|
16314
|
+
/**
|
|
16315
|
+
* 批量修改发布。只支持批量修改快照策略
|
|
16316
|
+
*
|
|
16317
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16318
|
+
*/
|
|
16319
|
+
batchModifyPublication(batchModifyPublicationRequest) {
|
|
16320
|
+
const options = {
|
|
16321
|
+
method: "PUT",
|
|
16322
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/publications",
|
|
16323
|
+
contentType: "application/json",
|
|
16324
|
+
queryParams: {},
|
|
16325
|
+
pathParams: {},
|
|
16326
|
+
headers: {},
|
|
16327
|
+
data: {}
|
|
16328
|
+
};
|
|
16329
|
+
const localVarHeaderParameter = {};
|
|
16330
|
+
let body;
|
|
16331
|
+
let instanceId;
|
|
16332
|
+
if (batchModifyPublicationRequest !== null && batchModifyPublicationRequest !== undefined) {
|
|
16333
|
+
if (batchModifyPublicationRequest instanceof BatchModifyPublicationRequest_1.BatchModifyPublicationRequest) {
|
|
16334
|
+
instanceId = batchModifyPublicationRequest.instanceId;
|
|
16335
|
+
body = batchModifyPublicationRequest.body;
|
|
16336
|
+
}
|
|
16337
|
+
else {
|
|
16338
|
+
instanceId = batchModifyPublicationRequest['instance_id'];
|
|
16339
|
+
body = batchModifyPublicationRequest['body'];
|
|
16340
|
+
}
|
|
16341
|
+
}
|
|
16342
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16343
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling batchModifyPublication.');
|
|
16344
|
+
}
|
|
16345
|
+
if (body === null || body === undefined) {
|
|
16346
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16347
|
+
}
|
|
16348
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16349
|
+
options.data = body !== undefined ? body : {};
|
|
16350
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16351
|
+
options.headers = localVarHeaderParameter;
|
|
16352
|
+
return options;
|
|
16353
|
+
},
|
|
16131
16354
|
/**
|
|
16132
16355
|
* 批量修改订阅
|
|
16133
16356
|
*
|
|
@@ -16300,6 +16523,86 @@ const ParamCreater = function () {
|
|
|
16300
16523
|
options.headers = localVarHeaderParameter;
|
|
16301
16524
|
return options;
|
|
16302
16525
|
},
|
|
16526
|
+
/**
|
|
16527
|
+
* 给当前实例配置分发服务器
|
|
16528
|
+
*
|
|
16529
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16530
|
+
*/
|
|
16531
|
+
createDistribution(createDistributionRequest) {
|
|
16532
|
+
const options = {
|
|
16533
|
+
method: "POST",
|
|
16534
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/distribution",
|
|
16535
|
+
contentType: "application/json",
|
|
16536
|
+
queryParams: {},
|
|
16537
|
+
pathParams: {},
|
|
16538
|
+
headers: {},
|
|
16539
|
+
data: {}
|
|
16540
|
+
};
|
|
16541
|
+
const localVarHeaderParameter = {};
|
|
16542
|
+
let body;
|
|
16543
|
+
let instanceId;
|
|
16544
|
+
if (createDistributionRequest !== null && createDistributionRequest !== undefined) {
|
|
16545
|
+
if (createDistributionRequest instanceof CreateDistributionRequest_1.CreateDistributionRequest) {
|
|
16546
|
+
instanceId = createDistributionRequest.instanceId;
|
|
16547
|
+
body = createDistributionRequest.body;
|
|
16548
|
+
}
|
|
16549
|
+
else {
|
|
16550
|
+
instanceId = createDistributionRequest['instance_id'];
|
|
16551
|
+
body = createDistributionRequest['body'];
|
|
16552
|
+
}
|
|
16553
|
+
}
|
|
16554
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16555
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createDistribution.');
|
|
16556
|
+
}
|
|
16557
|
+
if (body === null || body === undefined) {
|
|
16558
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16559
|
+
}
|
|
16560
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16561
|
+
options.data = body !== undefined ? body : {};
|
|
16562
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16563
|
+
options.headers = localVarHeaderParameter;
|
|
16564
|
+
return options;
|
|
16565
|
+
},
|
|
16566
|
+
/**
|
|
16567
|
+
* 创建发布
|
|
16568
|
+
*
|
|
16569
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16570
|
+
*/
|
|
16571
|
+
createPublication(createPublicationRequest) {
|
|
16572
|
+
const options = {
|
|
16573
|
+
method: "POST",
|
|
16574
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/publications",
|
|
16575
|
+
contentType: "application/json",
|
|
16576
|
+
queryParams: {},
|
|
16577
|
+
pathParams: {},
|
|
16578
|
+
headers: {},
|
|
16579
|
+
data: {}
|
|
16580
|
+
};
|
|
16581
|
+
const localVarHeaderParameter = {};
|
|
16582
|
+
let body;
|
|
16583
|
+
let instanceId;
|
|
16584
|
+
if (createPublicationRequest !== null && createPublicationRequest !== undefined) {
|
|
16585
|
+
if (createPublicationRequest instanceof CreatePublicationRequest_1.CreatePublicationRequest) {
|
|
16586
|
+
instanceId = createPublicationRequest.instanceId;
|
|
16587
|
+
body = createPublicationRequest.body;
|
|
16588
|
+
}
|
|
16589
|
+
else {
|
|
16590
|
+
instanceId = createPublicationRequest['instance_id'];
|
|
16591
|
+
body = createPublicationRequest['body'];
|
|
16592
|
+
}
|
|
16593
|
+
}
|
|
16594
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16595
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createPublication.');
|
|
16596
|
+
}
|
|
16597
|
+
if (body === null || body === undefined) {
|
|
16598
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16599
|
+
}
|
|
16600
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16601
|
+
options.data = body !== undefined ? body : {};
|
|
16602
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16603
|
+
options.headers = localVarHeaderParameter;
|
|
16604
|
+
return options;
|
|
16605
|
+
},
|
|
16303
16606
|
/**
|
|
16304
16607
|
* 创建数据库。
|
|
16305
16608
|
*
|
|
@@ -17337,6 +17640,94 @@ const ParamCreater = function () {
|
|
|
17337
17640
|
options.headers = localVarHeaderParameter;
|
|
17338
17641
|
return options;
|
|
17339
17642
|
},
|
|
17643
|
+
/**
|
|
17644
|
+
* 查询远程SQL Server数据库列表
|
|
17645
|
+
*
|
|
17646
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
17647
|
+
*/
|
|
17648
|
+
listRemoteDb(listRemoteDbRequest) {
|
|
17649
|
+
const options = {
|
|
17650
|
+
method: "POST",
|
|
17651
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/remote-databases",
|
|
17652
|
+
contentType: "application/json",
|
|
17653
|
+
queryParams: {},
|
|
17654
|
+
pathParams: {},
|
|
17655
|
+
headers: {},
|
|
17656
|
+
data: {}
|
|
17657
|
+
};
|
|
17658
|
+
const localVarHeaderParameter = {};
|
|
17659
|
+
let body;
|
|
17660
|
+
let instanceId;
|
|
17661
|
+
if (listRemoteDbRequest !== null && listRemoteDbRequest !== undefined) {
|
|
17662
|
+
if (listRemoteDbRequest instanceof ListRemoteDbRequest_1.ListRemoteDbRequest) {
|
|
17663
|
+
instanceId = listRemoteDbRequest.instanceId;
|
|
17664
|
+
body = listRemoteDbRequest.body;
|
|
17665
|
+
}
|
|
17666
|
+
else {
|
|
17667
|
+
instanceId = listRemoteDbRequest['instance_id'];
|
|
17668
|
+
body = listRemoteDbRequest['body'];
|
|
17669
|
+
}
|
|
17670
|
+
}
|
|
17671
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17672
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listRemoteDb.');
|
|
17673
|
+
}
|
|
17674
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17675
|
+
options.data = body !== undefined ? body : {};
|
|
17676
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
17677
|
+
options.headers = localVarHeaderParameter;
|
|
17678
|
+
return options;
|
|
17679
|
+
},
|
|
17680
|
+
/**
|
|
17681
|
+
* 查询发布订阅报错列表
|
|
17682
|
+
*
|
|
17683
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
17684
|
+
*/
|
|
17685
|
+
listReplicationErrors(listReplicationErrorsRequest) {
|
|
17686
|
+
const options = {
|
|
17687
|
+
method: "GET",
|
|
17688
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/errors",
|
|
17689
|
+
contentType: "application/json",
|
|
17690
|
+
queryParams: {},
|
|
17691
|
+
pathParams: {},
|
|
17692
|
+
headers: {}
|
|
17693
|
+
};
|
|
17694
|
+
const localVarHeaderParameter = {};
|
|
17695
|
+
const localVarQueryParameter = {};
|
|
17696
|
+
let instanceId;
|
|
17697
|
+
let subscriptionId;
|
|
17698
|
+
let offset;
|
|
17699
|
+
let limit;
|
|
17700
|
+
if (listReplicationErrorsRequest !== null && listReplicationErrorsRequest !== undefined) {
|
|
17701
|
+
if (listReplicationErrorsRequest instanceof ListReplicationErrorsRequest_1.ListReplicationErrorsRequest) {
|
|
17702
|
+
instanceId = listReplicationErrorsRequest.instanceId;
|
|
17703
|
+
subscriptionId = listReplicationErrorsRequest.subscriptionId;
|
|
17704
|
+
offset = listReplicationErrorsRequest.offset;
|
|
17705
|
+
limit = listReplicationErrorsRequest.limit;
|
|
17706
|
+
}
|
|
17707
|
+
else {
|
|
17708
|
+
instanceId = listReplicationErrorsRequest['instance_id'];
|
|
17709
|
+
subscriptionId = listReplicationErrorsRequest['subscription_id'];
|
|
17710
|
+
offset = listReplicationErrorsRequest['offset'];
|
|
17711
|
+
limit = listReplicationErrorsRequest['limit'];
|
|
17712
|
+
}
|
|
17713
|
+
}
|
|
17714
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17715
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listReplicationErrors.');
|
|
17716
|
+
}
|
|
17717
|
+
if (subscriptionId !== null && subscriptionId !== undefined) {
|
|
17718
|
+
localVarQueryParameter['subscription_id'] = subscriptionId;
|
|
17719
|
+
}
|
|
17720
|
+
if (offset !== null && offset !== undefined) {
|
|
17721
|
+
localVarQueryParameter['offset'] = offset;
|
|
17722
|
+
}
|
|
17723
|
+
if (limit !== null && limit !== undefined) {
|
|
17724
|
+
localVarQueryParameter['limit'] = limit;
|
|
17725
|
+
}
|
|
17726
|
+
options.queryParams = localVarQueryParameter;
|
|
17727
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
17728
|
+
options.headers = localVarHeaderParameter;
|
|
17729
|
+
return options;
|
|
17730
|
+
},
|
|
17340
17731
|
/**
|
|
17341
17732
|
* 查询发布订阅配置文件列表。
|
|
17342
17733
|
*
|
|
@@ -17704,6 +18095,58 @@ const ParamCreater = function () {
|
|
|
17704
18095
|
options.headers = localVarHeaderParameter;
|
|
17705
18096
|
return options;
|
|
17706
18097
|
},
|
|
18098
|
+
/**
|
|
18099
|
+
* 修改数据库代理作业。
|
|
18100
|
+
*
|
|
18101
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
18102
|
+
*/
|
|
18103
|
+
modifyDbAgentJob(modifyDbAgentJobRequest) {
|
|
18104
|
+
const options = {
|
|
18105
|
+
method: "PUT",
|
|
18106
|
+
url: "/v3/{project_id}/instances/{instance_id}/db-jobs/{job_id}",
|
|
18107
|
+
contentType: "application/json",
|
|
18108
|
+
queryParams: {},
|
|
18109
|
+
pathParams: {},
|
|
18110
|
+
headers: {},
|
|
18111
|
+
data: {}
|
|
18112
|
+
};
|
|
18113
|
+
const localVarHeaderParameter = {};
|
|
18114
|
+
let body;
|
|
18115
|
+
let instanceId;
|
|
18116
|
+
let jobId;
|
|
18117
|
+
let xLanguage;
|
|
18118
|
+
if (modifyDbAgentJobRequest !== null && modifyDbAgentJobRequest !== undefined) {
|
|
18119
|
+
if (modifyDbAgentJobRequest instanceof ModifyDbAgentJobRequest_1.ModifyDbAgentJobRequest) {
|
|
18120
|
+
instanceId = modifyDbAgentJobRequest.instanceId;
|
|
18121
|
+
jobId = modifyDbAgentJobRequest.jobId;
|
|
18122
|
+
body = modifyDbAgentJobRequest.body;
|
|
18123
|
+
xLanguage = modifyDbAgentJobRequest.xLanguage;
|
|
18124
|
+
}
|
|
18125
|
+
else {
|
|
18126
|
+
instanceId = modifyDbAgentJobRequest['instance_id'];
|
|
18127
|
+
jobId = modifyDbAgentJobRequest['job_id'];
|
|
18128
|
+
body = modifyDbAgentJobRequest['body'];
|
|
18129
|
+
xLanguage = modifyDbAgentJobRequest['X-Language'];
|
|
18130
|
+
}
|
|
18131
|
+
}
|
|
18132
|
+
if (instanceId === null || instanceId === undefined) {
|
|
18133
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling modifyDbAgentJob.');
|
|
18134
|
+
}
|
|
18135
|
+
if (jobId === null || jobId === undefined) {
|
|
18136
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling modifyDbAgentJob.');
|
|
18137
|
+
}
|
|
18138
|
+
if (body === null || body === undefined) {
|
|
18139
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
18140
|
+
}
|
|
18141
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
18142
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
18143
|
+
}
|
|
18144
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18145
|
+
options.data = body !== undefined ? body : {};
|
|
18146
|
+
options.pathParams = { 'instance_id': instanceId, 'job_id': jobId, };
|
|
18147
|
+
options.headers = localVarHeaderParameter;
|
|
18148
|
+
return options;
|
|
18149
|
+
},
|
|
17707
18150
|
/**
|
|
17708
18151
|
* 修改发布
|
|
17709
18152
|
*
|
|
@@ -17842,6 +18285,49 @@ const ParamCreater = function () {
|
|
|
17842
18285
|
options.headers = localVarHeaderParameter;
|
|
17843
18286
|
return options;
|
|
17844
18287
|
},
|
|
18288
|
+
/**
|
|
18289
|
+
* 重启数据库代理作业。
|
|
18290
|
+
*
|
|
18291
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
18292
|
+
*/
|
|
18293
|
+
restartDbAgentJob(restartDbAgentJobRequest) {
|
|
18294
|
+
const options = {
|
|
18295
|
+
method: "POST",
|
|
18296
|
+
url: "/v3/{project_id}/instances/{instance_id}/db-jobs/{job_id}/restart",
|
|
18297
|
+
contentType: "application/json",
|
|
18298
|
+
queryParams: {},
|
|
18299
|
+
pathParams: {},
|
|
18300
|
+
headers: {}
|
|
18301
|
+
};
|
|
18302
|
+
const localVarHeaderParameter = {};
|
|
18303
|
+
let instanceId;
|
|
18304
|
+
let jobId;
|
|
18305
|
+
let xLanguage;
|
|
18306
|
+
if (restartDbAgentJobRequest !== null && restartDbAgentJobRequest !== undefined) {
|
|
18307
|
+
if (restartDbAgentJobRequest instanceof RestartDbAgentJobRequest_1.RestartDbAgentJobRequest) {
|
|
18308
|
+
instanceId = restartDbAgentJobRequest.instanceId;
|
|
18309
|
+
jobId = restartDbAgentJobRequest.jobId;
|
|
18310
|
+
xLanguage = restartDbAgentJobRequest.xLanguage;
|
|
18311
|
+
}
|
|
18312
|
+
else {
|
|
18313
|
+
instanceId = restartDbAgentJobRequest['instance_id'];
|
|
18314
|
+
jobId = restartDbAgentJobRequest['job_id'];
|
|
18315
|
+
xLanguage = restartDbAgentJobRequest['X-Language'];
|
|
18316
|
+
}
|
|
18317
|
+
}
|
|
18318
|
+
if (instanceId === null || instanceId === undefined) {
|
|
18319
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling restartDbAgentJob.');
|
|
18320
|
+
}
|
|
18321
|
+
if (jobId === null || jobId === undefined) {
|
|
18322
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling restartDbAgentJob.');
|
|
18323
|
+
}
|
|
18324
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
18325
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
18326
|
+
}
|
|
18327
|
+
options.pathParams = { 'instance_id': instanceId, 'job_id': jobId, };
|
|
18328
|
+
options.headers = localVarHeaderParameter;
|
|
18329
|
+
return options;
|
|
18330
|
+
},
|
|
17845
18331
|
/**
|
|
17846
18332
|
* 解除数据库帐号权限。
|
|
17847
18333
|
*
|
|
@@ -17968,6 +18454,49 @@ const ParamCreater = function () {
|
|
|
17968
18454
|
options.headers = localVarHeaderParameter;
|
|
17969
18455
|
return options;
|
|
17970
18456
|
},
|
|
18457
|
+
/**
|
|
18458
|
+
* 禁用启动切换数据库代理作业。
|
|
18459
|
+
*
|
|
18460
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
18461
|
+
*/
|
|
18462
|
+
switchDbAgentJob(switchDbAgentJobRequest) {
|
|
18463
|
+
const options = {
|
|
18464
|
+
method: "POST",
|
|
18465
|
+
url: "/v3/{project_id}/instances/{instance_id}/db-jobs/{job_id}/switch",
|
|
18466
|
+
contentType: "application/json",
|
|
18467
|
+
queryParams: {},
|
|
18468
|
+
pathParams: {},
|
|
18469
|
+
headers: {}
|
|
18470
|
+
};
|
|
18471
|
+
const localVarHeaderParameter = {};
|
|
18472
|
+
let instanceId;
|
|
18473
|
+
let jobId;
|
|
18474
|
+
let xLanguage;
|
|
18475
|
+
if (switchDbAgentJobRequest !== null && switchDbAgentJobRequest !== undefined) {
|
|
18476
|
+
if (switchDbAgentJobRequest instanceof SwitchDbAgentJobRequest_1.SwitchDbAgentJobRequest) {
|
|
18477
|
+
instanceId = switchDbAgentJobRequest.instanceId;
|
|
18478
|
+
jobId = switchDbAgentJobRequest.jobId;
|
|
18479
|
+
xLanguage = switchDbAgentJobRequest.xLanguage;
|
|
18480
|
+
}
|
|
18481
|
+
else {
|
|
18482
|
+
instanceId = switchDbAgentJobRequest['instance_id'];
|
|
18483
|
+
jobId = switchDbAgentJobRequest['job_id'];
|
|
18484
|
+
xLanguage = switchDbAgentJobRequest['X-Language'];
|
|
18485
|
+
}
|
|
18486
|
+
}
|
|
18487
|
+
if (instanceId === null || instanceId === undefined) {
|
|
18488
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling switchDbAgentJob.');
|
|
18489
|
+
}
|
|
18490
|
+
if (jobId === null || jobId === undefined) {
|
|
18491
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling switchDbAgentJob.');
|
|
18492
|
+
}
|
|
18493
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
18494
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
18495
|
+
}
|
|
18496
|
+
options.pathParams = { 'instance_id': instanceId, 'job_id': jobId, };
|
|
18497
|
+
options.headers = localVarHeaderParameter;
|
|
18498
|
+
return options;
|
|
18499
|
+
},
|
|
17971
18500
|
/**
|
|
17972
18501
|
* 同步发布订阅元数据。
|
|
17973
18502
|
*
|
|
@@ -18005,6 +18534,52 @@ const ParamCreater = function () {
|
|
|
18005
18534
|
options.headers = localVarHeaderParameter;
|
|
18006
18535
|
return options;
|
|
18007
18536
|
},
|
|
18537
|
+
/**
|
|
18538
|
+
* 更新统计信息
|
|
18539
|
+
*
|
|
18540
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
18541
|
+
*/
|
|
18542
|
+
updateStatistics(updateStatisticsRequest) {
|
|
18543
|
+
const options = {
|
|
18544
|
+
method: "POST",
|
|
18545
|
+
url: "/v3/{project_id}/instances/{instance_id}/db-statistics",
|
|
18546
|
+
contentType: "application/json",
|
|
18547
|
+
queryParams: {},
|
|
18548
|
+
pathParams: {},
|
|
18549
|
+
headers: {},
|
|
18550
|
+
data: {}
|
|
18551
|
+
};
|
|
18552
|
+
const localVarHeaderParameter = {};
|
|
18553
|
+
let body;
|
|
18554
|
+
let instanceId;
|
|
18555
|
+
let xLanguage;
|
|
18556
|
+
if (updateStatisticsRequest !== null && updateStatisticsRequest !== undefined) {
|
|
18557
|
+
if (updateStatisticsRequest instanceof UpdateStatisticsRequest_1.UpdateStatisticsRequest) {
|
|
18558
|
+
instanceId = updateStatisticsRequest.instanceId;
|
|
18559
|
+
body = updateStatisticsRequest.body;
|
|
18560
|
+
xLanguage = updateStatisticsRequest.xLanguage;
|
|
18561
|
+
}
|
|
18562
|
+
else {
|
|
18563
|
+
instanceId = updateStatisticsRequest['instance_id'];
|
|
18564
|
+
body = updateStatisticsRequest['body'];
|
|
18565
|
+
xLanguage = updateStatisticsRequest['X-Language'];
|
|
18566
|
+
}
|
|
18567
|
+
}
|
|
18568
|
+
if (instanceId === null || instanceId === undefined) {
|
|
18569
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling updateStatistics.');
|
|
18570
|
+
}
|
|
18571
|
+
if (body === null || body === undefined) {
|
|
18572
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
18573
|
+
}
|
|
18574
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
18575
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
18576
|
+
}
|
|
18577
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18578
|
+
options.data = body !== undefined ? body : {};
|
|
18579
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
18580
|
+
options.headers = localVarHeaderParameter;
|
|
18581
|
+
return options;
|
|
18582
|
+
},
|
|
18008
18583
|
/**
|
|
18009
18584
|
* RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
|
|
18010
18585
|
*
|