@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 CHANGED
@@ -10303,6 +10303,52 @@ export declare class StopInstanceResponse extends $tea.Model {
10303
10303
  [key: string]: any;
10304
10304
  });
10305
10305
  }
10306
+ export declare class SubmitDataServiceApiRequest extends $tea.Model {
10307
+ apiId?: number;
10308
+ projectId?: number;
10309
+ tenantId?: number;
10310
+ static names(): {
10311
+ [key: string]: string;
10312
+ };
10313
+ static types(): {
10314
+ [key: string]: any;
10315
+ };
10316
+ constructor(map?: {
10317
+ [key: string]: any;
10318
+ });
10319
+ }
10320
+ export declare class SubmitDataServiceApiResponseBody extends $tea.Model {
10321
+ data?: boolean;
10322
+ errorCode?: string;
10323
+ httpStatusCode?: number;
10324
+ requestId?: string;
10325
+ success?: boolean;
10326
+ static names(): {
10327
+ [key: string]: string;
10328
+ };
10329
+ static types(): {
10330
+ [key: string]: any;
10331
+ };
10332
+ constructor(map?: {
10333
+ [key: string]: any;
10334
+ });
10335
+ }
10336
+ export declare class SubmitDataServiceApiResponse extends $tea.Model {
10337
+ headers: {
10338
+ [key: string]: string;
10339
+ };
10340
+ statusCode: number;
10341
+ body: SubmitDataServiceApiResponseBody;
10342
+ static names(): {
10343
+ [key: string]: string;
10344
+ };
10345
+ static types(): {
10346
+ [key: string]: any;
10347
+ };
10348
+ constructor(map?: {
10349
+ [key: string]: any;
10350
+ });
10351
+ }
10306
10352
  export declare class SubmitFileRequest extends $tea.Model {
10307
10353
  comment?: string;
10308
10354
  fileId?: number;
@@ -18944,6 +18990,8 @@ export default class Client extends OpenApi {
18944
18990
  stopDISyncInstance(request: StopDISyncInstanceRequest): Promise<StopDISyncInstanceResponse>;
18945
18991
  stopInstanceWithOptions(request: StopInstanceRequest, runtime: $Util.RuntimeOptions): Promise<StopInstanceResponse>;
18946
18992
  stopInstance(request: StopInstanceRequest): Promise<StopInstanceResponse>;
18993
+ submitDataServiceApiWithOptions(request: SubmitDataServiceApiRequest, runtime: $Util.RuntimeOptions): Promise<SubmitDataServiceApiResponse>;
18994
+ submitDataServiceApi(request: SubmitDataServiceApiRequest): Promise<SubmitDataServiceApiResponse>;
18947
18995
  submitFileWithOptions(request: SubmitFileRequest, runtime: $Util.RuntimeOptions): Promise<SubmitFileResponse>;
18948
18996
  submitFile(request: SubmitFileRequest): Promise<SubmitFileResponse>;
18949
18997
  suspendInstanceWithOptions(request: SuspendInstanceRequest, runtime: $Util.RuntimeOptions): Promise<SuspendInstanceResponse>;
package/dist/client.js CHANGED
@@ -14473,6 +14473,70 @@ class StopInstanceResponse extends $tea.Model {
14473
14473
  }
14474
14474
  }
14475
14475
  exports.StopInstanceResponse = StopInstanceResponse;
14476
+ class SubmitDataServiceApiRequest extends $tea.Model {
14477
+ constructor(map) {
14478
+ super(map);
14479
+ }
14480
+ static names() {
14481
+ return {
14482
+ apiId: 'ApiId',
14483
+ projectId: 'ProjectId',
14484
+ tenantId: 'TenantId',
14485
+ };
14486
+ }
14487
+ static types() {
14488
+ return {
14489
+ apiId: 'number',
14490
+ projectId: 'number',
14491
+ tenantId: 'number',
14492
+ };
14493
+ }
14494
+ }
14495
+ exports.SubmitDataServiceApiRequest = SubmitDataServiceApiRequest;
14496
+ class SubmitDataServiceApiResponseBody extends $tea.Model {
14497
+ constructor(map) {
14498
+ super(map);
14499
+ }
14500
+ static names() {
14501
+ return {
14502
+ data: 'Data',
14503
+ errorCode: 'ErrorCode',
14504
+ httpStatusCode: 'HttpStatusCode',
14505
+ requestId: 'RequestId',
14506
+ success: 'Success',
14507
+ };
14508
+ }
14509
+ static types() {
14510
+ return {
14511
+ data: 'boolean',
14512
+ errorCode: 'string',
14513
+ httpStatusCode: 'number',
14514
+ requestId: 'string',
14515
+ success: 'boolean',
14516
+ };
14517
+ }
14518
+ }
14519
+ exports.SubmitDataServiceApiResponseBody = SubmitDataServiceApiResponseBody;
14520
+ class SubmitDataServiceApiResponse extends $tea.Model {
14521
+ constructor(map) {
14522
+ super(map);
14523
+ }
14524
+ static names() {
14525
+ return {
14526
+ headers: 'headers',
14527
+ statusCode: 'statusCode',
14528
+ body: 'body',
14529
+ };
14530
+ }
14531
+ static types() {
14532
+ return {
14533
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
14534
+ statusCode: 'number',
14535
+ body: SubmitDataServiceApiResponseBody,
14536
+ };
14537
+ }
14538
+ }
14539
+ exports.SubmitDataServiceApiResponse = SubmitDataServiceApiResponse;
14476
14540
  class SubmitFileRequest extends $tea.Model {
14477
14541
  constructor(map) {
14478
14542
  super(map);
@@ -34444,6 +34508,38 @@ class Client extends openapi_client_1.default {
34444
34508
  let runtime = new $Util.RuntimeOptions({});
34445
34509
  return await this.stopInstanceWithOptions(request, runtime);
34446
34510
  }
34511
+ async submitDataServiceApiWithOptions(request, runtime) {
34512
+ tea_util_1.default.validateModel(request);
34513
+ let body = {};
34514
+ if (!tea_util_1.default.isUnset(request.apiId)) {
34515
+ body["ApiId"] = request.apiId;
34516
+ }
34517
+ if (!tea_util_1.default.isUnset(request.projectId)) {
34518
+ body["ProjectId"] = request.projectId;
34519
+ }
34520
+ if (!tea_util_1.default.isUnset(request.tenantId)) {
34521
+ body["TenantId"] = request.tenantId;
34522
+ }
34523
+ let req = new $OpenApi.OpenApiRequest({
34524
+ body: openapi_util_1.default.parseToMap(body),
34525
+ });
34526
+ let params = new $OpenApi.Params({
34527
+ action: "SubmitDataServiceApi",
34528
+ version: "2020-05-18",
34529
+ protocol: "HTTPS",
34530
+ pathname: "/",
34531
+ method: "POST",
34532
+ authType: "AK",
34533
+ style: "RPC",
34534
+ reqBodyType: "formData",
34535
+ bodyType: "json",
34536
+ });
34537
+ return $tea.cast(await this.callApi(params, req, runtime), new SubmitDataServiceApiResponse({}));
34538
+ }
34539
+ async submitDataServiceApi(request) {
34540
+ let runtime = new $Util.RuntimeOptions({});
34541
+ return await this.submitDataServiceApiWithOptions(request, runtime);
34542
+ }
34447
34543
  async submitFileWithOptions(request, runtime) {
34448
34544
  tea_util_1.default.validateModel(request);
34449
34545
  let body = {};