@huaweicloud/huaweicloud-sdk-rds 3.1.175 → 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.
Files changed (181) hide show
  1. package/package.json +2 -2
  2. package/v3/RdsClient.d.ts +402 -0
  3. package/v3/RdsClient.d.ts.map +1 -1
  4. package/v3/RdsClient.js +947 -30
  5. package/v3/RdsClient.js.map +1 -1
  6. package/v3/model/AutoEnlargeStrategyForConsoleApi.d.ts +12 -0
  7. package/v3/model/AutoEnlargeStrategyForConsoleApi.d.ts.map +1 -0
  8. package/v3/model/AutoEnlargeStrategyForConsoleApi.js +25 -0
  9. package/v3/model/AutoEnlargeStrategyForConsoleApi.js.map +1 -0
  10. package/v3/model/BatchModifyPublicationRequest.d.ts +11 -0
  11. package/v3/model/BatchModifyPublicationRequest.d.ts.map +1 -0
  12. package/v3/model/BatchModifyPublicationRequest.js +24 -0
  13. package/v3/model/BatchModifyPublicationRequest.js.map +1 -0
  14. package/v3/model/BatchModifyPublicationResponse.d.ts +8 -0
  15. package/v3/model/BatchModifyPublicationResponse.d.ts.map +1 -0
  16. package/v3/model/BatchModifyPublicationResponse.js +15 -0
  17. package/v3/model/BatchModifyPublicationResponse.js.map +1 -0
  18. package/v3/model/BatchModifyPublicationsRequestBody.d.ts +13 -0
  19. package/v3/model/BatchModifyPublicationsRequestBody.d.ts.map +1 -0
  20. package/v3/model/BatchModifyPublicationsRequestBody.js +31 -0
  21. package/v3/model/BatchModifyPublicationsRequestBody.js.map +1 -0
  22. package/v3/model/CreateDistributionRequest.d.ts +11 -0
  23. package/v3/model/CreateDistributionRequest.d.ts.map +1 -0
  24. package/v3/model/CreateDistributionRequest.js +24 -0
  25. package/v3/model/CreateDistributionRequest.js.map +1 -0
  26. package/v3/model/CreateDistributionRequestBody.d.ts +8 -0
  27. package/v3/model/CreateDistributionRequestBody.d.ts.map +1 -0
  28. package/v3/model/CreateDistributionRequestBody.js +20 -0
  29. package/v3/model/CreateDistributionRequestBody.js.map +1 -0
  30. package/v3/model/CreateDistributionResponse.d.ts +9 -0
  31. package/v3/model/CreateDistributionResponse.d.ts.map +1 -0
  32. package/v3/model/CreateDistributionResponse.js +21 -0
  33. package/v3/model/CreateDistributionResponse.js.map +1 -0
  34. package/v3/model/CreatePublicationRequest.d.ts +11 -0
  35. package/v3/model/CreatePublicationRequest.d.ts.map +1 -0
  36. package/v3/model/CreatePublicationRequest.js +24 -0
  37. package/v3/model/CreatePublicationRequest.js.map +1 -0
  38. package/v3/model/CreatePublicationResponse.d.ts +9 -0
  39. package/v3/model/CreatePublicationResponse.d.ts.map +1 -0
  40. package/v3/model/CreatePublicationResponse.js +21 -0
  41. package/v3/model/CreatePublicationResponse.js.map +1 -0
  42. package/v3/model/CreatePublicationsRequestBody.d.ts +37 -0
  43. package/v3/model/CreatePublicationsRequestBody.d.ts.map +1 -0
  44. package/v3/model/CreatePublicationsRequestBody.js +88 -0
  45. package/v3/model/CreatePublicationsRequestBody.js.map +1 -0
  46. package/v3/model/GetInstancesNoIndexTablesRequest.d.ts +4 -0
  47. package/v3/model/GetInstancesNoIndexTablesRequest.d.ts.map +1 -1
  48. package/v3/model/GetInstancesNoIndexTablesRequest.js +8 -0
  49. package/v3/model/GetInstancesNoIndexTablesRequest.js.map +1 -1
  50. package/v3/model/GetInstancesNoIndexTablesResponse.d.ts +3 -0
  51. package/v3/model/GetInstancesNoIndexTablesResponse.d.ts.map +1 -1
  52. package/v3/model/GetInstancesNoIndexTablesResponse.js +4 -0
  53. package/v3/model/GetInstancesNoIndexTablesResponse.js.map +1 -1
  54. package/v3/model/InstanceRequest.d.ts +5 -0
  55. package/v3/model/InstanceRequest.d.ts.map +1 -1
  56. package/v3/model/InstanceRequest.js +10 -0
  57. package/v3/model/InstanceRequest.js.map +1 -1
  58. package/v3/model/ListDbAgentJobHistoryStepsRequest.d.ts +20 -0
  59. package/v3/model/ListDbAgentJobHistoryStepsRequest.d.ts.map +1 -0
  60. package/v3/model/ListDbAgentJobHistoryStepsRequest.js +49 -0
  61. package/v3/model/ListDbAgentJobHistoryStepsRequest.js.map +1 -0
  62. package/v3/model/ListDbAgentJobHistoryStepsResponse.d.ts +12 -0
  63. package/v3/model/ListDbAgentJobHistoryStepsResponse.d.ts.map +1 -0
  64. package/v3/model/ListDbAgentJobHistoryStepsResponse.js +25 -0
  65. package/v3/model/ListDbAgentJobHistoryStepsResponse.js.map +1 -0
  66. package/v3/model/ListDbAgentJobHistoryStepsResult.d.ts +26 -0
  67. package/v3/model/ListDbAgentJobHistoryStepsResult.d.ts.map +1 -0
  68. package/v3/model/ListDbAgentJobHistoryStepsResult.js +63 -0
  69. package/v3/model/ListDbAgentJobHistoryStepsResult.js.map +1 -0
  70. package/v3/model/ListDbAgentJobHistorysRequest.d.ts +24 -0
  71. package/v3/model/ListDbAgentJobHistorysRequest.d.ts.map +1 -0
  72. package/v3/model/ListDbAgentJobHistorysRequest.js +59 -0
  73. package/v3/model/ListDbAgentJobHistorysRequest.js.map +1 -0
  74. package/v3/model/ListDbAgentJobHistorysResponse.d.ts +12 -0
  75. package/v3/model/ListDbAgentJobHistorysResponse.d.ts.map +1 -0
  76. package/v3/model/ListDbAgentJobHistorysResponse.js +25 -0
  77. package/v3/model/ListDbAgentJobHistorysResponse.js.map +1 -0
  78. package/v3/model/ListDbAgentJobHistorysResult.d.ts +22 -0
  79. package/v3/model/ListDbAgentJobHistorysResult.d.ts.map +1 -0
  80. package/v3/model/ListDbAgentJobHistorysResult.js +53 -0
  81. package/v3/model/ListDbAgentJobHistorysResult.js.map +1 -0
  82. package/v3/model/ListRemoteDbRequest.d.ts +11 -0
  83. package/v3/model/ListRemoteDbRequest.d.ts.map +1 -0
  84. package/v3/model/ListRemoteDbRequest.js +24 -0
  85. package/v3/model/ListRemoteDbRequest.js.map +1 -0
  86. package/v3/model/ListRemoteDbRequestBody.d.ts +24 -0
  87. package/v3/model/ListRemoteDbRequestBody.d.ts.map +1 -0
  88. package/v3/model/ListRemoteDbRequestBody.js +61 -0
  89. package/v3/model/ListRemoteDbRequestBody.js.map +1 -0
  90. package/v3/model/ListRemoteDbResponse.d.ts +12 -0
  91. package/v3/model/ListRemoteDbResponse.d.ts.map +1 -0
  92. package/v3/model/ListRemoteDbResponse.js +25 -0
  93. package/v3/model/ListRemoteDbResponse.js.map +1 -0
  94. package/v3/model/ListReplicationErrorsRequest.d.ts +16 -0
  95. package/v3/model/ListReplicationErrorsRequest.d.ts.map +1 -0
  96. package/v3/model/ListReplicationErrorsRequest.js +38 -0
  97. package/v3/model/ListReplicationErrorsRequest.js.map +1 -0
  98. package/v3/model/ListReplicationErrorsResponse.d.ts +12 -0
  99. package/v3/model/ListReplicationErrorsResponse.d.ts.map +1 -0
  100. package/v3/model/ListReplicationErrorsResponse.js +25 -0
  101. package/v3/model/ListReplicationErrorsResponse.js.map +1 -0
  102. package/v3/model/ListReplicationErrorsResult.d.ts +24 -0
  103. package/v3/model/ListReplicationErrorsResult.d.ts.map +1 -0
  104. package/v3/model/ListReplicationErrorsResult.js +59 -0
  105. package/v3/model/ListReplicationErrorsResult.js.map +1 -0
  106. package/v3/model/ModifyDbAgentJobRequest.d.ts +19 -0
  107. package/v3/model/ModifyDbAgentJobRequest.d.ts.map +1 -0
  108. package/v3/model/ModifyDbAgentJobRequest.js +45 -0
  109. package/v3/model/ModifyDbAgentJobRequest.js.map +1 -0
  110. package/v3/model/ModifyDbAgentJobRequestBody.d.ts +8 -0
  111. package/v3/model/ModifyDbAgentJobRequestBody.d.ts.map +1 -0
  112. package/v3/model/ModifyDbAgentJobRequestBody.js +20 -0
  113. package/v3/model/ModifyDbAgentJobRequestBody.js.map +1 -0
  114. package/v3/model/ModifyDbAgentJobResponse.d.ts +45 -0
  115. package/v3/model/ModifyDbAgentJobResponse.d.ts.map +1 -0
  116. package/v3/model/ModifyDbAgentJobResponse.js +111 -0
  117. package/v3/model/ModifyDbAgentJobResponse.js.map +1 -0
  118. package/v3/model/ReduceVolumeObject.d.ts +5 -1
  119. package/v3/model/ReduceVolumeObject.d.ts.map +1 -1
  120. package/v3/model/ReduceVolumeObject.js +12 -1
  121. package/v3/model/ReduceVolumeObject.js.map +1 -1
  122. package/v3/model/RefreshPublicationSnapshotRequest.d.ts +16 -0
  123. package/v3/model/RefreshPublicationSnapshotRequest.d.ts.map +1 -0
  124. package/v3/model/RefreshPublicationSnapshotRequest.js +41 -0
  125. package/v3/model/RefreshPublicationSnapshotRequest.js.map +1 -0
  126. package/v3/model/RefreshPublicationSnapshotResponse.d.ts +5 -0
  127. package/v3/model/RefreshPublicationSnapshotResponse.d.ts.map +1 -0
  128. package/v3/model/RefreshPublicationSnapshotResponse.js +11 -0
  129. package/v3/model/RefreshPublicationSnapshotResponse.js.map +1 -0
  130. package/v3/model/RefreshSubscriptionRequest.d.ts +16 -0
  131. package/v3/model/RefreshSubscriptionRequest.d.ts.map +1 -0
  132. package/v3/model/RefreshSubscriptionRequest.js +41 -0
  133. package/v3/model/RefreshSubscriptionRequest.js.map +1 -0
  134. package/v3/model/RefreshSubscriptionResponse.d.ts +5 -0
  135. package/v3/model/RefreshSubscriptionResponse.d.ts.map +1 -0
  136. package/v3/model/RefreshSubscriptionResponse.js +11 -0
  137. package/v3/model/RefreshSubscriptionResponse.js.map +1 -0
  138. package/v3/model/RestartDbAgentJobRequest.d.ts +16 -0
  139. package/v3/model/RestartDbAgentJobRequest.d.ts.map +1 -0
  140. package/v3/model/RestartDbAgentJobRequest.js +41 -0
  141. package/v3/model/RestartDbAgentJobRequest.js.map +1 -0
  142. package/v3/model/RestartDbAgentJobResponse.d.ts +5 -0
  143. package/v3/model/RestartDbAgentJobResponse.d.ts.map +1 -0
  144. package/v3/model/RestartDbAgentJobResponse.js +11 -0
  145. package/v3/model/RestartDbAgentJobResponse.js.map +1 -0
  146. package/v3/model/SwitchDbAgentJobRequest.d.ts +16 -0
  147. package/v3/model/SwitchDbAgentJobRequest.d.ts.map +1 -0
  148. package/v3/model/SwitchDbAgentJobRequest.js +41 -0
  149. package/v3/model/SwitchDbAgentJobRequest.js.map +1 -0
  150. package/v3/model/SwitchDbAgentJobResponse.d.ts +5 -0
  151. package/v3/model/SwitchDbAgentJobResponse.d.ts.map +1 -0
  152. package/v3/model/SwitchDbAgentJobResponse.js +11 -0
  153. package/v3/model/SwitchDbAgentJobResponse.js.map +1 -0
  154. package/v3/model/SyncReplicationMetadataRequest.d.ts +12 -0
  155. package/v3/model/SyncReplicationMetadataRequest.d.ts.map +1 -0
  156. package/v3/model/SyncReplicationMetadataRequest.js +30 -0
  157. package/v3/model/SyncReplicationMetadataRequest.js.map +1 -0
  158. package/v3/model/SyncReplicationMetadataResponse.d.ts +9 -0
  159. package/v3/model/SyncReplicationMetadataResponse.d.ts.map +1 -0
  160. package/v3/model/SyncReplicationMetadataResponse.js +21 -0
  161. package/v3/model/SyncReplicationMetadataResponse.js.map +1 -0
  162. package/v3/model/Table.d.ts +16 -0
  163. package/v3/model/Table.d.ts.map +1 -0
  164. package/v3/model/Table.js +39 -0
  165. package/v3/model/Table.js.map +1 -0
  166. package/v3/model/UpdateStatisticsRequest.d.ts +15 -0
  167. package/v3/model/UpdateStatisticsRequest.d.ts.map +1 -0
  168. package/v3/model/UpdateStatisticsRequest.js +34 -0
  169. package/v3/model/UpdateStatisticsRequest.js.map +1 -0
  170. package/v3/model/UpdateStatisticsRequestBody.d.ts +8 -0
  171. package/v3/model/UpdateStatisticsRequestBody.d.ts.map +1 -0
  172. package/v3/model/UpdateStatisticsRequestBody.js +19 -0
  173. package/v3/model/UpdateStatisticsRequestBody.js.map +1 -0
  174. package/v3/model/UpdateStatisticsResponse.d.ts +7 -0
  175. package/v3/model/UpdateStatisticsResponse.d.ts.map +1 -0
  176. package/v3/model/UpdateStatisticsResponse.js +15 -0
  177. package/v3/model/UpdateStatisticsResponse.js.map +1 -0
  178. package/v3/public-api.d.ts +39 -0
  179. package/v3/public-api.d.ts.map +1 -1
  180. package/v3/public-api.js +39 -0
  181. 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");
@@ -87,6 +90,8 @@ const ListConfigurationsRequest_1 = require("./model/ListConfigurationsRequest")
87
90
  const ListDatabaseUserRoleRequest_1 = require("./model/ListDatabaseUserRoleRequest");
88
91
  const ListDatabasesRequest_1 = require("./model/ListDatabasesRequest");
89
92
  const ListDatastoresRequest_1 = require("./model/ListDatastoresRequest");
93
+ const ListDbAgentJobHistoryStepsRequest_1 = require("./model/ListDbAgentJobHistoryStepsRequest");
94
+ const ListDbAgentJobHistorysRequest_1 = require("./model/ListDbAgentJobHistorysRequest");
90
95
  const ListDbAgentJobsRequest_1 = require("./model/ListDbAgentJobsRequest");
91
96
  const ListDbUsersRequest_1 = require("./model/ListDbUsersRequest");
92
97
  const ListDistributionRequest_1 = require("./model/ListDistributionRequest");
@@ -132,6 +137,8 @@ const ListRdSforMySqlProxyRequest_1 = require("./model/ListRdSforMySqlProxyReque
132
137
  const ListRdSforMysqlProxyFlavorsRequest_1 = require("./model/ListRdSforMysqlProxyFlavorsRequest");
133
138
  const ListReadOnlyReplayDatabaseRequest_1 = require("./model/ListReadOnlyReplayDatabaseRequest");
134
139
  const ListRecycleInstancesRequest_1 = require("./model/ListRecycleInstancesRequest");
140
+ const ListRemoteDbRequest_1 = require("./model/ListRemoteDbRequest");
141
+ const ListReplicationErrorsRequest_1 = require("./model/ListReplicationErrorsRequest");
135
142
  const ListReplicationProfilesRequest_1 = require("./model/ListReplicationProfilesRequest");
136
143
  const ListRestoreTimesRequest_1 = require("./model/ListRestoreTimesRequest");
137
144
  const ListScheduleTasksRequest_1 = require("./model/ListScheduleTasksRequest");
@@ -160,12 +167,16 @@ const ListVolumeInfoRequest_1 = require("./model/ListVolumeInfoRequest");
160
167
  const ListXellogFilesRequest_1 = require("./model/ListXellogFilesRequest");
161
168
  const MigrateFollowerRequest_1 = require("./model/MigrateFollowerRequest");
162
169
  const ModifyCollationRequest_1 = require("./model/ModifyCollationRequest");
170
+ const ModifyDbAgentJobRequest_1 = require("./model/ModifyDbAgentJobRequest");
163
171
  const ModifyPostgresqlHbaConfRequest_1 = require("./model/ModifyPostgresqlHbaConfRequest");
164
172
  const ModifyPublicationRequest_1 = require("./model/ModifyPublicationRequest");
165
173
  const ModifyRdSforMySqlProxyRouteModeRequest_1 = require("./model/ModifyRdSforMySqlProxyRouteModeRequest");
166
174
  const NotifyReplaceNodeRequest_1 = require("./model/NotifyReplaceNodeRequest");
175
+ const RefreshPublicationSnapshotRequest_1 = require("./model/RefreshPublicationSnapshotRequest");
176
+ const RefreshSubscriptionRequest_1 = require("./model/RefreshSubscriptionRequest");
167
177
  const ResetPwdRequest_1 = require("./model/ResetPwdRequest");
168
178
  const ResetViewSqlStatisticsRequest_1 = require("./model/ResetViewSqlStatisticsRequest");
179
+ const RestartDbAgentJobRequest_1 = require("./model/RestartDbAgentJobRequest");
169
180
  const RestoreExistInstanceRequest_1 = require("./model/RestoreExistInstanceRequest");
170
181
  const RestoreLogReplayDatabaseRequest_1 = require("./model/RestoreLogReplayDatabaseRequest");
171
182
  const RestoreTablesNewRequest_1 = require("./model/RestoreTablesNewRequest");
@@ -239,9 +250,11 @@ const StartupInstanceRequest_1 = require("./model/StartupInstanceRequest");
239
250
  const StopBackupRequest_1 = require("./model/StopBackupRequest");
240
251
  const StopDatabaseProxyRequest_1 = require("./model/StopDatabaseProxyRequest");
241
252
  const StopInstanceRequest_1 = require("./model/StopInstanceRequest");
253
+ const SwitchDbAgentJobRequest_1 = require("./model/SwitchDbAgentJobRequest");
242
254
  const SwitchLogReplayRequest_1 = require("./model/SwitchLogReplayRequest");
243
255
  const SwitchSqlLimitRequest_1 = require("./model/SwitchSqlLimitRequest");
244
256
  const SwitchSslRequest_1 = require("./model/SwitchSslRequest");
257
+ const SyncReplicationMetadataRequest_1 = require("./model/SyncReplicationMetadataRequest");
245
258
  const TransferBackupRequest_1 = require("./model/TransferBackupRequest");
246
259
  const UnlockNodeReadonlyStatusRequest_1 = require("./model/UnlockNodeReadonlyStatusRequest");
247
260
  const UpdateConfigurationRequest_1 = require("./model/UpdateConfigurationRequest");
@@ -264,6 +277,7 @@ const UpdatePostgresqlInstanceAliasRequest_1 = require("./model/UpdatePostgresql
264
277
  const UpdatePostgresqlParameterValueRequest_1 = require("./model/UpdatePostgresqlParameterValueRequest");
265
278
  const UpdateReadWeightRequest_1 = require("./model/UpdateReadWeightRequest");
266
279
  const UpdateSqlLimitRequest_1 = require("./model/UpdateSqlLimitRequest");
280
+ const UpdateStatisticsRequest_1 = require("./model/UpdateStatisticsRequest");
267
281
  const UpdateTdeStatusRequest_1 = require("./model/UpdateTdeStatusRequest");
268
282
  const UpdateToPeriodRequest_1 = require("./model/UpdateToPeriodRequest");
269
283
  const UpgradeDbMajorVersionPreCheckRequest_1 = require("./model/UpgradeDbMajorVersionPreCheckRequest");
@@ -4495,6 +4509,8 @@ class RdsClient {
4495
4509
  * @param {string} instanceId 实例ID
4496
4510
  * @param {boolean} newest 指定查询是否应侧重于检索最新或最新的特殊表。
4497
4511
  * @param {string} tableType 表格类型。
4512
+ * @param {string} [offset] 索引位置,偏移量。
4513
+ * @param {string} [limit] 查询记录数。
4498
4514
  * @param {*} [options] Override http request option.
4499
4515
  * @throws {RequiredError}
4500
4516
  */
@@ -4559,6 +4575,23 @@ class RdsClient {
4559
4575
  options['responseHeaders'] = [''];
4560
4576
  return this.hcClient.sendRequest(options);
4561
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
+ }
4562
4595
  /**
4563
4596
  * 批量修改订阅
4564
4597
  *
@@ -4630,6 +4663,40 @@ class RdsClient {
4630
4663
  options['responseHeaders'] = [''];
4631
4664
  return this.hcClient.sendRequest(options);
4632
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
+ }
4633
4700
  /**
4634
4701
  * 创建数据库。
4635
4702
  *
@@ -4848,6 +4915,47 @@ class RdsClient {
4848
4915
  options['responseHeaders'] = [''];
4849
4916
  return this.hcClient.sendRequest(options);
4850
4917
  }
4918
+ /**
4919
+ * 查询数据库代理作业执行历史步骤。
4920
+ *
4921
+ * Please refer to HUAWEI cloud API Explorer for details.
4922
+ *
4923
+ * @summary 查询数据库代理作业执行历史步骤
4924
+ * @param {string} instanceId 实例ID
4925
+ * @param {string} historyId 作业执行历史ID
4926
+ * @param {string} [xLanguage] 语言。默认en-us。
4927
+ * @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
4928
+ * @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
4929
+ * @param {*} [options] Override http request option.
4930
+ * @throws {RequiredError}
4931
+ */
4932
+ listDbAgentJobHistorySteps(listDbAgentJobHistoryStepsRequest) {
4933
+ const options = (0, exports.ParamCreater)().listDbAgentJobHistorySteps(listDbAgentJobHistoryStepsRequest);
4934
+ // @ts-ignore
4935
+ options['responseHeaders'] = [''];
4936
+ return this.hcClient.sendRequest(options);
4937
+ }
4938
+ /**
4939
+ * 查询数据库代理作业执行历史。
4940
+ *
4941
+ * Please refer to HUAWEI cloud API Explorer for details.
4942
+ *
4943
+ * @summary 查询数据库代理作业执行历史
4944
+ * @param {string} instanceId 实例ID
4945
+ * @param {string} jobId 作业ID
4946
+ * @param {string} [xLanguage] 语言。默认en-us。
4947
+ * @param {string} [runStatus] 作业执行状态。默认不传,查询所有执行历史。 若传,则取值如下: failed:失败。 succeeded:成功。 retrying:重试中。 canceled:已取消。 in_progress:正在运行。
4948
+ * @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
4949
+ * @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
4950
+ * @param {*} [options] Override http request option.
4951
+ * @throws {RequiredError}
4952
+ */
4953
+ listDbAgentJobHistorys(listDbAgentJobHistorysRequest) {
4954
+ const options = (0, exports.ParamCreater)().listDbAgentJobHistorys(listDbAgentJobHistorysRequest);
4955
+ // @ts-ignore
4956
+ options['responseHeaders'] = [''];
4957
+ return this.hcClient.sendRequest(options);
4958
+ }
4851
4959
  /**
4852
4960
  * 查询数据库代理作业列表。
4853
4961
  *
@@ -4982,6 +5090,42 @@ class RdsClient {
4982
5090
  options['responseHeaders'] = [''];
4983
5091
  return this.hcClient.sendRequest(options);
4984
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
+ }
4985
5129
  /**
4986
5130
  * 查询发布订阅配置文件列表。
4987
5131
  *
@@ -5104,6 +5248,25 @@ class RdsClient {
5104
5248
  options['responseHeaders'] = [''];
5105
5249
  return this.hcClient.sendRequest(options);
5106
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
+ }
5107
5270
  /**
5108
5271
  * 修改发布
5109
5272
  *
@@ -5123,6 +5286,60 @@ class RdsClient {
5123
5286
  options['responseHeaders'] = [''];
5124
5287
  return this.hcClient.sendRequest(options);
5125
5288
  }
5289
+ /**
5290
+ * 重新生成发布快照。
5291
+ *
5292
+ * Please refer to HUAWEI cloud API Explorer for details.
5293
+ *
5294
+ * @summary 重新生成发布快照
5295
+ * @param {string} instanceId 实例ID
5296
+ * @param {string} publicationId 发布ID
5297
+ * @param {string} [xLanguage] 语言。默认en-us。
5298
+ * @param {*} [options] Override http request option.
5299
+ * @throws {RequiredError}
5300
+ */
5301
+ refreshPublicationSnapshot(refreshPublicationSnapshotRequest) {
5302
+ const options = (0, exports.ParamCreater)().refreshPublicationSnapshot(refreshPublicationSnapshotRequest);
5303
+ // @ts-ignore
5304
+ options['responseHeaders'] = [''];
5305
+ return this.hcClient.sendRequest(options);
5306
+ }
5307
+ /**
5308
+ * 重新生成订阅。
5309
+ *
5310
+ * Please refer to HUAWEI cloud API Explorer for details.
5311
+ *
5312
+ * @summary 重新生成订阅
5313
+ * @param {string} instanceId 实例ID
5314
+ * @param {string} subscriptionId 订阅ID
5315
+ * @param {string} [xLanguage] 语言。默认en-us。
5316
+ * @param {*} [options] Override http request option.
5317
+ * @throws {RequiredError}
5318
+ */
5319
+ refreshSubscription(refreshSubscriptionRequest) {
5320
+ const options = (0, exports.ParamCreater)().refreshSubscription(refreshSubscriptionRequest);
5321
+ // @ts-ignore
5322
+ options['responseHeaders'] = [''];
5323
+ return this.hcClient.sendRequest(options);
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
+ }
5126
5343
  /**
5127
5344
  * 解除数据库帐号权限。
5128
5345
  *
@@ -5175,6 +5392,59 @@ class RdsClient {
5175
5392
  options['responseHeaders'] = [''];
5176
5393
  return this.hcClient.sendRequest(options);
5177
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
+ }
5413
+ /**
5414
+ * 同步发布订阅元数据。
5415
+ *
5416
+ * Please refer to HUAWEI cloud API Explorer for details.
5417
+ *
5418
+ * @summary 同步发布订阅元数据
5419
+ * @param {string} instanceId 实例ID
5420
+ * @param {string} [xLanguage] 语言。默认en-us。
5421
+ * @param {*} [options] Override http request option.
5422
+ * @throws {RequiredError}
5423
+ */
5424
+ syncReplicationMetadata(syncReplicationMetadataRequest) {
5425
+ const options = (0, exports.ParamCreater)().syncReplicationMetadata(syncReplicationMetadataRequest);
5426
+ // @ts-ignore
5427
+ options['responseHeaders'] = [''];
5428
+ return this.hcClient.sendRequest(options);
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
+ }
5178
5448
  /**
5179
5449
  * RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
5180
5450
  *
@@ -15854,16 +16124,22 @@ const ParamCreater = function () {
15854
16124
  let instanceId;
15855
16125
  let newest;
15856
16126
  let tableType;
16127
+ let offset;
16128
+ let limit;
15857
16129
  if (getInstancesNoIndexTablesRequest !== null && getInstancesNoIndexTablesRequest !== undefined) {
15858
16130
  if (getInstancesNoIndexTablesRequest instanceof GetInstancesNoIndexTablesRequest_1.GetInstancesNoIndexTablesRequest) {
15859
16131
  instanceId = getInstancesNoIndexTablesRequest.instanceId;
15860
16132
  newest = getInstancesNoIndexTablesRequest.newest;
15861
16133
  tableType = getInstancesNoIndexTablesRequest.tableType;
16134
+ offset = getInstancesNoIndexTablesRequest.offset;
16135
+ limit = getInstancesNoIndexTablesRequest.limit;
15862
16136
  }
15863
16137
  else {
15864
16138
  instanceId = getInstancesNoIndexTablesRequest['instance_id'];
15865
16139
  newest = getInstancesNoIndexTablesRequest['newest'];
15866
16140
  tableType = getInstancesNoIndexTablesRequest['table_type'];
16141
+ offset = getInstancesNoIndexTablesRequest['offset'];
16142
+ limit = getInstancesNoIndexTablesRequest['limit'];
15867
16143
  }
15868
16144
  }
15869
16145
  if (instanceId === null || instanceId === undefined) {
@@ -15881,6 +16157,12 @@ const ParamCreater = function () {
15881
16157
  if (tableType !== null && tableType !== undefined) {
15882
16158
  localVarQueryParameter['table_type'] = tableType;
15883
16159
  }
16160
+ if (offset !== null && offset !== undefined) {
16161
+ localVarQueryParameter['offset'] = offset;
16162
+ }
16163
+ if (limit !== null && limit !== undefined) {
16164
+ localVarQueryParameter['limit'] = limit;
16165
+ }
15884
16166
  options.queryParams = localVarQueryParameter;
15885
16167
  options.pathParams = { 'instance_id': instanceId, };
15886
16168
  options.headers = localVarHeaderParameter;
@@ -16029,6 +16311,46 @@ const ParamCreater = function () {
16029
16311
  options.headers = localVarHeaderParameter;
16030
16312
  return options;
16031
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
+ },
16032
16354
  /**
16033
16355
  * 批量修改订阅
16034
16356
  *
@@ -16202,14 +16524,14 @@ const ParamCreater = function () {
16202
16524
  return options;
16203
16525
  },
16204
16526
  /**
16205
- * 创建数据库。
16527
+ * 给当前实例配置分发服务器
16206
16528
  *
16207
16529
  * Please refer to HUAWEI cloud API Explorer for details.
16208
16530
  */
16209
- createSqlserverDatabase(createSqlserverDatabaseRequest) {
16531
+ createDistribution(createDistributionRequest) {
16210
16532
  const options = {
16211
16533
  method: "POST",
16212
- url: "/v3/{project_id}/instances/{instance_id}/database",
16534
+ url: "/v3/{project_id}/instances/{instance_id}/replication/distribution",
16213
16535
  contentType: "application/json",
16214
16536
  queryParams: {},
16215
16537
  pathParams: {},
@@ -16219,28 +16541,22 @@ const ParamCreater = function () {
16219
16541
  const localVarHeaderParameter = {};
16220
16542
  let body;
16221
16543
  let instanceId;
16222
- let xLanguage;
16223
- if (createSqlserverDatabaseRequest !== null && createSqlserverDatabaseRequest !== undefined) {
16224
- if (createSqlserverDatabaseRequest instanceof CreateSqlserverDatabaseRequest_1.CreateSqlserverDatabaseRequest) {
16225
- instanceId = createSqlserverDatabaseRequest.instanceId;
16226
- body = createSqlserverDatabaseRequest.body;
16227
- xLanguage = createSqlserverDatabaseRequest.xLanguage;
16544
+ if (createDistributionRequest !== null && createDistributionRequest !== undefined) {
16545
+ if (createDistributionRequest instanceof CreateDistributionRequest_1.CreateDistributionRequest) {
16546
+ instanceId = createDistributionRequest.instanceId;
16547
+ body = createDistributionRequest.body;
16228
16548
  }
16229
16549
  else {
16230
- instanceId = createSqlserverDatabaseRequest['instance_id'];
16231
- body = createSqlserverDatabaseRequest['body'];
16232
- xLanguage = createSqlserverDatabaseRequest['X-Language'];
16550
+ instanceId = createDistributionRequest['instance_id'];
16551
+ body = createDistributionRequest['body'];
16233
16552
  }
16234
16553
  }
16235
16554
  if (instanceId === null || instanceId === undefined) {
16236
- throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createSqlserverDatabase.');
16555
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createDistribution.');
16237
16556
  }
16238
16557
  if (body === null || body === undefined) {
16239
16558
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
16240
16559
  }
16241
- if (xLanguage !== undefined && xLanguage !== null) {
16242
- localVarHeaderParameter['X-Language'] = String(xLanguage);
16243
- }
16244
16560
  localVarHeaderParameter['Content-Type'] = 'application/json';
16245
16561
  options.data = body !== undefined ? body : {};
16246
16562
  options.pathParams = { 'instance_id': instanceId, };
@@ -16248,14 +16564,14 @@ const ParamCreater = function () {
16248
16564
  return options;
16249
16565
  },
16250
16566
  /**
16251
- * 创建数据库用户。
16567
+ * 创建发布
16252
16568
  *
16253
16569
  * Please refer to HUAWEI cloud API Explorer for details.
16254
16570
  */
16255
- createSqlserverDbUser(createSqlserverDbUserRequest) {
16571
+ createPublication(createPublicationRequest) {
16256
16572
  const options = {
16257
16573
  method: "POST",
16258
- url: "/v3/{project_id}/instances/{instance_id}/db_user",
16574
+ url: "/v3/{project_id}/instances/{instance_id}/replication/publications",
16259
16575
  contentType: "application/json",
16260
16576
  queryParams: {},
16261
16577
  pathParams: {},
@@ -16265,26 +16581,112 @@ const ParamCreater = function () {
16265
16581
  const localVarHeaderParameter = {};
16266
16582
  let body;
16267
16583
  let instanceId;
16268
- let xLanguage;
16269
- if (createSqlserverDbUserRequest !== null && createSqlserverDbUserRequest !== undefined) {
16270
- if (createSqlserverDbUserRequest instanceof CreateSqlserverDbUserRequest_1.CreateSqlserverDbUserRequest) {
16271
- instanceId = createSqlserverDbUserRequest.instanceId;
16272
- body = createSqlserverDbUserRequest.body;
16273
- xLanguage = createSqlserverDbUserRequest.xLanguage;
16584
+ if (createPublicationRequest !== null && createPublicationRequest !== undefined) {
16585
+ if (createPublicationRequest instanceof CreatePublicationRequest_1.CreatePublicationRequest) {
16586
+ instanceId = createPublicationRequest.instanceId;
16587
+ body = createPublicationRequest.body;
16274
16588
  }
16275
16589
  else {
16276
- instanceId = createSqlserverDbUserRequest['instance_id'];
16277
- body = createSqlserverDbUserRequest['body'];
16278
- xLanguage = createSqlserverDbUserRequest['X-Language'];
16590
+ instanceId = createPublicationRequest['instance_id'];
16591
+ body = createPublicationRequest['body'];
16279
16592
  }
16280
16593
  }
16281
16594
  if (instanceId === null || instanceId === undefined) {
16282
- throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createSqlserverDbUser.');
16595
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createPublication.');
16283
16596
  }
16284
16597
  if (body === null || body === undefined) {
16285
16598
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
16286
16599
  }
16287
- if (xLanguage !== undefined && xLanguage !== null) {
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
+ },
16606
+ /**
16607
+ * 创建数据库。
16608
+ *
16609
+ * Please refer to HUAWEI cloud API Explorer for details.
16610
+ */
16611
+ createSqlserverDatabase(createSqlserverDatabaseRequest) {
16612
+ const options = {
16613
+ method: "POST",
16614
+ url: "/v3/{project_id}/instances/{instance_id}/database",
16615
+ contentType: "application/json",
16616
+ queryParams: {},
16617
+ pathParams: {},
16618
+ headers: {},
16619
+ data: {}
16620
+ };
16621
+ const localVarHeaderParameter = {};
16622
+ let body;
16623
+ let instanceId;
16624
+ let xLanguage;
16625
+ if (createSqlserverDatabaseRequest !== null && createSqlserverDatabaseRequest !== undefined) {
16626
+ if (createSqlserverDatabaseRequest instanceof CreateSqlserverDatabaseRequest_1.CreateSqlserverDatabaseRequest) {
16627
+ instanceId = createSqlserverDatabaseRequest.instanceId;
16628
+ body = createSqlserverDatabaseRequest.body;
16629
+ xLanguage = createSqlserverDatabaseRequest.xLanguage;
16630
+ }
16631
+ else {
16632
+ instanceId = createSqlserverDatabaseRequest['instance_id'];
16633
+ body = createSqlserverDatabaseRequest['body'];
16634
+ xLanguage = createSqlserverDatabaseRequest['X-Language'];
16635
+ }
16636
+ }
16637
+ if (instanceId === null || instanceId === undefined) {
16638
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createSqlserverDatabase.');
16639
+ }
16640
+ if (body === null || body === undefined) {
16641
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
16642
+ }
16643
+ if (xLanguage !== undefined && xLanguage !== null) {
16644
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
16645
+ }
16646
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16647
+ options.data = body !== undefined ? body : {};
16648
+ options.pathParams = { 'instance_id': instanceId, };
16649
+ options.headers = localVarHeaderParameter;
16650
+ return options;
16651
+ },
16652
+ /**
16653
+ * 创建数据库用户。
16654
+ *
16655
+ * Please refer to HUAWEI cloud API Explorer for details.
16656
+ */
16657
+ createSqlserverDbUser(createSqlserverDbUserRequest) {
16658
+ const options = {
16659
+ method: "POST",
16660
+ url: "/v3/{project_id}/instances/{instance_id}/db_user",
16661
+ contentType: "application/json",
16662
+ queryParams: {},
16663
+ pathParams: {},
16664
+ headers: {},
16665
+ data: {}
16666
+ };
16667
+ const localVarHeaderParameter = {};
16668
+ let body;
16669
+ let instanceId;
16670
+ let xLanguage;
16671
+ if (createSqlserverDbUserRequest !== null && createSqlserverDbUserRequest !== undefined) {
16672
+ if (createSqlserverDbUserRequest instanceof CreateSqlserverDbUserRequest_1.CreateSqlserverDbUserRequest) {
16673
+ instanceId = createSqlserverDbUserRequest.instanceId;
16674
+ body = createSqlserverDbUserRequest.body;
16675
+ xLanguage = createSqlserverDbUserRequest.xLanguage;
16676
+ }
16677
+ else {
16678
+ instanceId = createSqlserverDbUserRequest['instance_id'];
16679
+ body = createSqlserverDbUserRequest['body'];
16680
+ xLanguage = createSqlserverDbUserRequest['X-Language'];
16681
+ }
16682
+ }
16683
+ if (instanceId === null || instanceId === undefined) {
16684
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createSqlserverDbUser.');
16685
+ }
16686
+ if (body === null || body === undefined) {
16687
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
16688
+ }
16689
+ if (xLanguage !== undefined && xLanguage !== null) {
16288
16690
  localVarHeaderParameter['X-Language'] = String(xLanguage);
16289
16691
  }
16290
16692
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -16756,6 +17158,126 @@ const ParamCreater = function () {
16756
17158
  options.headers = localVarHeaderParameter;
16757
17159
  return options;
16758
17160
  },
17161
+ /**
17162
+ * 查询数据库代理作业执行历史步骤。
17163
+ *
17164
+ * Please refer to HUAWEI cloud API Explorer for details.
17165
+ */
17166
+ listDbAgentJobHistorySteps(listDbAgentJobHistoryStepsRequest) {
17167
+ const options = {
17168
+ method: "GET",
17169
+ url: "/v3/{project_id}/instances/{instance_id}/db-jobs/histories/{history_id}/steps",
17170
+ contentType: "application/json",
17171
+ queryParams: {},
17172
+ pathParams: {},
17173
+ headers: {}
17174
+ };
17175
+ const localVarHeaderParameter = {};
17176
+ const localVarQueryParameter = {};
17177
+ let instanceId;
17178
+ let historyId;
17179
+ let xLanguage;
17180
+ let offset;
17181
+ let limit;
17182
+ if (listDbAgentJobHistoryStepsRequest !== null && listDbAgentJobHistoryStepsRequest !== undefined) {
17183
+ if (listDbAgentJobHistoryStepsRequest instanceof ListDbAgentJobHistoryStepsRequest_1.ListDbAgentJobHistoryStepsRequest) {
17184
+ instanceId = listDbAgentJobHistoryStepsRequest.instanceId;
17185
+ historyId = listDbAgentJobHistoryStepsRequest.historyId;
17186
+ xLanguage = listDbAgentJobHistoryStepsRequest.xLanguage;
17187
+ offset = listDbAgentJobHistoryStepsRequest.offset;
17188
+ limit = listDbAgentJobHistoryStepsRequest.limit;
17189
+ }
17190
+ else {
17191
+ instanceId = listDbAgentJobHistoryStepsRequest['instance_id'];
17192
+ historyId = listDbAgentJobHistoryStepsRequest['history_id'];
17193
+ xLanguage = listDbAgentJobHistoryStepsRequest['X-Language'];
17194
+ offset = listDbAgentJobHistoryStepsRequest['offset'];
17195
+ limit = listDbAgentJobHistoryStepsRequest['limit'];
17196
+ }
17197
+ }
17198
+ if (instanceId === null || instanceId === undefined) {
17199
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listDbAgentJobHistorySteps.');
17200
+ }
17201
+ if (historyId === null || historyId === undefined) {
17202
+ throw new RequiredError('historyId', 'Required parameter historyId was null or undefined when calling listDbAgentJobHistorySteps.');
17203
+ }
17204
+ if (offset !== null && offset !== undefined) {
17205
+ localVarQueryParameter['offset'] = offset;
17206
+ }
17207
+ if (limit !== null && limit !== undefined) {
17208
+ localVarQueryParameter['limit'] = limit;
17209
+ }
17210
+ if (xLanguage !== undefined && xLanguage !== null) {
17211
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
17212
+ }
17213
+ options.queryParams = localVarQueryParameter;
17214
+ options.pathParams = { 'instance_id': instanceId, 'history_id': historyId, };
17215
+ options.headers = localVarHeaderParameter;
17216
+ return options;
17217
+ },
17218
+ /**
17219
+ * 查询数据库代理作业执行历史。
17220
+ *
17221
+ * Please refer to HUAWEI cloud API Explorer for details.
17222
+ */
17223
+ listDbAgentJobHistorys(listDbAgentJobHistorysRequest) {
17224
+ const options = {
17225
+ method: "GET",
17226
+ url: "/v3/{project_id}/instances/{instance_id}/db-jobs/{job_id}/histories",
17227
+ contentType: "application/json",
17228
+ queryParams: {},
17229
+ pathParams: {},
17230
+ headers: {}
17231
+ };
17232
+ const localVarHeaderParameter = {};
17233
+ const localVarQueryParameter = {};
17234
+ let instanceId;
17235
+ let jobId;
17236
+ let xLanguage;
17237
+ let runStatus;
17238
+ let offset;
17239
+ let limit;
17240
+ if (listDbAgentJobHistorysRequest !== null && listDbAgentJobHistorysRequest !== undefined) {
17241
+ if (listDbAgentJobHistorysRequest instanceof ListDbAgentJobHistorysRequest_1.ListDbAgentJobHistorysRequest) {
17242
+ instanceId = listDbAgentJobHistorysRequest.instanceId;
17243
+ jobId = listDbAgentJobHistorysRequest.jobId;
17244
+ xLanguage = listDbAgentJobHistorysRequest.xLanguage;
17245
+ runStatus = listDbAgentJobHistorysRequest.runStatus;
17246
+ offset = listDbAgentJobHistorysRequest.offset;
17247
+ limit = listDbAgentJobHistorysRequest.limit;
17248
+ }
17249
+ else {
17250
+ instanceId = listDbAgentJobHistorysRequest['instance_id'];
17251
+ jobId = listDbAgentJobHistorysRequest['job_id'];
17252
+ xLanguage = listDbAgentJobHistorysRequest['X-Language'];
17253
+ runStatus = listDbAgentJobHistorysRequest['run_status'];
17254
+ offset = listDbAgentJobHistorysRequest['offset'];
17255
+ limit = listDbAgentJobHistorysRequest['limit'];
17256
+ }
17257
+ }
17258
+ if (instanceId === null || instanceId === undefined) {
17259
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listDbAgentJobHistorys.');
17260
+ }
17261
+ if (jobId === null || jobId === undefined) {
17262
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listDbAgentJobHistorys.');
17263
+ }
17264
+ if (runStatus !== null && runStatus !== undefined) {
17265
+ localVarQueryParameter['run_status'] = runStatus;
17266
+ }
17267
+ if (offset !== null && offset !== undefined) {
17268
+ localVarQueryParameter['offset'] = offset;
17269
+ }
17270
+ if (limit !== null && limit !== undefined) {
17271
+ localVarQueryParameter['limit'] = limit;
17272
+ }
17273
+ if (xLanguage !== undefined && xLanguage !== null) {
17274
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
17275
+ }
17276
+ options.queryParams = localVarQueryParameter;
17277
+ options.pathParams = { 'instance_id': instanceId, 'job_id': jobId, };
17278
+ options.headers = localVarHeaderParameter;
17279
+ return options;
17280
+ },
16759
17281
  /**
16760
17282
  * 查询数据库代理作业列表。
16761
17283
  *
@@ -17118,6 +17640,94 @@ const ParamCreater = function () {
17118
17640
  options.headers = localVarHeaderParameter;
17119
17641
  return options;
17120
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
+ },
17121
17731
  /**
17122
17732
  * 查询发布订阅配置文件列表。
17123
17733
  *
@@ -17485,6 +18095,58 @@ const ParamCreater = function () {
17485
18095
  options.headers = localVarHeaderParameter;
17486
18096
  return options;
17487
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
+ },
17488
18150
  /**
17489
18151
  * 修改发布
17490
18152
  *
@@ -17537,6 +18199,135 @@ const ParamCreater = function () {
17537
18199
  options.headers = localVarHeaderParameter;
17538
18200
  return options;
17539
18201
  },
18202
+ /**
18203
+ * 重新生成发布快照。
18204
+ *
18205
+ * Please refer to HUAWEI cloud API Explorer for details.
18206
+ */
18207
+ refreshPublicationSnapshot(refreshPublicationSnapshotRequest) {
18208
+ const options = {
18209
+ method: "POST",
18210
+ url: "/v3/{project_id}/instances/{instance_id}/replication/publications/{publication_id}/reinitialize",
18211
+ contentType: "application/json",
18212
+ queryParams: {},
18213
+ pathParams: {},
18214
+ headers: {}
18215
+ };
18216
+ const localVarHeaderParameter = {};
18217
+ let instanceId;
18218
+ let publicationId;
18219
+ let xLanguage;
18220
+ if (refreshPublicationSnapshotRequest !== null && refreshPublicationSnapshotRequest !== undefined) {
18221
+ if (refreshPublicationSnapshotRequest instanceof RefreshPublicationSnapshotRequest_1.RefreshPublicationSnapshotRequest) {
18222
+ instanceId = refreshPublicationSnapshotRequest.instanceId;
18223
+ publicationId = refreshPublicationSnapshotRequest.publicationId;
18224
+ xLanguage = refreshPublicationSnapshotRequest.xLanguage;
18225
+ }
18226
+ else {
18227
+ instanceId = refreshPublicationSnapshotRequest['instance_id'];
18228
+ publicationId = refreshPublicationSnapshotRequest['publication_id'];
18229
+ xLanguage = refreshPublicationSnapshotRequest['X-Language'];
18230
+ }
18231
+ }
18232
+ if (instanceId === null || instanceId === undefined) {
18233
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling refreshPublicationSnapshot.');
18234
+ }
18235
+ if (publicationId === null || publicationId === undefined) {
18236
+ throw new RequiredError('publicationId', 'Required parameter publicationId was null or undefined when calling refreshPublicationSnapshot.');
18237
+ }
18238
+ if (xLanguage !== undefined && xLanguage !== null) {
18239
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
18240
+ }
18241
+ options.pathParams = { 'instance_id': instanceId, 'publication_id': publicationId, };
18242
+ options.headers = localVarHeaderParameter;
18243
+ return options;
18244
+ },
18245
+ /**
18246
+ * 重新生成订阅。
18247
+ *
18248
+ * Please refer to HUAWEI cloud API Explorer for details.
18249
+ */
18250
+ refreshSubscription(refreshSubscriptionRequest) {
18251
+ const options = {
18252
+ method: "POST",
18253
+ url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions/{subscription_id}/reinitialize",
18254
+ contentType: "application/json",
18255
+ queryParams: {},
18256
+ pathParams: {},
18257
+ headers: {}
18258
+ };
18259
+ const localVarHeaderParameter = {};
18260
+ let instanceId;
18261
+ let subscriptionId;
18262
+ let xLanguage;
18263
+ if (refreshSubscriptionRequest !== null && refreshSubscriptionRequest !== undefined) {
18264
+ if (refreshSubscriptionRequest instanceof RefreshSubscriptionRequest_1.RefreshSubscriptionRequest) {
18265
+ instanceId = refreshSubscriptionRequest.instanceId;
18266
+ subscriptionId = refreshSubscriptionRequest.subscriptionId;
18267
+ xLanguage = refreshSubscriptionRequest.xLanguage;
18268
+ }
18269
+ else {
18270
+ instanceId = refreshSubscriptionRequest['instance_id'];
18271
+ subscriptionId = refreshSubscriptionRequest['subscription_id'];
18272
+ xLanguage = refreshSubscriptionRequest['X-Language'];
18273
+ }
18274
+ }
18275
+ if (instanceId === null || instanceId === undefined) {
18276
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling refreshSubscription.');
18277
+ }
18278
+ if (subscriptionId === null || subscriptionId === undefined) {
18279
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling refreshSubscription.');
18280
+ }
18281
+ if (xLanguage !== undefined && xLanguage !== null) {
18282
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
18283
+ }
18284
+ options.pathParams = { 'instance_id': instanceId, 'subscription_id': subscriptionId, };
18285
+ options.headers = localVarHeaderParameter;
18286
+ return options;
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
+ },
17540
18331
  /**
17541
18332
  * 解除数据库帐号权限。
17542
18333
  *
@@ -17663,6 +18454,132 @@ const ParamCreater = function () {
17663
18454
  options.headers = localVarHeaderParameter;
17664
18455
  return options;
17665
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
+ },
18500
+ /**
18501
+ * 同步发布订阅元数据。
18502
+ *
18503
+ * Please refer to HUAWEI cloud API Explorer for details.
18504
+ */
18505
+ syncReplicationMetadata(syncReplicationMetadataRequest) {
18506
+ const options = {
18507
+ method: "POST",
18508
+ url: "/v3/{project_id}/instances/{instance_id}/replication/metadata/sync",
18509
+ contentType: "application/json",
18510
+ queryParams: {},
18511
+ pathParams: {},
18512
+ headers: {}
18513
+ };
18514
+ const localVarHeaderParameter = {};
18515
+ let instanceId;
18516
+ let xLanguage;
18517
+ if (syncReplicationMetadataRequest !== null && syncReplicationMetadataRequest !== undefined) {
18518
+ if (syncReplicationMetadataRequest instanceof SyncReplicationMetadataRequest_1.SyncReplicationMetadataRequest) {
18519
+ instanceId = syncReplicationMetadataRequest.instanceId;
18520
+ xLanguage = syncReplicationMetadataRequest.xLanguage;
18521
+ }
18522
+ else {
18523
+ instanceId = syncReplicationMetadataRequest['instance_id'];
18524
+ xLanguage = syncReplicationMetadataRequest['X-Language'];
18525
+ }
18526
+ }
18527
+ if (instanceId === null || instanceId === undefined) {
18528
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling syncReplicationMetadata.');
18529
+ }
18530
+ if (xLanguage !== undefined && xLanguage !== null) {
18531
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
18532
+ }
18533
+ options.pathParams = { 'instance_id': instanceId, };
18534
+ options.headers = localVarHeaderParameter;
18535
+ return options;
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
+ },
17666
18583
  /**
17667
18584
  * RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
17668
18585
  *