@alicloud/dataworks-public20240518 9.3.0 → 9.5.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.
Files changed (53) hide show
  1. package/dist/client.d.ts +65 -0
  2. package/dist/client.js +218 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateServerIdeInstanceRequest.d.ts +464 -0
  5. package/dist/models/CreateServerIdeInstanceRequest.js +329 -0
  6. package/dist/models/CreateServerIdeInstanceRequest.js.map +1 -0
  7. package/dist/models/CreateServerIdeInstanceResponse.d.ts +19 -0
  8. package/dist/models/CreateServerIdeInstanceResponse.js +69 -0
  9. package/dist/models/CreateServerIdeInstanceResponse.js.map +1 -0
  10. package/dist/models/CreateServerIdeInstanceResponseBody.d.ts +29 -0
  11. package/dist/models/CreateServerIdeInstanceResponseBody.js +60 -0
  12. package/dist/models/CreateServerIdeInstanceResponseBody.js.map +1 -0
  13. package/dist/models/CreateServerIdeInstanceShrinkRequest.d.ts +95 -0
  14. package/dist/models/CreateServerIdeInstanceShrinkRequest.js +78 -0
  15. package/dist/models/CreateServerIdeInstanceShrinkRequest.js.map +1 -0
  16. package/dist/models/DeleteImageRequest.d.ts +23 -0
  17. package/dist/models/DeleteImageRequest.js +58 -0
  18. package/dist/models/DeleteImageRequest.js.map +1 -0
  19. package/dist/models/DeleteImageResponse.d.ts +19 -0
  20. package/dist/models/DeleteImageResponse.js +69 -0
  21. package/dist/models/DeleteImageResponse.js.map +1 -0
  22. package/dist/models/DeleteImageResponseBody.d.ts +37 -0
  23. package/dist/models/DeleteImageResponseBody.js +62 -0
  24. package/dist/models/DeleteImageResponseBody.js.map +1 -0
  25. package/dist/models/UpdateServerIdeInstanceRequest.d.ts +404 -0
  26. package/dist/models/UpdateServerIdeInstanceRequest.js +281 -0
  27. package/dist/models/UpdateServerIdeInstanceRequest.js.map +1 -0
  28. package/dist/models/UpdateServerIdeInstanceResponse.d.ts +19 -0
  29. package/dist/models/UpdateServerIdeInstanceResponse.js +69 -0
  30. package/dist/models/UpdateServerIdeInstanceResponse.js.map +1 -0
  31. package/dist/models/UpdateServerIdeInstanceResponseBody.d.ts +29 -0
  32. package/dist/models/UpdateServerIdeInstanceResponseBody.js +60 -0
  33. package/dist/models/UpdateServerIdeInstanceResponseBody.js.map +1 -0
  34. package/dist/models/UpdateServerIdeInstanceShrinkRequest.d.ts +78 -0
  35. package/dist/models/UpdateServerIdeInstanceShrinkRequest.js +74 -0
  36. package/dist/models/UpdateServerIdeInstanceShrinkRequest.js.map +1 -0
  37. package/dist/models/model.d.ts +27 -0
  38. package/dist/models/model.js +96 -42
  39. package/dist/models/model.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/client.ts +252 -0
  42. package/src/models/CreateServerIdeInstanceRequest.ts +667 -0
  43. package/src/models/CreateServerIdeInstanceResponse.ts +40 -0
  44. package/src/models/CreateServerIdeInstanceResponseBody.ts +44 -0
  45. package/src/models/CreateServerIdeInstanceShrinkRequest.ts +128 -0
  46. package/src/models/DeleteImageRequest.ts +36 -0
  47. package/src/models/DeleteImageResponse.ts +40 -0
  48. package/src/models/DeleteImageResponseBody.ts +54 -0
  49. package/src/models/UpdateServerIdeInstanceRequest.ts +577 -0
  50. package/src/models/UpdateServerIdeInstanceResponse.ts +40 -0
  51. package/src/models/UpdateServerIdeInstanceResponseBody.ts +44 -0
  52. package/src/models/UpdateServerIdeInstanceShrinkRequest.ts +107 -0
  53. package/src/models/model.ts +27 -0
package/dist/client.d.ts CHANGED
@@ -1395,6 +1395,27 @@ export default class Client extends OpenApi {
1395
1395
  * @returns CreateSemanticJobResponse
1396
1396
  */
1397
1397
  createSemanticJob(request: $_model.CreateSemanticJobRequest): Promise<$_model.CreateSemanticJobResponse>;
1398
+ /**
1399
+ * Creates a personal development environment instance.
1400
+ *
1401
+ * @remarks
1402
+ * Creates a personal development environment (ServerIDE) instance. After you specify the DataWorks workspace, resource group, image, and specifications, the instance is created and the instance ID is returned.
1403
+ *
1404
+ * @param tmpReq - CreateServerIdeInstanceRequest
1405
+ * @param runtime - runtime options for this request RuntimeOptions
1406
+ * @returns CreateServerIdeInstanceResponse
1407
+ */
1408
+ createServerIdeInstanceWithOptions(tmpReq: $_model.CreateServerIdeInstanceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateServerIdeInstanceResponse>;
1409
+ /**
1410
+ * Creates a personal development environment instance.
1411
+ *
1412
+ * @remarks
1413
+ * Creates a personal development environment (ServerIDE) instance. After you specify the DataWorks workspace, resource group, image, and specifications, the instance is created and the instance ID is returned.
1414
+ *
1415
+ * @param request - CreateServerIdeInstanceRequest
1416
+ * @returns CreateServerIdeInstanceResponse
1417
+ */
1418
+ createServerIdeInstance(request: $_model.CreateServerIdeInstanceRequest): Promise<$_model.CreateServerIdeInstanceResponse>;
1398
1419
  /**
1399
1420
  * Creates a new Skill in DataWorks.
1400
1421
  *
@@ -1983,6 +2004,29 @@ export default class Client extends OpenApi {
1983
2004
  * @returns DeleteFunctionResponse
1984
2005
  */
1985
2006
  deleteFunction(request: $_model.DeleteFunctionRequest): Promise<$_model.DeleteFunctionResponse>;
2007
+ /**
2008
+ * Deletes an image.
2009
+ *
2010
+ * @remarks
2011
+ * 1. You must purchase DataWorks Basic Edition or a higher edition to use this operation.
2012
+ * 2. **Before calling this operation, make sure that the service-linked role AliyunServiceRoleForDataWorks has been created.**
2013
+ *
2014
+ * @param request - DeleteImageRequest
2015
+ * @param runtime - runtime options for this request RuntimeOptions
2016
+ * @returns DeleteImageResponse
2017
+ */
2018
+ deleteImageWithOptions(request: $_model.DeleteImageRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteImageResponse>;
2019
+ /**
2020
+ * Deletes an image.
2021
+ *
2022
+ * @remarks
2023
+ * 1. You must purchase DataWorks Basic Edition or a higher edition to use this operation.
2024
+ * 2. **Before calling this operation, make sure that the service-linked role AliyunServiceRoleForDataWorks has been created.**
2025
+ *
2026
+ * @param request - DeleteImageRequest
2027
+ * @returns DeleteImageResponse
2028
+ */
2029
+ deleteImage(request: $_model.DeleteImageRequest): Promise<$_model.DeleteImageResponse>;
1986
2030
  /**
1987
2031
  * Deletes a specified data lineage relationship from DataWorks Data Map.
1988
2032
  *
@@ -8145,6 +8189,27 @@ export default class Client extends OpenApi {
8145
8189
  * @returns UpdateSecurityStrategyResponse
8146
8190
  */
8147
8191
  updateSecurityStrategy(request: $_model.UpdateSecurityStrategyRequest): Promise<$_model.UpdateSecurityStrategyResponse>;
8192
+ /**
8193
+ * Updates the configuration of a specified personal development environment instance.
8194
+ *
8195
+ * @remarks
8196
+ * Updates the configuration of a specified personal development environment (ServerIDE) instance. You can modify the CU, image, instance name, VPC, dataset, and credential configurations. If the CU and image parameters are not specified, the existing instance configurations are retained.
8197
+ *
8198
+ * @param tmpReq - UpdateServerIdeInstanceRequest
8199
+ * @param runtime - runtime options for this request RuntimeOptions
8200
+ * @returns UpdateServerIdeInstanceResponse
8201
+ */
8202
+ updateServerIdeInstanceWithOptions(tmpReq: $_model.UpdateServerIdeInstanceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateServerIdeInstanceResponse>;
8203
+ /**
8204
+ * Updates the configuration of a specified personal development environment instance.
8205
+ *
8206
+ * @remarks
8207
+ * Updates the configuration of a specified personal development environment (ServerIDE) instance. You can modify the CU, image, instance name, VPC, dataset, and credential configurations. If the CU and image parameters are not specified, the existing instance configurations are retained.
8208
+ *
8209
+ * @param request - UpdateServerIdeInstanceRequest
8210
+ * @returns UpdateServerIdeInstanceResponse
8211
+ */
8212
+ updateServerIdeInstance(request: $_model.UpdateServerIdeInstanceRequest): Promise<$_model.UpdateServerIdeInstanceResponse>;
8148
8213
  /**
8149
8214
  * Updates a specified Skill and generates a new version.
8150
8215
  *
package/dist/client.js CHANGED
@@ -4353,6 +4353,95 @@ class Client extends openapi_core_1.default {
4353
4353
  let runtime = new $dara.RuntimeOptions({});
4354
4354
  return await this.createSemanticJobWithOptions(request, runtime);
4355
4355
  }
4356
+ /**
4357
+ * Creates a personal development environment instance.
4358
+ *
4359
+ * @remarks
4360
+ * Creates a personal development environment (ServerIDE) instance. After you specify the DataWorks workspace, resource group, image, and specifications, the instance is created and the instance ID is returned.
4361
+ *
4362
+ * @param tmpReq - CreateServerIdeInstanceRequest
4363
+ * @param runtime - runtime options for this request RuntimeOptions
4364
+ * @returns CreateServerIdeInstanceResponse
4365
+ */
4366
+ async createServerIdeInstanceWithOptions(tmpReq, runtime) {
4367
+ tmpReq.validate();
4368
+ let request = new $_model.CreateServerIdeInstanceShrinkRequest({});
4369
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4370
+ if (!$dara.isNull(tmpReq.credentialConfig)) {
4371
+ request.credentialConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.credentialConfig, "CredentialConfig", "json");
4372
+ }
4373
+ if (!$dara.isNull(tmpReq.datasets)) {
4374
+ request.datasetsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.datasets, "Datasets", "json");
4375
+ }
4376
+ if (!$dara.isNull(tmpReq.userCommand)) {
4377
+ request.userCommandShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userCommand, "UserCommand", "json");
4378
+ }
4379
+ if (!$dara.isNull(tmpReq.userVpc)) {
4380
+ request.userVpcShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userVpc, "UserVpc", "json");
4381
+ }
4382
+ let body = {};
4383
+ if (!$dara.isNull(request.credentialConfigShrink)) {
4384
+ body["CredentialConfig"] = request.credentialConfigShrink;
4385
+ }
4386
+ if (!$dara.isNull(request.cu)) {
4387
+ body["Cu"] = request.cu;
4388
+ }
4389
+ if (!$dara.isNull(request.datasetsShrink)) {
4390
+ body["Datasets"] = request.datasetsShrink;
4391
+ }
4392
+ if (!$dara.isNull(request.imageId)) {
4393
+ body["ImageId"] = request.imageId;
4394
+ }
4395
+ if (!$dara.isNull(request.imageUrl)) {
4396
+ body["ImageUrl"] = request.imageUrl;
4397
+ }
4398
+ if (!$dara.isNull(request.instanceName)) {
4399
+ body["InstanceName"] = request.instanceName;
4400
+ }
4401
+ if (!$dara.isNull(request.owner)) {
4402
+ body["Owner"] = request.owner;
4403
+ }
4404
+ if (!$dara.isNull(request.projectId)) {
4405
+ body["ProjectId"] = request.projectId;
4406
+ }
4407
+ if (!$dara.isNull(request.resourceGroupId)) {
4408
+ body["ResourceGroupId"] = request.resourceGroupId;
4409
+ }
4410
+ if (!$dara.isNull(request.userCommandShrink)) {
4411
+ body["UserCommand"] = request.userCommandShrink;
4412
+ }
4413
+ if (!$dara.isNull(request.userVpcShrink)) {
4414
+ body["UserVpc"] = request.userVpcShrink;
4415
+ }
4416
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4417
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
4418
+ });
4419
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4420
+ action: "CreateServerIdeInstance",
4421
+ version: "2024-05-18",
4422
+ protocol: "HTTPS",
4423
+ pathname: "/",
4424
+ method: "POST",
4425
+ authType: "AK",
4426
+ style: "RPC",
4427
+ reqBodyType: "formData",
4428
+ bodyType: "json",
4429
+ });
4430
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateServerIdeInstanceResponse({}));
4431
+ }
4432
+ /**
4433
+ * Creates a personal development environment instance.
4434
+ *
4435
+ * @remarks
4436
+ * Creates a personal development environment (ServerIDE) instance. After you specify the DataWorks workspace, resource group, image, and specifications, the instance is created and the instance ID is returned.
4437
+ *
4438
+ * @param request - CreateServerIdeInstanceRequest
4439
+ * @returns CreateServerIdeInstanceResponse
4440
+ */
4441
+ async createServerIdeInstance(request) {
4442
+ let runtime = new $dara.RuntimeOptions({});
4443
+ return await this.createServerIdeInstanceWithOptions(request, runtime);
4444
+ }
4356
4445
  /**
4357
4446
  * Creates a new Skill in DataWorks.
4358
4447
  *
@@ -5771,6 +5860,53 @@ class Client extends openapi_core_1.default {
5771
5860
  let runtime = new $dara.RuntimeOptions({});
5772
5861
  return await this.deleteFunctionWithOptions(request, runtime);
5773
5862
  }
5863
+ /**
5864
+ * Deletes an image.
5865
+ *
5866
+ * @remarks
5867
+ * 1. You must purchase DataWorks Basic Edition or a higher edition to use this operation.
5868
+ * 2. **Before calling this operation, make sure that the service-linked role AliyunServiceRoleForDataWorks has been created.**
5869
+ *
5870
+ * @param request - DeleteImageRequest
5871
+ * @param runtime - runtime options for this request RuntimeOptions
5872
+ * @returns DeleteImageResponse
5873
+ */
5874
+ async deleteImageWithOptions(request, runtime) {
5875
+ request.validate();
5876
+ let body = {};
5877
+ if (!$dara.isNull(request.id)) {
5878
+ body["Id"] = request.id;
5879
+ }
5880
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5881
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5882
+ });
5883
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5884
+ action: "DeleteImage",
5885
+ version: "2024-05-18",
5886
+ protocol: "HTTPS",
5887
+ pathname: "/",
5888
+ method: "POST",
5889
+ authType: "AK",
5890
+ style: "RPC",
5891
+ reqBodyType: "formData",
5892
+ bodyType: "json",
5893
+ });
5894
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteImageResponse({}));
5895
+ }
5896
+ /**
5897
+ * Deletes an image.
5898
+ *
5899
+ * @remarks
5900
+ * 1. You must purchase DataWorks Basic Edition or a higher edition to use this operation.
5901
+ * 2. **Before calling this operation, make sure that the service-linked role AliyunServiceRoleForDataWorks has been created.**
5902
+ *
5903
+ * @param request - DeleteImageRequest
5904
+ * @returns DeleteImageResponse
5905
+ */
5906
+ async deleteImage(request) {
5907
+ let runtime = new $dara.RuntimeOptions({});
5908
+ return await this.deleteImageWithOptions(request, runtime);
5909
+ }
5774
5910
  /**
5775
5911
  * Deletes a specified data lineage relationship from DataWorks Data Map.
5776
5912
  *
@@ -21145,6 +21281,88 @@ class Client extends openapi_core_1.default {
21145
21281
  let runtime = new $dara.RuntimeOptions({});
21146
21282
  return await this.updateSecurityStrategyWithOptions(request, runtime);
21147
21283
  }
21284
+ /**
21285
+ * Updates the configuration of a specified personal development environment instance.
21286
+ *
21287
+ * @remarks
21288
+ * Updates the configuration of a specified personal development environment (ServerIDE) instance. You can modify the CU, image, instance name, VPC, dataset, and credential configurations. If the CU and image parameters are not specified, the existing instance configurations are retained.
21289
+ *
21290
+ * @param tmpReq - UpdateServerIdeInstanceRequest
21291
+ * @param runtime - runtime options for this request RuntimeOptions
21292
+ * @returns UpdateServerIdeInstanceResponse
21293
+ */
21294
+ async updateServerIdeInstanceWithOptions(tmpReq, runtime) {
21295
+ tmpReq.validate();
21296
+ let request = new $_model.UpdateServerIdeInstanceShrinkRequest({});
21297
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
21298
+ if (!$dara.isNull(tmpReq.credentialConfig)) {
21299
+ request.credentialConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.credentialConfig, "CredentialConfig", "json");
21300
+ }
21301
+ if (!$dara.isNull(tmpReq.datasets)) {
21302
+ request.datasetsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.datasets, "Datasets", "json");
21303
+ }
21304
+ if (!$dara.isNull(tmpReq.userVpc)) {
21305
+ request.userVpcShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userVpc, "UserVpc", "json");
21306
+ }
21307
+ let query = {};
21308
+ if (!$dara.isNull(request.instanceId)) {
21309
+ query["InstanceId"] = request.instanceId;
21310
+ }
21311
+ let body = {};
21312
+ if (!$dara.isNull(request.credentialConfigShrink)) {
21313
+ body["CredentialConfig"] = request.credentialConfigShrink;
21314
+ }
21315
+ if (!$dara.isNull(request.cu)) {
21316
+ body["Cu"] = request.cu;
21317
+ }
21318
+ if (!$dara.isNull(request.datasetsShrink)) {
21319
+ body["Datasets"] = request.datasetsShrink;
21320
+ }
21321
+ if (!$dara.isNull(request.imageId)) {
21322
+ body["ImageId"] = request.imageId;
21323
+ }
21324
+ if (!$dara.isNull(request.imageUrl)) {
21325
+ body["ImageUrl"] = request.imageUrl;
21326
+ }
21327
+ if (!$dara.isNull(request.instanceName)) {
21328
+ body["InstanceName"] = request.instanceName;
21329
+ }
21330
+ if (!$dara.isNull(request.projectId)) {
21331
+ body["ProjectId"] = request.projectId;
21332
+ }
21333
+ if (!$dara.isNull(request.userVpcShrink)) {
21334
+ body["UserVpc"] = request.userVpcShrink;
21335
+ }
21336
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
21337
+ query: openapi_core_2.OpenApiUtil.query(query),
21338
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
21339
+ });
21340
+ let params = new openapi_core_2.$OpenApiUtil.Params({
21341
+ action: "UpdateServerIdeInstance",
21342
+ version: "2024-05-18",
21343
+ protocol: "HTTPS",
21344
+ pathname: "/",
21345
+ method: "POST",
21346
+ authType: "AK",
21347
+ style: "RPC",
21348
+ reqBodyType: "formData",
21349
+ bodyType: "json",
21350
+ });
21351
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateServerIdeInstanceResponse({}));
21352
+ }
21353
+ /**
21354
+ * Updates the configuration of a specified personal development environment instance.
21355
+ *
21356
+ * @remarks
21357
+ * Updates the configuration of a specified personal development environment (ServerIDE) instance. You can modify the CU, image, instance name, VPC, dataset, and credential configurations. If the CU and image parameters are not specified, the existing instance configurations are retained.
21358
+ *
21359
+ * @param request - UpdateServerIdeInstanceRequest
21360
+ * @returns UpdateServerIdeInstanceResponse
21361
+ */
21362
+ async updateServerIdeInstance(request) {
21363
+ let runtime = new $dara.RuntimeOptions({});
21364
+ return await this.updateServerIdeInstanceWithOptions(request, runtime);
21365
+ }
21148
21366
  /**
21149
21367
  * Updates a specified Skill and generates a new version.
21150
21368
  *