@alicloud/dataworks-public20240518 7.6.1 → 7.7.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
@@ -487,6 +487,21 @@ export default class Client extends OpenApi {
487
487
  * @returns CreateFunctionResponse
488
488
  */
489
489
  createFunction(request: $_model.CreateFunctionRequest): Promise<$_model.CreateFunctionResponse>;
490
+ /**
491
+ * 创建身份凭证
492
+ *
493
+ * @param tmpReq - CreateIdentifyCredentialRequest
494
+ * @param runtime - runtime options for this request RuntimeOptions
495
+ * @returns CreateIdentifyCredentialResponse
496
+ */
497
+ createIdentifyCredentialWithOptions(tmpReq: $_model.CreateIdentifyCredentialRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateIdentifyCredentialResponse>;
498
+ /**
499
+ * 创建身份凭证
500
+ *
501
+ * @param request - CreateIdentifyCredentialRequest
502
+ * @returns CreateIdentifyCredentialResponse
503
+ */
504
+ createIdentifyCredential(request: $_model.CreateIdentifyCredentialRequest): Promise<$_model.CreateIdentifyCredentialResponse>;
490
505
  /**
491
506
  * Creates a lineage between a source entity and a destination entity. Either the source or destination entity must be a custom entity.
492
507
  *
package/dist/client.js CHANGED
@@ -1775,6 +1775,50 @@ class Client extends openapi_core_1.default {
1775
1775
  let runtime = new $dara.RuntimeOptions({});
1776
1776
  return await this.createFunctionWithOptions(request, runtime);
1777
1777
  }
1778
+ /**
1779
+ * 创建身份凭证
1780
+ *
1781
+ * @param tmpReq - CreateIdentifyCredentialRequest
1782
+ * @param runtime - runtime options for this request RuntimeOptions
1783
+ * @returns CreateIdentifyCredentialResponse
1784
+ */
1785
+ async createIdentifyCredentialWithOptions(tmpReq, runtime) {
1786
+ tmpReq.validate();
1787
+ let request = new $_model.CreateIdentifyCredentialShrinkRequest({});
1788
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1789
+ if (!$dara.isNull(tmpReq.identifyCredential)) {
1790
+ request.identifyCredentialShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.identifyCredential, "IdentifyCredential", "json");
1791
+ }
1792
+ let body = {};
1793
+ if (!$dara.isNull(request.identifyCredentialShrink)) {
1794
+ body["IdentifyCredential"] = request.identifyCredentialShrink;
1795
+ }
1796
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1797
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1798
+ });
1799
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1800
+ action: "CreateIdentifyCredential",
1801
+ version: "2024-05-18",
1802
+ protocol: "HTTPS",
1803
+ pathname: "/",
1804
+ method: "POST",
1805
+ authType: "AK",
1806
+ style: "RPC",
1807
+ reqBodyType: "formData",
1808
+ bodyType: "json",
1809
+ });
1810
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateIdentifyCredentialResponse({}));
1811
+ }
1812
+ /**
1813
+ * 创建身份凭证
1814
+ *
1815
+ * @param request - CreateIdentifyCredentialRequest
1816
+ * @returns CreateIdentifyCredentialResponse
1817
+ */
1818
+ async createIdentifyCredential(request) {
1819
+ let runtime = new $dara.RuntimeOptions({});
1820
+ return await this.createIdentifyCredentialWithOptions(request, runtime);
1821
+ }
1778
1822
  /**
1779
1823
  * Creates a lineage between a source entity and a destination entity. Either the source or destination entity must be a custom entity.
1780
1824
  *