@alicloud/dataworks-public20240518 9.4.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.
package/dist/client.d.ts CHANGED
@@ -2004,6 +2004,29 @@ export default class Client extends OpenApi {
2004
2004
  * @returns DeleteFunctionResponse
2005
2005
  */
2006
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>;
2007
2030
  /**
2008
2031
  * Deletes a specified data lineage relationship from DataWorks Data Map.
2009
2032
  *
package/dist/client.js CHANGED
@@ -5860,6 +5860,53 @@ class Client extends openapi_core_1.default {
5860
5860
  let runtime = new $dara.RuntimeOptions({});
5861
5861
  return await this.deleteFunctionWithOptions(request, runtime);
5862
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
+ }
5863
5910
  /**
5864
5911
  * Deletes a specified data lineage relationship from DataWorks Data Map.
5865
5912
  *