@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 CHANGED
@@ -9887,6 +9887,53 @@ export declare class RunTriggerNodeResponse extends $tea.Model {
9887
9887
  [key: string]: any;
9888
9888
  });
9889
9889
  }
9890
+ export declare class SaveDataServiceApiTestResultRequest extends $tea.Model {
9891
+ apiId?: number;
9892
+ autoGenerate?: boolean;
9893
+ failResultSample?: string;
9894
+ projectId?: number;
9895
+ resultSample?: string;
9896
+ static names(): {
9897
+ [key: string]: string;
9898
+ };
9899
+ static types(): {
9900
+ [key: string]: any;
9901
+ };
9902
+ constructor(map?: {
9903
+ [key: string]: any;
9904
+ });
9905
+ }
9906
+ export declare class SaveDataServiceApiTestResultResponseBody extends $tea.Model {
9907
+ data?: boolean;
9908
+ httpStatusCode?: number;
9909
+ requestId?: string;
9910
+ success?: boolean;
9911
+ static names(): {
9912
+ [key: string]: string;
9913
+ };
9914
+ static types(): {
9915
+ [key: string]: any;
9916
+ };
9917
+ constructor(map?: {
9918
+ [key: string]: any;
9919
+ });
9920
+ }
9921
+ export declare class SaveDataServiceApiTestResultResponse extends $tea.Model {
9922
+ headers: {
9923
+ [key: string]: string;
9924
+ };
9925
+ statusCode: number;
9926
+ body: SaveDataServiceApiTestResultResponseBody;
9927
+ static names(): {
9928
+ [key: string]: string;
9929
+ };
9930
+ static types(): {
9931
+ [key: string]: any;
9932
+ };
9933
+ constructor(map?: {
9934
+ [key: string]: any;
9935
+ });
9936
+ }
9890
9937
  export declare class ScanSensitiveDataRequest extends $tea.Model {
9891
9938
  data?: string;
9892
9939
  static names(): {
@@ -10303,6 +10350,52 @@ export declare class StopInstanceResponse extends $tea.Model {
10303
10350
  [key: string]: any;
10304
10351
  });
10305
10352
  }
10353
+ export declare class SubmitDataServiceApiRequest extends $tea.Model {
10354
+ apiId?: number;
10355
+ projectId?: number;
10356
+ tenantId?: number;
10357
+ static names(): {
10358
+ [key: string]: string;
10359
+ };
10360
+ static types(): {
10361
+ [key: string]: any;
10362
+ };
10363
+ constructor(map?: {
10364
+ [key: string]: any;
10365
+ });
10366
+ }
10367
+ export declare class SubmitDataServiceApiResponseBody extends $tea.Model {
10368
+ data?: boolean;
10369
+ errorCode?: string;
10370
+ httpStatusCode?: number;
10371
+ requestId?: string;
10372
+ success?: boolean;
10373
+ static names(): {
10374
+ [key: string]: string;
10375
+ };
10376
+ static types(): {
10377
+ [key: string]: any;
10378
+ };
10379
+ constructor(map?: {
10380
+ [key: string]: any;
10381
+ });
10382
+ }
10383
+ export declare class SubmitDataServiceApiResponse extends $tea.Model {
10384
+ headers: {
10385
+ [key: string]: string;
10386
+ };
10387
+ statusCode: number;
10388
+ body: SubmitDataServiceApiResponseBody;
10389
+ static names(): {
10390
+ [key: string]: string;
10391
+ };
10392
+ static types(): {
10393
+ [key: string]: any;
10394
+ };
10395
+ constructor(map?: {
10396
+ [key: string]: any;
10397
+ });
10398
+ }
10306
10399
  export declare class SubmitFileRequest extends $tea.Model {
10307
10400
  comment?: string;
10308
10401
  fileId?: number;
@@ -18887,6 +18980,8 @@ export default class Client extends OpenApi {
18887
18980
  runSmokeTest(request: RunSmokeTestRequest): Promise<RunSmokeTestResponse>;
18888
18981
  runTriggerNodeWithOptions(request: RunTriggerNodeRequest, runtime: $Util.RuntimeOptions): Promise<RunTriggerNodeResponse>;
18889
18982
  runTriggerNode(request: RunTriggerNodeRequest): Promise<RunTriggerNodeResponse>;
18983
+ saveDataServiceApiTestResultWithOptions(request: SaveDataServiceApiTestResultRequest, runtime: $Util.RuntimeOptions): Promise<SaveDataServiceApiTestResultResponse>;
18984
+ saveDataServiceApiTestResult(request: SaveDataServiceApiTestResultRequest): Promise<SaveDataServiceApiTestResultResponse>;
18890
18985
  scanSensitiveDataWithOptions(request: ScanSensitiveDataRequest, runtime: $Util.RuntimeOptions): Promise<ScanSensitiveDataResponse>;
18891
18986
  scanSensitiveData(request: ScanSensitiveDataRequest): Promise<ScanSensitiveDataResponse>;
18892
18987
  /**
@@ -18944,6 +19039,8 @@ export default class Client extends OpenApi {
18944
19039
  stopDISyncInstance(request: StopDISyncInstanceRequest): Promise<StopDISyncInstanceResponse>;
18945
19040
  stopInstanceWithOptions(request: StopInstanceRequest, runtime: $Util.RuntimeOptions): Promise<StopInstanceResponse>;
18946
19041
  stopInstance(request: StopInstanceRequest): Promise<StopInstanceResponse>;
19042
+ submitDataServiceApiWithOptions(request: SubmitDataServiceApiRequest, runtime: $Util.RuntimeOptions): Promise<SubmitDataServiceApiResponse>;
19043
+ submitDataServiceApi(request: SubmitDataServiceApiRequest): Promise<SubmitDataServiceApiResponse>;
18947
19044
  submitFileWithOptions(request: SubmitFileRequest, runtime: $Util.RuntimeOptions): Promise<SubmitFileResponse>;
18948
19045
  submitFile(request: SubmitFileRequest): Promise<SubmitFileResponse>;
18949
19046
  suspendInstanceWithOptions(request: SuspendInstanceRequest, runtime: $Util.RuntimeOptions): Promise<SuspendInstanceResponse>;
package/dist/client.js CHANGED
@@ -13901,6 +13901,72 @@ class RunTriggerNodeResponse extends $tea.Model {
13901
13901
  }
13902
13902
  }
13903
13903
  exports.RunTriggerNodeResponse = RunTriggerNodeResponse;
13904
+ class SaveDataServiceApiTestResultRequest extends $tea.Model {
13905
+ constructor(map) {
13906
+ super(map);
13907
+ }
13908
+ static names() {
13909
+ return {
13910
+ apiId: 'ApiId',
13911
+ autoGenerate: 'AutoGenerate',
13912
+ failResultSample: 'FailResultSample',
13913
+ projectId: 'ProjectId',
13914
+ resultSample: 'ResultSample',
13915
+ };
13916
+ }
13917
+ static types() {
13918
+ return {
13919
+ apiId: 'number',
13920
+ autoGenerate: 'boolean',
13921
+ failResultSample: 'string',
13922
+ projectId: 'number',
13923
+ resultSample: 'string',
13924
+ };
13925
+ }
13926
+ }
13927
+ exports.SaveDataServiceApiTestResultRequest = SaveDataServiceApiTestResultRequest;
13928
+ class SaveDataServiceApiTestResultResponseBody extends $tea.Model {
13929
+ constructor(map) {
13930
+ super(map);
13931
+ }
13932
+ static names() {
13933
+ return {
13934
+ data: 'Data',
13935
+ httpStatusCode: 'HttpStatusCode',
13936
+ requestId: 'RequestId',
13937
+ success: 'Success',
13938
+ };
13939
+ }
13940
+ static types() {
13941
+ return {
13942
+ data: 'boolean',
13943
+ httpStatusCode: 'number',
13944
+ requestId: 'string',
13945
+ success: 'boolean',
13946
+ };
13947
+ }
13948
+ }
13949
+ exports.SaveDataServiceApiTestResultResponseBody = SaveDataServiceApiTestResultResponseBody;
13950
+ class SaveDataServiceApiTestResultResponse extends $tea.Model {
13951
+ constructor(map) {
13952
+ super(map);
13953
+ }
13954
+ static names() {
13955
+ return {
13956
+ headers: 'headers',
13957
+ statusCode: 'statusCode',
13958
+ body: 'body',
13959
+ };
13960
+ }
13961
+ static types() {
13962
+ return {
13963
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
13964
+ statusCode: 'number',
13965
+ body: SaveDataServiceApiTestResultResponseBody,
13966
+ };
13967
+ }
13968
+ }
13969
+ exports.SaveDataServiceApiTestResultResponse = SaveDataServiceApiTestResultResponse;
13904
13970
  class ScanSensitiveDataRequest extends $tea.Model {
13905
13971
  constructor(map) {
13906
13972
  super(map);
@@ -14473,6 +14539,70 @@ class StopInstanceResponse extends $tea.Model {
14473
14539
  }
14474
14540
  }
14475
14541
  exports.StopInstanceResponse = StopInstanceResponse;
14542
+ class SubmitDataServiceApiRequest extends $tea.Model {
14543
+ constructor(map) {
14544
+ super(map);
14545
+ }
14546
+ static names() {
14547
+ return {
14548
+ apiId: 'ApiId',
14549
+ projectId: 'ProjectId',
14550
+ tenantId: 'TenantId',
14551
+ };
14552
+ }
14553
+ static types() {
14554
+ return {
14555
+ apiId: 'number',
14556
+ projectId: 'number',
14557
+ tenantId: 'number',
14558
+ };
14559
+ }
14560
+ }
14561
+ exports.SubmitDataServiceApiRequest = SubmitDataServiceApiRequest;
14562
+ class SubmitDataServiceApiResponseBody extends $tea.Model {
14563
+ constructor(map) {
14564
+ super(map);
14565
+ }
14566
+ static names() {
14567
+ return {
14568
+ data: 'Data',
14569
+ errorCode: 'ErrorCode',
14570
+ httpStatusCode: 'HttpStatusCode',
14571
+ requestId: 'RequestId',
14572
+ success: 'Success',
14573
+ };
14574
+ }
14575
+ static types() {
14576
+ return {
14577
+ data: 'boolean',
14578
+ errorCode: 'string',
14579
+ httpStatusCode: 'number',
14580
+ requestId: 'string',
14581
+ success: 'boolean',
14582
+ };
14583
+ }
14584
+ }
14585
+ exports.SubmitDataServiceApiResponseBody = SubmitDataServiceApiResponseBody;
14586
+ class SubmitDataServiceApiResponse extends $tea.Model {
14587
+ constructor(map) {
14588
+ super(map);
14589
+ }
14590
+ static names() {
14591
+ return {
14592
+ headers: 'headers',
14593
+ statusCode: 'statusCode',
14594
+ body: 'body',
14595
+ };
14596
+ }
14597
+ static types() {
14598
+ return {
14599
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
14600
+ statusCode: 'number',
14601
+ body: SubmitDataServiceApiResponseBody,
14602
+ };
14603
+ }
14604
+ }
14605
+ exports.SubmitDataServiceApiResponse = SubmitDataServiceApiResponse;
14476
14606
  class SubmitFileRequest extends $tea.Model {
14477
14607
  constructor(map) {
14478
14608
  super(map);
@@ -34110,6 +34240,44 @@ class Client extends openapi_client_1.default {
34110
34240
  let runtime = new $Util.RuntimeOptions({});
34111
34241
  return await this.runTriggerNodeWithOptions(request, runtime);
34112
34242
  }
34243
+ async saveDataServiceApiTestResultWithOptions(request, runtime) {
34244
+ tea_util_1.default.validateModel(request);
34245
+ let body = {};
34246
+ if (!tea_util_1.default.isUnset(request.apiId)) {
34247
+ body["ApiId"] = request.apiId;
34248
+ }
34249
+ if (!tea_util_1.default.isUnset(request.autoGenerate)) {
34250
+ body["AutoGenerate"] = request.autoGenerate;
34251
+ }
34252
+ if (!tea_util_1.default.isUnset(request.failResultSample)) {
34253
+ body["FailResultSample"] = request.failResultSample;
34254
+ }
34255
+ if (!tea_util_1.default.isUnset(request.projectId)) {
34256
+ body["ProjectId"] = request.projectId;
34257
+ }
34258
+ if (!tea_util_1.default.isUnset(request.resultSample)) {
34259
+ body["ResultSample"] = request.resultSample;
34260
+ }
34261
+ let req = new $OpenApi.OpenApiRequest({
34262
+ body: openapi_util_1.default.parseToMap(body),
34263
+ });
34264
+ let params = new $OpenApi.Params({
34265
+ action: "SaveDataServiceApiTestResult",
34266
+ version: "2020-05-18",
34267
+ protocol: "HTTPS",
34268
+ pathname: "/",
34269
+ method: "POST",
34270
+ authType: "AK",
34271
+ style: "RPC",
34272
+ reqBodyType: "formData",
34273
+ bodyType: "json",
34274
+ });
34275
+ return $tea.cast(await this.callApi(params, req, runtime), new SaveDataServiceApiTestResultResponse({}));
34276
+ }
34277
+ async saveDataServiceApiTestResult(request) {
34278
+ let runtime = new $Util.RuntimeOptions({});
34279
+ return await this.saveDataServiceApiTestResultWithOptions(request, runtime);
34280
+ }
34113
34281
  async scanSensitiveDataWithOptions(request, runtime) {
34114
34282
  tea_util_1.default.validateModel(request);
34115
34283
  let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
@@ -34444,6 +34612,38 @@ class Client extends openapi_client_1.default {
34444
34612
  let runtime = new $Util.RuntimeOptions({});
34445
34613
  return await this.stopInstanceWithOptions(request, runtime);
34446
34614
  }
34615
+ async submitDataServiceApiWithOptions(request, runtime) {
34616
+ tea_util_1.default.validateModel(request);
34617
+ let body = {};
34618
+ if (!tea_util_1.default.isUnset(request.apiId)) {
34619
+ body["ApiId"] = request.apiId;
34620
+ }
34621
+ if (!tea_util_1.default.isUnset(request.projectId)) {
34622
+ body["ProjectId"] = request.projectId;
34623
+ }
34624
+ if (!tea_util_1.default.isUnset(request.tenantId)) {
34625
+ body["TenantId"] = request.tenantId;
34626
+ }
34627
+ let req = new $OpenApi.OpenApiRequest({
34628
+ body: openapi_util_1.default.parseToMap(body),
34629
+ });
34630
+ let params = new $OpenApi.Params({
34631
+ action: "SubmitDataServiceApi",
34632
+ version: "2020-05-18",
34633
+ protocol: "HTTPS",
34634
+ pathname: "/",
34635
+ method: "POST",
34636
+ authType: "AK",
34637
+ style: "RPC",
34638
+ reqBodyType: "formData",
34639
+ bodyType: "json",
34640
+ });
34641
+ return $tea.cast(await this.callApi(params, req, runtime), new SubmitDataServiceApiResponse({}));
34642
+ }
34643
+ async submitDataServiceApi(request) {
34644
+ let runtime = new $Util.RuntimeOptions({});
34645
+ return await this.submitDataServiceApiWithOptions(request, runtime);
34646
+ }
34447
34647
  async submitFileWithOptions(request, runtime) {
34448
34648
  tea_util_1.default.validateModel(request);
34449
34649
  let body = {};