@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 +23 -2
- package/dist/client.js +43 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +53 -2
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -6812,10 +6812,14 @@ export class GetDatabaseObjectsResponse extends $tea.Model {
|
|
|
6812
6812
|
export class GetSparkAppAttemptLogRequest extends $tea.Model {
|
|
6813
6813
|
attemptId?: string;
|
|
6814
6814
|
logLength?: number;
|
|
6815
|
+
pageNumber?: number;
|
|
6816
|
+
pageSize?: string;
|
|
6815
6817
|
static names(): { [key: string]: string } {
|
|
6816
6818
|
return {
|
|
6817
6819
|
attemptId: 'AttemptId',
|
|
6818
6820
|
logLength: 'LogLength',
|
|
6821
|
+
pageNumber: 'PageNumber',
|
|
6822
|
+
pageSize: 'PageSize',
|
|
6819
6823
|
};
|
|
6820
6824
|
}
|
|
6821
6825
|
|
|
@@ -6823,6 +6827,8 @@ export class GetSparkAppAttemptLogRequest extends $tea.Model {
|
|
|
6823
6827
|
return {
|
|
6824
6828
|
attemptId: 'string',
|
|
6825
6829
|
logLength: 'number',
|
|
6830
|
+
pageNumber: 'number',
|
|
6831
|
+
pageSize: 'string',
|
|
6826
6832
|
};
|
|
6827
6833
|
}
|
|
6828
6834
|
|
|
@@ -6951,11 +6957,15 @@ export class GetSparkAppLogRequest extends $tea.Model {
|
|
|
6951
6957
|
appId?: string;
|
|
6952
6958
|
DBClusterId?: string;
|
|
6953
6959
|
logLength?: number;
|
|
6960
|
+
pageNumber?: number;
|
|
6961
|
+
pageSize?: number;
|
|
6954
6962
|
static names(): { [key: string]: string } {
|
|
6955
6963
|
return {
|
|
6956
6964
|
appId: 'AppId',
|
|
6957
6965
|
DBClusterId: 'DBClusterId',
|
|
6958
6966
|
logLength: 'LogLength',
|
|
6967
|
+
pageNumber: 'PageNumber',
|
|
6968
|
+
pageSize: 'PageSize',
|
|
6959
6969
|
};
|
|
6960
6970
|
}
|
|
6961
6971
|
|
|
@@ -6964,6 +6974,8 @@ export class GetSparkAppLogRequest extends $tea.Model {
|
|
|
6964
6974
|
appId: 'string',
|
|
6965
6975
|
DBClusterId: 'string',
|
|
6966
6976
|
logLength: 'number',
|
|
6977
|
+
pageNumber: 'number',
|
|
6978
|
+
pageSize: 'number',
|
|
6967
6979
|
};
|
|
6968
6980
|
}
|
|
6969
6981
|
|
|
@@ -13018,12 +13030,14 @@ export class GetSparkAppAttemptLogResponseBodyData extends $tea.Model {
|
|
|
13018
13030
|
appId?: string;
|
|
13019
13031
|
DBClusterId?: string;
|
|
13020
13032
|
logContent?: string;
|
|
13033
|
+
logSize?: number;
|
|
13021
13034
|
message?: string;
|
|
13022
13035
|
static names(): { [key: string]: string } {
|
|
13023
13036
|
return {
|
|
13024
13037
|
appId: 'AppId',
|
|
13025
13038
|
DBClusterId: 'DBClusterId',
|
|
13026
13039
|
logContent: 'LogContent',
|
|
13040
|
+
logSize: 'LogSize',
|
|
13027
13041
|
message: 'Message',
|
|
13028
13042
|
};
|
|
13029
13043
|
}
|
|
@@ -13033,6 +13047,7 @@ export class GetSparkAppAttemptLogResponseBodyData extends $tea.Model {
|
|
|
13033
13047
|
appId: 'string',
|
|
13034
13048
|
DBClusterId: 'string',
|
|
13035
13049
|
logContent: 'string',
|
|
13050
|
+
logSize: 'number',
|
|
13036
13051
|
message: 'string',
|
|
13037
13052
|
};
|
|
13038
13053
|
}
|
|
@@ -13045,11 +13060,13 @@ export class GetSparkAppAttemptLogResponseBodyData extends $tea.Model {
|
|
|
13045
13060
|
export class GetSparkAppLogResponseBodyData extends $tea.Model {
|
|
13046
13061
|
DBClusterId?: string;
|
|
13047
13062
|
logContent?: string;
|
|
13063
|
+
logSize?: number;
|
|
13048
13064
|
message?: string;
|
|
13049
13065
|
static names(): { [key: string]: string } {
|
|
13050
13066
|
return {
|
|
13051
13067
|
DBClusterId: 'DBClusterId',
|
|
13052
13068
|
logContent: 'LogContent',
|
|
13069
|
+
logSize: 'LogSize',
|
|
13053
13070
|
message: 'Message',
|
|
13054
13071
|
};
|
|
13055
13072
|
}
|
|
@@ -13058,6 +13075,7 @@ export class GetSparkAppLogResponseBodyData extends $tea.Model {
|
|
|
13058
13075
|
return {
|
|
13059
13076
|
DBClusterId: 'string',
|
|
13060
13077
|
logContent: 'string',
|
|
13078
|
+
logSize: 'number',
|
|
13061
13079
|
message: 'string',
|
|
13062
13080
|
};
|
|
13063
13081
|
}
|
|
@@ -15038,6 +15056,13 @@ export default class Client extends OpenApi {
|
|
|
15038
15056
|
return await this.describeApsResourceGroupsWithOptions(request, runtime);
|
|
15039
15057
|
}
|
|
15040
15058
|
|
|
15059
|
+
/**
|
|
15060
|
+
* 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**.
|
|
15061
|
+
*
|
|
15062
|
+
* @param request DescribeAuditLogRecordsRequest
|
|
15063
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
15064
|
+
* @return DescribeAuditLogRecordsResponse
|
|
15065
|
+
*/
|
|
15041
15066
|
async describeAuditLogRecordsWithOptions(request: DescribeAuditLogRecordsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAuditLogRecordsResponse> {
|
|
15042
15067
|
Util.validateModel(request);
|
|
15043
15068
|
let query = { };
|
|
@@ -15134,6 +15159,12 @@ export default class Client extends OpenApi {
|
|
|
15134
15159
|
return $tea.cast<DescribeAuditLogRecordsResponse>(await this.callApi(params, req, runtime), new DescribeAuditLogRecordsResponse({}));
|
|
15135
15160
|
}
|
|
15136
15161
|
|
|
15162
|
+
/**
|
|
15163
|
+
* 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**.
|
|
15164
|
+
*
|
|
15165
|
+
* @param request DescribeAuditLogRecordsRequest
|
|
15166
|
+
* @return DescribeAuditLogRecordsResponse
|
|
15167
|
+
*/
|
|
15137
15168
|
async describeAuditLogRecords(request: DescribeAuditLogRecordsRequest): Promise<DescribeAuditLogRecordsResponse> {
|
|
15138
15169
|
let runtime = new $Util.RuntimeOptions({ });
|
|
15139
15170
|
return await this.describeAuditLogRecordsWithOptions(request, runtime);
|
|
@@ -16907,6 +16938,15 @@ export default class Client extends OpenApi {
|
|
|
16907
16938
|
|
|
16908
16939
|
async getSparkAppAttemptLogWithOptions(request: GetSparkAppAttemptLogRequest, runtime: $Util.RuntimeOptions): Promise<GetSparkAppAttemptLogResponse> {
|
|
16909
16940
|
Util.validateModel(request);
|
|
16941
|
+
let query = { };
|
|
16942
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
16943
|
+
query["PageNumber"] = request.pageNumber;
|
|
16944
|
+
}
|
|
16945
|
+
|
|
16946
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
16947
|
+
query["PageSize"] = request.pageSize;
|
|
16948
|
+
}
|
|
16949
|
+
|
|
16910
16950
|
let body : {[key: string ]: any} = { };
|
|
16911
16951
|
if (!Util.isUnset(request.attemptId)) {
|
|
16912
16952
|
body["AttemptId"] = request.attemptId;
|
|
@@ -16917,6 +16957,7 @@ export default class Client extends OpenApi {
|
|
|
16917
16957
|
}
|
|
16918
16958
|
|
|
16919
16959
|
let req = new $OpenApi.OpenApiRequest({
|
|
16960
|
+
query: OpenApiUtil.query(query),
|
|
16920
16961
|
body: OpenApiUtil.parseToMap(body),
|
|
16921
16962
|
});
|
|
16922
16963
|
let params = new $OpenApi.Params({
|
|
@@ -16980,6 +17021,14 @@ export default class Client extends OpenApi {
|
|
|
16980
17021
|
query["DBClusterId"] = request.DBClusterId;
|
|
16981
17022
|
}
|
|
16982
17023
|
|
|
17024
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
17025
|
+
query["PageNumber"] = request.pageNumber;
|
|
17026
|
+
}
|
|
17027
|
+
|
|
17028
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
17029
|
+
query["PageSize"] = request.pageSize;
|
|
17030
|
+
}
|
|
17031
|
+
|
|
16983
17032
|
let body : {[key: string ]: any} = { };
|
|
16984
17033
|
if (!Util.isUnset(request.appId)) {
|
|
16985
17034
|
body["AppId"] = request.appId;
|
|
@@ -17271,7 +17320,8 @@ export default class Client extends OpenApi {
|
|
|
17271
17320
|
}
|
|
17272
17321
|
|
|
17273
17322
|
/**
|
|
17274
|
-
*
|
|
17323
|
+
* ### [](#)Usage notes
|
|
17324
|
+
* 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.
|
|
17275
17325
|
*
|
|
17276
17326
|
* @param request GetSparkTemplateFolderTreeRequest
|
|
17277
17327
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -17302,7 +17352,8 @@ export default class Client extends OpenApi {
|
|
|
17302
17352
|
}
|
|
17303
17353
|
|
|
17304
17354
|
/**
|
|
17305
|
-
*
|
|
17355
|
+
* ### [](#)Usage notes
|
|
17356
|
+
* 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.
|
|
17306
17357
|
*
|
|
17307
17358
|
* @param request GetSparkTemplateFolderTreeRequest
|
|
17308
17359
|
* @return GetSparkTemplateFolderTreeResponse
|