@huaweicloud/huaweicloud-sdk-rds 3.1.173 → 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 +377 -0
- package/v3/RdsClient.d.ts.map +1 -1
- package/v3/RdsClient.js +903 -21
- package/v3/RdsClient.js.map +1 -1
- package/v3/RdsRegion.d.ts +3 -0
- package/v3/RdsRegion.d.ts.map +1 -1
- package/v3/RdsRegion.js +7 -1
- package/v3/RdsRegion.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/CreateIntelligentKillSessionRequest.d.ts +11 -0
- package/v3/model/CreateIntelligentKillSessionRequest.d.ts.map +1 -0
- package/v3/model/CreateIntelligentKillSessionRequest.js +24 -0
- package/v3/model/CreateIntelligentKillSessionRequest.js.map +1 -0
- package/v3/model/CreateIntelligentKillSessionResponse.d.ts +13 -0
- package/v3/model/CreateIntelligentKillSessionResponse.d.ts.map +1 -0
- package/v3/model/CreateIntelligentKillSessionResponse.js +31 -0
- package/v3/model/CreateIntelligentKillSessionResponse.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/IntelligentKillSessionHistory.d.ts +20 -0
- package/v3/model/IntelligentKillSessionHistory.d.ts.map +1 -0
- package/v3/model/IntelligentKillSessionHistory.js +49 -0
- package/v3/model/IntelligentKillSessionHistory.js.map +1 -0
- package/v3/model/IntelligentKillSessionReq.d.ts +8 -0
- package/v3/model/IntelligentKillSessionReq.d.ts.map +1 -0
- package/v3/model/IntelligentKillSessionReq.js +19 -0
- package/v3/model/IntelligentKillSessionReq.js.map +1 -0
- package/v3/model/ListAutoScalingPolicyRequest.d.ts +12 -0
- package/v3/model/ListAutoScalingPolicyRequest.d.ts.map +1 -0
- package/v3/model/ListAutoScalingPolicyRequest.js +30 -0
- package/v3/model/ListAutoScalingPolicyRequest.js.map +1 -0
- package/v3/model/ListAutoScalingPolicyResponse.d.ts +39 -0
- package/v3/model/ListAutoScalingPolicyResponse.d.ts.map +1 -0
- package/v3/model/ListAutoScalingPolicyResponse.js +95 -0
- package/v3/model/ListAutoScalingPolicyResponse.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/OperateUsedJobSchedule.d.ts +1 -1
- package/v3/model/OperateUsedJobSchedule.d.ts.map +1 -1
- package/v3/model/OperateUsedJobSchedule.js +1 -2
- package/v3/model/OperateUsedJobSchedule.js.map +1 -1
- package/v3/model/ShowIntelligentKillSessionHistoryRequest.d.ts +24 -0
- package/v3/model/ShowIntelligentKillSessionHistoryRequest.d.ts.map +1 -0
- package/v3/model/ShowIntelligentKillSessionHistoryRequest.js +60 -0
- package/v3/model/ShowIntelligentKillSessionHistoryRequest.js.map +1 -0
- package/v3/model/ShowIntelligentKillSessionHistoryResponse.d.ts +16 -0
- package/v3/model/ShowIntelligentKillSessionHistoryResponse.d.ts.map +1 -0
- package/v3/model/ShowIntelligentKillSessionHistoryResponse.js +35 -0
- package/v3/model/ShowIntelligentKillSessionHistoryResponse.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 +40 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +40 -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");
|
|
@@ -30,6 +33,7 @@ const CreateDbUserRequest_1 = require("./model/CreateDbUserRequest");
|
|
|
30
33
|
const CreateDnsNameRequest_1 = require("./model/CreateDnsNameRequest");
|
|
31
34
|
const CreateInstanceIam5Request_1 = require("./model/CreateInstanceIam5Request");
|
|
32
35
|
const CreateInstanceRequest_1 = require("./model/CreateInstanceRequest");
|
|
36
|
+
const CreateIntelligentKillSessionRequest_1 = require("./model/CreateIntelligentKillSessionRequest");
|
|
33
37
|
const CreateManualBackupRequest_1 = require("./model/CreateManualBackupRequest");
|
|
34
38
|
const CreatePostgresqlDatabaseRequest_1 = require("./model/CreatePostgresqlDatabaseRequest");
|
|
35
39
|
const CreatePostgresqlDatabaseSchemaRequest_1 = require("./model/CreatePostgresqlDatabaseSchemaRequest");
|
|
@@ -46,6 +50,7 @@ const DeleteConfigurationRequest_1 = require("./model/DeleteConfigurationRequest
|
|
|
46
50
|
const DeleteDatabaseRequest_1 = require("./model/DeleteDatabaseRequest");
|
|
47
51
|
const DeleteDbUserRequest_1 = require("./model/DeleteDbUserRequest");
|
|
48
52
|
const DeleteDisasterRecoveryRequest_1 = require("./model/DeleteDisasterRecoveryRequest");
|
|
53
|
+
const DeleteDistributionRequest_1 = require("./model/DeleteDistributionRequest");
|
|
49
54
|
const DeleteInstanceRequest_1 = require("./model/DeleteInstanceRequest");
|
|
50
55
|
const DeleteJobRequest_1 = require("./model/DeleteJobRequest");
|
|
51
56
|
const DeleteLogLtsConfigsRequest_1 = require("./model/DeleteLogLtsConfigsRequest");
|
|
@@ -61,6 +66,7 @@ const DeleteSqlLimitRequest_1 = require("./model/DeleteSqlLimitRequest");
|
|
|
61
66
|
const DeleteSqlserverDatabaseExRequest_1 = require("./model/DeleteSqlserverDatabaseExRequest");
|
|
62
67
|
const DeleteSqlserverDatabaseRequest_1 = require("./model/DeleteSqlserverDatabaseRequest");
|
|
63
68
|
const DeleteSqlserverDbUserRequest_1 = require("./model/DeleteSqlserverDbUserRequest");
|
|
69
|
+
const DeleteSubscriptionRequest_1 = require("./model/DeleteSubscriptionRequest");
|
|
64
70
|
const DownloadErrorlogRequest_1 = require("./model/DownloadErrorlogRequest");
|
|
65
71
|
const DownloadSlowlogRequest_1 = require("./model/DownloadSlowlogRequest");
|
|
66
72
|
const EnableConfigurationRequest_1 = require("./model/EnableConfigurationRequest");
|
|
@@ -71,6 +77,7 @@ const ListAuditlogsRequest_1 = require("./model/ListAuditlogsRequest");
|
|
|
71
77
|
const ListAuthorizedDatabasesRequest_1 = require("./model/ListAuthorizedDatabasesRequest");
|
|
72
78
|
const ListAuthorizedDbUsersRequest_1 = require("./model/ListAuthorizedDbUsersRequest");
|
|
73
79
|
const ListAuthorizedSqlserverDbUsersRequest_1 = require("./model/ListAuthorizedSqlserverDbUsersRequest");
|
|
80
|
+
const ListAutoScalingPolicyRequest_1 = require("./model/ListAutoScalingPolicyRequest");
|
|
74
81
|
const ListBackupTransfersRequest_1 = require("./model/ListBackupTransfersRequest");
|
|
75
82
|
const ListBackupsRequest_1 = require("./model/ListBackupsRequest");
|
|
76
83
|
const ListBusinessPartnersRequest_1 = require("./model/ListBusinessPartnersRequest");
|
|
@@ -80,6 +87,7 @@ const ListConfigurationsRequest_1 = require("./model/ListConfigurationsRequest")
|
|
|
80
87
|
const ListDatabaseUserRoleRequest_1 = require("./model/ListDatabaseUserRoleRequest");
|
|
81
88
|
const ListDatabasesRequest_1 = require("./model/ListDatabasesRequest");
|
|
82
89
|
const ListDatastoresRequest_1 = require("./model/ListDatastoresRequest");
|
|
90
|
+
const ListDbAgentJobsRequest_1 = require("./model/ListDbAgentJobsRequest");
|
|
83
91
|
const ListDbUsersRequest_1 = require("./model/ListDbUsersRequest");
|
|
84
92
|
const ListDistributionRequest_1 = require("./model/ListDistributionRequest");
|
|
85
93
|
const ListDistributorInstancesRequest_1 = require("./model/ListDistributorInstancesRequest");
|
|
@@ -118,11 +126,13 @@ const ListPostgresqlHbaInfoRequest_1 = require("./model/ListPostgresqlHbaInfoReq
|
|
|
118
126
|
const ListPostgresqlListHistoryTablesRequest_1 = require("./model/ListPostgresqlListHistoryTablesRequest");
|
|
119
127
|
const ListPredefinedTagRequest_1 = require("./model/ListPredefinedTagRequest");
|
|
120
128
|
const ListProjectTagsRequest_1 = require("./model/ListProjectTagsRequest");
|
|
129
|
+
const ListPublications4SubscriptionRequest_1 = require("./model/ListPublications4SubscriptionRequest");
|
|
121
130
|
const ListPublicationsRequest_1 = require("./model/ListPublicationsRequest");
|
|
122
131
|
const ListRdSforMySqlProxyRequest_1 = require("./model/ListRdSforMySqlProxyRequest");
|
|
123
132
|
const ListRdSforMysqlProxyFlavorsRequest_1 = require("./model/ListRdSforMysqlProxyFlavorsRequest");
|
|
124
133
|
const ListReadOnlyReplayDatabaseRequest_1 = require("./model/ListReadOnlyReplayDatabaseRequest");
|
|
125
134
|
const ListRecycleInstancesRequest_1 = require("./model/ListRecycleInstancesRequest");
|
|
135
|
+
const ListReplicationProfilesRequest_1 = require("./model/ListReplicationProfilesRequest");
|
|
126
136
|
const ListRestoreTimesRequest_1 = require("./model/ListRestoreTimesRequest");
|
|
127
137
|
const ListScheduleTasksRequest_1 = require("./model/ListScheduleTasksRequest");
|
|
128
138
|
const ListShareBackupsRequest_1 = require("./model/ListShareBackupsRequest");
|
|
@@ -141,6 +151,7 @@ const ListSqlserverDbUsersRequest_1 = require("./model/ListSqlserverDbUsersReque
|
|
|
141
151
|
const ListSslCertDownloadLinkRequest_1 = require("./model/ListSslCertDownloadLinkRequest");
|
|
142
152
|
const ListStorageTypesRequest_1 = require("./model/ListStorageTypesRequest");
|
|
143
153
|
const ListSubscriberInstancesRequest_1 = require("./model/ListSubscriberInstancesRequest");
|
|
154
|
+
const ListSubscriptionsRequest_1 = require("./model/ListSubscriptionsRequest");
|
|
144
155
|
const ListTasksRequest_1 = require("./model/ListTasksRequest");
|
|
145
156
|
const ListTopSqlsRequest_1 = require("./model/ListTopSqlsRequest");
|
|
146
157
|
const ListUpdateBackupEnhancePolicyRequest_1 = require("./model/ListUpdateBackupEnhancePolicyRequest");
|
|
@@ -200,6 +211,7 @@ const ShowDrReplicaStatusRequest_1 = require("./model/ShowDrReplicaStatusRequest
|
|
|
200
211
|
const ShowIncreBackupPolicy1Request_1 = require("./model/ShowIncreBackupPolicy1Request");
|
|
201
212
|
const ShowInformationAboutDatabaseProxyRequest_1 = require("./model/ShowInformationAboutDatabaseProxyRequest");
|
|
202
213
|
const ShowInstanceConfigurationRequest_1 = require("./model/ShowInstanceConfigurationRequest");
|
|
214
|
+
const ShowIntelligentKillSessionHistoryRequest_1 = require("./model/ShowIntelligentKillSessionHistoryRequest");
|
|
203
215
|
const ShowOffSiteBackupPolicyRequest_1 = require("./model/ShowOffSiteBackupPolicyRequest");
|
|
204
216
|
const ShowPostgresqlParamValueRequest_1 = require("./model/ShowPostgresqlParamValueRequest");
|
|
205
217
|
const ShowPrecheckResultRequest_1 = require("./model/ShowPrecheckResultRequest");
|
|
@@ -259,6 +271,7 @@ const UpgradeDbMajorVersionRequest_1 = require("./model/UpgradeDbMajorVersionReq
|
|
|
259
271
|
const UpgradeDbVersionNewRequest_1 = require("./model/UpgradeDbVersionNewRequest");
|
|
260
272
|
const UpgradeDbVersionRequest_1 = require("./model/UpgradeDbVersionRequest");
|
|
261
273
|
const UpgradeLargeVersionRequest_1 = require("./model/UpgradeLargeVersionRequest");
|
|
274
|
+
const ValidateInstanceConnectionRequest_1 = require("./model/ValidateInstanceConnectionRequest");
|
|
262
275
|
class RdsClient {
|
|
263
276
|
static newBuilder() {
|
|
264
277
|
let client = new ClientBuilder_1.ClientBuilder(newClient);
|
|
@@ -918,6 +931,23 @@ class RdsClient {
|
|
|
918
931
|
options['responseHeaders'] = [''];
|
|
919
932
|
return this.hcClient.sendRequest(options);
|
|
920
933
|
}
|
|
934
|
+
/**
|
|
935
|
+
* 查询自动变配策略
|
|
936
|
+
*
|
|
937
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
938
|
+
*
|
|
939
|
+
* @summary 查询自动变配策略
|
|
940
|
+
* @param {string} instanceId **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,长度为36个字符。 **默认取值**: 不涉及。
|
|
941
|
+
* @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
*/
|
|
945
|
+
listAutoScalingPolicy(listAutoScalingPolicyRequest) {
|
|
946
|
+
const options = (0, exports.ParamCreater)().listAutoScalingPolicy(listAutoScalingPolicyRequest);
|
|
947
|
+
// @ts-ignore
|
|
948
|
+
options['responseHeaders'] = [''];
|
|
949
|
+
return this.hcClient.sendRequest(options);
|
|
950
|
+
}
|
|
921
951
|
/**
|
|
922
952
|
* 查询转储任务列表
|
|
923
953
|
*
|
|
@@ -4439,6 +4469,23 @@ class RdsClient {
|
|
|
4439
4469
|
options['responseHeaders'] = [''];
|
|
4440
4470
|
return this.hcClient.sendRequest(options);
|
|
4441
4471
|
}
|
|
4472
|
+
/**
|
|
4473
|
+
* 一键kill会话
|
|
4474
|
+
*
|
|
4475
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4476
|
+
*
|
|
4477
|
+
* @summary 一键kill会话
|
|
4478
|
+
* @param {string} instanceId 实例id
|
|
4479
|
+
* @param {IntelligentKillSessionReq} [createIntelligentKillSessionRequestBody] 一键自动kill会话请求体
|
|
4480
|
+
* @param {*} [options] Override http request option.
|
|
4481
|
+
* @throws {RequiredError}
|
|
4482
|
+
*/
|
|
4483
|
+
createIntelligentKillSession(createIntelligentKillSessionRequest) {
|
|
4484
|
+
const options = (0, exports.ParamCreater)().createIntelligentKillSession(createIntelligentKillSessionRequest);
|
|
4485
|
+
// @ts-ignore
|
|
4486
|
+
options['responseHeaders'] = [''];
|
|
4487
|
+
return this.hcClient.sendRequest(options);
|
|
4488
|
+
}
|
|
4442
4489
|
/**
|
|
4443
4490
|
* 查询无索引表诊断数据
|
|
4444
4491
|
*
|
|
@@ -4457,6 +4504,26 @@ class RdsClient {
|
|
|
4457
4504
|
options['responseHeaders'] = [''];
|
|
4458
4505
|
return this.hcClient.sendRequest(options);
|
|
4459
4506
|
}
|
|
4507
|
+
/**
|
|
4508
|
+
* 查询一键kill会话历史
|
|
4509
|
+
*
|
|
4510
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4511
|
+
*
|
|
4512
|
+
* @summary 查询一键kill会话历史
|
|
4513
|
+
* @param {string} instanceId 实例id
|
|
4514
|
+
* @param {number} [startTime] 查询开始时间
|
|
4515
|
+
* @param {number} [endTime] 查询结束时间
|
|
4516
|
+
* @param {number} [pageNum] 查询页编号
|
|
4517
|
+
* @param {number} [pageSize] 查询分页大小
|
|
4518
|
+
* @param {*} [options] Override http request option.
|
|
4519
|
+
* @throws {RequiredError}
|
|
4520
|
+
*/
|
|
4521
|
+
showIntelligentKillSessionHistory(showIntelligentKillSessionHistoryRequest) {
|
|
4522
|
+
const options = (0, exports.ParamCreater)().showIntelligentKillSessionHistory(showIntelligentKillSessionHistoryRequest);
|
|
4523
|
+
// @ts-ignore
|
|
4524
|
+
options['responseHeaders'] = [''];
|
|
4525
|
+
return this.hcClient.sendRequest(options);
|
|
4526
|
+
}
|
|
4460
4527
|
/**
|
|
4461
4528
|
* 授权数据库帐号。
|
|
4462
4529
|
*
|
|
@@ -4492,6 +4559,60 @@ class RdsClient {
|
|
|
4492
4559
|
options['responseHeaders'] = [''];
|
|
4493
4560
|
return this.hcClient.sendRequest(options);
|
|
4494
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
|
+
}
|
|
4495
4616
|
/**
|
|
4496
4617
|
* 复制数据库
|
|
4497
4618
|
*
|
|
@@ -4563,6 +4684,23 @@ class RdsClient {
|
|
|
4563
4684
|
options['responseHeaders'] = [''];
|
|
4564
4685
|
return this.hcClient.sendRequest(options);
|
|
4565
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
|
+
}
|
|
4566
4704
|
/**
|
|
4567
4705
|
* 删除MSDTC相关主机host地址
|
|
4568
4706
|
*
|
|
@@ -4654,6 +4792,24 @@ class RdsClient {
|
|
|
4654
4792
|
options['responseHeaders'] = [''];
|
|
4655
4793
|
return this.hcClient.sendRequest(options);
|
|
4656
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
|
+
}
|
|
4657
4813
|
/**
|
|
4658
4814
|
* 查询指定数据库的已授权用户。
|
|
4659
4815
|
*
|
|
@@ -4692,6 +4848,26 @@ class RdsClient {
|
|
|
4692
4848
|
options['responseHeaders'] = [''];
|
|
4693
4849
|
return this.hcClient.sendRequest(options);
|
|
4694
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
|
+
}
|
|
4695
4871
|
/**
|
|
4696
4872
|
* 查询当前实例配置的分发服务器
|
|
4697
4873
|
*
|
|
@@ -4788,6 +4964,44 @@ class RdsClient {
|
|
|
4788
4964
|
options['responseHeaders'] = [''];
|
|
4789
4965
|
return this.hcClient.sendRequest(options);
|
|
4790
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
|
+
}
|
|
4791
5005
|
/**
|
|
4792
5006
|
* 查询数据库列表。
|
|
4793
5007
|
*
|
|
@@ -4849,6 +5063,29 @@ class RdsClient {
|
|
|
4849
5063
|
options['responseHeaders'] = [''];
|
|
4850
5064
|
return this.hcClient.sendRequest(options);
|
|
4851
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
|
+
}
|
|
4852
5089
|
/**
|
|
4853
5090
|
* 修改实例字符集。
|
|
4854
5091
|
*
|
|
@@ -4938,6 +5175,24 @@ class RdsClient {
|
|
|
4938
5175
|
options['responseHeaders'] = [''];
|
|
4939
5176
|
return this.hcClient.sendRequest(options);
|
|
4940
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
|
+
}
|
|
4941
5196
|
/**
|
|
4942
5197
|
* 查询sql统计列表
|
|
4943
5198
|
*
|
|
@@ -6547,6 +6802,43 @@ const ParamCreater = function () {
|
|
|
6547
6802
|
options.headers = localVarHeaderParameter;
|
|
6548
6803
|
return options;
|
|
6549
6804
|
},
|
|
6805
|
+
/**
|
|
6806
|
+
* 查询自动变配策略
|
|
6807
|
+
*
|
|
6808
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
6809
|
+
*/
|
|
6810
|
+
listAutoScalingPolicy(listAutoScalingPolicyRequest) {
|
|
6811
|
+
const options = {
|
|
6812
|
+
method: "GET",
|
|
6813
|
+
url: "/v3/{project_id}/instances/{instance_id}/auto-scaling/policy",
|
|
6814
|
+
contentType: "application/json",
|
|
6815
|
+
queryParams: {},
|
|
6816
|
+
pathParams: {},
|
|
6817
|
+
headers: {}
|
|
6818
|
+
};
|
|
6819
|
+
const localVarHeaderParameter = {};
|
|
6820
|
+
let instanceId;
|
|
6821
|
+
let xLanguage;
|
|
6822
|
+
if (listAutoScalingPolicyRequest !== null && listAutoScalingPolicyRequest !== undefined) {
|
|
6823
|
+
if (listAutoScalingPolicyRequest instanceof ListAutoScalingPolicyRequest_1.ListAutoScalingPolicyRequest) {
|
|
6824
|
+
instanceId = listAutoScalingPolicyRequest.instanceId;
|
|
6825
|
+
xLanguage = listAutoScalingPolicyRequest.xLanguage;
|
|
6826
|
+
}
|
|
6827
|
+
else {
|
|
6828
|
+
instanceId = listAutoScalingPolicyRequest['instance_id'];
|
|
6829
|
+
xLanguage = listAutoScalingPolicyRequest['X-Language'];
|
|
6830
|
+
}
|
|
6831
|
+
}
|
|
6832
|
+
if (instanceId === null || instanceId === undefined) {
|
|
6833
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listAutoScalingPolicy.');
|
|
6834
|
+
}
|
|
6835
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
6836
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
6837
|
+
}
|
|
6838
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
6839
|
+
options.headers = localVarHeaderParameter;
|
|
6840
|
+
return options;
|
|
6841
|
+
},
|
|
6550
6842
|
/**
|
|
6551
6843
|
* 查询转储任务列表
|
|
6552
6844
|
*
|
|
@@ -15506,6 +15798,43 @@ const ParamCreater = function () {
|
|
|
15506
15798
|
options.headers = localVarHeaderParameter;
|
|
15507
15799
|
return options;
|
|
15508
15800
|
},
|
|
15801
|
+
/**
|
|
15802
|
+
* 一键kill会话
|
|
15803
|
+
*
|
|
15804
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15805
|
+
*/
|
|
15806
|
+
createIntelligentKillSession(createIntelligentKillSessionRequest) {
|
|
15807
|
+
const options = {
|
|
15808
|
+
method: "PUT",
|
|
15809
|
+
url: "/v3/{project_id}/instances/{instance_id}/ops/intelligent-kill-session",
|
|
15810
|
+
contentType: "application/json",
|
|
15811
|
+
queryParams: {},
|
|
15812
|
+
pathParams: {},
|
|
15813
|
+
headers: {},
|
|
15814
|
+
data: {}
|
|
15815
|
+
};
|
|
15816
|
+
const localVarHeaderParameter = {};
|
|
15817
|
+
let body;
|
|
15818
|
+
let instanceId;
|
|
15819
|
+
if (createIntelligentKillSessionRequest !== null && createIntelligentKillSessionRequest !== undefined) {
|
|
15820
|
+
if (createIntelligentKillSessionRequest instanceof CreateIntelligentKillSessionRequest_1.CreateIntelligentKillSessionRequest) {
|
|
15821
|
+
instanceId = createIntelligentKillSessionRequest.instanceId;
|
|
15822
|
+
body = createIntelligentKillSessionRequest.body;
|
|
15823
|
+
}
|
|
15824
|
+
else {
|
|
15825
|
+
instanceId = createIntelligentKillSessionRequest['instance_id'];
|
|
15826
|
+
body = createIntelligentKillSessionRequest['body'];
|
|
15827
|
+
}
|
|
15828
|
+
}
|
|
15829
|
+
if (instanceId === null || instanceId === undefined) {
|
|
15830
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createIntelligentKillSession.');
|
|
15831
|
+
}
|
|
15832
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15833
|
+
options.data = body !== undefined ? body : {};
|
|
15834
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
15835
|
+
options.headers = localVarHeaderParameter;
|
|
15836
|
+
return options;
|
|
15837
|
+
},
|
|
15509
15838
|
/**
|
|
15510
15839
|
* 查询无索引表诊断数据
|
|
15511
15840
|
*
|
|
@@ -15558,44 +15887,101 @@ const ParamCreater = function () {
|
|
|
15558
15887
|
return options;
|
|
15559
15888
|
},
|
|
15560
15889
|
/**
|
|
15561
|
-
*
|
|
15890
|
+
* 查询一键kill会话历史
|
|
15562
15891
|
*
|
|
15563
15892
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15564
15893
|
*/
|
|
15565
|
-
|
|
15894
|
+
showIntelligentKillSessionHistory(showIntelligentKillSessionHistoryRequest) {
|
|
15566
15895
|
const options = {
|
|
15567
|
-
method: "
|
|
15568
|
-
url: "/v3/{project_id}/instances/{instance_id}/
|
|
15896
|
+
method: "GET",
|
|
15897
|
+
url: "/v3/{project_id}/instances/{instance_id}/ops/intelligent-kill-session/history",
|
|
15569
15898
|
contentType: "application/json",
|
|
15570
15899
|
queryParams: {},
|
|
15571
15900
|
pathParams: {},
|
|
15572
|
-
headers: {}
|
|
15573
|
-
data: {}
|
|
15901
|
+
headers: {}
|
|
15574
15902
|
};
|
|
15575
15903
|
const localVarHeaderParameter = {};
|
|
15576
|
-
|
|
15904
|
+
const localVarQueryParameter = {};
|
|
15577
15905
|
let instanceId;
|
|
15578
|
-
let
|
|
15579
|
-
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
|
|
15906
|
+
let startTime;
|
|
15907
|
+
let endTime;
|
|
15908
|
+
let pageNum;
|
|
15909
|
+
let pageSize;
|
|
15910
|
+
if (showIntelligentKillSessionHistoryRequest !== null && showIntelligentKillSessionHistoryRequest !== undefined) {
|
|
15911
|
+
if (showIntelligentKillSessionHistoryRequest instanceof ShowIntelligentKillSessionHistoryRequest_1.ShowIntelligentKillSessionHistoryRequest) {
|
|
15912
|
+
instanceId = showIntelligentKillSessionHistoryRequest.instanceId;
|
|
15913
|
+
startTime = showIntelligentKillSessionHistoryRequest.startTime;
|
|
15914
|
+
endTime = showIntelligentKillSessionHistoryRequest.endTime;
|
|
15915
|
+
pageNum = showIntelligentKillSessionHistoryRequest.pageNum;
|
|
15916
|
+
pageSize = showIntelligentKillSessionHistoryRequest.pageSize;
|
|
15584
15917
|
}
|
|
15585
15918
|
else {
|
|
15586
|
-
instanceId =
|
|
15587
|
-
|
|
15588
|
-
|
|
15919
|
+
instanceId = showIntelligentKillSessionHistoryRequest['instance_id'];
|
|
15920
|
+
startTime = showIntelligentKillSessionHistoryRequest['start_time'];
|
|
15921
|
+
endTime = showIntelligentKillSessionHistoryRequest['end_time'];
|
|
15922
|
+
pageNum = showIntelligentKillSessionHistoryRequest['page_num'];
|
|
15923
|
+
pageSize = showIntelligentKillSessionHistoryRequest['page_size'];
|
|
15589
15924
|
}
|
|
15590
15925
|
}
|
|
15591
15926
|
if (instanceId === null || instanceId === undefined) {
|
|
15592
|
-
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling
|
|
15927
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showIntelligentKillSessionHistory.');
|
|
15593
15928
|
}
|
|
15594
|
-
if (
|
|
15595
|
-
|
|
15929
|
+
if (startTime !== null && startTime !== undefined) {
|
|
15930
|
+
localVarQueryParameter['start_time'] = startTime;
|
|
15596
15931
|
}
|
|
15597
|
-
if (
|
|
15598
|
-
|
|
15932
|
+
if (endTime !== null && endTime !== undefined) {
|
|
15933
|
+
localVarQueryParameter['end_time'] = endTime;
|
|
15934
|
+
}
|
|
15935
|
+
if (pageNum !== null && pageNum !== undefined) {
|
|
15936
|
+
localVarQueryParameter['page_num'] = pageNum;
|
|
15937
|
+
}
|
|
15938
|
+
if (pageSize !== null && pageSize !== undefined) {
|
|
15939
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
15940
|
+
}
|
|
15941
|
+
options.queryParams = localVarQueryParameter;
|
|
15942
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
15943
|
+
options.headers = localVarHeaderParameter;
|
|
15944
|
+
return options;
|
|
15945
|
+
},
|
|
15946
|
+
/**
|
|
15947
|
+
* 授权数据库帐号。
|
|
15948
|
+
*
|
|
15949
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15950
|
+
*/
|
|
15951
|
+
allowSqlserverDbUserPrivilege(allowSqlserverDbUserPrivilegeRequest) {
|
|
15952
|
+
const options = {
|
|
15953
|
+
method: "POST",
|
|
15954
|
+
url: "/v3/{project_id}/instances/{instance_id}/db_privilege",
|
|
15955
|
+
contentType: "application/json",
|
|
15956
|
+
queryParams: {},
|
|
15957
|
+
pathParams: {},
|
|
15958
|
+
headers: {},
|
|
15959
|
+
data: {}
|
|
15960
|
+
};
|
|
15961
|
+
const localVarHeaderParameter = {};
|
|
15962
|
+
let body;
|
|
15963
|
+
let instanceId;
|
|
15964
|
+
let xLanguage;
|
|
15965
|
+
if (allowSqlserverDbUserPrivilegeRequest !== null && allowSqlserverDbUserPrivilegeRequest !== undefined) {
|
|
15966
|
+
if (allowSqlserverDbUserPrivilegeRequest instanceof AllowSqlserverDbUserPrivilegeRequest_1.AllowSqlserverDbUserPrivilegeRequest) {
|
|
15967
|
+
instanceId = allowSqlserverDbUserPrivilegeRequest.instanceId;
|
|
15968
|
+
body = allowSqlserverDbUserPrivilegeRequest.body;
|
|
15969
|
+
xLanguage = allowSqlserverDbUserPrivilegeRequest.xLanguage;
|
|
15970
|
+
}
|
|
15971
|
+
else {
|
|
15972
|
+
instanceId = allowSqlserverDbUserPrivilegeRequest['instance_id'];
|
|
15973
|
+
body = allowSqlserverDbUserPrivilegeRequest['body'];
|
|
15974
|
+
xLanguage = allowSqlserverDbUserPrivilegeRequest['X-Language'];
|
|
15975
|
+
}
|
|
15976
|
+
}
|
|
15977
|
+
if (instanceId === null || instanceId === undefined) {
|
|
15978
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling allowSqlserverDbUserPrivilege.');
|
|
15979
|
+
}
|
|
15980
|
+
if (body === null || body === undefined) {
|
|
15981
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
15982
|
+
}
|
|
15983
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
15984
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
15599
15985
|
}
|
|
15600
15986
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15601
15987
|
options.data = body !== undefined ? body : {};
|
|
@@ -15643,6 +16029,138 @@ const ParamCreater = function () {
|
|
|
15643
16029
|
options.headers = localVarHeaderParameter;
|
|
15644
16030
|
return options;
|
|
15645
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
|
+
},
|
|
15646
16164
|
/**
|
|
15647
16165
|
* 复制数据库
|
|
15648
16166
|
*
|
|
@@ -15821,6 +16339,43 @@ const ParamCreater = function () {
|
|
|
15821
16339
|
options.headers = localVarHeaderParameter;
|
|
15822
16340
|
return options;
|
|
15823
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
|
+
},
|
|
15824
16379
|
/**
|
|
15825
16380
|
* 删除MSDTC相关主机host地址
|
|
15826
16381
|
*
|
|
@@ -16045,6 +16600,52 @@ const ParamCreater = function () {
|
|
|
16045
16600
|
options.headers = localVarHeaderParameter;
|
|
16046
16601
|
return options;
|
|
16047
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
|
+
},
|
|
16048
16649
|
/**
|
|
16049
16650
|
* 查询指定数据库的已授权用户。
|
|
16050
16651
|
*
|
|
@@ -16155,6 +16756,63 @@ const ParamCreater = function () {
|
|
|
16155
16756
|
options.headers = localVarHeaderParameter;
|
|
16156
16757
|
return options;
|
|
16157
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
|
+
},
|
|
16158
16816
|
/**
|
|
16159
16817
|
* 查询当前实例配置的分发服务器
|
|
16160
16818
|
*
|
|
@@ -16414,6 +17072,109 @@ const ParamCreater = function () {
|
|
|
16414
17072
|
options.headers = localVarHeaderParameter;
|
|
16415
17073
|
return options;
|
|
16416
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
|
+
},
|
|
16417
17178
|
/**
|
|
16418
17179
|
* 查询数据库列表。
|
|
16419
17180
|
*
|
|
@@ -16603,6 +17364,81 @@ const ParamCreater = function () {
|
|
|
16603
17364
|
options.headers = localVarHeaderParameter;
|
|
16604
17365
|
return options;
|
|
16605
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
|
+
},
|
|
16606
17442
|
/**
|
|
16607
17443
|
* 修改实例字符集。
|
|
16608
17444
|
*
|
|
@@ -16827,6 +17663,52 @@ const ParamCreater = function () {
|
|
|
16827
17663
|
options.headers = localVarHeaderParameter;
|
|
16828
17664
|
return options;
|
|
16829
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
|
+
},
|
|
16830
17712
|
/**
|
|
16831
17713
|
* 查询sql统计列表
|
|
16832
17714
|
*
|