@alicloud/adb20211201 3.1.0 → 3.3.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.
- package/dist/client.d.ts +247 -0
- package/dist/client.js +238 -9
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +407 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -12110,6 +12110,314 @@ export class DescribeSchemasResponse extends $tea.Model {
|
|
|
12110
12110
|
}
|
|
12111
12111
|
}
|
|
12112
12112
|
|
|
12113
|
+
export class DescribeSparkAppDiagnosisInfoRequest extends $tea.Model {
|
|
12114
|
+
/**
|
|
12115
|
+
* @remarks
|
|
12116
|
+
* This parameter is required.
|
|
12117
|
+
*
|
|
12118
|
+
* @example
|
|
12119
|
+
* s202411061017sh0ad564b000****
|
|
12120
|
+
*/
|
|
12121
|
+
appId?: string;
|
|
12122
|
+
/**
|
|
12123
|
+
* @remarks
|
|
12124
|
+
* This parameter is required.
|
|
12125
|
+
*
|
|
12126
|
+
* @example
|
|
12127
|
+
* amv-uf663j39b0jd2***
|
|
12128
|
+
*/
|
|
12129
|
+
DBClusterId?: string;
|
|
12130
|
+
/**
|
|
12131
|
+
* @remarks
|
|
12132
|
+
* This parameter is required.
|
|
12133
|
+
*
|
|
12134
|
+
* @example
|
|
12135
|
+
* PYTHON
|
|
12136
|
+
*/
|
|
12137
|
+
language?: string;
|
|
12138
|
+
/**
|
|
12139
|
+
* @remarks
|
|
12140
|
+
* This parameter is required.
|
|
12141
|
+
*
|
|
12142
|
+
* @example
|
|
12143
|
+
* cn-hangzhou
|
|
12144
|
+
*/
|
|
12145
|
+
regionId?: string;
|
|
12146
|
+
static names(): { [key: string]: string } {
|
|
12147
|
+
return {
|
|
12148
|
+
appId: 'AppId',
|
|
12149
|
+
DBClusterId: 'DBClusterId',
|
|
12150
|
+
language: 'Language',
|
|
12151
|
+
regionId: 'RegionId',
|
|
12152
|
+
};
|
|
12153
|
+
}
|
|
12154
|
+
|
|
12155
|
+
static types(): { [key: string]: any } {
|
|
12156
|
+
return {
|
|
12157
|
+
appId: 'string',
|
|
12158
|
+
DBClusterId: 'string',
|
|
12159
|
+
language: 'string',
|
|
12160
|
+
regionId: 'string',
|
|
12161
|
+
};
|
|
12162
|
+
}
|
|
12163
|
+
|
|
12164
|
+
constructor(map?: { [key: string]: any }) {
|
|
12165
|
+
super(map);
|
|
12166
|
+
}
|
|
12167
|
+
}
|
|
12168
|
+
|
|
12169
|
+
export class DescribeSparkAppDiagnosisInfoResponseBody extends $tea.Model {
|
|
12170
|
+
/**
|
|
12171
|
+
* @example
|
|
12172
|
+
* {
|
|
12173
|
+
* "PolicyType": "AccountLevelIdentityBasedPolicy",
|
|
12174
|
+
* "AuthPrincipalOwnerId": "1*****************7",
|
|
12175
|
+
* "EncodedDiagnosticMessage": "AQIBIAAAAOPdwKY2QLOvgMEc7SkkoJfj1kvZwsaRqNYMh10Tv0wTe0fCzaCdrvgazfNb0EnJKETgXyhR+3BIQjx9WAqZryejBsp1Bl4qI5En/D9dEhcXAtKCxCmE2kZCiEzpy8BoEUt+bs0DmlaGWO5xkEpttypLIB4rUhDvZd+zwPg4EXk4KSSWSWsurxtqDkKEMshKlQFBTKvJcKwyhk62IeYly4hQ+5IpXjkh1GQXuDRCQ==",
|
|
12176
|
+
* "AuthPrincipalType": "SubUser",
|
|
12177
|
+
* "AuthPrincipalDisplayName": "2***************9",
|
|
12178
|
+
* "NoPermissionType": "ImplicitDeny",
|
|
12179
|
+
* "AuthAction": "adb:DescribeExcessivePrimaryKeys"
|
|
12180
|
+
* }
|
|
12181
|
+
*/
|
|
12182
|
+
accessDeniedDetail?: string;
|
|
12183
|
+
/**
|
|
12184
|
+
* @example
|
|
12185
|
+
* s202404141952sz6a1391200****
|
|
12186
|
+
*/
|
|
12187
|
+
appId?: string;
|
|
12188
|
+
/**
|
|
12189
|
+
* @example
|
|
12190
|
+
* 100
|
|
12191
|
+
*/
|
|
12192
|
+
cpuUtilization?: number;
|
|
12193
|
+
diagnosisInfoList?: Adb4MysqlSparkDiagnosisInfo[];
|
|
12194
|
+
/**
|
|
12195
|
+
* @example
|
|
12196
|
+
* 281063
|
|
12197
|
+
*/
|
|
12198
|
+
durationInMillis?: number;
|
|
12199
|
+
/**
|
|
12200
|
+
* @example
|
|
12201
|
+
* 81055
|
|
12202
|
+
*/
|
|
12203
|
+
JVMGcCostInMillis?: number;
|
|
12204
|
+
/**
|
|
12205
|
+
* @example
|
|
12206
|
+
* 4096000
|
|
12207
|
+
*/
|
|
12208
|
+
peakMemoryInByte?: number;
|
|
12209
|
+
/**
|
|
12210
|
+
* @example
|
|
12211
|
+
* FB5AC339-91F6-5000-8E5A-F47065B01B87
|
|
12212
|
+
*/
|
|
12213
|
+
requestId?: string;
|
|
12214
|
+
/**
|
|
12215
|
+
* @example
|
|
12216
|
+
* 4096000
|
|
12217
|
+
*/
|
|
12218
|
+
shuffleReadInByte?: number;
|
|
12219
|
+
/**
|
|
12220
|
+
* @example
|
|
12221
|
+
* 4096000
|
|
12222
|
+
*/
|
|
12223
|
+
shuffleWriteInByte?: number;
|
|
12224
|
+
/**
|
|
12225
|
+
* @example
|
|
12226
|
+
* 0
|
|
12227
|
+
*/
|
|
12228
|
+
spillInByte?: number;
|
|
12229
|
+
/**
|
|
12230
|
+
* @example
|
|
12231
|
+
* 1718329831000
|
|
12232
|
+
*/
|
|
12233
|
+
startedTime?: number;
|
|
12234
|
+
/**
|
|
12235
|
+
* @example
|
|
12236
|
+
* FINISHED
|
|
12237
|
+
*/
|
|
12238
|
+
state?: string;
|
|
12239
|
+
static names(): { [key: string]: string } {
|
|
12240
|
+
return {
|
|
12241
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
12242
|
+
appId: 'AppId',
|
|
12243
|
+
cpuUtilization: 'CpuUtilization',
|
|
12244
|
+
diagnosisInfoList: 'DiagnosisInfoList',
|
|
12245
|
+
durationInMillis: 'DurationInMillis',
|
|
12246
|
+
JVMGcCostInMillis: 'JVMGcCostInMillis',
|
|
12247
|
+
peakMemoryInByte: 'PeakMemoryInByte',
|
|
12248
|
+
requestId: 'RequestId',
|
|
12249
|
+
shuffleReadInByte: 'ShuffleReadInByte',
|
|
12250
|
+
shuffleWriteInByte: 'ShuffleWriteInByte',
|
|
12251
|
+
spillInByte: 'SpillInByte',
|
|
12252
|
+
startedTime: 'StartedTime',
|
|
12253
|
+
state: 'State',
|
|
12254
|
+
};
|
|
12255
|
+
}
|
|
12256
|
+
|
|
12257
|
+
static types(): { [key: string]: any } {
|
|
12258
|
+
return {
|
|
12259
|
+
accessDeniedDetail: 'string',
|
|
12260
|
+
appId: 'string',
|
|
12261
|
+
cpuUtilization: 'number',
|
|
12262
|
+
diagnosisInfoList: { 'type': 'array', 'itemType': Adb4MysqlSparkDiagnosisInfo },
|
|
12263
|
+
durationInMillis: 'number',
|
|
12264
|
+
JVMGcCostInMillis: 'number',
|
|
12265
|
+
peakMemoryInByte: 'number',
|
|
12266
|
+
requestId: 'string',
|
|
12267
|
+
shuffleReadInByte: 'number',
|
|
12268
|
+
shuffleWriteInByte: 'number',
|
|
12269
|
+
spillInByte: 'number',
|
|
12270
|
+
startedTime: 'number',
|
|
12271
|
+
state: 'string',
|
|
12272
|
+
};
|
|
12273
|
+
}
|
|
12274
|
+
|
|
12275
|
+
constructor(map?: { [key: string]: any }) {
|
|
12276
|
+
super(map);
|
|
12277
|
+
}
|
|
12278
|
+
}
|
|
12279
|
+
|
|
12280
|
+
export class DescribeSparkAppDiagnosisInfoResponse extends $tea.Model {
|
|
12281
|
+
headers?: { [key: string]: string };
|
|
12282
|
+
statusCode?: number;
|
|
12283
|
+
body?: DescribeSparkAppDiagnosisInfoResponseBody;
|
|
12284
|
+
static names(): { [key: string]: string } {
|
|
12285
|
+
return {
|
|
12286
|
+
headers: 'headers',
|
|
12287
|
+
statusCode: 'statusCode',
|
|
12288
|
+
body: 'body',
|
|
12289
|
+
};
|
|
12290
|
+
}
|
|
12291
|
+
|
|
12292
|
+
static types(): { [key: string]: any } {
|
|
12293
|
+
return {
|
|
12294
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
12295
|
+
statusCode: 'number',
|
|
12296
|
+
body: DescribeSparkAppDiagnosisInfoResponseBody,
|
|
12297
|
+
};
|
|
12298
|
+
}
|
|
12299
|
+
|
|
12300
|
+
constructor(map?: { [key: string]: any }) {
|
|
12301
|
+
super(map);
|
|
12302
|
+
}
|
|
12303
|
+
}
|
|
12304
|
+
|
|
12305
|
+
export class DescribeSparkAppTypeRequest extends $tea.Model {
|
|
12306
|
+
/**
|
|
12307
|
+
* @remarks
|
|
12308
|
+
* This parameter is required.
|
|
12309
|
+
*
|
|
12310
|
+
* @example
|
|
12311
|
+
* s202407161205sza4c07c1000****
|
|
12312
|
+
*/
|
|
12313
|
+
appId?: string;
|
|
12314
|
+
/**
|
|
12315
|
+
* @remarks
|
|
12316
|
+
* This parameter is required.
|
|
12317
|
+
*
|
|
12318
|
+
* @example
|
|
12319
|
+
* am-wz9w49b12933****
|
|
12320
|
+
*/
|
|
12321
|
+
DBClusterId?: string;
|
|
12322
|
+
/**
|
|
12323
|
+
* @remarks
|
|
12324
|
+
* This parameter is required.
|
|
12325
|
+
*
|
|
12326
|
+
* @example
|
|
12327
|
+
* cn-shenzhen
|
|
12328
|
+
*/
|
|
12329
|
+
regionId?: string;
|
|
12330
|
+
static names(): { [key: string]: string } {
|
|
12331
|
+
return {
|
|
12332
|
+
appId: 'AppId',
|
|
12333
|
+
DBClusterId: 'DBClusterId',
|
|
12334
|
+
regionId: 'RegionId',
|
|
12335
|
+
};
|
|
12336
|
+
}
|
|
12337
|
+
|
|
12338
|
+
static types(): { [key: string]: any } {
|
|
12339
|
+
return {
|
|
12340
|
+
appId: 'string',
|
|
12341
|
+
DBClusterId: 'string',
|
|
12342
|
+
regionId: 'string',
|
|
12343
|
+
};
|
|
12344
|
+
}
|
|
12345
|
+
|
|
12346
|
+
constructor(map?: { [key: string]: any }) {
|
|
12347
|
+
super(map);
|
|
12348
|
+
}
|
|
12349
|
+
}
|
|
12350
|
+
|
|
12351
|
+
export class DescribeSparkAppTypeResponseBody extends $tea.Model {
|
|
12352
|
+
/**
|
|
12353
|
+
* @example
|
|
12354
|
+
* {
|
|
12355
|
+
* "PolicyType": "AccountLevelIdentityBasedPolicy",
|
|
12356
|
+
* "AuthPrincipalOwnerId": "1*****************7",
|
|
12357
|
+
* "EncodedDiagnosticMessage": "AQIBIAAAAOPdwKY2QLOvgMEc7SkkoJfj1kvZwsaRqNYMh10Tv0wTe0fCzaCdrvgazfNb0EnJKETgXyhR+3BIQjx9WAqZryejBsp1Bl4qI5En/D9dEhcXAtKCxCmE2kZCiEzpy8BoEUt+bs0DmlaGWO5xkEpttypLIB4rUhDvZd+zwPg4EXk4KSSWSWsurxtqDkKEMshKlQFBTKvJcKwyhk62IeYly4hQ+5IpXjkh1GQXuDRCQ==",
|
|
12358
|
+
* "AuthPrincipalType": "SubUser",
|
|
12359
|
+
* "AuthPrincipalDisplayName": "2***************9",
|
|
12360
|
+
* "NoPermissionType": "ImplicitDeny",
|
|
12361
|
+
* "AuthAction": "adb:DescribeExcessivePrimaryKeys"
|
|
12362
|
+
* }
|
|
12363
|
+
*/
|
|
12364
|
+
accessDeniedDetail?: string;
|
|
12365
|
+
/**
|
|
12366
|
+
* @example
|
|
12367
|
+
* 596AF63B-8798-501E-BA06-CD2184D48A35
|
|
12368
|
+
*/
|
|
12369
|
+
requestId?: string;
|
|
12370
|
+
/**
|
|
12371
|
+
* @example
|
|
12372
|
+
* Batch
|
|
12373
|
+
*/
|
|
12374
|
+
type?: string;
|
|
12375
|
+
static names(): { [key: string]: string } {
|
|
12376
|
+
return {
|
|
12377
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
12378
|
+
requestId: 'RequestId',
|
|
12379
|
+
type: 'Type',
|
|
12380
|
+
};
|
|
12381
|
+
}
|
|
12382
|
+
|
|
12383
|
+
static types(): { [key: string]: any } {
|
|
12384
|
+
return {
|
|
12385
|
+
accessDeniedDetail: 'string',
|
|
12386
|
+
requestId: 'string',
|
|
12387
|
+
type: 'string',
|
|
12388
|
+
};
|
|
12389
|
+
}
|
|
12390
|
+
|
|
12391
|
+
constructor(map?: { [key: string]: any }) {
|
|
12392
|
+
super(map);
|
|
12393
|
+
}
|
|
12394
|
+
}
|
|
12395
|
+
|
|
12396
|
+
export class DescribeSparkAppTypeResponse extends $tea.Model {
|
|
12397
|
+
headers?: { [key: string]: string };
|
|
12398
|
+
statusCode?: number;
|
|
12399
|
+
body?: DescribeSparkAppTypeResponseBody;
|
|
12400
|
+
static names(): { [key: string]: string } {
|
|
12401
|
+
return {
|
|
12402
|
+
headers: 'headers',
|
|
12403
|
+
statusCode: 'statusCode',
|
|
12404
|
+
body: 'body',
|
|
12405
|
+
};
|
|
12406
|
+
}
|
|
12407
|
+
|
|
12408
|
+
static types(): { [key: string]: any } {
|
|
12409
|
+
return {
|
|
12410
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
12411
|
+
statusCode: 'number',
|
|
12412
|
+
body: DescribeSparkAppTypeResponseBody,
|
|
12413
|
+
};
|
|
12414
|
+
}
|
|
12415
|
+
|
|
12416
|
+
constructor(map?: { [key: string]: any }) {
|
|
12417
|
+
super(map);
|
|
12418
|
+
}
|
|
12419
|
+
}
|
|
12420
|
+
|
|
12113
12421
|
export class DescribeSparkCodeLogRequest extends $tea.Model {
|
|
12114
12422
|
/**
|
|
12115
12423
|
* @remarks
|
|
@@ -25147,6 +25455,7 @@ export class DescribeDBClusterPerformanceResponseBodyPerformancesSeries extends
|
|
|
25147
25455
|
* {instance_name: "am-***"}
|
|
25148
25456
|
*/
|
|
25149
25457
|
tags?: string;
|
|
25458
|
+
translateKey?: string;
|
|
25150
25459
|
/**
|
|
25151
25460
|
* @remarks
|
|
25152
25461
|
* The values of the performance metric at different points in time.
|
|
@@ -25156,6 +25465,7 @@ export class DescribeDBClusterPerformanceResponseBodyPerformancesSeries extends
|
|
|
25156
25465
|
return {
|
|
25157
25466
|
name: 'Name',
|
|
25158
25467
|
tags: 'Tags',
|
|
25468
|
+
translateKey: 'TranslateKey',
|
|
25159
25469
|
values: 'Values',
|
|
25160
25470
|
};
|
|
25161
25471
|
}
|
|
@@ -25164,6 +25474,7 @@ export class DescribeDBClusterPerformanceResponseBodyPerformancesSeries extends
|
|
|
25164
25474
|
return {
|
|
25165
25475
|
name: 'string',
|
|
25166
25476
|
tags: 'string',
|
|
25477
|
+
translateKey: 'string',
|
|
25167
25478
|
values: { 'type': 'array', 'itemType': 'string' },
|
|
25168
25479
|
};
|
|
25169
25480
|
}
|
|
@@ -35493,6 +35804,102 @@ export default class Client extends OpenApi {
|
|
|
35493
35804
|
return await this.describeSchemasWithOptions(request, runtime);
|
|
35494
35805
|
}
|
|
35495
35806
|
|
|
35807
|
+
/**
|
|
35808
|
+
* @param request - DescribeSparkAppDiagnosisInfoRequest
|
|
35809
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
35810
|
+
* @returns DescribeSparkAppDiagnosisInfoResponse
|
|
35811
|
+
*/
|
|
35812
|
+
async describeSparkAppDiagnosisInfoWithOptions(request: DescribeSparkAppDiagnosisInfoRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSparkAppDiagnosisInfoResponse> {
|
|
35813
|
+
Util.validateModel(request);
|
|
35814
|
+
let query = { };
|
|
35815
|
+
if (!Util.isUnset(request.appId)) {
|
|
35816
|
+
query["AppId"] = request.appId;
|
|
35817
|
+
}
|
|
35818
|
+
|
|
35819
|
+
if (!Util.isUnset(request.DBClusterId)) {
|
|
35820
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
35821
|
+
}
|
|
35822
|
+
|
|
35823
|
+
if (!Util.isUnset(request.language)) {
|
|
35824
|
+
query["Language"] = request.language;
|
|
35825
|
+
}
|
|
35826
|
+
|
|
35827
|
+
if (!Util.isUnset(request.regionId)) {
|
|
35828
|
+
query["RegionId"] = request.regionId;
|
|
35829
|
+
}
|
|
35830
|
+
|
|
35831
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
35832
|
+
query: OpenApiUtil.query(query),
|
|
35833
|
+
});
|
|
35834
|
+
let params = new $OpenApi.Params({
|
|
35835
|
+
action: "DescribeSparkAppDiagnosisInfo",
|
|
35836
|
+
version: "2021-12-01",
|
|
35837
|
+
protocol: "HTTPS",
|
|
35838
|
+
pathname: "/",
|
|
35839
|
+
method: "POST",
|
|
35840
|
+
authType: "AK",
|
|
35841
|
+
style: "RPC",
|
|
35842
|
+
reqBodyType: "formData",
|
|
35843
|
+
bodyType: "json",
|
|
35844
|
+
});
|
|
35845
|
+
return $tea.cast<DescribeSparkAppDiagnosisInfoResponse>(await this.callApi(params, req, runtime), new DescribeSparkAppDiagnosisInfoResponse({}));
|
|
35846
|
+
}
|
|
35847
|
+
|
|
35848
|
+
/**
|
|
35849
|
+
* @param request - DescribeSparkAppDiagnosisInfoRequest
|
|
35850
|
+
* @returns DescribeSparkAppDiagnosisInfoResponse
|
|
35851
|
+
*/
|
|
35852
|
+
async describeSparkAppDiagnosisInfo(request: DescribeSparkAppDiagnosisInfoRequest): Promise<DescribeSparkAppDiagnosisInfoResponse> {
|
|
35853
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
35854
|
+
return await this.describeSparkAppDiagnosisInfoWithOptions(request, runtime);
|
|
35855
|
+
}
|
|
35856
|
+
|
|
35857
|
+
/**
|
|
35858
|
+
* @param request - DescribeSparkAppTypeRequest
|
|
35859
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
35860
|
+
* @returns DescribeSparkAppTypeResponse
|
|
35861
|
+
*/
|
|
35862
|
+
async describeSparkAppTypeWithOptions(request: DescribeSparkAppTypeRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSparkAppTypeResponse> {
|
|
35863
|
+
Util.validateModel(request);
|
|
35864
|
+
let query = { };
|
|
35865
|
+
if (!Util.isUnset(request.appId)) {
|
|
35866
|
+
query["AppId"] = request.appId;
|
|
35867
|
+
}
|
|
35868
|
+
|
|
35869
|
+
if (!Util.isUnset(request.DBClusterId)) {
|
|
35870
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
35871
|
+
}
|
|
35872
|
+
|
|
35873
|
+
if (!Util.isUnset(request.regionId)) {
|
|
35874
|
+
query["RegionId"] = request.regionId;
|
|
35875
|
+
}
|
|
35876
|
+
|
|
35877
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
35878
|
+
query: OpenApiUtil.query(query),
|
|
35879
|
+
});
|
|
35880
|
+
let params = new $OpenApi.Params({
|
|
35881
|
+
action: "DescribeSparkAppType",
|
|
35882
|
+
version: "2021-12-01",
|
|
35883
|
+
protocol: "HTTPS",
|
|
35884
|
+
pathname: "/",
|
|
35885
|
+
method: "POST",
|
|
35886
|
+
authType: "AK",
|
|
35887
|
+
style: "RPC",
|
|
35888
|
+
reqBodyType: "formData",
|
|
35889
|
+
bodyType: "json",
|
|
35890
|
+
});
|
|
35891
|
+
return $tea.cast<DescribeSparkAppTypeResponse>(await this.callApi(params, req, runtime), new DescribeSparkAppTypeResponse({}));
|
|
35892
|
+
}
|
|
35893
|
+
|
|
35894
|
+
/**
|
|
35895
|
+
* @param request - DescribeSparkAppTypeRequest
|
|
35896
|
+
* @returns DescribeSparkAppTypeResponse
|
|
35897
|
+
*/
|
|
35898
|
+
async describeSparkAppType(request: DescribeSparkAppTypeRequest): Promise<DescribeSparkAppTypeResponse> {
|
|
35899
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
35900
|
+
return await this.describeSparkAppTypeWithOptions(request, runtime);
|
|
35901
|
+
}
|
|
35902
|
+
|
|
35496
35903
|
/**
|
|
35497
35904
|
* Queries the execution logs of Spark code.
|
|
35498
35905
|
*
|