aidp-typescript-client 4.1.0 → 4.1.1

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.
@@ -43,7 +43,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.WorkspaceObjectClient = exports.WorkspaceObjectApiKeys = exports.WorkspaceClient = exports.WorkspaceApiKeys = exports.WorkflowClient = exports.WorkflowApiKeys = exports.VolumeClient = exports.VolumeApiKeys = exports.UserSettingClient = exports.UserSettingApiKeys = exports.SemanticCatalogClient = exports.SemanticCatalogApiKeys = exports.SchemaClient = exports.SchemaApiKeys = exports.RoleClient = exports.RoleApiKeys = exports.NotebookClient = exports.NotebookApiKeys = exports.MLOpsClient = exports.MLOpsApiKeys = exports.GitClient = exports.GitApiKeys = exports.DeltaShareClient = exports.DeltaShareApiKeys = exports.CredentialsClient = exports.CredentialsApiKeys = exports.ClusterClient = exports.ClusterApiKeys = exports.CatalogClient = exports.CatalogApiKeys = exports.BundleClient = exports.BundleApiKeys = exports.AuditClient = exports.AuditApiKeys = exports.AsyncOperationsClient = exports.AsyncOperationsApiKeys = exports.AgentClient = exports.AgentApiKeys = void 0;
46
+ exports.WorkspaceObjectClient = exports.WorkspaceObjectApiKeys = exports.WorkspaceClient = exports.WorkspaceApiKeys = exports.WorkflowClient = exports.WorkflowApiKeys = exports.VolumeClient = exports.VolumeApiKeys = exports.UserSettingClient = exports.UserSettingApiKeys = exports.SchemaClient = exports.SchemaApiKeys = exports.RoleClient = exports.RoleApiKeys = exports.NotebookClient = exports.NotebookApiKeys = exports.MLOpsClient = exports.MLOpsApiKeys = exports.GitClient = exports.GitApiKeys = exports.DeltaShareClient = exports.DeltaShareApiKeys = exports.DataLineageClient = exports.DataLineageApiKeys = exports.CredentialsClient = exports.CredentialsApiKeys = exports.ClusterClient = exports.ClusterApiKeys = exports.CatalogClient = exports.CatalogApiKeys = exports.BundleClient = exports.BundleApiKeys = exports.AuditClient = exports.AuditApiKeys = exports.AsyncOperationsClient = exports.AsyncOperationsApiKeys = exports.AgentClient = exports.AgentApiKeys = void 0;
47
47
  const common = require("oci-common");
48
48
  const model = __importStar(require("./model"));
49
49
  const oci_common_1 = require("oci-common");
@@ -5640,6 +5640,268 @@ class CredentialsClient {
5640
5640
  exports.CredentialsClient = CredentialsClient;
5641
5641
  CredentialsClient.serviceEndpointTemplate = 'https://datalake.{region}.oci.{secondLevelDomain}';
5642
5642
  CredentialsClient.endpointServiceName = '';
5643
+ var DataLineageApiKeys;
5644
+ (function (DataLineageApiKeys) {
5645
+ })(DataLineageApiKeys || (exports.DataLineageApiKeys = DataLineageApiKeys = {}));
5646
+ /**
5647
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
5648
+ */
5649
+ class DataLineageClient {
5650
+ constructor(params, clientConfiguration) {
5651
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
5652
+ this["_endpoint"] = '';
5653
+ this["_defaultHeaders"] = {};
5654
+ this._circuitBreaker = null;
5655
+ this._httpOptions = undefined;
5656
+ this._bodyDuplexMode = undefined;
5657
+ this.targetService = "DataLineage";
5658
+ this._regionId = '';
5659
+ this._lastSetRegionOrRegionId = "";
5660
+ const requestSigner = params.authenticationDetailsProvider
5661
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
5662
+ : null;
5663
+ this._authProvider = params.authenticationDetailsProvider;
5664
+ if (clientConfiguration) {
5665
+ this._clientConfiguration = clientConfiguration;
5666
+ this._circuitBreaker = clientConfiguration.circuitBreaker ? clientConfiguration.circuitBreaker.circuit : null;
5667
+ this._httpOptions = clientConfiguration.httpOptions ? clientConfiguration.httpOptions : undefined;
5668
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode ? clientConfiguration.bodyDuplexMode : undefined;
5669
+ }
5670
+ if (!oci_common_1.developerToolConfiguration.isServiceEnabled("aidp")) {
5671
+ let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
5672
+ throw errmsg.concat("aidp");
5673
+ }
5674
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
5675
+ const specCircuitBreakerEnabled = true;
5676
+ if (!this._circuitBreaker && common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) && (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
5677
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
5678
+ }
5679
+ this._httpClient = params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
5680
+ if (params.authenticationDetailsProvider &&
5681
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
5682
+ const provider = params.authenticationDetailsProvider;
5683
+ if (provider.getRegion()) {
5684
+ this.region = provider.getRegion();
5685
+ }
5686
+ }
5687
+ }
5688
+ /**
5689
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
5690
+ */
5691
+ get endpoint() {
5692
+ return this._endpoint;
5693
+ }
5694
+ /**
5695
+ * Sets the endpoint to call (ex, https://www.example.com).
5696
+ * @param endpoint The endpoint of the service.
5697
+ */
5698
+ set endpoint(endpoint) {
5699
+ this._endpoint = endpoint;
5700
+ this._endpoint = this._endpoint + '/20260430';
5701
+ if (this.logger)
5702
+ this.logger.info(`DataLineageClient endpoint set to ${this._endpoint}`);
5703
+ }
5704
+ get logger() {
5705
+ return common.LOG.logger;
5706
+ }
5707
+ /**
5708
+ * Determines whether realm specific endpoint should be used or not.
5709
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
5710
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
5711
+ */
5712
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
5713
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
5714
+ if (this.logger)
5715
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
5716
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
5717
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DataLineageClient.serviceEndpointTemplate, this._region, DataLineageClient.endpointServiceName);
5718
+ }
5719
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
5720
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DataLineageClient.serviceEndpointTemplate, this._regionId, DataLineageClient.endpointServiceName);
5721
+ }
5722
+ }
5723
+ /**
5724
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
5725
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
5726
+ * @param region The region of the service.
5727
+ */
5728
+ set region(region) {
5729
+ this._region = region;
5730
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DataLineageClient.serviceEndpointTemplate, region, DataLineageClient.endpointServiceName);
5731
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
5732
+ }
5733
+ /**
5734
+ * Sets the regionId to call (ex, 'us-phoenix-1').
5735
+ *
5736
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
5737
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
5738
+ * and then call {@link #endpoint(String) endpoint}.
5739
+ * @param regionId The public region ID.
5740
+ */
5741
+ set regionId(regionId) {
5742
+ this._regionId = regionId;
5743
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DataLineageClient.serviceEndpointTemplate, regionId, DataLineageClient.endpointServiceName);
5744
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
5745
+ }
5746
+ /**
5747
+ * Shutdown the circuit breaker used by the client when it is no longer needed
5748
+ */
5749
+ shutdownCircuitBreaker() {
5750
+ if (this._circuitBreaker) {
5751
+ this._circuitBreaker.shutdown();
5752
+ }
5753
+ }
5754
+ /**
5755
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
5756
+ */
5757
+ closeProvider() {
5758
+ if (this._authProvider) {
5759
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
5760
+ this._authProvider.closeProvider();
5761
+ }
5762
+ }
5763
+ /**
5764
+ * Close the client once it is no longer needed
5765
+ */
5766
+ close() {
5767
+ this.shutdownCircuitBreaker();
5768
+ this.closeProvider();
5769
+ }
5770
+ /**
5771
+ * (Preview) Returns complete lineage for the provided anchor node in CSV format.
5772
+ *
5773
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5774
+ * @param ExportLineageRequest
5775
+ * @return ExportLineageResponse
5776
+ * @throws OciError when an error occurs
5777
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ExportLineage.ts.html |here} to see how to use ExportLineage API.
5778
+ */
5779
+ exportLineage(exportLineageRequest) {
5780
+ return __awaiter(this, void 0, void 0, function* () {
5781
+ if (this.logger)
5782
+ this.logger.debug("Calling operation DataLineageClient#exportLineage.");
5783
+ const operationName = "exportLineage";
5784
+ const apiReferenceLink = "";
5785
+ const pathParams = {
5786
+ "{aiDataPlatformId}": exportLineageRequest.aiDataPlatformId,
5787
+ };
5788
+ const queryParams = {};
5789
+ let headerParams = {
5790
+ "Content-Type": common.Constants.APPLICATION_JSON,
5791
+ 'opc-retry-token': exportLineageRequest.opcRetryToken, 'opc-request-id': exportLineageRequest.opcRequestId, 'if-match': exportLineageRequest.ifMatch,
5792
+ };
5793
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5794
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, exportLineageRequest.retryConfiguration, specRetryConfiguration);
5795
+ if (this.logger)
5796
+ retrier.logger = this.logger;
5797
+ const request = yield (0, oci_common_1.composeRequest)({
5798
+ baseEndpoint: this._endpoint,
5799
+ defaultHeaders: this._defaultHeaders,
5800
+ path: '/aiDataPlatforms/{aiDataPlatformId}/actions/exportLineage',
5801
+ method: 'POST',
5802
+ bodyContent: common.ObjectSerializer.serialize(exportLineageRequest.exportLineageDetails, "ExportLineageDetails", model.ExportLineageDetails.getJsonObj),
5803
+ pathParams: pathParams,
5804
+ headerParams: headerParams,
5805
+ queryParams: queryParams
5806
+ });
5807
+ try {
5808
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
5809
+ const sdkResponse = (0, oci_common_1.composeResponse)({
5810
+ responseObject: {},
5811
+ body: response.body,
5812
+ bodyKey: "value",
5813
+ bodyModel: "string",
5814
+ responseHeaders: [
5815
+ {
5816
+ value: response.headers.get("opc-request-id"),
5817
+ key: "opcRequestId",
5818
+ dataType: "string"
5819
+ },
5820
+ {
5821
+ value: response.headers.get("Content-Disposition"),
5822
+ key: "contentDisposition",
5823
+ dataType: "string"
5824
+ },
5825
+ ]
5826
+ });
5827
+ return sdkResponse;
5828
+ }
5829
+ catch (err) {
5830
+ throw err;
5831
+ }
5832
+ });
5833
+ }
5834
+ /**
5835
+ * (Preview) Returns lineage for a given entity object.
5836
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5837
+ * @param FetchEntityLineageRequest
5838
+ * @return FetchEntityLineageResponse
5839
+ * @throws OciError when an error occurs
5840
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/FetchEntityLineage.ts.html |here} to see how to use FetchEntityLineage API.
5841
+ */
5842
+ fetchEntityLineage(fetchEntityLineageRequest) {
5843
+ return __awaiter(this, void 0, void 0, function* () {
5844
+ if (this.logger)
5845
+ this.logger.debug("Calling operation DataLineageClient#fetchEntityLineage.");
5846
+ const operationName = "fetchEntityLineage";
5847
+ const apiReferenceLink = "";
5848
+ const pathParams = {
5849
+ "{aiDataPlatformId}": fetchEntityLineageRequest.aiDataPlatformId,
5850
+ };
5851
+ const queryParams = {
5852
+ 'limit': fetchEntityLineageRequest.limit,
5853
+ 'page': fetchEntityLineageRequest.page,
5854
+ };
5855
+ let headerParams = {
5856
+ "Content-Type": common.Constants.APPLICATION_JSON,
5857
+ 'opc-retry-token': fetchEntityLineageRequest.opcRetryToken, 'opc-request-id': fetchEntityLineageRequest.opcRequestId, 'if-match': fetchEntityLineageRequest.ifMatch,
5858
+ };
5859
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5860
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, fetchEntityLineageRequest.retryConfiguration, specRetryConfiguration);
5861
+ if (this.logger)
5862
+ retrier.logger = this.logger;
5863
+ const request = yield (0, oci_common_1.composeRequest)({
5864
+ baseEndpoint: this._endpoint,
5865
+ defaultHeaders: this._defaultHeaders,
5866
+ path: '/aiDataPlatforms/{aiDataPlatformId}/actions/fetchLineage',
5867
+ method: 'POST',
5868
+ bodyContent: common.ObjectSerializer.serialize(fetchEntityLineageRequest.fetchEntityLineageDetails, "FetchEntityLineageDetails", model.FetchEntityLineageDetails.getJsonObj),
5869
+ pathParams: pathParams,
5870
+ headerParams: headerParams,
5871
+ queryParams: queryParams
5872
+ });
5873
+ try {
5874
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
5875
+ const sdkResponse = (0, oci_common_1.composeResponse)({
5876
+ responseObject: {},
5877
+ body: yield response.json(),
5878
+ bodyKey: "entityLineage",
5879
+ bodyModel: model.EntityLineage,
5880
+ type: "model.EntityLineage",
5881
+ responseHeaders: [
5882
+ {
5883
+ value: response.headers.get("opc-request-id"),
5884
+ key: "opcRequestId",
5885
+ dataType: "string"
5886
+ },
5887
+ {
5888
+ value: response.headers.get("opc-next-page"),
5889
+ key: "opcNextPage",
5890
+ dataType: "string"
5891
+ },
5892
+ ]
5893
+ });
5894
+ return sdkResponse;
5895
+ }
5896
+ catch (err) {
5897
+ throw err;
5898
+ }
5899
+ });
5900
+ }
5901
+ }
5902
+ exports.DataLineageClient = DataLineageClient;
5903
+ DataLineageClient.serviceEndpointTemplate = 'https://datalake.{region}.oci.{secondLevelDomain}';
5904
+ DataLineageClient.endpointServiceName = '';
5643
5905
  var DeltaShareApiKeys;
5644
5906
  (function (DeltaShareApiKeys) {
5645
5907
  })(DeltaShareApiKeys || (exports.DeltaShareApiKeys = DeltaShareApiKeys = {}));
@@ -14697,268 +14959,6 @@ class SchemaClient {
14697
14959
  exports.SchemaClient = SchemaClient;
14698
14960
  SchemaClient.serviceEndpointTemplate = 'https://datalake.{region}.oci.{secondLevelDomain}';
14699
14961
  SchemaClient.endpointServiceName = '';
14700
- var SemanticCatalogApiKeys;
14701
- (function (SemanticCatalogApiKeys) {
14702
- })(SemanticCatalogApiKeys || (exports.SemanticCatalogApiKeys = SemanticCatalogApiKeys = {}));
14703
- /**
14704
- * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
14705
- */
14706
- class SemanticCatalogClient {
14707
- constructor(params, clientConfiguration) {
14708
- this["_realmSpecificEndpointTemplateEnabled"] = undefined;
14709
- this["_endpoint"] = '';
14710
- this["_defaultHeaders"] = {};
14711
- this._circuitBreaker = null;
14712
- this._httpOptions = undefined;
14713
- this._bodyDuplexMode = undefined;
14714
- this.targetService = "SemanticCatalog";
14715
- this._regionId = '';
14716
- this._lastSetRegionOrRegionId = "";
14717
- const requestSigner = params.authenticationDetailsProvider
14718
- ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
14719
- : null;
14720
- this._authProvider = params.authenticationDetailsProvider;
14721
- if (clientConfiguration) {
14722
- this._clientConfiguration = clientConfiguration;
14723
- this._circuitBreaker = clientConfiguration.circuitBreaker ? clientConfiguration.circuitBreaker.circuit : null;
14724
- this._httpOptions = clientConfiguration.httpOptions ? clientConfiguration.httpOptions : undefined;
14725
- this._bodyDuplexMode = clientConfiguration.bodyDuplexMode ? clientConfiguration.bodyDuplexMode : undefined;
14726
- }
14727
- if (!oci_common_1.developerToolConfiguration.isServiceEnabled("aidp")) {
14728
- let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
14729
- throw errmsg.concat("aidp");
14730
- }
14731
- // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
14732
- const specCircuitBreakerEnabled = true;
14733
- if (!this._circuitBreaker && common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) && (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
14734
- this._circuitBreaker = new common.CircuitBreaker().circuit;
14735
- }
14736
- this._httpClient = params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
14737
- if (params.authenticationDetailsProvider &&
14738
- common.isRegionProvider(params.authenticationDetailsProvider)) {
14739
- const provider = params.authenticationDetailsProvider;
14740
- if (provider.getRegion()) {
14741
- this.region = provider.getRegion();
14742
- }
14743
- }
14744
- }
14745
- /**
14746
- * Get the endpoint that is being used to call (ex, https://www.example.com).
14747
- */
14748
- get endpoint() {
14749
- return this._endpoint;
14750
- }
14751
- /**
14752
- * Sets the endpoint to call (ex, https://www.example.com).
14753
- * @param endpoint The endpoint of the service.
14754
- */
14755
- set endpoint(endpoint) {
14756
- this._endpoint = endpoint;
14757
- this._endpoint = this._endpoint + '/20260430';
14758
- if (this.logger)
14759
- this.logger.info(`SemanticCatalogClient endpoint set to ${this._endpoint}`);
14760
- }
14761
- get logger() {
14762
- return common.LOG.logger;
14763
- }
14764
- /**
14765
- * Determines whether realm specific endpoint should be used or not.
14766
- * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
14767
- * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
14768
- */
14769
- set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
14770
- this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
14771
- if (this.logger)
14772
- this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
14773
- if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
14774
- this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SemanticCatalogClient.serviceEndpointTemplate, this._region, SemanticCatalogClient.endpointServiceName);
14775
- }
14776
- else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
14777
- this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SemanticCatalogClient.serviceEndpointTemplate, this._regionId, SemanticCatalogClient.endpointServiceName);
14778
- }
14779
- }
14780
- /**
14781
- * Sets the region to call (ex, Region.US_PHOENIX_1).
14782
- * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
14783
- * @param region The region of the service.
14784
- */
14785
- set region(region) {
14786
- this._region = region;
14787
- this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SemanticCatalogClient.serviceEndpointTemplate, region, SemanticCatalogClient.endpointServiceName);
14788
- this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
14789
- }
14790
- /**
14791
- * Sets the regionId to call (ex, 'us-phoenix-1').
14792
- *
14793
- * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
14794
- * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
14795
- * and then call {@link #endpoint(String) endpoint}.
14796
- * @param regionId The public region ID.
14797
- */
14798
- set regionId(regionId) {
14799
- this._regionId = regionId;
14800
- this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SemanticCatalogClient.serviceEndpointTemplate, regionId, SemanticCatalogClient.endpointServiceName);
14801
- this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
14802
- }
14803
- /**
14804
- * Shutdown the circuit breaker used by the client when it is no longer needed
14805
- */
14806
- shutdownCircuitBreaker() {
14807
- if (this._circuitBreaker) {
14808
- this._circuitBreaker.shutdown();
14809
- }
14810
- }
14811
- /**
14812
- * Close the provider if possible which in turn shuts down any associated circuit breaker
14813
- */
14814
- closeProvider() {
14815
- if (this._authProvider) {
14816
- if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
14817
- this._authProvider.closeProvider();
14818
- }
14819
- }
14820
- /**
14821
- * Close the client once it is no longer needed
14822
- */
14823
- close() {
14824
- this.shutdownCircuitBreaker();
14825
- this.closeProvider();
14826
- }
14827
- /**
14828
- * (Preview) Returns complete lineage for the provided anchor node in CSV format.
14829
- *
14830
- * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
14831
- * @param ExportLineageRequest
14832
- * @return ExportLineageResponse
14833
- * @throws OciError when an error occurs
14834
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ExportLineage.ts.html |here} to see how to use ExportLineage API.
14835
- */
14836
- exportLineage(exportLineageRequest) {
14837
- return __awaiter(this, void 0, void 0, function* () {
14838
- if (this.logger)
14839
- this.logger.debug("Calling operation SemanticCatalogClient#exportLineage.");
14840
- const operationName = "exportLineage";
14841
- const apiReferenceLink = "";
14842
- const pathParams = {
14843
- "{aiDataPlatformId}": exportLineageRequest.aiDataPlatformId,
14844
- };
14845
- const queryParams = {};
14846
- let headerParams = {
14847
- "Content-Type": common.Constants.APPLICATION_JSON,
14848
- 'opc-retry-token': exportLineageRequest.opcRetryToken, 'opc-request-id': exportLineageRequest.opcRequestId, 'if-match': exportLineageRequest.ifMatch,
14849
- };
14850
- const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
14851
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, exportLineageRequest.retryConfiguration, specRetryConfiguration);
14852
- if (this.logger)
14853
- retrier.logger = this.logger;
14854
- const request = yield (0, oci_common_1.composeRequest)({
14855
- baseEndpoint: this._endpoint,
14856
- defaultHeaders: this._defaultHeaders,
14857
- path: '/aiDataPlatforms/{aiDataPlatformId}/actions/exportLineage',
14858
- method: 'POST',
14859
- bodyContent: common.ObjectSerializer.serialize(exportLineageRequest.exportLineageDetails, "ExportLineageDetails", model.ExportLineageDetails.getJsonObj),
14860
- pathParams: pathParams,
14861
- headerParams: headerParams,
14862
- queryParams: queryParams
14863
- });
14864
- try {
14865
- const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
14866
- const sdkResponse = (0, oci_common_1.composeResponse)({
14867
- responseObject: {},
14868
- body: response.body,
14869
- bodyKey: "value",
14870
- bodyModel: "string",
14871
- responseHeaders: [
14872
- {
14873
- value: response.headers.get("opc-request-id"),
14874
- key: "opcRequestId",
14875
- dataType: "string"
14876
- },
14877
- {
14878
- value: response.headers.get("Content-Disposition"),
14879
- key: "contentDisposition",
14880
- dataType: "string"
14881
- },
14882
- ]
14883
- });
14884
- return sdkResponse;
14885
- }
14886
- catch (err) {
14887
- throw err;
14888
- }
14889
- });
14890
- }
14891
- /**
14892
- * (Preview) Returns lineage for a given entity object.
14893
- * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
14894
- * @param FetchEntityLineageRequest
14895
- * @return FetchEntityLineageResponse
14896
- * @throws OciError when an error occurs
14897
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/FetchEntityLineage.ts.html |here} to see how to use FetchEntityLineage API.
14898
- */
14899
- fetchEntityLineage(fetchEntityLineageRequest) {
14900
- return __awaiter(this, void 0, void 0, function* () {
14901
- if (this.logger)
14902
- this.logger.debug("Calling operation SemanticCatalogClient#fetchEntityLineage.");
14903
- const operationName = "fetchEntityLineage";
14904
- const apiReferenceLink = "";
14905
- const pathParams = {
14906
- "{aiDataPlatformId}": fetchEntityLineageRequest.aiDataPlatformId,
14907
- };
14908
- const queryParams = {
14909
- 'limit': fetchEntityLineageRequest.limit,
14910
- 'page': fetchEntityLineageRequest.page,
14911
- };
14912
- let headerParams = {
14913
- "Content-Type": common.Constants.APPLICATION_JSON,
14914
- 'opc-retry-token': fetchEntityLineageRequest.opcRetryToken, 'opc-request-id': fetchEntityLineageRequest.opcRequestId, 'if-match': fetchEntityLineageRequest.ifMatch,
14915
- };
14916
- const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
14917
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, fetchEntityLineageRequest.retryConfiguration, specRetryConfiguration);
14918
- if (this.logger)
14919
- retrier.logger = this.logger;
14920
- const request = yield (0, oci_common_1.composeRequest)({
14921
- baseEndpoint: this._endpoint,
14922
- defaultHeaders: this._defaultHeaders,
14923
- path: '/aiDataPlatforms/{aiDataPlatformId}/actions/fetchLineage',
14924
- method: 'POST',
14925
- bodyContent: common.ObjectSerializer.serialize(fetchEntityLineageRequest.fetchEntityLineageDetails, "FetchEntityLineageDetails", model.FetchEntityLineageDetails.getJsonObj),
14926
- pathParams: pathParams,
14927
- headerParams: headerParams,
14928
- queryParams: queryParams
14929
- });
14930
- try {
14931
- const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
14932
- const sdkResponse = (0, oci_common_1.composeResponse)({
14933
- responseObject: {},
14934
- body: yield response.json(),
14935
- bodyKey: "entityLineage",
14936
- bodyModel: model.EntityLineage,
14937
- type: "model.EntityLineage",
14938
- responseHeaders: [
14939
- {
14940
- value: response.headers.get("opc-request-id"),
14941
- key: "opcRequestId",
14942
- dataType: "string"
14943
- },
14944
- {
14945
- value: response.headers.get("opc-next-page"),
14946
- key: "opcNextPage",
14947
- dataType: "string"
14948
- },
14949
- ]
14950
- });
14951
- return sdkResponse;
14952
- }
14953
- catch (err) {
14954
- throw err;
14955
- }
14956
- });
14957
- }
14958
- }
14959
- exports.SemanticCatalogClient = SemanticCatalogClient;
14960
- SemanticCatalogClient.serviceEndpointTemplate = 'https://datalake.{region}.oci.{secondLevelDomain}';
14961
- SemanticCatalogClient.endpointServiceName = '';
14962
14962
  var UserSettingApiKeys;
14963
14963
  (function (UserSettingApiKeys) {
14964
14964
  })(UserSettingApiKeys || (exports.UserSettingApiKeys = UserSettingApiKeys = {}));