@huaweicloud/huaweicloud-sdk-rds 3.1.172 → 3.1.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/package.json +2 -2
  2. package/v3/RdsClient.d.ts +118 -4
  3. package/v3/RdsClient.d.ts.map +1 -1
  4. package/v3/RdsClient.js +277 -15
  5. package/v3/RdsClient.js.map +1 -1
  6. package/v3/RdsRegion.d.ts +3 -0
  7. package/v3/RdsRegion.d.ts.map +1 -1
  8. package/v3/RdsRegion.js +7 -1
  9. package/v3/RdsRegion.js.map +1 -1
  10. package/v3/model/CreateIntelligentKillSessionRequest.d.ts +11 -0
  11. package/v3/model/CreateIntelligentKillSessionRequest.d.ts.map +1 -0
  12. package/v3/model/CreateIntelligentKillSessionRequest.js +24 -0
  13. package/v3/model/CreateIntelligentKillSessionRequest.js.map +1 -0
  14. package/v3/model/CreateIntelligentKillSessionResponse.d.ts +13 -0
  15. package/v3/model/CreateIntelligentKillSessionResponse.d.ts.map +1 -0
  16. package/v3/model/CreateIntelligentKillSessionResponse.js +31 -0
  17. package/v3/model/CreateIntelligentKillSessionResponse.js.map +1 -0
  18. package/v3/model/DatabaseSmallVersion.d.ts +10 -0
  19. package/v3/model/DatabaseSmallVersion.d.ts.map +1 -0
  20. package/v3/model/DatabaseSmallVersion.js +24 -0
  21. package/v3/model/DatabaseSmallVersion.js.map +1 -0
  22. package/v3/model/{ListInstancesNoIndexTablesRequest.d.ts → GetInstancesNoIndexTablesRequest.d.ts} +5 -5
  23. package/v3/model/GetInstancesNoIndexTablesRequest.d.ts.map +1 -0
  24. package/v3/model/{ListInstancesNoIndexTablesRequest.js → GetInstancesNoIndexTablesRequest.js} +4 -4
  25. package/v3/model/GetInstancesNoIndexTablesRequest.js.map +1 -0
  26. package/v3/model/GetInstancesNoIndexTablesResponse.d.ts +5 -0
  27. package/v3/model/GetInstancesNoIndexTablesResponse.d.ts.map +1 -0
  28. package/v3/model/GetInstancesNoIndexTablesResponse.js +11 -0
  29. package/v3/model/GetInstancesNoIndexTablesResponse.js.map +1 -0
  30. package/v3/model/IntelligentKillSessionHistory.d.ts +20 -0
  31. package/v3/model/IntelligentKillSessionHistory.d.ts.map +1 -0
  32. package/v3/model/IntelligentKillSessionHistory.js +49 -0
  33. package/v3/model/IntelligentKillSessionHistory.js.map +1 -0
  34. package/v3/model/IntelligentKillSessionReq.d.ts +8 -0
  35. package/v3/model/IntelligentKillSessionReq.d.ts.map +1 -0
  36. package/v3/model/IntelligentKillSessionReq.js +19 -0
  37. package/v3/model/IntelligentKillSessionReq.js.map +1 -0
  38. package/v3/model/ListAutoScalingPolicyRequest.d.ts +12 -0
  39. package/v3/model/ListAutoScalingPolicyRequest.d.ts.map +1 -0
  40. package/v3/model/ListAutoScalingPolicyRequest.js +30 -0
  41. package/v3/model/ListAutoScalingPolicyRequest.js.map +1 -0
  42. package/v3/model/ListAutoScalingPolicyResponse.d.ts +39 -0
  43. package/v3/model/ListAutoScalingPolicyResponse.d.ts.map +1 -0
  44. package/v3/model/ListAutoScalingPolicyResponse.js +95 -0
  45. package/v3/model/ListAutoScalingPolicyResponse.js.map +1 -0
  46. package/v3/model/ListSmallVersionRequest.d.ts +14 -0
  47. package/v3/model/ListSmallVersionRequest.d.ts.map +1 -0
  48. package/v3/model/ListSmallVersionRequest.js +33 -0
  49. package/v3/model/ListSmallVersionRequest.js.map +1 -0
  50. package/v3/model/ListSmallVersionResponse.d.ts +12 -0
  51. package/v3/model/ListSmallVersionResponse.d.ts.map +1 -0
  52. package/v3/model/ListSmallVersionResponse.js +25 -0
  53. package/v3/model/ListSmallVersionResponse.js.map +1 -0
  54. package/v3/model/OperateUsedJobSchedule.d.ts +1 -1
  55. package/v3/model/OperateUsedJobSchedule.d.ts.map +1 -1
  56. package/v3/model/OperateUsedJobSchedule.js +1 -2
  57. package/v3/model/OperateUsedJobSchedule.js.map +1 -1
  58. package/v3/model/ShowIntelligentKillSessionHistoryRequest.d.ts +24 -0
  59. package/v3/model/ShowIntelligentKillSessionHistoryRequest.d.ts.map +1 -0
  60. package/v3/model/ShowIntelligentKillSessionHistoryRequest.js +60 -0
  61. package/v3/model/ShowIntelligentKillSessionHistoryRequest.js.map +1 -0
  62. package/v3/model/ShowIntelligentKillSessionHistoryResponse.d.ts +16 -0
  63. package/v3/model/ShowIntelligentKillSessionHistoryResponse.d.ts.map +1 -0
  64. package/v3/model/ShowIntelligentKillSessionHistoryResponse.js +35 -0
  65. package/v3/model/ShowIntelligentKillSessionHistoryResponse.js.map +1 -0
  66. package/v3/public-api.d.ts +13 -2
  67. package/v3/public-api.d.ts.map +1 -1
  68. package/v3/public-api.js +13 -2
  69. package/v3/public-api.js.map +1 -1
  70. package/v3/model/ListInstancesNoIndexTablesRequest.d.ts.map +0 -1
  71. package/v3/model/ListInstancesNoIndexTablesRequest.js.map +0 -1
  72. package/v3/model/ListInstancesNoIndexTablesResponse.d.ts +0 -5
  73. package/v3/model/ListInstancesNoIndexTablesResponse.d.ts.map +0 -1
  74. package/v3/model/ListInstancesNoIndexTablesResponse.js +0 -11
  75. package/v3/model/ListInstancesNoIndexTablesResponse.js.map +0 -1
package/v3/RdsClient.js CHANGED
@@ -30,6 +30,7 @@ const CreateDbUserRequest_1 = require("./model/CreateDbUserRequest");
30
30
  const CreateDnsNameRequest_1 = require("./model/CreateDnsNameRequest");
31
31
  const CreateInstanceIam5Request_1 = require("./model/CreateInstanceIam5Request");
32
32
  const CreateInstanceRequest_1 = require("./model/CreateInstanceRequest");
33
+ const CreateIntelligentKillSessionRequest_1 = require("./model/CreateIntelligentKillSessionRequest");
33
34
  const CreateManualBackupRequest_1 = require("./model/CreateManualBackupRequest");
34
35
  const CreatePostgresqlDatabaseRequest_1 = require("./model/CreatePostgresqlDatabaseRequest");
35
36
  const CreatePostgresqlDatabaseSchemaRequest_1 = require("./model/CreatePostgresqlDatabaseSchemaRequest");
@@ -66,10 +67,12 @@ const DownloadSlowlogRequest_1 = require("./model/DownloadSlowlogRequest");
66
67
  const EnableConfigurationRequest_1 = require("./model/EnableConfigurationRequest");
67
68
  const ExecutePrivilegeDatabaseUserRoleRequest_1 = require("./model/ExecutePrivilegeDatabaseUserRoleRequest");
68
69
  const ExecuteRevokeDatabaseUserRoleRequest_1 = require("./model/ExecuteRevokeDatabaseUserRoleRequest");
70
+ const GetInstancesNoIndexTablesRequest_1 = require("./model/GetInstancesNoIndexTablesRequest");
69
71
  const ListAuditlogsRequest_1 = require("./model/ListAuditlogsRequest");
70
72
  const ListAuthorizedDatabasesRequest_1 = require("./model/ListAuthorizedDatabasesRequest");
71
73
  const ListAuthorizedDbUsersRequest_1 = require("./model/ListAuthorizedDbUsersRequest");
72
74
  const ListAuthorizedSqlserverDbUsersRequest_1 = require("./model/ListAuthorizedSqlserverDbUsersRequest");
75
+ const ListAutoScalingPolicyRequest_1 = require("./model/ListAutoScalingPolicyRequest");
73
76
  const ListBackupTransfersRequest_1 = require("./model/ListBackupTransfersRequest");
74
77
  const ListBackupsRequest_1 = require("./model/ListBackupsRequest");
75
78
  const ListBusinessPartnersRequest_1 = require("./model/ListBusinessPartnersRequest");
@@ -97,7 +100,6 @@ const ListInstanceParamHistoriesRequest_1 = require("./model/ListInstanceParamHi
97
100
  const ListInstanceTagsRequest_1 = require("./model/ListInstanceTagsRequest");
98
101
  const ListInstancesConfigurationsRequest_1 = require("./model/ListInstancesConfigurationsRequest");
99
102
  const ListInstancesInfoDiagnosisRequest_1 = require("./model/ListInstancesInfoDiagnosisRequest");
100
- const ListInstancesNoIndexTablesRequest_1 = require("./model/ListInstancesNoIndexTablesRequest");
101
103
  const ListInstancesRequest_1 = require("./model/ListInstancesRequest");
102
104
  const ListInstancesSupportFastRestoreRequest_1 = require("./model/ListInstancesSupportFastRestoreRequest");
103
105
  const ListJobInfoDetailRequest_1 = require("./model/ListJobInfoDetailRequest");
@@ -133,6 +135,7 @@ const ListSlowLogsNewRequest_1 = require("./model/ListSlowLogsNewRequest");
133
135
  const ListSlowLogsRequest_1 = require("./model/ListSlowLogsRequest");
134
136
  const ListSlowlogForLtsRequest_1 = require("./model/ListSlowlogForLtsRequest");
135
137
  const ListSlowlogStatisticsRequest_1 = require("./model/ListSlowlogStatisticsRequest");
138
+ const ListSmallVersionRequest_1 = require("./model/ListSmallVersionRequest");
136
139
  const ListSqlLimitRequest_1 = require("./model/ListSqlLimitRequest");
137
140
  const ListSqlStatisticsRequest_1 = require("./model/ListSqlStatisticsRequest");
138
141
  const ListSqlserverDatabasesRequest_1 = require("./model/ListSqlserverDatabasesRequest");
@@ -199,6 +202,7 @@ const ShowDrReplicaStatusRequest_1 = require("./model/ShowDrReplicaStatusRequest
199
202
  const ShowIncreBackupPolicy1Request_1 = require("./model/ShowIncreBackupPolicy1Request");
200
203
  const ShowInformationAboutDatabaseProxyRequest_1 = require("./model/ShowInformationAboutDatabaseProxyRequest");
201
204
  const ShowInstanceConfigurationRequest_1 = require("./model/ShowInstanceConfigurationRequest");
205
+ const ShowIntelligentKillSessionHistoryRequest_1 = require("./model/ShowIntelligentKillSessionHistoryRequest");
202
206
  const ShowOffSiteBackupPolicyRequest_1 = require("./model/ShowOffSiteBackupPolicyRequest");
203
207
  const ShowPostgresqlParamValueRequest_1 = require("./model/ShowPostgresqlParamValueRequest");
204
208
  const ShowPrecheckResultRequest_1 = require("./model/ShowPrecheckResultRequest");
@@ -917,6 +921,23 @@ class RdsClient {
917
921
  options['responseHeaders'] = [''];
918
922
  return this.hcClient.sendRequest(options);
919
923
  }
924
+ /**
925
+ * 查询自动变配策略
926
+ *
927
+ * Please refer to HUAWEI cloud API Explorer for details.
928
+ *
929
+ * @summary 查询自动变配策略
930
+ * @param {string} instanceId **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,长度为36个字符。 **默认取值**: 不涉及。
931
+ * @param {string} [xLanguage] **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
932
+ * @param {*} [options] Override http request option.
933
+ * @throws {RequiredError}
934
+ */
935
+ listAutoScalingPolicy(listAutoScalingPolicyRequest) {
936
+ const options = (0, exports.ParamCreater)().listAutoScalingPolicy(listAutoScalingPolicyRequest);
937
+ // @ts-ignore
938
+ options['responseHeaders'] = [''];
939
+ return this.hcClient.sendRequest(options);
940
+ }
920
941
  /**
921
942
  * 查询转储任务列表
922
943
  *
@@ -1865,6 +1886,25 @@ class RdsClient {
1865
1886
  options['responseHeaders'] = [''];
1866
1887
  return this.hcClient.sendRequest(options);
1867
1888
  }
1889
+ /**
1890
+ * 查询小版本号
1891
+ *
1892
+ * Please refer to HUAWEI cloud API Explorer for details.
1893
+ *
1894
+ * @summary 查询小版本号
1895
+ * @param {string} databaseName 数据库引擎名。 取值范围: 支持的引擎如下,不区分大小写: PostgreSQL
1896
+ * @param {string} version 数据库版本号。(可输入小版本号)
1897
+ * @param {number} [offset] 参数解释: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询。 约束限制:必须为数字,不能为负数。 取值范围:大于等于0的整数。 默认取值:0
1898
+ * @param {number} [limit] 参数解释: 查询记录数。 约束限制:不涉及。 取值范围:默认为100,不能为负数,最小值为1,最大值为100。 默认取值:100
1899
+ * @param {*} [options] Override http request option.
1900
+ * @throws {RequiredError}
1901
+ */
1902
+ listSmallVersion(listSmallVersionRequest) {
1903
+ const options = (0, exports.ParamCreater)().listSmallVersion(listSmallVersionRequest);
1904
+ // @ts-ignore
1905
+ options['responseHeaders'] = [''];
1906
+ return this.hcClient.sendRequest(options);
1907
+ }
1868
1908
  /**
1869
1909
  * 查询SQL限流列表
1870
1910
  *
@@ -4419,6 +4459,23 @@ class RdsClient {
4419
4459
  options['responseHeaders'] = [''];
4420
4460
  return this.hcClient.sendRequest(options);
4421
4461
  }
4462
+ /**
4463
+ * 一键kill会话
4464
+ *
4465
+ * Please refer to HUAWEI cloud API Explorer for details.
4466
+ *
4467
+ * @summary 一键kill会话
4468
+ * @param {string} instanceId 实例id
4469
+ * @param {IntelligentKillSessionReq} [createIntelligentKillSessionRequestBody] 一键自动kill会话请求体
4470
+ * @param {*} [options] Override http request option.
4471
+ * @throws {RequiredError}
4472
+ */
4473
+ createIntelligentKillSession(createIntelligentKillSessionRequest) {
4474
+ const options = (0, exports.ParamCreater)().createIntelligentKillSession(createIntelligentKillSessionRequest);
4475
+ // @ts-ignore
4476
+ options['responseHeaders'] = [''];
4477
+ return this.hcClient.sendRequest(options);
4478
+ }
4422
4479
  /**
4423
4480
  * 查询无索引表诊断数据
4424
4481
  *
@@ -4431,8 +4488,28 @@ class RdsClient {
4431
4488
  * @param {*} [options] Override http request option.
4432
4489
  * @throws {RequiredError}
4433
4490
  */
4434
- listInstancesNoIndexTables(listInstancesNoIndexTablesRequest) {
4435
- const options = (0, exports.ParamCreater)().listInstancesNoIndexTables(listInstancesNoIndexTablesRequest);
4491
+ getInstancesNoIndexTables(getInstancesNoIndexTablesRequest) {
4492
+ const options = (0, exports.ParamCreater)().getInstancesNoIndexTables(getInstancesNoIndexTablesRequest);
4493
+ // @ts-ignore
4494
+ options['responseHeaders'] = [''];
4495
+ return this.hcClient.sendRequest(options);
4496
+ }
4497
+ /**
4498
+ * 查询一键kill会话历史
4499
+ *
4500
+ * Please refer to HUAWEI cloud API Explorer for details.
4501
+ *
4502
+ * @summary 查询一键kill会话历史
4503
+ * @param {string} instanceId 实例id
4504
+ * @param {number} [startTime] 查询开始时间
4505
+ * @param {number} [endTime] 查询结束时间
4506
+ * @param {number} [pageNum] 查询页编号
4507
+ * @param {number} [pageSize] 查询分页大小
4508
+ * @param {*} [options] Override http request option.
4509
+ * @throws {RequiredError}
4510
+ */
4511
+ showIntelligentKillSessionHistory(showIntelligentKillSessionHistoryRequest) {
4512
+ const options = (0, exports.ParamCreater)().showIntelligentKillSessionHistory(showIntelligentKillSessionHistoryRequest);
4436
4513
  // @ts-ignore
4437
4514
  options['responseHeaders'] = [''];
4438
4515
  return this.hcClient.sendRequest(options);
@@ -6527,6 +6604,43 @@ const ParamCreater = function () {
6527
6604
  options.headers = localVarHeaderParameter;
6528
6605
  return options;
6529
6606
  },
6607
+ /**
6608
+ * 查询自动变配策略
6609
+ *
6610
+ * Please refer to HUAWEI cloud API Explorer for details.
6611
+ */
6612
+ listAutoScalingPolicy(listAutoScalingPolicyRequest) {
6613
+ const options = {
6614
+ method: "GET",
6615
+ url: "/v3/{project_id}/instances/{instance_id}/auto-scaling/policy",
6616
+ contentType: "application/json",
6617
+ queryParams: {},
6618
+ pathParams: {},
6619
+ headers: {}
6620
+ };
6621
+ const localVarHeaderParameter = {};
6622
+ let instanceId;
6623
+ let xLanguage;
6624
+ if (listAutoScalingPolicyRequest !== null && listAutoScalingPolicyRequest !== undefined) {
6625
+ if (listAutoScalingPolicyRequest instanceof ListAutoScalingPolicyRequest_1.ListAutoScalingPolicyRequest) {
6626
+ instanceId = listAutoScalingPolicyRequest.instanceId;
6627
+ xLanguage = listAutoScalingPolicyRequest.xLanguage;
6628
+ }
6629
+ else {
6630
+ instanceId = listAutoScalingPolicyRequest['instance_id'];
6631
+ xLanguage = listAutoScalingPolicyRequest['X-Language'];
6632
+ }
6633
+ }
6634
+ if (instanceId === null || instanceId === undefined) {
6635
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listAutoScalingPolicy.');
6636
+ }
6637
+ if (xLanguage !== undefined && xLanguage !== null) {
6638
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
6639
+ }
6640
+ options.pathParams = { 'instance_id': instanceId, };
6641
+ options.headers = localVarHeaderParameter;
6642
+ return options;
6643
+ },
6530
6644
  /**
6531
6645
  * 查询转储任务列表
6532
6646
  *
@@ -9144,6 +9258,60 @@ const ParamCreater = function () {
9144
9258
  options.headers = localVarHeaderParameter;
9145
9259
  return options;
9146
9260
  },
9261
+ /**
9262
+ * 查询小版本号
9263
+ *
9264
+ * Please refer to HUAWEI cloud API Explorer for details.
9265
+ */
9266
+ listSmallVersion(listSmallVersionRequest) {
9267
+ const options = {
9268
+ method: "GET",
9269
+ url: "/v3/{project_id}/datastores/{database_name}/small-version",
9270
+ contentType: "application/json",
9271
+ queryParams: {},
9272
+ pathParams: {},
9273
+ headers: {}
9274
+ };
9275
+ const localVarHeaderParameter = {};
9276
+ const localVarQueryParameter = {};
9277
+ let databaseName;
9278
+ let version;
9279
+ let offset;
9280
+ let limit;
9281
+ if (listSmallVersionRequest !== null && listSmallVersionRequest !== undefined) {
9282
+ if (listSmallVersionRequest instanceof ListSmallVersionRequest_1.ListSmallVersionRequest) {
9283
+ databaseName = listSmallVersionRequest.databaseName;
9284
+ version = listSmallVersionRequest.version;
9285
+ offset = listSmallVersionRequest.offset;
9286
+ limit = listSmallVersionRequest.limit;
9287
+ }
9288
+ else {
9289
+ databaseName = listSmallVersionRequest['database_name'];
9290
+ version = listSmallVersionRequest['version'];
9291
+ offset = listSmallVersionRequest['offset'];
9292
+ limit = listSmallVersionRequest['limit'];
9293
+ }
9294
+ }
9295
+ if (databaseName === null || databaseName === undefined) {
9296
+ throw new RequiredError('databaseName', 'Required parameter databaseName was null or undefined when calling listSmallVersion.');
9297
+ }
9298
+ if (version === null || version === undefined) {
9299
+ throw new RequiredError('version', 'Required parameter version was null or undefined when calling listSmallVersion.');
9300
+ }
9301
+ if (version !== null && version !== undefined) {
9302
+ localVarQueryParameter['version'] = version;
9303
+ }
9304
+ if (offset !== null && offset !== undefined) {
9305
+ localVarQueryParameter['offset'] = offset;
9306
+ }
9307
+ if (limit !== null && limit !== undefined) {
9308
+ localVarQueryParameter['limit'] = limit;
9309
+ }
9310
+ options.queryParams = localVarQueryParameter;
9311
+ options.pathParams = { 'database_name': databaseName, };
9312
+ options.headers = localVarHeaderParameter;
9313
+ return options;
9314
+ },
9147
9315
  /**
9148
9316
  * 查询SQL限流列表
9149
9317
  *
@@ -15432,12 +15600,49 @@ const ParamCreater = function () {
15432
15600
  options.headers = localVarHeaderParameter;
15433
15601
  return options;
15434
15602
  },
15603
+ /**
15604
+ * 一键kill会话
15605
+ *
15606
+ * Please refer to HUAWEI cloud API Explorer for details.
15607
+ */
15608
+ createIntelligentKillSession(createIntelligentKillSessionRequest) {
15609
+ const options = {
15610
+ method: "PUT",
15611
+ url: "/v3/{project_id}/instances/{instance_id}/ops/intelligent-kill-session",
15612
+ contentType: "application/json",
15613
+ queryParams: {},
15614
+ pathParams: {},
15615
+ headers: {},
15616
+ data: {}
15617
+ };
15618
+ const localVarHeaderParameter = {};
15619
+ let body;
15620
+ let instanceId;
15621
+ if (createIntelligentKillSessionRequest !== null && createIntelligentKillSessionRequest !== undefined) {
15622
+ if (createIntelligentKillSessionRequest instanceof CreateIntelligentKillSessionRequest_1.CreateIntelligentKillSessionRequest) {
15623
+ instanceId = createIntelligentKillSessionRequest.instanceId;
15624
+ body = createIntelligentKillSessionRequest.body;
15625
+ }
15626
+ else {
15627
+ instanceId = createIntelligentKillSessionRequest['instance_id'];
15628
+ body = createIntelligentKillSessionRequest['body'];
15629
+ }
15630
+ }
15631
+ if (instanceId === null || instanceId === undefined) {
15632
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling createIntelligentKillSession.');
15633
+ }
15634
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15635
+ options.data = body !== undefined ? body : {};
15636
+ options.pathParams = { 'instance_id': instanceId, };
15637
+ options.headers = localVarHeaderParameter;
15638
+ return options;
15639
+ },
15435
15640
  /**
15436
15641
  * 查询无索引表诊断数据
15437
15642
  *
15438
15643
  * Please refer to HUAWEI cloud API Explorer for details.
15439
15644
  */
15440
- listInstancesNoIndexTables(listInstancesNoIndexTablesRequest) {
15645
+ getInstancesNoIndexTables(getInstancesNoIndexTablesRequest) {
15441
15646
  const options = {
15442
15647
  method: "GET",
15443
15648
  url: "/v3/{project_id}/instances/{instance_id}/no-index-tables",
@@ -15451,29 +15656,29 @@ const ParamCreater = function () {
15451
15656
  let instanceId;
15452
15657
  let newest;
15453
15658
  let tableType;
15454
- if (listInstancesNoIndexTablesRequest !== null && listInstancesNoIndexTablesRequest !== undefined) {
15455
- if (listInstancesNoIndexTablesRequest instanceof ListInstancesNoIndexTablesRequest_1.ListInstancesNoIndexTablesRequest) {
15456
- instanceId = listInstancesNoIndexTablesRequest.instanceId;
15457
- newest = listInstancesNoIndexTablesRequest.newest;
15458
- tableType = listInstancesNoIndexTablesRequest.tableType;
15659
+ if (getInstancesNoIndexTablesRequest !== null && getInstancesNoIndexTablesRequest !== undefined) {
15660
+ if (getInstancesNoIndexTablesRequest instanceof GetInstancesNoIndexTablesRequest_1.GetInstancesNoIndexTablesRequest) {
15661
+ instanceId = getInstancesNoIndexTablesRequest.instanceId;
15662
+ newest = getInstancesNoIndexTablesRequest.newest;
15663
+ tableType = getInstancesNoIndexTablesRequest.tableType;
15459
15664
  }
15460
15665
  else {
15461
- instanceId = listInstancesNoIndexTablesRequest['instance_id'];
15462
- newest = listInstancesNoIndexTablesRequest['newest'];
15463
- tableType = listInstancesNoIndexTablesRequest['table_type'];
15666
+ instanceId = getInstancesNoIndexTablesRequest['instance_id'];
15667
+ newest = getInstancesNoIndexTablesRequest['newest'];
15668
+ tableType = getInstancesNoIndexTablesRequest['table_type'];
15464
15669
  }
15465
15670
  }
15466
15671
  if (instanceId === null || instanceId === undefined) {
15467
- throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listInstancesNoIndexTables.');
15672
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling getInstancesNoIndexTables.');
15468
15673
  }
15469
15674
  if (newest === null || newest === undefined) {
15470
- throw new RequiredError('newest', 'Required parameter newest was null or undefined when calling listInstancesNoIndexTables.');
15675
+ throw new RequiredError('newest', 'Required parameter newest was null or undefined when calling getInstancesNoIndexTables.');
15471
15676
  }
15472
15677
  if (newest !== null && newest !== undefined) {
15473
15678
  localVarQueryParameter['newest'] = newest;
15474
15679
  }
15475
15680
  if (tableType === null || tableType === undefined) {
15476
- throw new RequiredError('tableType', 'Required parameter tableType was null or undefined when calling listInstancesNoIndexTables.');
15681
+ throw new RequiredError('tableType', 'Required parameter tableType was null or undefined when calling getInstancesNoIndexTables.');
15477
15682
  }
15478
15683
  if (tableType !== null && tableType !== undefined) {
15479
15684
  localVarQueryParameter['table_type'] = tableType;
@@ -15483,6 +15688,63 @@ const ParamCreater = function () {
15483
15688
  options.headers = localVarHeaderParameter;
15484
15689
  return options;
15485
15690
  },
15691
+ /**
15692
+ * 查询一键kill会话历史
15693
+ *
15694
+ * Please refer to HUAWEI cloud API Explorer for details.
15695
+ */
15696
+ showIntelligentKillSessionHistory(showIntelligentKillSessionHistoryRequest) {
15697
+ const options = {
15698
+ method: "GET",
15699
+ url: "/v3/{project_id}/instances/{instance_id}/ops/intelligent-kill-session/history",
15700
+ contentType: "application/json",
15701
+ queryParams: {},
15702
+ pathParams: {},
15703
+ headers: {}
15704
+ };
15705
+ const localVarHeaderParameter = {};
15706
+ const localVarQueryParameter = {};
15707
+ let instanceId;
15708
+ let startTime;
15709
+ let endTime;
15710
+ let pageNum;
15711
+ let pageSize;
15712
+ if (showIntelligentKillSessionHistoryRequest !== null && showIntelligentKillSessionHistoryRequest !== undefined) {
15713
+ if (showIntelligentKillSessionHistoryRequest instanceof ShowIntelligentKillSessionHistoryRequest_1.ShowIntelligentKillSessionHistoryRequest) {
15714
+ instanceId = showIntelligentKillSessionHistoryRequest.instanceId;
15715
+ startTime = showIntelligentKillSessionHistoryRequest.startTime;
15716
+ endTime = showIntelligentKillSessionHistoryRequest.endTime;
15717
+ pageNum = showIntelligentKillSessionHistoryRequest.pageNum;
15718
+ pageSize = showIntelligentKillSessionHistoryRequest.pageSize;
15719
+ }
15720
+ else {
15721
+ instanceId = showIntelligentKillSessionHistoryRequest['instance_id'];
15722
+ startTime = showIntelligentKillSessionHistoryRequest['start_time'];
15723
+ endTime = showIntelligentKillSessionHistoryRequest['end_time'];
15724
+ pageNum = showIntelligentKillSessionHistoryRequest['page_num'];
15725
+ pageSize = showIntelligentKillSessionHistoryRequest['page_size'];
15726
+ }
15727
+ }
15728
+ if (instanceId === null || instanceId === undefined) {
15729
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showIntelligentKillSessionHistory.');
15730
+ }
15731
+ if (startTime !== null && startTime !== undefined) {
15732
+ localVarQueryParameter['start_time'] = startTime;
15733
+ }
15734
+ if (endTime !== null && endTime !== undefined) {
15735
+ localVarQueryParameter['end_time'] = endTime;
15736
+ }
15737
+ if (pageNum !== null && pageNum !== undefined) {
15738
+ localVarQueryParameter['page_num'] = pageNum;
15739
+ }
15740
+ if (pageSize !== null && pageSize !== undefined) {
15741
+ localVarQueryParameter['page_size'] = pageSize;
15742
+ }
15743
+ options.queryParams = localVarQueryParameter;
15744
+ options.pathParams = { 'instance_id': instanceId, };
15745
+ options.headers = localVarHeaderParameter;
15746
+ return options;
15747
+ },
15486
15748
  /**
15487
15749
  * 授权数据库帐号。
15488
15750
  *