@alicloud/adb20211201 1.4.3 → 1.4.5

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 CHANGED
@@ -3770,6 +3770,8 @@ export declare class GetDatabaseObjectsResponse extends $tea.Model {
3770
3770
  export declare class GetSparkAppAttemptLogRequest extends $tea.Model {
3771
3771
  attemptId?: string;
3772
3772
  logLength?: number;
3773
+ pageNumber?: number;
3774
+ pageSize?: string;
3773
3775
  static names(): {
3774
3776
  [key: string]: string;
3775
3777
  };
@@ -3855,6 +3857,8 @@ export declare class GetSparkAppLogRequest extends $tea.Model {
3855
3857
  appId?: string;
3856
3858
  DBClusterId?: string;
3857
3859
  logLength?: number;
3860
+ pageNumber?: number;
3861
+ pageSize?: number;
3858
3862
  static names(): {
3859
3863
  [key: string]: string;
3860
3864
  };
@@ -7254,6 +7258,7 @@ export declare class GetSparkAppAttemptLogResponseBodyData extends $tea.Model {
7254
7258
  appId?: string;
7255
7259
  DBClusterId?: string;
7256
7260
  logContent?: string;
7261
+ logSize?: number;
7257
7262
  message?: string;
7258
7263
  static names(): {
7259
7264
  [key: string]: string;
@@ -7268,6 +7273,7 @@ export declare class GetSparkAppAttemptLogResponseBodyData extends $tea.Model {
7268
7273
  export declare class GetSparkAppLogResponseBodyData extends $tea.Model {
7269
7274
  DBClusterId?: string;
7270
7275
  logContent?: string;
7276
+ logSize?: number;
7271
7277
  message?: string;
7272
7278
  static names(): {
7273
7279
  [key: string]: string;
@@ -7700,7 +7706,20 @@ export default class Client extends OpenApi {
7700
7706
  describeApsActionLogs(request: DescribeApsActionLogsRequest): Promise<DescribeApsActionLogsResponse>;
7701
7707
  describeApsResourceGroupsWithOptions(request: DescribeApsResourceGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeApsResourceGroupsResponse>;
7702
7708
  describeApsResourceGroups(request: DescribeApsResourceGroupsRequest): Promise<DescribeApsResourceGroupsResponse>;
7709
+ /**
7710
+ * SQL audit logs can be queried only when SQL audit is enabled. Only SQL audit logs within the last 30 days can be queried. If SQL audit was disabled and re-enabled, only SQL audit logs from the time when SQL audit was re-enabled can be queried. The following operations are not recorded in SQL audit logs: **INSERT INTO VALUES**, **REPLACE INTO VALUES**, and **UPSERT INTO VALUES**.
7711
+ *
7712
+ * @param request DescribeAuditLogRecordsRequest
7713
+ * @param runtime runtime options for this request RuntimeOptions
7714
+ * @return DescribeAuditLogRecordsResponse
7715
+ */
7703
7716
  describeAuditLogRecordsWithOptions(request: DescribeAuditLogRecordsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAuditLogRecordsResponse>;
7717
+ /**
7718
+ * SQL audit logs can be queried only when SQL audit is enabled. Only SQL audit logs within the last 30 days can be queried. If SQL audit was disabled and re-enabled, only SQL audit logs from the time when SQL audit was re-enabled can be queried. The following operations are not recorded in SQL audit logs: **INSERT INTO VALUES**, **REPLACE INTO VALUES**, and **UPSERT INTO VALUES**.
7719
+ *
7720
+ * @param request DescribeAuditLogRecordsRequest
7721
+ * @return DescribeAuditLogRecordsResponse
7722
+ */
7704
7723
  describeAuditLogRecords(request: DescribeAuditLogRecordsRequest): Promise<DescribeAuditLogRecordsResponse>;
7705
7724
  describeBackupPolicyWithOptions(request: DescribeBackupPolicyRequest, runtime: $Util.RuntimeOptions): Promise<DescribeBackupPolicyResponse>;
7706
7725
  describeBackupPolicy(request: DescribeBackupPolicyRequest): Promise<DescribeBackupPolicyResponse>;
@@ -7809,7 +7828,8 @@ export default class Client extends OpenApi {
7809
7828
  getSparkTemplateFileContentWithOptions(request: GetSparkTemplateFileContentRequest, runtime: $Util.RuntimeOptions): Promise<GetSparkTemplateFileContentResponse>;
7810
7829
  getSparkTemplateFileContent(request: GetSparkTemplateFileContentRequest): Promise<GetSparkTemplateFileContentResponse>;
7811
7830
  /**
7812
- * You can call this operation to query the directory structure but not application data in the directory. To query the directory structure that contains application data, call the [GetSparkTemplateFullTree](~~456205~~) operation.
7831
+ * ### [](#)Usage notes
7832
+ * You can call this operation to query the directory structure but not application data in the directory. To query the directory structure that contains application data, call the [GetSparkTemplateFullTree](~~612467~~) operation.
7813
7833
  *
7814
7834
  * @param request GetSparkTemplateFolderTreeRequest
7815
7835
  * @param runtime runtime options for this request RuntimeOptions
@@ -7817,7 +7837,8 @@ export default class Client extends OpenApi {
7817
7837
  */
7818
7838
  getSparkTemplateFolderTreeWithOptions(request: GetSparkTemplateFolderTreeRequest, runtime: $Util.RuntimeOptions): Promise<GetSparkTemplateFolderTreeResponse>;
7819
7839
  /**
7820
- * You can call this operation to query the directory structure but not application data in the directory. To query the directory structure that contains application data, call the [GetSparkTemplateFullTree](~~456205~~) operation.
7840
+ * ### [](#)Usage notes
7841
+ * You can call this operation to query the directory structure but not application data in the directory. To query the directory structure that contains application data, call the [GetSparkTemplateFullTree](~~612467~~) operation.
7821
7842
  *
7822
7843
  * @param request GetSparkTemplateFolderTreeRequest
7823
7844
  * @return GetSparkTemplateFolderTreeResponse
package/dist/client.js CHANGED
@@ -5351,12 +5351,16 @@ class GetSparkAppAttemptLogRequest extends $tea.Model {
5351
5351
  return {
5352
5352
  attemptId: 'AttemptId',
5353
5353
  logLength: 'LogLength',
5354
+ pageNumber: 'PageNumber',
5355
+ pageSize: 'PageSize',
5354
5356
  };
5355
5357
  }
5356
5358
  static types() {
5357
5359
  return {
5358
5360
  attemptId: 'string',
5359
5361
  logLength: 'number',
5362
+ pageNumber: 'number',
5363
+ pageSize: 'string',
5360
5364
  };
5361
5365
  }
5362
5366
  }
@@ -5464,6 +5468,8 @@ class GetSparkAppLogRequest extends $tea.Model {
5464
5468
  appId: 'AppId',
5465
5469
  DBClusterId: 'DBClusterId',
5466
5470
  logLength: 'LogLength',
5471
+ pageNumber: 'PageNumber',
5472
+ pageSize: 'PageSize',
5467
5473
  };
5468
5474
  }
5469
5475
  static types() {
@@ -5471,6 +5477,8 @@ class GetSparkAppLogRequest extends $tea.Model {
5471
5477
  appId: 'string',
5472
5478
  DBClusterId: 'string',
5473
5479
  logLength: 'number',
5480
+ pageNumber: 'number',
5481
+ pageSize: 'number',
5474
5482
  };
5475
5483
  }
5476
5484
  }
@@ -10262,6 +10270,7 @@ class GetSparkAppAttemptLogResponseBodyData extends $tea.Model {
10262
10270
  appId: 'AppId',
10263
10271
  DBClusterId: 'DBClusterId',
10264
10272
  logContent: 'LogContent',
10273
+ logSize: 'LogSize',
10265
10274
  message: 'Message',
10266
10275
  };
10267
10276
  }
@@ -10270,6 +10279,7 @@ class GetSparkAppAttemptLogResponseBodyData extends $tea.Model {
10270
10279
  appId: 'string',
10271
10280
  DBClusterId: 'string',
10272
10281
  logContent: 'string',
10282
+ logSize: 'number',
10273
10283
  message: 'string',
10274
10284
  };
10275
10285
  }
@@ -10283,6 +10293,7 @@ class GetSparkAppLogResponseBodyData extends $tea.Model {
10283
10293
  return {
10284
10294
  DBClusterId: 'DBClusterId',
10285
10295
  logContent: 'LogContent',
10296
+ logSize: 'LogSize',
10286
10297
  message: 'Message',
10287
10298
  };
10288
10299
  }
@@ -10290,6 +10301,7 @@ class GetSparkAppLogResponseBodyData extends $tea.Model {
10290
10301
  return {
10291
10302
  DBClusterId: 'string',
10292
10303
  logContent: 'string',
10304
+ logSize: 'number',
10293
10305
  message: 'string',
10294
10306
  };
10295
10307
  }
@@ -11934,6 +11946,13 @@ class Client extends openapi_client_1.default {
11934
11946
  let runtime = new $Util.RuntimeOptions({});
11935
11947
  return await this.describeApsResourceGroupsWithOptions(request, runtime);
11936
11948
  }
11949
+ /**
11950
+ * SQL audit logs can be queried only when SQL audit is enabled. Only SQL audit logs within the last 30 days can be queried. If SQL audit was disabled and re-enabled, only SQL audit logs from the time when SQL audit was re-enabled can be queried. The following operations are not recorded in SQL audit logs: **INSERT INTO VALUES**, **REPLACE INTO VALUES**, and **UPSERT INTO VALUES**.
11951
+ *
11952
+ * @param request DescribeAuditLogRecordsRequest
11953
+ * @param runtime runtime options for this request RuntimeOptions
11954
+ * @return DescribeAuditLogRecordsResponse
11955
+ */
11937
11956
  async describeAuditLogRecordsWithOptions(request, runtime) {
11938
11957
  tea_util_1.default.validateModel(request);
11939
11958
  let query = {};
@@ -12010,6 +12029,12 @@ class Client extends openapi_client_1.default {
12010
12029
  });
12011
12030
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeAuditLogRecordsResponse({}));
12012
12031
  }
12032
+ /**
12033
+ * SQL audit logs can be queried only when SQL audit is enabled. Only SQL audit logs within the last 30 days can be queried. If SQL audit was disabled and re-enabled, only SQL audit logs from the time when SQL audit was re-enabled can be queried. The following operations are not recorded in SQL audit logs: **INSERT INTO VALUES**, **REPLACE INTO VALUES**, and **UPSERT INTO VALUES**.
12034
+ *
12035
+ * @param request DescribeAuditLogRecordsRequest
12036
+ * @return DescribeAuditLogRecordsResponse
12037
+ */
12013
12038
  async describeAuditLogRecords(request) {
12014
12039
  let runtime = new $Util.RuntimeOptions({});
12015
12040
  return await this.describeAuditLogRecordsWithOptions(request, runtime);
@@ -13519,6 +13544,13 @@ class Client extends openapi_client_1.default {
13519
13544
  }
13520
13545
  async getSparkAppAttemptLogWithOptions(request, runtime) {
13521
13546
  tea_util_1.default.validateModel(request);
13547
+ let query = {};
13548
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
13549
+ query["PageNumber"] = request.pageNumber;
13550
+ }
13551
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
13552
+ query["PageSize"] = request.pageSize;
13553
+ }
13522
13554
  let body = {};
13523
13555
  if (!tea_util_1.default.isUnset(request.attemptId)) {
13524
13556
  body["AttemptId"] = request.attemptId;
@@ -13527,6 +13559,7 @@ class Client extends openapi_client_1.default {
13527
13559
  body["LogLength"] = request.logLength;
13528
13560
  }
13529
13561
  let req = new $OpenApi.OpenApiRequest({
13562
+ query: openapi_util_1.default.query(query),
13530
13563
  body: openapi_util_1.default.parseToMap(body),
13531
13564
  });
13532
13565
  let params = new $OpenApi.Params({
@@ -13583,6 +13616,12 @@ class Client extends openapi_client_1.default {
13583
13616
  if (!tea_util_1.default.isUnset(request.DBClusterId)) {
13584
13617
  query["DBClusterId"] = request.DBClusterId;
13585
13618
  }
13619
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
13620
+ query["PageNumber"] = request.pageNumber;
13621
+ }
13622
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
13623
+ query["PageSize"] = request.pageSize;
13624
+ }
13586
13625
  let body = {};
13587
13626
  if (!tea_util_1.default.isUnset(request.appId)) {
13588
13627
  body["AppId"] = request.appId;
@@ -13841,7 +13880,8 @@ class Client extends openapi_client_1.default {
13841
13880
  return await this.getSparkTemplateFileContentWithOptions(request, runtime);
13842
13881
  }
13843
13882
  /**
13844
- * You can call this operation to query the directory structure but not application data in the directory. To query the directory structure that contains application data, call the [GetSparkTemplateFullTree](~~456205~~) operation.
13883
+ * ### [](#)Usage notes
13884
+ * You can call this operation to query the directory structure but not application data in the directory. To query the directory structure that contains application data, call the [GetSparkTemplateFullTree](~~612467~~) operation.
13845
13885
  *
13846
13886
  * @param request GetSparkTemplateFolderTreeRequest
13847
13887
  * @param runtime runtime options for this request RuntimeOptions
@@ -13870,7 +13910,8 @@ class Client extends openapi_client_1.default {
13870
13910
  return $tea.cast(await this.callApi(params, req, runtime), new GetSparkTemplateFolderTreeResponse({}));
13871
13911
  }
13872
13912
  /**
13873
- * You can call this operation to query the directory structure but not application data in the directory. To query the directory structure that contains application data, call the [GetSparkTemplateFullTree](~~456205~~) operation.
13913
+ * ### [](#)Usage notes
13914
+ * You can call this operation to query the directory structure but not application data in the directory. To query the directory structure that contains application data, call the [GetSparkTemplateFullTree](~~612467~~) operation.
13874
13915
  *
13875
13916
  * @param request GetSparkTemplateFolderTreeRequest
13876
13917
  * @return GetSparkTemplateFolderTreeResponse