@alicloud/dataworks-public20200518 4.4.9 → 4.4.10
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 +61 -0
- package/dist/client.js +167 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +217 -0
package/dist/client.d.ts
CHANGED
|
@@ -1094,6 +1094,7 @@ export declare class CreateFileRequest extends $tea.Model {
|
|
|
1094
1094
|
autoRerunTimes?: number;
|
|
1095
1095
|
connectionName?: string;
|
|
1096
1096
|
content?: string;
|
|
1097
|
+
createFolderIfNotExists?: boolean;
|
|
1097
1098
|
cronExpress?: string;
|
|
1098
1099
|
cycleType?: string;
|
|
1099
1100
|
dependentNodeIdList?: string;
|
|
@@ -1789,6 +1790,58 @@ export declare class CreateRemindResponse extends $tea.Model {
|
|
|
1789
1790
|
[key: string]: any;
|
|
1790
1791
|
});
|
|
1791
1792
|
}
|
|
1793
|
+
export declare class CreateResourceFileRequest extends $tea.Model {
|
|
1794
|
+
content?: string;
|
|
1795
|
+
fileDescription?: string;
|
|
1796
|
+
fileFolderPath?: string;
|
|
1797
|
+
fileName?: string;
|
|
1798
|
+
fileType?: number;
|
|
1799
|
+
originResourceName?: string;
|
|
1800
|
+
owner?: string;
|
|
1801
|
+
projectId?: number;
|
|
1802
|
+
registerToCalcEngine?: boolean;
|
|
1803
|
+
resourceFile?: string;
|
|
1804
|
+
storageURL?: string;
|
|
1805
|
+
uploadMode?: boolean;
|
|
1806
|
+
static names(): {
|
|
1807
|
+
[key: string]: string;
|
|
1808
|
+
};
|
|
1809
|
+
static types(): {
|
|
1810
|
+
[key: string]: any;
|
|
1811
|
+
};
|
|
1812
|
+
constructor(map?: {
|
|
1813
|
+
[key: string]: any;
|
|
1814
|
+
});
|
|
1815
|
+
}
|
|
1816
|
+
export declare class CreateResourceFileResponseBody extends $tea.Model {
|
|
1817
|
+
data?: number;
|
|
1818
|
+
requestId?: string;
|
|
1819
|
+
static names(): {
|
|
1820
|
+
[key: string]: string;
|
|
1821
|
+
};
|
|
1822
|
+
static types(): {
|
|
1823
|
+
[key: string]: any;
|
|
1824
|
+
};
|
|
1825
|
+
constructor(map?: {
|
|
1826
|
+
[key: string]: any;
|
|
1827
|
+
});
|
|
1828
|
+
}
|
|
1829
|
+
export declare class CreateResourceFileResponse extends $tea.Model {
|
|
1830
|
+
headers: {
|
|
1831
|
+
[key: string]: string;
|
|
1832
|
+
};
|
|
1833
|
+
statusCode: number;
|
|
1834
|
+
body: CreateResourceFileResponseBody;
|
|
1835
|
+
static names(): {
|
|
1836
|
+
[key: string]: string;
|
|
1837
|
+
};
|
|
1838
|
+
static types(): {
|
|
1839
|
+
[key: string]: any;
|
|
1840
|
+
};
|
|
1841
|
+
constructor(map?: {
|
|
1842
|
+
[key: string]: any;
|
|
1843
|
+
});
|
|
1844
|
+
}
|
|
1792
1845
|
export declare class CreateTableRequest extends $tea.Model {
|
|
1793
1846
|
appGuid?: string;
|
|
1794
1847
|
categoryId?: number;
|
|
@@ -1948,6 +2001,7 @@ export declare class CreateTableThemeResponse extends $tea.Model {
|
|
|
1948
2001
|
export declare class CreateUdfFileRequest extends $tea.Model {
|
|
1949
2002
|
className?: string;
|
|
1950
2003
|
cmdDescription?: string;
|
|
2004
|
+
createFolderIfNotExists?: boolean;
|
|
1951
2005
|
example?: string;
|
|
1952
2006
|
fileFolderPath?: string;
|
|
1953
2007
|
fileName?: string;
|
|
@@ -7699,9 +7753,13 @@ export declare class ListFileVersionsResponse extends $tea.Model {
|
|
|
7699
7753
|
});
|
|
7700
7754
|
}
|
|
7701
7755
|
export declare class ListFilesRequest extends $tea.Model {
|
|
7756
|
+
exactFileName?: string;
|
|
7702
7757
|
fileFolderPath?: string;
|
|
7758
|
+
fileIdIn?: string;
|
|
7703
7759
|
fileTypes?: string;
|
|
7704
7760
|
keyword?: string;
|
|
7761
|
+
needAbsoluteFolderPath?: boolean;
|
|
7762
|
+
needContent?: boolean;
|
|
7705
7763
|
nodeId?: number;
|
|
7706
7764
|
owner?: string;
|
|
7707
7765
|
pageNumber?: number;
|
|
@@ -16513,6 +16571,7 @@ export declare class ListFileVersionsResponseBodyData extends $tea.Model {
|
|
|
16513
16571
|
});
|
|
16514
16572
|
}
|
|
16515
16573
|
export declare class ListFilesResponseBodyDataFiles extends $tea.Model {
|
|
16574
|
+
absoluteFolderPath?: string;
|
|
16516
16575
|
autoParsing?: boolean;
|
|
16517
16576
|
bizId?: number;
|
|
16518
16577
|
businessId?: number;
|
|
@@ -18433,6 +18492,8 @@ export default class Client extends OpenApi {
|
|
|
18433
18492
|
createQualityRule(request: CreateQualityRuleRequest): Promise<CreateQualityRuleResponse>;
|
|
18434
18493
|
createRemindWithOptions(request: CreateRemindRequest, runtime: $Util.RuntimeOptions): Promise<CreateRemindResponse>;
|
|
18435
18494
|
createRemind(request: CreateRemindRequest): Promise<CreateRemindResponse>;
|
|
18495
|
+
createResourceFileWithOptions(request: CreateResourceFileRequest, runtime: $Util.RuntimeOptions): Promise<CreateResourceFileResponse>;
|
|
18496
|
+
createResourceFile(request: CreateResourceFileRequest): Promise<CreateResourceFileResponse>;
|
|
18436
18497
|
createTableWithOptions(request: CreateTableRequest, runtime: $Util.RuntimeOptions): Promise<CreateTableResponse>;
|
|
18437
18498
|
createTable(request: CreateTableRequest): Promise<CreateTableResponse>;
|
|
18438
18499
|
createTableLevelWithOptions(request: CreateTableLevelRequest, runtime: $Util.RuntimeOptions): Promise<CreateTableLevelResponse>;
|
package/dist/client.js
CHANGED
|
@@ -1565,6 +1565,7 @@ class CreateFileRequest extends $tea.Model {
|
|
|
1565
1565
|
autoRerunTimes: 'AutoRerunTimes',
|
|
1566
1566
|
connectionName: 'ConnectionName',
|
|
1567
1567
|
content: 'Content',
|
|
1568
|
+
createFolderIfNotExists: 'CreateFolderIfNotExists',
|
|
1568
1569
|
cronExpress: 'CronExpress',
|
|
1569
1570
|
cycleType: 'CycleType',
|
|
1570
1571
|
dependentNodeIdList: 'DependentNodeIdList',
|
|
@@ -1599,6 +1600,7 @@ class CreateFileRequest extends $tea.Model {
|
|
|
1599
1600
|
autoRerunTimes: 'number',
|
|
1600
1601
|
connectionName: 'string',
|
|
1601
1602
|
content: 'string',
|
|
1603
|
+
createFolderIfNotExists: 'boolean',
|
|
1602
1604
|
cronExpress: 'string',
|
|
1603
1605
|
cycleType: 'string',
|
|
1604
1606
|
dependentNodeIdList: 'string',
|
|
@@ -2585,6 +2587,82 @@ class CreateRemindResponse extends $tea.Model {
|
|
|
2585
2587
|
}
|
|
2586
2588
|
}
|
|
2587
2589
|
exports.CreateRemindResponse = CreateRemindResponse;
|
|
2590
|
+
class CreateResourceFileRequest extends $tea.Model {
|
|
2591
|
+
constructor(map) {
|
|
2592
|
+
super(map);
|
|
2593
|
+
}
|
|
2594
|
+
static names() {
|
|
2595
|
+
return {
|
|
2596
|
+
content: 'Content',
|
|
2597
|
+
fileDescription: 'FileDescription',
|
|
2598
|
+
fileFolderPath: 'FileFolderPath',
|
|
2599
|
+
fileName: 'FileName',
|
|
2600
|
+
fileType: 'FileType',
|
|
2601
|
+
originResourceName: 'OriginResourceName',
|
|
2602
|
+
owner: 'Owner',
|
|
2603
|
+
projectId: 'ProjectId',
|
|
2604
|
+
registerToCalcEngine: 'RegisterToCalcEngine',
|
|
2605
|
+
resourceFile: 'ResourceFile',
|
|
2606
|
+
storageURL: 'StorageURL',
|
|
2607
|
+
uploadMode: 'UploadMode',
|
|
2608
|
+
};
|
|
2609
|
+
}
|
|
2610
|
+
static types() {
|
|
2611
|
+
return {
|
|
2612
|
+
content: 'string',
|
|
2613
|
+
fileDescription: 'string',
|
|
2614
|
+
fileFolderPath: 'string',
|
|
2615
|
+
fileName: 'string',
|
|
2616
|
+
fileType: 'number',
|
|
2617
|
+
originResourceName: 'string',
|
|
2618
|
+
owner: 'string',
|
|
2619
|
+
projectId: 'number',
|
|
2620
|
+
registerToCalcEngine: 'boolean',
|
|
2621
|
+
resourceFile: 'string',
|
|
2622
|
+
storageURL: 'string',
|
|
2623
|
+
uploadMode: 'boolean',
|
|
2624
|
+
};
|
|
2625
|
+
}
|
|
2626
|
+
}
|
|
2627
|
+
exports.CreateResourceFileRequest = CreateResourceFileRequest;
|
|
2628
|
+
class CreateResourceFileResponseBody extends $tea.Model {
|
|
2629
|
+
constructor(map) {
|
|
2630
|
+
super(map);
|
|
2631
|
+
}
|
|
2632
|
+
static names() {
|
|
2633
|
+
return {
|
|
2634
|
+
data: 'Data',
|
|
2635
|
+
requestId: 'RequestId',
|
|
2636
|
+
};
|
|
2637
|
+
}
|
|
2638
|
+
static types() {
|
|
2639
|
+
return {
|
|
2640
|
+
data: 'number',
|
|
2641
|
+
requestId: 'string',
|
|
2642
|
+
};
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
exports.CreateResourceFileResponseBody = CreateResourceFileResponseBody;
|
|
2646
|
+
class CreateResourceFileResponse extends $tea.Model {
|
|
2647
|
+
constructor(map) {
|
|
2648
|
+
super(map);
|
|
2649
|
+
}
|
|
2650
|
+
static names() {
|
|
2651
|
+
return {
|
|
2652
|
+
headers: 'headers',
|
|
2653
|
+
statusCode: 'statusCode',
|
|
2654
|
+
body: 'body',
|
|
2655
|
+
};
|
|
2656
|
+
}
|
|
2657
|
+
static types() {
|
|
2658
|
+
return {
|
|
2659
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2660
|
+
statusCode: 'number',
|
|
2661
|
+
body: CreateResourceFileResponseBody,
|
|
2662
|
+
};
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
exports.CreateResourceFileResponse = CreateResourceFileResponse;
|
|
2588
2666
|
class CreateTableRequest extends $tea.Model {
|
|
2589
2667
|
constructor(map) {
|
|
2590
2668
|
super(map);
|
|
@@ -2821,6 +2899,7 @@ class CreateUdfFileRequest extends $tea.Model {
|
|
|
2821
2899
|
return {
|
|
2822
2900
|
className: 'ClassName',
|
|
2823
2901
|
cmdDescription: 'CmdDescription',
|
|
2902
|
+
createFolderIfNotExists: 'CreateFolderIfNotExists',
|
|
2824
2903
|
example: 'Example',
|
|
2825
2904
|
fileFolderPath: 'FileFolderPath',
|
|
2826
2905
|
fileName: 'FileName',
|
|
@@ -2837,6 +2916,7 @@ class CreateUdfFileRequest extends $tea.Model {
|
|
|
2837
2916
|
return {
|
|
2838
2917
|
className: 'string',
|
|
2839
2918
|
cmdDescription: 'string',
|
|
2919
|
+
createFolderIfNotExists: 'boolean',
|
|
2840
2920
|
example: 'string',
|
|
2841
2921
|
fileFolderPath: 'string',
|
|
2842
2922
|
fileName: 'string',
|
|
@@ -10841,9 +10921,13 @@ class ListFilesRequest extends $tea.Model {
|
|
|
10841
10921
|
}
|
|
10842
10922
|
static names() {
|
|
10843
10923
|
return {
|
|
10924
|
+
exactFileName: 'ExactFileName',
|
|
10844
10925
|
fileFolderPath: 'FileFolderPath',
|
|
10926
|
+
fileIdIn: 'FileIdIn',
|
|
10845
10927
|
fileTypes: 'FileTypes',
|
|
10846
10928
|
keyword: 'Keyword',
|
|
10929
|
+
needAbsoluteFolderPath: 'NeedAbsoluteFolderPath',
|
|
10930
|
+
needContent: 'NeedContent',
|
|
10847
10931
|
nodeId: 'NodeId',
|
|
10848
10932
|
owner: 'Owner',
|
|
10849
10933
|
pageNumber: 'PageNumber',
|
|
@@ -10855,9 +10939,13 @@ class ListFilesRequest extends $tea.Model {
|
|
|
10855
10939
|
}
|
|
10856
10940
|
static types() {
|
|
10857
10941
|
return {
|
|
10942
|
+
exactFileName: 'string',
|
|
10858
10943
|
fileFolderPath: 'string',
|
|
10944
|
+
fileIdIn: 'string',
|
|
10859
10945
|
fileTypes: 'string',
|
|
10860
10946
|
keyword: 'string',
|
|
10947
|
+
needAbsoluteFolderPath: 'boolean',
|
|
10948
|
+
needContent: 'boolean',
|
|
10861
10949
|
nodeId: 'number',
|
|
10862
10950
|
owner: 'string',
|
|
10863
10951
|
pageNumber: 'number',
|
|
@@ -23849,6 +23937,7 @@ class ListFilesResponseBodyDataFiles extends $tea.Model {
|
|
|
23849
23937
|
}
|
|
23850
23938
|
static names() {
|
|
23851
23939
|
return {
|
|
23940
|
+
absoluteFolderPath: 'AbsoluteFolderPath',
|
|
23852
23941
|
autoParsing: 'AutoParsing',
|
|
23853
23942
|
bizId: 'BizId',
|
|
23854
23943
|
businessId: 'BusinessId',
|
|
@@ -23874,6 +23963,7 @@ class ListFilesResponseBodyDataFiles extends $tea.Model {
|
|
|
23874
23963
|
}
|
|
23875
23964
|
static types() {
|
|
23876
23965
|
return {
|
|
23966
|
+
absoluteFolderPath: 'string',
|
|
23877
23967
|
autoParsing: 'boolean',
|
|
23878
23968
|
bizId: 'number',
|
|
23879
23969
|
businessId: 'number',
|
|
@@ -27445,6 +27535,9 @@ class Client extends openapi_client_1.default {
|
|
|
27445
27535
|
if (!tea_util_1.default.isUnset(request.content)) {
|
|
27446
27536
|
body["Content"] = request.content;
|
|
27447
27537
|
}
|
|
27538
|
+
if (!tea_util_1.default.isUnset(request.createFolderIfNotExists)) {
|
|
27539
|
+
body["CreateFolderIfNotExists"] = request.createFolderIfNotExists;
|
|
27540
|
+
}
|
|
27448
27541
|
if (!tea_util_1.default.isUnset(request.cronExpress)) {
|
|
27449
27542
|
body["CronExpress"] = request.cronExpress;
|
|
27450
27543
|
}
|
|
@@ -28233,6 +28326,65 @@ class Client extends openapi_client_1.default {
|
|
|
28233
28326
|
let runtime = new $Util.RuntimeOptions({});
|
|
28234
28327
|
return await this.createRemindWithOptions(request, runtime);
|
|
28235
28328
|
}
|
|
28329
|
+
async createResourceFileWithOptions(request, runtime) {
|
|
28330
|
+
tea_util_1.default.validateModel(request);
|
|
28331
|
+
let body = {};
|
|
28332
|
+
if (!tea_util_1.default.isUnset(request.content)) {
|
|
28333
|
+
body["Content"] = request.content;
|
|
28334
|
+
}
|
|
28335
|
+
if (!tea_util_1.default.isUnset(request.fileDescription)) {
|
|
28336
|
+
body["FileDescription"] = request.fileDescription;
|
|
28337
|
+
}
|
|
28338
|
+
if (!tea_util_1.default.isUnset(request.fileFolderPath)) {
|
|
28339
|
+
body["FileFolderPath"] = request.fileFolderPath;
|
|
28340
|
+
}
|
|
28341
|
+
if (!tea_util_1.default.isUnset(request.fileName)) {
|
|
28342
|
+
body["FileName"] = request.fileName;
|
|
28343
|
+
}
|
|
28344
|
+
if (!tea_util_1.default.isUnset(request.fileType)) {
|
|
28345
|
+
body["FileType"] = request.fileType;
|
|
28346
|
+
}
|
|
28347
|
+
if (!tea_util_1.default.isUnset(request.originResourceName)) {
|
|
28348
|
+
body["OriginResourceName"] = request.originResourceName;
|
|
28349
|
+
}
|
|
28350
|
+
if (!tea_util_1.default.isUnset(request.owner)) {
|
|
28351
|
+
body["Owner"] = request.owner;
|
|
28352
|
+
}
|
|
28353
|
+
if (!tea_util_1.default.isUnset(request.projectId)) {
|
|
28354
|
+
body["ProjectId"] = request.projectId;
|
|
28355
|
+
}
|
|
28356
|
+
if (!tea_util_1.default.isUnset(request.registerToCalcEngine)) {
|
|
28357
|
+
body["RegisterToCalcEngine"] = request.registerToCalcEngine;
|
|
28358
|
+
}
|
|
28359
|
+
if (!tea_util_1.default.isUnset(request.resourceFile)) {
|
|
28360
|
+
body["ResourceFile"] = request.resourceFile;
|
|
28361
|
+
}
|
|
28362
|
+
if (!tea_util_1.default.isUnset(request.storageURL)) {
|
|
28363
|
+
body["StorageURL"] = request.storageURL;
|
|
28364
|
+
}
|
|
28365
|
+
if (!tea_util_1.default.isUnset(request.uploadMode)) {
|
|
28366
|
+
body["UploadMode"] = request.uploadMode;
|
|
28367
|
+
}
|
|
28368
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
28369
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
28370
|
+
});
|
|
28371
|
+
let params = new $OpenApi.Params({
|
|
28372
|
+
action: "CreateResourceFile",
|
|
28373
|
+
version: "2020-05-18",
|
|
28374
|
+
protocol: "HTTPS",
|
|
28375
|
+
pathname: "/",
|
|
28376
|
+
method: "POST",
|
|
28377
|
+
authType: "AK",
|
|
28378
|
+
style: "RPC",
|
|
28379
|
+
reqBodyType: "formData",
|
|
28380
|
+
bodyType: "json",
|
|
28381
|
+
});
|
|
28382
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceFileResponse({}));
|
|
28383
|
+
}
|
|
28384
|
+
async createResourceFile(request) {
|
|
28385
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
28386
|
+
return await this.createResourceFileWithOptions(request, runtime);
|
|
28387
|
+
}
|
|
28236
28388
|
async createTableWithOptions(request, runtime) {
|
|
28237
28389
|
tea_util_1.default.validateModel(request);
|
|
28238
28390
|
let query = {};
|
|
@@ -28397,6 +28549,9 @@ class Client extends openapi_client_1.default {
|
|
|
28397
28549
|
if (!tea_util_1.default.isUnset(request.cmdDescription)) {
|
|
28398
28550
|
body["CmdDescription"] = request.cmdDescription;
|
|
28399
28551
|
}
|
|
28552
|
+
if (!tea_util_1.default.isUnset(request.createFolderIfNotExists)) {
|
|
28553
|
+
body["CreateFolderIfNotExists"] = request.createFolderIfNotExists;
|
|
28554
|
+
}
|
|
28400
28555
|
if (!tea_util_1.default.isUnset(request.example)) {
|
|
28401
28556
|
body["Example"] = request.example;
|
|
28402
28557
|
}
|
|
@@ -32767,15 +32922,27 @@ class Client extends openapi_client_1.default {
|
|
|
32767
32922
|
async listFilesWithOptions(request, runtime) {
|
|
32768
32923
|
tea_util_1.default.validateModel(request);
|
|
32769
32924
|
let body = {};
|
|
32925
|
+
if (!tea_util_1.default.isUnset(request.exactFileName)) {
|
|
32926
|
+
body["ExactFileName"] = request.exactFileName;
|
|
32927
|
+
}
|
|
32770
32928
|
if (!tea_util_1.default.isUnset(request.fileFolderPath)) {
|
|
32771
32929
|
body["FileFolderPath"] = request.fileFolderPath;
|
|
32772
32930
|
}
|
|
32931
|
+
if (!tea_util_1.default.isUnset(request.fileIdIn)) {
|
|
32932
|
+
body["FileIdIn"] = request.fileIdIn;
|
|
32933
|
+
}
|
|
32773
32934
|
if (!tea_util_1.default.isUnset(request.fileTypes)) {
|
|
32774
32935
|
body["FileTypes"] = request.fileTypes;
|
|
32775
32936
|
}
|
|
32776
32937
|
if (!tea_util_1.default.isUnset(request.keyword)) {
|
|
32777
32938
|
body["Keyword"] = request.keyword;
|
|
32778
32939
|
}
|
|
32940
|
+
if (!tea_util_1.default.isUnset(request.needAbsoluteFolderPath)) {
|
|
32941
|
+
body["NeedAbsoluteFolderPath"] = request.needAbsoluteFolderPath;
|
|
32942
|
+
}
|
|
32943
|
+
if (!tea_util_1.default.isUnset(request.needContent)) {
|
|
32944
|
+
body["NeedContent"] = request.needContent;
|
|
32945
|
+
}
|
|
32779
32946
|
if (!tea_util_1.default.isUnset(request.nodeId)) {
|
|
32780
32947
|
body["NodeId"] = request.nodeId;
|
|
32781
32948
|
}
|