@huaweicloud/huaweicloud-sdk-rds 3.1.174 → 3.1.175
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 +292 -0
- package/v3/RdsClient.d.ts.map +1 -1
- package/v3/RdsClient.js +694 -0
- package/v3/RdsClient.js.map +1 -1
- 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/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/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/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 +32 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +32 -0
- package/v3/public-api.js.map +1 -1
package/v3/RdsClient.js
CHANGED
|
@@ -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,7 @@ 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 ListDbAgentJobsRequest_1 = require("./model/ListDbAgentJobsRequest");
|
|
85
91
|
const ListDbUsersRequest_1 = require("./model/ListDbUsersRequest");
|
|
86
92
|
const ListDistributionRequest_1 = require("./model/ListDistributionRequest");
|
|
87
93
|
const ListDistributorInstancesRequest_1 = require("./model/ListDistributorInstancesRequest");
|
|
@@ -120,11 +126,13 @@ const ListPostgresqlHbaInfoRequest_1 = require("./model/ListPostgresqlHbaInfoReq
|
|
|
120
126
|
const ListPostgresqlListHistoryTablesRequest_1 = require("./model/ListPostgresqlListHistoryTablesRequest");
|
|
121
127
|
const ListPredefinedTagRequest_1 = require("./model/ListPredefinedTagRequest");
|
|
122
128
|
const ListProjectTagsRequest_1 = require("./model/ListProjectTagsRequest");
|
|
129
|
+
const ListPublications4SubscriptionRequest_1 = require("./model/ListPublications4SubscriptionRequest");
|
|
123
130
|
const ListPublicationsRequest_1 = require("./model/ListPublicationsRequest");
|
|
124
131
|
const ListRdSforMySqlProxyRequest_1 = require("./model/ListRdSforMySqlProxyRequest");
|
|
125
132
|
const ListRdSforMysqlProxyFlavorsRequest_1 = require("./model/ListRdSforMysqlProxyFlavorsRequest");
|
|
126
133
|
const ListReadOnlyReplayDatabaseRequest_1 = require("./model/ListReadOnlyReplayDatabaseRequest");
|
|
127
134
|
const ListRecycleInstancesRequest_1 = require("./model/ListRecycleInstancesRequest");
|
|
135
|
+
const ListReplicationProfilesRequest_1 = require("./model/ListReplicationProfilesRequest");
|
|
128
136
|
const ListRestoreTimesRequest_1 = require("./model/ListRestoreTimesRequest");
|
|
129
137
|
const ListScheduleTasksRequest_1 = require("./model/ListScheduleTasksRequest");
|
|
130
138
|
const ListShareBackupsRequest_1 = require("./model/ListShareBackupsRequest");
|
|
@@ -143,6 +151,7 @@ const ListSqlserverDbUsersRequest_1 = require("./model/ListSqlserverDbUsersReque
|
|
|
143
151
|
const ListSslCertDownloadLinkRequest_1 = require("./model/ListSslCertDownloadLinkRequest");
|
|
144
152
|
const ListStorageTypesRequest_1 = require("./model/ListStorageTypesRequest");
|
|
145
153
|
const ListSubscriberInstancesRequest_1 = require("./model/ListSubscriberInstancesRequest");
|
|
154
|
+
const ListSubscriptionsRequest_1 = require("./model/ListSubscriptionsRequest");
|
|
146
155
|
const ListTasksRequest_1 = require("./model/ListTasksRequest");
|
|
147
156
|
const ListTopSqlsRequest_1 = require("./model/ListTopSqlsRequest");
|
|
148
157
|
const ListUpdateBackupEnhancePolicyRequest_1 = require("./model/ListUpdateBackupEnhancePolicyRequest");
|
|
@@ -262,6 +271,7 @@ const UpgradeDbMajorVersionRequest_1 = require("./model/UpgradeDbMajorVersionReq
|
|
|
262
271
|
const UpgradeDbVersionNewRequest_1 = require("./model/UpgradeDbVersionNewRequest");
|
|
263
272
|
const UpgradeDbVersionRequest_1 = require("./model/UpgradeDbVersionRequest");
|
|
264
273
|
const UpgradeLargeVersionRequest_1 = require("./model/UpgradeLargeVersionRequest");
|
|
274
|
+
const ValidateInstanceConnectionRequest_1 = require("./model/ValidateInstanceConnectionRequest");
|
|
265
275
|
class RdsClient {
|
|
266
276
|
static newBuilder() {
|
|
267
277
|
let client = new ClientBuilder_1.ClientBuilder(newClient);
|
|
@@ -4549,6 +4559,60 @@ class RdsClient {
|
|
|
4549
4559
|
options['responseHeaders'] = [''];
|
|
4550
4560
|
return this.hcClient.sendRequest(options);
|
|
4551
4561
|
}
|
|
4562
|
+
/**
|
|
4563
|
+
* 批量修改订阅
|
|
4564
|
+
*
|
|
4565
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4566
|
+
*
|
|
4567
|
+
* @summary 批量修改订阅
|
|
4568
|
+
* @param {string} instanceId 实例ID。
|
|
4569
|
+
* @param {ModifySubscriptionsRequestBody} batchModifySubscriptionRequestBody 批量修改订阅请求体。
|
|
4570
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4571
|
+
* @param {*} [options] Override http request option.
|
|
4572
|
+
* @throws {RequiredError}
|
|
4573
|
+
*/
|
|
4574
|
+
batchModifySubscription(batchModifySubscriptionRequest) {
|
|
4575
|
+
const options = (0, exports.ParamCreater)().batchModifySubscription(batchModifySubscriptionRequest);
|
|
4576
|
+
// @ts-ignore
|
|
4577
|
+
options['responseHeaders'] = [''];
|
|
4578
|
+
return this.hcClient.sendRequest(options);
|
|
4579
|
+
}
|
|
4580
|
+
/**
|
|
4581
|
+
* 查询发布监控信息。
|
|
4582
|
+
*
|
|
4583
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4584
|
+
*
|
|
4585
|
+
* @summary 查询发布监控信息
|
|
4586
|
+
* @param {string} instanceId 实例ID
|
|
4587
|
+
* @param {string} publicationId 发布ID
|
|
4588
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4589
|
+
* @param {*} [options] Override http request option.
|
|
4590
|
+
* @throws {RequiredError}
|
|
4591
|
+
*/
|
|
4592
|
+
collectPublicationMonitor(collectPublicationMonitorRequest) {
|
|
4593
|
+
const options = (0, exports.ParamCreater)().collectPublicationMonitor(collectPublicationMonitorRequest);
|
|
4594
|
+
// @ts-ignore
|
|
4595
|
+
options['responseHeaders'] = [''];
|
|
4596
|
+
return this.hcClient.sendRequest(options);
|
|
4597
|
+
}
|
|
4598
|
+
/**
|
|
4599
|
+
* 查询订阅监控信息。
|
|
4600
|
+
*
|
|
4601
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4602
|
+
*
|
|
4603
|
+
* @summary 查询订阅监控信息
|
|
4604
|
+
* @param {string} instanceId 实例ID
|
|
4605
|
+
* @param {string} subscriptionId 订阅ID
|
|
4606
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4607
|
+
* @param {*} [options] Override http request option.
|
|
4608
|
+
* @throws {RequiredError}
|
|
4609
|
+
*/
|
|
4610
|
+
collectSubscriptionMonitor(collectSubscriptionMonitorRequest) {
|
|
4611
|
+
const options = (0, exports.ParamCreater)().collectSubscriptionMonitor(collectSubscriptionMonitorRequest);
|
|
4612
|
+
// @ts-ignore
|
|
4613
|
+
options['responseHeaders'] = [''];
|
|
4614
|
+
return this.hcClient.sendRequest(options);
|
|
4615
|
+
}
|
|
4552
4616
|
/**
|
|
4553
4617
|
* 复制数据库
|
|
4554
4618
|
*
|
|
@@ -4620,6 +4684,23 @@ class RdsClient {
|
|
|
4620
4684
|
options['responseHeaders'] = [''];
|
|
4621
4685
|
return this.hcClient.sendRequest(options);
|
|
4622
4686
|
}
|
|
4687
|
+
/**
|
|
4688
|
+
* 删除当前实例的分发服务器
|
|
4689
|
+
*
|
|
4690
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4691
|
+
*
|
|
4692
|
+
* @summary 删除当前实例的分发服务器
|
|
4693
|
+
* @param {string} instanceId 实例ID
|
|
4694
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4695
|
+
* @param {*} [options] Override http request option.
|
|
4696
|
+
* @throws {RequiredError}
|
|
4697
|
+
*/
|
|
4698
|
+
deleteDistribution(deleteDistributionRequest) {
|
|
4699
|
+
const options = (0, exports.ParamCreater)().deleteDistribution(deleteDistributionRequest);
|
|
4700
|
+
// @ts-ignore
|
|
4701
|
+
options['responseHeaders'] = [''];
|
|
4702
|
+
return this.hcClient.sendRequest(options);
|
|
4703
|
+
}
|
|
4623
4704
|
/**
|
|
4624
4705
|
* 删除MSDTC相关主机host地址
|
|
4625
4706
|
*
|
|
@@ -4711,6 +4792,24 @@ class RdsClient {
|
|
|
4711
4792
|
options['responseHeaders'] = [''];
|
|
4712
4793
|
return this.hcClient.sendRequest(options);
|
|
4713
4794
|
}
|
|
4795
|
+
/**
|
|
4796
|
+
* 删除订阅
|
|
4797
|
+
*
|
|
4798
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4799
|
+
*
|
|
4800
|
+
* @summary 删除订阅
|
|
4801
|
+
* @param {string} instanceId 实例ID
|
|
4802
|
+
* @param {DeleteSubscriptionRequestBody} deleteSubscriptionRequestBody 删除订阅请求体。
|
|
4803
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4804
|
+
* @param {*} [options] Override http request option.
|
|
4805
|
+
* @throws {RequiredError}
|
|
4806
|
+
*/
|
|
4807
|
+
deleteSubscription(deleteSubscriptionRequest) {
|
|
4808
|
+
const options = (0, exports.ParamCreater)().deleteSubscription(deleteSubscriptionRequest);
|
|
4809
|
+
// @ts-ignore
|
|
4810
|
+
options['responseHeaders'] = [''];
|
|
4811
|
+
return this.hcClient.sendRequest(options);
|
|
4812
|
+
}
|
|
4714
4813
|
/**
|
|
4715
4814
|
* 查询指定数据库的已授权用户。
|
|
4716
4815
|
*
|
|
@@ -4749,6 +4848,26 @@ class RdsClient {
|
|
|
4749
4848
|
options['responseHeaders'] = [''];
|
|
4750
4849
|
return this.hcClient.sendRequest(options);
|
|
4751
4850
|
}
|
|
4851
|
+
/**
|
|
4852
|
+
* 查询数据库代理作业列表。
|
|
4853
|
+
*
|
|
4854
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4855
|
+
*
|
|
4856
|
+
* @summary 查询数据库代理作业列表
|
|
4857
|
+
* @param {string} instanceId 实例ID
|
|
4858
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4859
|
+
* @param {string} [jobType] 作业类型。默认不传,查询所有作业。 若传,则取值如下: replication:发布订阅相关作业。
|
|
4860
|
+
* @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
4861
|
+
* @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
|
4862
|
+
* @param {*} [options] Override http request option.
|
|
4863
|
+
* @throws {RequiredError}
|
|
4864
|
+
*/
|
|
4865
|
+
listDbAgentJobs(listDbAgentJobsRequest) {
|
|
4866
|
+
const options = (0, exports.ParamCreater)().listDbAgentJobs(listDbAgentJobsRequest);
|
|
4867
|
+
// @ts-ignore
|
|
4868
|
+
options['responseHeaders'] = [''];
|
|
4869
|
+
return this.hcClient.sendRequest(options);
|
|
4870
|
+
}
|
|
4752
4871
|
/**
|
|
4753
4872
|
* 查询当前实例配置的分发服务器
|
|
4754
4873
|
*
|
|
@@ -4845,6 +4964,44 @@ class RdsClient {
|
|
|
4845
4964
|
options['responseHeaders'] = [''];
|
|
4846
4965
|
return this.hcClient.sendRequest(options);
|
|
4847
4966
|
}
|
|
4967
|
+
/**
|
|
4968
|
+
* 查询实例可选的RDS for SQL Server实例的发布
|
|
4969
|
+
*
|
|
4970
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4971
|
+
*
|
|
4972
|
+
* @summary 查询实例可选的发布
|
|
4973
|
+
* @param {string} instanceId 实例ID
|
|
4974
|
+
* @param {ListPublications4SubscriptionRequestBody} listPublications4SubscriptionRequestBody 实例ID
|
|
4975
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4976
|
+
* @param {*} [options] Override http request option.
|
|
4977
|
+
* @throws {RequiredError}
|
|
4978
|
+
*/
|
|
4979
|
+
listPublications4Subscription(listPublications4SubscriptionRequest) {
|
|
4980
|
+
const options = (0, exports.ParamCreater)().listPublications4Subscription(listPublications4SubscriptionRequest);
|
|
4981
|
+
// @ts-ignore
|
|
4982
|
+
options['responseHeaders'] = [''];
|
|
4983
|
+
return this.hcClient.sendRequest(options);
|
|
4984
|
+
}
|
|
4985
|
+
/**
|
|
4986
|
+
* 查询发布订阅配置文件列表。
|
|
4987
|
+
*
|
|
4988
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4989
|
+
*
|
|
4990
|
+
* @summary 查询发布订阅配置文件列表
|
|
4991
|
+
* @param {string} instanceId 实例ID。
|
|
4992
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
4993
|
+
* @param {string} [agentType] 代理类型。 snapshot:快照代理 log_reader:日志读取器代理 distribution:分发代理 merge:合并代理 queue_reader:队列读取器代理。
|
|
4994
|
+
* @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
4995
|
+
* @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
|
4996
|
+
* @param {*} [options] Override http request option.
|
|
4997
|
+
* @throws {RequiredError}
|
|
4998
|
+
*/
|
|
4999
|
+
listReplicationProfiles(listReplicationProfilesRequest) {
|
|
5000
|
+
const options = (0, exports.ParamCreater)().listReplicationProfiles(listReplicationProfilesRequest);
|
|
5001
|
+
// @ts-ignore
|
|
5002
|
+
options['responseHeaders'] = [''];
|
|
5003
|
+
return this.hcClient.sendRequest(options);
|
|
5004
|
+
}
|
|
4848
5005
|
/**
|
|
4849
5006
|
* 查询数据库列表。
|
|
4850
5007
|
*
|
|
@@ -4906,6 +5063,29 @@ class RdsClient {
|
|
|
4906
5063
|
options['responseHeaders'] = [''];
|
|
4907
5064
|
return this.hcClient.sendRequest(options);
|
|
4908
5065
|
}
|
|
5066
|
+
/**
|
|
5067
|
+
* 查询实例订阅信息
|
|
5068
|
+
*
|
|
5069
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5070
|
+
*
|
|
5071
|
+
* @summary 查询实例订阅信息
|
|
5072
|
+
* @param {string} instanceId 实例ID
|
|
5073
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
5074
|
+
* @param {string} [publicationId] 发布id。不为空则查询该发布下的订阅;为空(null)则查询实例本地订阅。
|
|
5075
|
+
* @param {boolean} [isCloud] 订阅服务器来源 true:订阅服务器为云上实例 false:订阅服务器非云上实例 不传该参数(null):全部订阅
|
|
5076
|
+
* @param {string} [publicationName] 发布名(模糊匹配)
|
|
5077
|
+
* @param {string} [subscriptionDbName] 订阅数据库名(模糊匹配)
|
|
5078
|
+
* @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
5079
|
+
* @param {number} [limit] 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
|
5080
|
+
* @param {*} [options] Override http request option.
|
|
5081
|
+
* @throws {RequiredError}
|
|
5082
|
+
*/
|
|
5083
|
+
listSubscriptions(listSubscriptionsRequest) {
|
|
5084
|
+
const options = (0, exports.ParamCreater)().listSubscriptions(listSubscriptionsRequest);
|
|
5085
|
+
// @ts-ignore
|
|
5086
|
+
options['responseHeaders'] = [''];
|
|
5087
|
+
return this.hcClient.sendRequest(options);
|
|
5088
|
+
}
|
|
4909
5089
|
/**
|
|
4910
5090
|
* 修改实例字符集。
|
|
4911
5091
|
*
|
|
@@ -4995,6 +5175,24 @@ class RdsClient {
|
|
|
4995
5175
|
options['responseHeaders'] = [''];
|
|
4996
5176
|
return this.hcClient.sendRequest(options);
|
|
4997
5177
|
}
|
|
5178
|
+
/**
|
|
5179
|
+
* RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
|
|
5180
|
+
*
|
|
5181
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5182
|
+
*
|
|
5183
|
+
* @summary 登录测试
|
|
5184
|
+
* @param {string} instanceId 实例ID
|
|
5185
|
+
* @param {ValidateInstanceConnectionRequestBody} validateInstanceConnectionRequestBody 连通性测试请求体。
|
|
5186
|
+
* @param {string} [xLanguage] 语言。默认en-us。
|
|
5187
|
+
* @param {*} [options] Override http request option.
|
|
5188
|
+
* @throws {RequiredError}
|
|
5189
|
+
*/
|
|
5190
|
+
validateInstanceConnection(validateInstanceConnectionRequest) {
|
|
5191
|
+
const options = (0, exports.ParamCreater)().validateInstanceConnection(validateInstanceConnectionRequest);
|
|
5192
|
+
// @ts-ignore
|
|
5193
|
+
options['responseHeaders'] = [''];
|
|
5194
|
+
return this.hcClient.sendRequest(options);
|
|
5195
|
+
}
|
|
4998
5196
|
/**
|
|
4999
5197
|
* 查询sql统计列表
|
|
5000
5198
|
*
|
|
@@ -15831,6 +16029,138 @@ const ParamCreater = function () {
|
|
|
15831
16029
|
options.headers = localVarHeaderParameter;
|
|
15832
16030
|
return options;
|
|
15833
16031
|
},
|
|
16032
|
+
/**
|
|
16033
|
+
* 批量修改订阅
|
|
16034
|
+
*
|
|
16035
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16036
|
+
*/
|
|
16037
|
+
batchModifySubscription(batchModifySubscriptionRequest) {
|
|
16038
|
+
const options = {
|
|
16039
|
+
method: "PUT",
|
|
16040
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions",
|
|
16041
|
+
contentType: "application/json",
|
|
16042
|
+
queryParams: {},
|
|
16043
|
+
pathParams: {},
|
|
16044
|
+
headers: {},
|
|
16045
|
+
data: {}
|
|
16046
|
+
};
|
|
16047
|
+
const localVarHeaderParameter = {};
|
|
16048
|
+
let body;
|
|
16049
|
+
let instanceId;
|
|
16050
|
+
let xLanguage;
|
|
16051
|
+
if (batchModifySubscriptionRequest !== null && batchModifySubscriptionRequest !== undefined) {
|
|
16052
|
+
if (batchModifySubscriptionRequest instanceof BatchModifySubscriptionRequest_1.BatchModifySubscriptionRequest) {
|
|
16053
|
+
instanceId = batchModifySubscriptionRequest.instanceId;
|
|
16054
|
+
body = batchModifySubscriptionRequest.body;
|
|
16055
|
+
xLanguage = batchModifySubscriptionRequest.xLanguage;
|
|
16056
|
+
}
|
|
16057
|
+
else {
|
|
16058
|
+
instanceId = batchModifySubscriptionRequest['instance_id'];
|
|
16059
|
+
body = batchModifySubscriptionRequest['body'];
|
|
16060
|
+
xLanguage = batchModifySubscriptionRequest['X-Language'];
|
|
16061
|
+
}
|
|
16062
|
+
}
|
|
16063
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16064
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling batchModifySubscription.');
|
|
16065
|
+
}
|
|
16066
|
+
if (body === null || body === undefined) {
|
|
16067
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16068
|
+
}
|
|
16069
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16070
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16071
|
+
}
|
|
16072
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16073
|
+
options.data = body !== undefined ? body : {};
|
|
16074
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16075
|
+
options.headers = localVarHeaderParameter;
|
|
16076
|
+
return options;
|
|
16077
|
+
},
|
|
16078
|
+
/**
|
|
16079
|
+
* 查询发布监控信息。
|
|
16080
|
+
*
|
|
16081
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16082
|
+
*/
|
|
16083
|
+
collectPublicationMonitor(collectPublicationMonitorRequest) {
|
|
16084
|
+
const options = {
|
|
16085
|
+
method: "GET",
|
|
16086
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/publications/{publication_id}/monitor",
|
|
16087
|
+
contentType: "application/json",
|
|
16088
|
+
queryParams: {},
|
|
16089
|
+
pathParams: {},
|
|
16090
|
+
headers: {}
|
|
16091
|
+
};
|
|
16092
|
+
const localVarHeaderParameter = {};
|
|
16093
|
+
let instanceId;
|
|
16094
|
+
let publicationId;
|
|
16095
|
+
let xLanguage;
|
|
16096
|
+
if (collectPublicationMonitorRequest !== null && collectPublicationMonitorRequest !== undefined) {
|
|
16097
|
+
if (collectPublicationMonitorRequest instanceof CollectPublicationMonitorRequest_1.CollectPublicationMonitorRequest) {
|
|
16098
|
+
instanceId = collectPublicationMonitorRequest.instanceId;
|
|
16099
|
+
publicationId = collectPublicationMonitorRequest.publicationId;
|
|
16100
|
+
xLanguage = collectPublicationMonitorRequest.xLanguage;
|
|
16101
|
+
}
|
|
16102
|
+
else {
|
|
16103
|
+
instanceId = collectPublicationMonitorRequest['instance_id'];
|
|
16104
|
+
publicationId = collectPublicationMonitorRequest['publication_id'];
|
|
16105
|
+
xLanguage = collectPublicationMonitorRequest['X-Language'];
|
|
16106
|
+
}
|
|
16107
|
+
}
|
|
16108
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16109
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling collectPublicationMonitor.');
|
|
16110
|
+
}
|
|
16111
|
+
if (publicationId === null || publicationId === undefined) {
|
|
16112
|
+
throw new RequiredError('publicationId', 'Required parameter publicationId was null or undefined when calling collectPublicationMonitor.');
|
|
16113
|
+
}
|
|
16114
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16115
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16116
|
+
}
|
|
16117
|
+
options.pathParams = { 'instance_id': instanceId, 'publication_id': publicationId, };
|
|
16118
|
+
options.headers = localVarHeaderParameter;
|
|
16119
|
+
return options;
|
|
16120
|
+
},
|
|
16121
|
+
/**
|
|
16122
|
+
* 查询订阅监控信息。
|
|
16123
|
+
*
|
|
16124
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16125
|
+
*/
|
|
16126
|
+
collectSubscriptionMonitor(collectSubscriptionMonitorRequest) {
|
|
16127
|
+
const options = {
|
|
16128
|
+
method: "GET",
|
|
16129
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions/{subscription_id}/monitor",
|
|
16130
|
+
contentType: "application/json",
|
|
16131
|
+
queryParams: {},
|
|
16132
|
+
pathParams: {},
|
|
16133
|
+
headers: {}
|
|
16134
|
+
};
|
|
16135
|
+
const localVarHeaderParameter = {};
|
|
16136
|
+
let instanceId;
|
|
16137
|
+
let subscriptionId;
|
|
16138
|
+
let xLanguage;
|
|
16139
|
+
if (collectSubscriptionMonitorRequest !== null && collectSubscriptionMonitorRequest !== undefined) {
|
|
16140
|
+
if (collectSubscriptionMonitorRequest instanceof CollectSubscriptionMonitorRequest_1.CollectSubscriptionMonitorRequest) {
|
|
16141
|
+
instanceId = collectSubscriptionMonitorRequest.instanceId;
|
|
16142
|
+
subscriptionId = collectSubscriptionMonitorRequest.subscriptionId;
|
|
16143
|
+
xLanguage = collectSubscriptionMonitorRequest.xLanguage;
|
|
16144
|
+
}
|
|
16145
|
+
else {
|
|
16146
|
+
instanceId = collectSubscriptionMonitorRequest['instance_id'];
|
|
16147
|
+
subscriptionId = collectSubscriptionMonitorRequest['subscription_id'];
|
|
16148
|
+
xLanguage = collectSubscriptionMonitorRequest['X-Language'];
|
|
16149
|
+
}
|
|
16150
|
+
}
|
|
16151
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16152
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling collectSubscriptionMonitor.');
|
|
16153
|
+
}
|
|
16154
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
16155
|
+
throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling collectSubscriptionMonitor.');
|
|
16156
|
+
}
|
|
16157
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16158
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16159
|
+
}
|
|
16160
|
+
options.pathParams = { 'instance_id': instanceId, 'subscription_id': subscriptionId, };
|
|
16161
|
+
options.headers = localVarHeaderParameter;
|
|
16162
|
+
return options;
|
|
16163
|
+
},
|
|
15834
16164
|
/**
|
|
15835
16165
|
* 复制数据库
|
|
15836
16166
|
*
|
|
@@ -16009,6 +16339,43 @@ const ParamCreater = function () {
|
|
|
16009
16339
|
options.headers = localVarHeaderParameter;
|
|
16010
16340
|
return options;
|
|
16011
16341
|
},
|
|
16342
|
+
/**
|
|
16343
|
+
* 删除当前实例的分发服务器
|
|
16344
|
+
*
|
|
16345
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16346
|
+
*/
|
|
16347
|
+
deleteDistribution(deleteDistributionRequest) {
|
|
16348
|
+
const options = {
|
|
16349
|
+
method: "DELETE",
|
|
16350
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/distribution",
|
|
16351
|
+
contentType: "application/json",
|
|
16352
|
+
queryParams: {},
|
|
16353
|
+
pathParams: {},
|
|
16354
|
+
headers: {}
|
|
16355
|
+
};
|
|
16356
|
+
const localVarHeaderParameter = {};
|
|
16357
|
+
let instanceId;
|
|
16358
|
+
let xLanguage;
|
|
16359
|
+
if (deleteDistributionRequest !== null && deleteDistributionRequest !== undefined) {
|
|
16360
|
+
if (deleteDistributionRequest instanceof DeleteDistributionRequest_1.DeleteDistributionRequest) {
|
|
16361
|
+
instanceId = deleteDistributionRequest.instanceId;
|
|
16362
|
+
xLanguage = deleteDistributionRequest.xLanguage;
|
|
16363
|
+
}
|
|
16364
|
+
else {
|
|
16365
|
+
instanceId = deleteDistributionRequest['instance_id'];
|
|
16366
|
+
xLanguage = deleteDistributionRequest['X-Language'];
|
|
16367
|
+
}
|
|
16368
|
+
}
|
|
16369
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16370
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling deleteDistribution.');
|
|
16371
|
+
}
|
|
16372
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16373
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16374
|
+
}
|
|
16375
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16376
|
+
options.headers = localVarHeaderParameter;
|
|
16377
|
+
return options;
|
|
16378
|
+
},
|
|
16012
16379
|
/**
|
|
16013
16380
|
* 删除MSDTC相关主机host地址
|
|
16014
16381
|
*
|
|
@@ -16233,6 +16600,52 @@ const ParamCreater = function () {
|
|
|
16233
16600
|
options.headers = localVarHeaderParameter;
|
|
16234
16601
|
return options;
|
|
16235
16602
|
},
|
|
16603
|
+
/**
|
|
16604
|
+
* 删除订阅
|
|
16605
|
+
*
|
|
16606
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16607
|
+
*/
|
|
16608
|
+
deleteSubscription(deleteSubscriptionRequest) {
|
|
16609
|
+
const options = {
|
|
16610
|
+
method: "DELETE",
|
|
16611
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions",
|
|
16612
|
+
contentType: "application/json",
|
|
16613
|
+
queryParams: {},
|
|
16614
|
+
pathParams: {},
|
|
16615
|
+
headers: {},
|
|
16616
|
+
data: {}
|
|
16617
|
+
};
|
|
16618
|
+
const localVarHeaderParameter = {};
|
|
16619
|
+
let body;
|
|
16620
|
+
let instanceId;
|
|
16621
|
+
let xLanguage;
|
|
16622
|
+
if (deleteSubscriptionRequest !== null && deleteSubscriptionRequest !== undefined) {
|
|
16623
|
+
if (deleteSubscriptionRequest instanceof DeleteSubscriptionRequest_1.DeleteSubscriptionRequest) {
|
|
16624
|
+
instanceId = deleteSubscriptionRequest.instanceId;
|
|
16625
|
+
body = deleteSubscriptionRequest.body;
|
|
16626
|
+
xLanguage = deleteSubscriptionRequest.xLanguage;
|
|
16627
|
+
}
|
|
16628
|
+
else {
|
|
16629
|
+
instanceId = deleteSubscriptionRequest['instance_id'];
|
|
16630
|
+
body = deleteSubscriptionRequest['body'];
|
|
16631
|
+
xLanguage = deleteSubscriptionRequest['X-Language'];
|
|
16632
|
+
}
|
|
16633
|
+
}
|
|
16634
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16635
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling deleteSubscription.');
|
|
16636
|
+
}
|
|
16637
|
+
if (body === null || body === undefined) {
|
|
16638
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16639
|
+
}
|
|
16640
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16641
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16642
|
+
}
|
|
16643
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16644
|
+
options.data = body !== undefined ? body : {};
|
|
16645
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16646
|
+
options.headers = localVarHeaderParameter;
|
|
16647
|
+
return options;
|
|
16648
|
+
},
|
|
16236
16649
|
/**
|
|
16237
16650
|
* 查询指定数据库的已授权用户。
|
|
16238
16651
|
*
|
|
@@ -16343,6 +16756,63 @@ const ParamCreater = function () {
|
|
|
16343
16756
|
options.headers = localVarHeaderParameter;
|
|
16344
16757
|
return options;
|
|
16345
16758
|
},
|
|
16759
|
+
/**
|
|
16760
|
+
* 查询数据库代理作业列表。
|
|
16761
|
+
*
|
|
16762
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16763
|
+
*/
|
|
16764
|
+
listDbAgentJobs(listDbAgentJobsRequest) {
|
|
16765
|
+
const options = {
|
|
16766
|
+
method: "GET",
|
|
16767
|
+
url: "/v3/{project_id}/instances/{instance_id}/db-jobs",
|
|
16768
|
+
contentType: "application/json",
|
|
16769
|
+
queryParams: {},
|
|
16770
|
+
pathParams: {},
|
|
16771
|
+
headers: {}
|
|
16772
|
+
};
|
|
16773
|
+
const localVarHeaderParameter = {};
|
|
16774
|
+
const localVarQueryParameter = {};
|
|
16775
|
+
let instanceId;
|
|
16776
|
+
let xLanguage;
|
|
16777
|
+
let jobType;
|
|
16778
|
+
let offset;
|
|
16779
|
+
let limit;
|
|
16780
|
+
if (listDbAgentJobsRequest !== null && listDbAgentJobsRequest !== undefined) {
|
|
16781
|
+
if (listDbAgentJobsRequest instanceof ListDbAgentJobsRequest_1.ListDbAgentJobsRequest) {
|
|
16782
|
+
instanceId = listDbAgentJobsRequest.instanceId;
|
|
16783
|
+
xLanguage = listDbAgentJobsRequest.xLanguage;
|
|
16784
|
+
jobType = listDbAgentJobsRequest.jobType;
|
|
16785
|
+
offset = listDbAgentJobsRequest.offset;
|
|
16786
|
+
limit = listDbAgentJobsRequest.limit;
|
|
16787
|
+
}
|
|
16788
|
+
else {
|
|
16789
|
+
instanceId = listDbAgentJobsRequest['instance_id'];
|
|
16790
|
+
xLanguage = listDbAgentJobsRequest['X-Language'];
|
|
16791
|
+
jobType = listDbAgentJobsRequest['job_type'];
|
|
16792
|
+
offset = listDbAgentJobsRequest['offset'];
|
|
16793
|
+
limit = listDbAgentJobsRequest['limit'];
|
|
16794
|
+
}
|
|
16795
|
+
}
|
|
16796
|
+
if (instanceId === null || instanceId === undefined) {
|
|
16797
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listDbAgentJobs.');
|
|
16798
|
+
}
|
|
16799
|
+
if (jobType !== null && jobType !== undefined) {
|
|
16800
|
+
localVarQueryParameter['job_type'] = jobType;
|
|
16801
|
+
}
|
|
16802
|
+
if (offset !== null && offset !== undefined) {
|
|
16803
|
+
localVarQueryParameter['offset'] = offset;
|
|
16804
|
+
}
|
|
16805
|
+
if (limit !== null && limit !== undefined) {
|
|
16806
|
+
localVarQueryParameter['limit'] = limit;
|
|
16807
|
+
}
|
|
16808
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
16809
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
16810
|
+
}
|
|
16811
|
+
options.queryParams = localVarQueryParameter;
|
|
16812
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
16813
|
+
options.headers = localVarHeaderParameter;
|
|
16814
|
+
return options;
|
|
16815
|
+
},
|
|
16346
16816
|
/**
|
|
16347
16817
|
* 查询当前实例配置的分发服务器
|
|
16348
16818
|
*
|
|
@@ -16602,6 +17072,109 @@ const ParamCreater = function () {
|
|
|
16602
17072
|
options.headers = localVarHeaderParameter;
|
|
16603
17073
|
return options;
|
|
16604
17074
|
},
|
|
17075
|
+
/**
|
|
17076
|
+
* 查询实例可选的RDS for SQL Server实例的发布
|
|
17077
|
+
*
|
|
17078
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
17079
|
+
*/
|
|
17080
|
+
listPublications4Subscription(listPublications4SubscriptionRequest) {
|
|
17081
|
+
const options = {
|
|
17082
|
+
method: "POST",
|
|
17083
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/publication-candidates",
|
|
17084
|
+
contentType: "application/json",
|
|
17085
|
+
queryParams: {},
|
|
17086
|
+
pathParams: {},
|
|
17087
|
+
headers: {},
|
|
17088
|
+
data: {}
|
|
17089
|
+
};
|
|
17090
|
+
const localVarHeaderParameter = {};
|
|
17091
|
+
let body;
|
|
17092
|
+
let instanceId;
|
|
17093
|
+
let xLanguage;
|
|
17094
|
+
if (listPublications4SubscriptionRequest !== null && listPublications4SubscriptionRequest !== undefined) {
|
|
17095
|
+
if (listPublications4SubscriptionRequest instanceof ListPublications4SubscriptionRequest_1.ListPublications4SubscriptionRequest) {
|
|
17096
|
+
instanceId = listPublications4SubscriptionRequest.instanceId;
|
|
17097
|
+
body = listPublications4SubscriptionRequest.body;
|
|
17098
|
+
xLanguage = listPublications4SubscriptionRequest.xLanguage;
|
|
17099
|
+
}
|
|
17100
|
+
else {
|
|
17101
|
+
instanceId = listPublications4SubscriptionRequest['instance_id'];
|
|
17102
|
+
body = listPublications4SubscriptionRequest['body'];
|
|
17103
|
+
xLanguage = listPublications4SubscriptionRequest['X-Language'];
|
|
17104
|
+
}
|
|
17105
|
+
}
|
|
17106
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17107
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listPublications4Subscription.');
|
|
17108
|
+
}
|
|
17109
|
+
if (body === null || body === undefined) {
|
|
17110
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
17111
|
+
}
|
|
17112
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
17113
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
17114
|
+
}
|
|
17115
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17116
|
+
options.data = body !== undefined ? body : {};
|
|
17117
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
17118
|
+
options.headers = localVarHeaderParameter;
|
|
17119
|
+
return options;
|
|
17120
|
+
},
|
|
17121
|
+
/**
|
|
17122
|
+
* 查询发布订阅配置文件列表。
|
|
17123
|
+
*
|
|
17124
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
17125
|
+
*/
|
|
17126
|
+
listReplicationProfiles(listReplicationProfilesRequest) {
|
|
17127
|
+
const options = {
|
|
17128
|
+
method: "GET",
|
|
17129
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/profiles",
|
|
17130
|
+
contentType: "application/json",
|
|
17131
|
+
queryParams: {},
|
|
17132
|
+
pathParams: {},
|
|
17133
|
+
headers: {}
|
|
17134
|
+
};
|
|
17135
|
+
const localVarHeaderParameter = {};
|
|
17136
|
+
const localVarQueryParameter = {};
|
|
17137
|
+
let instanceId;
|
|
17138
|
+
let xLanguage;
|
|
17139
|
+
let agentType;
|
|
17140
|
+
let offset;
|
|
17141
|
+
let limit;
|
|
17142
|
+
if (listReplicationProfilesRequest !== null && listReplicationProfilesRequest !== undefined) {
|
|
17143
|
+
if (listReplicationProfilesRequest instanceof ListReplicationProfilesRequest_1.ListReplicationProfilesRequest) {
|
|
17144
|
+
instanceId = listReplicationProfilesRequest.instanceId;
|
|
17145
|
+
xLanguage = listReplicationProfilesRequest.xLanguage;
|
|
17146
|
+
agentType = listReplicationProfilesRequest.agentType;
|
|
17147
|
+
offset = listReplicationProfilesRequest.offset;
|
|
17148
|
+
limit = listReplicationProfilesRequest.limit;
|
|
17149
|
+
}
|
|
17150
|
+
else {
|
|
17151
|
+
instanceId = listReplicationProfilesRequest['instance_id'];
|
|
17152
|
+
xLanguage = listReplicationProfilesRequest['X-Language'];
|
|
17153
|
+
agentType = listReplicationProfilesRequest['agent_type'];
|
|
17154
|
+
offset = listReplicationProfilesRequest['offset'];
|
|
17155
|
+
limit = listReplicationProfilesRequest['limit'];
|
|
17156
|
+
}
|
|
17157
|
+
}
|
|
17158
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17159
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listReplicationProfiles.');
|
|
17160
|
+
}
|
|
17161
|
+
if (agentType !== null && agentType !== undefined) {
|
|
17162
|
+
localVarQueryParameter['agent_type'] = agentType;
|
|
17163
|
+
}
|
|
17164
|
+
if (offset !== null && offset !== undefined) {
|
|
17165
|
+
localVarQueryParameter['offset'] = offset;
|
|
17166
|
+
}
|
|
17167
|
+
if (limit !== null && limit !== undefined) {
|
|
17168
|
+
localVarQueryParameter['limit'] = limit;
|
|
17169
|
+
}
|
|
17170
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
17171
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
17172
|
+
}
|
|
17173
|
+
options.queryParams = localVarQueryParameter;
|
|
17174
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
17175
|
+
options.headers = localVarHeaderParameter;
|
|
17176
|
+
return options;
|
|
17177
|
+
},
|
|
16605
17178
|
/**
|
|
16606
17179
|
* 查询数据库列表。
|
|
16607
17180
|
*
|
|
@@ -16791,6 +17364,81 @@ const ParamCreater = function () {
|
|
|
16791
17364
|
options.headers = localVarHeaderParameter;
|
|
16792
17365
|
return options;
|
|
16793
17366
|
},
|
|
17367
|
+
/**
|
|
17368
|
+
* 查询实例订阅信息
|
|
17369
|
+
*
|
|
17370
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
17371
|
+
*/
|
|
17372
|
+
listSubscriptions(listSubscriptionsRequest) {
|
|
17373
|
+
const options = {
|
|
17374
|
+
method: "GET",
|
|
17375
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/subscriptions",
|
|
17376
|
+
contentType: "application/json",
|
|
17377
|
+
queryParams: {},
|
|
17378
|
+
pathParams: {},
|
|
17379
|
+
headers: {}
|
|
17380
|
+
};
|
|
17381
|
+
const localVarHeaderParameter = {};
|
|
17382
|
+
const localVarQueryParameter = {};
|
|
17383
|
+
let instanceId;
|
|
17384
|
+
let xLanguage;
|
|
17385
|
+
let publicationId;
|
|
17386
|
+
let isCloud;
|
|
17387
|
+
let publicationName;
|
|
17388
|
+
let subscriptionDbName;
|
|
17389
|
+
let offset;
|
|
17390
|
+
let limit;
|
|
17391
|
+
if (listSubscriptionsRequest !== null && listSubscriptionsRequest !== undefined) {
|
|
17392
|
+
if (listSubscriptionsRequest instanceof ListSubscriptionsRequest_1.ListSubscriptionsRequest) {
|
|
17393
|
+
instanceId = listSubscriptionsRequest.instanceId;
|
|
17394
|
+
xLanguage = listSubscriptionsRequest.xLanguage;
|
|
17395
|
+
publicationId = listSubscriptionsRequest.publicationId;
|
|
17396
|
+
isCloud = listSubscriptionsRequest.isCloud;
|
|
17397
|
+
publicationName = listSubscriptionsRequest.publicationName;
|
|
17398
|
+
subscriptionDbName = listSubscriptionsRequest.subscriptionDbName;
|
|
17399
|
+
offset = listSubscriptionsRequest.offset;
|
|
17400
|
+
limit = listSubscriptionsRequest.limit;
|
|
17401
|
+
}
|
|
17402
|
+
else {
|
|
17403
|
+
instanceId = listSubscriptionsRequest['instance_id'];
|
|
17404
|
+
xLanguage = listSubscriptionsRequest['X-Language'];
|
|
17405
|
+
publicationId = listSubscriptionsRequest['publication_id'];
|
|
17406
|
+
isCloud = listSubscriptionsRequest['is_cloud'];
|
|
17407
|
+
publicationName = listSubscriptionsRequest['publication_name'];
|
|
17408
|
+
subscriptionDbName = listSubscriptionsRequest['subscription_db_name'];
|
|
17409
|
+
offset = listSubscriptionsRequest['offset'];
|
|
17410
|
+
limit = listSubscriptionsRequest['limit'];
|
|
17411
|
+
}
|
|
17412
|
+
}
|
|
17413
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17414
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listSubscriptions.');
|
|
17415
|
+
}
|
|
17416
|
+
if (publicationId !== null && publicationId !== undefined) {
|
|
17417
|
+
localVarQueryParameter['publication_id'] = publicationId;
|
|
17418
|
+
}
|
|
17419
|
+
if (isCloud !== null && isCloud !== undefined) {
|
|
17420
|
+
localVarQueryParameter['is_cloud'] = isCloud;
|
|
17421
|
+
}
|
|
17422
|
+
if (publicationName !== null && publicationName !== undefined) {
|
|
17423
|
+
localVarQueryParameter['publication_name'] = publicationName;
|
|
17424
|
+
}
|
|
17425
|
+
if (subscriptionDbName !== null && subscriptionDbName !== undefined) {
|
|
17426
|
+
localVarQueryParameter['subscription_db_name'] = subscriptionDbName;
|
|
17427
|
+
}
|
|
17428
|
+
if (offset !== null && offset !== undefined) {
|
|
17429
|
+
localVarQueryParameter['offset'] = offset;
|
|
17430
|
+
}
|
|
17431
|
+
if (limit !== null && limit !== undefined) {
|
|
17432
|
+
localVarQueryParameter['limit'] = limit;
|
|
17433
|
+
}
|
|
17434
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
17435
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
17436
|
+
}
|
|
17437
|
+
options.queryParams = localVarQueryParameter;
|
|
17438
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
17439
|
+
options.headers = localVarHeaderParameter;
|
|
17440
|
+
return options;
|
|
17441
|
+
},
|
|
16794
17442
|
/**
|
|
16795
17443
|
* 修改实例字符集。
|
|
16796
17444
|
*
|
|
@@ -17015,6 +17663,52 @@ const ParamCreater = function () {
|
|
|
17015
17663
|
options.headers = localVarHeaderParameter;
|
|
17016
17664
|
return options;
|
|
17017
17665
|
},
|
|
17666
|
+
/**
|
|
17667
|
+
* RDS for SQL Server实例间或与远程SQL Server数据库的连通性测试
|
|
17668
|
+
*
|
|
17669
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
17670
|
+
*/
|
|
17671
|
+
validateInstanceConnection(validateInstanceConnectionRequest) {
|
|
17672
|
+
const options = {
|
|
17673
|
+
method: "POST",
|
|
17674
|
+
url: "/v3/{project_id}/instances/{instance_id}/replication/login-test",
|
|
17675
|
+
contentType: "application/json",
|
|
17676
|
+
queryParams: {},
|
|
17677
|
+
pathParams: {},
|
|
17678
|
+
headers: {},
|
|
17679
|
+
data: {}
|
|
17680
|
+
};
|
|
17681
|
+
const localVarHeaderParameter = {};
|
|
17682
|
+
let body;
|
|
17683
|
+
let instanceId;
|
|
17684
|
+
let xLanguage;
|
|
17685
|
+
if (validateInstanceConnectionRequest !== null && validateInstanceConnectionRequest !== undefined) {
|
|
17686
|
+
if (validateInstanceConnectionRequest instanceof ValidateInstanceConnectionRequest_1.ValidateInstanceConnectionRequest) {
|
|
17687
|
+
instanceId = validateInstanceConnectionRequest.instanceId;
|
|
17688
|
+
body = validateInstanceConnectionRequest.body;
|
|
17689
|
+
xLanguage = validateInstanceConnectionRequest.xLanguage;
|
|
17690
|
+
}
|
|
17691
|
+
else {
|
|
17692
|
+
instanceId = validateInstanceConnectionRequest['instance_id'];
|
|
17693
|
+
body = validateInstanceConnectionRequest['body'];
|
|
17694
|
+
xLanguage = validateInstanceConnectionRequest['X-Language'];
|
|
17695
|
+
}
|
|
17696
|
+
}
|
|
17697
|
+
if (instanceId === null || instanceId === undefined) {
|
|
17698
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling validateInstanceConnection.');
|
|
17699
|
+
}
|
|
17700
|
+
if (body === null || body === undefined) {
|
|
17701
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
17702
|
+
}
|
|
17703
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
17704
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
17705
|
+
}
|
|
17706
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17707
|
+
options.data = body !== undefined ? body : {};
|
|
17708
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
17709
|
+
options.headers = localVarHeaderParameter;
|
|
17710
|
+
return options;
|
|
17711
|
+
},
|
|
17018
17712
|
/**
|
|
17019
17713
|
* 查询sql统计列表
|
|
17020
17714
|
*
|