@alicloud/adb20211201 5.0.2 → 5.1.0

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 (54) hide show
  1. package/dist/client.d.ts +75 -0
  2. package/dist/client.js +186 -12
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CloseLogSyncToSlsrequest.d.ts +46 -0
  5. package/dist/models/CloseLogSyncToSlsrequest.js +62 -0
  6. package/dist/models/CloseLogSyncToSlsrequest.js.map +1 -0
  7. package/dist/models/CloseLogSyncToSlsresponse.d.ts +19 -0
  8. package/dist/models/CloseLogSyncToSlsresponse.js +69 -0
  9. package/dist/models/CloseLogSyncToSlsresponse.js.map +1 -0
  10. package/dist/models/CloseLogSyncToSlsresponseBody.d.ts +21 -0
  11. package/dist/models/CloseLogSyncToSlsresponseBody.js +58 -0
  12. package/dist/models/CloseLogSyncToSlsresponseBody.js.map +1 -0
  13. package/dist/models/DescribeAuditLogRecordsRequest.d.ts +4 -0
  14. package/dist/models/DescribeAuditLogRecordsRequest.js.map +1 -1
  15. package/dist/models/GetKnowledgeRecallRequest.d.ts +5 -0
  16. package/dist/models/GetKnowledgeRecallRequest.js +2 -0
  17. package/dist/models/GetKnowledgeRecallRequest.js.map +1 -1
  18. package/dist/models/GetKnowledgeRecallResponseBody.d.ts +1 -1
  19. package/dist/models/GetLogSyncToSlsrequest.d.ts +46 -0
  20. package/dist/models/GetLogSyncToSlsrequest.js +62 -0
  21. package/dist/models/GetLogSyncToSlsrequest.js.map +1 -0
  22. package/dist/models/GetLogSyncToSlsresponse.d.ts +19 -0
  23. package/dist/models/GetLogSyncToSlsresponse.js +69 -0
  24. package/dist/models/GetLogSyncToSlsresponse.js.map +1 -0
  25. package/dist/models/GetLogSyncToSlsresponseBody.d.ts +64 -0
  26. package/dist/models/GetLogSyncToSlsresponseBody.js +86 -0
  27. package/dist/models/GetLogSyncToSlsresponseBody.js.map +1 -0
  28. package/dist/models/OpenLogSyncToSlsrequest.d.ts +66 -0
  29. package/dist/models/OpenLogSyncToSlsrequest.js +66 -0
  30. package/dist/models/OpenLogSyncToSlsrequest.js.map +1 -0
  31. package/dist/models/OpenLogSyncToSlsresponse.d.ts +19 -0
  32. package/dist/models/OpenLogSyncToSlsresponse.js +69 -0
  33. package/dist/models/OpenLogSyncToSlsresponse.js.map +1 -0
  34. package/dist/models/OpenLogSyncToSlsresponseBody.d.ts +21 -0
  35. package/dist/models/OpenLogSyncToSlsresponseBody.js +58 -0
  36. package/dist/models/OpenLogSyncToSlsresponseBody.js.map +1 -0
  37. package/dist/models/model.d.ts +10 -0
  38. package/dist/models/model.js +39 -19
  39. package/dist/models/model.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/client.ts +204 -12
  42. package/src/models/CloseLogSyncToSlsrequest.ts +63 -0
  43. package/src/models/CloseLogSyncToSlsresponse.ts +40 -0
  44. package/src/models/CloseLogSyncToSlsresponseBody.ts +34 -0
  45. package/src/models/DescribeAuditLogRecordsRequest.ts +4 -0
  46. package/src/models/GetKnowledgeRecallRequest.ts +7 -0
  47. package/src/models/GetKnowledgeRecallResponseBody.ts +1 -1
  48. package/src/models/GetLogSyncToSlsrequest.ts +63 -0
  49. package/src/models/GetLogSyncToSlsresponse.ts +40 -0
  50. package/src/models/GetLogSyncToSlsresponseBody.ts +96 -0
  51. package/src/models/OpenLogSyncToSlsrequest.ts +87 -0
  52. package/src/models/OpenLogSyncToSlsresponse.ts +40 -0
  53. package/src/models/OpenLogSyncToSlsresponseBody.ts +34 -0
  54. package/src/models/model.ts +10 -0
package/dist/client.d.ts CHANGED
@@ -242,6 +242,31 @@ export default class Client extends OpenApi {
242
242
  * @returns CheckSampleDataSetResponse
243
243
  */
244
244
  checkSampleDataSet(request: $_model.CheckSampleDataSetRequest): Promise<$_model.CheckSampleDataSetResponse>;
245
+ /**
246
+ * Disables log synchronization to Simple Log Service (SLS).
247
+ *
248
+ * @remarks
249
+ * - Central public endpoint: `adb.aliyuncs.com`.
250
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
251
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
252
+ *
253
+ * @param request - CloseLogSyncToSLSRequest
254
+ * @param runtime - runtime options for this request RuntimeOptions
255
+ * @returns CloseLogSyncToSLSResponse
256
+ */
257
+ closeLogSyncToSLSWithOptions(request: $_model.CloseLogSyncToSLSRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CloseLogSyncToSLSResponse>;
258
+ /**
259
+ * Disables log synchronization to Simple Log Service (SLS).
260
+ *
261
+ * @remarks
262
+ * - Central public endpoint: `adb.aliyuncs.com`.
263
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
264
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
265
+ *
266
+ * @param request - CloseLogSyncToSLSRequest
267
+ * @returns CloseLogSyncToSLSResponse
268
+ */
269
+ closeLogSyncToSLS(request: $_model.CloseLogSyncToSLSRequest): Promise<$_model.CloseLogSyncToSLSResponse>;
245
270
  /**
246
271
  * Configures the export destination (SLS or OSS) at the instance level. The configuration is unique per instance and follows the "configure once, use multiple times" principle.
247
272
  *
@@ -3093,6 +3118,31 @@ export default class Client extends OpenApi {
3093
3118
  * @returns GetLakeStorageResponse
3094
3119
  */
3095
3120
  getLakeStorage(request: $_model.GetLakeStorageRequest): Promise<$_model.GetLakeStorageResponse>;
3121
+ /**
3122
+ * Retrieves the log synchronization configuration.
3123
+ *
3124
+ * @remarks
3125
+ * - Central public endpoint: `adb.aliyuncs.com`.
3126
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
3127
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
3128
+ *
3129
+ * @param request - GetLogSyncToSLSRequest
3130
+ * @param runtime - runtime options for this request RuntimeOptions
3131
+ * @returns GetLogSyncToSLSResponse
3132
+ */
3133
+ getLogSyncToSLSWithOptions(request: $_model.GetLogSyncToSLSRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLogSyncToSLSResponse>;
3134
+ /**
3135
+ * Retrieves the log synchronization configuration.
3136
+ *
3137
+ * @remarks
3138
+ * - Central public endpoint: `adb.aliyuncs.com`.
3139
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
3140
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
3141
+ *
3142
+ * @param request - GetLogSyncToSLSRequest
3143
+ * @returns GetLogSyncToSLSResponse
3144
+ */
3145
+ getLogSyncToSLS(request: $_model.GetLogSyncToSLSRequest): Promise<$_model.GetLogSyncToSLSResponse>;
3096
3146
  /**
3097
3147
  * Retrieves the details of a semantic view.
3098
3148
  *
@@ -4456,6 +4506,31 @@ export default class Client extends OpenApi {
4456
4506
  * @returns ModifyUserEniVswitchOptionsResponse
4457
4507
  */
4458
4508
  modifyUserEniVswitchOptions(request: $_model.ModifyUserEniVswitchOptionsRequest): Promise<$_model.ModifyUserEniVswitchOptionsResponse>;
4509
+ /**
4510
+ * Enables log synchronization to Simple Log Service (SLS).
4511
+ *
4512
+ * @remarks
4513
+ * - Central public endpoint: `adb.aliyuncs.com`.
4514
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
4515
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
4516
+ *
4517
+ * @param request - OpenLogSyncToSLSRequest
4518
+ * @param runtime - runtime options for this request RuntimeOptions
4519
+ * @returns OpenLogSyncToSLSResponse
4520
+ */
4521
+ openLogSyncToSLSWithOptions(request: $_model.OpenLogSyncToSLSRequest, runtime: $dara.RuntimeOptions): Promise<$_model.OpenLogSyncToSLSResponse>;
4522
+ /**
4523
+ * Enables log synchronization to Simple Log Service (SLS).
4524
+ *
4525
+ * @remarks
4526
+ * - Central public endpoint: `adb.aliyuncs.com`.
4527
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
4528
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
4529
+ *
4530
+ * @param request - OpenLogSyncToSLSRequest
4531
+ * @returns OpenLogSyncToSLSResponse
4532
+ */
4533
+ openLogSyncToSLS(request: $_model.OpenLogSyncToSLSRequest): Promise<$_model.OpenLogSyncToSLSResponse>;
4459
4534
  /**
4460
4535
  * Preloads metrics for a Spark application.
4461
4536
  *
package/dist/client.js CHANGED
@@ -94,21 +94,21 @@ class Client extends openapi_core_1.default {
94
94
  'eu-west-1-oxs': "adb.ap-northeast-1.aliyuncs.com",
95
95
  'me-east-1': "adb.ap-northeast-1.aliyuncs.com",
96
96
  'rus-west-1-pop': "adb.ap-northeast-1.aliyuncs.com",
97
- 'na-south-1': "adb.na-south-1.aliyuncs.com",
98
- 'me-central-1': "adb.me-central-1.aliyuncs.com",
99
- 'eu-west-1': "adb.eu-west-1.aliyuncs.com",
100
- 'eu-central-1': "adb.eu-central-1.aliyuncs.com",
101
- 'cn-zhangjiakou': "adb.cn-zhangjiakou.aliyuncs.com",
102
- 'cn-wulanchabu': "adb.cn-wulanchabu.aliyuncs.com",
103
- 'cn-huhehaote': "adb.cn-huhehaote.aliyuncs.com",
104
- 'cn-guangzhou': "adb.cn-guangzhou.aliyuncs.com",
105
97
  'cn-chengdu': "adb.cn-chengdu.aliyuncs.com",
106
- 'ap-southeast-7': "adb.ap-southeast-7.aliyuncs.com",
107
- 'ap-southeast-6': "adb.ap-southeast-6.aliyuncs.com",
108
- 'ap-southeast-5': "adb.ap-southeast-5.aliyuncs.com",
109
- 'ap-southeast-3': "adb.ap-southeast-3.aliyuncs.com",
98
+ 'cn-wulanchabu': "adb.cn-wulanchabu.aliyuncs.com",
99
+ 'cn-zhangjiakou': "adb.cn-zhangjiakou.aliyuncs.com",
110
100
  'ap-northeast-2': "adb.ap-northeast-2.aliyuncs.com",
111
101
  'ap-northeast-1': "adb.ap-northeast-1.aliyuncs.com",
102
+ 'cn-guangzhou': "adb.cn-guangzhou.aliyuncs.com",
103
+ 'ap-southeast-3': "adb.ap-southeast-3.aliyuncs.com",
104
+ 'cn-huhehaote': "adb.cn-huhehaote.aliyuncs.com",
105
+ 'ap-southeast-5': "adb.ap-southeast-5.aliyuncs.com",
106
+ 'ap-southeast-6': "adb.ap-southeast-6.aliyuncs.com",
107
+ 'ap-southeast-7': "adb.ap-southeast-7.aliyuncs.com",
108
+ 'eu-west-1': "adb.eu-west-1.aliyuncs.com",
109
+ 'eu-central-1': "adb.eu-central-1.aliyuncs.com",
110
+ 'na-south-1': "adb.na-south-1.aliyuncs.com",
111
+ 'me-central-1': "adb.me-central-1.aliyuncs.com",
112
112
  };
113
113
  this.checkConfig(config);
114
114
  this._endpoint = this.getEndpoint("adb", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -742,6 +742,61 @@ class Client extends openapi_core_1.default {
742
742
  let runtime = new $dara.RuntimeOptions({});
743
743
  return await this.checkSampleDataSetWithOptions(request, runtime);
744
744
  }
745
+ /**
746
+ * Disables log synchronization to Simple Log Service (SLS).
747
+ *
748
+ * @remarks
749
+ * - Central public endpoint: `adb.aliyuncs.com`.
750
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
751
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
752
+ *
753
+ * @param request - CloseLogSyncToSLSRequest
754
+ * @param runtime - runtime options for this request RuntimeOptions
755
+ * @returns CloseLogSyncToSLSResponse
756
+ */
757
+ async closeLogSyncToSLSWithOptions(request, runtime) {
758
+ request.validate();
759
+ let query = {};
760
+ if (!$dara.isNull(request.DBClusterId)) {
761
+ query["DBClusterId"] = request.DBClusterId;
762
+ }
763
+ if (!$dara.isNull(request.logType)) {
764
+ query["LogType"] = request.logType;
765
+ }
766
+ if (!$dara.isNull(request.regionId)) {
767
+ query["RegionId"] = request.regionId;
768
+ }
769
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
770
+ query: openapi_core_2.OpenApiUtil.query(query),
771
+ });
772
+ let params = new openapi_core_2.$OpenApiUtil.Params({
773
+ action: "CloseLogSyncToSLS",
774
+ version: "2021-12-01",
775
+ protocol: "HTTPS",
776
+ pathname: "/",
777
+ method: "POST",
778
+ authType: "AK",
779
+ style: "RPC",
780
+ reqBodyType: "formData",
781
+ bodyType: "json",
782
+ });
783
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloseLogSyncToSLSResponse({}));
784
+ }
785
+ /**
786
+ * Disables log synchronization to Simple Log Service (SLS).
787
+ *
788
+ * @remarks
789
+ * - Central public endpoint: `adb.aliyuncs.com`.
790
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
791
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
792
+ *
793
+ * @param request - CloseLogSyncToSLSRequest
794
+ * @returns CloseLogSyncToSLSResponse
795
+ */
796
+ async closeLogSyncToSLS(request) {
797
+ let runtime = new $dara.RuntimeOptions({});
798
+ return await this.closeLogSyncToSLSWithOptions(request, runtime);
799
+ }
745
800
  /**
746
801
  * Configures the export destination (SLS or OSS) at the instance level. The configuration is unique per instance and follows the "configure once, use multiple times" principle.
747
802
  *
@@ -9556,6 +9611,9 @@ class Client extends openapi_core_1.default {
9556
9611
  if (!$dara.isNull(request.topk)) {
9557
9612
  query["Topk"] = request.topk;
9558
9613
  }
9614
+ if (!$dara.isNull(request.user)) {
9615
+ query["User"] = request.user;
9616
+ }
9559
9617
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9560
9618
  query: openapi_core_2.OpenApiUtil.query(query),
9561
9619
  });
@@ -9629,6 +9687,61 @@ class Client extends openapi_core_1.default {
9629
9687
  let runtime = new $dara.RuntimeOptions({});
9630
9688
  return await this.getLakeStorageWithOptions(request, runtime);
9631
9689
  }
9690
+ /**
9691
+ * Retrieves the log synchronization configuration.
9692
+ *
9693
+ * @remarks
9694
+ * - Central public endpoint: `adb.aliyuncs.com`.
9695
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
9696
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
9697
+ *
9698
+ * @param request - GetLogSyncToSLSRequest
9699
+ * @param runtime - runtime options for this request RuntimeOptions
9700
+ * @returns GetLogSyncToSLSResponse
9701
+ */
9702
+ async getLogSyncToSLSWithOptions(request, runtime) {
9703
+ request.validate();
9704
+ let query = {};
9705
+ if (!$dara.isNull(request.DBClusterId)) {
9706
+ query["DBClusterId"] = request.DBClusterId;
9707
+ }
9708
+ if (!$dara.isNull(request.logType)) {
9709
+ query["LogType"] = request.logType;
9710
+ }
9711
+ if (!$dara.isNull(request.regionId)) {
9712
+ query["RegionId"] = request.regionId;
9713
+ }
9714
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9715
+ query: openapi_core_2.OpenApiUtil.query(query),
9716
+ });
9717
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9718
+ action: "GetLogSyncToSLS",
9719
+ version: "2021-12-01",
9720
+ protocol: "HTTPS",
9721
+ pathname: "/",
9722
+ method: "POST",
9723
+ authType: "AK",
9724
+ style: "RPC",
9725
+ reqBodyType: "formData",
9726
+ bodyType: "json",
9727
+ });
9728
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetLogSyncToSLSResponse({}));
9729
+ }
9730
+ /**
9731
+ * Retrieves the log synchronization configuration.
9732
+ *
9733
+ * @remarks
9734
+ * - Central public endpoint: `adb.aliyuncs.com`.
9735
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
9736
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
9737
+ *
9738
+ * @param request - GetLogSyncToSLSRequest
9739
+ * @returns GetLogSyncToSLSResponse
9740
+ */
9741
+ async getLogSyncToSLS(request) {
9742
+ let runtime = new $dara.RuntimeOptions({});
9743
+ return await this.getLogSyncToSLSWithOptions(request, runtime);
9744
+ }
9632
9745
  /**
9633
9746
  * Retrieves the details of a semantic view.
9634
9747
  *
@@ -13377,6 +13490,67 @@ class Client extends openapi_core_1.default {
13377
13490
  let runtime = new $dara.RuntimeOptions({});
13378
13491
  return await this.modifyUserEniVswitchOptionsWithOptions(request, runtime);
13379
13492
  }
13493
+ /**
13494
+ * Enables log synchronization to Simple Log Service (SLS).
13495
+ *
13496
+ * @remarks
13497
+ * - Central public endpoint: `adb.aliyuncs.com`.
13498
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
13499
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
13500
+ *
13501
+ * @param request - OpenLogSyncToSLSRequest
13502
+ * @param runtime - runtime options for this request RuntimeOptions
13503
+ * @returns OpenLogSyncToSLSResponse
13504
+ */
13505
+ async openLogSyncToSLSWithOptions(request, runtime) {
13506
+ request.validate();
13507
+ let query = {};
13508
+ if (!$dara.isNull(request.DBClusterId)) {
13509
+ query["DBClusterId"] = request.DBClusterId;
13510
+ }
13511
+ if (!$dara.isNull(request.logType)) {
13512
+ query["LogType"] = request.logType;
13513
+ }
13514
+ if (!$dara.isNull(request.regionId)) {
13515
+ query["RegionId"] = request.regionId;
13516
+ }
13517
+ if (!$dara.isNull(request.targetLogStore)) {
13518
+ query["TargetLogStore"] = request.targetLogStore;
13519
+ }
13520
+ if (!$dara.isNull(request.targetProject)) {
13521
+ query["TargetProject"] = request.targetProject;
13522
+ }
13523
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
13524
+ query: openapi_core_2.OpenApiUtil.query(query),
13525
+ });
13526
+ let params = new openapi_core_2.$OpenApiUtil.Params({
13527
+ action: "OpenLogSyncToSLS",
13528
+ version: "2021-12-01",
13529
+ protocol: "HTTPS",
13530
+ pathname: "/",
13531
+ method: "POST",
13532
+ authType: "AK",
13533
+ style: "RPC",
13534
+ reqBodyType: "formData",
13535
+ bodyType: "json",
13536
+ });
13537
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.OpenLogSyncToSLSResponse({}));
13538
+ }
13539
+ /**
13540
+ * Enables log synchronization to Simple Log Service (SLS).
13541
+ *
13542
+ * @remarks
13543
+ * - Central public endpoint: `adb.aliyuncs.com`.
13544
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
13545
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
13546
+ *
13547
+ * @param request - OpenLogSyncToSLSRequest
13548
+ * @returns OpenLogSyncToSLSResponse
13549
+ */
13550
+ async openLogSyncToSLS(request) {
13551
+ let runtime = new $dara.RuntimeOptions({});
13552
+ return await this.openLogSyncToSLSWithOptions(request, runtime);
13553
+ }
13380
13554
  /**
13381
13555
  * Preloads metrics for a Spark application.
13382
13556
  *