@huaweicloud/huaweicloud-sdk-rds 3.1.174 → 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.
- package/package.json +2 -2
- package/v3/RdsClient.d.ts +436 -0
- package/v3/RdsClient.d.ts.map +1 -1
- package/v3/RdsClient.js +1086 -50
- package/v3/RdsClient.js.map +1 -1
- package/v3/model/AutoEnlargeStrategyForConsoleApi.d.ts +12 -0
- package/v3/model/AutoEnlargeStrategyForConsoleApi.d.ts.map +1 -0
- package/v3/model/AutoEnlargeStrategyForConsoleApi.js +25 -0
- package/v3/model/AutoEnlargeStrategyForConsoleApi.js.map +1 -0
- package/v3/model/BatchModifySubscriptionRequest.d.ts +15 -0
- package/v3/model/BatchModifySubscriptionRequest.d.ts.map +1 -0
- package/v3/model/BatchModifySubscriptionRequest.js +34 -0
- package/v3/model/BatchModifySubscriptionRequest.js.map +1 -0
- package/v3/model/BatchModifySubscriptionResponse.d.ts +8 -0
- package/v3/model/BatchModifySubscriptionResponse.d.ts.map +1 -0
- package/v3/model/BatchModifySubscriptionResponse.js +15 -0
- package/v3/model/BatchModifySubscriptionResponse.js.map +1 -0
- package/v3/model/BatchOperateResponseInfo.d.ts +12 -0
- package/v3/model/BatchOperateResponseInfo.d.ts.map +1 -0
- package/v3/model/BatchOperateResponseInfo.js +27 -0
- package/v3/model/BatchOperateResponseInfo.js.map +1 -0
- package/v3/model/CollectPublicationMonitorRequest.d.ts +16 -0
- package/v3/model/CollectPublicationMonitorRequest.d.ts.map +1 -0
- package/v3/model/CollectPublicationMonitorRequest.js +41 -0
- package/v3/model/CollectPublicationMonitorRequest.js.map +1 -0
- package/v3/model/CollectPublicationMonitorResponse.d.ts +31 -0
- package/v3/model/CollectPublicationMonitorResponse.d.ts.map +1 -0
- package/v3/model/CollectPublicationMonitorResponse.js +75 -0
- package/v3/model/CollectPublicationMonitorResponse.js.map +1 -0
- package/v3/model/CollectSubscriptionMonitorRequest.d.ts +16 -0
- package/v3/model/CollectSubscriptionMonitorRequest.d.ts.map +1 -0
- package/v3/model/CollectSubscriptionMonitorRequest.js +41 -0
- package/v3/model/CollectSubscriptionMonitorRequest.js.map +1 -0
- package/v3/model/CollectSubscriptionMonitorResponse.d.ts +25 -0
- package/v3/model/CollectSubscriptionMonitorResponse.d.ts.map +1 -0
- package/v3/model/CollectSubscriptionMonitorResponse.js +59 -0
- package/v3/model/CollectSubscriptionMonitorResponse.js.map +1 -0
- package/v3/model/DeleteDistributionRequest.d.ts +12 -0
- package/v3/model/DeleteDistributionRequest.d.ts.map +1 -0
- package/v3/model/DeleteDistributionRequest.js +30 -0
- package/v3/model/DeleteDistributionRequest.js.map +1 -0
- package/v3/model/DeleteDistributionResponse.d.ts +9 -0
- package/v3/model/DeleteDistributionResponse.d.ts.map +1 -0
- package/v3/model/DeleteDistributionResponse.js +21 -0
- package/v3/model/DeleteDistributionResponse.js.map +1 -0
- package/v3/model/DeleteSubscriptionRequest.d.ts +15 -0
- package/v3/model/DeleteSubscriptionRequest.d.ts.map +1 -0
- package/v3/model/DeleteSubscriptionRequest.js +34 -0
- package/v3/model/DeleteSubscriptionRequest.js.map +1 -0
- package/v3/model/DeleteSubscriptionRequestBody.d.ts +12 -0
- package/v3/model/DeleteSubscriptionRequestBody.d.ts.map +1 -0
- package/v3/model/DeleteSubscriptionRequestBody.js +30 -0
- package/v3/model/DeleteSubscriptionRequestBody.js.map +1 -0
- package/v3/model/DeleteSubscriptionResponse.d.ts +9 -0
- package/v3/model/DeleteSubscriptionResponse.d.ts.map +1 -0
- package/v3/model/DeleteSubscriptionResponse.js +21 -0
- package/v3/model/DeleteSubscriptionResponse.js.map +1 -0
- package/v3/model/InstancePublicatiosInfo.d.ts +20 -0
- package/v3/model/InstancePublicatiosInfo.d.ts.map +1 -0
- package/v3/model/InstancePublicatiosInfo.js +49 -0
- package/v3/model/InstancePublicatiosInfo.js.map +1 -0
- package/v3/model/InstanceRequest.d.ts +5 -0
- package/v3/model/InstanceRequest.d.ts.map +1 -1
- package/v3/model/InstanceRequest.js +10 -0
- package/v3/model/InstanceRequest.js.map +1 -1
- package/v3/model/ListDbAgentJobHistoryStepsRequest.d.ts +20 -0
- package/v3/model/ListDbAgentJobHistoryStepsRequest.d.ts.map +1 -0
- package/v3/model/ListDbAgentJobHistoryStepsRequest.js +49 -0
- package/v3/model/ListDbAgentJobHistoryStepsRequest.js.map +1 -0
- package/v3/model/ListDbAgentJobHistoryStepsResponse.d.ts +12 -0
- package/v3/model/ListDbAgentJobHistoryStepsResponse.d.ts.map +1 -0
- package/v3/model/ListDbAgentJobHistoryStepsResponse.js +25 -0
- package/v3/model/ListDbAgentJobHistoryStepsResponse.js.map +1 -0
- package/v3/model/ListDbAgentJobHistoryStepsResult.d.ts +26 -0
- package/v3/model/ListDbAgentJobHistoryStepsResult.d.ts.map +1 -0
- package/v3/model/ListDbAgentJobHistoryStepsResult.js +63 -0
- package/v3/model/ListDbAgentJobHistoryStepsResult.js.map +1 -0
- package/v3/model/ListDbAgentJobHistorysRequest.d.ts +24 -0
- package/v3/model/ListDbAgentJobHistorysRequest.d.ts.map +1 -0
- package/v3/model/ListDbAgentJobHistorysRequest.js +59 -0
- package/v3/model/ListDbAgentJobHistorysRequest.js.map +1 -0
- package/v3/model/ListDbAgentJobHistorysResponse.d.ts +12 -0
- package/v3/model/ListDbAgentJobHistorysResponse.d.ts.map +1 -0
- package/v3/model/ListDbAgentJobHistorysResponse.js +25 -0
- package/v3/model/ListDbAgentJobHistorysResponse.js.map +1 -0
- package/v3/model/ListDbAgentJobHistorysResult.d.ts +22 -0
- package/v3/model/ListDbAgentJobHistorysResult.d.ts.map +1 -0
- package/v3/model/ListDbAgentJobHistorysResult.js +53 -0
- package/v3/model/ListDbAgentJobHistorysResult.js.map +1 -0
- package/v3/model/ListDbAgentJobsRequest.d.ts +20 -0
- package/v3/model/ListDbAgentJobsRequest.d.ts.map +1 -0
- package/v3/model/ListDbAgentJobsRequest.js +48 -0
- package/v3/model/ListDbAgentJobsRequest.js.map +1 -0
- package/v3/model/ListDbAgentJobsResponse.d.ts +12 -0
- package/v3/model/ListDbAgentJobsResponse.d.ts.map +1 -0
- package/v3/model/ListDbAgentJobsResponse.js +25 -0
- package/v3/model/ListDbAgentJobsResponse.js.map +1 -0
- package/v3/model/ListDbAgentJobsResult.d.ts +44 -0
- package/v3/model/ListDbAgentJobsResult.d.ts.map +1 -0
- package/v3/model/ListDbAgentJobsResult.js +109 -0
- package/v3/model/ListDbAgentJobsResult.js.map +1 -0
- package/v3/model/ListPublications4SubscriptionRequest.d.ts +15 -0
- package/v3/model/ListPublications4SubscriptionRequest.d.ts.map +1 -0
- package/v3/model/ListPublications4SubscriptionRequest.js +34 -0
- package/v3/model/ListPublications4SubscriptionRequest.js.map +1 -0
- package/v3/model/ListPublications4SubscriptionRequestBody.d.ts +20 -0
- package/v3/model/ListPublications4SubscriptionRequestBody.d.ts.map +1 -0
- package/v3/model/ListPublications4SubscriptionRequestBody.js +47 -0
- package/v3/model/ListPublications4SubscriptionRequestBody.js.map +1 -0
- package/v3/model/ListPublications4SubscriptionResponse.d.ts +14 -0
- package/v3/model/ListPublications4SubscriptionResponse.d.ts.map +1 -0
- package/v3/model/ListPublications4SubscriptionResponse.js +31 -0
- package/v3/model/ListPublications4SubscriptionResponse.js.map +1 -0
- package/v3/model/ListReplicationProfilesRequest.d.ts +20 -0
- package/v3/model/ListReplicationProfilesRequest.d.ts.map +1 -0
- package/v3/model/ListReplicationProfilesRequest.js +48 -0
- package/v3/model/ListReplicationProfilesRequest.js.map +1 -0
- package/v3/model/ListReplicationProfilesResponse.d.ts +12 -0
- package/v3/model/ListReplicationProfilesResponse.d.ts.map +1 -0
- package/v3/model/ListReplicationProfilesResponse.js +25 -0
- package/v3/model/ListReplicationProfilesResponse.js.map +1 -0
- package/v3/model/ListReplicationProfilesResult.d.ts +22 -0
- package/v3/model/ListReplicationProfilesResult.d.ts.map +1 -0
- package/v3/model/ListReplicationProfilesResult.js +53 -0
- package/v3/model/ListReplicationProfilesResult.js.map +1 -0
- package/v3/model/ListSubscriptionInfo.d.ts +43 -0
- package/v3/model/ListSubscriptionInfo.d.ts.map +1 -0
- package/v3/model/ListSubscriptionInfo.js +97 -0
- package/v3/model/ListSubscriptionInfo.js.map +1 -0
- package/v3/model/ListSubscriptionsRequest.d.ts +32 -0
- package/v3/model/ListSubscriptionsRequest.d.ts.map +1 -0
- package/v3/model/ListSubscriptionsRequest.js +78 -0
- package/v3/model/ListSubscriptionsRequest.js.map +1 -0
- package/v3/model/ListSubscriptionsResponse.d.ts +12 -0
- package/v3/model/ListSubscriptionsResponse.d.ts.map +1 -0
- package/v3/model/ListSubscriptionsResponse.js +25 -0
- package/v3/model/ListSubscriptionsResponse.js.map +1 -0
- package/v3/model/ModifySubscriptionsRequestBody.d.ts +13 -0
- package/v3/model/ModifySubscriptionsRequestBody.d.ts.map +1 -0
- package/v3/model/ModifySubscriptionsRequestBody.js +31 -0
- package/v3/model/ModifySubscriptionsRequestBody.js.map +1 -0
- package/v3/model/ReduceVolumeObject.d.ts +5 -1
- package/v3/model/ReduceVolumeObject.d.ts.map +1 -1
- package/v3/model/ReduceVolumeObject.js +12 -1
- package/v3/model/ReduceVolumeObject.js.map +1 -1
- package/v3/model/RefreshPublicationSnapshotRequest.d.ts +16 -0
- package/v3/model/RefreshPublicationSnapshotRequest.d.ts.map +1 -0
- package/v3/model/RefreshPublicationSnapshotRequest.js +41 -0
- package/v3/model/RefreshPublicationSnapshotRequest.js.map +1 -0
- package/v3/model/RefreshPublicationSnapshotResponse.d.ts +5 -0
- package/v3/model/RefreshPublicationSnapshotResponse.d.ts.map +1 -0
- package/v3/model/RefreshPublicationSnapshotResponse.js +11 -0
- package/v3/model/RefreshPublicationSnapshotResponse.js.map +1 -0
- package/v3/model/RefreshSubscriptionRequest.d.ts +16 -0
- package/v3/model/RefreshSubscriptionRequest.d.ts.map +1 -0
- package/v3/model/RefreshSubscriptionRequest.js +41 -0
- package/v3/model/RefreshSubscriptionRequest.js.map +1 -0
- package/v3/model/RefreshSubscriptionResponse.d.ts +5 -0
- package/v3/model/RefreshSubscriptionResponse.d.ts.map +1 -0
- package/v3/model/RefreshSubscriptionResponse.js +11 -0
- package/v3/model/RefreshSubscriptionResponse.js.map +1 -0
- package/v3/model/Subscription4InstanceInfo.d.ts +12 -0
- package/v3/model/Subscription4InstanceInfo.d.ts.map +1 -0
- package/v3/model/Subscription4InstanceInfo.js +29 -0
- package/v3/model/Subscription4InstanceInfo.js.map +1 -0
- package/v3/model/Subscription4PublicationInfo.d.ts +16 -0
- package/v3/model/Subscription4PublicationInfo.d.ts.map +1 -0
- package/v3/model/Subscription4PublicationInfo.js +39 -0
- package/v3/model/Subscription4PublicationInfo.js.map +1 -0
- package/v3/model/SyncReplicationMetadataRequest.d.ts +12 -0
- package/v3/model/SyncReplicationMetadataRequest.d.ts.map +1 -0
- package/v3/model/SyncReplicationMetadataRequest.js +30 -0
- package/v3/model/SyncReplicationMetadataRequest.js.map +1 -0
- package/v3/model/SyncReplicationMetadataResponse.d.ts +9 -0
- package/v3/model/SyncReplicationMetadataResponse.d.ts.map +1 -0
- package/v3/model/SyncReplicationMetadataResponse.js +21 -0
- package/v3/model/SyncReplicationMetadataResponse.js.map +1 -0
- package/v3/model/ValidateConnectionUserInfo.d.ts +20 -0
- package/v3/model/ValidateConnectionUserInfo.d.ts.map +1 -0
- package/v3/model/ValidateConnectionUserInfo.js +49 -0
- package/v3/model/ValidateConnectionUserInfo.js.map +1 -0
- package/v3/model/ValidateInstanceConnectionRequest.d.ts +15 -0
- package/v3/model/ValidateInstanceConnectionRequest.d.ts.map +1 -0
- package/v3/model/ValidateInstanceConnectionRequest.js +34 -0
- package/v3/model/ValidateInstanceConnectionRequest.js.map +1 -0
- package/v3/model/ValidateInstanceConnectionRequestBody.d.ts +13 -0
- package/v3/model/ValidateInstanceConnectionRequestBody.d.ts.map +1 -0
- package/v3/model/ValidateInstanceConnectionRequestBody.js +29 -0
- package/v3/model/ValidateInstanceConnectionRequestBody.js.map +1 -0
- package/v3/model/ValidateInstanceConnectionResponse.d.ts +5 -0
- package/v3/model/ValidateInstanceConnectionResponse.d.ts.map +1 -0
- package/v3/model/ValidateInstanceConnectionResponse.js +11 -0
- package/v3/model/ValidateInstanceConnectionResponse.js.map +1 -0
- package/v3/public-api.d.ts +45 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +45 -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 BatchModifySubscriptionRequest_1 = require("./model/BatchModifySubscriptionRequest");
|
|
13
14
|
const BatchRestoreDatabaseRequest_1 = require("./model/BatchRestoreDatabaseRequest");
|
|
14
15
|
const BatchRestorePostgreSqlTablesRequest_1 = require("./model/BatchRestorePostgreSqlTablesRequest");
|
|
15
16
|
const BatchStopInstanceRequest_1 = require("./model/BatchStopInstanceRequest");
|
|
@@ -22,6 +23,8 @@ const ChangeProxyScaleRequest_1 = require("./model/ChangeProxyScaleRequest");
|
|
|
22
23
|
const ChangeTheDelayThresholdRequest_1 = require("./model/ChangeTheDelayThresholdRequest");
|
|
23
24
|
const CheckInstanceForUpgradeRequest_1 = require("./model/CheckInstanceForUpgradeRequest");
|
|
24
25
|
const CheckWeakpwdRequest_1 = require("./model/CheckWeakpwdRequest");
|
|
26
|
+
const CollectPublicationMonitorRequest_1 = require("./model/CollectPublicationMonitorRequest");
|
|
27
|
+
const CollectSubscriptionMonitorRequest_1 = require("./model/CollectSubscriptionMonitorRequest");
|
|
25
28
|
const CopyConfigurationRequest_1 = require("./model/CopyConfigurationRequest");
|
|
26
29
|
const CopyDatabaseRequest_1 = require("./model/CopyDatabaseRequest");
|
|
27
30
|
const CreateConfigurationRequest_1 = require("./model/CreateConfigurationRequest");
|
|
@@ -47,6 +50,7 @@ const DeleteConfigurationRequest_1 = require("./model/DeleteConfigurationRequest
|
|
|
47
50
|
const DeleteDatabaseRequest_1 = require("./model/DeleteDatabaseRequest");
|
|
48
51
|
const DeleteDbUserRequest_1 = require("./model/DeleteDbUserRequest");
|
|
49
52
|
const DeleteDisasterRecoveryRequest_1 = require("./model/DeleteDisasterRecoveryRequest");
|
|
53
|
+
const DeleteDistributionRequest_1 = require("./model/DeleteDistributionRequest");
|
|
50
54
|
const DeleteInstanceRequest_1 = require("./model/DeleteInstanceRequest");
|
|
51
55
|
const DeleteJobRequest_1 = require("./model/DeleteJobRequest");
|
|
52
56
|
const DeleteLogLtsConfigsRequest_1 = require("./model/DeleteLogLtsConfigsRequest");
|
|
@@ -62,6 +66,7 @@ const DeleteSqlLimitRequest_1 = require("./model/DeleteSqlLimitRequest");
|
|
|
62
66
|
const DeleteSqlserverDatabaseExRequest_1 = require("./model/DeleteSqlserverDatabaseExRequest");
|
|
63
67
|
const DeleteSqlserverDatabaseRequest_1 = require("./model/DeleteSqlserverDatabaseRequest");
|
|
64
68
|
const DeleteSqlserverDbUserRequest_1 = require("./model/DeleteSqlserverDbUserRequest");
|
|
69
|
+
const DeleteSubscriptionRequest_1 = require("./model/DeleteSubscriptionRequest");
|
|
65
70
|
const DownloadErrorlogRequest_1 = require("./model/DownloadErrorlogRequest");
|
|
66
71
|
const DownloadSlowlogRequest_1 = require("./model/DownloadSlowlogRequest");
|
|
67
72
|
const EnableConfigurationRequest_1 = require("./model/EnableConfigurationRequest");
|
|
@@ -82,6 +87,9 @@ const ListConfigurationsRequest_1 = require("./model/ListConfigurationsRequest")
|
|
|
82
87
|
const ListDatabaseUserRoleRequest_1 = require("./model/ListDatabaseUserRoleRequest");
|
|
83
88
|
const ListDatabasesRequest_1 = require("./model/ListDatabasesRequest");
|
|
84
89
|
const ListDatastoresRequest_1 = require("./model/ListDatastoresRequest");
|
|
90
|
+
const ListDbAgentJobHistoryStepsRequest_1 = require("./model/ListDbAgentJobHistoryStepsRequest");
|
|
91
|
+
const ListDbAgentJobHistorysRequest_1 = require("./model/ListDbAgentJobHistorysRequest");
|
|
92
|
+
const ListDbAgentJobsRequest_1 = require("./model/ListDbAgentJobsRequest");
|
|
85
93
|
const ListDbUsersRequest_1 = require("./model/ListDbUsersRequest");
|
|
86
94
|
const ListDistributionRequest_1 = require("./model/ListDistributionRequest");
|
|
87
95
|
const ListDistributorInstancesRequest_1 = require("./model/ListDistributorInstancesRequest");
|
|
@@ -120,11 +128,13 @@ const ListPostgresqlHbaInfoRequest_1 = require("./model/ListPostgresqlHbaInfoReq
|
|
|
120
128
|
const ListPostgresqlListHistoryTablesRequest_1 = require("./model/ListPostgresqlListHistoryTablesRequest");
|
|
121
129
|
const ListPredefinedTagRequest_1 = require("./model/ListPredefinedTagRequest");
|
|
122
130
|
const ListProjectTagsRequest_1 = require("./model/ListProjectTagsRequest");
|
|
131
|
+
const ListPublications4SubscriptionRequest_1 = require("./model/ListPublications4SubscriptionRequest");
|
|
123
132
|
const ListPublicationsRequest_1 = require("./model/ListPublicationsRequest");
|
|
124
133
|
const ListRdSforMySqlProxyRequest_1 = require("./model/ListRdSforMySqlProxyRequest");
|
|
125
134
|
const ListRdSforMysqlProxyFlavorsRequest_1 = require("./model/ListRdSforMysqlProxyFlavorsRequest");
|
|
126
135
|
const ListReadOnlyReplayDatabaseRequest_1 = require("./model/ListReadOnlyReplayDatabaseRequest");
|
|
127
136
|
const ListRecycleInstancesRequest_1 = require("./model/ListRecycleInstancesRequest");
|
|
137
|
+
const ListReplicationProfilesRequest_1 = require("./model/ListReplicationProfilesRequest");
|
|
128
138
|
const ListRestoreTimesRequest_1 = require("./model/ListRestoreTimesRequest");
|
|
129
139
|
const ListScheduleTasksRequest_1 = require("./model/ListScheduleTasksRequest");
|
|
130
140
|
const ListShareBackupsRequest_1 = require("./model/ListShareBackupsRequest");
|
|
@@ -143,6 +153,7 @@ const ListSqlserverDbUsersRequest_1 = require("./model/ListSqlserverDbUsersReque
|
|
|
143
153
|
const ListSslCertDownloadLinkRequest_1 = require("./model/ListSslCertDownloadLinkRequest");
|
|
144
154
|
const ListStorageTypesRequest_1 = require("./model/ListStorageTypesRequest");
|
|
145
155
|
const ListSubscriberInstancesRequest_1 = require("./model/ListSubscriberInstancesRequest");
|
|
156
|
+
const ListSubscriptionsRequest_1 = require("./model/ListSubscriptionsRequest");
|
|
146
157
|
const ListTasksRequest_1 = require("./model/ListTasksRequest");
|
|
147
158
|
const ListTopSqlsRequest_1 = require("./model/ListTopSqlsRequest");
|
|
148
159
|
const ListUpdateBackupEnhancePolicyRequest_1 = require("./model/ListUpdateBackupEnhancePolicyRequest");
|
|
@@ -155,6 +166,8 @@ const ModifyPostgresqlHbaConfRequest_1 = require("./model/ModifyPostgresqlHbaCon
|
|
|
155
166
|
const ModifyPublicationRequest_1 = require("./model/ModifyPublicationRequest");
|
|
156
167
|
const ModifyRdSforMySqlProxyRouteModeRequest_1 = require("./model/ModifyRdSforMySqlProxyRouteModeRequest");
|
|
157
168
|
const NotifyReplaceNodeRequest_1 = require("./model/NotifyReplaceNodeRequest");
|
|
169
|
+
const RefreshPublicationSnapshotRequest_1 = require("./model/RefreshPublicationSnapshotRequest");
|
|
170
|
+
const RefreshSubscriptionRequest_1 = require("./model/RefreshSubscriptionRequest");
|
|
158
171
|
const ResetPwdRequest_1 = require("./model/ResetPwdRequest");
|
|
159
172
|
const ResetViewSqlStatisticsRequest_1 = require("./model/ResetViewSqlStatisticsRequest");
|
|
160
173
|
const RestoreExistInstanceRequest_1 = require("./model/RestoreExistInstanceRequest");
|
|
@@ -233,6 +246,7 @@ const StopInstanceRequest_1 = require("./model/StopInstanceRequest");
|
|
|
233
246
|
const SwitchLogReplayRequest_1 = require("./model/SwitchLogReplayRequest");
|
|
234
247
|
const SwitchSqlLimitRequest_1 = require("./model/SwitchSqlLimitRequest");
|
|
235
248
|
const SwitchSslRequest_1 = require("./model/SwitchSslRequest");
|
|
249
|
+
const SyncReplicationMetadataRequest_1 = require("./model/SyncReplicationMetadataRequest");
|
|
236
250
|
const TransferBackupRequest_1 = require("./model/TransferBackupRequest");
|
|
237
251
|
const UnlockNodeReadonlyStatusRequest_1 = require("./model/UnlockNodeReadonlyStatusRequest");
|
|
238
252
|
const UpdateConfigurationRequest_1 = require("./model/UpdateConfigurationRequest");
|
|
@@ -262,6 +276,7 @@ const UpgradeDbMajorVersionRequest_1 = require("./model/UpgradeDbMajorVersionReq
|
|
|
262
276
|
const UpgradeDbVersionNewRequest_1 = require("./model/UpgradeDbVersionNewRequest");
|
|
263
277
|
const UpgradeDbVersionRequest_1 = require("./model/UpgradeDbVersionRequest");
|
|
264
278
|
const UpgradeLargeVersionRequest_1 = require("./model/UpgradeLargeVersionRequest");
|
|
279
|
+
const ValidateInstanceConnectionRequest_1 = require("./model/ValidateInstanceConnectionRequest");
|
|
265
280
|
class RdsClient {
|
|
266
281
|
static newBuilder() {
|
|
267
282
|
let client = new ClientBuilder_1.ClientBuilder(newClient);
|
|
@@ -4549,6 +4564,60 @@ class RdsClient {
|
|
|
4549
4564
|
options['responseHeaders'] = [''];
|
|
4550
4565
|
return this.hcClient.sendRequest(options);
|
|
4551
4566
|
}
|
|
4567
|
+
/**
|
|
4568
|
+
* 批量修改订阅
|
|
4569
|
+
*
|
|
4570
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4571
|
+
*
|
|
4572
|
+
* @summary 批量修改订阅
|
|
4573
|
+
* @param {string} instanceId 实例ID。
|
|
4574
|
+
* @param {ModifySubscriptionsRequestBody} batchModifySubscriptionRequestBody 批量修改订阅请求体。
|
|
4575
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4576
|
+
* @param {*} [options] Override http request option.
|
|
4577
|
+
* @throws {RequiredError}
|
|
4578
|
+
*/
|
|
4579
|
+
batchModifySubscription(batchModifySubscriptionRequest) {
|
|
4580
|
+
const options = (0, exports.ParamCreater)().batchModifySubscription(batchModifySubscriptionRequest);
|
|
4581
|
+
// @ts-ignore
|
|
4582
|
+
options['responseHeaders'] = [''];
|
|
4583
|
+
return this.hcClient.sendRequest(options);
|
|
4584
|
+
}
|
|
4585
|
+
/**
|
|
4586
|
+
* 查询发布监控信息。
|
|
4587
|
+
*
|
|
4588
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4589
|
+
*
|
|
4590
|
+
* @summary 查询发布监控信息
|
|
4591
|
+
* @param {string} instanceId 实例ID
|
|
4592
|
+
* @param {string} publicationId 发布ID
|
|
4593
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4594
|
+
* @param {*} [options] Override http request option.
|
|
4595
|
+
* @throws {RequiredError}
|
|
4596
|
+
*/
|
|
4597
|
+
collectPublicationMonitor(collectPublicationMonitorRequest) {
|
|
4598
|
+
const options = (0, exports.ParamCreater)().collectPublicationMonitor(collectPublicationMonitorRequest);
|
|
4599
|
+
// @ts-ignore
|
|
4600
|
+
options['responseHeaders'] = [''];
|
|
4601
|
+
return this.hcClient.sendRequest(options);
|
|
4602
|
+
}
|
|
4603
|
+
/**
|
|
4604
|
+
* 查询订阅监控信息。
|
|
4605
|
+
*
|
|
4606
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4607
|
+
*
|
|
4608
|
+
* @summary 查询订阅监控信息
|
|
4609
|
+
* @param {string} instanceId 实例ID
|
|
4610
|
+
* @param {string} subscriptionId 订阅ID
|
|
4611
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4612
|
+
* @param {*} [options] Override http request option.
|
|
4613
|
+
* @throws {RequiredError}
|
|
4614
|
+
*/
|
|
4615
|
+
collectSubscriptionMonitor(collectSubscriptionMonitorRequest) {
|
|
4616
|
+
const options = (0, exports.ParamCreater)().collectSubscriptionMonitor(collectSubscriptionMonitorRequest);
|
|
4617
|
+
// @ts-ignore
|
|
4618
|
+
options['responseHeaders'] = [''];
|
|
4619
|
+
return this.hcClient.sendRequest(options);
|
|
4620
|
+
}
|
|
4552
4621
|
/**
|
|
4553
4622
|
* 复制数据库
|
|
4554
4623
|
*
|
|
@@ -4620,6 +4689,23 @@ class RdsClient {
|
|
|
4620
4689
|
options['responseHeaders'] = [''];
|
|
4621
4690
|
return this.hcClient.sendRequest(options);
|
|
4622
4691
|
}
|
|
4692
|
+
/**
|
|
4693
|
+
* 删除当前实例的分发服务器
|
|
4694
|
+
*
|
|
4695
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4696
|
+
*
|
|
4697
|
+
* @summary 删除当前实例的分发服务器
|
|
4698
|
+
* @param {string} instanceId 实例ID
|
|
4699
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4700
|
+
* @param {*} [options] Override http request option.
|
|
4701
|
+
* @throws {RequiredError}
|
|
4702
|
+
*/
|
|
4703
|
+
deleteDistribution(deleteDistributionRequest) {
|
|
4704
|
+
const options = (0, exports.ParamCreater)().deleteDistribution(deleteDistributionRequest);
|
|
4705
|
+
// @ts-ignore
|
|
4706
|
+
options['responseHeaders'] = [''];
|
|
4707
|
+
return this.hcClient.sendRequest(options);
|
|
4708
|
+
}
|
|
4623
4709
|
/**
|
|
4624
4710
|
* 删除MSDTC相关主机host地址
|
|
4625
4711
|
*
|
|
@@ -4711,6 +4797,24 @@ class RdsClient {
|
|
|
4711
4797
|
options['responseHeaders'] = [''];
|
|
4712
4798
|
return this.hcClient.sendRequest(options);
|
|
4713
4799
|
}
|
|
4800
|
+
/**
|
|
4801
|
+
* 删除订阅
|
|
4802
|
+
*
|
|
4803
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4804
|
+
*
|
|
4805
|
+
* @summary 删除订阅
|
|
4806
|
+
* @param {string} instanceId 实例ID
|
|
4807
|
+
* @param {DeleteSubscriptionRequestBody} deleteSubscriptionRequestBody 删除订阅请求体。
|
|
4808
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4809
|
+
* @param {*} [options] Override http request option.
|
|
4810
|
+
* @throws {RequiredError}
|
|
4811
|
+
*/
|
|
4812
|
+
deleteSubscription(deleteSubscriptionRequest) {
|
|
4813
|
+
const options = (0, exports.ParamCreater)().deleteSubscription(deleteSubscriptionRequest);
|
|
4814
|
+
// @ts-ignore
|
|
4815
|
+
options['responseHeaders'] = [''];
|
|
4816
|
+
return this.hcClient.sendRequest(options);
|
|
4817
|
+
}
|
|
4714
4818
|
/**
|
|
4715
4819
|
* 查询指定数据库的已授权用户。
|
|
4716
4820
|
*
|
|
@@ -4749,6 +4853,67 @@ class RdsClient {
|
|
|
4749
4853
|
options['responseHeaders'] = [''];
|
|
4750
4854
|
return this.hcClient.sendRequest(options);
|
|
4751
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
|
+
}
|
|
4897
|
+
/**
|
|
4898
|
+
* 查询数据库代理作业列表。
|
|
4899
|
+
*
|
|
4900
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4901
|
+
*
|
|
4902
|
+
* @summary 查询数据库代理作业列表
|
|
4903
|
+
* @param {string} instanceId 实例ID
|
|
4904
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4905
|
+
* @param {string} [jobType] 作业类型。默认不传,查询所有作业。 若传,则取值如下: replication:发布订阅相关作业。
|
|
4906
|
+
* @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
4907
|
+
* @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
|
4908
|
+
* @param {*} [options] Override http request option.
|
|
4909
|
+
* @throws {RequiredError}
|
|
4910
|
+
*/
|
|
4911
|
+
listDbAgentJobs(listDbAgentJobsRequest) {
|
|
4912
|
+
const options = (0, exports.ParamCreater)().listDbAgentJobs(listDbAgentJobsRequest);
|
|
4913
|
+
// @ts-ignore
|
|
4914
|
+
options['responseHeaders'] = [''];
|
|
4915
|
+
return this.hcClient.sendRequest(options);
|
|
4916
|
+
}
|
|
4752
4917
|
/**
|
|
4753
4918
|
* 查询当前实例配置的分发服务器
|
|
4754
4919
|
*
|
|
@@ -4845,6 +5010,44 @@ class RdsClient {
|
|
|
4845
5010
|
options['responseHeaders'] = [''];
|
|
4846
5011
|
return this.hcClient.sendRequest(options);
|
|
4847
5012
|
}
|
|
5013
|
+
/**
|
|
5014
|
+
* 查询实例可选的RDS for SQL Server实例的发布
|
|
5015
|
+
*
|
|
5016
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5017
|
+
*
|
|
5018
|
+
* @summary 查询实例可选的发布
|
|
5019
|
+
* @param {string} instanceId 实例ID
|
|
5020
|
+
* @param {ListPublications4SubscriptionRequestBody} listPublications4SubscriptionRequestBody 实例ID
|
|
5021
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
5022
|
+
* @param {*} [options] Override http request option.
|
|
5023
|
+
* @throws {RequiredError}
|
|
5024
|
+
*/
|
|
5025
|
+
listPublications4Subscription(listPublications4SubscriptionRequest) {
|
|
5026
|
+
const options = (0, exports.ParamCreater)().listPublications4Subscription(listPublications4SubscriptionRequest);
|
|
5027
|
+
// @ts-ignore
|
|
5028
|
+
options['responseHeaders'] = [''];
|
|
5029
|
+
return this.hcClient.sendRequest(options);
|
|
5030
|
+
}
|
|
5031
|
+
/**
|
|
5032
|
+
* 查询发布订阅配置文件列表。
|
|
5033
|
+
*
|
|
5034
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5035
|
+
*
|
|
5036
|
+
* @summary 查询发布订阅配置文件列表
|
|
5037
|
+
* @param {string} instanceId 实例ID。
|
|
5038
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
5039
|
+
* @param {string} [agentType] 代理类型。 snapshot:快照代理 log_reader:日志读取器代理 distribution:分发代理 merge:合并代理 queue_reader:队列读取器代理。
|
|
5040
|
+
* @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
5041
|
+
* @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
|
5042
|
+
* @param {*} [options] Override http request option.
|
|
5043
|
+
* @throws {RequiredError}
|
|
5044
|
+
*/
|
|
5045
|
+
listReplicationProfiles(listReplicationProfilesRequest) {
|
|
5046
|
+
const options = (0, exports.ParamCreater)().listReplicationProfiles(listReplicationProfilesRequest);
|
|
5047
|
+
// @ts-ignore
|
|
5048
|
+
options['responseHeaders'] = [''];
|
|
5049
|
+
return this.hcClient.sendRequest(options);
|
|
5050
|
+
}
|
|
4848
5051
|
/**
|
|
4849
5052
|
* 查询数据库列表。
|
|
4850
5053
|
*
|
|
@@ -4906,6 +5109,29 @@ class RdsClient {
|
|
|
4906
5109
|
options['responseHeaders'] = [''];
|
|
4907
5110
|
return this.hcClient.sendRequest(options);
|
|
4908
5111
|
}
|
|
5112
|
+
/**
|
|
5113
|
+
* 查询实例订阅信息
|
|
5114
|
+
*
|
|
5115
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5116
|
+
*
|
|
5117
|
+
* @summary 查询实例订阅信息
|
|
5118
|
+
* @param {string} instanceId 实例ID
|
|
5119
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
5120
|
+
* @param {string} [publicationId] 发布id。不为空则查询该发布下的订阅;为空(null)则查询实例本地订阅。
|
|
5121
|
+
* @param {boolean} [isCloud] 订阅服务器来源 true:订阅服务器为云上实例 false:订阅服务器非云上实例 不传该参数(null):全部订阅
|
|
5122
|
+
* @param {string} [publicationName] 发布名(模糊匹配)
|
|
5123
|
+
* @param {string} [subscriptionDbName] 订阅数据库名(模糊匹配)
|
|
5124
|
+
* @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
5125
|
+
* @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
|
5126
|
+
* @param {*} [options] Override http request option.
|
|
5127
|
+
* @throws {RequiredError}
|
|
5128
|
+
*/
|
|
5129
|
+
listSubscriptions(listSubscriptionsRequest) {
|
|
5130
|
+
const options = (0, exports.ParamCreater)().listSubscriptions(listSubscriptionsRequest);
|
|
5131
|
+
// @ts-ignore
|
|
5132
|
+
options['responseHeaders'] = [''];
|
|
5133
|
+
return this.hcClient.sendRequest(options);
|
|
5134
|
+
}
|
|
4909
5135
|
/**
|
|
4910
5136
|
* 修改实例字符集。
|
|
4911
5137
|
*
|
|
@@ -4943,6 +5169,42 @@ class RdsClient {
|
|
|
4943
5169
|
options['responseHeaders'] = [''];
|
|
4944
5170
|
return this.hcClient.sendRequest(options);
|
|
4945
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
|
+
}
|
|
4946
5208
|
/**
|
|
4947
5209
|
* 解除数据库帐号权限。
|
|
4948
5210
|
*
|
|
@@ -4995,6 +5257,41 @@ class RdsClient {
|
|
|
4995
5257
|
options['responseHeaders'] = [''];
|
|
4996
5258
|
return this.hcClient.sendRequest(options);
|
|
4997
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
|
+
}
|
|
5277
|
+
/**
|
|
5278
|
+
* RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
|
|
5279
|
+
*
|
|
5280
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5281
|
+
*
|
|
5282
|
+
* @summary 登录测试
|
|
5283
|
+
* @param {string} instanceId 实例ID
|
|
5284
|
+
* @param {ValidateInstanceConnectionRequestBody} validateInstanceConnectionRequestBody 连通性测试请求体。
|
|
5285
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
5286
|
+
* @param {*} [options] Override http request option.
|
|
5287
|
+
* @throws {RequiredError}
|
|
5288
|
+
*/
|
|
5289
|
+
validateInstanceConnection(validateInstanceConnectionRequest) {
|
|
5290
|
+
const options = (0, exports.ParamCreater)().validateInstanceConnection(validateInstanceConnectionRequest);
|
|
5291
|
+
// @ts-ignore
|
|
5292
|
+
options['responseHeaders'] = [''];
|
|
5293
|
+
return this.hcClient.sendRequest(options);
|
|
5294
|
+
}
|
|
4998
5295
|
/**
|
|
4999
5296
|
* 查询sql统计列表
|
|
5000
5297
|
*
|
|
@@ -15832,14 +16129,14 @@ const ParamCreater = function () {
|
|
|
15832
16129
|
return options;
|
|
15833
16130
|
},
|
|
15834
16131
|
/**
|
|
15835
|
-
*
|
|
16132
|
+
* 批量修改订阅
|
|
15836
16133
|
*
|
|
15837
16134
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15838
16135
|
*/
|
|
15839
|
-
|
|
16136
|
+
batchModifySubscription(batchModifySubscriptionRequest) {
|
|
15840
16137
|
const options = {
|
|
15841
|
-
method: "
|
|
15842
|
-
url: "/v3/{project_id}/instances/{instance_id}/
|
|
16138
|
+
method: "PUT",
|
|
16139
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions",
|
|
15843
16140
|
contentType: "application/json",
|
|
15844
16141
|
queryParams: {},
|
|
15845
16142
|
pathParams: {},
|
|
@@ -15849,22 +16146,28 @@ const ParamCreater = function () {
|
|
|
15849
16146
|
const localVarHeaderParameter = {};
|
|
15850
16147
|
let body;
|
|
15851
16148
|
let instanceId;
|
|
15852
|
-
|
|
15853
|
-
|
|
15854
|
-
|
|
15855
|
-
|
|
16149
|
+
let xLanguage;
|
|
16150
|
+
if (batchModifySubscriptionRequest !== null && batchModifySubscriptionRequest !== undefined) {
|
|
16151
|
+
if (batchModifySubscriptionRequest instanceof BatchModifySubscriptionRequest_1.BatchModifySubscriptionRequest) {
|
|
16152
|
+
instanceId = batchModifySubscriptionRequest.instanceId;
|
|
16153
|
+
body = batchModifySubscriptionRequest.body;
|
|
16154
|
+
xLanguage = batchModifySubscriptionRequest.xLanguage;
|
|
15856
16155
|
}
|
|
15857
16156
|
else {
|
|
15858
|
-
instanceId =
|
|
15859
|
-
body =
|
|
16157
|
+
instanceId = batchModifySubscriptionRequest['instance_id'];
|
|
16158
|
+
body = batchModifySubscriptionRequest['body'];
|
|
16159
|
+
xLanguage = batchModifySubscriptionRequest['X-Language'];
|
|
15860
16160
|
}
|
|
15861
16161
|
}
|
|
15862
16162
|
if (instanceId === null || instanceId === undefined) {
|
|
15863
|
-
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling
|
|
16163
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling batchModifySubscription.');
|
|
15864
16164
|
}
|
|
15865
16165
|
if (body === null || body === undefined) {
|
|
15866
16166
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
15867
16167
|
}
|
|
16168
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16169
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16170
|
+
}
|
|
15868
16171
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15869
16172
|
options.data = body !== undefined ? body : {};
|
|
15870
16173
|
options.pathParams = { 'instance_id': instanceId, };
|
|
@@ -15872,60 +16175,186 @@ const ParamCreater = function () {
|
|
|
15872
16175
|
return options;
|
|
15873
16176
|
},
|
|
15874
16177
|
/**
|
|
15875
|
-
*
|
|
16178
|
+
* 查询发布监控信息。
|
|
15876
16179
|
*
|
|
15877
16180
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15878
16181
|
*/
|
|
15879
|
-
|
|
16182
|
+
collectPublicationMonitor(collectPublicationMonitorRequest) {
|
|
15880
16183
|
const options = {
|
|
15881
|
-
method: "
|
|
15882
|
-
url: "/v3/{project_id}/instances/{instance_id}/
|
|
16184
|
+
method: "GET",
|
|
16185
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/publications/{publication_id}/monitor",
|
|
15883
16186
|
contentType: "application/json",
|
|
15884
16187
|
queryParams: {},
|
|
15885
16188
|
pathParams: {},
|
|
15886
|
-
headers: {}
|
|
15887
|
-
data: {}
|
|
16189
|
+
headers: {}
|
|
15888
16190
|
};
|
|
15889
16191
|
const localVarHeaderParameter = {};
|
|
15890
|
-
let body;
|
|
15891
16192
|
let instanceId;
|
|
16193
|
+
let publicationId;
|
|
15892
16194
|
let xLanguage;
|
|
15893
|
-
if (
|
|
15894
|
-
if (
|
|
15895
|
-
instanceId =
|
|
15896
|
-
|
|
15897
|
-
xLanguage =
|
|
16195
|
+
if (collectPublicationMonitorRequest !== null && collectPublicationMonitorRequest !== undefined) {
|
|
16196
|
+
if (collectPublicationMonitorRequest instanceof CollectPublicationMonitorRequest_1.CollectPublicationMonitorRequest) {
|
|
16197
|
+
instanceId = collectPublicationMonitorRequest.instanceId;
|
|
16198
|
+
publicationId = collectPublicationMonitorRequest.publicationId;
|
|
16199
|
+
xLanguage = collectPublicationMonitorRequest.xLanguage;
|
|
15898
16200
|
}
|
|
15899
16201
|
else {
|
|
15900
|
-
instanceId =
|
|
15901
|
-
|
|
15902
|
-
xLanguage =
|
|
16202
|
+
instanceId = collectPublicationMonitorRequest['instance_id'];
|
|
16203
|
+
publicationId = collectPublicationMonitorRequest['publication_id'];
|
|
16204
|
+
xLanguage = collectPublicationMonitorRequest['X-Language'];
|
|
15903
16205
|
}
|
|
15904
16206
|
}
|
|
15905
16207
|
if (instanceId === null || instanceId === undefined) {
|
|
15906
|
-
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling
|
|
16208
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling collectPublicationMonitor.');
|
|
15907
16209
|
}
|
|
15908
|
-
if (
|
|
15909
|
-
throw new RequiredError('
|
|
16210
|
+
if (publicationId === null || publicationId === undefined) {
|
|
16211
|
+
throw new RequiredError('publicationId', 'Required parameter publicationId was null or undefined when calling collectPublicationMonitor.');
|
|
15910
16212
|
}
|
|
15911
16213
|
if (xLanguage !== undefined && xLanguage !== null) {
|
|
15912
16214
|
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
15913
16215
|
}
|
|
15914
|
-
|
|
15915
|
-
options.data = body !== undefined ? body : {};
|
|
15916
|
-
options.pathParams = { 'instance_id': instanceId, };
|
|
16216
|
+
options.pathParams = { 'instance_id': instanceId, 'publication_id': publicationId, };
|
|
15917
16217
|
options.headers = localVarHeaderParameter;
|
|
15918
16218
|
return options;
|
|
15919
16219
|
},
|
|
15920
16220
|
/**
|
|
15921
|
-
*
|
|
16221
|
+
* 查询订阅监控信息。
|
|
15922
16222
|
*
|
|
15923
16223
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15924
16224
|
*/
|
|
15925
|
-
|
|
16225
|
+
collectSubscriptionMonitor(collectSubscriptionMonitorRequest) {
|
|
15926
16226
|
const options = {
|
|
15927
|
-
method: "
|
|
15928
|
-
url: "/v3/{project_id}/instances/{instance_id}/
|
|
16227
|
+
method: "GET",
|
|
16228
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions/{subscription_id}/monitor",
|
|
16229
|
+
contentType: "application/json",
|
|
16230
|
+
queryParams: {},
|
|
16231
|
+
pathParams: {},
|
|
16232
|
+
headers: {}
|
|
16233
|
+
};
|
|
16234
|
+
const localVarHeaderParameter = {};
|
|
16235
|
+
let instanceId;
|
|
16236
|
+
let subscriptionId;
|
|
16237
|
+
let xLanguage;
|
|
16238
|
+
if (collectSubscriptionMonitorRequest !== null && collectSubscriptionMonitorRequest !== undefined) {
|
|
16239
|
+
if (collectSubscriptionMonitorRequest instanceof CollectSubscriptionMonitorRequest_1.CollectSubscriptionMonitorRequest) {
|
|
16240
|
+
instanceId = collectSubscriptionMonitorRequest.instanceId;
|
|
16241
|
+
subscriptionId = collectSubscriptionMonitorRequest.subscriptionId;
|
|
16242
|
+
xLanguage = collectSubscriptionMonitorRequest.xLanguage;
|
|
16243
|
+
}
|
|
16244
|
+
else {
|
|
16245
|
+
instanceId = collectSubscriptionMonitorRequest['instance_id'];
|
|
16246
|
+
subscriptionId = collectSubscriptionMonitorRequest['subscription_id'];
|
|
16247
|
+
xLanguage = collectSubscriptionMonitorRequest['X-Language'];
|
|
16248
|
+
}
|
|
16249
|
+
}
|
|
16250
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16251
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling collectSubscriptionMonitor.');
|
|
16252
|
+
}
|
|
16253
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
16254
|
+
throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling collectSubscriptionMonitor.');
|
|
16255
|
+
}
|
|
16256
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16257
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16258
|
+
}
|
|
16259
|
+
options.pathParams = { 'instance_id': instanceId, 'subscription_id': subscriptionId, };
|
|
16260
|
+
options.headers = localVarHeaderParameter;
|
|
16261
|
+
return options;
|
|
16262
|
+
},
|
|
16263
|
+
/**
|
|
16264
|
+
* 复制数据库
|
|
16265
|
+
*
|
|
16266
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16267
|
+
*/
|
|
16268
|
+
copyDatabase(copyDatabaseRequest) {
|
|
16269
|
+
const options = {
|
|
16270
|
+
method: "POST",
|
|
16271
|
+
url: "/v3/{project_id}/instances/{instance_id}/database/procedure",
|
|
16272
|
+
contentType: "application/json",
|
|
16273
|
+
queryParams: {},
|
|
16274
|
+
pathParams: {},
|
|
16275
|
+
headers: {},
|
|
16276
|
+
data: {}
|
|
16277
|
+
};
|
|
16278
|
+
const localVarHeaderParameter = {};
|
|
16279
|
+
let body;
|
|
16280
|
+
let instanceId;
|
|
16281
|
+
if (copyDatabaseRequest !== null && copyDatabaseRequest !== undefined) {
|
|
16282
|
+
if (copyDatabaseRequest instanceof CopyDatabaseRequest_1.CopyDatabaseRequest) {
|
|
16283
|
+
instanceId = copyDatabaseRequest.instanceId;
|
|
16284
|
+
body = copyDatabaseRequest.body;
|
|
16285
|
+
}
|
|
16286
|
+
else {
|
|
16287
|
+
instanceId = copyDatabaseRequest['instance_id'];
|
|
16288
|
+
body = copyDatabaseRequest['body'];
|
|
16289
|
+
}
|
|
16290
|
+
}
|
|
16291
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16292
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling copyDatabase.');
|
|
16293
|
+
}
|
|
16294
|
+
if (body === null || body === undefined) {
|
|
16295
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16296
|
+
}
|
|
16297
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16298
|
+
options.data = body !== undefined ? body : {};
|
|
16299
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16300
|
+
options.headers = localVarHeaderParameter;
|
|
16301
|
+
return options;
|
|
16302
|
+
},
|
|
16303
|
+
/**
|
|
16304
|
+
* 创建数据库。
|
|
16305
|
+
*
|
|
16306
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16307
|
+
*/
|
|
16308
|
+
createSqlserverDatabase(createSqlserverDatabaseRequest) {
|
|
16309
|
+
const options = {
|
|
16310
|
+
method: "POST",
|
|
16311
|
+
url: "/v3/{project_id}/instances/{instance_id}/database",
|
|
16312
|
+
contentType: "application/json",
|
|
16313
|
+
queryParams: {},
|
|
16314
|
+
pathParams: {},
|
|
16315
|
+
headers: {},
|
|
16316
|
+
data: {}
|
|
16317
|
+
};
|
|
16318
|
+
const localVarHeaderParameter = {};
|
|
16319
|
+
let body;
|
|
16320
|
+
let instanceId;
|
|
16321
|
+
let xLanguage;
|
|
16322
|
+
if (createSqlserverDatabaseRequest !== null && createSqlserverDatabaseRequest !== undefined) {
|
|
16323
|
+
if (createSqlserverDatabaseRequest instanceof CreateSqlserverDatabaseRequest_1.CreateSqlserverDatabaseRequest) {
|
|
16324
|
+
instanceId = createSqlserverDatabaseRequest.instanceId;
|
|
16325
|
+
body = createSqlserverDatabaseRequest.body;
|
|
16326
|
+
xLanguage = createSqlserverDatabaseRequest.xLanguage;
|
|
16327
|
+
}
|
|
16328
|
+
else {
|
|
16329
|
+
instanceId = createSqlserverDatabaseRequest['instance_id'];
|
|
16330
|
+
body = createSqlserverDatabaseRequest['body'];
|
|
16331
|
+
xLanguage = createSqlserverDatabaseRequest['X-Language'];
|
|
16332
|
+
}
|
|
16333
|
+
}
|
|
16334
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16335
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createSqlserverDatabase.');
|
|
16336
|
+
}
|
|
16337
|
+
if (body === null || body === undefined) {
|
|
16338
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16339
|
+
}
|
|
16340
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16341
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16342
|
+
}
|
|
16343
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16344
|
+
options.data = body !== undefined ? body : {};
|
|
16345
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16346
|
+
options.headers = localVarHeaderParameter;
|
|
16347
|
+
return options;
|
|
16348
|
+
},
|
|
16349
|
+
/**
|
|
16350
|
+
* 创建数据库用户。
|
|
16351
|
+
*
|
|
16352
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16353
|
+
*/
|
|
16354
|
+
createSqlserverDbUser(createSqlserverDbUserRequest) {
|
|
16355
|
+
const options = {
|
|
16356
|
+
method: "POST",
|
|
16357
|
+
url: "/v3/{project_id}/instances/{instance_id}/db_user",
|
|
15929
16358
|
contentType: "application/json",
|
|
15930
16359
|
queryParams: {},
|
|
15931
16360
|
pathParams: {},
|
|
@@ -16009,6 +16438,43 @@ const ParamCreater = function () {
|
|
|
16009
16438
|
options.headers = localVarHeaderParameter;
|
|
16010
16439
|
return options;
|
|
16011
16440
|
},
|
|
16441
|
+
/**
|
|
16442
|
+
* 删除当前实例的分发服务器
|
|
16443
|
+
*
|
|
16444
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16445
|
+
*/
|
|
16446
|
+
deleteDistribution(deleteDistributionRequest) {
|
|
16447
|
+
const options = {
|
|
16448
|
+
method: "DELETE",
|
|
16449
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/distribution",
|
|
16450
|
+
contentType: "application/json",
|
|
16451
|
+
queryParams: {},
|
|
16452
|
+
pathParams: {},
|
|
16453
|
+
headers: {}
|
|
16454
|
+
};
|
|
16455
|
+
const localVarHeaderParameter = {};
|
|
16456
|
+
let instanceId;
|
|
16457
|
+
let xLanguage;
|
|
16458
|
+
if (deleteDistributionRequest !== null && deleteDistributionRequest !== undefined) {
|
|
16459
|
+
if (deleteDistributionRequest instanceof DeleteDistributionRequest_1.DeleteDistributionRequest) {
|
|
16460
|
+
instanceId = deleteDistributionRequest.instanceId;
|
|
16461
|
+
xLanguage = deleteDistributionRequest.xLanguage;
|
|
16462
|
+
}
|
|
16463
|
+
else {
|
|
16464
|
+
instanceId = deleteDistributionRequest['instance_id'];
|
|
16465
|
+
xLanguage = deleteDistributionRequest['X-Language'];
|
|
16466
|
+
}
|
|
16467
|
+
}
|
|
16468
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16469
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling deleteDistribution.');
|
|
16470
|
+
}
|
|
16471
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16472
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16473
|
+
}
|
|
16474
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16475
|
+
options.headers = localVarHeaderParameter;
|
|
16476
|
+
return options;
|
|
16477
|
+
},
|
|
16012
16478
|
/**
|
|
16013
16479
|
* 删除MSDTC相关主机host地址
|
|
16014
16480
|
*
|
|
@@ -16233,6 +16699,52 @@ const ParamCreater = function () {
|
|
|
16233
16699
|
options.headers = localVarHeaderParameter;
|
|
16234
16700
|
return options;
|
|
16235
16701
|
},
|
|
16702
|
+
/**
|
|
16703
|
+
* 删除订阅
|
|
16704
|
+
*
|
|
16705
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16706
|
+
*/
|
|
16707
|
+
deleteSubscription(deleteSubscriptionRequest) {
|
|
16708
|
+
const options = {
|
|
16709
|
+
method: "DELETE",
|
|
16710
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions",
|
|
16711
|
+
contentType: "application/json",
|
|
16712
|
+
queryParams: {},
|
|
16713
|
+
pathParams: {},
|
|
16714
|
+
headers: {},
|
|
16715
|
+
data: {}
|
|
16716
|
+
};
|
|
16717
|
+
const localVarHeaderParameter = {};
|
|
16718
|
+
let body;
|
|
16719
|
+
let instanceId;
|
|
16720
|
+
let xLanguage;
|
|
16721
|
+
if (deleteSubscriptionRequest !== null && deleteSubscriptionRequest !== undefined) {
|
|
16722
|
+
if (deleteSubscriptionRequest instanceof DeleteSubscriptionRequest_1.DeleteSubscriptionRequest) {
|
|
16723
|
+
instanceId = deleteSubscriptionRequest.instanceId;
|
|
16724
|
+
body = deleteSubscriptionRequest.body;
|
|
16725
|
+
xLanguage = deleteSubscriptionRequest.xLanguage;
|
|
16726
|
+
}
|
|
16727
|
+
else {
|
|
16728
|
+
instanceId = deleteSubscriptionRequest['instance_id'];
|
|
16729
|
+
body = deleteSubscriptionRequest['body'];
|
|
16730
|
+
xLanguage = deleteSubscriptionRequest['X-Language'];
|
|
16731
|
+
}
|
|
16732
|
+
}
|
|
16733
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16734
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling deleteSubscription.');
|
|
16735
|
+
}
|
|
16736
|
+
if (body === null || body === undefined) {
|
|
16737
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16738
|
+
}
|
|
16739
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16740
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16741
|
+
}
|
|
16742
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16743
|
+
options.data = body !== undefined ? body : {};
|
|
16744
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16745
|
+
options.headers = localVarHeaderParameter;
|
|
16746
|
+
return options;
|
|
16747
|
+
},
|
|
16236
16748
|
/**
|
|
16237
16749
|
* 查询指定数据库的已授权用户。
|
|
16238
16750
|
*
|
|
@@ -16285,8 +16797,172 @@ const ParamCreater = function () {
|
|
|
16285
16797
|
if (page !== null && page !== undefined) {
|
|
16286
16798
|
localVarQueryParameter['page'] = page;
|
|
16287
16799
|
}
|
|
16288
|
-
if (limit === null || limit === undefined) {
|
|
16289
|
-
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listAuthorizedSqlserverDbUsers.');
|
|
16800
|
+
if (limit === null || limit === undefined) {
|
|
16801
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listAuthorizedSqlserverDbUsers.');
|
|
16802
|
+
}
|
|
16803
|
+
if (limit !== null && limit !== undefined) {
|
|
16804
|
+
localVarQueryParameter['limit'] = limit;
|
|
16805
|
+
}
|
|
16806
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16807
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16808
|
+
}
|
|
16809
|
+
options.queryParams = localVarQueryParameter;
|
|
16810
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16811
|
+
options.headers = localVarHeaderParameter;
|
|
16812
|
+
return options;
|
|
16813
|
+
},
|
|
16814
|
+
/**
|
|
16815
|
+
* 查询云市场服务商列表。
|
|
16816
|
+
*
|
|
16817
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16818
|
+
*/
|
|
16819
|
+
listBusinessPartners(listBusinessPartnersRequest) {
|
|
16820
|
+
const options = {
|
|
16821
|
+
method: "GET",
|
|
16822
|
+
url: "/v3/{project_id}/business-partners",
|
|
16823
|
+
contentType: "application/json",
|
|
16824
|
+
queryParams: {},
|
|
16825
|
+
pathParams: {},
|
|
16826
|
+
headers: {}
|
|
16827
|
+
};
|
|
16828
|
+
const localVarHeaderParameter = {};
|
|
16829
|
+
const localVarQueryParameter = {};
|
|
16830
|
+
let xLanguage;
|
|
16831
|
+
let offset;
|
|
16832
|
+
let limit;
|
|
16833
|
+
if (listBusinessPartnersRequest !== null && listBusinessPartnersRequest !== undefined) {
|
|
16834
|
+
if (listBusinessPartnersRequest instanceof ListBusinessPartnersRequest_1.ListBusinessPartnersRequest) {
|
|
16835
|
+
xLanguage = listBusinessPartnersRequest.xLanguage;
|
|
16836
|
+
offset = listBusinessPartnersRequest.offset;
|
|
16837
|
+
limit = listBusinessPartnersRequest.limit;
|
|
16838
|
+
}
|
|
16839
|
+
else {
|
|
16840
|
+
xLanguage = listBusinessPartnersRequest['X-Language'];
|
|
16841
|
+
offset = listBusinessPartnersRequest['offset'];
|
|
16842
|
+
limit = listBusinessPartnersRequest['limit'];
|
|
16843
|
+
}
|
|
16844
|
+
}
|
|
16845
|
+
if (offset !== null && offset !== undefined) {
|
|
16846
|
+
localVarQueryParameter['offset'] = offset;
|
|
16847
|
+
}
|
|
16848
|
+
if (limit !== null && limit !== undefined) {
|
|
16849
|
+
localVarQueryParameter['limit'] = limit;
|
|
16850
|
+
}
|
|
16851
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16852
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16853
|
+
}
|
|
16854
|
+
options.queryParams = localVarQueryParameter;
|
|
16855
|
+
options.headers = localVarHeaderParameter;
|
|
16856
|
+
return options;
|
|
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;
|
|
16290
16966
|
}
|
|
16291
16967
|
if (limit !== null && limit !== undefined) {
|
|
16292
16968
|
localVarQueryParameter['limit'] = limit;
|
|
@@ -16295,19 +16971,19 @@ const ParamCreater = function () {
|
|
|
16295
16971
|
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16296
16972
|
}
|
|
16297
16973
|
options.queryParams = localVarQueryParameter;
|
|
16298
|
-
options.pathParams = { 'instance_id': instanceId, };
|
|
16974
|
+
options.pathParams = { 'instance_id': instanceId, 'job_id': jobId, };
|
|
16299
16975
|
options.headers = localVarHeaderParameter;
|
|
16300
16976
|
return options;
|
|
16301
16977
|
},
|
|
16302
16978
|
/**
|
|
16303
|
-
*
|
|
16979
|
+
* 查询数据库代理作业列表。
|
|
16304
16980
|
*
|
|
16305
16981
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16306
16982
|
*/
|
|
16307
|
-
|
|
16983
|
+
listDbAgentJobs(listDbAgentJobsRequest) {
|
|
16308
16984
|
const options = {
|
|
16309
16985
|
method: "GET",
|
|
16310
|
-
url: "/v3/{project_id}/
|
|
16986
|
+
url: "/v3/{project_id}/instances/{instance_id}/db-jobs",
|
|
16311
16987
|
contentType: "application/json",
|
|
16312
16988
|
queryParams: {},
|
|
16313
16989
|
pathParams: {},
|
|
@@ -16315,21 +16991,33 @@ const ParamCreater = function () {
|
|
|
16315
16991
|
};
|
|
16316
16992
|
const localVarHeaderParameter = {};
|
|
16317
16993
|
const localVarQueryParameter = {};
|
|
16994
|
+
let instanceId;
|
|
16318
16995
|
let xLanguage;
|
|
16996
|
+
let jobType;
|
|
16319
16997
|
let offset;
|
|
16320
16998
|
let limit;
|
|
16321
|
-
if (
|
|
16322
|
-
if (
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
|
|
16999
|
+
if (listDbAgentJobsRequest !== null && listDbAgentJobsRequest !== undefined) {
|
|
17000
|
+
if (listDbAgentJobsRequest instanceof ListDbAgentJobsRequest_1.ListDbAgentJobsRequest) {
|
|
17001
|
+
instanceId = listDbAgentJobsRequest.instanceId;
|
|
17002
|
+
xLanguage = listDbAgentJobsRequest.xLanguage;
|
|
17003
|
+
jobType = listDbAgentJobsRequest.jobType;
|
|
17004
|
+
offset = listDbAgentJobsRequest.offset;
|
|
17005
|
+
limit = listDbAgentJobsRequest.limit;
|
|
16326
17006
|
}
|
|
16327
17007
|
else {
|
|
16328
|
-
|
|
16329
|
-
|
|
16330
|
-
|
|
17008
|
+
instanceId = listDbAgentJobsRequest['instance_id'];
|
|
17009
|
+
xLanguage = listDbAgentJobsRequest['X-Language'];
|
|
17010
|
+
jobType = listDbAgentJobsRequest['job_type'];
|
|
17011
|
+
offset = listDbAgentJobsRequest['offset'];
|
|
17012
|
+
limit = listDbAgentJobsRequest['limit'];
|
|
16331
17013
|
}
|
|
16332
17014
|
}
|
|
17015
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17016
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listDbAgentJobs.');
|
|
17017
|
+
}
|
|
17018
|
+
if (jobType !== null && jobType !== undefined) {
|
|
17019
|
+
localVarQueryParameter['job_type'] = jobType;
|
|
17020
|
+
}
|
|
16333
17021
|
if (offset !== null && offset !== undefined) {
|
|
16334
17022
|
localVarQueryParameter['offset'] = offset;
|
|
16335
17023
|
}
|
|
@@ -16340,6 +17028,7 @@ const ParamCreater = function () {
|
|
|
16340
17028
|
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16341
17029
|
}
|
|
16342
17030
|
options.queryParams = localVarQueryParameter;
|
|
17031
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16343
17032
|
options.headers = localVarHeaderParameter;
|
|
16344
17033
|
return options;
|
|
16345
17034
|
},
|
|
@@ -16602,6 +17291,109 @@ const ParamCreater = function () {
|
|
|
16602
17291
|
options.headers = localVarHeaderParameter;
|
|
16603
17292
|
return options;
|
|
16604
17293
|
},
|
|
17294
|
+
/**
|
|
17295
|
+
* 查询实例可选的RDS for SQL Server实例的发布
|
|
17296
|
+
*
|
|
17297
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
17298
|
+
*/
|
|
17299
|
+
listPublications4Subscription(listPublications4SubscriptionRequest) {
|
|
17300
|
+
const options = {
|
|
17301
|
+
method: "POST",
|
|
17302
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/publication-candidates",
|
|
17303
|
+
contentType: "application/json",
|
|
17304
|
+
queryParams: {},
|
|
17305
|
+
pathParams: {},
|
|
17306
|
+
headers: {},
|
|
17307
|
+
data: {}
|
|
17308
|
+
};
|
|
17309
|
+
const localVarHeaderParameter = {};
|
|
17310
|
+
let body;
|
|
17311
|
+
let instanceId;
|
|
17312
|
+
let xLanguage;
|
|
17313
|
+
if (listPublications4SubscriptionRequest !== null && listPublications4SubscriptionRequest !== undefined) {
|
|
17314
|
+
if (listPublications4SubscriptionRequest instanceof ListPublications4SubscriptionRequest_1.ListPublications4SubscriptionRequest) {
|
|
17315
|
+
instanceId = listPublications4SubscriptionRequest.instanceId;
|
|
17316
|
+
body = listPublications4SubscriptionRequest.body;
|
|
17317
|
+
xLanguage = listPublications4SubscriptionRequest.xLanguage;
|
|
17318
|
+
}
|
|
17319
|
+
else {
|
|
17320
|
+
instanceId = listPublications4SubscriptionRequest['instance_id'];
|
|
17321
|
+
body = listPublications4SubscriptionRequest['body'];
|
|
17322
|
+
xLanguage = listPublications4SubscriptionRequest['X-Language'];
|
|
17323
|
+
}
|
|
17324
|
+
}
|
|
17325
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17326
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listPublications4Subscription.');
|
|
17327
|
+
}
|
|
17328
|
+
if (body === null || body === undefined) {
|
|
17329
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
17330
|
+
}
|
|
17331
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
17332
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
17333
|
+
}
|
|
17334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17335
|
+
options.data = body !== undefined ? body : {};
|
|
17336
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
17337
|
+
options.headers = localVarHeaderParameter;
|
|
17338
|
+
return options;
|
|
17339
|
+
},
|
|
17340
|
+
/**
|
|
17341
|
+
* 查询发布订阅配置文件列表。
|
|
17342
|
+
*
|
|
17343
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
17344
|
+
*/
|
|
17345
|
+
listReplicationProfiles(listReplicationProfilesRequest) {
|
|
17346
|
+
const options = {
|
|
17347
|
+
method: "GET",
|
|
17348
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/profiles",
|
|
17349
|
+
contentType: "application/json",
|
|
17350
|
+
queryParams: {},
|
|
17351
|
+
pathParams: {},
|
|
17352
|
+
headers: {}
|
|
17353
|
+
};
|
|
17354
|
+
const localVarHeaderParameter = {};
|
|
17355
|
+
const localVarQueryParameter = {};
|
|
17356
|
+
let instanceId;
|
|
17357
|
+
let xLanguage;
|
|
17358
|
+
let agentType;
|
|
17359
|
+
let offset;
|
|
17360
|
+
let limit;
|
|
17361
|
+
if (listReplicationProfilesRequest !== null && listReplicationProfilesRequest !== undefined) {
|
|
17362
|
+
if (listReplicationProfilesRequest instanceof ListReplicationProfilesRequest_1.ListReplicationProfilesRequest) {
|
|
17363
|
+
instanceId = listReplicationProfilesRequest.instanceId;
|
|
17364
|
+
xLanguage = listReplicationProfilesRequest.xLanguage;
|
|
17365
|
+
agentType = listReplicationProfilesRequest.agentType;
|
|
17366
|
+
offset = listReplicationProfilesRequest.offset;
|
|
17367
|
+
limit = listReplicationProfilesRequest.limit;
|
|
17368
|
+
}
|
|
17369
|
+
else {
|
|
17370
|
+
instanceId = listReplicationProfilesRequest['instance_id'];
|
|
17371
|
+
xLanguage = listReplicationProfilesRequest['X-Language'];
|
|
17372
|
+
agentType = listReplicationProfilesRequest['agent_type'];
|
|
17373
|
+
offset = listReplicationProfilesRequest['offset'];
|
|
17374
|
+
limit = listReplicationProfilesRequest['limit'];
|
|
17375
|
+
}
|
|
17376
|
+
}
|
|
17377
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17378
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listReplicationProfiles.');
|
|
17379
|
+
}
|
|
17380
|
+
if (agentType !== null && agentType !== undefined) {
|
|
17381
|
+
localVarQueryParameter['agent_type'] = agentType;
|
|
17382
|
+
}
|
|
17383
|
+
if (offset !== null && offset !== undefined) {
|
|
17384
|
+
localVarQueryParameter['offset'] = offset;
|
|
17385
|
+
}
|
|
17386
|
+
if (limit !== null && limit !== undefined) {
|
|
17387
|
+
localVarQueryParameter['limit'] = limit;
|
|
17388
|
+
}
|
|
17389
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
17390
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
17391
|
+
}
|
|
17392
|
+
options.queryParams = localVarQueryParameter;
|
|
17393
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
17394
|
+
options.headers = localVarHeaderParameter;
|
|
17395
|
+
return options;
|
|
17396
|
+
},
|
|
16605
17397
|
/**
|
|
16606
17398
|
* 查询数据库列表。
|
|
16607
17399
|
*
|
|
@@ -16791,6 +17583,81 @@ const ParamCreater = function () {
|
|
|
16791
17583
|
options.headers = localVarHeaderParameter;
|
|
16792
17584
|
return options;
|
|
16793
17585
|
},
|
|
17586
|
+
/**
|
|
17587
|
+
* 查询实例订阅信息
|
|
17588
|
+
*
|
|
17589
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
17590
|
+
*/
|
|
17591
|
+
listSubscriptions(listSubscriptionsRequest) {
|
|
17592
|
+
const options = {
|
|
17593
|
+
method: "GET",
|
|
17594
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions",
|
|
17595
|
+
contentType: "application/json",
|
|
17596
|
+
queryParams: {},
|
|
17597
|
+
pathParams: {},
|
|
17598
|
+
headers: {}
|
|
17599
|
+
};
|
|
17600
|
+
const localVarHeaderParameter = {};
|
|
17601
|
+
const localVarQueryParameter = {};
|
|
17602
|
+
let instanceId;
|
|
17603
|
+
let xLanguage;
|
|
17604
|
+
let publicationId;
|
|
17605
|
+
let isCloud;
|
|
17606
|
+
let publicationName;
|
|
17607
|
+
let subscriptionDbName;
|
|
17608
|
+
let offset;
|
|
17609
|
+
let limit;
|
|
17610
|
+
if (listSubscriptionsRequest !== null && listSubscriptionsRequest !== undefined) {
|
|
17611
|
+
if (listSubscriptionsRequest instanceof ListSubscriptionsRequest_1.ListSubscriptionsRequest) {
|
|
17612
|
+
instanceId = listSubscriptionsRequest.instanceId;
|
|
17613
|
+
xLanguage = listSubscriptionsRequest.xLanguage;
|
|
17614
|
+
publicationId = listSubscriptionsRequest.publicationId;
|
|
17615
|
+
isCloud = listSubscriptionsRequest.isCloud;
|
|
17616
|
+
publicationName = listSubscriptionsRequest.publicationName;
|
|
17617
|
+
subscriptionDbName = listSubscriptionsRequest.subscriptionDbName;
|
|
17618
|
+
offset = listSubscriptionsRequest.offset;
|
|
17619
|
+
limit = listSubscriptionsRequest.limit;
|
|
17620
|
+
}
|
|
17621
|
+
else {
|
|
17622
|
+
instanceId = listSubscriptionsRequest['instance_id'];
|
|
17623
|
+
xLanguage = listSubscriptionsRequest['X-Language'];
|
|
17624
|
+
publicationId = listSubscriptionsRequest['publication_id'];
|
|
17625
|
+
isCloud = listSubscriptionsRequest['is_cloud'];
|
|
17626
|
+
publicationName = listSubscriptionsRequest['publication_name'];
|
|
17627
|
+
subscriptionDbName = listSubscriptionsRequest['subscription_db_name'];
|
|
17628
|
+
offset = listSubscriptionsRequest['offset'];
|
|
17629
|
+
limit = listSubscriptionsRequest['limit'];
|
|
17630
|
+
}
|
|
17631
|
+
}
|
|
17632
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17633
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listSubscriptions.');
|
|
17634
|
+
}
|
|
17635
|
+
if (publicationId !== null && publicationId !== undefined) {
|
|
17636
|
+
localVarQueryParameter['publication_id'] = publicationId;
|
|
17637
|
+
}
|
|
17638
|
+
if (isCloud !== null && isCloud !== undefined) {
|
|
17639
|
+
localVarQueryParameter['is_cloud'] = isCloud;
|
|
17640
|
+
}
|
|
17641
|
+
if (publicationName !== null && publicationName !== undefined) {
|
|
17642
|
+
localVarQueryParameter['publication_name'] = publicationName;
|
|
17643
|
+
}
|
|
17644
|
+
if (subscriptionDbName !== null && subscriptionDbName !== undefined) {
|
|
17645
|
+
localVarQueryParameter['subscription_db_name'] = subscriptionDbName;
|
|
17646
|
+
}
|
|
17647
|
+
if (offset !== null && offset !== undefined) {
|
|
17648
|
+
localVarQueryParameter['offset'] = offset;
|
|
17649
|
+
}
|
|
17650
|
+
if (limit !== null && limit !== undefined) {
|
|
17651
|
+
localVarQueryParameter['limit'] = limit;
|
|
17652
|
+
}
|
|
17653
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
17654
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
17655
|
+
}
|
|
17656
|
+
options.queryParams = localVarQueryParameter;
|
|
17657
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
17658
|
+
options.headers = localVarHeaderParameter;
|
|
17659
|
+
return options;
|
|
17660
|
+
},
|
|
16794
17661
|
/**
|
|
16795
17662
|
* 修改实例字符集。
|
|
16796
17663
|
*
|
|
@@ -16889,6 +17756,92 @@ const ParamCreater = function () {
|
|
|
16889
17756
|
options.headers = localVarHeaderParameter;
|
|
16890
17757
|
return options;
|
|
16891
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
|
+
},
|
|
16892
17845
|
/**
|
|
16893
17846
|
* 解除数据库帐号权限。
|
|
16894
17847
|
*
|
|
@@ -17015,6 +17968,89 @@ const ParamCreater = function () {
|
|
|
17015
17968
|
options.headers = localVarHeaderParameter;
|
|
17016
17969
|
return options;
|
|
17017
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
|
+
},
|
|
18008
|
+
/**
|
|
18009
|
+
* RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
|
|
18010
|
+
*
|
|
18011
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
18012
|
+
*/
|
|
18013
|
+
validateInstanceConnection(validateInstanceConnectionRequest) {
|
|
18014
|
+
const options = {
|
|
18015
|
+
method: "POST",
|
|
18016
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/login-test",
|
|
18017
|
+
contentType: "application/json",
|
|
18018
|
+
queryParams: {},
|
|
18019
|
+
pathParams: {},
|
|
18020
|
+
headers: {},
|
|
18021
|
+
data: {}
|
|
18022
|
+
};
|
|
18023
|
+
const localVarHeaderParameter = {};
|
|
18024
|
+
let body;
|
|
18025
|
+
let instanceId;
|
|
18026
|
+
let xLanguage;
|
|
18027
|
+
if (validateInstanceConnectionRequest !== null && validateInstanceConnectionRequest !== undefined) {
|
|
18028
|
+
if (validateInstanceConnectionRequest instanceof ValidateInstanceConnectionRequest_1.ValidateInstanceConnectionRequest) {
|
|
18029
|
+
instanceId = validateInstanceConnectionRequest.instanceId;
|
|
18030
|
+
body = validateInstanceConnectionRequest.body;
|
|
18031
|
+
xLanguage = validateInstanceConnectionRequest.xLanguage;
|
|
18032
|
+
}
|
|
18033
|
+
else {
|
|
18034
|
+
instanceId = validateInstanceConnectionRequest['instance_id'];
|
|
18035
|
+
body = validateInstanceConnectionRequest['body'];
|
|
18036
|
+
xLanguage = validateInstanceConnectionRequest['X-Language'];
|
|
18037
|
+
}
|
|
18038
|
+
}
|
|
18039
|
+
if (instanceId === null || instanceId === undefined) {
|
|
18040
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling validateInstanceConnection.');
|
|
18041
|
+
}
|
|
18042
|
+
if (body === null || body === undefined) {
|
|
18043
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
18044
|
+
}
|
|
18045
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
18046
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
18047
|
+
}
|
|
18048
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18049
|
+
options.data = body !== undefined ? body : {};
|
|
18050
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
18051
|
+
options.headers = localVarHeaderParameter;
|
|
18052
|
+
return options;
|
|
18053
|
+
},
|
|
17018
18054
|
/**
|
|
17019
18055
|
* 查询sql统计列表
|
|
17020
18056
|
*
|