@alicloud/dataworks-public20200518 4.4.2 → 4.4.3
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 +48 -0
- package/dist/client.js +96 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +118 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -18403,6 +18403,87 @@ export class StopInstanceResponse extends $tea.Model {
|
|
|
18403
18403
|
}
|
|
18404
18404
|
}
|
|
18405
18405
|
|
|
18406
|
+
export class SubmitDataServiceApiRequest extends $tea.Model {
|
|
18407
|
+
apiId?: number;
|
|
18408
|
+
projectId?: number;
|
|
18409
|
+
tenantId?: number;
|
|
18410
|
+
static names(): { [key: string]: string } {
|
|
18411
|
+
return {
|
|
18412
|
+
apiId: 'ApiId',
|
|
18413
|
+
projectId: 'ProjectId',
|
|
18414
|
+
tenantId: 'TenantId',
|
|
18415
|
+
};
|
|
18416
|
+
}
|
|
18417
|
+
|
|
18418
|
+
static types(): { [key: string]: any } {
|
|
18419
|
+
return {
|
|
18420
|
+
apiId: 'number',
|
|
18421
|
+
projectId: 'number',
|
|
18422
|
+
tenantId: 'number',
|
|
18423
|
+
};
|
|
18424
|
+
}
|
|
18425
|
+
|
|
18426
|
+
constructor(map?: { [key: string]: any }) {
|
|
18427
|
+
super(map);
|
|
18428
|
+
}
|
|
18429
|
+
}
|
|
18430
|
+
|
|
18431
|
+
export class SubmitDataServiceApiResponseBody extends $tea.Model {
|
|
18432
|
+
data?: boolean;
|
|
18433
|
+
errorCode?: string;
|
|
18434
|
+
httpStatusCode?: number;
|
|
18435
|
+
requestId?: string;
|
|
18436
|
+
success?: boolean;
|
|
18437
|
+
static names(): { [key: string]: string } {
|
|
18438
|
+
return {
|
|
18439
|
+
data: 'Data',
|
|
18440
|
+
errorCode: 'ErrorCode',
|
|
18441
|
+
httpStatusCode: 'HttpStatusCode',
|
|
18442
|
+
requestId: 'RequestId',
|
|
18443
|
+
success: 'Success',
|
|
18444
|
+
};
|
|
18445
|
+
}
|
|
18446
|
+
|
|
18447
|
+
static types(): { [key: string]: any } {
|
|
18448
|
+
return {
|
|
18449
|
+
data: 'boolean',
|
|
18450
|
+
errorCode: 'string',
|
|
18451
|
+
httpStatusCode: 'number',
|
|
18452
|
+
requestId: 'string',
|
|
18453
|
+
success: 'boolean',
|
|
18454
|
+
};
|
|
18455
|
+
}
|
|
18456
|
+
|
|
18457
|
+
constructor(map?: { [key: string]: any }) {
|
|
18458
|
+
super(map);
|
|
18459
|
+
}
|
|
18460
|
+
}
|
|
18461
|
+
|
|
18462
|
+
export class SubmitDataServiceApiResponse extends $tea.Model {
|
|
18463
|
+
headers: { [key: string]: string };
|
|
18464
|
+
statusCode: number;
|
|
18465
|
+
body: SubmitDataServiceApiResponseBody;
|
|
18466
|
+
static names(): { [key: string]: string } {
|
|
18467
|
+
return {
|
|
18468
|
+
headers: 'headers',
|
|
18469
|
+
statusCode: 'statusCode',
|
|
18470
|
+
body: 'body',
|
|
18471
|
+
};
|
|
18472
|
+
}
|
|
18473
|
+
|
|
18474
|
+
static types(): { [key: string]: any } {
|
|
18475
|
+
return {
|
|
18476
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
18477
|
+
statusCode: 'number',
|
|
18478
|
+
body: SubmitDataServiceApiResponseBody,
|
|
18479
|
+
};
|
|
18480
|
+
}
|
|
18481
|
+
|
|
18482
|
+
constructor(map?: { [key: string]: any }) {
|
|
18483
|
+
super(map);
|
|
18484
|
+
}
|
|
18485
|
+
}
|
|
18486
|
+
|
|
18406
18487
|
export class SubmitFileRequest extends $tea.Model {
|
|
18407
18488
|
comment?: string;
|
|
18408
18489
|
fileId?: number;
|
|
@@ -43278,6 +43359,43 @@ export default class Client extends OpenApi {
|
|
|
43278
43359
|
return await this.stopInstanceWithOptions(request, runtime);
|
|
43279
43360
|
}
|
|
43280
43361
|
|
|
43362
|
+
async submitDataServiceApiWithOptions(request: SubmitDataServiceApiRequest, runtime: $Util.RuntimeOptions): Promise<SubmitDataServiceApiResponse> {
|
|
43363
|
+
Util.validateModel(request);
|
|
43364
|
+
let body : {[key: string ]: any} = { };
|
|
43365
|
+
if (!Util.isUnset(request.apiId)) {
|
|
43366
|
+
body["ApiId"] = request.apiId;
|
|
43367
|
+
}
|
|
43368
|
+
|
|
43369
|
+
if (!Util.isUnset(request.projectId)) {
|
|
43370
|
+
body["ProjectId"] = request.projectId;
|
|
43371
|
+
}
|
|
43372
|
+
|
|
43373
|
+
if (!Util.isUnset(request.tenantId)) {
|
|
43374
|
+
body["TenantId"] = request.tenantId;
|
|
43375
|
+
}
|
|
43376
|
+
|
|
43377
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
43378
|
+
body: OpenApiUtil.parseToMap(body),
|
|
43379
|
+
});
|
|
43380
|
+
let params = new $OpenApi.Params({
|
|
43381
|
+
action: "SubmitDataServiceApi",
|
|
43382
|
+
version: "2020-05-18",
|
|
43383
|
+
protocol: "HTTPS",
|
|
43384
|
+
pathname: "/",
|
|
43385
|
+
method: "POST",
|
|
43386
|
+
authType: "AK",
|
|
43387
|
+
style: "RPC",
|
|
43388
|
+
reqBodyType: "formData",
|
|
43389
|
+
bodyType: "json",
|
|
43390
|
+
});
|
|
43391
|
+
return $tea.cast<SubmitDataServiceApiResponse>(await this.callApi(params, req, runtime), new SubmitDataServiceApiResponse({}));
|
|
43392
|
+
}
|
|
43393
|
+
|
|
43394
|
+
async submitDataServiceApi(request: SubmitDataServiceApiRequest): Promise<SubmitDataServiceApiResponse> {
|
|
43395
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
43396
|
+
return await this.submitDataServiceApiWithOptions(request, runtime);
|
|
43397
|
+
}
|
|
43398
|
+
|
|
43281
43399
|
async submitFileWithOptions(request: SubmitFileRequest, runtime: $Util.RuntimeOptions): Promise<SubmitFileResponse> {
|
|
43282
43400
|
Util.validateModel(request);
|
|
43283
43401
|
let body : {[key: string ]: any} = { };
|