@alicloud/ehpcinstant20230701 3.0.0 → 3.2.0
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 +105 -0
- package/dist/client.js +339 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateActionPlanRequest.d.ts +97 -0
- package/dist/models/CreateActionPlanRequest.js +137 -0
- package/dist/models/CreateActionPlanRequest.js.map +1 -0
- package/dist/models/CreateActionPlanResponse.d.ts +19 -0
- package/dist/models/CreateActionPlanResponse.js +69 -0
- package/dist/models/CreateActionPlanResponse.js.map +1 -0
- package/dist/models/CreateActionPlanResponseBody.d.ts +23 -0
- package/dist/models/CreateActionPlanResponseBody.js +60 -0
- package/dist/models/CreateActionPlanResponseBody.js.map +1 -0
- package/dist/models/CreateActionPlanShrinkRequest.d.ts +55 -0
- package/dist/models/CreateActionPlanShrinkRequest.js +76 -0
- package/dist/models/CreateActionPlanShrinkRequest.js.map +1 -0
- package/dist/models/DeleteActionPlanRequest.d.ts +18 -0
- package/dist/models/DeleteActionPlanRequest.js +58 -0
- package/dist/models/DeleteActionPlanRequest.js.map +1 -0
- package/dist/models/DeleteActionPlanResponse.d.ts +19 -0
- package/dist/models/DeleteActionPlanResponse.js +69 -0
- package/dist/models/DeleteActionPlanResponse.js.map +1 -0
- package/dist/models/DeleteActionPlanResponseBody.d.ts +18 -0
- package/dist/models/DeleteActionPlanResponseBody.js +58 -0
- package/dist/models/DeleteActionPlanResponseBody.js.map +1 -0
- package/dist/models/GetActionPlanRequest.d.ts +18 -0
- package/dist/models/GetActionPlanRequest.js +58 -0
- package/dist/models/GetActionPlanRequest.js.map +1 -0
- package/dist/models/GetActionPlanResponse.d.ts +19 -0
- package/dist/models/GetActionPlanResponse.js +69 -0
- package/dist/models/GetActionPlanResponse.js.map +1 -0
- package/dist/models/GetActionPlanResponseBody.d.ts +121 -0
- package/dist/models/GetActionPlanResponseBody.js +142 -0
- package/dist/models/GetActionPlanResponseBody.js.map +1 -0
- package/dist/models/ListActionPlanActivitiesRequest.d.ts +28 -0
- package/dist/models/ListActionPlanActivitiesRequest.js +62 -0
- package/dist/models/ListActionPlanActivitiesRequest.js.map +1 -0
- package/dist/models/ListActionPlanActivitiesResponse.d.ts +19 -0
- package/dist/models/ListActionPlanActivitiesResponse.js +69 -0
- package/dist/models/ListActionPlanActivitiesResponse.js.map +1 -0
- package/dist/models/ListActionPlanActivitiesResponseBody.d.ts +107 -0
- package/dist/models/ListActionPlanActivitiesResponseBody.js +126 -0
- package/dist/models/ListActionPlanActivitiesResponseBody.js.map +1 -0
- package/dist/models/ListActionPlansRequest.d.ts +24 -0
- package/dist/models/ListActionPlansRequest.js +65 -0
- package/dist/models/ListActionPlansRequest.js.map +1 -0
- package/dist/models/ListActionPlansResponse.d.ts +19 -0
- package/dist/models/ListActionPlansResponse.js +69 -0
- package/dist/models/ListActionPlansResponse.js.map +1 -0
- package/dist/models/ListActionPlansResponseBody.d.ts +74 -0
- package/dist/models/ListActionPlansResponseBody.js +96 -0
- package/dist/models/ListActionPlansResponseBody.js.map +1 -0
- package/dist/models/ListActionPlansShrinkRequest.d.ts +24 -0
- package/dist/models/ListActionPlansShrinkRequest.js +62 -0
- package/dist/models/ListActionPlansShrinkRequest.js.map +1 -0
- package/dist/models/SynchronizeAppRequest.d.ts +22 -0
- package/dist/models/SynchronizeAppRequest.js +63 -0
- package/dist/models/SynchronizeAppRequest.js.map +1 -0
- package/dist/models/SynchronizeAppResponse.d.ts +19 -0
- package/dist/models/SynchronizeAppResponse.js +69 -0
- package/dist/models/SynchronizeAppResponse.js.map +1 -0
- package/dist/models/SynchronizeAppResponseBody.d.ts +18 -0
- package/dist/models/SynchronizeAppResponseBody.js +58 -0
- package/dist/models/SynchronizeAppResponseBody.js.map +1 -0
- package/dist/models/SynchronizeAppShrinkRequest.d.ts +22 -0
- package/dist/models/SynchronizeAppShrinkRequest.js +60 -0
- package/dist/models/SynchronizeAppShrinkRequest.js.map +1 -0
- package/dist/models/UpdateActionPlanRequest.d.ts +28 -0
- package/dist/models/UpdateActionPlanRequest.js +62 -0
- package/dist/models/UpdateActionPlanRequest.js.map +1 -0
- package/dist/models/UpdateActionPlanResponse.d.ts +19 -0
- package/dist/models/UpdateActionPlanResponse.js +69 -0
- package/dist/models/UpdateActionPlanResponse.js.map +1 -0
- package/dist/models/UpdateActionPlanResponseBody.d.ts +18 -0
- package/dist/models/UpdateActionPlanResponseBody.js +58 -0
- package/dist/models/UpdateActionPlanResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +31 -0
- package/dist/models/model.js +66 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +380 -0
- package/src/models/CreateActionPlanRequest.ts +171 -0
- package/src/models/CreateActionPlanResponse.ts +40 -0
- package/src/models/CreateActionPlanResponseBody.ts +38 -0
- package/src/models/CreateActionPlanShrinkRequest.ts +86 -0
- package/src/models/DeleteActionPlanRequest.ts +31 -0
- package/src/models/DeleteActionPlanResponse.ts +40 -0
- package/src/models/DeleteActionPlanResponseBody.ts +31 -0
- package/src/models/GetActionPlanRequest.ts +31 -0
- package/src/models/GetActionPlanResponse.ts +40 -0
- package/src/models/GetActionPlanResponseBody.ts +200 -0
- package/src/models/ListActionPlanActivitiesRequest.ts +45 -0
- package/src/models/ListActionPlanActivitiesResponse.ts +40 -0
- package/src/models/ListActionPlanActivitiesResponseBody.ts +170 -0
- package/src/models/ListActionPlansRequest.ts +44 -0
- package/src/models/ListActionPlansResponse.ts +40 -0
- package/src/models/ListActionPlansResponseBody.ts +116 -0
- package/src/models/ListActionPlansShrinkRequest.ts +41 -0
- package/src/models/SynchronizeAppRequest.ts +40 -0
- package/src/models/SynchronizeAppResponse.ts +40 -0
- package/src/models/SynchronizeAppResponseBody.ts +31 -0
- package/src/models/SynchronizeAppShrinkRequest.ts +37 -0
- package/src/models/UpdateActionPlanRequest.ts +45 -0
- package/src/models/UpdateActionPlanResponse.ts +40 -0
- package/src/models/UpdateActionPlanResponseBody.ts +31 -0
- package/src/models/model.ts +31 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -101,6 +101,94 @@ export default class Client extends OpenApi {
|
|
|
101
101
|
return await this.addImageWithOptions(request, runtime);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* 创建执行计划创建执行计划
|
|
106
|
+
*
|
|
107
|
+
* @param tmpReq - CreateActionPlanRequest
|
|
108
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
109
|
+
* @returns CreateActionPlanResponse
|
|
110
|
+
*/
|
|
111
|
+
async createActionPlanWithOptions(tmpReq: $_model.CreateActionPlanRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateActionPlanResponse> {
|
|
112
|
+
tmpReq.validate();
|
|
113
|
+
let request = new $_model.CreateActionPlanShrinkRequest({ });
|
|
114
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
115
|
+
if (!$dara.isNull(tmpReq.regions)) {
|
|
116
|
+
request.regionsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.regions, "Regions", "json");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (!$dara.isNull(tmpReq.resources)) {
|
|
120
|
+
request.resourcesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resources, "Resources", "json");
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
let query = { };
|
|
124
|
+
if (!$dara.isNull(request.actionPlanName)) {
|
|
125
|
+
query["ActionPlanName"] = request.actionPlanName;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (!$dara.isNull(request.allocationSpec)) {
|
|
129
|
+
query["AllocationSpec"] = request.allocationSpec;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (!$dara.isNull(request.appId)) {
|
|
133
|
+
query["AppId"] = request.appId;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (!$dara.isNull(request.desiredCapacity)) {
|
|
137
|
+
query["DesiredCapacity"] = request.desiredCapacity;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (!$dara.isNull(request.level)) {
|
|
141
|
+
query["Level"] = request.level;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (!$dara.isNull(request.prologScript)) {
|
|
145
|
+
query["PrologScript"] = request.prologScript;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (!$dara.isNull(request.regionsShrink)) {
|
|
149
|
+
query["Regions"] = request.regionsShrink;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
153
|
+
query["ResourceType"] = request.resourceType;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (!$dara.isNull(request.resourcesShrink)) {
|
|
157
|
+
query["Resources"] = request.resourcesShrink;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (!$dara.isNull(request.script)) {
|
|
161
|
+
query["Script"] = request.script;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
165
|
+
query: OpenApiUtil.query(query),
|
|
166
|
+
});
|
|
167
|
+
let params = new $OpenApiUtil.Params({
|
|
168
|
+
action: "CreateActionPlan",
|
|
169
|
+
version: "2023-07-01",
|
|
170
|
+
protocol: "HTTPS",
|
|
171
|
+
pathname: "/",
|
|
172
|
+
method: "POST",
|
|
173
|
+
authType: "AK",
|
|
174
|
+
style: "RPC",
|
|
175
|
+
reqBodyType: "formData",
|
|
176
|
+
bodyType: "json",
|
|
177
|
+
});
|
|
178
|
+
return $dara.cast<$_model.CreateActionPlanResponse>(await this.callApi(params, req, runtime), new $_model.CreateActionPlanResponse({}));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 创建执行计划创建执行计划
|
|
183
|
+
*
|
|
184
|
+
* @param request - CreateActionPlanRequest
|
|
185
|
+
* @returns CreateActionPlanResponse
|
|
186
|
+
*/
|
|
187
|
+
async createActionPlan(request: $_model.CreateActionPlanRequest): Promise<$_model.CreateActionPlanResponse> {
|
|
188
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
189
|
+
return await this.createActionPlanWithOptions(request, runtime);
|
|
190
|
+
}
|
|
191
|
+
|
|
104
192
|
/**
|
|
105
193
|
* 提交任务
|
|
106
194
|
*
|
|
@@ -241,6 +329,48 @@ export default class Client extends OpenApi {
|
|
|
241
329
|
return await this.createPoolWithOptions(request, runtime);
|
|
242
330
|
}
|
|
243
331
|
|
|
332
|
+
/**
|
|
333
|
+
* 删除执行计划
|
|
334
|
+
*
|
|
335
|
+
* @param request - DeleteActionPlanRequest
|
|
336
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
337
|
+
* @returns DeleteActionPlanResponse
|
|
338
|
+
*/
|
|
339
|
+
async deleteActionPlanWithOptions(request: $_model.DeleteActionPlanRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteActionPlanResponse> {
|
|
340
|
+
request.validate();
|
|
341
|
+
let query = { };
|
|
342
|
+
if (!$dara.isNull(request.actionPlanId)) {
|
|
343
|
+
query["ActionPlanId"] = request.actionPlanId;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
347
|
+
query: OpenApiUtil.query(query),
|
|
348
|
+
});
|
|
349
|
+
let params = new $OpenApiUtil.Params({
|
|
350
|
+
action: "DeleteActionPlan",
|
|
351
|
+
version: "2023-07-01",
|
|
352
|
+
protocol: "HTTPS",
|
|
353
|
+
pathname: "/",
|
|
354
|
+
method: "POST",
|
|
355
|
+
authType: "AK",
|
|
356
|
+
style: "RPC",
|
|
357
|
+
reqBodyType: "formData",
|
|
358
|
+
bodyType: "json",
|
|
359
|
+
});
|
|
360
|
+
return $dara.cast<$_model.DeleteActionPlanResponse>(await this.callApi(params, req, runtime), new $_model.DeleteActionPlanResponse({}));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* 删除执行计划
|
|
365
|
+
*
|
|
366
|
+
* @param request - DeleteActionPlanRequest
|
|
367
|
+
* @returns DeleteActionPlanResponse
|
|
368
|
+
*/
|
|
369
|
+
async deleteActionPlan(request: $_model.DeleteActionPlanRequest): Promise<$_model.DeleteActionPlanResponse> {
|
|
370
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
371
|
+
return await this.deleteActionPlanWithOptions(request, runtime);
|
|
372
|
+
}
|
|
373
|
+
|
|
244
374
|
/**
|
|
245
375
|
* 删除作业
|
|
246
376
|
*
|
|
@@ -459,6 +589,48 @@ export default class Client extends OpenApi {
|
|
|
459
589
|
return await this.describeJobMetricLastWithOptions(request, runtime);
|
|
460
590
|
}
|
|
461
591
|
|
|
592
|
+
/**
|
|
593
|
+
* 查询执行计划详情
|
|
594
|
+
*
|
|
595
|
+
* @param request - GetActionPlanRequest
|
|
596
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
597
|
+
* @returns GetActionPlanResponse
|
|
598
|
+
*/
|
|
599
|
+
async getActionPlanWithOptions(request: $_model.GetActionPlanRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetActionPlanResponse> {
|
|
600
|
+
request.validate();
|
|
601
|
+
let query = { };
|
|
602
|
+
if (!$dara.isNull(request.actionPlanId)) {
|
|
603
|
+
query["ActionPlanId"] = request.actionPlanId;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
607
|
+
query: OpenApiUtil.query(query),
|
|
608
|
+
});
|
|
609
|
+
let params = new $OpenApiUtil.Params({
|
|
610
|
+
action: "GetActionPlan",
|
|
611
|
+
version: "2023-07-01",
|
|
612
|
+
protocol: "HTTPS",
|
|
613
|
+
pathname: "/",
|
|
614
|
+
method: "POST",
|
|
615
|
+
authType: "AK",
|
|
616
|
+
style: "RPC",
|
|
617
|
+
reqBodyType: "formData",
|
|
618
|
+
bodyType: "json",
|
|
619
|
+
});
|
|
620
|
+
return $dara.cast<$_model.GetActionPlanResponse>(await this.callApi(params, req, runtime), new $_model.GetActionPlanResponse({}));
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* 查询执行计划详情
|
|
625
|
+
*
|
|
626
|
+
* @param request - GetActionPlanRequest
|
|
627
|
+
* @returns GetActionPlanResponse
|
|
628
|
+
*/
|
|
629
|
+
async getActionPlan(request: $_model.GetActionPlanRequest): Promise<$_model.GetActionPlanResponse> {
|
|
630
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
631
|
+
return await this.getActionPlanWithOptions(request, runtime);
|
|
632
|
+
}
|
|
633
|
+
|
|
462
634
|
/**
|
|
463
635
|
* 查看应用版本列表
|
|
464
636
|
*
|
|
@@ -661,6 +833,112 @@ export default class Client extends OpenApi {
|
|
|
661
833
|
return await this.getPoolWithOptions(request, runtime);
|
|
662
834
|
}
|
|
663
835
|
|
|
836
|
+
/**
|
|
837
|
+
* 查询执行计划的执行情况。
|
|
838
|
+
*
|
|
839
|
+
* @param request - ListActionPlanActivitiesRequest
|
|
840
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
841
|
+
* @returns ListActionPlanActivitiesResponse
|
|
842
|
+
*/
|
|
843
|
+
async listActionPlanActivitiesWithOptions(request: $_model.ListActionPlanActivitiesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListActionPlanActivitiesResponse> {
|
|
844
|
+
request.validate();
|
|
845
|
+
let query = { };
|
|
846
|
+
if (!$dara.isNull(request.actionPlanId)) {
|
|
847
|
+
query["ActionPlanId"] = request.actionPlanId;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
851
|
+
query["MaxResults"] = request.maxResults;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
855
|
+
query["NextToken"] = request.nextToken;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
859
|
+
query: OpenApiUtil.query(query),
|
|
860
|
+
});
|
|
861
|
+
let params = new $OpenApiUtil.Params({
|
|
862
|
+
action: "ListActionPlanActivities",
|
|
863
|
+
version: "2023-07-01",
|
|
864
|
+
protocol: "HTTPS",
|
|
865
|
+
pathname: "/",
|
|
866
|
+
method: "POST",
|
|
867
|
+
authType: "AK",
|
|
868
|
+
style: "RPC",
|
|
869
|
+
reqBodyType: "formData",
|
|
870
|
+
bodyType: "json",
|
|
871
|
+
});
|
|
872
|
+
return $dara.cast<$_model.ListActionPlanActivitiesResponse>(await this.callApi(params, req, runtime), new $_model.ListActionPlanActivitiesResponse({}));
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* 查询执行计划的执行情况。
|
|
877
|
+
*
|
|
878
|
+
* @param request - ListActionPlanActivitiesRequest
|
|
879
|
+
* @returns ListActionPlanActivitiesResponse
|
|
880
|
+
*/
|
|
881
|
+
async listActionPlanActivities(request: $_model.ListActionPlanActivitiesRequest): Promise<$_model.ListActionPlanActivitiesResponse> {
|
|
882
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
883
|
+
return await this.listActionPlanActivitiesWithOptions(request, runtime);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* 查询执行计划列表
|
|
888
|
+
*
|
|
889
|
+
* @param tmpReq - ListActionPlansRequest
|
|
890
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
891
|
+
* @returns ListActionPlansResponse
|
|
892
|
+
*/
|
|
893
|
+
async listActionPlansWithOptions(tmpReq: $_model.ListActionPlansRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListActionPlansResponse> {
|
|
894
|
+
tmpReq.validate();
|
|
895
|
+
let request = new $_model.ListActionPlansShrinkRequest({ });
|
|
896
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
897
|
+
if (!$dara.isNull(tmpReq.actionPlanIds)) {
|
|
898
|
+
request.actionPlanIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.actionPlanIds, "ActionPlanIds", "json");
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
let query = { };
|
|
902
|
+
if (!$dara.isNull(request.actionPlanIdsShrink)) {
|
|
903
|
+
query["ActionPlanIds"] = request.actionPlanIdsShrink;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
907
|
+
query["MaxResults"] = request.maxResults;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
911
|
+
query["NextToken"] = request.nextToken;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
915
|
+
query: OpenApiUtil.query(query),
|
|
916
|
+
});
|
|
917
|
+
let params = new $OpenApiUtil.Params({
|
|
918
|
+
action: "ListActionPlans",
|
|
919
|
+
version: "2023-07-01",
|
|
920
|
+
protocol: "HTTPS",
|
|
921
|
+
pathname: "/",
|
|
922
|
+
method: "POST",
|
|
923
|
+
authType: "AK",
|
|
924
|
+
style: "RPC",
|
|
925
|
+
reqBodyType: "formData",
|
|
926
|
+
bodyType: "json",
|
|
927
|
+
});
|
|
928
|
+
return $dara.cast<$_model.ListActionPlansResponse>(await this.callApi(params, req, runtime), new $_model.ListActionPlansResponse({}));
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* 查询执行计划列表
|
|
933
|
+
*
|
|
934
|
+
* @param request - ListActionPlansRequest
|
|
935
|
+
* @returns ListActionPlansResponse
|
|
936
|
+
*/
|
|
937
|
+
async listActionPlans(request: $_model.ListActionPlansRequest): Promise<$_model.ListActionPlansResponse> {
|
|
938
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
939
|
+
return await this.listActionPlansWithOptions(request, runtime);
|
|
940
|
+
}
|
|
941
|
+
|
|
664
942
|
/**
|
|
665
943
|
* 查询全局Executor信息
|
|
666
944
|
*
|
|
@@ -1071,6 +1349,58 @@ export default class Client extends OpenApi {
|
|
|
1071
1349
|
return await this.removeImageWithOptions(request, runtime);
|
|
1072
1350
|
}
|
|
1073
1351
|
|
|
1352
|
+
/**
|
|
1353
|
+
* 应用跨地域同步
|
|
1354
|
+
*
|
|
1355
|
+
* @param tmpReq - SynchronizeAppRequest
|
|
1356
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1357
|
+
* @returns SynchronizeAppResponse
|
|
1358
|
+
*/
|
|
1359
|
+
async synchronizeAppWithOptions(tmpReq: $_model.SynchronizeAppRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SynchronizeAppResponse> {
|
|
1360
|
+
tmpReq.validate();
|
|
1361
|
+
let request = new $_model.SynchronizeAppShrinkRequest({ });
|
|
1362
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1363
|
+
if (!$dara.isNull(tmpReq.targetRegionIds)) {
|
|
1364
|
+
request.targetRegionIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.targetRegionIds, "TargetRegionIds", "json");
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
let query = { };
|
|
1368
|
+
if (!$dara.isNull(request.appId)) {
|
|
1369
|
+
query["AppId"] = request.appId;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
if (!$dara.isNull(request.targetRegionIdsShrink)) {
|
|
1373
|
+
query["TargetRegionIds"] = request.targetRegionIdsShrink;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1377
|
+
query: OpenApiUtil.query(query),
|
|
1378
|
+
});
|
|
1379
|
+
let params = new $OpenApiUtil.Params({
|
|
1380
|
+
action: "SynchronizeApp",
|
|
1381
|
+
version: "2023-07-01",
|
|
1382
|
+
protocol: "HTTPS",
|
|
1383
|
+
pathname: "/",
|
|
1384
|
+
method: "POST",
|
|
1385
|
+
authType: "AK",
|
|
1386
|
+
style: "RPC",
|
|
1387
|
+
reqBodyType: "formData",
|
|
1388
|
+
bodyType: "json",
|
|
1389
|
+
});
|
|
1390
|
+
return $dara.cast<$_model.SynchronizeAppResponse>(await this.callApi(params, req, runtime), new $_model.SynchronizeAppResponse({}));
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* 应用跨地域同步
|
|
1395
|
+
*
|
|
1396
|
+
* @param request - SynchronizeAppRequest
|
|
1397
|
+
* @returns SynchronizeAppResponse
|
|
1398
|
+
*/
|
|
1399
|
+
async synchronizeApp(request: $_model.SynchronizeAppRequest): Promise<$_model.SynchronizeAppResponse> {
|
|
1400
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1401
|
+
return await this.synchronizeAppWithOptions(request, runtime);
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1074
1404
|
/**
|
|
1075
1405
|
* 为指定的资源列表统一创建并绑定标签
|
|
1076
1406
|
*
|
|
@@ -1175,6 +1505,56 @@ export default class Client extends OpenApi {
|
|
|
1175
1505
|
return await this.unTagResourcesWithOptions(request, runtime);
|
|
1176
1506
|
}
|
|
1177
1507
|
|
|
1508
|
+
/**
|
|
1509
|
+
* 更新执行计划
|
|
1510
|
+
*
|
|
1511
|
+
* @param request - UpdateActionPlanRequest
|
|
1512
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1513
|
+
* @returns UpdateActionPlanResponse
|
|
1514
|
+
*/
|
|
1515
|
+
async updateActionPlanWithOptions(request: $_model.UpdateActionPlanRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateActionPlanResponse> {
|
|
1516
|
+
request.validate();
|
|
1517
|
+
let query = { };
|
|
1518
|
+
if (!$dara.isNull(request.actionPlanId)) {
|
|
1519
|
+
query["ActionPlanId"] = request.actionPlanId;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
if (!$dara.isNull(request.desiredCapacity)) {
|
|
1523
|
+
query["DesiredCapacity"] = request.desiredCapacity;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
if (!$dara.isNull(request.enabled)) {
|
|
1527
|
+
query["Enabled"] = request.enabled;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1531
|
+
query: OpenApiUtil.query(query),
|
|
1532
|
+
});
|
|
1533
|
+
let params = new $OpenApiUtil.Params({
|
|
1534
|
+
action: "UpdateActionPlan",
|
|
1535
|
+
version: "2023-07-01",
|
|
1536
|
+
protocol: "HTTPS",
|
|
1537
|
+
pathname: "/",
|
|
1538
|
+
method: "POST",
|
|
1539
|
+
authType: "AK",
|
|
1540
|
+
style: "RPC",
|
|
1541
|
+
reqBodyType: "formData",
|
|
1542
|
+
bodyType: "json",
|
|
1543
|
+
});
|
|
1544
|
+
return $dara.cast<$_model.UpdateActionPlanResponse>(await this.callApi(params, req, runtime), new $_model.UpdateActionPlanResponse({}));
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* 更新执行计划
|
|
1549
|
+
*
|
|
1550
|
+
* @param request - UpdateActionPlanRequest
|
|
1551
|
+
* @returns UpdateActionPlanResponse
|
|
1552
|
+
*/
|
|
1553
|
+
async updateActionPlan(request: $_model.UpdateActionPlanRequest): Promise<$_model.UpdateActionPlanResponse> {
|
|
1554
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1555
|
+
return await this.updateActionPlanWithOptions(request, runtime);
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1178
1558
|
/**
|
|
1179
1559
|
* 更新资源池
|
|
1180
1560
|
*
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateActionPlanRequestRegions extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* cn-hangzhou
|
|
9
|
+
*/
|
|
10
|
+
regionId?: string;
|
|
11
|
+
securityGroupId?: string[];
|
|
12
|
+
securityGroupIds?: string[];
|
|
13
|
+
vSwitchIds?: string[];
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
regionId: 'RegionId',
|
|
17
|
+
securityGroupId: 'SecurityGroupId',
|
|
18
|
+
securityGroupIds: 'SecurityGroupIds',
|
|
19
|
+
vSwitchIds: 'VSwitchIds',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
regionId: 'string',
|
|
26
|
+
securityGroupId: { 'type': 'array', 'itemType': 'string' },
|
|
27
|
+
securityGroupIds: { 'type': 'array', 'itemType': 'string' },
|
|
28
|
+
vSwitchIds: { 'type': 'array', 'itemType': 'string' },
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
validate() {
|
|
33
|
+
if(Array.isArray(this.securityGroupId)) {
|
|
34
|
+
$dara.Model.validateArray(this.securityGroupId);
|
|
35
|
+
}
|
|
36
|
+
if(Array.isArray(this.securityGroupIds)) {
|
|
37
|
+
$dara.Model.validateArray(this.securityGroupIds);
|
|
38
|
+
}
|
|
39
|
+
if(Array.isArray(this.vSwitchIds)) {
|
|
40
|
+
$dara.Model.validateArray(this.vSwitchIds);
|
|
41
|
+
}
|
|
42
|
+
super.validate();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
constructor(map?: { [key: string]: any }) {
|
|
46
|
+
super(map);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export class CreateActionPlanRequestResources extends $dara.Model {
|
|
51
|
+
/**
|
|
52
|
+
* @example
|
|
53
|
+
* 2
|
|
54
|
+
*/
|
|
55
|
+
cores?: number;
|
|
56
|
+
/**
|
|
57
|
+
* @example
|
|
58
|
+
* 4
|
|
59
|
+
*/
|
|
60
|
+
memory?: number;
|
|
61
|
+
static names(): { [key: string]: string } {
|
|
62
|
+
return {
|
|
63
|
+
cores: 'Cores',
|
|
64
|
+
memory: 'Memory',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static types(): { [key: string]: any } {
|
|
69
|
+
return {
|
|
70
|
+
cores: 'number',
|
|
71
|
+
memory: 'number',
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
validate() {
|
|
76
|
+
super.validate();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
constructor(map?: { [key: string]: any }) {
|
|
80
|
+
super(map);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export class CreateActionPlanRequest extends $dara.Model {
|
|
85
|
+
/**
|
|
86
|
+
* @example
|
|
87
|
+
* TestActionPlan
|
|
88
|
+
*/
|
|
89
|
+
actionPlanName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* @example
|
|
92
|
+
* Standard
|
|
93
|
+
*/
|
|
94
|
+
allocationSpec?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @example
|
|
97
|
+
* ci-vm-rYfypJKwlN9Y
|
|
98
|
+
*/
|
|
99
|
+
appId?: string;
|
|
100
|
+
/**
|
|
101
|
+
* @example
|
|
102
|
+
* 1000
|
|
103
|
+
*/
|
|
104
|
+
desiredCapacity?: number;
|
|
105
|
+
/**
|
|
106
|
+
* @example
|
|
107
|
+
* General
|
|
108
|
+
*/
|
|
109
|
+
level?: string;
|
|
110
|
+
/**
|
|
111
|
+
* @example
|
|
112
|
+
* bHMgLWFsCmxzIC1hbGggfCB3YyAtbA==
|
|
113
|
+
*/
|
|
114
|
+
prologScript?: string;
|
|
115
|
+
regions?: CreateActionPlanRequestRegions[];
|
|
116
|
+
/**
|
|
117
|
+
* @example
|
|
118
|
+
* VCpuCapacity
|
|
119
|
+
*/
|
|
120
|
+
resourceType?: string;
|
|
121
|
+
resources?: CreateActionPlanRequestResources[];
|
|
122
|
+
/**
|
|
123
|
+
* @example
|
|
124
|
+
* bHMgLWFsCmxzIC1hbGggfCB3YyAtbA==
|
|
125
|
+
*/
|
|
126
|
+
script?: string;
|
|
127
|
+
static names(): { [key: string]: string } {
|
|
128
|
+
return {
|
|
129
|
+
actionPlanName: 'ActionPlanName',
|
|
130
|
+
allocationSpec: 'AllocationSpec',
|
|
131
|
+
appId: 'AppId',
|
|
132
|
+
desiredCapacity: 'DesiredCapacity',
|
|
133
|
+
level: 'Level',
|
|
134
|
+
prologScript: 'PrologScript',
|
|
135
|
+
regions: 'Regions',
|
|
136
|
+
resourceType: 'ResourceType',
|
|
137
|
+
resources: 'Resources',
|
|
138
|
+
script: 'Script',
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
static types(): { [key: string]: any } {
|
|
143
|
+
return {
|
|
144
|
+
actionPlanName: 'string',
|
|
145
|
+
allocationSpec: 'string',
|
|
146
|
+
appId: 'string',
|
|
147
|
+
desiredCapacity: 'number',
|
|
148
|
+
level: 'string',
|
|
149
|
+
prologScript: 'string',
|
|
150
|
+
regions: { 'type': 'array', 'itemType': CreateActionPlanRequestRegions },
|
|
151
|
+
resourceType: 'string',
|
|
152
|
+
resources: { 'type': 'array', 'itemType': CreateActionPlanRequestResources },
|
|
153
|
+
script: 'string',
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
validate() {
|
|
158
|
+
if(Array.isArray(this.regions)) {
|
|
159
|
+
$dara.Model.validateArray(this.regions);
|
|
160
|
+
}
|
|
161
|
+
if(Array.isArray(this.resources)) {
|
|
162
|
+
$dara.Model.validateArray(this.resources);
|
|
163
|
+
}
|
|
164
|
+
super.validate();
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
constructor(map?: { [key: string]: any }) {
|
|
168
|
+
super(map);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateActionPlanResponseBody } from "./CreateActionPlanResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateActionPlanResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateActionPlanResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateActionPlanResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateActionPlanResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ap-hz036ubmx2qmw93k****
|
|
9
|
+
*/
|
|
10
|
+
actionPlanId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 896D338C-E4F4-41EC-A154-D605E5DE****
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
actionPlanId: 'ActionPlanId',
|
|
19
|
+
requestId: 'RequestId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
actionPlanId: 'string',
|
|
26
|
+
requestId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|