@huaweicloud/huaweicloud-sdk-rds 3.1.175 → 3.1.176

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 (69) hide show
  1. package/package.json +2 -2
  2. package/v3/RdsClient.d.ts +144 -0
  3. package/v3/RdsClient.d.ts.map +1 -1
  4. package/v3/RdsClient.js +342 -0
  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/InstanceRequest.d.ts +5 -0
  11. package/v3/model/InstanceRequest.d.ts.map +1 -1
  12. package/v3/model/InstanceRequest.js +10 -0
  13. package/v3/model/InstanceRequest.js.map +1 -1
  14. package/v3/model/ListDbAgentJobHistoryStepsRequest.d.ts +20 -0
  15. package/v3/model/ListDbAgentJobHistoryStepsRequest.d.ts.map +1 -0
  16. package/v3/model/ListDbAgentJobHistoryStepsRequest.js +49 -0
  17. package/v3/model/ListDbAgentJobHistoryStepsRequest.js.map +1 -0
  18. package/v3/model/ListDbAgentJobHistoryStepsResponse.d.ts +12 -0
  19. package/v3/model/ListDbAgentJobHistoryStepsResponse.d.ts.map +1 -0
  20. package/v3/model/ListDbAgentJobHistoryStepsResponse.js +25 -0
  21. package/v3/model/ListDbAgentJobHistoryStepsResponse.js.map +1 -0
  22. package/v3/model/ListDbAgentJobHistoryStepsResult.d.ts +26 -0
  23. package/v3/model/ListDbAgentJobHistoryStepsResult.d.ts.map +1 -0
  24. package/v3/model/ListDbAgentJobHistoryStepsResult.js +63 -0
  25. package/v3/model/ListDbAgentJobHistoryStepsResult.js.map +1 -0
  26. package/v3/model/ListDbAgentJobHistorysRequest.d.ts +24 -0
  27. package/v3/model/ListDbAgentJobHistorysRequest.d.ts.map +1 -0
  28. package/v3/model/ListDbAgentJobHistorysRequest.js +59 -0
  29. package/v3/model/ListDbAgentJobHistorysRequest.js.map +1 -0
  30. package/v3/model/ListDbAgentJobHistorysResponse.d.ts +12 -0
  31. package/v3/model/ListDbAgentJobHistorysResponse.d.ts.map +1 -0
  32. package/v3/model/ListDbAgentJobHistorysResponse.js +25 -0
  33. package/v3/model/ListDbAgentJobHistorysResponse.js.map +1 -0
  34. package/v3/model/ListDbAgentJobHistorysResult.d.ts +22 -0
  35. package/v3/model/ListDbAgentJobHistorysResult.d.ts.map +1 -0
  36. package/v3/model/ListDbAgentJobHistorysResult.js +53 -0
  37. package/v3/model/ListDbAgentJobHistorysResult.js.map +1 -0
  38. package/v3/model/ReduceVolumeObject.d.ts +5 -1
  39. package/v3/model/ReduceVolumeObject.d.ts.map +1 -1
  40. package/v3/model/ReduceVolumeObject.js +12 -1
  41. package/v3/model/ReduceVolumeObject.js.map +1 -1
  42. package/v3/model/RefreshPublicationSnapshotRequest.d.ts +16 -0
  43. package/v3/model/RefreshPublicationSnapshotRequest.d.ts.map +1 -0
  44. package/v3/model/RefreshPublicationSnapshotRequest.js +41 -0
  45. package/v3/model/RefreshPublicationSnapshotRequest.js.map +1 -0
  46. package/v3/model/RefreshPublicationSnapshotResponse.d.ts +5 -0
  47. package/v3/model/RefreshPublicationSnapshotResponse.d.ts.map +1 -0
  48. package/v3/model/RefreshPublicationSnapshotResponse.js +11 -0
  49. package/v3/model/RefreshPublicationSnapshotResponse.js.map +1 -0
  50. package/v3/model/RefreshSubscriptionRequest.d.ts +16 -0
  51. package/v3/model/RefreshSubscriptionRequest.d.ts.map +1 -0
  52. package/v3/model/RefreshSubscriptionRequest.js +41 -0
  53. package/v3/model/RefreshSubscriptionRequest.js.map +1 -0
  54. package/v3/model/RefreshSubscriptionResponse.d.ts +5 -0
  55. package/v3/model/RefreshSubscriptionResponse.d.ts.map +1 -0
  56. package/v3/model/RefreshSubscriptionResponse.js +11 -0
  57. package/v3/model/RefreshSubscriptionResponse.js.map +1 -0
  58. package/v3/model/SyncReplicationMetadataRequest.d.ts +12 -0
  59. package/v3/model/SyncReplicationMetadataRequest.d.ts.map +1 -0
  60. package/v3/model/SyncReplicationMetadataRequest.js +30 -0
  61. package/v3/model/SyncReplicationMetadataRequest.js.map +1 -0
  62. package/v3/model/SyncReplicationMetadataResponse.d.ts +9 -0
  63. package/v3/model/SyncReplicationMetadataResponse.d.ts.map +1 -0
  64. package/v3/model/SyncReplicationMetadataResponse.js +21 -0
  65. package/v3/model/SyncReplicationMetadataResponse.js.map +1 -0
  66. package/v3/public-api.d.ts +13 -0
  67. package/v3/public-api.d.ts.map +1 -1
  68. package/v3/public-api.js +13 -0
  69. package/v3/public-api.js.map +1 -1
package/v3/RdsClient.js CHANGED
@@ -87,6 +87,8 @@ const ListConfigurationsRequest_1 = require("./model/ListConfigurationsRequest")
87
87
  const ListDatabaseUserRoleRequest_1 = require("./model/ListDatabaseUserRoleRequest");
88
88
  const ListDatabasesRequest_1 = require("./model/ListDatabasesRequest");
89
89
  const ListDatastoresRequest_1 = require("./model/ListDatastoresRequest");
90
+ const ListDbAgentJobHistoryStepsRequest_1 = require("./model/ListDbAgentJobHistoryStepsRequest");
91
+ const ListDbAgentJobHistorysRequest_1 = require("./model/ListDbAgentJobHistorysRequest");
90
92
  const ListDbAgentJobsRequest_1 = require("./model/ListDbAgentJobsRequest");
91
93
  const ListDbUsersRequest_1 = require("./model/ListDbUsersRequest");
92
94
  const ListDistributionRequest_1 = require("./model/ListDistributionRequest");
@@ -164,6 +166,8 @@ const ModifyPostgresqlHbaConfRequest_1 = require("./model/ModifyPostgresqlHbaCon
164
166
  const ModifyPublicationRequest_1 = require("./model/ModifyPublicationRequest");
165
167
  const ModifyRdSforMySqlProxyRouteModeRequest_1 = require("./model/ModifyRdSforMySqlProxyRouteModeRequest");
166
168
  const NotifyReplaceNodeRequest_1 = require("./model/NotifyReplaceNodeRequest");
169
+ const RefreshPublicationSnapshotRequest_1 = require("./model/RefreshPublicationSnapshotRequest");
170
+ const RefreshSubscriptionRequest_1 = require("./model/RefreshSubscriptionRequest");
167
171
  const ResetPwdRequest_1 = require("./model/ResetPwdRequest");
168
172
  const ResetViewSqlStatisticsRequest_1 = require("./model/ResetViewSqlStatisticsRequest");
169
173
  const RestoreExistInstanceRequest_1 = require("./model/RestoreExistInstanceRequest");
@@ -242,6 +246,7 @@ const StopInstanceRequest_1 = require("./model/StopInstanceRequest");
242
246
  const SwitchLogReplayRequest_1 = require("./model/SwitchLogReplayRequest");
243
247
  const SwitchSqlLimitRequest_1 = require("./model/SwitchSqlLimitRequest");
244
248
  const SwitchSslRequest_1 = require("./model/SwitchSslRequest");
249
+ const SyncReplicationMetadataRequest_1 = require("./model/SyncReplicationMetadataRequest");
245
250
  const TransferBackupRequest_1 = require("./model/TransferBackupRequest");
246
251
  const UnlockNodeReadonlyStatusRequest_1 = require("./model/UnlockNodeReadonlyStatusRequest");
247
252
  const UpdateConfigurationRequest_1 = require("./model/UpdateConfigurationRequest");
@@ -4848,6 +4853,47 @@ class RdsClient {
4848
4853
  options['responseHeaders'] = [''];
4849
4854
  return this.hcClient.sendRequest(options);
4850
4855
  }
4856
+ /**
4857
+ * 查询数据库代理作业执行历史步骤。
4858
+ *
4859
+ * Please refer to HUAWEI cloud API Explorer for details.
4860
+ *
4861
+ * @summary 查询数据库代理作业执行历史步骤
4862
+ * @param {string} instanceId 实例ID
4863
+ * @param {string} historyId 作业执行历史ID
4864
+ * @param {string} [xLanguage] 语言。默认en-us。
4865
+ * @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
4866
+ * @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
4867
+ * @param {*} [options] Override http request option.
4868
+ * @throws {RequiredError}
4869
+ */
4870
+ listDbAgentJobHistorySteps(listDbAgentJobHistoryStepsRequest) {
4871
+ const options = (0, exports.ParamCreater)().listDbAgentJobHistorySteps(listDbAgentJobHistoryStepsRequest);
4872
+ // @ts-ignore
4873
+ options['responseHeaders'] = [''];
4874
+ return this.hcClient.sendRequest(options);
4875
+ }
4876
+ /**
4877
+ * 查询数据库代理作业执行历史。
4878
+ *
4879
+ * Please refer to HUAWEI cloud API Explorer for details.
4880
+ *
4881
+ * @summary 查询数据库代理作业执行历史
4882
+ * @param {string} instanceId 实例ID
4883
+ * @param {string} jobId 作业ID
4884
+ * @param {string} [xLanguage] 语言。默认en-us。
4885
+ * @param {string} [runStatus] 作业执行状态。默认不传,查询所有执行历史。 若传,则取值如下: failed:失败。 succeeded:成功。 retrying:重试中。 canceled:已取消。 in_progress:正在运行。
4886
+ * @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
4887
+ * @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
4888
+ * @param {*} [options] Override http request option.
4889
+ * @throws {RequiredError}
4890
+ */
4891
+ listDbAgentJobHistorys(listDbAgentJobHistorysRequest) {
4892
+ const options = (0, exports.ParamCreater)().listDbAgentJobHistorys(listDbAgentJobHistorysRequest);
4893
+ // @ts-ignore
4894
+ options['responseHeaders'] = [''];
4895
+ return this.hcClient.sendRequest(options);
4896
+ }
4851
4897
  /**
4852
4898
  * 查询数据库代理作业列表。
4853
4899
  *
@@ -5123,6 +5169,42 @@ class RdsClient {
5123
5169
  options['responseHeaders'] = [''];
5124
5170
  return this.hcClient.sendRequest(options);
5125
5171
  }
5172
+ /**
5173
+ * 重新生成发布快照。
5174
+ *
5175
+ * Please refer to HUAWEI cloud API Explorer for details.
5176
+ *
5177
+ * @summary 重新生成发布快照
5178
+ * @param {string} instanceId 实例ID
5179
+ * @param {string} publicationId 发布ID
5180
+ * @param {string} [xLanguage] 语言。默认en-us。
5181
+ * @param {*} [options] Override http request option.
5182
+ * @throws {RequiredError}
5183
+ */
5184
+ refreshPublicationSnapshot(refreshPublicationSnapshotRequest) {
5185
+ const options = (0, exports.ParamCreater)().refreshPublicationSnapshot(refreshPublicationSnapshotRequest);
5186
+ // @ts-ignore
5187
+ options['responseHeaders'] = [''];
5188
+ return this.hcClient.sendRequest(options);
5189
+ }
5190
+ /**
5191
+ * 重新生成订阅。
5192
+ *
5193
+ * Please refer to HUAWEI cloud API Explorer for details.
5194
+ *
5195
+ * @summary 重新生成订阅
5196
+ * @param {string} instanceId 实例ID
5197
+ * @param {string} subscriptionId 订阅ID
5198
+ * @param {string} [xLanguage] 语言。默认en-us。
5199
+ * @param {*} [options] Override http request option.
5200
+ * @throws {RequiredError}
5201
+ */
5202
+ refreshSubscription(refreshSubscriptionRequest) {
5203
+ const options = (0, exports.ParamCreater)().refreshSubscription(refreshSubscriptionRequest);
5204
+ // @ts-ignore
5205
+ options['responseHeaders'] = [''];
5206
+ return this.hcClient.sendRequest(options);
5207
+ }
5126
5208
  /**
5127
5209
  * 解除数据库帐号权限。
5128
5210
  *
@@ -5175,6 +5257,23 @@ class RdsClient {
5175
5257
  options['responseHeaders'] = [''];
5176
5258
  return this.hcClient.sendRequest(options);
5177
5259
  }
5260
+ /**
5261
+ * 同步发布订阅元数据。
5262
+ *
5263
+ * Please refer to HUAWEI cloud API Explorer for details.
5264
+ *
5265
+ * @summary 同步发布订阅元数据
5266
+ * @param {string} instanceId 实例ID
5267
+ * @param {string} [xLanguage] 语言。默认en-us。
5268
+ * @param {*} [options] Override http request option.
5269
+ * @throws {RequiredError}
5270
+ */
5271
+ syncReplicationMetadata(syncReplicationMetadataRequest) {
5272
+ const options = (0, exports.ParamCreater)().syncReplicationMetadata(syncReplicationMetadataRequest);
5273
+ // @ts-ignore
5274
+ options['responseHeaders'] = [''];
5275
+ return this.hcClient.sendRequest(options);
5276
+ }
5178
5277
  /**
5179
5278
  * RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
5180
5279
  *
@@ -16756,6 +16855,126 @@ const ParamCreater = function () {
16756
16855
  options.headers = localVarHeaderParameter;
16757
16856
  return options;
16758
16857
  },
16858
+ /**
16859
+ * 查询数据库代理作业执行历史步骤。
16860
+ *
16861
+ * Please refer to HUAWEI cloud API Explorer for details.
16862
+ */
16863
+ listDbAgentJobHistorySteps(listDbAgentJobHistoryStepsRequest) {
16864
+ const options = {
16865
+ method: "GET",
16866
+ url: "/v3/{project_id}/instances/{instance_id}/db-jobs/histories/{history_id}/steps",
16867
+ contentType: "application/json",
16868
+ queryParams: {},
16869
+ pathParams: {},
16870
+ headers: {}
16871
+ };
16872
+ const localVarHeaderParameter = {};
16873
+ const localVarQueryParameter = {};
16874
+ let instanceId;
16875
+ let historyId;
16876
+ let xLanguage;
16877
+ let offset;
16878
+ let limit;
16879
+ if (listDbAgentJobHistoryStepsRequest !== null && listDbAgentJobHistoryStepsRequest !== undefined) {
16880
+ if (listDbAgentJobHistoryStepsRequest instanceof ListDbAgentJobHistoryStepsRequest_1.ListDbAgentJobHistoryStepsRequest) {
16881
+ instanceId = listDbAgentJobHistoryStepsRequest.instanceId;
16882
+ historyId = listDbAgentJobHistoryStepsRequest.historyId;
16883
+ xLanguage = listDbAgentJobHistoryStepsRequest.xLanguage;
16884
+ offset = listDbAgentJobHistoryStepsRequest.offset;
16885
+ limit = listDbAgentJobHistoryStepsRequest.limit;
16886
+ }
16887
+ else {
16888
+ instanceId = listDbAgentJobHistoryStepsRequest['instance_id'];
16889
+ historyId = listDbAgentJobHistoryStepsRequest['history_id'];
16890
+ xLanguage = listDbAgentJobHistoryStepsRequest['X-Language'];
16891
+ offset = listDbAgentJobHistoryStepsRequest['offset'];
16892
+ limit = listDbAgentJobHistoryStepsRequest['limit'];
16893
+ }
16894
+ }
16895
+ if (instanceId === null || instanceId === undefined) {
16896
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listDbAgentJobHistorySteps.');
16897
+ }
16898
+ if (historyId === null || historyId === undefined) {
16899
+ throw new RequiredError('historyId', 'Required parameter historyId was null or undefined when calling listDbAgentJobHistorySteps.');
16900
+ }
16901
+ if (offset !== null && offset !== undefined) {
16902
+ localVarQueryParameter['offset'] = offset;
16903
+ }
16904
+ if (limit !== null && limit !== undefined) {
16905
+ localVarQueryParameter['limit'] = limit;
16906
+ }
16907
+ if (xLanguage !== undefined && xLanguage !== null) {
16908
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
16909
+ }
16910
+ options.queryParams = localVarQueryParameter;
16911
+ options.pathParams = { 'instance_id': instanceId, 'history_id': historyId, };
16912
+ options.headers = localVarHeaderParameter;
16913
+ return options;
16914
+ },
16915
+ /**
16916
+ * 查询数据库代理作业执行历史。
16917
+ *
16918
+ * Please refer to HUAWEI cloud API Explorer for details.
16919
+ */
16920
+ listDbAgentJobHistorys(listDbAgentJobHistorysRequest) {
16921
+ const options = {
16922
+ method: "GET",
16923
+ url: "/v3/{project_id}/instances/{instance_id}/db-jobs/{job_id}/histories",
16924
+ contentType: "application/json",
16925
+ queryParams: {},
16926
+ pathParams: {},
16927
+ headers: {}
16928
+ };
16929
+ const localVarHeaderParameter = {};
16930
+ const localVarQueryParameter = {};
16931
+ let instanceId;
16932
+ let jobId;
16933
+ let xLanguage;
16934
+ let runStatus;
16935
+ let offset;
16936
+ let limit;
16937
+ if (listDbAgentJobHistorysRequest !== null && listDbAgentJobHistorysRequest !== undefined) {
16938
+ if (listDbAgentJobHistorysRequest instanceof ListDbAgentJobHistorysRequest_1.ListDbAgentJobHistorysRequest) {
16939
+ instanceId = listDbAgentJobHistorysRequest.instanceId;
16940
+ jobId = listDbAgentJobHistorysRequest.jobId;
16941
+ xLanguage = listDbAgentJobHistorysRequest.xLanguage;
16942
+ runStatus = listDbAgentJobHistorysRequest.runStatus;
16943
+ offset = listDbAgentJobHistorysRequest.offset;
16944
+ limit = listDbAgentJobHistorysRequest.limit;
16945
+ }
16946
+ else {
16947
+ instanceId = listDbAgentJobHistorysRequest['instance_id'];
16948
+ jobId = listDbAgentJobHistorysRequest['job_id'];
16949
+ xLanguage = listDbAgentJobHistorysRequest['X-Language'];
16950
+ runStatus = listDbAgentJobHistorysRequest['run_status'];
16951
+ offset = listDbAgentJobHistorysRequest['offset'];
16952
+ limit = listDbAgentJobHistorysRequest['limit'];
16953
+ }
16954
+ }
16955
+ if (instanceId === null || instanceId === undefined) {
16956
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listDbAgentJobHistorys.');
16957
+ }
16958
+ if (jobId === null || jobId === undefined) {
16959
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listDbAgentJobHistorys.');
16960
+ }
16961
+ if (runStatus !== null && runStatus !== undefined) {
16962
+ localVarQueryParameter['run_status'] = runStatus;
16963
+ }
16964
+ if (offset !== null && offset !== undefined) {
16965
+ localVarQueryParameter['offset'] = offset;
16966
+ }
16967
+ if (limit !== null && limit !== undefined) {
16968
+ localVarQueryParameter['limit'] = limit;
16969
+ }
16970
+ if (xLanguage !== undefined && xLanguage !== null) {
16971
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
16972
+ }
16973
+ options.queryParams = localVarQueryParameter;
16974
+ options.pathParams = { 'instance_id': instanceId, 'job_id': jobId, };
16975
+ options.headers = localVarHeaderParameter;
16976
+ return options;
16977
+ },
16759
16978
  /**
16760
16979
  * 查询数据库代理作业列表。
16761
16980
  *
@@ -17537,6 +17756,92 @@ const ParamCreater = function () {
17537
17756
  options.headers = localVarHeaderParameter;
17538
17757
  return options;
17539
17758
  },
17759
+ /**
17760
+ * 重新生成发布快照。
17761
+ *
17762
+ * Please refer to HUAWEI cloud API Explorer for details.
17763
+ */
17764
+ refreshPublicationSnapshot(refreshPublicationSnapshotRequest) {
17765
+ const options = {
17766
+ method: "POST",
17767
+ url: "/v3/{project_id}/instances/{instance_id}/replication/publications/{publication_id}/reinitialize",
17768
+ contentType: "application/json",
17769
+ queryParams: {},
17770
+ pathParams: {},
17771
+ headers: {}
17772
+ };
17773
+ const localVarHeaderParameter = {};
17774
+ let instanceId;
17775
+ let publicationId;
17776
+ let xLanguage;
17777
+ if (refreshPublicationSnapshotRequest !== null && refreshPublicationSnapshotRequest !== undefined) {
17778
+ if (refreshPublicationSnapshotRequest instanceof RefreshPublicationSnapshotRequest_1.RefreshPublicationSnapshotRequest) {
17779
+ instanceId = refreshPublicationSnapshotRequest.instanceId;
17780
+ publicationId = refreshPublicationSnapshotRequest.publicationId;
17781
+ xLanguage = refreshPublicationSnapshotRequest.xLanguage;
17782
+ }
17783
+ else {
17784
+ instanceId = refreshPublicationSnapshotRequest['instance_id'];
17785
+ publicationId = refreshPublicationSnapshotRequest['publication_id'];
17786
+ xLanguage = refreshPublicationSnapshotRequest['X-Language'];
17787
+ }
17788
+ }
17789
+ if (instanceId === null || instanceId === undefined) {
17790
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling refreshPublicationSnapshot.');
17791
+ }
17792
+ if (publicationId === null || publicationId === undefined) {
17793
+ throw new RequiredError('publicationId', 'Required parameter publicationId was null or undefined when calling refreshPublicationSnapshot.');
17794
+ }
17795
+ if (xLanguage !== undefined && xLanguage !== null) {
17796
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
17797
+ }
17798
+ options.pathParams = { 'instance_id': instanceId, 'publication_id': publicationId, };
17799
+ options.headers = localVarHeaderParameter;
17800
+ return options;
17801
+ },
17802
+ /**
17803
+ * 重新生成订阅。
17804
+ *
17805
+ * Please refer to HUAWEI cloud API Explorer for details.
17806
+ */
17807
+ refreshSubscription(refreshSubscriptionRequest) {
17808
+ const options = {
17809
+ method: "POST",
17810
+ url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions/{subscription_id}/reinitialize",
17811
+ contentType: "application/json",
17812
+ queryParams: {},
17813
+ pathParams: {},
17814
+ headers: {}
17815
+ };
17816
+ const localVarHeaderParameter = {};
17817
+ let instanceId;
17818
+ let subscriptionId;
17819
+ let xLanguage;
17820
+ if (refreshSubscriptionRequest !== null && refreshSubscriptionRequest !== undefined) {
17821
+ if (refreshSubscriptionRequest instanceof RefreshSubscriptionRequest_1.RefreshSubscriptionRequest) {
17822
+ instanceId = refreshSubscriptionRequest.instanceId;
17823
+ subscriptionId = refreshSubscriptionRequest.subscriptionId;
17824
+ xLanguage = refreshSubscriptionRequest.xLanguage;
17825
+ }
17826
+ else {
17827
+ instanceId = refreshSubscriptionRequest['instance_id'];
17828
+ subscriptionId = refreshSubscriptionRequest['subscription_id'];
17829
+ xLanguage = refreshSubscriptionRequest['X-Language'];
17830
+ }
17831
+ }
17832
+ if (instanceId === null || instanceId === undefined) {
17833
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling refreshSubscription.');
17834
+ }
17835
+ if (subscriptionId === null || subscriptionId === undefined) {
17836
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling refreshSubscription.');
17837
+ }
17838
+ if (xLanguage !== undefined && xLanguage !== null) {
17839
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
17840
+ }
17841
+ options.pathParams = { 'instance_id': instanceId, 'subscription_id': subscriptionId, };
17842
+ options.headers = localVarHeaderParameter;
17843
+ return options;
17844
+ },
17540
17845
  /**
17541
17846
  * 解除数据库帐号权限。
17542
17847
  *
@@ -17663,6 +17968,43 @@ const ParamCreater = function () {
17663
17968
  options.headers = localVarHeaderParameter;
17664
17969
  return options;
17665
17970
  },
17971
+ /**
17972
+ * 同步发布订阅元数据。
17973
+ *
17974
+ * Please refer to HUAWEI cloud API Explorer for details.
17975
+ */
17976
+ syncReplicationMetadata(syncReplicationMetadataRequest) {
17977
+ const options = {
17978
+ method: "POST",
17979
+ url: "/v3/{project_id}/instances/{instance_id}/replication/metadata/sync",
17980
+ contentType: "application/json",
17981
+ queryParams: {},
17982
+ pathParams: {},
17983
+ headers: {}
17984
+ };
17985
+ const localVarHeaderParameter = {};
17986
+ let instanceId;
17987
+ let xLanguage;
17988
+ if (syncReplicationMetadataRequest !== null && syncReplicationMetadataRequest !== undefined) {
17989
+ if (syncReplicationMetadataRequest instanceof SyncReplicationMetadataRequest_1.SyncReplicationMetadataRequest) {
17990
+ instanceId = syncReplicationMetadataRequest.instanceId;
17991
+ xLanguage = syncReplicationMetadataRequest.xLanguage;
17992
+ }
17993
+ else {
17994
+ instanceId = syncReplicationMetadataRequest['instance_id'];
17995
+ xLanguage = syncReplicationMetadataRequest['X-Language'];
17996
+ }
17997
+ }
17998
+ if (instanceId === null || instanceId === undefined) {
17999
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling syncReplicationMetadata.');
18000
+ }
18001
+ if (xLanguage !== undefined && xLanguage !== null) {
18002
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
18003
+ }
18004
+ options.pathParams = { 'instance_id': instanceId, };
18005
+ options.headers = localVarHeaderParameter;
18006
+ return options;
18007
+ },
17666
18008
  /**
17667
18009
  * RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
17668
18010
  *