@alicloud/dataworks-public20200518 4.4.3 → 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 +49 -0
- package/dist/client.js +104 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +129 -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 } {
|
|
@@ -42979,6 +43063,51 @@ export default class Client extends OpenApi {
|
|
|
42979
43063
|
return await this.runTriggerNodeWithOptions(request, runtime);
|
|
42980
43064
|
}
|
|
42981
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
|
+
|
|
42982
43111
|
async scanSensitiveDataWithOptions(request: ScanSensitiveDataRequest, runtime: $Util.RuntimeOptions): Promise<ScanSensitiveDataResponse> {
|
|
42983
43112
|
Util.validateModel(request);
|
|
42984
43113
|
let query = OpenApiUtil.query(Util.toMap(request));
|