@alicloud/dataworks-public20200518 4.3.13 → 4.3.14
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 +63 -1
- package/dist/client.js +131 -13
- package/dist/client.js.map +1 -1
- package/package.json +2 -3
- package/src/client.ts +160 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/dataworks-public20200518",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.4",
|
|
24
24
|
"@alicloud/oss-client": "^1.1.2",
|
|
25
|
-
"@alicloud/
|
|
26
|
-
"@alicloud/openplatform20191219": "1.1.3",
|
|
25
|
+
"@alicloud/openplatform20191219": "2.0.0",
|
|
27
26
|
"@alicloud/oss-util": "0.0.1",
|
|
28
27
|
"@alicloud/tea-fileform": "^1.0.0",
|
|
29
28
|
"@alicloud/openapi-client": "^0.4.1",
|
package/src/client.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import Util, * as $Util from '@alicloud/tea-util';
|
|
6
6
|
import OSS, * as $OSS from '@alicloud/oss-client';
|
|
7
|
-
import RPC, * as $RPC from '@alicloud/rpc-client';
|
|
8
7
|
import OpenPlatform, * as $OpenPlatform from '@alicloud/openplatform20191219';
|
|
9
8
|
import OSSUtil, * as $OSSUtil from '@alicloud/oss-util';
|
|
10
9
|
import FileForm, * as $FileForm from '@alicloud/tea-fileform';
|
|
@@ -1849,22 +1848,22 @@ export class CreateImportMigrationRequest extends $tea.Model {
|
|
|
1849
1848
|
}
|
|
1850
1849
|
|
|
1851
1850
|
export class CreateImportMigrationAdvanceRequest extends $tea.Model {
|
|
1852
|
-
packageFileObject: Readable;
|
|
1853
1851
|
calculateEngineMap?: string;
|
|
1854
1852
|
commitRule?: string;
|
|
1855
1853
|
description?: string;
|
|
1856
1854
|
name?: string;
|
|
1855
|
+
packageFileObject?: Readable;
|
|
1857
1856
|
packageType?: string;
|
|
1858
1857
|
projectId?: number;
|
|
1859
1858
|
resourceGroupMap?: string;
|
|
1860
1859
|
workspaceMap?: string;
|
|
1861
1860
|
static names(): { [key: string]: string } {
|
|
1862
1861
|
return {
|
|
1863
|
-
packageFileObject: 'PackageFileObject',
|
|
1864
1862
|
calculateEngineMap: 'CalculateEngineMap',
|
|
1865
1863
|
commitRule: 'CommitRule',
|
|
1866
1864
|
description: 'Description',
|
|
1867
1865
|
name: 'Name',
|
|
1866
|
+
packageFileObject: 'PackageFile',
|
|
1868
1867
|
packageType: 'PackageType',
|
|
1869
1868
|
projectId: 'ProjectId',
|
|
1870
1869
|
resourceGroupMap: 'ResourceGroupMap',
|
|
@@ -1874,11 +1873,11 @@ export class CreateImportMigrationAdvanceRequest extends $tea.Model {
|
|
|
1874
1873
|
|
|
1875
1874
|
static types(): { [key: string]: any } {
|
|
1876
1875
|
return {
|
|
1877
|
-
packageFileObject: 'Readable',
|
|
1878
1876
|
calculateEngineMap: 'string',
|
|
1879
1877
|
commitRule: 'string',
|
|
1880
1878
|
description: 'string',
|
|
1881
1879
|
name: 'string',
|
|
1880
|
+
packageFileObject: 'Readable',
|
|
1882
1881
|
packageType: 'string',
|
|
1883
1882
|
projectId: 'number',
|
|
1884
1883
|
resourceGroupMap: 'string',
|
|
@@ -10739,6 +10738,7 @@ export class ListAlertMessagesRequest extends $tea.Model {
|
|
|
10739
10738
|
alertMethods?: string;
|
|
10740
10739
|
alertRuleTypes?: string;
|
|
10741
10740
|
alertUser?: string;
|
|
10741
|
+
baselineId?: number;
|
|
10742
10742
|
beginTime?: string;
|
|
10743
10743
|
endTime?: string;
|
|
10744
10744
|
pageNumber?: number;
|
|
@@ -10749,6 +10749,7 @@ export class ListAlertMessagesRequest extends $tea.Model {
|
|
|
10749
10749
|
alertMethods: 'AlertMethods',
|
|
10750
10750
|
alertRuleTypes: 'AlertRuleTypes',
|
|
10751
10751
|
alertUser: 'AlertUser',
|
|
10752
|
+
baselineId: 'BaselineId',
|
|
10752
10753
|
beginTime: 'BeginTime',
|
|
10753
10754
|
endTime: 'EndTime',
|
|
10754
10755
|
pageNumber: 'PageNumber',
|
|
@@ -10762,6 +10763,7 @@ export class ListAlertMessagesRequest extends $tea.Model {
|
|
|
10762
10763
|
alertMethods: 'string',
|
|
10763
10764
|
alertRuleTypes: 'string',
|
|
10764
10765
|
alertUser: 'string',
|
|
10766
|
+
baselineId: 'number',
|
|
10765
10767
|
beginTime: 'string',
|
|
10766
10768
|
endTime: 'string',
|
|
10767
10769
|
pageNumber: 'number',
|
|
@@ -13278,6 +13280,7 @@ export class ListInstancesRequest extends $tea.Model {
|
|
|
13278
13280
|
programType?: string;
|
|
13279
13281
|
projectEnv?: string;
|
|
13280
13282
|
projectId?: number;
|
|
13283
|
+
status?: string;
|
|
13281
13284
|
static names(): { [key: string]: string } {
|
|
13282
13285
|
return {
|
|
13283
13286
|
beginBizdate: 'BeginBizdate',
|
|
@@ -13293,6 +13296,7 @@ export class ListInstancesRequest extends $tea.Model {
|
|
|
13293
13296
|
programType: 'ProgramType',
|
|
13294
13297
|
projectEnv: 'ProjectEnv',
|
|
13295
13298
|
projectId: 'ProjectId',
|
|
13299
|
+
status: 'Status',
|
|
13296
13300
|
};
|
|
13297
13301
|
}
|
|
13298
13302
|
|
|
@@ -13311,6 +13315,7 @@ export class ListInstancesRequest extends $tea.Model {
|
|
|
13311
13315
|
programType: 'string',
|
|
13312
13316
|
projectEnv: 'string',
|
|
13313
13317
|
projectId: 'number',
|
|
13318
|
+
status: 'string',
|
|
13314
13319
|
};
|
|
13315
13320
|
}
|
|
13316
13321
|
|
|
@@ -15586,6 +15591,75 @@ export class ListUsageForResourceGroupResponse extends $tea.Model {
|
|
|
15586
15591
|
}
|
|
15587
15592
|
}
|
|
15588
15593
|
|
|
15594
|
+
export class OfflineNodeRequest extends $tea.Model {
|
|
15595
|
+
nodeId?: number;
|
|
15596
|
+
projectId?: number;
|
|
15597
|
+
static names(): { [key: string]: string } {
|
|
15598
|
+
return {
|
|
15599
|
+
nodeId: 'NodeId',
|
|
15600
|
+
projectId: 'ProjectId',
|
|
15601
|
+
};
|
|
15602
|
+
}
|
|
15603
|
+
|
|
15604
|
+
static types(): { [key: string]: any } {
|
|
15605
|
+
return {
|
|
15606
|
+
nodeId: 'number',
|
|
15607
|
+
projectId: 'number',
|
|
15608
|
+
};
|
|
15609
|
+
}
|
|
15610
|
+
|
|
15611
|
+
constructor(map?: { [key: string]: any }) {
|
|
15612
|
+
super(map);
|
|
15613
|
+
}
|
|
15614
|
+
}
|
|
15615
|
+
|
|
15616
|
+
export class OfflineNodeResponseBody extends $tea.Model {
|
|
15617
|
+
requestId?: string;
|
|
15618
|
+
success?: string;
|
|
15619
|
+
static names(): { [key: string]: string } {
|
|
15620
|
+
return {
|
|
15621
|
+
requestId: 'RequestId',
|
|
15622
|
+
success: 'Success',
|
|
15623
|
+
};
|
|
15624
|
+
}
|
|
15625
|
+
|
|
15626
|
+
static types(): { [key: string]: any } {
|
|
15627
|
+
return {
|
|
15628
|
+
requestId: 'string',
|
|
15629
|
+
success: 'string',
|
|
15630
|
+
};
|
|
15631
|
+
}
|
|
15632
|
+
|
|
15633
|
+
constructor(map?: { [key: string]: any }) {
|
|
15634
|
+
super(map);
|
|
15635
|
+
}
|
|
15636
|
+
}
|
|
15637
|
+
|
|
15638
|
+
export class OfflineNodeResponse extends $tea.Model {
|
|
15639
|
+
headers: { [key: string]: string };
|
|
15640
|
+
statusCode: number;
|
|
15641
|
+
body: OfflineNodeResponseBody;
|
|
15642
|
+
static names(): { [key: string]: string } {
|
|
15643
|
+
return {
|
|
15644
|
+
headers: 'headers',
|
|
15645
|
+
statusCode: 'statusCode',
|
|
15646
|
+
body: 'body',
|
|
15647
|
+
};
|
|
15648
|
+
}
|
|
15649
|
+
|
|
15650
|
+
static types(): { [key: string]: any } {
|
|
15651
|
+
return {
|
|
15652
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
15653
|
+
statusCode: 'number',
|
|
15654
|
+
body: OfflineNodeResponseBody,
|
|
15655
|
+
};
|
|
15656
|
+
}
|
|
15657
|
+
|
|
15658
|
+
constructor(map?: { [key: string]: any }) {
|
|
15659
|
+
super(map);
|
|
15660
|
+
}
|
|
15661
|
+
}
|
|
15662
|
+
|
|
15589
15663
|
export class PublishDataServiceApiRequest extends $tea.Model {
|
|
15590
15664
|
apiId?: number;
|
|
15591
15665
|
projectId?: number;
|
|
@@ -20845,11 +20919,13 @@ export class GetDDLJobStatusResponseBodyData extends $tea.Model {
|
|
|
20845
20919
|
}
|
|
20846
20920
|
|
|
20847
20921
|
export class GetDISyncInstanceInfoResponseBodyDataSolutionInfoStepDetail extends $tea.Model {
|
|
20922
|
+
info?: string;
|
|
20848
20923
|
status?: string;
|
|
20849
20924
|
stepId?: number;
|
|
20850
20925
|
stepName?: string;
|
|
20851
20926
|
static names(): { [key: string]: string } {
|
|
20852
20927
|
return {
|
|
20928
|
+
info: 'Info',
|
|
20853
20929
|
status: 'Status',
|
|
20854
20930
|
stepId: 'StepId',
|
|
20855
20931
|
stepName: 'StepName',
|
|
@@ -20858,6 +20934,7 @@ export class GetDISyncInstanceInfoResponseBodyDataSolutionInfoStepDetail extends
|
|
|
20858
20934
|
|
|
20859
20935
|
static types(): { [key: string]: any } {
|
|
20860
20936
|
return {
|
|
20937
|
+
info: 'string',
|
|
20861
20938
|
status: 'string',
|
|
20862
20939
|
stepId: 'number',
|
|
20863
20940
|
stepName: 'string',
|
|
@@ -22217,6 +22294,31 @@ export class GetDataSourceMetaResponseBodyData extends $tea.Model {
|
|
|
22217
22294
|
}
|
|
22218
22295
|
}
|
|
22219
22296
|
|
|
22297
|
+
export class GetDeploymentResponseBodyDataDeployedItems extends $tea.Model {
|
|
22298
|
+
fileId?: number;
|
|
22299
|
+
fileVersion?: number;
|
|
22300
|
+
status?: number;
|
|
22301
|
+
static names(): { [key: string]: string } {
|
|
22302
|
+
return {
|
|
22303
|
+
fileId: 'FileId',
|
|
22304
|
+
fileVersion: 'FileVersion',
|
|
22305
|
+
status: 'Status',
|
|
22306
|
+
};
|
|
22307
|
+
}
|
|
22308
|
+
|
|
22309
|
+
static types(): { [key: string]: any } {
|
|
22310
|
+
return {
|
|
22311
|
+
fileId: 'number',
|
|
22312
|
+
fileVersion: 'number',
|
|
22313
|
+
status: 'number',
|
|
22314
|
+
};
|
|
22315
|
+
}
|
|
22316
|
+
|
|
22317
|
+
constructor(map?: { [key: string]: any }) {
|
|
22318
|
+
super(map);
|
|
22319
|
+
}
|
|
22320
|
+
}
|
|
22321
|
+
|
|
22220
22322
|
export class GetDeploymentResponseBodyDataDeployment extends $tea.Model {
|
|
22221
22323
|
checkingStatus?: number;
|
|
22222
22324
|
createTime?: number;
|
|
@@ -22264,15 +22366,18 @@ export class GetDeploymentResponseBodyDataDeployment extends $tea.Model {
|
|
|
22264
22366
|
}
|
|
22265
22367
|
|
|
22266
22368
|
export class GetDeploymentResponseBodyData extends $tea.Model {
|
|
22369
|
+
deployedItems?: GetDeploymentResponseBodyDataDeployedItems[];
|
|
22267
22370
|
deployment?: GetDeploymentResponseBodyDataDeployment;
|
|
22268
22371
|
static names(): { [key: string]: string } {
|
|
22269
22372
|
return {
|
|
22373
|
+
deployedItems: 'DeployedItems',
|
|
22270
22374
|
deployment: 'Deployment',
|
|
22271
22375
|
};
|
|
22272
22376
|
}
|
|
22273
22377
|
|
|
22274
22378
|
static types(): { [key: string]: any } {
|
|
22275
22379
|
return {
|
|
22380
|
+
deployedItems: { 'type': 'array', 'itemType': GetDeploymentResponseBodyDataDeployedItems },
|
|
22276
22381
|
deployment: GetDeploymentResponseBodyDataDeployment,
|
|
22277
22382
|
};
|
|
22278
22383
|
}
|
|
@@ -32688,7 +32793,7 @@ export default class Client extends OpenApi {
|
|
|
32688
32793
|
credentialType = "access_key";
|
|
32689
32794
|
}
|
|
32690
32795
|
|
|
32691
|
-
let authConfig = new $
|
|
32796
|
+
let authConfig = new $OpenApi.Config({
|
|
32692
32797
|
accessKeyId: accessKeyId,
|
|
32693
32798
|
accessKeySecret: accessKeySecret,
|
|
32694
32799
|
securityToken: securityToken,
|
|
@@ -32719,28 +32824,28 @@ export default class Client extends OpenApi {
|
|
|
32719
32824
|
OpenApiUtil.convert(request, createImportMigrationReq);
|
|
32720
32825
|
if (!Util.isUnset(request.packageFileObject)) {
|
|
32721
32826
|
authResponse = await authClient.authorizeFileUploadWithOptions(authRequest, runtime);
|
|
32722
|
-
ossConfig.accessKeyId = authResponse.accessKeyId;
|
|
32723
|
-
ossConfig.endpoint = OpenApiUtil.getEndpoint(authResponse.endpoint, authResponse.useAccelerate, this._endpointType);
|
|
32827
|
+
ossConfig.accessKeyId = authResponse.body.accessKeyId;
|
|
32828
|
+
ossConfig.endpoint = OpenApiUtil.getEndpoint(authResponse.body.endpoint, authResponse.body.useAccelerate, this._endpointType);
|
|
32724
32829
|
ossClient = new OSS(ossConfig);
|
|
32725
32830
|
fileObj = new $FileForm.FileField({
|
|
32726
|
-
filename: authResponse.objectKey,
|
|
32831
|
+
filename: authResponse.body.objectKey,
|
|
32727
32832
|
content: request.packageFileObject,
|
|
32728
32833
|
contentType: "",
|
|
32729
32834
|
});
|
|
32730
32835
|
ossHeader = new $OSS.PostObjectRequestHeader({
|
|
32731
|
-
accessKeyId: authResponse.accessKeyId,
|
|
32732
|
-
policy: authResponse.encodedPolicy,
|
|
32733
|
-
signature: authResponse.signature,
|
|
32734
|
-
key: authResponse.objectKey,
|
|
32836
|
+
accessKeyId: authResponse.body.accessKeyId,
|
|
32837
|
+
policy: authResponse.body.encodedPolicy,
|
|
32838
|
+
signature: authResponse.body.signature,
|
|
32839
|
+
key: authResponse.body.objectKey,
|
|
32735
32840
|
file: fileObj,
|
|
32736
32841
|
successActionStatus: "201",
|
|
32737
32842
|
});
|
|
32738
32843
|
uploadRequest = new $OSS.PostObjectRequest({
|
|
32739
|
-
bucketName: authResponse.bucket,
|
|
32844
|
+
bucketName: authResponse.body.bucket,
|
|
32740
32845
|
header: ossHeader,
|
|
32741
32846
|
});
|
|
32742
32847
|
await ossClient.postObject(uploadRequest, ossRuntime);
|
|
32743
|
-
createImportMigrationReq.packageFile = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
|
|
32848
|
+
createImportMigrationReq.packageFile = `http://${authResponse.body.bucket}.${authResponse.body.endpoint}/${authResponse.body.objectKey}`;
|
|
32744
32849
|
}
|
|
32745
32850
|
|
|
32746
32851
|
let createImportMigrationResp = await this.createImportMigrationWithOptions(createImportMigrationReq, runtime);
|
|
@@ -36849,6 +36954,10 @@ export default class Client extends OpenApi {
|
|
|
36849
36954
|
body["AlertUser"] = request.alertUser;
|
|
36850
36955
|
}
|
|
36851
36956
|
|
|
36957
|
+
if (!Util.isUnset(request.baselineId)) {
|
|
36958
|
+
body["BaselineId"] = request.baselineId;
|
|
36959
|
+
}
|
|
36960
|
+
|
|
36852
36961
|
if (!Util.isUnset(request.beginTime)) {
|
|
36853
36962
|
body["BeginTime"] = request.beginTime;
|
|
36854
36963
|
}
|
|
@@ -38186,6 +38295,10 @@ export default class Client extends OpenApi {
|
|
|
38186
38295
|
body["ProjectId"] = request.projectId;
|
|
38187
38296
|
}
|
|
38188
38297
|
|
|
38298
|
+
if (!Util.isUnset(request.status)) {
|
|
38299
|
+
body["Status"] = request.status;
|
|
38300
|
+
}
|
|
38301
|
+
|
|
38189
38302
|
let req = new $OpenApi.OpenApiRequest({
|
|
38190
38303
|
body: OpenApiUtil.parseToMap(body),
|
|
38191
38304
|
});
|
|
@@ -39283,6 +39396,39 @@ export default class Client extends OpenApi {
|
|
|
39283
39396
|
return await this.listUsageForResourceGroupWithOptions(request, runtime);
|
|
39284
39397
|
}
|
|
39285
39398
|
|
|
39399
|
+
async offlineNodeWithOptions(request: OfflineNodeRequest, runtime: $Util.RuntimeOptions): Promise<OfflineNodeResponse> {
|
|
39400
|
+
Util.validateModel(request);
|
|
39401
|
+
let body : {[key: string ]: any} = { };
|
|
39402
|
+
if (!Util.isUnset(request.nodeId)) {
|
|
39403
|
+
body["NodeId"] = request.nodeId;
|
|
39404
|
+
}
|
|
39405
|
+
|
|
39406
|
+
if (!Util.isUnset(request.projectId)) {
|
|
39407
|
+
body["ProjectId"] = request.projectId;
|
|
39408
|
+
}
|
|
39409
|
+
|
|
39410
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
39411
|
+
body: OpenApiUtil.parseToMap(body),
|
|
39412
|
+
});
|
|
39413
|
+
let params = new $OpenApi.Params({
|
|
39414
|
+
action: "OfflineNode",
|
|
39415
|
+
version: "2020-05-18",
|
|
39416
|
+
protocol: "HTTPS",
|
|
39417
|
+
pathname: "/",
|
|
39418
|
+
method: "POST",
|
|
39419
|
+
authType: "AK",
|
|
39420
|
+
style: "RPC",
|
|
39421
|
+
reqBodyType: "formData",
|
|
39422
|
+
bodyType: "json",
|
|
39423
|
+
});
|
|
39424
|
+
return $tea.cast<OfflineNodeResponse>(await this.callApi(params, req, runtime), new OfflineNodeResponse({}));
|
|
39425
|
+
}
|
|
39426
|
+
|
|
39427
|
+
async offlineNode(request: OfflineNodeRequest): Promise<OfflineNodeResponse> {
|
|
39428
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
39429
|
+
return await this.offlineNodeWithOptions(request, runtime);
|
|
39430
|
+
}
|
|
39431
|
+
|
|
39286
39432
|
async publishDataServiceApiWithOptions(request: PublishDataServiceApiRequest, runtime: $Util.RuntimeOptions): Promise<PublishDataServiceApiResponse> {
|
|
39287
39433
|
Util.validateModel(request);
|
|
39288
39434
|
let body : {[key: string ]: any} = { };
|