@alicloud/dataworks-public20200518 4.3.19 → 4.3.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/dataworks-public20200518",
3
- "version": "4.3.19",
3
+ "version": "4.3.21",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -793,21 +793,21 @@ export class CreateBaselineRequest extends $tea.Model {
793
793
  alertMarginThreshold?: number;
794
794
  baselineName?: string;
795
795
  baselineType?: string;
796
+ nodeIds?: string;
796
797
  overtimeSettings?: CreateBaselineRequestOvertimeSettings[];
797
798
  owner?: string;
798
799
  priority?: number;
799
800
  projectId?: number;
800
- taskIds?: string;
801
801
  static names(): { [key: string]: string } {
802
802
  return {
803
803
  alertMarginThreshold: 'AlertMarginThreshold',
804
804
  baselineName: 'BaselineName',
805
805
  baselineType: 'BaselineType',
806
+ nodeIds: 'NodeIds',
806
807
  overtimeSettings: 'OvertimeSettings',
807
808
  owner: 'Owner',
808
809
  priority: 'Priority',
809
810
  projectId: 'ProjectId',
810
- taskIds: 'TaskIds',
811
811
  };
812
812
  }
813
813
 
@@ -816,11 +816,11 @@ export class CreateBaselineRequest extends $tea.Model {
816
816
  alertMarginThreshold: 'number',
817
817
  baselineName: 'string',
818
818
  baselineType: 'string',
819
+ nodeIds: 'string',
819
820
  overtimeSettings: { 'type': 'array', 'itemType': CreateBaselineRequestOvertimeSettings },
820
821
  owner: 'string',
821
822
  priority: 'number',
822
823
  projectId: 'number',
823
- taskIds: 'string',
824
824
  };
825
825
  }
826
826
 
@@ -16534,6 +16534,87 @@ export class ListTopicsResponse extends $tea.Model {
16534
16534
  }
16535
16535
  }
16536
16536
 
16537
+ export class MountDirectoryRequest extends $tea.Model {
16538
+ targetId?: string;
16539
+ targetType?: string;
16540
+ static names(): { [key: string]: string } {
16541
+ return {
16542
+ targetId: 'TargetId',
16543
+ targetType: 'TargetType',
16544
+ };
16545
+ }
16546
+
16547
+ static types(): { [key: string]: any } {
16548
+ return {
16549
+ targetId: 'string',
16550
+ targetType: 'string',
16551
+ };
16552
+ }
16553
+
16554
+ constructor(map?: { [key: string]: any }) {
16555
+ super(map);
16556
+ }
16557
+ }
16558
+
16559
+ export class MountDirectoryResponseBody extends $tea.Model {
16560
+ data?: number;
16561
+ errorCode?: string;
16562
+ errorMessage?: string;
16563
+ httpStatusCode?: number;
16564
+ requestId?: string;
16565
+ success?: boolean;
16566
+ static names(): { [key: string]: string } {
16567
+ return {
16568
+ data: 'Data',
16569
+ errorCode: 'ErrorCode',
16570
+ errorMessage: 'ErrorMessage',
16571
+ httpStatusCode: 'HttpStatusCode',
16572
+ requestId: 'RequestId',
16573
+ success: 'Success',
16574
+ };
16575
+ }
16576
+
16577
+ static types(): { [key: string]: any } {
16578
+ return {
16579
+ data: 'number',
16580
+ errorCode: 'string',
16581
+ errorMessage: 'string',
16582
+ httpStatusCode: 'number',
16583
+ requestId: 'string',
16584
+ success: 'boolean',
16585
+ };
16586
+ }
16587
+
16588
+ constructor(map?: { [key: string]: any }) {
16589
+ super(map);
16590
+ }
16591
+ }
16592
+
16593
+ export class MountDirectoryResponse extends $tea.Model {
16594
+ headers: { [key: string]: string };
16595
+ statusCode: number;
16596
+ body: MountDirectoryResponseBody;
16597
+ static names(): { [key: string]: string } {
16598
+ return {
16599
+ headers: 'headers',
16600
+ statusCode: 'statusCode',
16601
+ body: 'body',
16602
+ };
16603
+ }
16604
+
16605
+ static types(): { [key: string]: any } {
16606
+ return {
16607
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
16608
+ statusCode: 'number',
16609
+ body: MountDirectoryResponseBody,
16610
+ };
16611
+ }
16612
+
16613
+ constructor(map?: { [key: string]: any }) {
16614
+ super(map);
16615
+ }
16616
+ }
16617
+
16537
16618
  export class OfflineNodeRequest extends $tea.Model {
16538
16619
  nodeId?: number;
16539
16620
  projectId?: number;
@@ -18850,6 +18931,87 @@ export class TopTenErrorTimesInstanceResponse extends $tea.Model {
18850
18931
  }
18851
18932
  }
18852
18933
 
18934
+ export class UmountDirectoryRequest extends $tea.Model {
18935
+ targetId?: string;
18936
+ targetType?: string;
18937
+ static names(): { [key: string]: string } {
18938
+ return {
18939
+ targetId: 'TargetId',
18940
+ targetType: 'TargetType',
18941
+ };
18942
+ }
18943
+
18944
+ static types(): { [key: string]: any } {
18945
+ return {
18946
+ targetId: 'string',
18947
+ targetType: 'string',
18948
+ };
18949
+ }
18950
+
18951
+ constructor(map?: { [key: string]: any }) {
18952
+ super(map);
18953
+ }
18954
+ }
18955
+
18956
+ export class UmountDirectoryResponseBody extends $tea.Model {
18957
+ data?: number;
18958
+ errorCode?: string;
18959
+ errorMessage?: string;
18960
+ httpStatusCode?: number;
18961
+ requestId?: string;
18962
+ success?: boolean;
18963
+ static names(): { [key: string]: string } {
18964
+ return {
18965
+ data: 'Data',
18966
+ errorCode: 'ErrorCode',
18967
+ errorMessage: 'ErrorMessage',
18968
+ httpStatusCode: 'HttpStatusCode',
18969
+ requestId: 'RequestId',
18970
+ success: 'Success',
18971
+ };
18972
+ }
18973
+
18974
+ static types(): { [key: string]: any } {
18975
+ return {
18976
+ data: 'number',
18977
+ errorCode: 'string',
18978
+ errorMessage: 'string',
18979
+ httpStatusCode: 'number',
18980
+ requestId: 'string',
18981
+ success: 'boolean',
18982
+ };
18983
+ }
18984
+
18985
+ constructor(map?: { [key: string]: any }) {
18986
+ super(map);
18987
+ }
18988
+ }
18989
+
18990
+ export class UmountDirectoryResponse extends $tea.Model {
18991
+ headers: { [key: string]: string };
18992
+ statusCode: number;
18993
+ body: UmountDirectoryResponseBody;
18994
+ static names(): { [key: string]: string } {
18995
+ return {
18996
+ headers: 'headers',
18997
+ statusCode: 'statusCode',
18998
+ body: 'body',
18999
+ };
19000
+ }
19001
+
19002
+ static types(): { [key: string]: any } {
19003
+ return {
19004
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
19005
+ statusCode: 'number',
19006
+ body: UmountDirectoryResponseBody,
19007
+ };
19008
+ }
19009
+
19010
+ constructor(map?: { [key: string]: any }) {
19011
+ super(map);
19012
+ }
19013
+ }
19014
+
18853
19015
  export class UpdateBaselineRequest extends $tea.Model {
18854
19016
  alertEnabled?: boolean;
18855
19017
  alertMarginThreshold?: number;
@@ -18858,12 +19020,12 @@ export class UpdateBaselineRequest extends $tea.Model {
18858
19020
  baselineName?: string;
18859
19021
  baselineType?: string;
18860
19022
  enabled?: boolean;
19023
+ nodeIds?: string;
18861
19024
  overtimeSettings?: UpdateBaselineRequestOvertimeSettings[];
18862
19025
  owner?: string;
18863
19026
  priority?: number;
18864
19027
  projectId?: number;
18865
- removeTaskIds?: string;
18866
- taskIds?: string;
19028
+ removeNodeIds?: string;
18867
19029
  static names(): { [key: string]: string } {
18868
19030
  return {
18869
19031
  alertEnabled: 'AlertEnabled',
@@ -18873,12 +19035,12 @@ export class UpdateBaselineRequest extends $tea.Model {
18873
19035
  baselineName: 'BaselineName',
18874
19036
  baselineType: 'BaselineType',
18875
19037
  enabled: 'Enabled',
19038
+ nodeIds: 'NodeIds',
18876
19039
  overtimeSettings: 'OvertimeSettings',
18877
19040
  owner: 'Owner',
18878
19041
  priority: 'Priority',
18879
19042
  projectId: 'ProjectId',
18880
- removeTaskIds: 'RemoveTaskIds',
18881
- taskIds: 'TaskIds',
19043
+ removeNodeIds: 'RemoveNodeIds',
18882
19044
  };
18883
19045
  }
18884
19046
 
@@ -18891,12 +19053,12 @@ export class UpdateBaselineRequest extends $tea.Model {
18891
19053
  baselineName: 'string',
18892
19054
  baselineType: 'string',
18893
19055
  enabled: 'boolean',
19056
+ nodeIds: 'string',
18894
19057
  overtimeSettings: { 'type': 'array', 'itemType': UpdateBaselineRequestOvertimeSettings },
18895
19058
  owner: 'string',
18896
19059
  priority: 'number',
18897
19060
  projectId: 'number',
18898
- removeTaskIds: 'string',
18899
- taskIds: 'string',
19061
+ removeNodeIds: 'string',
18900
19062
  };
18901
19063
  }
18902
19064
 
@@ -18913,12 +19075,12 @@ export class UpdateBaselineShrinkRequest extends $tea.Model {
18913
19075
  baselineName?: string;
18914
19076
  baselineType?: string;
18915
19077
  enabled?: boolean;
19078
+ nodeIds?: string;
18916
19079
  overtimeSettingsShrink?: string;
18917
19080
  owner?: string;
18918
19081
  priority?: number;
18919
19082
  projectId?: number;
18920
- removeTaskIds?: string;
18921
- taskIds?: string;
19083
+ removeNodeIds?: string;
18922
19084
  static names(): { [key: string]: string } {
18923
19085
  return {
18924
19086
  alertEnabled: 'AlertEnabled',
@@ -18928,12 +19090,12 @@ export class UpdateBaselineShrinkRequest extends $tea.Model {
18928
19090
  baselineName: 'BaselineName',
18929
19091
  baselineType: 'BaselineType',
18930
19092
  enabled: 'Enabled',
19093
+ nodeIds: 'NodeIds',
18931
19094
  overtimeSettingsShrink: 'OvertimeSettings',
18932
19095
  owner: 'Owner',
18933
19096
  priority: 'Priority',
18934
19097
  projectId: 'ProjectId',
18935
- removeTaskIds: 'RemoveTaskIds',
18936
- taskIds: 'TaskIds',
19098
+ removeNodeIds: 'RemoveNodeIds',
18937
19099
  };
18938
19100
  }
18939
19101
 
@@ -18946,12 +19108,12 @@ export class UpdateBaselineShrinkRequest extends $tea.Model {
18946
19108
  baselineName: 'string',
18947
19109
  baselineType: 'string',
18948
19110
  enabled: 'boolean',
19111
+ nodeIds: 'string',
18949
19112
  overtimeSettingsShrink: 'string',
18950
19113
  owner: 'string',
18951
19114
  priority: 'number',
18952
19115
  projectId: 'number',
18953
- removeTaskIds: 'string',
18954
- taskIds: 'string',
19116
+ removeNodeIds: 'string',
18955
19117
  };
18956
19118
  }
18957
19119
 
@@ -33678,6 +33840,10 @@ export default class Client extends OpenApi {
33678
33840
  body["BaselineType"] = request.baselineType;
33679
33841
  }
33680
33842
 
33843
+ if (!Util.isUnset(request.nodeIds)) {
33844
+ body["NodeIds"] = request.nodeIds;
33845
+ }
33846
+
33681
33847
  if (!Util.isUnset(request.overtimeSettings)) {
33682
33848
  body["OvertimeSettings"] = request.overtimeSettings;
33683
33849
  }
@@ -33694,10 +33860,6 @@ export default class Client extends OpenApi {
33694
33860
  body["ProjectId"] = request.projectId;
33695
33861
  }
33696
33862
 
33697
- if (!Util.isUnset(request.taskIds)) {
33698
- body["TaskIds"] = request.taskIds;
33699
- }
33700
-
33701
33863
  let req = new $OpenApi.OpenApiRequest({
33702
33864
  body: OpenApiUtil.parseToMap(body),
33703
33865
  });
@@ -41760,6 +41922,39 @@ export default class Client extends OpenApi {
41760
41922
  return await this.listTopicsWithOptions(request, runtime);
41761
41923
  }
41762
41924
 
41925
+ async mountDirectoryWithOptions(request: MountDirectoryRequest, runtime: $Util.RuntimeOptions): Promise<MountDirectoryResponse> {
41926
+ Util.validateModel(request);
41927
+ let body : {[key: string ]: any} = { };
41928
+ if (!Util.isUnset(request.targetId)) {
41929
+ body["TargetId"] = request.targetId;
41930
+ }
41931
+
41932
+ if (!Util.isUnset(request.targetType)) {
41933
+ body["TargetType"] = request.targetType;
41934
+ }
41935
+
41936
+ let req = new $OpenApi.OpenApiRequest({
41937
+ body: OpenApiUtil.parseToMap(body),
41938
+ });
41939
+ let params = new $OpenApi.Params({
41940
+ action: "MountDirectory",
41941
+ version: "2020-05-18",
41942
+ protocol: "HTTPS",
41943
+ pathname: "/",
41944
+ method: "POST",
41945
+ authType: "AK",
41946
+ style: "RPC",
41947
+ reqBodyType: "formData",
41948
+ bodyType: "json",
41949
+ });
41950
+ return $tea.cast<MountDirectoryResponse>(await this.callApi(params, req, runtime), new MountDirectoryResponse({}));
41951
+ }
41952
+
41953
+ async mountDirectory(request: MountDirectoryRequest): Promise<MountDirectoryResponse> {
41954
+ let runtime = new $Util.RuntimeOptions({ });
41955
+ return await this.mountDirectoryWithOptions(request, runtime);
41956
+ }
41957
+
41763
41958
  async offlineNodeWithOptions(request: OfflineNodeRequest, runtime: $Util.RuntimeOptions): Promise<OfflineNodeResponse> {
41764
41959
  Util.validateModel(request);
41765
41960
  let body : {[key: string ]: any} = { };
@@ -42953,6 +43148,39 @@ export default class Client extends OpenApi {
42953
43148
  return await this.topTenErrorTimesInstanceWithOptions(request, runtime);
42954
43149
  }
42955
43150
 
43151
+ async umountDirectoryWithOptions(request: UmountDirectoryRequest, runtime: $Util.RuntimeOptions): Promise<UmountDirectoryResponse> {
43152
+ Util.validateModel(request);
43153
+ let body : {[key: string ]: any} = { };
43154
+ if (!Util.isUnset(request.targetId)) {
43155
+ body["TargetId"] = request.targetId;
43156
+ }
43157
+
43158
+ if (!Util.isUnset(request.targetType)) {
43159
+ body["TargetType"] = request.targetType;
43160
+ }
43161
+
43162
+ let req = new $OpenApi.OpenApiRequest({
43163
+ body: OpenApiUtil.parseToMap(body),
43164
+ });
43165
+ let params = new $OpenApi.Params({
43166
+ action: "UmountDirectory",
43167
+ version: "2020-05-18",
43168
+ protocol: "HTTPS",
43169
+ pathname: "/",
43170
+ method: "POST",
43171
+ authType: "AK",
43172
+ style: "RPC",
43173
+ reqBodyType: "formData",
43174
+ bodyType: "json",
43175
+ });
43176
+ return $tea.cast<UmountDirectoryResponse>(await this.callApi(params, req, runtime), new UmountDirectoryResponse({}));
43177
+ }
43178
+
43179
+ async umountDirectory(request: UmountDirectoryRequest): Promise<UmountDirectoryResponse> {
43180
+ let runtime = new $Util.RuntimeOptions({ });
43181
+ return await this.umountDirectoryWithOptions(request, runtime);
43182
+ }
43183
+
42956
43184
  async updateBaselineWithOptions(tmpReq: UpdateBaselineRequest, runtime: $Util.RuntimeOptions): Promise<UpdateBaselineResponse> {
42957
43185
  Util.validateModel(tmpReq);
42958
43186
  let request = new UpdateBaselineShrinkRequest({ });
@@ -42994,6 +43222,10 @@ export default class Client extends OpenApi {
42994
43222
  body["Enabled"] = request.enabled;
42995
43223
  }
42996
43224
 
43225
+ if (!Util.isUnset(request.nodeIds)) {
43226
+ body["NodeIds"] = request.nodeIds;
43227
+ }
43228
+
42997
43229
  if (!Util.isUnset(request.overtimeSettingsShrink)) {
42998
43230
  body["OvertimeSettings"] = request.overtimeSettingsShrink;
42999
43231
  }
@@ -43010,12 +43242,8 @@ export default class Client extends OpenApi {
43010
43242
  body["ProjectId"] = request.projectId;
43011
43243
  }
43012
43244
 
43013
- if (!Util.isUnset(request.removeTaskIds)) {
43014
- body["RemoveTaskIds"] = request.removeTaskIds;
43015
- }
43016
-
43017
- if (!Util.isUnset(request.taskIds)) {
43018
- body["TaskIds"] = request.taskIds;
43245
+ if (!Util.isUnset(request.removeNodeIds)) {
43246
+ body["RemoveNodeIds"] = request.removeNodeIds;
43019
43247
  }
43020
43248
 
43021
43249
  let req = new $OpenApi.OpenApiRequest({