@alicloud/dataworks-public20200518 4.4.2 → 4.4.4
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 +97 -0
- package/dist/client.js +200 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +247 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -17680,6 +17680,90 @@ export class RunTriggerNodeResponse extends $tea.Model {
|
|
|
17680
17680
|
}
|
|
17681
17681
|
}
|
|
17682
17682
|
|
|
17683
|
+
export class SaveDataServiceApiTestResultRequest extends $tea.Model {
|
|
17684
|
+
apiId?: number;
|
|
17685
|
+
autoGenerate?: boolean;
|
|
17686
|
+
failResultSample?: string;
|
|
17687
|
+
projectId?: number;
|
|
17688
|
+
resultSample?: string;
|
|
17689
|
+
static names(): { [key: string]: string } {
|
|
17690
|
+
return {
|
|
17691
|
+
apiId: 'ApiId',
|
|
17692
|
+
autoGenerate: 'AutoGenerate',
|
|
17693
|
+
failResultSample: 'FailResultSample',
|
|
17694
|
+
projectId: 'ProjectId',
|
|
17695
|
+
resultSample: 'ResultSample',
|
|
17696
|
+
};
|
|
17697
|
+
}
|
|
17698
|
+
|
|
17699
|
+
static types(): { [key: string]: any } {
|
|
17700
|
+
return {
|
|
17701
|
+
apiId: 'number',
|
|
17702
|
+
autoGenerate: 'boolean',
|
|
17703
|
+
failResultSample: 'string',
|
|
17704
|
+
projectId: 'number',
|
|
17705
|
+
resultSample: 'string',
|
|
17706
|
+
};
|
|
17707
|
+
}
|
|
17708
|
+
|
|
17709
|
+
constructor(map?: { [key: string]: any }) {
|
|
17710
|
+
super(map);
|
|
17711
|
+
}
|
|
17712
|
+
}
|
|
17713
|
+
|
|
17714
|
+
export class SaveDataServiceApiTestResultResponseBody extends $tea.Model {
|
|
17715
|
+
data?: boolean;
|
|
17716
|
+
httpStatusCode?: number;
|
|
17717
|
+
requestId?: string;
|
|
17718
|
+
success?: boolean;
|
|
17719
|
+
static names(): { [key: string]: string } {
|
|
17720
|
+
return {
|
|
17721
|
+
data: 'Data',
|
|
17722
|
+
httpStatusCode: 'HttpStatusCode',
|
|
17723
|
+
requestId: 'RequestId',
|
|
17724
|
+
success: 'Success',
|
|
17725
|
+
};
|
|
17726
|
+
}
|
|
17727
|
+
|
|
17728
|
+
static types(): { [key: string]: any } {
|
|
17729
|
+
return {
|
|
17730
|
+
data: 'boolean',
|
|
17731
|
+
httpStatusCode: 'number',
|
|
17732
|
+
requestId: 'string',
|
|
17733
|
+
success: 'boolean',
|
|
17734
|
+
};
|
|
17735
|
+
}
|
|
17736
|
+
|
|
17737
|
+
constructor(map?: { [key: string]: any }) {
|
|
17738
|
+
super(map);
|
|
17739
|
+
}
|
|
17740
|
+
}
|
|
17741
|
+
|
|
17742
|
+
export class SaveDataServiceApiTestResultResponse extends $tea.Model {
|
|
17743
|
+
headers: { [key: string]: string };
|
|
17744
|
+
statusCode: number;
|
|
17745
|
+
body: SaveDataServiceApiTestResultResponseBody;
|
|
17746
|
+
static names(): { [key: string]: string } {
|
|
17747
|
+
return {
|
|
17748
|
+
headers: 'headers',
|
|
17749
|
+
statusCode: 'statusCode',
|
|
17750
|
+
body: 'body',
|
|
17751
|
+
};
|
|
17752
|
+
}
|
|
17753
|
+
|
|
17754
|
+
static types(): { [key: string]: any } {
|
|
17755
|
+
return {
|
|
17756
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
17757
|
+
statusCode: 'number',
|
|
17758
|
+
body: SaveDataServiceApiTestResultResponseBody,
|
|
17759
|
+
};
|
|
17760
|
+
}
|
|
17761
|
+
|
|
17762
|
+
constructor(map?: { [key: string]: any }) {
|
|
17763
|
+
super(map);
|
|
17764
|
+
}
|
|
17765
|
+
}
|
|
17766
|
+
|
|
17683
17767
|
export class ScanSensitiveDataRequest extends $tea.Model {
|
|
17684
17768
|
data?: string;
|
|
17685
17769
|
static names(): { [key: string]: string } {
|
|
@@ -18403,6 +18487,87 @@ export class StopInstanceResponse extends $tea.Model {
|
|
|
18403
18487
|
}
|
|
18404
18488
|
}
|
|
18405
18489
|
|
|
18490
|
+
export class SubmitDataServiceApiRequest extends $tea.Model {
|
|
18491
|
+
apiId?: number;
|
|
18492
|
+
projectId?: number;
|
|
18493
|
+
tenantId?: number;
|
|
18494
|
+
static names(): { [key: string]: string } {
|
|
18495
|
+
return {
|
|
18496
|
+
apiId: 'ApiId',
|
|
18497
|
+
projectId: 'ProjectId',
|
|
18498
|
+
tenantId: 'TenantId',
|
|
18499
|
+
};
|
|
18500
|
+
}
|
|
18501
|
+
|
|
18502
|
+
static types(): { [key: string]: any } {
|
|
18503
|
+
return {
|
|
18504
|
+
apiId: 'number',
|
|
18505
|
+
projectId: 'number',
|
|
18506
|
+
tenantId: 'number',
|
|
18507
|
+
};
|
|
18508
|
+
}
|
|
18509
|
+
|
|
18510
|
+
constructor(map?: { [key: string]: any }) {
|
|
18511
|
+
super(map);
|
|
18512
|
+
}
|
|
18513
|
+
}
|
|
18514
|
+
|
|
18515
|
+
export class SubmitDataServiceApiResponseBody extends $tea.Model {
|
|
18516
|
+
data?: boolean;
|
|
18517
|
+
errorCode?: string;
|
|
18518
|
+
httpStatusCode?: number;
|
|
18519
|
+
requestId?: string;
|
|
18520
|
+
success?: boolean;
|
|
18521
|
+
static names(): { [key: string]: string } {
|
|
18522
|
+
return {
|
|
18523
|
+
data: 'Data',
|
|
18524
|
+
errorCode: 'ErrorCode',
|
|
18525
|
+
httpStatusCode: 'HttpStatusCode',
|
|
18526
|
+
requestId: 'RequestId',
|
|
18527
|
+
success: 'Success',
|
|
18528
|
+
};
|
|
18529
|
+
}
|
|
18530
|
+
|
|
18531
|
+
static types(): { [key: string]: any } {
|
|
18532
|
+
return {
|
|
18533
|
+
data: 'boolean',
|
|
18534
|
+
errorCode: 'string',
|
|
18535
|
+
httpStatusCode: 'number',
|
|
18536
|
+
requestId: 'string',
|
|
18537
|
+
success: 'boolean',
|
|
18538
|
+
};
|
|
18539
|
+
}
|
|
18540
|
+
|
|
18541
|
+
constructor(map?: { [key: string]: any }) {
|
|
18542
|
+
super(map);
|
|
18543
|
+
}
|
|
18544
|
+
}
|
|
18545
|
+
|
|
18546
|
+
export class SubmitDataServiceApiResponse extends $tea.Model {
|
|
18547
|
+
headers: { [key: string]: string };
|
|
18548
|
+
statusCode: number;
|
|
18549
|
+
body: SubmitDataServiceApiResponseBody;
|
|
18550
|
+
static names(): { [key: string]: string } {
|
|
18551
|
+
return {
|
|
18552
|
+
headers: 'headers',
|
|
18553
|
+
statusCode: 'statusCode',
|
|
18554
|
+
body: 'body',
|
|
18555
|
+
};
|
|
18556
|
+
}
|
|
18557
|
+
|
|
18558
|
+
static types(): { [key: string]: any } {
|
|
18559
|
+
return {
|
|
18560
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
18561
|
+
statusCode: 'number',
|
|
18562
|
+
body: SubmitDataServiceApiResponseBody,
|
|
18563
|
+
};
|
|
18564
|
+
}
|
|
18565
|
+
|
|
18566
|
+
constructor(map?: { [key: string]: any }) {
|
|
18567
|
+
super(map);
|
|
18568
|
+
}
|
|
18569
|
+
}
|
|
18570
|
+
|
|
18406
18571
|
export class SubmitFileRequest extends $tea.Model {
|
|
18407
18572
|
comment?: string;
|
|
18408
18573
|
fileId?: number;
|
|
@@ -42898,6 +43063,51 @@ export default class Client extends OpenApi {
|
|
|
42898
43063
|
return await this.runTriggerNodeWithOptions(request, runtime);
|
|
42899
43064
|
}
|
|
42900
43065
|
|
|
43066
|
+
async saveDataServiceApiTestResultWithOptions(request: SaveDataServiceApiTestResultRequest, runtime: $Util.RuntimeOptions): Promise<SaveDataServiceApiTestResultResponse> {
|
|
43067
|
+
Util.validateModel(request);
|
|
43068
|
+
let body : {[key: string ]: any} = { };
|
|
43069
|
+
if (!Util.isUnset(request.apiId)) {
|
|
43070
|
+
body["ApiId"] = request.apiId;
|
|
43071
|
+
}
|
|
43072
|
+
|
|
43073
|
+
if (!Util.isUnset(request.autoGenerate)) {
|
|
43074
|
+
body["AutoGenerate"] = request.autoGenerate;
|
|
43075
|
+
}
|
|
43076
|
+
|
|
43077
|
+
if (!Util.isUnset(request.failResultSample)) {
|
|
43078
|
+
body["FailResultSample"] = request.failResultSample;
|
|
43079
|
+
}
|
|
43080
|
+
|
|
43081
|
+
if (!Util.isUnset(request.projectId)) {
|
|
43082
|
+
body["ProjectId"] = request.projectId;
|
|
43083
|
+
}
|
|
43084
|
+
|
|
43085
|
+
if (!Util.isUnset(request.resultSample)) {
|
|
43086
|
+
body["ResultSample"] = request.resultSample;
|
|
43087
|
+
}
|
|
43088
|
+
|
|
43089
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
43090
|
+
body: OpenApiUtil.parseToMap(body),
|
|
43091
|
+
});
|
|
43092
|
+
let params = new $OpenApi.Params({
|
|
43093
|
+
action: "SaveDataServiceApiTestResult",
|
|
43094
|
+
version: "2020-05-18",
|
|
43095
|
+
protocol: "HTTPS",
|
|
43096
|
+
pathname: "/",
|
|
43097
|
+
method: "POST",
|
|
43098
|
+
authType: "AK",
|
|
43099
|
+
style: "RPC",
|
|
43100
|
+
reqBodyType: "formData",
|
|
43101
|
+
bodyType: "json",
|
|
43102
|
+
});
|
|
43103
|
+
return $tea.cast<SaveDataServiceApiTestResultResponse>(await this.callApi(params, req, runtime), new SaveDataServiceApiTestResultResponse({}));
|
|
43104
|
+
}
|
|
43105
|
+
|
|
43106
|
+
async saveDataServiceApiTestResult(request: SaveDataServiceApiTestResultRequest): Promise<SaveDataServiceApiTestResultResponse> {
|
|
43107
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
43108
|
+
return await this.saveDataServiceApiTestResultWithOptions(request, runtime);
|
|
43109
|
+
}
|
|
43110
|
+
|
|
42901
43111
|
async scanSensitiveDataWithOptions(request: ScanSensitiveDataRequest, runtime: $Util.RuntimeOptions): Promise<ScanSensitiveDataResponse> {
|
|
42902
43112
|
Util.validateModel(request);
|
|
42903
43113
|
let query = OpenApiUtil.query(Util.toMap(request));
|
|
@@ -43278,6 +43488,43 @@ export default class Client extends OpenApi {
|
|
|
43278
43488
|
return await this.stopInstanceWithOptions(request, runtime);
|
|
43279
43489
|
}
|
|
43280
43490
|
|
|
43491
|
+
async submitDataServiceApiWithOptions(request: SubmitDataServiceApiRequest, runtime: $Util.RuntimeOptions): Promise<SubmitDataServiceApiResponse> {
|
|
43492
|
+
Util.validateModel(request);
|
|
43493
|
+
let body : {[key: string ]: any} = { };
|
|
43494
|
+
if (!Util.isUnset(request.apiId)) {
|
|
43495
|
+
body["ApiId"] = request.apiId;
|
|
43496
|
+
}
|
|
43497
|
+
|
|
43498
|
+
if (!Util.isUnset(request.projectId)) {
|
|
43499
|
+
body["ProjectId"] = request.projectId;
|
|
43500
|
+
}
|
|
43501
|
+
|
|
43502
|
+
if (!Util.isUnset(request.tenantId)) {
|
|
43503
|
+
body["TenantId"] = request.tenantId;
|
|
43504
|
+
}
|
|
43505
|
+
|
|
43506
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
43507
|
+
body: OpenApiUtil.parseToMap(body),
|
|
43508
|
+
});
|
|
43509
|
+
let params = new $OpenApi.Params({
|
|
43510
|
+
action: "SubmitDataServiceApi",
|
|
43511
|
+
version: "2020-05-18",
|
|
43512
|
+
protocol: "HTTPS",
|
|
43513
|
+
pathname: "/",
|
|
43514
|
+
method: "POST",
|
|
43515
|
+
authType: "AK",
|
|
43516
|
+
style: "RPC",
|
|
43517
|
+
reqBodyType: "formData",
|
|
43518
|
+
bodyType: "json",
|
|
43519
|
+
});
|
|
43520
|
+
return $tea.cast<SubmitDataServiceApiResponse>(await this.callApi(params, req, runtime), new SubmitDataServiceApiResponse({}));
|
|
43521
|
+
}
|
|
43522
|
+
|
|
43523
|
+
async submitDataServiceApi(request: SubmitDataServiceApiRequest): Promise<SubmitDataServiceApiResponse> {
|
|
43524
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
43525
|
+
return await this.submitDataServiceApiWithOptions(request, runtime);
|
|
43526
|
+
}
|
|
43527
|
+
|
|
43281
43528
|
async submitFileWithOptions(request: SubmitFileRequest, runtime: $Util.RuntimeOptions): Promise<SubmitFileResponse> {
|
|
43282
43529
|
Util.validateModel(request);
|
|
43283
43530
|
let body : {[key: string ]: any} = { };
|