@alicloud/adb20211201 5.0.3 → 5.1.1
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/dist/client.d.ts +81 -6
- package/dist/client.js +192 -18
- package/dist/client.js.map +1 -1
- package/dist/models/CloseLogSyncToSlsrequest.d.ts +46 -0
- package/dist/models/CloseLogSyncToSlsrequest.js +62 -0
- package/dist/models/CloseLogSyncToSlsrequest.js.map +1 -0
- package/dist/models/CloseLogSyncToSlsresponse.d.ts +19 -0
- package/dist/models/CloseLogSyncToSlsresponse.js +69 -0
- package/dist/models/CloseLogSyncToSlsresponse.js.map +1 -0
- package/dist/models/CloseLogSyncToSlsresponseBody.d.ts +21 -0
- package/dist/models/CloseLogSyncToSlsresponseBody.js +58 -0
- package/dist/models/CloseLogSyncToSlsresponseBody.js.map +1 -0
- package/dist/models/DescribeAuditLogRecordsRequest.d.ts +24 -12
- package/dist/models/DescribeAuditLogRecordsRequest.js +2 -0
- package/dist/models/DescribeAuditLogRecordsRequest.js.map +1 -1
- package/dist/models/DescribeAuditLogRecordsResponseBody.d.ts +9 -9
- package/dist/models/GetLogSyncToSlsrequest.d.ts +46 -0
- package/dist/models/GetLogSyncToSlsrequest.js +62 -0
- package/dist/models/GetLogSyncToSlsrequest.js.map +1 -0
- package/dist/models/GetLogSyncToSlsresponse.d.ts +19 -0
- package/dist/models/GetLogSyncToSlsresponse.js +69 -0
- package/dist/models/GetLogSyncToSlsresponse.js.map +1 -0
- package/dist/models/GetLogSyncToSlsresponseBody.d.ts +64 -0
- package/dist/models/GetLogSyncToSlsresponseBody.js +86 -0
- package/dist/models/GetLogSyncToSlsresponseBody.js.map +1 -0
- package/dist/models/OpenLogSyncToSlsrequest.d.ts +66 -0
- package/dist/models/OpenLogSyncToSlsrequest.js +66 -0
- package/dist/models/OpenLogSyncToSlsrequest.js.map +1 -0
- package/dist/models/OpenLogSyncToSlsresponse.d.ts +19 -0
- package/dist/models/OpenLogSyncToSlsresponse.js +69 -0
- package/dist/models/OpenLogSyncToSlsresponse.js.map +1 -0
- package/dist/models/OpenLogSyncToSlsresponseBody.d.ts +21 -0
- package/dist/models/OpenLogSyncToSlsresponseBody.js +58 -0
- package/dist/models/OpenLogSyncToSlsresponseBody.js.map +1 -0
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +39 -19
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +210 -18
- package/src/models/CloseLogSyncToSlsrequest.ts +63 -0
- package/src/models/CloseLogSyncToSlsresponse.ts +40 -0
- package/src/models/CloseLogSyncToSlsresponseBody.ts +34 -0
- package/src/models/DescribeAuditLogRecordsRequest.ts +26 -12
- package/src/models/DescribeAuditLogRecordsResponseBody.ts +9 -9
- package/src/models/GetLogSyncToSlsrequest.ts +63 -0
- package/src/models/GetLogSyncToSlsresponse.ts +40 -0
- package/src/models/GetLogSyncToSlsresponseBody.ts +96 -0
- package/src/models/OpenLogSyncToSlsrequest.ts +87 -0
- package/src/models/OpenLogSyncToSlsresponse.ts +40 -0
- package/src/models/OpenLogSyncToSlsresponseBody.ts +34 -0
- 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
|
*
|
|
@@ -1377,11 +1402,11 @@ export default class Client extends OpenApi {
|
|
|
1377
1402
|
*/
|
|
1378
1403
|
describeApsResourceGroups(request: $_model.DescribeApsResourceGroupsRequest): Promise<$_model.DescribeApsResourceGroupsResponse>;
|
|
1379
1404
|
/**
|
|
1380
|
-
* Queries the SQL
|
|
1405
|
+
* Queries the SQL audit logs of a cluster.
|
|
1381
1406
|
*
|
|
1382
1407
|
* @remarks
|
|
1383
|
-
* - SQL
|
|
1384
|
-
* - For the
|
|
1408
|
+
* - SQL audit logs can be queried only when SQL audit is enabled, and only logs from the last 30 days are supported. If SQL audit is shutdown and then re-enabled, only logs generated after re-enabling can be queried. SQL audit logs do not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
|
|
1409
|
+
* - For the service registration of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
|
|
1385
1410
|
*
|
|
1386
1411
|
* @param request - DescribeAuditLogRecordsRequest
|
|
1387
1412
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1389,11 +1414,11 @@ export default class Client extends OpenApi {
|
|
|
1389
1414
|
*/
|
|
1390
1415
|
describeAuditLogRecordsWithOptions(request: $_model.DescribeAuditLogRecordsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAuditLogRecordsResponse>;
|
|
1391
1416
|
/**
|
|
1392
|
-
* Queries the SQL
|
|
1417
|
+
* Queries the SQL audit logs of a cluster.
|
|
1393
1418
|
*
|
|
1394
1419
|
* @remarks
|
|
1395
|
-
* - SQL
|
|
1396
|
-
* - For the
|
|
1420
|
+
* - SQL audit logs can be queried only when SQL audit is enabled, and only logs from the last 30 days are supported. If SQL audit is shutdown and then re-enabled, only logs generated after re-enabling can be queried. SQL audit logs do not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
|
|
1421
|
+
* - For the service registration of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
|
|
1397
1422
|
*
|
|
1398
1423
|
* @param request - DescribeAuditLogRecordsRequest
|
|
1399
1424
|
* @returns DescribeAuditLogRecordsResponse
|
|
@@ -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
|
-
'
|
|
107
|
-
'
|
|
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
|
*
|
|
@@ -4413,11 +4468,11 @@ class Client extends openapi_core_1.default {
|
|
|
4413
4468
|
return await this.describeApsResourceGroupsWithOptions(request, runtime);
|
|
4414
4469
|
}
|
|
4415
4470
|
/**
|
|
4416
|
-
* Queries the SQL
|
|
4471
|
+
* Queries the SQL audit logs of a cluster.
|
|
4417
4472
|
*
|
|
4418
4473
|
* @remarks
|
|
4419
|
-
* - SQL
|
|
4420
|
-
* - For the
|
|
4474
|
+
* - SQL audit logs can be queried only when SQL audit is enabled, and only logs from the last 30 days are supported. If SQL audit is shutdown and then re-enabled, only logs generated after re-enabling can be queried. SQL audit logs do not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
|
|
4475
|
+
* - For the service registration of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
|
|
4421
4476
|
*
|
|
4422
4477
|
* @param request - DescribeAuditLogRecordsRequest
|
|
4423
4478
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4459,6 +4514,9 @@ class Client extends openapi_core_1.default {
|
|
|
4459
4514
|
if (!$dara.isNull(request.pageSize)) {
|
|
4460
4515
|
query["PageSize"] = request.pageSize;
|
|
4461
4516
|
}
|
|
4517
|
+
if (!$dara.isNull(request.processId)) {
|
|
4518
|
+
query["ProcessId"] = request.processId;
|
|
4519
|
+
}
|
|
4462
4520
|
if (!$dara.isNull(request.proxyUser)) {
|
|
4463
4521
|
query["ProxyUser"] = request.proxyUser;
|
|
4464
4522
|
}
|
|
@@ -4503,11 +4561,11 @@ class Client extends openapi_core_1.default {
|
|
|
4503
4561
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAuditLogRecordsResponse({}));
|
|
4504
4562
|
}
|
|
4505
4563
|
/**
|
|
4506
|
-
* Queries the SQL
|
|
4564
|
+
* Queries the SQL audit logs of a cluster.
|
|
4507
4565
|
*
|
|
4508
4566
|
* @remarks
|
|
4509
|
-
* - SQL
|
|
4510
|
-
* - For the
|
|
4567
|
+
* - SQL audit logs can be queried only when SQL audit is enabled, and only logs from the last 30 days are supported. If SQL audit is shutdown and then re-enabled, only logs generated after re-enabling can be queried. SQL audit logs do not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
|
|
4568
|
+
* - For the service registration of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
|
|
4511
4569
|
*
|
|
4512
4570
|
* @param request - DescribeAuditLogRecordsRequest
|
|
4513
4571
|
* @returns DescribeAuditLogRecordsResponse
|
|
@@ -9632,6 +9690,61 @@ class Client extends openapi_core_1.default {
|
|
|
9632
9690
|
let runtime = new $dara.RuntimeOptions({});
|
|
9633
9691
|
return await this.getLakeStorageWithOptions(request, runtime);
|
|
9634
9692
|
}
|
|
9693
|
+
/**
|
|
9694
|
+
* Retrieves the log synchronization configuration.
|
|
9695
|
+
*
|
|
9696
|
+
* @remarks
|
|
9697
|
+
* - Central public endpoint: `adb.aliyuncs.com`.
|
|
9698
|
+
* - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
9699
|
+
* - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
9700
|
+
*
|
|
9701
|
+
* @param request - GetLogSyncToSLSRequest
|
|
9702
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9703
|
+
* @returns GetLogSyncToSLSResponse
|
|
9704
|
+
*/
|
|
9705
|
+
async getLogSyncToSLSWithOptions(request, runtime) {
|
|
9706
|
+
request.validate();
|
|
9707
|
+
let query = {};
|
|
9708
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
9709
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
9710
|
+
}
|
|
9711
|
+
if (!$dara.isNull(request.logType)) {
|
|
9712
|
+
query["LogType"] = request.logType;
|
|
9713
|
+
}
|
|
9714
|
+
if (!$dara.isNull(request.regionId)) {
|
|
9715
|
+
query["RegionId"] = request.regionId;
|
|
9716
|
+
}
|
|
9717
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
9718
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
9719
|
+
});
|
|
9720
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
9721
|
+
action: "GetLogSyncToSLS",
|
|
9722
|
+
version: "2021-12-01",
|
|
9723
|
+
protocol: "HTTPS",
|
|
9724
|
+
pathname: "/",
|
|
9725
|
+
method: "POST",
|
|
9726
|
+
authType: "AK",
|
|
9727
|
+
style: "RPC",
|
|
9728
|
+
reqBodyType: "formData",
|
|
9729
|
+
bodyType: "json",
|
|
9730
|
+
});
|
|
9731
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetLogSyncToSLSResponse({}));
|
|
9732
|
+
}
|
|
9733
|
+
/**
|
|
9734
|
+
* Retrieves the log synchronization configuration.
|
|
9735
|
+
*
|
|
9736
|
+
* @remarks
|
|
9737
|
+
* - Central public endpoint: `adb.aliyuncs.com`.
|
|
9738
|
+
* - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
9739
|
+
* - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
9740
|
+
*
|
|
9741
|
+
* @param request - GetLogSyncToSLSRequest
|
|
9742
|
+
* @returns GetLogSyncToSLSResponse
|
|
9743
|
+
*/
|
|
9744
|
+
async getLogSyncToSLS(request) {
|
|
9745
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
9746
|
+
return await this.getLogSyncToSLSWithOptions(request, runtime);
|
|
9747
|
+
}
|
|
9635
9748
|
/**
|
|
9636
9749
|
* Retrieves the details of a semantic view.
|
|
9637
9750
|
*
|
|
@@ -13380,6 +13493,67 @@ class Client extends openapi_core_1.default {
|
|
|
13380
13493
|
let runtime = new $dara.RuntimeOptions({});
|
|
13381
13494
|
return await this.modifyUserEniVswitchOptionsWithOptions(request, runtime);
|
|
13382
13495
|
}
|
|
13496
|
+
/**
|
|
13497
|
+
* Enables log synchronization to Simple Log Service (SLS).
|
|
13498
|
+
*
|
|
13499
|
+
* @remarks
|
|
13500
|
+
* - Central public endpoint: `adb.aliyuncs.com`.
|
|
13501
|
+
* - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
13502
|
+
* - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
13503
|
+
*
|
|
13504
|
+
* @param request - OpenLogSyncToSLSRequest
|
|
13505
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13506
|
+
* @returns OpenLogSyncToSLSResponse
|
|
13507
|
+
*/
|
|
13508
|
+
async openLogSyncToSLSWithOptions(request, runtime) {
|
|
13509
|
+
request.validate();
|
|
13510
|
+
let query = {};
|
|
13511
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
13512
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
13513
|
+
}
|
|
13514
|
+
if (!$dara.isNull(request.logType)) {
|
|
13515
|
+
query["LogType"] = request.logType;
|
|
13516
|
+
}
|
|
13517
|
+
if (!$dara.isNull(request.regionId)) {
|
|
13518
|
+
query["RegionId"] = request.regionId;
|
|
13519
|
+
}
|
|
13520
|
+
if (!$dara.isNull(request.targetLogStore)) {
|
|
13521
|
+
query["TargetLogStore"] = request.targetLogStore;
|
|
13522
|
+
}
|
|
13523
|
+
if (!$dara.isNull(request.targetProject)) {
|
|
13524
|
+
query["TargetProject"] = request.targetProject;
|
|
13525
|
+
}
|
|
13526
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
13527
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
13528
|
+
});
|
|
13529
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
13530
|
+
action: "OpenLogSyncToSLS",
|
|
13531
|
+
version: "2021-12-01",
|
|
13532
|
+
protocol: "HTTPS",
|
|
13533
|
+
pathname: "/",
|
|
13534
|
+
method: "POST",
|
|
13535
|
+
authType: "AK",
|
|
13536
|
+
style: "RPC",
|
|
13537
|
+
reqBodyType: "formData",
|
|
13538
|
+
bodyType: "json",
|
|
13539
|
+
});
|
|
13540
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.OpenLogSyncToSLSResponse({}));
|
|
13541
|
+
}
|
|
13542
|
+
/**
|
|
13543
|
+
* Enables log synchronization to Simple Log Service (SLS).
|
|
13544
|
+
*
|
|
13545
|
+
* @remarks
|
|
13546
|
+
* - Central public endpoint: `adb.aliyuncs.com`.
|
|
13547
|
+
* - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
13548
|
+
* - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
13549
|
+
*
|
|
13550
|
+
* @param request - OpenLogSyncToSLSRequest
|
|
13551
|
+
* @returns OpenLogSyncToSLSResponse
|
|
13552
|
+
*/
|
|
13553
|
+
async openLogSyncToSLS(request) {
|
|
13554
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
13555
|
+
return await this.openLogSyncToSLSWithOptions(request, runtime);
|
|
13556
|
+
}
|
|
13383
13557
|
/**
|
|
13384
13558
|
* Preloads metrics for a Spark application.
|
|
13385
13559
|
*
|