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.
package/lib/client.ts CHANGED
@@ -6394,12 +6394,12 @@ export class CredentialsClient {
6394
6394
  }
6395
6395
 
6396
6396
  }
6397
- export enum DeltaShareApiKeys {
6397
+ export enum DataLineageApiKeys {
6398
6398
  }
6399
6399
  /**
6400
6400
  * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
6401
6401
  */
6402
- export class DeltaShareClient {
6402
+ export class DataLineageClient {
6403
6403
  protected static serviceEndpointTemplate = 'https://datalake.{region}.oci.{secondLevelDomain}';
6404
6404
  protected static endpointServiceName = '';
6405
6405
  protected "_realmSpecificEndpointTemplateEnabled" : boolean | undefined = undefined;
@@ -6409,7 +6409,7 @@ export class DeltaShareClient {
6409
6409
  protected _circuitBreaker: typeof Breaker | null = null;
6410
6410
  protected _httpOptions: any = undefined;
6411
6411
  protected _bodyDuplexMode: any = undefined;
6412
- public targetService = "DeltaShare";
6412
+ public targetService = "DataLineage";
6413
6413
  protected _regionId : string = '';
6414
6414
  protected "_region" : common.Region;
6415
6415
  protected _lastSetRegionOrRegionId : string = "";
@@ -6466,7 +6466,7 @@ export class DeltaShareClient {
6466
6466
  this._endpoint = endpoint;
6467
6467
  this._endpoint = this._endpoint + '/20260430';
6468
6468
  if (this.logger)
6469
- this.logger.info(`DeltaShareClient endpoint set to ${this._endpoint}`);
6469
+ this.logger.info(`DataLineageClient endpoint set to ${this._endpoint}`);
6470
6470
  }
6471
6471
 
6472
6472
  public get logger() {
@@ -6484,16 +6484,16 @@ export class DeltaShareClient {
6484
6484
  this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
6485
6485
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
6486
6486
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
6487
- DeltaShareClient.serviceEndpointTemplate,
6487
+ DataLineageClient.serviceEndpointTemplate,
6488
6488
  this._region,
6489
- DeltaShareClient.endpointServiceName,
6489
+ DataLineageClient.endpointServiceName,
6490
6490
 
6491
6491
  );
6492
6492
  } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
6493
6493
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
6494
- DeltaShareClient.serviceEndpointTemplate,
6494
+ DataLineageClient.serviceEndpointTemplate,
6495
6495
  this._regionId,
6496
- DeltaShareClient.endpointServiceName,
6496
+ DataLineageClient.endpointServiceName,
6497
6497
 
6498
6498
  );
6499
6499
  }
@@ -6507,9 +6507,9 @@ export class DeltaShareClient {
6507
6507
  public set region(region: common.Region) {
6508
6508
  this._region = region;
6509
6509
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
6510
- DeltaShareClient.serviceEndpointTemplate,
6510
+ DataLineageClient.serviceEndpointTemplate,
6511
6511
  region,
6512
- DeltaShareClient.endpointServiceName,
6512
+ DataLineageClient.endpointServiceName,
6513
6513
 
6514
6514
  );
6515
6515
  this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
@@ -6526,9 +6526,9 @@ export class DeltaShareClient {
6526
6526
  public set regionId(regionId: string) {
6527
6527
  this._regionId = regionId;
6528
6528
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
6529
- DeltaShareClient.serviceEndpointTemplate,
6529
+ DataLineageClient.serviceEndpointTemplate,
6530
6530
  regionId,
6531
- DeltaShareClient.endpointServiceName,
6531
+ DataLineageClient.endpointServiceName,
6532
6532
 
6533
6533
  );
6534
6534
  this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
@@ -6564,21 +6564,21 @@ export class DeltaShareClient {
6564
6564
  }
6565
6565
 
6566
6566
  /**
6567
- * Creates a recipient for a Delta Share protocol.
6567
+ * (Preview) Returns complete lineage for the provided anchor node in CSV format.
6568
6568
  *
6569
6569
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6570
- * @param CreateRecipientRequest
6571
- * @return CreateRecipientResponse
6570
+ * @param ExportLineageRequest
6571
+ * @return ExportLineageResponse
6572
6572
  * @throws OciError when an error occurs
6573
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CreateRecipient.ts.html |here} to see how to use CreateRecipient API.
6573
+ * @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.
6574
6574
  */
6575
- public async createRecipient (createRecipientRequest: requests.CreateRecipientRequest) : Promise<responses.CreateRecipientResponse> {
6575
+ public async exportLineage (exportLineageRequest: requests.ExportLineageRequest) : Promise<responses.ExportLineageResponse> {
6576
6576
  if (this.logger)
6577
- this.logger.debug("Calling operation DeltaShareClient#createRecipient.");
6578
- const operationName = "createRecipient";
6577
+ this.logger.debug("Calling operation DataLineageClient#exportLineage.");
6578
+ const operationName = "exportLineage";
6579
6579
  const apiReferenceLink = "";
6580
6580
  const pathParams = {
6581
- "{aiDataPlatformId}": createRecipientRequest.aiDataPlatformId,
6581
+ "{aiDataPlatformId}": exportLineageRequest.aiDataPlatformId,
6582
6582
  };
6583
6583
 
6584
6584
  const queryParams = {
@@ -6586,23 +6586,23 @@ export class DeltaShareClient {
6586
6586
 
6587
6587
  let headerParams = {
6588
6588
  "Content-Type": common.Constants.APPLICATION_JSON,
6589
- 'opc-retry-token': createRecipientRequest.opcRetryToken,'opc-request-id': createRecipientRequest.opcRequestId,'should-update-recent': createRecipientRequest.shouldUpdateRecent,
6589
+ 'opc-retry-token': exportLineageRequest.opcRetryToken,'opc-request-id': exportLineageRequest.opcRequestId,'if-match': exportLineageRequest.ifMatch,
6590
6590
  };
6591
6591
 
6592
6592
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6593
6593
  const retrier = GenericRetrier.createPreferredRetrier(
6594
6594
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
6595
- createRecipientRequest.retryConfiguration,
6595
+ exportLineageRequest.retryConfiguration,
6596
6596
  specRetryConfiguration
6597
6597
  );
6598
6598
  if (this.logger) retrier.logger = this.logger;
6599
6599
  const request = await composeRequest({
6600
6600
  baseEndpoint: this._endpoint,
6601
6601
  defaultHeaders: this._defaultHeaders,
6602
- path: '/aiDataPlatforms/{aiDataPlatformId}/recipients',
6602
+ path: '/aiDataPlatforms/{aiDataPlatformId}/actions/exportLineage',
6603
6603
  method: 'POST',
6604
- bodyContent: common.ObjectSerializer.serialize(createRecipientRequest.createRecipientDetails, "CreateRecipientDetails"
6605
- , model.CreateRecipientDetails.getJsonObj)
6604
+ bodyContent: common.ObjectSerializer.serialize(exportLineageRequest.exportLineageDetails, "ExportLineageDetails"
6605
+ , model.ExportLineageDetails.getJsonObj)
6606
6606
  ,
6607
6607
  pathParams: pathParams,
6608
6608
  headerParams: headerParams,
@@ -6611,20 +6611,20 @@ export class DeltaShareClient {
6611
6611
  try {
6612
6612
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
6613
6613
  const sdkResponse = composeResponse({
6614
- responseObject: <responses.CreateRecipientResponse>{},
6615
- body: await response.json(),
6616
- bodyKey: "recipient",
6617
- bodyModel: model.Recipient,
6618
- type: "model.Recipient",
6614
+ responseObject: <responses.ExportLineageResponse>{},
6615
+
6616
+ body: response.body!,
6617
+ bodyKey: "value",
6618
+ bodyModel: "string",
6619
6619
  responseHeaders: [
6620
6620
  {
6621
- value: response.headers.get("etag"),
6622
- key: "etag",
6621
+ value: response.headers.get("opc-request-id"),
6622
+ key: "opcRequestId",
6623
6623
  dataType: "string"
6624
6624
  },
6625
6625
  {
6626
- value: response.headers.get("opc-request-id"),
6627
- key: "opcRequestId",
6626
+ value: response.headers.get("Content-Disposition"),
6627
+ key: "contentDisposition",
6628
6628
  dataType: "string"
6629
6629
  },
6630
6630
  ]
@@ -6638,45 +6638,46 @@ export class DeltaShareClient {
6638
6638
  }
6639
6639
 
6640
6640
  /**
6641
- * Creates a Delta Share protocol.
6642
- *
6641
+ * (Preview) Returns lineage for a given entity object.
6643
6642
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6644
- * @param CreateShareRequest
6645
- * @return CreateShareResponse
6643
+ * @param FetchEntityLineageRequest
6644
+ * @return FetchEntityLineageResponse
6646
6645
  * @throws OciError when an error occurs
6647
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CreateShare.ts.html |here} to see how to use CreateShare API.
6646
+ * @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.
6648
6647
  */
6649
- public async createShare (createShareRequest: requests.CreateShareRequest) : Promise<responses.CreateShareResponse> {
6648
+ public async fetchEntityLineage (fetchEntityLineageRequest: requests.FetchEntityLineageRequest) : Promise<responses.FetchEntityLineageResponse> {
6650
6649
  if (this.logger)
6651
- this.logger.debug("Calling operation DeltaShareClient#createShare.");
6652
- const operationName = "createShare";
6650
+ this.logger.debug("Calling operation DataLineageClient#fetchEntityLineage.");
6651
+ const operationName = "fetchEntityLineage";
6653
6652
  const apiReferenceLink = "";
6654
6653
  const pathParams = {
6655
- "{aiDataPlatformId}": createShareRequest.aiDataPlatformId,
6654
+ "{aiDataPlatformId}": fetchEntityLineageRequest.aiDataPlatformId,
6656
6655
  };
6657
6656
 
6658
6657
  const queryParams = {
6658
+ 'limit': fetchEntityLineageRequest.limit,
6659
+ 'page': fetchEntityLineageRequest.page,
6659
6660
  };
6660
6661
 
6661
6662
  let headerParams = {
6662
6663
  "Content-Type": common.Constants.APPLICATION_JSON,
6663
- 'opc-retry-token': createShareRequest.opcRetryToken,'opc-request-id': createShareRequest.opcRequestId,'should-update-recent': createShareRequest.shouldUpdateRecent,
6664
+ 'opc-retry-token': fetchEntityLineageRequest.opcRetryToken,'opc-request-id': fetchEntityLineageRequest.opcRequestId,'if-match': fetchEntityLineageRequest.ifMatch,
6664
6665
  };
6665
6666
 
6666
6667
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6667
6668
  const retrier = GenericRetrier.createPreferredRetrier(
6668
6669
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
6669
- createShareRequest.retryConfiguration,
6670
+ fetchEntityLineageRequest.retryConfiguration,
6670
6671
  specRetryConfiguration
6671
6672
  );
6672
6673
  if (this.logger) retrier.logger = this.logger;
6673
6674
  const request = await composeRequest({
6674
6675
  baseEndpoint: this._endpoint,
6675
6676
  defaultHeaders: this._defaultHeaders,
6676
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares',
6677
+ path: '/aiDataPlatforms/{aiDataPlatformId}/actions/fetchLineage',
6677
6678
  method: 'POST',
6678
- bodyContent: common.ObjectSerializer.serialize(createShareRequest.createShareDetails, "CreateShareDetails"
6679
- , model.CreateShareDetails.getJsonObj)
6679
+ bodyContent: common.ObjectSerializer.serialize(fetchEntityLineageRequest.fetchEntityLineageDetails, "FetchEntityLineageDetails"
6680
+ , model.FetchEntityLineageDetails.getJsonObj)
6680
6681
  ,
6681
6682
  pathParams: pathParams,
6682
6683
  headerParams: headerParams,
@@ -6685,20 +6686,20 @@ export class DeltaShareClient {
6685
6686
  try {
6686
6687
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
6687
6688
  const sdkResponse = composeResponse({
6688
- responseObject: <responses.CreateShareResponse>{},
6689
+ responseObject: <responses.FetchEntityLineageResponse>{},
6689
6690
  body: await response.json(),
6690
- bodyKey: "share",
6691
- bodyModel: model.Share,
6692
- type: "model.Share",
6691
+ bodyKey: "entityLineage",
6692
+ bodyModel: model.EntityLineage,
6693
+ type: "model.EntityLineage",
6693
6694
  responseHeaders: [
6694
6695
  {
6695
- value: response.headers.get("etag"),
6696
- key: "etag",
6696
+ value: response.headers.get("opc-request-id"),
6697
+ key: "opcRequestId",
6697
6698
  dataType: "string"
6698
6699
  },
6699
6700
  {
6700
- value: response.headers.get("opc-request-id"),
6701
- key: "opcRequestId",
6701
+ value: response.headers.get("opc-next-page"),
6702
+ key: "opcNextPage",
6702
6703
  dataType: "string"
6703
6704
  },
6704
6705
  ]
@@ -6711,146 +6712,192 @@ export class DeltaShareClient {
6711
6712
  }
6712
6713
  }
6713
6714
 
6714
- /**
6715
- * Deletes a Delta Share recipient.
6716
- * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6717
- * @param DeleteRecipientRequest
6718
- * @return DeleteRecipientResponse
6719
- * @throws OciError when an error occurs
6720
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/DeleteRecipient.ts.html |here} to see how to use DeleteRecipient API.
6721
- */
6722
- public async deleteRecipient (deleteRecipientRequest: requests.DeleteRecipientRequest) : Promise<responses.DeleteRecipientResponse> {
6723
- if (this.logger)
6724
- this.logger.debug("Calling operation DeltaShareClient#deleteRecipient.");
6725
- const operationName = "deleteRecipient";
6726
- const apiReferenceLink = "";
6727
- const pathParams = {
6728
- "{aiDataPlatformId}": deleteRecipientRequest.aiDataPlatformId,
6729
- "{recipientKey}": deleteRecipientRequest.recipientKey,
6730
- };
6731
-
6732
- const queryParams = {
6733
- };
6715
+ }
6716
+ export enum DeltaShareApiKeys {
6717
+ }
6718
+ /**
6719
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
6720
+ */
6721
+ export class DeltaShareClient {
6722
+ protected static serviceEndpointTemplate = 'https://datalake.{region}.oci.{secondLevelDomain}';
6723
+ protected static endpointServiceName = '';
6724
+ protected "_realmSpecificEndpointTemplateEnabled" : boolean | undefined = undefined;
6725
+ protected "_endpoint" : string = '';
6726
+ protected "_defaultHeaders" : any = {};
6727
+ protected "_clientConfiguration": common.ClientConfiguration;
6728
+ protected _circuitBreaker: typeof Breaker | null = null;
6729
+ protected _httpOptions: any = undefined;
6730
+ protected _bodyDuplexMode: any = undefined;
6731
+ public targetService = "DeltaShare";
6732
+ protected _regionId : string = '';
6733
+ protected "_region" : common.Region;
6734
+ protected _lastSetRegionOrRegionId : string = "";
6734
6735
 
6735
- let headerParams = {
6736
- "Content-Type": common.Constants.APPLICATION_JSON,
6737
- 'if-match': deleteRecipientRequest.ifMatch,'opc-request-id': deleteRecipientRequest.opcRequestId,'should-update-recent': deleteRecipientRequest.shouldUpdateRecent,
6738
- };
6736
+ protected _httpClient: common.HttpClient;
6737
+ protected _authProvider: common.AuthenticationDetailsProvider | undefined;
6739
6738
 
6740
- const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6741
- const retrier = GenericRetrier.createPreferredRetrier(
6742
- this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
6743
- deleteRecipientRequest.retryConfiguration,
6744
- specRetryConfiguration
6745
- );
6746
- if (this.logger) retrier.logger = this.logger;
6747
- const request = await composeRequest({
6748
- baseEndpoint: this._endpoint,
6749
- defaultHeaders: this._defaultHeaders,
6750
- path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}',
6751
- method: 'DELETE',
6752
- pathParams: pathParams,
6753
- headerParams: headerParams,
6754
- queryParams: queryParams
6755
- });
6756
- try {
6757
- const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
6758
- const sdkResponse = composeResponse({
6759
- responseObject: <responses.DeleteRecipientResponse>{},
6760
- responseHeaders: [
6761
- {
6762
- value: response.headers.get("opc-request-id"),
6763
- key: "opcRequestId",
6764
- dataType: "string"
6765
- },
6766
- ]
6767
- });
6739
+ constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) {
6740
+ const requestSigner = params.authenticationDetailsProvider
6741
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
6742
+ : null;
6743
+ this._authProvider = params.authenticationDetailsProvider;
6744
+ if (clientConfiguration) {
6745
+ this._clientConfiguration = clientConfiguration;
6746
+ this._circuitBreaker = clientConfiguration.circuitBreaker ? clientConfiguration.circuitBreaker!.circuit : null;
6747
+ this._httpOptions = clientConfiguration.httpOptions ? clientConfiguration.httpOptions : undefined;
6748
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode ? clientConfiguration.bodyDuplexMode : undefined;
6749
+ }
6768
6750
 
6769
- return sdkResponse;
6751
+ if (!developerToolConfiguration.isServiceEnabled("aidp"))
6752
+ {
6753
+ 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 : ";
6754
+ throw errmsg.concat("aidp");
6770
6755
  }
6771
- catch (err) {
6772
- throw err;
6756
+
6757
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
6758
+ const specCircuitBreakerEnabled = true;
6759
+ if (!this._circuitBreaker && common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
6760
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
6761
+ }
6762
+ this._httpClient = params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
6763
+
6764
+ if (params.authenticationDetailsProvider &&
6765
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
6766
+ const provider: common.RegionProvider = params.authenticationDetailsProvider;
6767
+ if (provider.getRegion()) {
6768
+ this.region = provider.getRegion();
6773
6769
  }
6770
+ }
6774
6771
  }
6775
6772
 
6776
6773
  /**
6777
- * Deletes a Delta Share.
6778
- * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6779
- * @param DeleteShareRequest
6780
- * @return DeleteShareResponse
6781
- * @throws OciError when an error occurs
6782
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/DeleteShare.ts.html |here} to see how to use DeleteShare API.
6783
- */
6784
- public async deleteShare (deleteShareRequest: requests.DeleteShareRequest) : Promise<responses.DeleteShareResponse> {
6785
- if (this.logger)
6786
- this.logger.debug("Calling operation DeltaShareClient#deleteShare.");
6787
- const operationName = "deleteShare";
6788
- const apiReferenceLink = "";
6789
- const pathParams = {
6790
- "{aiDataPlatformId}": deleteShareRequest.aiDataPlatformId,
6791
- "{shareKey}": deleteShareRequest.shareKey,
6792
- };
6774
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
6775
+ */
6776
+ public get endpoint() {
6777
+ return this._endpoint;
6778
+ }
6793
6779
 
6794
- const queryParams = {
6795
- };
6780
+ /**
6781
+ * Sets the endpoint to call (ex, https://www.example.com).
6782
+ * @param endpoint The endpoint of the service.
6783
+ */
6784
+ public set endpoint(endpoint: string) {
6785
+ this._endpoint = endpoint;
6786
+ this._endpoint = this._endpoint + '/20260430';
6787
+ if (this.logger)
6788
+ this.logger.info(`DeltaShareClient endpoint set to ${this._endpoint}`);
6789
+ }
6796
6790
 
6797
- let headerParams = {
6798
- "Content-Type": common.Constants.APPLICATION_JSON,
6799
- 'if-match': deleteShareRequest.ifMatch,'opc-request-id': deleteShareRequest.opcRequestId,'should-update-recent': deleteShareRequest.shouldUpdateRecent,
6800
- };
6791
+ public get logger() {
6792
+ return common.LOG.logger;
6793
+ }
6801
6794
 
6802
- const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6803
- const retrier = GenericRetrier.createPreferredRetrier(
6804
- this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
6805
- deleteShareRequest.retryConfiguration,
6806
- specRetryConfiguration
6807
- );
6808
- if (this.logger) retrier.logger = this.logger;
6809
- const request = await composeRequest({
6810
- baseEndpoint: this._endpoint,
6811
- defaultHeaders: this._defaultHeaders,
6812
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}',
6813
- method: 'DELETE',
6814
- pathParams: pathParams,
6815
- headerParams: headerParams,
6816
- queryParams: queryParams
6817
- });
6818
- try {
6819
- const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
6820
- const sdkResponse = composeResponse({
6821
- responseObject: <responses.DeleteShareResponse>{},
6822
- responseHeaders: [
6823
- {
6824
- value: response.headers.get("opc-request-id"),
6825
- key: "opcRequestId",
6826
- dataType: "string"
6827
- },
6828
- ]
6829
- });
6795
+ /**
6796
+ * Determines whether realm specific endpoint should be used or not.
6797
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
6798
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
6799
+ */
6800
+ public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled : boolean) {
6801
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
6802
+ if (this.logger)
6803
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
6804
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
6805
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
6806
+ DeltaShareClient.serviceEndpointTemplate,
6807
+ this._region,
6808
+ DeltaShareClient.endpointServiceName,
6809
+
6810
+ );
6811
+ } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
6812
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
6813
+ DeltaShareClient.serviceEndpointTemplate,
6814
+ this._regionId,
6815
+ DeltaShareClient.endpointServiceName,
6816
+
6817
+ );
6818
+ }
6819
+ }
6830
6820
 
6831
- return sdkResponse;
6821
+ /**
6822
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
6823
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
6824
+ * @param region The region of the service.
6825
+ */
6826
+ public set region(region: common.Region) {
6827
+ this._region = region;
6828
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
6829
+ DeltaShareClient.serviceEndpointTemplate,
6830
+ region,
6831
+ DeltaShareClient.endpointServiceName,
6832
+
6833
+ );
6834
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
6835
+ }
6836
+
6837
+ /**
6838
+ * Sets the regionId to call (ex, 'us-phoenix-1').
6839
+ *
6840
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
6841
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
6842
+ * and then call {@link #endpoint(String) endpoint}.
6843
+ * @param regionId The public region ID.
6844
+ */
6845
+ public set regionId(regionId: string) {
6846
+ this._regionId = regionId;
6847
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
6848
+ DeltaShareClient.serviceEndpointTemplate,
6849
+ regionId,
6850
+ DeltaShareClient.endpointServiceName,
6851
+
6852
+ );
6853
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
6854
+ }
6855
+
6856
+
6857
+
6858
+ /**
6859
+ * Shutdown the circuit breaker used by the client when it is no longer needed
6860
+ */
6861
+ public shutdownCircuitBreaker() {
6862
+ if (this._circuitBreaker) {
6863
+ this._circuitBreaker.shutdown();
6832
6864
  }
6833
- catch (err) {
6834
- throw err;
6865
+ }
6866
+
6867
+ /**
6868
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
6869
+ */
6870
+ public closeProvider() {
6871
+ if (this._authProvider) {
6872
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
6873
+ (<common.AbstractRequestingAuthenticationDetailsProvider>this._authProvider).closeProvider();
6835
6874
  }
6836
6875
  }
6837
6876
 
6838
6877
  /**
6839
- * Gets detailed information about a Delta Share recipient.
6878
+ * Close the client once it is no longer needed
6879
+ */
6880
+ public close() {
6881
+ this.shutdownCircuitBreaker();
6882
+ this.closeProvider();
6883
+ }
6884
+
6885
+ /**
6886
+ * Creates a recipient for a Delta Share protocol.
6887
+ *
6840
6888
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6841
- * @param GetRecipientRequest
6842
- * @return GetRecipientResponse
6889
+ * @param CreateRecipientRequest
6890
+ * @return CreateRecipientResponse
6843
6891
  * @throws OciError when an error occurs
6844
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/GetRecipient.ts.html |here} to see how to use GetRecipient API.
6892
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CreateRecipient.ts.html |here} to see how to use CreateRecipient API.
6845
6893
  */
6846
- public async getRecipient (getRecipientRequest: requests.GetRecipientRequest) : Promise<responses.GetRecipientResponse> {
6894
+ public async createRecipient (createRecipientRequest: requests.CreateRecipientRequest) : Promise<responses.CreateRecipientResponse> {
6847
6895
  if (this.logger)
6848
- this.logger.debug("Calling operation DeltaShareClient#getRecipient.");
6849
- const operationName = "getRecipient";
6896
+ this.logger.debug("Calling operation DeltaShareClient#createRecipient.");
6897
+ const operationName = "createRecipient";
6850
6898
  const apiReferenceLink = "";
6851
6899
  const pathParams = {
6852
- "{aiDataPlatformId}": getRecipientRequest.aiDataPlatformId,
6853
- "{recipientKey}": getRecipientRequest.recipientKey,
6900
+ "{aiDataPlatformId}": createRecipientRequest.aiDataPlatformId,
6854
6901
  };
6855
6902
 
6856
6903
  const queryParams = {
@@ -6858,21 +6905,24 @@ export class DeltaShareClient {
6858
6905
 
6859
6906
  let headerParams = {
6860
6907
  "Content-Type": common.Constants.APPLICATION_JSON,
6861
- 'opc-request-id': getRecipientRequest.opcRequestId,'should-update-recent': getRecipientRequest.shouldUpdateRecent,
6908
+ 'opc-retry-token': createRecipientRequest.opcRetryToken,'opc-request-id': createRecipientRequest.opcRequestId,'should-update-recent': createRecipientRequest.shouldUpdateRecent,
6862
6909
  };
6863
6910
 
6864
6911
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6865
6912
  const retrier = GenericRetrier.createPreferredRetrier(
6866
6913
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
6867
- getRecipientRequest.retryConfiguration,
6914
+ createRecipientRequest.retryConfiguration,
6868
6915
  specRetryConfiguration
6869
6916
  );
6870
6917
  if (this.logger) retrier.logger = this.logger;
6871
6918
  const request = await composeRequest({
6872
6919
  baseEndpoint: this._endpoint,
6873
6920
  defaultHeaders: this._defaultHeaders,
6874
- path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}',
6875
- method: 'GET',
6921
+ path: '/aiDataPlatforms/{aiDataPlatformId}/recipients',
6922
+ method: 'POST',
6923
+ bodyContent: common.ObjectSerializer.serialize(createRecipientRequest.createRecipientDetails, "CreateRecipientDetails"
6924
+ , model.CreateRecipientDetails.getJsonObj)
6925
+ ,
6876
6926
  pathParams: pathParams,
6877
6927
  headerParams: headerParams,
6878
6928
  queryParams: queryParams
@@ -6880,7 +6930,7 @@ export class DeltaShareClient {
6880
6930
  try {
6881
6931
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
6882
6932
  const sdkResponse = composeResponse({
6883
- responseObject: <responses.GetRecipientResponse>{},
6933
+ responseObject: <responses.CreateRecipientResponse>{},
6884
6934
  body: await response.json(),
6885
6935
  bodyKey: "recipient",
6886
6936
  bodyModel: model.Recipient,
@@ -6907,21 +6957,21 @@ export class DeltaShareClient {
6907
6957
  }
6908
6958
 
6909
6959
  /**
6910
- * Gets detailed information about a Delta Share.
6960
+ * Creates a Delta Share protocol.
6961
+ *
6911
6962
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6912
- * @param GetShareRequest
6913
- * @return GetShareResponse
6963
+ * @param CreateShareRequest
6964
+ * @return CreateShareResponse
6914
6965
  * @throws OciError when an error occurs
6915
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/GetShare.ts.html |here} to see how to use GetShare API.
6966
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CreateShare.ts.html |here} to see how to use CreateShare API.
6916
6967
  */
6917
- public async getShare (getShareRequest: requests.GetShareRequest) : Promise<responses.GetShareResponse> {
6968
+ public async createShare (createShareRequest: requests.CreateShareRequest) : Promise<responses.CreateShareResponse> {
6918
6969
  if (this.logger)
6919
- this.logger.debug("Calling operation DeltaShareClient#getShare.");
6920
- const operationName = "getShare";
6970
+ this.logger.debug("Calling operation DeltaShareClient#createShare.");
6971
+ const operationName = "createShare";
6921
6972
  const apiReferenceLink = "";
6922
6973
  const pathParams = {
6923
- "{aiDataPlatformId}": getShareRequest.aiDataPlatformId,
6924
- "{shareKey}": getShareRequest.shareKey,
6974
+ "{aiDataPlatformId}": createShareRequest.aiDataPlatformId,
6925
6975
  };
6926
6976
 
6927
6977
  const queryParams = {
@@ -6929,21 +6979,24 @@ export class DeltaShareClient {
6929
6979
 
6930
6980
  let headerParams = {
6931
6981
  "Content-Type": common.Constants.APPLICATION_JSON,
6932
- 'opc-request-id': getShareRequest.opcRequestId,'should-update-recent': getShareRequest.shouldUpdateRecent,
6982
+ 'opc-retry-token': createShareRequest.opcRetryToken,'opc-request-id': createShareRequest.opcRequestId,'should-update-recent': createShareRequest.shouldUpdateRecent,
6933
6983
  };
6934
6984
 
6935
6985
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
6936
6986
  const retrier = GenericRetrier.createPreferredRetrier(
6937
6987
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
6938
- getShareRequest.retryConfiguration,
6988
+ createShareRequest.retryConfiguration,
6939
6989
  specRetryConfiguration
6940
6990
  );
6941
6991
  if (this.logger) retrier.logger = this.logger;
6942
6992
  const request = await composeRequest({
6943
6993
  baseEndpoint: this._endpoint,
6944
6994
  defaultHeaders: this._defaultHeaders,
6945
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}',
6946
- method: 'GET',
6995
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares',
6996
+ method: 'POST',
6997
+ bodyContent: common.ObjectSerializer.serialize(createShareRequest.createShareDetails, "CreateShareDetails"
6998
+ , model.CreateShareDetails.getJsonObj)
6999
+ ,
6947
7000
  pathParams: pathParams,
6948
7001
  headerParams: headerParams,
6949
7002
  queryParams: queryParams
@@ -6951,7 +7004,7 @@ export class DeltaShareClient {
6951
7004
  try {
6952
7005
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
6953
7006
  const sdkResponse = composeResponse({
6954
- responseObject: <responses.GetShareResponse>{},
7007
+ responseObject: <responses.CreateShareResponse>{},
6955
7008
  body: await response.json(),
6956
7009
  bodyKey: "share",
6957
7010
  bodyModel: model.Share,
@@ -6978,48 +7031,43 @@ export class DeltaShareClient {
6978
7031
  }
6979
7032
 
6980
7033
  /**
6981
- * Gets a detailed list of Delta Share recipient permissions.
6982
- *
7034
+ * Deletes a Delta Share recipient.
6983
7035
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
6984
- * @param ListRecipientPermissionsRequest
6985
- * @return ListRecipientPermissionsResponse
7036
+ * @param DeleteRecipientRequest
7037
+ * @return DeleteRecipientResponse
6986
7038
  * @throws OciError when an error occurs
6987
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListRecipientPermissions.ts.html |here} to see how to use ListRecipientPermissions API.
7039
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/DeleteRecipient.ts.html |here} to see how to use DeleteRecipient API.
6988
7040
  */
6989
- public async listRecipientPermissions (listRecipientPermissionsRequest: requests.ListRecipientPermissionsRequest) : Promise<responses.ListRecipientPermissionsResponse> {
7041
+ public async deleteRecipient (deleteRecipientRequest: requests.DeleteRecipientRequest) : Promise<responses.DeleteRecipientResponse> {
6990
7042
  if (this.logger)
6991
- this.logger.debug("Calling operation DeltaShareClient#listRecipientPermissions.");
6992
- const operationName = "listRecipientPermissions";
7043
+ this.logger.debug("Calling operation DeltaShareClient#deleteRecipient.");
7044
+ const operationName = "deleteRecipient";
6993
7045
  const apiReferenceLink = "";
6994
7046
  const pathParams = {
6995
- "{aiDataPlatformId}": listRecipientPermissionsRequest.aiDataPlatformId,
6996
- "{recipientKey}": listRecipientPermissionsRequest.recipientKey,
7047
+ "{aiDataPlatformId}": deleteRecipientRequest.aiDataPlatformId,
7048
+ "{recipientKey}": deleteRecipientRequest.recipientKey,
6997
7049
  };
6998
7050
 
6999
7051
  const queryParams = {
7000
- 'limit': listRecipientPermissionsRequest.limit,
7001
- 'page': listRecipientPermissionsRequest.page,
7002
- 'sortOrder': listRecipientPermissionsRequest.sortOrder,
7003
- 'sortBy': listRecipientPermissionsRequest.sortBy,
7004
7052
  };
7005
7053
 
7006
7054
  let headerParams = {
7007
7055
  "Content-Type": common.Constants.APPLICATION_JSON,
7008
- 'opc-request-id': listRecipientPermissionsRequest.opcRequestId,'should-update-recent': listRecipientPermissionsRequest.shouldUpdateRecent,
7056
+ 'if-match': deleteRecipientRequest.ifMatch,'opc-request-id': deleteRecipientRequest.opcRequestId,'should-update-recent': deleteRecipientRequest.shouldUpdateRecent,
7009
7057
  };
7010
7058
 
7011
7059
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7012
7060
  const retrier = GenericRetrier.createPreferredRetrier(
7013
7061
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7014
- listRecipientPermissionsRequest.retryConfiguration,
7062
+ deleteRecipientRequest.retryConfiguration,
7015
7063
  specRetryConfiguration
7016
7064
  );
7017
7065
  if (this.logger) retrier.logger = this.logger;
7018
7066
  const request = await composeRequest({
7019
7067
  baseEndpoint: this._endpoint,
7020
7068
  defaultHeaders: this._defaultHeaders,
7021
- path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}/permissions',
7022
- method: 'GET',
7069
+ path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}',
7070
+ method: 'DELETE',
7023
7071
  pathParams: pathParams,
7024
7072
  headerParams: headerParams,
7025
7073
  queryParams: queryParams
@@ -7027,22 +7075,13 @@ export class DeltaShareClient {
7027
7075
  try {
7028
7076
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7029
7077
  const sdkResponse = composeResponse({
7030
- responseObject: <responses.ListRecipientPermissionsResponse>{},
7031
- body: await response.json(),
7032
- bodyKey: "recipientPermissionCollection",
7033
- bodyModel: model.RecipientPermissionCollection,
7034
- type: "model.RecipientPermissionCollection",
7078
+ responseObject: <responses.DeleteRecipientResponse>{},
7035
7079
  responseHeaders: [
7036
7080
  {
7037
7081
  value: response.headers.get("opc-request-id"),
7038
7082
  key: "opcRequestId",
7039
7083
  dataType: "string"
7040
7084
  },
7041
- {
7042
- value: response.headers.get("opc-next-page"),
7043
- key: "opcNextPage",
7044
- dataType: "string"
7045
- },
7046
7085
  ]
7047
7086
  });
7048
7087
 
@@ -7054,49 +7093,43 @@ export class DeltaShareClient {
7054
7093
  }
7055
7094
 
7056
7095
  /**
7057
- * Returns a list of Delta Shares that the specified recipient has been granted access to.
7058
- *
7096
+ * Deletes a Delta Share.
7059
7097
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7060
- * @param ListRecipientSharesRequest
7061
- * @return ListRecipientSharesResponse
7098
+ * @param DeleteShareRequest
7099
+ * @return DeleteShareResponse
7062
7100
  * @throws OciError when an error occurs
7063
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListRecipientShares.ts.html |here} to see how to use ListRecipientShares API.
7101
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/DeleteShare.ts.html |here} to see how to use DeleteShare API.
7064
7102
  */
7065
- public async listRecipientShares (listRecipientSharesRequest: requests.ListRecipientSharesRequest) : Promise<responses.ListRecipientSharesResponse> {
7103
+ public async deleteShare (deleteShareRequest: requests.DeleteShareRequest) : Promise<responses.DeleteShareResponse> {
7066
7104
  if (this.logger)
7067
- this.logger.debug("Calling operation DeltaShareClient#listRecipientShares.");
7068
- const operationName = "listRecipientShares";
7105
+ this.logger.debug("Calling operation DeltaShareClient#deleteShare.");
7106
+ const operationName = "deleteShare";
7069
7107
  const apiReferenceLink = "";
7070
7108
  const pathParams = {
7071
- "{aiDataPlatformId}": listRecipientSharesRequest.aiDataPlatformId,
7072
- "{recipientKey}": listRecipientSharesRequest.recipientKey,
7109
+ "{aiDataPlatformId}": deleteShareRequest.aiDataPlatformId,
7110
+ "{shareKey}": deleteShareRequest.shareKey,
7073
7111
  };
7074
7112
 
7075
7113
  const queryParams = {
7076
- 'displayName': listRecipientSharesRequest.displayName,
7077
- 'limit': listRecipientSharesRequest.limit,
7078
- 'page': listRecipientSharesRequest.page,
7079
- 'sortOrder': listRecipientSharesRequest.sortOrder,
7080
- 'sortBy': listRecipientSharesRequest.sortBy,
7081
7114
  };
7082
7115
 
7083
7116
  let headerParams = {
7084
7117
  "Content-Type": common.Constants.APPLICATION_JSON,
7085
- 'opc-request-id': listRecipientSharesRequest.opcRequestId,'should-update-recent': listRecipientSharesRequest.shouldUpdateRecent,
7118
+ 'if-match': deleteShareRequest.ifMatch,'opc-request-id': deleteShareRequest.opcRequestId,'should-update-recent': deleteShareRequest.shouldUpdateRecent,
7086
7119
  };
7087
7120
 
7088
7121
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7089
7122
  const retrier = GenericRetrier.createPreferredRetrier(
7090
7123
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7091
- listRecipientSharesRequest.retryConfiguration,
7124
+ deleteShareRequest.retryConfiguration,
7092
7125
  specRetryConfiguration
7093
7126
  );
7094
7127
  if (this.logger) retrier.logger = this.logger;
7095
7128
  const request = await composeRequest({
7096
7129
  baseEndpoint: this._endpoint,
7097
7130
  defaultHeaders: this._defaultHeaders,
7098
- path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}/shares',
7099
- method: 'GET',
7131
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}',
7132
+ method: 'DELETE',
7100
7133
  pathParams: pathParams,
7101
7134
  headerParams: headerParams,
7102
7135
  queryParams: queryParams
@@ -7104,22 +7137,13 @@ export class DeltaShareClient {
7104
7137
  try {
7105
7138
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7106
7139
  const sdkResponse = composeResponse({
7107
- responseObject: <responses.ListRecipientSharesResponse>{},
7108
- body: await response.json(),
7109
- bodyKey: "shareCollection",
7110
- bodyModel: model.ShareCollection,
7111
- type: "model.ShareCollection",
7140
+ responseObject: <responses.DeleteShareResponse>{},
7112
7141
  responseHeaders: [
7113
7142
  {
7114
7143
  value: response.headers.get("opc-request-id"),
7115
7144
  key: "opcRequestId",
7116
7145
  dataType: "string"
7117
7146
  },
7118
- {
7119
- value: response.headers.get("opc-next-page"),
7120
- key: "opcNextPage",
7121
- dataType: "string"
7122
- },
7123
7147
  ]
7124
7148
  });
7125
7149
 
@@ -7131,47 +7155,42 @@ export class DeltaShareClient {
7131
7155
  }
7132
7156
 
7133
7157
  /**
7134
- * Gets a list of Delta Share recipients.
7135
- *
7158
+ * Gets detailed information about a Delta Share recipient.
7136
7159
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7137
- * @param ListRecipientsRequest
7138
- * @return ListRecipientsResponse
7160
+ * @param GetRecipientRequest
7161
+ * @return GetRecipientResponse
7139
7162
  * @throws OciError when an error occurs
7140
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListRecipients.ts.html |here} to see how to use ListRecipients API.
7163
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/GetRecipient.ts.html |here} to see how to use GetRecipient API.
7141
7164
  */
7142
- public async listRecipients (listRecipientsRequest: requests.ListRecipientsRequest) : Promise<responses.ListRecipientsResponse> {
7165
+ public async getRecipient (getRecipientRequest: requests.GetRecipientRequest) : Promise<responses.GetRecipientResponse> {
7143
7166
  if (this.logger)
7144
- this.logger.debug("Calling operation DeltaShareClient#listRecipients.");
7145
- const operationName = "listRecipients";
7167
+ this.logger.debug("Calling operation DeltaShareClient#getRecipient.");
7168
+ const operationName = "getRecipient";
7146
7169
  const apiReferenceLink = "";
7147
7170
  const pathParams = {
7148
- "{aiDataPlatformId}": listRecipientsRequest.aiDataPlatformId,
7171
+ "{aiDataPlatformId}": getRecipientRequest.aiDataPlatformId,
7172
+ "{recipientKey}": getRecipientRequest.recipientKey,
7149
7173
  };
7150
7174
 
7151
7175
  const queryParams = {
7152
- 'displayName': listRecipientsRequest.displayName,
7153
- 'limit': listRecipientsRequest.limit,
7154
- 'page': listRecipientsRequest.page,
7155
- 'sortOrder': listRecipientsRequest.sortOrder,
7156
- 'sortBy': listRecipientsRequest.sortBy,
7157
7176
  };
7158
7177
 
7159
7178
  let headerParams = {
7160
7179
  "Content-Type": common.Constants.APPLICATION_JSON,
7161
- 'opc-request-id': listRecipientsRequest.opcRequestId,
7180
+ 'opc-request-id': getRecipientRequest.opcRequestId,'should-update-recent': getRecipientRequest.shouldUpdateRecent,
7162
7181
  };
7163
7182
 
7164
7183
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7165
7184
  const retrier = GenericRetrier.createPreferredRetrier(
7166
7185
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7167
- listRecipientsRequest.retryConfiguration,
7186
+ getRecipientRequest.retryConfiguration,
7168
7187
  specRetryConfiguration
7169
7188
  );
7170
7189
  if (this.logger) retrier.logger = this.logger;
7171
7190
  const request = await composeRequest({
7172
7191
  baseEndpoint: this._endpoint,
7173
7192
  defaultHeaders: this._defaultHeaders,
7174
- path: '/aiDataPlatforms/{aiDataPlatformId}/recipients',
7193
+ path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}',
7175
7194
  method: 'GET',
7176
7195
  pathParams: pathParams,
7177
7196
  headerParams: headerParams,
@@ -7180,20 +7199,20 @@ export class DeltaShareClient {
7180
7199
  try {
7181
7200
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7182
7201
  const sdkResponse = composeResponse({
7183
- responseObject: <responses.ListRecipientsResponse>{},
7202
+ responseObject: <responses.GetRecipientResponse>{},
7184
7203
  body: await response.json(),
7185
- bodyKey: "recipientCollection",
7186
- bodyModel: model.RecipientCollection,
7187
- type: "model.RecipientCollection",
7204
+ bodyKey: "recipient",
7205
+ bodyModel: model.Recipient,
7206
+ type: "model.Recipient",
7188
7207
  responseHeaders: [
7189
7208
  {
7190
- value: response.headers.get("opc-request-id"),
7191
- key: "opcRequestId",
7209
+ value: response.headers.get("etag"),
7210
+ key: "etag",
7192
7211
  dataType: "string"
7193
7212
  },
7194
7213
  {
7195
- value: response.headers.get("opc-next-page"),
7196
- key: "opcNextPage",
7214
+ value: response.headers.get("opc-request-id"),
7215
+ key: "opcRequestId",
7197
7216
  dataType: "string"
7198
7217
  },
7199
7218
  ]
@@ -7207,48 +7226,42 @@ export class DeltaShareClient {
7207
7226
  }
7208
7227
 
7209
7228
  /**
7210
- * Gets a list of Delta Share assets.
7211
- *
7229
+ * Gets detailed information about a Delta Share.
7212
7230
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7213
- * @param ListShareDataAssetsRequest
7214
- * @return ListShareDataAssetsResponse
7231
+ * @param GetShareRequest
7232
+ * @return GetShareResponse
7215
7233
  * @throws OciError when an error occurs
7216
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListShareDataAssets.ts.html |here} to see how to use ListShareDataAssets API.
7234
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/GetShare.ts.html |here} to see how to use GetShare API.
7217
7235
  */
7218
- public async listShareDataAssets (listShareDataAssetsRequest: requests.ListShareDataAssetsRequest) : Promise<responses.ListShareDataAssetsResponse> {
7236
+ public async getShare (getShareRequest: requests.GetShareRequest) : Promise<responses.GetShareResponse> {
7219
7237
  if (this.logger)
7220
- this.logger.debug("Calling operation DeltaShareClient#listShareDataAssets.");
7221
- const operationName = "listShareDataAssets";
7238
+ this.logger.debug("Calling operation DeltaShareClient#getShare.");
7239
+ const operationName = "getShare";
7222
7240
  const apiReferenceLink = "";
7223
7241
  const pathParams = {
7224
- "{aiDataPlatformId}": listShareDataAssetsRequest.aiDataPlatformId,
7225
- "{shareKey}": listShareDataAssetsRequest.shareKey,
7242
+ "{aiDataPlatformId}": getShareRequest.aiDataPlatformId,
7243
+ "{shareKey}": getShareRequest.shareKey,
7226
7244
  };
7227
7245
 
7228
7246
  const queryParams = {
7229
- 'displayName': listShareDataAssetsRequest.displayName,
7230
- 'limit': listShareDataAssetsRequest.limit,
7231
- 'page': listShareDataAssetsRequest.page,
7232
- 'sortOrder': listShareDataAssetsRequest.sortOrder,
7233
- 'sortBy': listShareDataAssetsRequest.sortBy,
7234
7247
  };
7235
7248
 
7236
7249
  let headerParams = {
7237
7250
  "Content-Type": common.Constants.APPLICATION_JSON,
7238
- 'opc-request-id': listShareDataAssetsRequest.opcRequestId,'should-update-recent': listShareDataAssetsRequest.shouldUpdateRecent,
7251
+ 'opc-request-id': getShareRequest.opcRequestId,'should-update-recent': getShareRequest.shouldUpdateRecent,
7239
7252
  };
7240
7253
 
7241
7254
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7242
7255
  const retrier = GenericRetrier.createPreferredRetrier(
7243
7256
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7244
- listShareDataAssetsRequest.retryConfiguration,
7257
+ getShareRequest.retryConfiguration,
7245
7258
  specRetryConfiguration
7246
7259
  );
7247
7260
  if (this.logger) retrier.logger = this.logger;
7248
7261
  const request = await composeRequest({
7249
7262
  baseEndpoint: this._endpoint,
7250
7263
  defaultHeaders: this._defaultHeaders,
7251
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/dataAssets',
7264
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}',
7252
7265
  method: 'GET',
7253
7266
  pathParams: pathParams,
7254
7267
  headerParams: headerParams,
@@ -7257,20 +7270,20 @@ export class DeltaShareClient {
7257
7270
  try {
7258
7271
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7259
7272
  const sdkResponse = composeResponse({
7260
- responseObject: <responses.ListShareDataAssetsResponse>{},
7273
+ responseObject: <responses.GetShareResponse>{},
7261
7274
  body: await response.json(),
7262
- bodyKey: "shareDataAssetCollection",
7263
- bodyModel: model.ShareDataAssetCollection,
7264
- type: "model.ShareDataAssetCollection",
7275
+ bodyKey: "share",
7276
+ bodyModel: model.Share,
7277
+ type: "model.Share",
7265
7278
  responseHeaders: [
7266
7279
  {
7267
- value: response.headers.get("opc-request-id"),
7268
- key: "opcRequestId",
7280
+ value: response.headers.get("etag"),
7281
+ key: "etag",
7269
7282
  dataType: "string"
7270
7283
  },
7271
7284
  {
7272
- value: response.headers.get("opc-next-page"),
7273
- key: "opcNextPage",
7285
+ value: response.headers.get("opc-request-id"),
7286
+ key: "opcRequestId",
7274
7287
  dataType: "string"
7275
7288
  },
7276
7289
  ]
@@ -7284,47 +7297,47 @@ export class DeltaShareClient {
7284
7297
  }
7285
7298
 
7286
7299
  /**
7287
- * Returns a list of Delta Shares that the specified recipient has been granted access to.
7300
+ * Gets a detailed list of Delta Share recipient permissions.
7288
7301
  *
7289
7302
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7290
- * @param ListSharePermissionsRequest
7291
- * @return ListSharePermissionsResponse
7303
+ * @param ListRecipientPermissionsRequest
7304
+ * @return ListRecipientPermissionsResponse
7292
7305
  * @throws OciError when an error occurs
7293
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListSharePermissions.ts.html |here} to see how to use ListSharePermissions API.
7306
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListRecipientPermissions.ts.html |here} to see how to use ListRecipientPermissions API.
7294
7307
  */
7295
- public async listSharePermissions (listSharePermissionsRequest: requests.ListSharePermissionsRequest) : Promise<responses.ListSharePermissionsResponse> {
7308
+ public async listRecipientPermissions (listRecipientPermissionsRequest: requests.ListRecipientPermissionsRequest) : Promise<responses.ListRecipientPermissionsResponse> {
7296
7309
  if (this.logger)
7297
- this.logger.debug("Calling operation DeltaShareClient#listSharePermissions.");
7298
- const operationName = "listSharePermissions";
7310
+ this.logger.debug("Calling operation DeltaShareClient#listRecipientPermissions.");
7311
+ const operationName = "listRecipientPermissions";
7299
7312
  const apiReferenceLink = "";
7300
7313
  const pathParams = {
7301
- "{aiDataPlatformId}": listSharePermissionsRequest.aiDataPlatformId,
7302
- "{shareKey}": listSharePermissionsRequest.shareKey,
7314
+ "{aiDataPlatformId}": listRecipientPermissionsRequest.aiDataPlatformId,
7315
+ "{recipientKey}": listRecipientPermissionsRequest.recipientKey,
7303
7316
  };
7304
7317
 
7305
7318
  const queryParams = {
7306
- 'limit': listSharePermissionsRequest.limit,
7307
- 'page': listSharePermissionsRequest.page,
7308
- 'sortOrder': listSharePermissionsRequest.sortOrder,
7309
- 'sortBy': listSharePermissionsRequest.sortBy,
7319
+ 'limit': listRecipientPermissionsRequest.limit,
7320
+ 'page': listRecipientPermissionsRequest.page,
7321
+ 'sortOrder': listRecipientPermissionsRequest.sortOrder,
7322
+ 'sortBy': listRecipientPermissionsRequest.sortBy,
7310
7323
  };
7311
7324
 
7312
7325
  let headerParams = {
7313
7326
  "Content-Type": common.Constants.APPLICATION_JSON,
7314
- 'opc-request-id': listSharePermissionsRequest.opcRequestId,'should-update-recent': listSharePermissionsRequest.shouldUpdateRecent,
7327
+ 'opc-request-id': listRecipientPermissionsRequest.opcRequestId,'should-update-recent': listRecipientPermissionsRequest.shouldUpdateRecent,
7315
7328
  };
7316
7329
 
7317
7330
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7318
7331
  const retrier = GenericRetrier.createPreferredRetrier(
7319
7332
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7320
- listSharePermissionsRequest.retryConfiguration,
7333
+ listRecipientPermissionsRequest.retryConfiguration,
7321
7334
  specRetryConfiguration
7322
7335
  );
7323
7336
  if (this.logger) retrier.logger = this.logger;
7324
7337
  const request = await composeRequest({
7325
7338
  baseEndpoint: this._endpoint,
7326
7339
  defaultHeaders: this._defaultHeaders,
7327
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/permissions',
7340
+ path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}/permissions',
7328
7341
  method: 'GET',
7329
7342
  pathParams: pathParams,
7330
7343
  headerParams: headerParams,
@@ -7333,11 +7346,11 @@ export class DeltaShareClient {
7333
7346
  try {
7334
7347
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7335
7348
  const sdkResponse = composeResponse({
7336
- responseObject: <responses.ListSharePermissionsResponse>{},
7349
+ responseObject: <responses.ListRecipientPermissionsResponse>{},
7337
7350
  body: await response.json(),
7338
- bodyKey: "sharePermissionCollection",
7339
- bodyModel: model.SharePermissionCollection,
7340
- type: "model.SharePermissionCollection",
7351
+ bodyKey: "recipientPermissionCollection",
7352
+ bodyModel: model.RecipientPermissionCollection,
7353
+ type: "model.RecipientPermissionCollection",
7341
7354
  responseHeaders: [
7342
7355
  {
7343
7356
  value: response.headers.get("opc-request-id"),
@@ -7360,48 +7373,48 @@ export class DeltaShareClient {
7360
7373
  }
7361
7374
 
7362
7375
  /**
7363
- * Gets a list of recipients that have been given access on the specified Delta Share.
7376
+ * Returns a list of Delta Shares that the specified recipient has been granted access to.
7364
7377
  *
7365
7378
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7366
- * @param ListShareRecipientsRequest
7367
- * @return ListShareRecipientsResponse
7379
+ * @param ListRecipientSharesRequest
7380
+ * @return ListRecipientSharesResponse
7368
7381
  * @throws OciError when an error occurs
7369
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListShareRecipients.ts.html |here} to see how to use ListShareRecipients API.
7382
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListRecipientShares.ts.html |here} to see how to use ListRecipientShares API.
7370
7383
  */
7371
- public async listShareRecipients (listShareRecipientsRequest: requests.ListShareRecipientsRequest) : Promise<responses.ListShareRecipientsResponse> {
7384
+ public async listRecipientShares (listRecipientSharesRequest: requests.ListRecipientSharesRequest) : Promise<responses.ListRecipientSharesResponse> {
7372
7385
  if (this.logger)
7373
- this.logger.debug("Calling operation DeltaShareClient#listShareRecipients.");
7374
- const operationName = "listShareRecipients";
7386
+ this.logger.debug("Calling operation DeltaShareClient#listRecipientShares.");
7387
+ const operationName = "listRecipientShares";
7375
7388
  const apiReferenceLink = "";
7376
7389
  const pathParams = {
7377
- "{aiDataPlatformId}": listShareRecipientsRequest.aiDataPlatformId,
7378
- "{shareKey}": listShareRecipientsRequest.shareKey,
7390
+ "{aiDataPlatformId}": listRecipientSharesRequest.aiDataPlatformId,
7391
+ "{recipientKey}": listRecipientSharesRequest.recipientKey,
7379
7392
  };
7380
7393
 
7381
7394
  const queryParams = {
7382
- 'displayName': listShareRecipientsRequest.displayName,
7383
- 'limit': listShareRecipientsRequest.limit,
7384
- 'page': listShareRecipientsRequest.page,
7385
- 'sortOrder': listShareRecipientsRequest.sortOrder,
7386
- 'sortBy': listShareRecipientsRequest.sortBy,
7395
+ 'displayName': listRecipientSharesRequest.displayName,
7396
+ 'limit': listRecipientSharesRequest.limit,
7397
+ 'page': listRecipientSharesRequest.page,
7398
+ 'sortOrder': listRecipientSharesRequest.sortOrder,
7399
+ 'sortBy': listRecipientSharesRequest.sortBy,
7387
7400
  };
7388
7401
 
7389
7402
  let headerParams = {
7390
7403
  "Content-Type": common.Constants.APPLICATION_JSON,
7391
- 'opc-request-id': listShareRecipientsRequest.opcRequestId,'should-update-recent': listShareRecipientsRequest.shouldUpdateRecent,
7404
+ 'opc-request-id': listRecipientSharesRequest.opcRequestId,'should-update-recent': listRecipientSharesRequest.shouldUpdateRecent,
7392
7405
  };
7393
7406
 
7394
7407
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7395
7408
  const retrier = GenericRetrier.createPreferredRetrier(
7396
7409
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7397
- listShareRecipientsRequest.retryConfiguration,
7410
+ listRecipientSharesRequest.retryConfiguration,
7398
7411
  specRetryConfiguration
7399
7412
  );
7400
7413
  if (this.logger) retrier.logger = this.logger;
7401
7414
  const request = await composeRequest({
7402
7415
  baseEndpoint: this._endpoint,
7403
7416
  defaultHeaders: this._defaultHeaders,
7404
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/recipients',
7417
+ path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}/shares',
7405
7418
  method: 'GET',
7406
7419
  pathParams: pathParams,
7407
7420
  headerParams: headerParams,
@@ -7410,11 +7423,11 @@ export class DeltaShareClient {
7410
7423
  try {
7411
7424
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7412
7425
  const sdkResponse = composeResponse({
7413
- responseObject: <responses.ListShareRecipientsResponse>{},
7426
+ responseObject: <responses.ListRecipientSharesResponse>{},
7414
7427
  body: await response.json(),
7415
- bodyKey: "recipientCollection",
7416
- bodyModel: model.RecipientCollection,
7417
- type: "model.RecipientCollection",
7428
+ bodyKey: "shareCollection",
7429
+ bodyModel: model.ShareCollection,
7430
+ type: "model.ShareCollection",
7418
7431
  responseHeaders: [
7419
7432
  {
7420
7433
  value: response.headers.get("opc-request-id"),
@@ -7437,47 +7450,47 @@ export class DeltaShareClient {
7437
7450
  }
7438
7451
 
7439
7452
  /**
7440
- * Gets a list of Delta Shares.
7453
+ * Gets a list of Delta Share recipients.
7441
7454
  *
7442
7455
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7443
- * @param ListSharesRequest
7444
- * @return ListSharesResponse
7456
+ * @param ListRecipientsRequest
7457
+ * @return ListRecipientsResponse
7445
7458
  * @throws OciError when an error occurs
7446
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListShares.ts.html |here} to see how to use ListShares API.
7459
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListRecipients.ts.html |here} to see how to use ListRecipients API.
7447
7460
  */
7448
- public async listShares (listSharesRequest: requests.ListSharesRequest) : Promise<responses.ListSharesResponse> {
7461
+ public async listRecipients (listRecipientsRequest: requests.ListRecipientsRequest) : Promise<responses.ListRecipientsResponse> {
7449
7462
  if (this.logger)
7450
- this.logger.debug("Calling operation DeltaShareClient#listShares.");
7451
- const operationName = "listShares";
7463
+ this.logger.debug("Calling operation DeltaShareClient#listRecipients.");
7464
+ const operationName = "listRecipients";
7452
7465
  const apiReferenceLink = "";
7453
7466
  const pathParams = {
7454
- "{aiDataPlatformId}": listSharesRequest.aiDataPlatformId,
7467
+ "{aiDataPlatformId}": listRecipientsRequest.aiDataPlatformId,
7455
7468
  };
7456
7469
 
7457
7470
  const queryParams = {
7458
- 'displayName': listSharesRequest.displayName,
7459
- 'limit': listSharesRequest.limit,
7460
- 'page': listSharesRequest.page,
7461
- 'sortOrder': listSharesRequest.sortOrder,
7462
- 'sortBy': listSharesRequest.sortBy,
7471
+ 'displayName': listRecipientsRequest.displayName,
7472
+ 'limit': listRecipientsRequest.limit,
7473
+ 'page': listRecipientsRequest.page,
7474
+ 'sortOrder': listRecipientsRequest.sortOrder,
7475
+ 'sortBy': listRecipientsRequest.sortBy,
7463
7476
  };
7464
7477
 
7465
7478
  let headerParams = {
7466
7479
  "Content-Type": common.Constants.APPLICATION_JSON,
7467
- 'opc-request-id': listSharesRequest.opcRequestId,
7480
+ 'opc-request-id': listRecipientsRequest.opcRequestId,
7468
7481
  };
7469
7482
 
7470
7483
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7471
7484
  const retrier = GenericRetrier.createPreferredRetrier(
7472
7485
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7473
- listSharesRequest.retryConfiguration,
7486
+ listRecipientsRequest.retryConfiguration,
7474
7487
  specRetryConfiguration
7475
7488
  );
7476
7489
  if (this.logger) retrier.logger = this.logger;
7477
7490
  const request = await composeRequest({
7478
7491
  baseEndpoint: this._endpoint,
7479
7492
  defaultHeaders: this._defaultHeaders,
7480
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares',
7493
+ path: '/aiDataPlatforms/{aiDataPlatformId}/recipients',
7481
7494
  method: 'GET',
7482
7495
  pathParams: pathParams,
7483
7496
  headerParams: headerParams,
@@ -7486,11 +7499,11 @@ export class DeltaShareClient {
7486
7499
  try {
7487
7500
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7488
7501
  const sdkResponse = composeResponse({
7489
- responseObject: <responses.ListSharesResponse>{},
7502
+ responseObject: <responses.ListRecipientsResponse>{},
7490
7503
  body: await response.json(),
7491
- bodyKey: "shareCollection",
7492
- bodyModel: model.ShareCollection,
7493
- type: "model.ShareCollection",
7504
+ bodyKey: "recipientCollection",
7505
+ bodyModel: model.RecipientCollection,
7506
+ type: "model.RecipientCollection",
7494
7507
  responseHeaders: [
7495
7508
  {
7496
7509
  value: response.headers.get("opc-request-id"),
@@ -7513,46 +7526,49 @@ export class DeltaShareClient {
7513
7526
  }
7514
7527
 
7515
7528
  /**
7516
- * Updates the permissions of a Delta Share recipient.
7529
+ * Gets a list of Delta Share assets.
7530
+ *
7517
7531
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7518
- * @param ManageRecipientPermissionRequest
7519
- * @return ManageRecipientPermissionResponse
7532
+ * @param ListShareDataAssetsRequest
7533
+ * @return ListShareDataAssetsResponse
7520
7534
  * @throws OciError when an error occurs
7521
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ManageRecipientPermission.ts.html |here} to see how to use ManageRecipientPermission API.
7535
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListShareDataAssets.ts.html |here} to see how to use ListShareDataAssets API.
7522
7536
  */
7523
- public async manageRecipientPermission (manageRecipientPermissionRequest: requests.ManageRecipientPermissionRequest) : Promise<responses.ManageRecipientPermissionResponse> {
7537
+ public async listShareDataAssets (listShareDataAssetsRequest: requests.ListShareDataAssetsRequest) : Promise<responses.ListShareDataAssetsResponse> {
7524
7538
  if (this.logger)
7525
- this.logger.debug("Calling operation DeltaShareClient#manageRecipientPermission.");
7526
- const operationName = "manageRecipientPermission";
7539
+ this.logger.debug("Calling operation DeltaShareClient#listShareDataAssets.");
7540
+ const operationName = "listShareDataAssets";
7527
7541
  const apiReferenceLink = "";
7528
7542
  const pathParams = {
7529
- "{aiDataPlatformId}": manageRecipientPermissionRequest.aiDataPlatformId,
7530
- "{recipientKey}": manageRecipientPermissionRequest.recipientKey,
7543
+ "{aiDataPlatformId}": listShareDataAssetsRequest.aiDataPlatformId,
7544
+ "{shareKey}": listShareDataAssetsRequest.shareKey,
7531
7545
  };
7532
7546
 
7533
7547
  const queryParams = {
7548
+ 'displayName': listShareDataAssetsRequest.displayName,
7549
+ 'limit': listShareDataAssetsRequest.limit,
7550
+ 'page': listShareDataAssetsRequest.page,
7551
+ 'sortOrder': listShareDataAssetsRequest.sortOrder,
7552
+ 'sortBy': listShareDataAssetsRequest.sortBy,
7534
7553
  };
7535
7554
 
7536
7555
  let headerParams = {
7537
7556
  "Content-Type": common.Constants.APPLICATION_JSON,
7538
- 'if-match': manageRecipientPermissionRequest.ifMatch,'opc-request-id': manageRecipientPermissionRequest.opcRequestId,'should-update-recent': manageRecipientPermissionRequest.shouldUpdateRecent,
7557
+ 'opc-request-id': listShareDataAssetsRequest.opcRequestId,'should-update-recent': listShareDataAssetsRequest.shouldUpdateRecent,
7539
7558
  };
7540
7559
 
7541
7560
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7542
7561
  const retrier = GenericRetrier.createPreferredRetrier(
7543
7562
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7544
- manageRecipientPermissionRequest.retryConfiguration,
7563
+ listShareDataAssetsRequest.retryConfiguration,
7545
7564
  specRetryConfiguration
7546
7565
  );
7547
7566
  if (this.logger) retrier.logger = this.logger;
7548
7567
  const request = await composeRequest({
7549
7568
  baseEndpoint: this._endpoint,
7550
7569
  defaultHeaders: this._defaultHeaders,
7551
- path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}/actions/managePermission',
7552
- method: 'POST',
7553
- bodyContent: common.ObjectSerializer.serialize(manageRecipientPermissionRequest.manageRecipientPermissionDetails, "ManageRecipientPermissionDetails"
7554
- , model.ManageRecipientPermissionDetails.getJsonObj)
7555
- ,
7570
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/dataAssets',
7571
+ method: 'GET',
7556
7572
  pathParams: pathParams,
7557
7573
  headerParams: headerParams,
7558
7574
  queryParams: queryParams
@@ -7560,13 +7576,22 @@ export class DeltaShareClient {
7560
7576
  try {
7561
7577
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7562
7578
  const sdkResponse = composeResponse({
7563
- responseObject: <responses.ManageRecipientPermissionResponse>{},
7579
+ responseObject: <responses.ListShareDataAssetsResponse>{},
7580
+ body: await response.json(),
7581
+ bodyKey: "shareDataAssetCollection",
7582
+ bodyModel: model.ShareDataAssetCollection,
7583
+ type: "model.ShareDataAssetCollection",
7564
7584
  responseHeaders: [
7565
7585
  {
7566
7586
  value: response.headers.get("opc-request-id"),
7567
7587
  key: "opcRequestId",
7568
7588
  dataType: "string"
7569
7589
  },
7590
+ {
7591
+ value: response.headers.get("opc-next-page"),
7592
+ key: "opcNextPage",
7593
+ dataType: "string"
7594
+ },
7570
7595
  ]
7571
7596
  });
7572
7597
 
@@ -7578,46 +7603,48 @@ export class DeltaShareClient {
7578
7603
  }
7579
7604
 
7580
7605
  /**
7581
- * Updates consumer-side access on a share for a recipient. A provider user can grant or revoke access on a particular share for a given recipient.
7606
+ * Returns a list of Delta Shares that the specified recipient has been granted access to.
7607
+ *
7582
7608
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7583
- * @param ManageShareAccessRequest
7584
- * @return ManageShareAccessResponse
7609
+ * @param ListSharePermissionsRequest
7610
+ * @return ListSharePermissionsResponse
7585
7611
  * @throws OciError when an error occurs
7586
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ManageShareAccess.ts.html |here} to see how to use ManageShareAccess API.
7612
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListSharePermissions.ts.html |here} to see how to use ListSharePermissions API.
7587
7613
  */
7588
- public async manageShareAccess (manageShareAccessRequest: requests.ManageShareAccessRequest) : Promise<responses.ManageShareAccessResponse> {
7614
+ public async listSharePermissions (listSharePermissionsRequest: requests.ListSharePermissionsRequest) : Promise<responses.ListSharePermissionsResponse> {
7589
7615
  if (this.logger)
7590
- this.logger.debug("Calling operation DeltaShareClient#manageShareAccess.");
7591
- const operationName = "manageShareAccess";
7616
+ this.logger.debug("Calling operation DeltaShareClient#listSharePermissions.");
7617
+ const operationName = "listSharePermissions";
7592
7618
  const apiReferenceLink = "";
7593
7619
  const pathParams = {
7594
- "{aiDataPlatformId}": manageShareAccessRequest.aiDataPlatformId,
7595
- "{shareKey}": manageShareAccessRequest.shareKey,
7620
+ "{aiDataPlatformId}": listSharePermissionsRequest.aiDataPlatformId,
7621
+ "{shareKey}": listSharePermissionsRequest.shareKey,
7596
7622
  };
7597
7623
 
7598
7624
  const queryParams = {
7625
+ 'limit': listSharePermissionsRequest.limit,
7626
+ 'page': listSharePermissionsRequest.page,
7627
+ 'sortOrder': listSharePermissionsRequest.sortOrder,
7628
+ 'sortBy': listSharePermissionsRequest.sortBy,
7599
7629
  };
7600
7630
 
7601
7631
  let headerParams = {
7602
7632
  "Content-Type": common.Constants.APPLICATION_JSON,
7603
- 'if-match': manageShareAccessRequest.ifMatch,'opc-retry-token': manageShareAccessRequest.opcRetryToken,'opc-request-id': manageShareAccessRequest.opcRequestId,'should-update-recent': manageShareAccessRequest.shouldUpdateRecent,
7633
+ 'opc-request-id': listSharePermissionsRequest.opcRequestId,'should-update-recent': listSharePermissionsRequest.shouldUpdateRecent,
7604
7634
  };
7605
7635
 
7606
7636
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7607
7637
  const retrier = GenericRetrier.createPreferredRetrier(
7608
7638
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7609
- manageShareAccessRequest.retryConfiguration,
7639
+ listSharePermissionsRequest.retryConfiguration,
7610
7640
  specRetryConfiguration
7611
7641
  );
7612
7642
  if (this.logger) retrier.logger = this.logger;
7613
7643
  const request = await composeRequest({
7614
7644
  baseEndpoint: this._endpoint,
7615
7645
  defaultHeaders: this._defaultHeaders,
7616
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/actions/manageAccess',
7617
- method: 'POST',
7618
- bodyContent: common.ObjectSerializer.serialize(manageShareAccessRequest.manageShareAccessDetails, "ManageShareAccessDetails"
7619
- , model.ManageShareAccessDetails.getJsonObj)
7620
- ,
7646
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/permissions',
7647
+ method: 'GET',
7621
7648
  pathParams: pathParams,
7622
7649
  headerParams: headerParams,
7623
7650
  queryParams: queryParams
@@ -7625,13 +7652,22 @@ export class DeltaShareClient {
7625
7652
  try {
7626
7653
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7627
7654
  const sdkResponse = composeResponse({
7628
- responseObject: <responses.ManageShareAccessResponse>{},
7655
+ responseObject: <responses.ListSharePermissionsResponse>{},
7656
+ body: await response.json(),
7657
+ bodyKey: "sharePermissionCollection",
7658
+ bodyModel: model.SharePermissionCollection,
7659
+ type: "model.SharePermissionCollection",
7629
7660
  responseHeaders: [
7630
7661
  {
7631
7662
  value: response.headers.get("opc-request-id"),
7632
7663
  key: "opcRequestId",
7633
7664
  dataType: "string"
7634
7665
  },
7666
+ {
7667
+ value: response.headers.get("opc-next-page"),
7668
+ key: "opcNextPage",
7669
+ dataType: "string"
7670
+ },
7635
7671
  ]
7636
7672
  });
7637
7673
 
@@ -7643,46 +7679,49 @@ export class DeltaShareClient {
7643
7679
  }
7644
7680
 
7645
7681
  /**
7646
- * Updates data assets on a Delta Share with the provided information.
7682
+ * Gets a list of recipients that have been given access on the specified Delta Share.
7683
+ *
7647
7684
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7648
- * @param ManageShareDataAssetRequest
7649
- * @return ManageShareDataAssetResponse
7685
+ * @param ListShareRecipientsRequest
7686
+ * @return ListShareRecipientsResponse
7650
7687
  * @throws OciError when an error occurs
7651
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ManageShareDataAsset.ts.html |here} to see how to use ManageShareDataAsset API.
7688
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListShareRecipients.ts.html |here} to see how to use ListShareRecipients API.
7652
7689
  */
7653
- public async manageShareDataAsset (manageShareDataAssetRequest: requests.ManageShareDataAssetRequest) : Promise<responses.ManageShareDataAssetResponse> {
7690
+ public async listShareRecipients (listShareRecipientsRequest: requests.ListShareRecipientsRequest) : Promise<responses.ListShareRecipientsResponse> {
7654
7691
  if (this.logger)
7655
- this.logger.debug("Calling operation DeltaShareClient#manageShareDataAsset.");
7656
- const operationName = "manageShareDataAsset";
7692
+ this.logger.debug("Calling operation DeltaShareClient#listShareRecipients.");
7693
+ const operationName = "listShareRecipients";
7657
7694
  const apiReferenceLink = "";
7658
7695
  const pathParams = {
7659
- "{aiDataPlatformId}": manageShareDataAssetRequest.aiDataPlatformId,
7660
- "{shareKey}": manageShareDataAssetRequest.shareKey,
7696
+ "{aiDataPlatformId}": listShareRecipientsRequest.aiDataPlatformId,
7697
+ "{shareKey}": listShareRecipientsRequest.shareKey,
7661
7698
  };
7662
7699
 
7663
7700
  const queryParams = {
7701
+ 'displayName': listShareRecipientsRequest.displayName,
7702
+ 'limit': listShareRecipientsRequest.limit,
7703
+ 'page': listShareRecipientsRequest.page,
7704
+ 'sortOrder': listShareRecipientsRequest.sortOrder,
7705
+ 'sortBy': listShareRecipientsRequest.sortBy,
7664
7706
  };
7665
7707
 
7666
7708
  let headerParams = {
7667
7709
  "Content-Type": common.Constants.APPLICATION_JSON,
7668
- 'if-match': manageShareDataAssetRequest.ifMatch,'opc-request-id': manageShareDataAssetRequest.opcRequestId,'should-update-recent': manageShareDataAssetRequest.shouldUpdateRecent,
7710
+ 'opc-request-id': listShareRecipientsRequest.opcRequestId,'should-update-recent': listShareRecipientsRequest.shouldUpdateRecent,
7669
7711
  };
7670
7712
 
7671
7713
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7672
7714
  const retrier = GenericRetrier.createPreferredRetrier(
7673
7715
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7674
- manageShareDataAssetRequest.retryConfiguration,
7716
+ listShareRecipientsRequest.retryConfiguration,
7675
7717
  specRetryConfiguration
7676
7718
  );
7677
7719
  if (this.logger) retrier.logger = this.logger;
7678
7720
  const request = await composeRequest({
7679
7721
  baseEndpoint: this._endpoint,
7680
7722
  defaultHeaders: this._defaultHeaders,
7681
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/actions/manageDataAsset',
7682
- method: 'POST',
7683
- bodyContent: common.ObjectSerializer.serialize(manageShareDataAssetRequest.manageShareDataAssetDetails, "ManageShareDataAssetDetails"
7684
- , model.ManageShareDataAssetDetails.getJsonObj)
7685
- ,
7723
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/recipients',
7724
+ method: 'GET',
7686
7725
  pathParams: pathParams,
7687
7726
  headerParams: headerParams,
7688
7727
  queryParams: queryParams
@@ -7690,13 +7729,22 @@ export class DeltaShareClient {
7690
7729
  try {
7691
7730
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7692
7731
  const sdkResponse = composeResponse({
7693
- responseObject: <responses.ManageShareDataAssetResponse>{},
7732
+ responseObject: <responses.ListShareRecipientsResponse>{},
7733
+ body: await response.json(),
7734
+ bodyKey: "recipientCollection",
7735
+ bodyModel: model.RecipientCollection,
7736
+ type: "model.RecipientCollection",
7694
7737
  responseHeaders: [
7695
7738
  {
7696
7739
  value: response.headers.get("opc-request-id"),
7697
7740
  key: "opcRequestId",
7698
7741
  dataType: "string"
7699
7742
  },
7743
+ {
7744
+ value: response.headers.get("opc-next-page"),
7745
+ key: "opcNextPage",
7746
+ dataType: "string"
7747
+ },
7700
7748
  ]
7701
7749
  });
7702
7750
 
@@ -7708,46 +7756,48 @@ export class DeltaShareClient {
7708
7756
  }
7709
7757
 
7710
7758
  /**
7711
- * Updates permissions on a Delta Share.
7759
+ * Gets a list of Delta Shares.
7760
+ *
7712
7761
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7713
- * @param ManageSharePermissionRequest
7714
- * @return ManageSharePermissionResponse
7762
+ * @param ListSharesRequest
7763
+ * @return ListSharesResponse
7715
7764
  * @throws OciError when an error occurs
7716
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ManageSharePermission.ts.html |here} to see how to use ManageSharePermission API.
7765
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ListShares.ts.html |here} to see how to use ListShares API.
7717
7766
  */
7718
- public async manageSharePermission (manageSharePermissionRequest: requests.ManageSharePermissionRequest) : Promise<responses.ManageSharePermissionResponse> {
7767
+ public async listShares (listSharesRequest: requests.ListSharesRequest) : Promise<responses.ListSharesResponse> {
7719
7768
  if (this.logger)
7720
- this.logger.debug("Calling operation DeltaShareClient#manageSharePermission.");
7721
- const operationName = "manageSharePermission";
7769
+ this.logger.debug("Calling operation DeltaShareClient#listShares.");
7770
+ const operationName = "listShares";
7722
7771
  const apiReferenceLink = "";
7723
7772
  const pathParams = {
7724
- "{aiDataPlatformId}": manageSharePermissionRequest.aiDataPlatformId,
7725
- "{shareKey}": manageSharePermissionRequest.shareKey,
7773
+ "{aiDataPlatformId}": listSharesRequest.aiDataPlatformId,
7726
7774
  };
7727
7775
 
7728
7776
  const queryParams = {
7777
+ 'displayName': listSharesRequest.displayName,
7778
+ 'limit': listSharesRequest.limit,
7779
+ 'page': listSharesRequest.page,
7780
+ 'sortOrder': listSharesRequest.sortOrder,
7781
+ 'sortBy': listSharesRequest.sortBy,
7729
7782
  };
7730
7783
 
7731
7784
  let headerParams = {
7732
7785
  "Content-Type": common.Constants.APPLICATION_JSON,
7733
- 'if-match': manageSharePermissionRequest.ifMatch,'opc-request-id': manageSharePermissionRequest.opcRequestId,'should-update-recent': manageSharePermissionRequest.shouldUpdateRecent,
7786
+ 'opc-request-id': listSharesRequest.opcRequestId,
7734
7787
  };
7735
7788
 
7736
7789
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7737
7790
  const retrier = GenericRetrier.createPreferredRetrier(
7738
7791
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7739
- manageSharePermissionRequest.retryConfiguration,
7792
+ listSharesRequest.retryConfiguration,
7740
7793
  specRetryConfiguration
7741
7794
  );
7742
7795
  if (this.logger) retrier.logger = this.logger;
7743
7796
  const request = await composeRequest({
7744
7797
  baseEndpoint: this._endpoint,
7745
7798
  defaultHeaders: this._defaultHeaders,
7746
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/actions/managePermission',
7747
- method: 'POST',
7748
- bodyContent: common.ObjectSerializer.serialize(manageSharePermissionRequest.manageSharePermissionDetails, "ManageSharePermissionDetails"
7749
- , model.ManageSharePermissionDetails.getJsonObj)
7750
- ,
7799
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares',
7800
+ method: 'GET',
7751
7801
  pathParams: pathParams,
7752
7802
  headerParams: headerParams,
7753
7803
  queryParams: queryParams
@@ -7755,13 +7805,22 @@ export class DeltaShareClient {
7755
7805
  try {
7756
7806
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7757
7807
  const sdkResponse = composeResponse({
7758
- responseObject: <responses.ManageSharePermissionResponse>{},
7808
+ responseObject: <responses.ListSharesResponse>{},
7809
+ body: await response.json(),
7810
+ bodyKey: "shareCollection",
7811
+ bodyModel: model.ShareCollection,
7812
+ type: "model.ShareCollection",
7759
7813
  responseHeaders: [
7760
7814
  {
7761
7815
  value: response.headers.get("opc-request-id"),
7762
7816
  key: "opcRequestId",
7763
7817
  dataType: "string"
7764
7818
  },
7819
+ {
7820
+ value: response.headers.get("opc-next-page"),
7821
+ key: "opcNextPage",
7822
+ dataType: "string"
7823
+ },
7765
7824
  ]
7766
7825
  });
7767
7826
 
@@ -7773,21 +7832,21 @@ export class DeltaShareClient {
7773
7832
  }
7774
7833
 
7775
7834
  /**
7776
- * Updates the metadata of a Delta Share recipient.
7835
+ * Updates the permissions of a Delta Share recipient.
7777
7836
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7778
- * @param UpdateRecipientRequest
7779
- * @return UpdateRecipientResponse
7837
+ * @param ManageRecipientPermissionRequest
7838
+ * @return ManageRecipientPermissionResponse
7780
7839
  * @throws OciError when an error occurs
7781
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/UpdateRecipient.ts.html |here} to see how to use UpdateRecipient API.
7840
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ManageRecipientPermission.ts.html |here} to see how to use ManageRecipientPermission API.
7782
7841
  */
7783
- public async updateRecipient (updateRecipientRequest: requests.UpdateRecipientRequest) : Promise<responses.UpdateRecipientResponse> {
7842
+ public async manageRecipientPermission (manageRecipientPermissionRequest: requests.ManageRecipientPermissionRequest) : Promise<responses.ManageRecipientPermissionResponse> {
7784
7843
  if (this.logger)
7785
- this.logger.debug("Calling operation DeltaShareClient#updateRecipient.");
7786
- const operationName = "updateRecipient";
7844
+ this.logger.debug("Calling operation DeltaShareClient#manageRecipientPermission.");
7845
+ const operationName = "manageRecipientPermission";
7787
7846
  const apiReferenceLink = "";
7788
7847
  const pathParams = {
7789
- "{aiDataPlatformId}": updateRecipientRequest.aiDataPlatformId,
7790
- "{recipientKey}": updateRecipientRequest.recipientKey,
7848
+ "{aiDataPlatformId}": manageRecipientPermissionRequest.aiDataPlatformId,
7849
+ "{recipientKey}": manageRecipientPermissionRequest.recipientKey,
7791
7850
  };
7792
7851
 
7793
7852
  const queryParams = {
@@ -7795,23 +7854,23 @@ export class DeltaShareClient {
7795
7854
 
7796
7855
  let headerParams = {
7797
7856
  "Content-Type": common.Constants.APPLICATION_JSON,
7798
- 'if-match': updateRecipientRequest.ifMatch,'opc-request-id': updateRecipientRequest.opcRequestId,'should-update-recent': updateRecipientRequest.shouldUpdateRecent,
7857
+ 'if-match': manageRecipientPermissionRequest.ifMatch,'opc-request-id': manageRecipientPermissionRequest.opcRequestId,'should-update-recent': manageRecipientPermissionRequest.shouldUpdateRecent,
7799
7858
  };
7800
7859
 
7801
7860
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7802
7861
  const retrier = GenericRetrier.createPreferredRetrier(
7803
7862
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7804
- updateRecipientRequest.retryConfiguration,
7863
+ manageRecipientPermissionRequest.retryConfiguration,
7805
7864
  specRetryConfiguration
7806
7865
  );
7807
7866
  if (this.logger) retrier.logger = this.logger;
7808
7867
  const request = await composeRequest({
7809
7868
  baseEndpoint: this._endpoint,
7810
7869
  defaultHeaders: this._defaultHeaders,
7811
- path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}',
7812
- method: 'PUT',
7813
- bodyContent: common.ObjectSerializer.serialize(updateRecipientRequest.updateRecipientDetails, "UpdateRecipientDetails"
7814
- , model.UpdateRecipientDetails.getJsonObj)
7870
+ path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}/actions/managePermission',
7871
+ method: 'POST',
7872
+ bodyContent: common.ObjectSerializer.serialize(manageRecipientPermissionRequest.manageRecipientPermissionDetails, "ManageRecipientPermissionDetails"
7873
+ , model.ManageRecipientPermissionDetails.getJsonObj)
7815
7874
  ,
7816
7875
  pathParams: pathParams,
7817
7876
  headerParams: headerParams,
@@ -7820,7 +7879,7 @@ export class DeltaShareClient {
7820
7879
  try {
7821
7880
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7822
7881
  const sdkResponse = composeResponse({
7823
- responseObject: <responses.UpdateRecipientResponse>{},
7882
+ responseObject: <responses.ManageRecipientPermissionResponse>{},
7824
7883
  responseHeaders: [
7825
7884
  {
7826
7885
  value: response.headers.get("opc-request-id"),
@@ -7838,21 +7897,21 @@ export class DeltaShareClient {
7838
7897
  }
7839
7898
 
7840
7899
  /**
7841
- * Update a Delta Share with the provided metadata.
7900
+ * Updates consumer-side access on a share for a recipient. A provider user can grant or revoke access on a particular share for a given recipient.
7842
7901
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7843
- * @param UpdateShareRequest
7844
- * @return UpdateShareResponse
7902
+ * @param ManageShareAccessRequest
7903
+ * @return ManageShareAccessResponse
7845
7904
  * @throws OciError when an error occurs
7846
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/UpdateShare.ts.html |here} to see how to use UpdateShare API.
7905
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ManageShareAccess.ts.html |here} to see how to use ManageShareAccess API.
7847
7906
  */
7848
- public async updateShare (updateShareRequest: requests.UpdateShareRequest) : Promise<responses.UpdateShareResponse> {
7907
+ public async manageShareAccess (manageShareAccessRequest: requests.ManageShareAccessRequest) : Promise<responses.ManageShareAccessResponse> {
7849
7908
  if (this.logger)
7850
- this.logger.debug("Calling operation DeltaShareClient#updateShare.");
7851
- const operationName = "updateShare";
7909
+ this.logger.debug("Calling operation DeltaShareClient#manageShareAccess.");
7910
+ const operationName = "manageShareAccess";
7852
7911
  const apiReferenceLink = "";
7853
7912
  const pathParams = {
7854
- "{aiDataPlatformId}": updateShareRequest.aiDataPlatformId,
7855
- "{shareKey}": updateShareRequest.shareKey,
7913
+ "{aiDataPlatformId}": manageShareAccessRequest.aiDataPlatformId,
7914
+ "{shareKey}": manageShareAccessRequest.shareKey,
7856
7915
  };
7857
7916
 
7858
7917
  const queryParams = {
@@ -7860,23 +7919,23 @@ export class DeltaShareClient {
7860
7919
 
7861
7920
  let headerParams = {
7862
7921
  "Content-Type": common.Constants.APPLICATION_JSON,
7863
- 'if-match': updateShareRequest.ifMatch,'opc-request-id': updateShareRequest.opcRequestId,'should-update-recent': updateShareRequest.shouldUpdateRecent,
7922
+ 'if-match': manageShareAccessRequest.ifMatch,'opc-retry-token': manageShareAccessRequest.opcRetryToken,'opc-request-id': manageShareAccessRequest.opcRequestId,'should-update-recent': manageShareAccessRequest.shouldUpdateRecent,
7864
7923
  };
7865
7924
 
7866
7925
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7867
7926
  const retrier = GenericRetrier.createPreferredRetrier(
7868
7927
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
7869
- updateShareRequest.retryConfiguration,
7928
+ manageShareAccessRequest.retryConfiguration,
7870
7929
  specRetryConfiguration
7871
7930
  );
7872
7931
  if (this.logger) retrier.logger = this.logger;
7873
7932
  const request = await composeRequest({
7874
7933
  baseEndpoint: this._endpoint,
7875
7934
  defaultHeaders: this._defaultHeaders,
7876
- path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}',
7877
- method: 'PUT',
7878
- bodyContent: common.ObjectSerializer.serialize(updateShareRequest.updateShareDetails, "UpdateShareDetails"
7879
- , model.UpdateShareDetails.getJsonObj)
7935
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/actions/manageAccess',
7936
+ method: 'POST',
7937
+ bodyContent: common.ObjectSerializer.serialize(manageShareAccessRequest.manageShareAccessDetails, "ManageShareAccessDetails"
7938
+ , model.ManageShareAccessDetails.getJsonObj)
7880
7939
  ,
7881
7940
  pathParams: pathParams,
7882
7941
  headerParams: headerParams,
@@ -7885,7 +7944,7 @@ export class DeltaShareClient {
7885
7944
  try {
7886
7945
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7887
7946
  const sdkResponse = composeResponse({
7888
- responseObject: <responses.UpdateShareResponse>{},
7947
+ responseObject: <responses.ManageShareAccessResponse>{},
7889
7948
  responseHeaders: [
7890
7949
  {
7891
7950
  value: response.headers.get("opc-request-id"),
@@ -7902,218 +7961,46 @@ export class DeltaShareClient {
7902
7961
  }
7903
7962
  }
7904
7963
 
7905
- }
7906
- export enum GitApiKeys {
7907
- }
7908
- /**
7909
- * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
7910
- */
7911
- export class GitClient {
7912
- protected static serviceEndpointTemplate = 'https://datalake.{region}.oci.{secondLevelDomain}';
7913
- protected static endpointServiceName = '';
7914
- protected "_realmSpecificEndpointTemplateEnabled" : boolean | undefined = undefined;
7915
- protected "_endpoint" : string = '';
7916
- protected "_defaultHeaders" : any = {};
7917
- protected "_clientConfiguration": common.ClientConfiguration;
7918
- protected _circuitBreaker: typeof Breaker | null = null;
7919
- protected _httpOptions: any = undefined;
7920
- protected _bodyDuplexMode: any = undefined;
7921
- public targetService = "Git";
7922
- protected _regionId : string = '';
7923
- protected "_region" : common.Region;
7924
- protected _lastSetRegionOrRegionId : string = "";
7964
+ /**
7965
+ * Updates data assets on a Delta Share with the provided information.
7966
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7967
+ * @param ManageShareDataAssetRequest
7968
+ * @return ManageShareDataAssetResponse
7969
+ * @throws OciError when an error occurs
7970
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ManageShareDataAsset.ts.html |here} to see how to use ManageShareDataAsset API.
7971
+ */
7972
+ public async manageShareDataAsset (manageShareDataAssetRequest: requests.ManageShareDataAssetRequest) : Promise<responses.ManageShareDataAssetResponse> {
7973
+ if (this.logger)
7974
+ this.logger.debug("Calling operation DeltaShareClient#manageShareDataAsset.");
7975
+ const operationName = "manageShareDataAsset";
7976
+ const apiReferenceLink = "";
7977
+ const pathParams = {
7978
+ "{aiDataPlatformId}": manageShareDataAssetRequest.aiDataPlatformId,
7979
+ "{shareKey}": manageShareDataAssetRequest.shareKey,
7980
+ };
7925
7981
 
7926
- protected _httpClient: common.HttpClient;
7927
- protected _authProvider: common.AuthenticationDetailsProvider | undefined;
7982
+ const queryParams = {
7983
+ };
7928
7984
 
7929
- constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) {
7930
- const requestSigner = params.authenticationDetailsProvider
7931
- ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
7932
- : null;
7933
- this._authProvider = params.authenticationDetailsProvider;
7934
- if (clientConfiguration) {
7935
- this._clientConfiguration = clientConfiguration;
7936
- this._circuitBreaker = clientConfiguration.circuitBreaker ? clientConfiguration.circuitBreaker!.circuit : null;
7937
- this._httpOptions = clientConfiguration.httpOptions ? clientConfiguration.httpOptions : undefined;
7938
- this._bodyDuplexMode = clientConfiguration.bodyDuplexMode ? clientConfiguration.bodyDuplexMode : undefined;
7939
- }
7940
-
7941
- if (!developerToolConfiguration.isServiceEnabled("aidp"))
7942
- {
7943
- 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 : ";
7944
- throw errmsg.concat("aidp");
7945
- }
7946
-
7947
- // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
7948
- const specCircuitBreakerEnabled = true;
7949
- if (!this._circuitBreaker && common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
7950
- this._circuitBreaker = new common.CircuitBreaker().circuit;
7951
- }
7952
- this._httpClient = params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
7953
-
7954
- if (params.authenticationDetailsProvider &&
7955
- common.isRegionProvider(params.authenticationDetailsProvider)) {
7956
- const provider: common.RegionProvider = params.authenticationDetailsProvider;
7957
- if (provider.getRegion()) {
7958
- this.region = provider.getRegion();
7959
- }
7960
- }
7961
- }
7962
-
7963
- /**
7964
- * Get the endpoint that is being used to call (ex, https://www.example.com).
7965
- */
7966
- public get endpoint() {
7967
- return this._endpoint;
7968
- }
7969
-
7970
- /**
7971
- * Sets the endpoint to call (ex, https://www.example.com).
7972
- * @param endpoint The endpoint of the service.
7973
- */
7974
- public set endpoint(endpoint: string) {
7975
- this._endpoint = endpoint;
7976
- this._endpoint = this._endpoint + '/20260430';
7977
- if (this.logger)
7978
- this.logger.info(`GitClient endpoint set to ${this._endpoint}`);
7979
- }
7980
-
7981
- public get logger() {
7982
- return common.LOG.logger;
7983
- }
7984
-
7985
- /**
7986
- * Determines whether realm specific endpoint should be used or not.
7987
- * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
7988
- * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
7989
- */
7990
- public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled : boolean) {
7991
- this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
7992
- if (this.logger)
7993
- this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
7994
- if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
7995
- this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
7996
- GitClient.serviceEndpointTemplate,
7997
- this._region,
7998
- GitClient.endpointServiceName,
7999
-
8000
- );
8001
- } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
8002
- this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
8003
- GitClient.serviceEndpointTemplate,
8004
- this._regionId,
8005
- GitClient.endpointServiceName,
8006
-
8007
- );
8008
- }
8009
- }
8010
-
8011
- /**
8012
- * Sets the region to call (ex, Region.US_PHOENIX_1).
8013
- * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
8014
- * @param region The region of the service.
8015
- */
8016
- public set region(region: common.Region) {
8017
- this._region = region;
8018
- this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
8019
- GitClient.serviceEndpointTemplate,
8020
- region,
8021
- GitClient.endpointServiceName,
8022
-
8023
- );
8024
- this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
8025
- }
8026
-
8027
- /**
8028
- * Sets the regionId to call (ex, 'us-phoenix-1').
8029
- *
8030
- * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
8031
- * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
8032
- * and then call {@link #endpoint(String) endpoint}.
8033
- * @param regionId The public region ID.
8034
- */
8035
- public set regionId(regionId: string) {
8036
- this._regionId = regionId;
8037
- this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
8038
- GitClient.serviceEndpointTemplate,
8039
- regionId,
8040
- GitClient.endpointServiceName,
8041
-
8042
- );
8043
- this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
8044
- }
8045
-
8046
-
8047
-
8048
- /**
8049
- * Shutdown the circuit breaker used by the client when it is no longer needed
8050
- */
8051
- public shutdownCircuitBreaker() {
8052
- if (this._circuitBreaker) {
8053
- this._circuitBreaker.shutdown();
8054
- }
8055
- }
8056
-
8057
- /**
8058
- * Close the provider if possible which in turn shuts down any associated circuit breaker
8059
- */
8060
- public closeProvider() {
8061
- if (this._authProvider) {
8062
- if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
8063
- (<common.AbstractRequestingAuthenticationDetailsProvider>this._authProvider).closeProvider();
8064
- }
8065
- }
8066
-
8067
- /**
8068
- * Close the client once it is no longer needed
8069
- */
8070
- public close() {
8071
- this.shutdownCircuitBreaker();
8072
- this.closeProvider();
8073
- }
8074
-
8075
- /**
8076
- * (Preview) Checks out a remote branch into the specified workspace folder, ensuring the worktree tracks the requested branch HEAD.
8077
- *
8078
- * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8079
- * @param CheckoutBranchRequest
8080
- * @return CheckoutBranchResponse
8081
- * @throws OciError when an error occurs
8082
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CheckoutBranch.ts.html |here} to see how to use CheckoutBranch API.
8083
- */
8084
- public async checkoutBranch (checkoutBranchRequest: requests.CheckoutBranchRequest) : Promise<responses.CheckoutBranchResponse> {
8085
- if (this.logger)
8086
- this.logger.debug("Calling operation GitClient#checkoutBranch.");
8087
- const operationName = "checkoutBranch";
8088
- const apiReferenceLink = "";
8089
- const pathParams = {
8090
- "{aiDataPlatformId}": checkoutBranchRequest.aiDataPlatformId,
8091
- "{workspaceKey}": checkoutBranchRequest.workspaceKey,
8092
- "{gitRepositoryKey}": checkoutBranchRequest.gitRepositoryKey,
8093
- };
8094
-
8095
- const queryParams = {
8096
- };
8097
-
8098
- let headerParams = {
8099
- "Content-Type": common.Constants.APPLICATION_JSON,
8100
- 'opc-retry-token': checkoutBranchRequest.opcRetryToken,'opc-request-id': checkoutBranchRequest.opcRequestId,'should-update-recent': checkoutBranchRequest.shouldUpdateRecent,'if-match': checkoutBranchRequest.ifMatch,
8101
- };
7985
+ let headerParams = {
7986
+ "Content-Type": common.Constants.APPLICATION_JSON,
7987
+ 'if-match': manageShareDataAssetRequest.ifMatch,'opc-request-id': manageShareDataAssetRequest.opcRequestId,'should-update-recent': manageShareDataAssetRequest.shouldUpdateRecent,
7988
+ };
8102
7989
 
8103
7990
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8104
7991
  const retrier = GenericRetrier.createPreferredRetrier(
8105
7992
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
8106
- checkoutBranchRequest.retryConfiguration,
7993
+ manageShareDataAssetRequest.retryConfiguration,
8107
7994
  specRetryConfiguration
8108
7995
  );
8109
7996
  if (this.logger) retrier.logger = this.logger;
8110
7997
  const request = await composeRequest({
8111
7998
  baseEndpoint: this._endpoint,
8112
7999
  defaultHeaders: this._defaultHeaders,
8113
- path: '/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/gitRepositories/{gitRepositoryKey}/actions/checkOutBranch',
8000
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/actions/manageDataAsset',
8114
8001
  method: 'POST',
8115
- bodyContent: common.ObjectSerializer.serialize(checkoutBranchRequest.checkoutBranchDetails, "CheckoutBranchDetails"
8116
- , model.CheckoutBranchDetails.getJsonObj)
8002
+ bodyContent: common.ObjectSerializer.serialize(manageShareDataAssetRequest.manageShareDataAssetDetails, "ManageShareDataAssetDetails"
8003
+ , model.ManageShareDataAssetDetails.getJsonObj)
8117
8004
  ,
8118
8005
  pathParams: pathParams,
8119
8006
  headerParams: headerParams,
@@ -8122,27 +8009,13 @@ export class GitClient {
8122
8009
  try {
8123
8010
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8124
8011
  const sdkResponse = composeResponse({
8125
- responseObject: <responses.CheckoutBranchResponse>{},
8126
- body: await response.json(),
8127
- bodyKey: "gitBranch",
8128
- bodyModel: model.GitBranch,
8129
- type: "model.GitBranch",
8012
+ responseObject: <responses.ManageShareDataAssetResponse>{},
8130
8013
  responseHeaders: [
8131
- {
8132
- value: response.headers.get("etag"),
8133
- key: "etag",
8134
- dataType: "string"
8135
- },
8136
8014
  {
8137
8015
  value: response.headers.get("opc-request-id"),
8138
8016
  key: "opcRequestId",
8139
8017
  dataType: "string"
8140
8018
  },
8141
- {
8142
- value: response.headers.get("aidp-async-operation-key"),
8143
- key: "aidpAsyncOperationKey",
8144
- dataType: "string"
8145
- },
8146
8019
  ]
8147
8020
  });
8148
8021
 
@@ -8154,23 +8027,21 @@ export class GitClient {
8154
8027
  }
8155
8028
 
8156
8029
  /**
8157
- * (Preview) Stages selected workspace updates, creates a commit, and pushes it upstream so automation can sync with Git providers.
8158
- *
8030
+ * Updates permissions on a Delta Share.
8159
8031
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8160
- * @param CommitPushGitRepositoryRequest
8161
- * @return CommitPushGitRepositoryResponse
8032
+ * @param ManageSharePermissionRequest
8033
+ * @return ManageSharePermissionResponse
8162
8034
  * @throws OciError when an error occurs
8163
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CommitPushGitRepository.ts.html |here} to see how to use CommitPushGitRepository API.
8035
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/ManageSharePermission.ts.html |here} to see how to use ManageSharePermission API.
8164
8036
  */
8165
- public async commitPushGitRepository (commitPushGitRepositoryRequest: requests.CommitPushGitRepositoryRequest) : Promise<responses.CommitPushGitRepositoryResponse> {
8037
+ public async manageSharePermission (manageSharePermissionRequest: requests.ManageSharePermissionRequest) : Promise<responses.ManageSharePermissionResponse> {
8166
8038
  if (this.logger)
8167
- this.logger.debug("Calling operation GitClient#commitPushGitRepository.");
8168
- const operationName = "commitPushGitRepository";
8039
+ this.logger.debug("Calling operation DeltaShareClient#manageSharePermission.");
8040
+ const operationName = "manageSharePermission";
8169
8041
  const apiReferenceLink = "";
8170
8042
  const pathParams = {
8171
- "{aiDataPlatformId}": commitPushGitRepositoryRequest.aiDataPlatformId,
8172
- "{workspaceKey}": commitPushGitRepositoryRequest.workspaceKey,
8173
- "{gitRepositoryKey}": commitPushGitRepositoryRequest.gitRepositoryKey,
8043
+ "{aiDataPlatformId}": manageSharePermissionRequest.aiDataPlatformId,
8044
+ "{shareKey}": manageSharePermissionRequest.shareKey,
8174
8045
  };
8175
8046
 
8176
8047
  const queryParams = {
@@ -8178,23 +8049,23 @@ export class GitClient {
8178
8049
 
8179
8050
  let headerParams = {
8180
8051
  "Content-Type": common.Constants.APPLICATION_JSON,
8181
- 'opc-retry-token': commitPushGitRepositoryRequest.opcRetryToken,'opc-request-id': commitPushGitRepositoryRequest.opcRequestId,'should-update-recent': commitPushGitRepositoryRequest.shouldUpdateRecent,'if-match': commitPushGitRepositoryRequest.ifMatch,
8052
+ 'if-match': manageSharePermissionRequest.ifMatch,'opc-request-id': manageSharePermissionRequest.opcRequestId,'should-update-recent': manageSharePermissionRequest.shouldUpdateRecent,
8182
8053
  };
8183
8054
 
8184
8055
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8185
8056
  const retrier = GenericRetrier.createPreferredRetrier(
8186
8057
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
8187
- commitPushGitRepositoryRequest.retryConfiguration,
8058
+ manageSharePermissionRequest.retryConfiguration,
8188
8059
  specRetryConfiguration
8189
8060
  );
8190
8061
  if (this.logger) retrier.logger = this.logger;
8191
8062
  const request = await composeRequest({
8192
8063
  baseEndpoint: this._endpoint,
8193
8064
  defaultHeaders: this._defaultHeaders,
8194
- path: '/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/gitRepositories/{gitRepositoryKey}/actions/commitPush',
8065
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}/actions/managePermission',
8195
8066
  method: 'POST',
8196
- bodyContent: common.ObjectSerializer.serialize(commitPushGitRepositoryRequest.commitPushDetails, "CommitPushDetails"
8197
- , model.CommitPushDetails.getJsonObj)
8067
+ bodyContent: common.ObjectSerializer.serialize(manageSharePermissionRequest.manageSharePermissionDetails, "ManageSharePermissionDetails"
8068
+ , model.ManageSharePermissionDetails.getJsonObj)
8198
8069
  ,
8199
8070
  pathParams: pathParams,
8200
8071
  headerParams: headerParams,
@@ -8203,18 +8074,13 @@ export class GitClient {
8203
8074
  try {
8204
8075
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8205
8076
  const sdkResponse = composeResponse({
8206
- responseObject: <responses.CommitPushGitRepositoryResponse>{},
8077
+ responseObject: <responses.ManageSharePermissionResponse>{},
8207
8078
  responseHeaders: [
8208
8079
  {
8209
8080
  value: response.headers.get("opc-request-id"),
8210
8081
  key: "opcRequestId",
8211
8082
  dataType: "string"
8212
8083
  },
8213
- {
8214
- value: response.headers.get("aidp-async-operation-key"),
8215
- key: "aidpAsyncOperationKey",
8216
- dataType: "string"
8217
- },
8218
8084
  ]
8219
8085
  });
8220
8086
 
@@ -8226,23 +8092,21 @@ export class GitClient {
8226
8092
  }
8227
8093
 
8228
8094
  /**
8229
- * (Preview) Creates a new branch in the connected repo so teams can stage changes in isolated workspaces.
8230
- *
8095
+ * Updates the metadata of a Delta Share recipient.
8231
8096
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8232
- * @param CreateGitBranchRequest
8233
- * @return CreateGitBranchResponse
8097
+ * @param UpdateRecipientRequest
8098
+ * @return UpdateRecipientResponse
8234
8099
  * @throws OciError when an error occurs
8235
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CreateGitBranch.ts.html |here} to see how to use CreateGitBranch API.
8100
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/UpdateRecipient.ts.html |here} to see how to use UpdateRecipient API.
8236
8101
  */
8237
- public async createGitBranch (createGitBranchRequest: requests.CreateGitBranchRequest) : Promise<responses.CreateGitBranchResponse> {
8102
+ public async updateRecipient (updateRecipientRequest: requests.UpdateRecipientRequest) : Promise<responses.UpdateRecipientResponse> {
8238
8103
  if (this.logger)
8239
- this.logger.debug("Calling operation GitClient#createGitBranch.");
8240
- const operationName = "createGitBranch";
8104
+ this.logger.debug("Calling operation DeltaShareClient#updateRecipient.");
8105
+ const operationName = "updateRecipient";
8241
8106
  const apiReferenceLink = "";
8242
8107
  const pathParams = {
8243
- "{aiDataPlatformId}": createGitBranchRequest.aiDataPlatformId,
8244
- "{workspaceKey}": createGitBranchRequest.workspaceKey,
8245
- "{gitRepositoryKey}": createGitBranchRequest.gitRepositoryKey,
8108
+ "{aiDataPlatformId}": updateRecipientRequest.aiDataPlatformId,
8109
+ "{recipientKey}": updateRecipientRequest.recipientKey,
8246
8110
  };
8247
8111
 
8248
8112
  const queryParams = {
@@ -8250,23 +8114,23 @@ export class GitClient {
8250
8114
 
8251
8115
  let headerParams = {
8252
8116
  "Content-Type": common.Constants.APPLICATION_JSON,
8253
- 'opc-retry-token': createGitBranchRequest.opcRetryToken,'opc-request-id': createGitBranchRequest.opcRequestId,'should-update-recent': createGitBranchRequest.shouldUpdateRecent,
8117
+ 'if-match': updateRecipientRequest.ifMatch,'opc-request-id': updateRecipientRequest.opcRequestId,'should-update-recent': updateRecipientRequest.shouldUpdateRecent,
8254
8118
  };
8255
8119
 
8256
8120
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8257
8121
  const retrier = GenericRetrier.createPreferredRetrier(
8258
8122
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
8259
- createGitBranchRequest.retryConfiguration,
8123
+ updateRecipientRequest.retryConfiguration,
8260
8124
  specRetryConfiguration
8261
8125
  );
8262
8126
  if (this.logger) retrier.logger = this.logger;
8263
8127
  const request = await composeRequest({
8264
8128
  baseEndpoint: this._endpoint,
8265
8129
  defaultHeaders: this._defaultHeaders,
8266
- path: '/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/gitRepositories/{gitRepositoryKey}/gitBranches',
8267
- method: 'POST',
8268
- bodyContent: common.ObjectSerializer.serialize(createGitBranchRequest.createGitBranchDetails, "CreateGitBranchDetails"
8269
- , model.CreateGitBranchDetails.getJsonObj)
8130
+ path: '/aiDataPlatforms/{aiDataPlatformId}/recipients/{recipientKey}',
8131
+ method: 'PUT',
8132
+ bodyContent: common.ObjectSerializer.serialize(updateRecipientRequest.updateRecipientDetails, "UpdateRecipientDetails"
8133
+ , model.UpdateRecipientDetails.getJsonObj)
8270
8134
  ,
8271
8135
  pathParams: pathParams,
8272
8136
  headerParams: headerParams,
@@ -8275,8 +8139,463 @@ export class GitClient {
8275
8139
  try {
8276
8140
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8277
8141
  const sdkResponse = composeResponse({
8278
- responseObject: <responses.CreateGitBranchResponse>{},
8279
- body: await response.json(),
8142
+ responseObject: <responses.UpdateRecipientResponse>{},
8143
+ responseHeaders: [
8144
+ {
8145
+ value: response.headers.get("opc-request-id"),
8146
+ key: "opcRequestId",
8147
+ dataType: "string"
8148
+ },
8149
+ ]
8150
+ });
8151
+
8152
+ return sdkResponse;
8153
+ }
8154
+ catch (err) {
8155
+ throw err;
8156
+ }
8157
+ }
8158
+
8159
+ /**
8160
+ * Update a Delta Share with the provided metadata.
8161
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8162
+ * @param UpdateShareRequest
8163
+ * @return UpdateShareResponse
8164
+ * @throws OciError when an error occurs
8165
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/UpdateShare.ts.html |here} to see how to use UpdateShare API.
8166
+ */
8167
+ public async updateShare (updateShareRequest: requests.UpdateShareRequest) : Promise<responses.UpdateShareResponse> {
8168
+ if (this.logger)
8169
+ this.logger.debug("Calling operation DeltaShareClient#updateShare.");
8170
+ const operationName = "updateShare";
8171
+ const apiReferenceLink = "";
8172
+ const pathParams = {
8173
+ "{aiDataPlatformId}": updateShareRequest.aiDataPlatformId,
8174
+ "{shareKey}": updateShareRequest.shareKey,
8175
+ };
8176
+
8177
+ const queryParams = {
8178
+ };
8179
+
8180
+ let headerParams = {
8181
+ "Content-Type": common.Constants.APPLICATION_JSON,
8182
+ 'if-match': updateShareRequest.ifMatch,'opc-request-id': updateShareRequest.opcRequestId,'should-update-recent': updateShareRequest.shouldUpdateRecent,
8183
+ };
8184
+
8185
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8186
+ const retrier = GenericRetrier.createPreferredRetrier(
8187
+ this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
8188
+ updateShareRequest.retryConfiguration,
8189
+ specRetryConfiguration
8190
+ );
8191
+ if (this.logger) retrier.logger = this.logger;
8192
+ const request = await composeRequest({
8193
+ baseEndpoint: this._endpoint,
8194
+ defaultHeaders: this._defaultHeaders,
8195
+ path: '/aiDataPlatforms/{aiDataPlatformId}/shares/{shareKey}',
8196
+ method: 'PUT',
8197
+ bodyContent: common.ObjectSerializer.serialize(updateShareRequest.updateShareDetails, "UpdateShareDetails"
8198
+ , model.UpdateShareDetails.getJsonObj)
8199
+ ,
8200
+ pathParams: pathParams,
8201
+ headerParams: headerParams,
8202
+ queryParams: queryParams
8203
+ });
8204
+ try {
8205
+ const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8206
+ const sdkResponse = composeResponse({
8207
+ responseObject: <responses.UpdateShareResponse>{},
8208
+ responseHeaders: [
8209
+ {
8210
+ value: response.headers.get("opc-request-id"),
8211
+ key: "opcRequestId",
8212
+ dataType: "string"
8213
+ },
8214
+ ]
8215
+ });
8216
+
8217
+ return sdkResponse;
8218
+ }
8219
+ catch (err) {
8220
+ throw err;
8221
+ }
8222
+ }
8223
+
8224
+ }
8225
+ export enum GitApiKeys {
8226
+ }
8227
+ /**
8228
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
8229
+ */
8230
+ export class GitClient {
8231
+ protected static serviceEndpointTemplate = 'https://datalake.{region}.oci.{secondLevelDomain}';
8232
+ protected static endpointServiceName = '';
8233
+ protected "_realmSpecificEndpointTemplateEnabled" : boolean | undefined = undefined;
8234
+ protected "_endpoint" : string = '';
8235
+ protected "_defaultHeaders" : any = {};
8236
+ protected "_clientConfiguration": common.ClientConfiguration;
8237
+ protected _circuitBreaker: typeof Breaker | null = null;
8238
+ protected _httpOptions: any = undefined;
8239
+ protected _bodyDuplexMode: any = undefined;
8240
+ public targetService = "Git";
8241
+ protected _regionId : string = '';
8242
+ protected "_region" : common.Region;
8243
+ protected _lastSetRegionOrRegionId : string = "";
8244
+
8245
+ protected _httpClient: common.HttpClient;
8246
+ protected _authProvider: common.AuthenticationDetailsProvider | undefined;
8247
+
8248
+ constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) {
8249
+ const requestSigner = params.authenticationDetailsProvider
8250
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
8251
+ : null;
8252
+ this._authProvider = params.authenticationDetailsProvider;
8253
+ if (clientConfiguration) {
8254
+ this._clientConfiguration = clientConfiguration;
8255
+ this._circuitBreaker = clientConfiguration.circuitBreaker ? clientConfiguration.circuitBreaker!.circuit : null;
8256
+ this._httpOptions = clientConfiguration.httpOptions ? clientConfiguration.httpOptions : undefined;
8257
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode ? clientConfiguration.bodyDuplexMode : undefined;
8258
+ }
8259
+
8260
+ if (!developerToolConfiguration.isServiceEnabled("aidp"))
8261
+ {
8262
+ 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 : ";
8263
+ throw errmsg.concat("aidp");
8264
+ }
8265
+
8266
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
8267
+ const specCircuitBreakerEnabled = true;
8268
+ if (!this._circuitBreaker && common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
8269
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
8270
+ }
8271
+ this._httpClient = params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
8272
+
8273
+ if (params.authenticationDetailsProvider &&
8274
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
8275
+ const provider: common.RegionProvider = params.authenticationDetailsProvider;
8276
+ if (provider.getRegion()) {
8277
+ this.region = provider.getRegion();
8278
+ }
8279
+ }
8280
+ }
8281
+
8282
+ /**
8283
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
8284
+ */
8285
+ public get endpoint() {
8286
+ return this._endpoint;
8287
+ }
8288
+
8289
+ /**
8290
+ * Sets the endpoint to call (ex, https://www.example.com).
8291
+ * @param endpoint The endpoint of the service.
8292
+ */
8293
+ public set endpoint(endpoint: string) {
8294
+ this._endpoint = endpoint;
8295
+ this._endpoint = this._endpoint + '/20260430';
8296
+ if (this.logger)
8297
+ this.logger.info(`GitClient endpoint set to ${this._endpoint}`);
8298
+ }
8299
+
8300
+ public get logger() {
8301
+ return common.LOG.logger;
8302
+ }
8303
+
8304
+ /**
8305
+ * Determines whether realm specific endpoint should be used or not.
8306
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
8307
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
8308
+ */
8309
+ public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled : boolean) {
8310
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
8311
+ if (this.logger)
8312
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
8313
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
8314
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
8315
+ GitClient.serviceEndpointTemplate,
8316
+ this._region,
8317
+ GitClient.endpointServiceName,
8318
+
8319
+ );
8320
+ } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
8321
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
8322
+ GitClient.serviceEndpointTemplate,
8323
+ this._regionId,
8324
+ GitClient.endpointServiceName,
8325
+
8326
+ );
8327
+ }
8328
+ }
8329
+
8330
+ /**
8331
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
8332
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
8333
+ * @param region The region of the service.
8334
+ */
8335
+ public set region(region: common.Region) {
8336
+ this._region = region;
8337
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
8338
+ GitClient.serviceEndpointTemplate,
8339
+ region,
8340
+ GitClient.endpointServiceName,
8341
+
8342
+ );
8343
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
8344
+ }
8345
+
8346
+ /**
8347
+ * Sets the regionId to call (ex, 'us-phoenix-1').
8348
+ *
8349
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
8350
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
8351
+ * and then call {@link #endpoint(String) endpoint}.
8352
+ * @param regionId The public region ID.
8353
+ */
8354
+ public set regionId(regionId: string) {
8355
+ this._regionId = regionId;
8356
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
8357
+ GitClient.serviceEndpointTemplate,
8358
+ regionId,
8359
+ GitClient.endpointServiceName,
8360
+
8361
+ );
8362
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
8363
+ }
8364
+
8365
+
8366
+
8367
+ /**
8368
+ * Shutdown the circuit breaker used by the client when it is no longer needed
8369
+ */
8370
+ public shutdownCircuitBreaker() {
8371
+ if (this._circuitBreaker) {
8372
+ this._circuitBreaker.shutdown();
8373
+ }
8374
+ }
8375
+
8376
+ /**
8377
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
8378
+ */
8379
+ public closeProvider() {
8380
+ if (this._authProvider) {
8381
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
8382
+ (<common.AbstractRequestingAuthenticationDetailsProvider>this._authProvider).closeProvider();
8383
+ }
8384
+ }
8385
+
8386
+ /**
8387
+ * Close the client once it is no longer needed
8388
+ */
8389
+ public close() {
8390
+ this.shutdownCircuitBreaker();
8391
+ this.closeProvider();
8392
+ }
8393
+
8394
+ /**
8395
+ * (Preview) Checks out a remote branch into the specified workspace folder, ensuring the worktree tracks the requested branch HEAD.
8396
+ *
8397
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8398
+ * @param CheckoutBranchRequest
8399
+ * @return CheckoutBranchResponse
8400
+ * @throws OciError when an error occurs
8401
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CheckoutBranch.ts.html |here} to see how to use CheckoutBranch API.
8402
+ */
8403
+ public async checkoutBranch (checkoutBranchRequest: requests.CheckoutBranchRequest) : Promise<responses.CheckoutBranchResponse> {
8404
+ if (this.logger)
8405
+ this.logger.debug("Calling operation GitClient#checkoutBranch.");
8406
+ const operationName = "checkoutBranch";
8407
+ const apiReferenceLink = "";
8408
+ const pathParams = {
8409
+ "{aiDataPlatformId}": checkoutBranchRequest.aiDataPlatformId,
8410
+ "{workspaceKey}": checkoutBranchRequest.workspaceKey,
8411
+ "{gitRepositoryKey}": checkoutBranchRequest.gitRepositoryKey,
8412
+ };
8413
+
8414
+ const queryParams = {
8415
+ };
8416
+
8417
+ let headerParams = {
8418
+ "Content-Type": common.Constants.APPLICATION_JSON,
8419
+ 'opc-retry-token': checkoutBranchRequest.opcRetryToken,'opc-request-id': checkoutBranchRequest.opcRequestId,'should-update-recent': checkoutBranchRequest.shouldUpdateRecent,'if-match': checkoutBranchRequest.ifMatch,
8420
+ };
8421
+
8422
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8423
+ const retrier = GenericRetrier.createPreferredRetrier(
8424
+ this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
8425
+ checkoutBranchRequest.retryConfiguration,
8426
+ specRetryConfiguration
8427
+ );
8428
+ if (this.logger) retrier.logger = this.logger;
8429
+ const request = await composeRequest({
8430
+ baseEndpoint: this._endpoint,
8431
+ defaultHeaders: this._defaultHeaders,
8432
+ path: '/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/gitRepositories/{gitRepositoryKey}/actions/checkOutBranch',
8433
+ method: 'POST',
8434
+ bodyContent: common.ObjectSerializer.serialize(checkoutBranchRequest.checkoutBranchDetails, "CheckoutBranchDetails"
8435
+ , model.CheckoutBranchDetails.getJsonObj)
8436
+ ,
8437
+ pathParams: pathParams,
8438
+ headerParams: headerParams,
8439
+ queryParams: queryParams
8440
+ });
8441
+ try {
8442
+ const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8443
+ const sdkResponse = composeResponse({
8444
+ responseObject: <responses.CheckoutBranchResponse>{},
8445
+ body: await response.json(),
8446
+ bodyKey: "gitBranch",
8447
+ bodyModel: model.GitBranch,
8448
+ type: "model.GitBranch",
8449
+ responseHeaders: [
8450
+ {
8451
+ value: response.headers.get("etag"),
8452
+ key: "etag",
8453
+ dataType: "string"
8454
+ },
8455
+ {
8456
+ value: response.headers.get("opc-request-id"),
8457
+ key: "opcRequestId",
8458
+ dataType: "string"
8459
+ },
8460
+ {
8461
+ value: response.headers.get("aidp-async-operation-key"),
8462
+ key: "aidpAsyncOperationKey",
8463
+ dataType: "string"
8464
+ },
8465
+ ]
8466
+ });
8467
+
8468
+ return sdkResponse;
8469
+ }
8470
+ catch (err) {
8471
+ throw err;
8472
+ }
8473
+ }
8474
+
8475
+ /**
8476
+ * (Preview) Stages selected workspace updates, creates a commit, and pushes it upstream so automation can sync with Git providers.
8477
+ *
8478
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8479
+ * @param CommitPushGitRepositoryRequest
8480
+ * @return CommitPushGitRepositoryResponse
8481
+ * @throws OciError when an error occurs
8482
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CommitPushGitRepository.ts.html |here} to see how to use CommitPushGitRepository API.
8483
+ */
8484
+ public async commitPushGitRepository (commitPushGitRepositoryRequest: requests.CommitPushGitRepositoryRequest) : Promise<responses.CommitPushGitRepositoryResponse> {
8485
+ if (this.logger)
8486
+ this.logger.debug("Calling operation GitClient#commitPushGitRepository.");
8487
+ const operationName = "commitPushGitRepository";
8488
+ const apiReferenceLink = "";
8489
+ const pathParams = {
8490
+ "{aiDataPlatformId}": commitPushGitRepositoryRequest.aiDataPlatformId,
8491
+ "{workspaceKey}": commitPushGitRepositoryRequest.workspaceKey,
8492
+ "{gitRepositoryKey}": commitPushGitRepositoryRequest.gitRepositoryKey,
8493
+ };
8494
+
8495
+ const queryParams = {
8496
+ };
8497
+
8498
+ let headerParams = {
8499
+ "Content-Type": common.Constants.APPLICATION_JSON,
8500
+ 'opc-retry-token': commitPushGitRepositoryRequest.opcRetryToken,'opc-request-id': commitPushGitRepositoryRequest.opcRequestId,'should-update-recent': commitPushGitRepositoryRequest.shouldUpdateRecent,'if-match': commitPushGitRepositoryRequest.ifMatch,
8501
+ };
8502
+
8503
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8504
+ const retrier = GenericRetrier.createPreferredRetrier(
8505
+ this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
8506
+ commitPushGitRepositoryRequest.retryConfiguration,
8507
+ specRetryConfiguration
8508
+ );
8509
+ if (this.logger) retrier.logger = this.logger;
8510
+ const request = await composeRequest({
8511
+ baseEndpoint: this._endpoint,
8512
+ defaultHeaders: this._defaultHeaders,
8513
+ path: '/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/gitRepositories/{gitRepositoryKey}/actions/commitPush',
8514
+ method: 'POST',
8515
+ bodyContent: common.ObjectSerializer.serialize(commitPushGitRepositoryRequest.commitPushDetails, "CommitPushDetails"
8516
+ , model.CommitPushDetails.getJsonObj)
8517
+ ,
8518
+ pathParams: pathParams,
8519
+ headerParams: headerParams,
8520
+ queryParams: queryParams
8521
+ });
8522
+ try {
8523
+ const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8524
+ const sdkResponse = composeResponse({
8525
+ responseObject: <responses.CommitPushGitRepositoryResponse>{},
8526
+ responseHeaders: [
8527
+ {
8528
+ value: response.headers.get("opc-request-id"),
8529
+ key: "opcRequestId",
8530
+ dataType: "string"
8531
+ },
8532
+ {
8533
+ value: response.headers.get("aidp-async-operation-key"),
8534
+ key: "aidpAsyncOperationKey",
8535
+ dataType: "string"
8536
+ },
8537
+ ]
8538
+ });
8539
+
8540
+ return sdkResponse;
8541
+ }
8542
+ catch (err) {
8543
+ throw err;
8544
+ }
8545
+ }
8546
+
8547
+ /**
8548
+ * (Preview) Creates a new branch in the connected repo so teams can stage changes in isolated workspaces.
8549
+ *
8550
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
8551
+ * @param CreateGitBranchRequest
8552
+ * @return CreateGitBranchResponse
8553
+ * @throws OciError when an error occurs
8554
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/CreateGitBranch.ts.html |here} to see how to use CreateGitBranch API.
8555
+ */
8556
+ public async createGitBranch (createGitBranchRequest: requests.CreateGitBranchRequest) : Promise<responses.CreateGitBranchResponse> {
8557
+ if (this.logger)
8558
+ this.logger.debug("Calling operation GitClient#createGitBranch.");
8559
+ const operationName = "createGitBranch";
8560
+ const apiReferenceLink = "";
8561
+ const pathParams = {
8562
+ "{aiDataPlatformId}": createGitBranchRequest.aiDataPlatformId,
8563
+ "{workspaceKey}": createGitBranchRequest.workspaceKey,
8564
+ "{gitRepositoryKey}": createGitBranchRequest.gitRepositoryKey,
8565
+ };
8566
+
8567
+ const queryParams = {
8568
+ };
8569
+
8570
+ let headerParams = {
8571
+ "Content-Type": common.Constants.APPLICATION_JSON,
8572
+ 'opc-retry-token': createGitBranchRequest.opcRetryToken,'opc-request-id': createGitBranchRequest.opcRequestId,'should-update-recent': createGitBranchRequest.shouldUpdateRecent,
8573
+ };
8574
+
8575
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
8576
+ const retrier = GenericRetrier.createPreferredRetrier(
8577
+ this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
8578
+ createGitBranchRequest.retryConfiguration,
8579
+ specRetryConfiguration
8580
+ );
8581
+ if (this.logger) retrier.logger = this.logger;
8582
+ const request = await composeRequest({
8583
+ baseEndpoint: this._endpoint,
8584
+ defaultHeaders: this._defaultHeaders,
8585
+ path: '/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/gitRepositories/{gitRepositoryKey}/gitBranches',
8586
+ method: 'POST',
8587
+ bodyContent: common.ObjectSerializer.serialize(createGitBranchRequest.createGitBranchDetails, "CreateGitBranchDetails"
8588
+ , model.CreateGitBranchDetails.getJsonObj)
8589
+ ,
8590
+ pathParams: pathParams,
8591
+ headerParams: headerParams,
8592
+ queryParams: queryParams
8593
+ });
8594
+ try {
8595
+ const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8596
+ const sdkResponse = composeResponse({
8597
+ responseObject: <responses.CreateGitBranchResponse>{},
8598
+ body: await response.json(),
8280
8599
  bodyKey: "createGitBranch",
8281
8600
  bodyModel: model.CreateGitBranch,
8282
8601
  type: "model.CreateGitBranch",
@@ -16525,157 +16844,8 @@ export class SchemaClient {
16525
16844
  type: "model.Schema",
16526
16845
  responseHeaders: [
16527
16846
  {
16528
- value: response.headers.get("opc-work-request-id"),
16529
- key: "opcWorkRequestId",
16530
- dataType: "string"
16531
- },
16532
- {
16533
- value: response.headers.get("opc-request-id"),
16534
- key: "opcRequestId",
16535
- dataType: "string"
16536
- },
16537
- {
16538
- value: response.headers.get("etag"),
16539
- key: "etag",
16540
- dataType: "string"
16541
- },
16542
- ]
16543
- });
16544
-
16545
- return sdkResponse;
16546
- }
16547
- catch (err) {
16548
- throw err;
16549
- }
16550
- }
16551
-
16552
- /**
16553
- * Updates a table with provided details.
16554
- * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
16555
- * @param UpdateTableRequest
16556
- * @return UpdateTableResponse
16557
- * @throws OciError when an error occurs
16558
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/UpdateTable.ts.html |here} to see how to use UpdateTable API.
16559
- */
16560
- public async updateTable (updateTableRequest: requests.UpdateTableRequest) : Promise<responses.UpdateTableResponse> {
16561
- if (this.logger)
16562
- this.logger.debug("Calling operation SchemaClient#updateTable.");
16563
- const operationName = "updateTable";
16564
- const apiReferenceLink = "";
16565
- const pathParams = {
16566
- "{aiDataPlatformId}": updateTableRequest.aiDataPlatformId,
16567
- "{tableKey}": updateTableRequest.tableKey,
16568
- };
16569
-
16570
- const queryParams = {
16571
- };
16572
-
16573
- let headerParams = {
16574
- "Content-Type": common.Constants.APPLICATION_JSON,
16575
- 'should-update-recent': updateTableRequest.shouldUpdateRecent,'if-match': updateTableRequest.ifMatch,'opc-request-id': updateTableRequest.opcRequestId,
16576
- };
16577
-
16578
- const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
16579
- const retrier = GenericRetrier.createPreferredRetrier(
16580
- this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
16581
- updateTableRequest.retryConfiguration,
16582
- specRetryConfiguration
16583
- );
16584
- if (this.logger) retrier.logger = this.logger;
16585
- const request = await composeRequest({
16586
- baseEndpoint: this._endpoint,
16587
- defaultHeaders: this._defaultHeaders,
16588
- path: '/aiDataPlatforms/{aiDataPlatformId}/tables/{tableKey}',
16589
- method: 'PUT',
16590
- bodyContent: common.ObjectSerializer.serialize(updateTableRequest.updateTableDetails, "UpdateTableDetails"
16591
- , model.UpdateTableDetails.getJsonObj)
16592
- ,
16593
- pathParams: pathParams,
16594
- headerParams: headerParams,
16595
- queryParams: queryParams
16596
- });
16597
- try {
16598
- const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
16599
- const sdkResponse = composeResponse({
16600
- responseObject: <responses.UpdateTableResponse>{},
16601
- responseHeaders: [
16602
- {
16603
- value: response.headers.get("aidp-async-operation-key"),
16604
- key: "aidpAsyncOperationKey",
16605
- dataType: "string"
16606
- },
16607
- {
16608
- value: response.headers.get("opc-request-id"),
16609
- key: "opcRequestId",
16610
- dataType: "string"
16611
- },
16612
- ]
16613
- });
16614
-
16615
- return sdkResponse;
16616
- }
16617
- catch (err) {
16618
- throw err;
16619
- }
16620
- }
16621
-
16622
- /**
16623
- * Updates a view with given information.
16624
- * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
16625
- * @param UpdateViewRequest
16626
- * @return UpdateViewResponse
16627
- * @throws OciError when an error occurs
16628
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/UpdateView.ts.html |here} to see how to use UpdateView API.
16629
- */
16630
- public async updateView (updateViewRequest: requests.UpdateViewRequest) : Promise<responses.UpdateViewResponse> {
16631
- if (this.logger)
16632
- this.logger.debug("Calling operation SchemaClient#updateView.");
16633
- const operationName = "updateView";
16634
- const apiReferenceLink = "";
16635
- const pathParams = {
16636
- "{aiDataPlatformId}": updateViewRequest.aiDataPlatformId,
16637
- "{viewKey}": updateViewRequest.viewKey,
16638
- };
16639
-
16640
- const queryParams = {
16641
- };
16642
-
16643
- let headerParams = {
16644
- "Content-Type": common.Constants.APPLICATION_JSON,
16645
- 'should-update-recent': updateViewRequest.shouldUpdateRecent,'if-match': updateViewRequest.ifMatch,'opc-request-id': updateViewRequest.opcRequestId,
16646
- };
16647
-
16648
- const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
16649
- const retrier = GenericRetrier.createPreferredRetrier(
16650
- this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
16651
- updateViewRequest.retryConfiguration,
16652
- specRetryConfiguration
16653
- );
16654
- if (this.logger) retrier.logger = this.logger;
16655
- const request = await composeRequest({
16656
- baseEndpoint: this._endpoint,
16657
- defaultHeaders: this._defaultHeaders,
16658
- path: '/aiDataPlatforms/{aiDataPlatformId}/views/{viewKey}',
16659
- method: 'PUT',
16660
- bodyContent: common.ObjectSerializer.serialize(updateViewRequest.updateViewDetails, "UpdateViewDetails"
16661
- , model.UpdateViewDetails.getJsonObj)
16662
- ,
16663
- pathParams: pathParams,
16664
- headerParams: headerParams,
16665
- queryParams: queryParams
16666
- });
16667
- try {
16668
- const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
16669
- const sdkResponse = composeResponse({
16670
- responseObject: <responses.UpdateViewResponse>{},
16671
- body: await response.json(),
16672
- bodyKey: "view",
16673
- bodyModel: model.View,
16674
- type: "model.View",
16675
- responseHeaders: [
16676
- {
16677
- value: response.headers.get("etag"),
16678
- key: "etag",
16847
+ value: response.headers.get("opc-work-request-id"),
16848
+ key: "opcWorkRequestId",
16679
16849
  dataType: "string"
16680
16850
  },
16681
16851
  {
@@ -16683,6 +16853,11 @@ export class SchemaClient {
16683
16853
  key: "opcRequestId",
16684
16854
  dataType: "string"
16685
16855
  },
16856
+ {
16857
+ value: response.headers.get("etag"),
16858
+ key: "etag",
16859
+ dataType: "string"
16860
+ },
16686
16861
  ]
16687
16862
  });
16688
16863
 
@@ -16693,192 +16868,22 @@ export class SchemaClient {
16693
16868
  }
16694
16869
  }
16695
16870
 
16696
- }
16697
- export enum SemanticCatalogApiKeys {
16698
- }
16699
- /**
16700
- * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
16701
- */
16702
- export class SemanticCatalogClient {
16703
- protected static serviceEndpointTemplate = 'https://datalake.{region}.oci.{secondLevelDomain}';
16704
- protected static endpointServiceName = '';
16705
- protected "_realmSpecificEndpointTemplateEnabled" : boolean | undefined = undefined;
16706
- protected "_endpoint" : string = '';
16707
- protected "_defaultHeaders" : any = {};
16708
- protected "_clientConfiguration": common.ClientConfiguration;
16709
- protected _circuitBreaker: typeof Breaker | null = null;
16710
- protected _httpOptions: any = undefined;
16711
- protected _bodyDuplexMode: any = undefined;
16712
- public targetService = "SemanticCatalog";
16713
- protected _regionId : string = '';
16714
- protected "_region" : common.Region;
16715
- protected _lastSetRegionOrRegionId : string = "";
16716
-
16717
- protected _httpClient: common.HttpClient;
16718
- protected _authProvider: common.AuthenticationDetailsProvider | undefined;
16719
-
16720
- constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) {
16721
- const requestSigner = params.authenticationDetailsProvider
16722
- ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
16723
- : null;
16724
- this._authProvider = params.authenticationDetailsProvider;
16725
- if (clientConfiguration) {
16726
- this._clientConfiguration = clientConfiguration;
16727
- this._circuitBreaker = clientConfiguration.circuitBreaker ? clientConfiguration.circuitBreaker!.circuit : null;
16728
- this._httpOptions = clientConfiguration.httpOptions ? clientConfiguration.httpOptions : undefined;
16729
- this._bodyDuplexMode = clientConfiguration.bodyDuplexMode ? clientConfiguration.bodyDuplexMode : undefined;
16730
- }
16731
-
16732
- if (!developerToolConfiguration.isServiceEnabled("aidp"))
16733
- {
16734
- 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 : ";
16735
- throw errmsg.concat("aidp");
16736
- }
16737
-
16738
- // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
16739
- const specCircuitBreakerEnabled = true;
16740
- if (!this._circuitBreaker && common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
16741
- this._circuitBreaker = new common.CircuitBreaker().circuit;
16742
- }
16743
- this._httpClient = params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
16744
-
16745
- if (params.authenticationDetailsProvider &&
16746
- common.isRegionProvider(params.authenticationDetailsProvider)) {
16747
- const provider: common.RegionProvider = params.authenticationDetailsProvider;
16748
- if (provider.getRegion()) {
16749
- this.region = provider.getRegion();
16750
- }
16751
- }
16752
- }
16753
-
16754
- /**
16755
- * Get the endpoint that is being used to call (ex, https://www.example.com).
16756
- */
16757
- public get endpoint() {
16758
- return this._endpoint;
16759
- }
16760
-
16761
- /**
16762
- * Sets the endpoint to call (ex, https://www.example.com).
16763
- * @param endpoint The endpoint of the service.
16764
- */
16765
- public set endpoint(endpoint: string) {
16766
- this._endpoint = endpoint;
16767
- this._endpoint = this._endpoint + '/20260430';
16768
- if (this.logger)
16769
- this.logger.info(`SemanticCatalogClient endpoint set to ${this._endpoint}`);
16770
- }
16771
-
16772
- public get logger() {
16773
- return common.LOG.logger;
16774
- }
16775
-
16776
- /**
16777
- * Determines whether realm specific endpoint should be used or not.
16778
- * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
16779
- * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
16780
- */
16781
- public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled : boolean) {
16782
- this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
16783
- if (this.logger)
16784
- this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
16785
- if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
16786
- this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
16787
- SemanticCatalogClient.serviceEndpointTemplate,
16788
- this._region,
16789
- SemanticCatalogClient.endpointServiceName,
16790
-
16791
- );
16792
- } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
16793
- this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
16794
- SemanticCatalogClient.serviceEndpointTemplate,
16795
- this._regionId,
16796
- SemanticCatalogClient.endpointServiceName,
16797
-
16798
- );
16799
- }
16800
- }
16801
-
16802
- /**
16803
- * Sets the region to call (ex, Region.US_PHOENIX_1).
16804
- * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
16805
- * @param region The region of the service.
16806
- */
16807
- public set region(region: common.Region) {
16808
- this._region = region;
16809
- this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
16810
- SemanticCatalogClient.serviceEndpointTemplate,
16811
- region,
16812
- SemanticCatalogClient.endpointServiceName,
16813
-
16814
- );
16815
- this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
16816
- }
16817
-
16818
- /**
16819
- * Sets the regionId to call (ex, 'us-phoenix-1').
16820
- *
16821
- * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
16822
- * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
16823
- * and then call {@link #endpoint(String) endpoint}.
16824
- * @param regionId The public region ID.
16825
- */
16826
- public set regionId(regionId: string) {
16827
- this._regionId = regionId;
16828
- this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
16829
- SemanticCatalogClient.serviceEndpointTemplate,
16830
- regionId,
16831
- SemanticCatalogClient.endpointServiceName,
16832
-
16833
- );
16834
- this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
16835
- }
16836
-
16837
-
16838
-
16839
- /**
16840
- * Shutdown the circuit breaker used by the client when it is no longer needed
16841
- */
16842
- public shutdownCircuitBreaker() {
16843
- if (this._circuitBreaker) {
16844
- this._circuitBreaker.shutdown();
16845
- }
16846
- }
16847
-
16848
- /**
16849
- * Close the provider if possible which in turn shuts down any associated circuit breaker
16850
- */
16851
- public closeProvider() {
16852
- if (this._authProvider) {
16853
- if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
16854
- (<common.AbstractRequestingAuthenticationDetailsProvider>this._authProvider).closeProvider();
16855
- }
16856
- }
16857
-
16858
- /**
16859
- * Close the client once it is no longer needed
16860
- */
16861
- public close() {
16862
- this.shutdownCircuitBreaker();
16863
- this.closeProvider();
16864
- }
16865
-
16866
16871
  /**
16867
- * (Preview) Returns complete lineage for the provided anchor node in CSV format.
16868
- *
16872
+ * Updates a table with provided details.
16869
16873
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
16870
- * @param ExportLineageRequest
16871
- * @return ExportLineageResponse
16874
+ * @param UpdateTableRequest
16875
+ * @return UpdateTableResponse
16872
16876
  * @throws OciError when an error occurs
16873
- * @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.
16877
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/UpdateTable.ts.html |here} to see how to use UpdateTable API.
16874
16878
  */
16875
- public async exportLineage (exportLineageRequest: requests.ExportLineageRequest) : Promise<responses.ExportLineageResponse> {
16879
+ public async updateTable (updateTableRequest: requests.UpdateTableRequest) : Promise<responses.UpdateTableResponse> {
16876
16880
  if (this.logger)
16877
- this.logger.debug("Calling operation SemanticCatalogClient#exportLineage.");
16878
- const operationName = "exportLineage";
16881
+ this.logger.debug("Calling operation SchemaClient#updateTable.");
16882
+ const operationName = "updateTable";
16879
16883
  const apiReferenceLink = "";
16880
16884
  const pathParams = {
16881
- "{aiDataPlatformId}": exportLineageRequest.aiDataPlatformId,
16885
+ "{aiDataPlatformId}": updateTableRequest.aiDataPlatformId,
16886
+ "{tableKey}": updateTableRequest.tableKey,
16882
16887
  };
16883
16888
 
16884
16889
  const queryParams = {
@@ -16886,23 +16891,23 @@ export class SemanticCatalogClient {
16886
16891
 
16887
16892
  let headerParams = {
16888
16893
  "Content-Type": common.Constants.APPLICATION_JSON,
16889
- 'opc-retry-token': exportLineageRequest.opcRetryToken,'opc-request-id': exportLineageRequest.opcRequestId,'if-match': exportLineageRequest.ifMatch,
16894
+ 'should-update-recent': updateTableRequest.shouldUpdateRecent,'if-match': updateTableRequest.ifMatch,'opc-request-id': updateTableRequest.opcRequestId,
16890
16895
  };
16891
16896
 
16892
16897
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
16893
16898
  const retrier = GenericRetrier.createPreferredRetrier(
16894
16899
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
16895
- exportLineageRequest.retryConfiguration,
16900
+ updateTableRequest.retryConfiguration,
16896
16901
  specRetryConfiguration
16897
16902
  );
16898
16903
  if (this.logger) retrier.logger = this.logger;
16899
16904
  const request = await composeRequest({
16900
16905
  baseEndpoint: this._endpoint,
16901
16906
  defaultHeaders: this._defaultHeaders,
16902
- path: '/aiDataPlatforms/{aiDataPlatformId}/actions/exportLineage',
16903
- method: 'POST',
16904
- bodyContent: common.ObjectSerializer.serialize(exportLineageRequest.exportLineageDetails, "ExportLineageDetails"
16905
- , model.ExportLineageDetails.getJsonObj)
16907
+ path: '/aiDataPlatforms/{aiDataPlatformId}/tables/{tableKey}',
16908
+ method: 'PUT',
16909
+ bodyContent: common.ObjectSerializer.serialize(updateTableRequest.updateTableDetails, "UpdateTableDetails"
16910
+ , model.UpdateTableDetails.getJsonObj)
16906
16911
  ,
16907
16912
  pathParams: pathParams,
16908
16913
  headerParams: headerParams,
@@ -16911,20 +16916,16 @@ export class SemanticCatalogClient {
16911
16916
  try {
16912
16917
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
16913
16918
  const sdkResponse = composeResponse({
16914
- responseObject: <responses.ExportLineageResponse>{},
16915
-
16916
- body: response.body!,
16917
- bodyKey: "value",
16918
- bodyModel: "string",
16919
+ responseObject: <responses.UpdateTableResponse>{},
16919
16920
  responseHeaders: [
16920
16921
  {
16921
- value: response.headers.get("opc-request-id"),
16922
- key: "opcRequestId",
16922
+ value: response.headers.get("aidp-async-operation-key"),
16923
+ key: "aidpAsyncOperationKey",
16923
16924
  dataType: "string"
16924
16925
  },
16925
16926
  {
16926
- value: response.headers.get("Content-Disposition"),
16927
- key: "contentDisposition",
16927
+ value: response.headers.get("opc-request-id"),
16928
+ key: "opcRequestId",
16928
16929
  dataType: "string"
16929
16930
  },
16930
16931
  ]
@@ -16938,46 +16939,45 @@ export class SemanticCatalogClient {
16938
16939
  }
16939
16940
 
16940
16941
  /**
16941
- * (Preview) Returns lineage for a given entity object.
16942
+ * Updates a view with given information.
16942
16943
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
16943
- * @param FetchEntityLineageRequest
16944
- * @return FetchEntityLineageResponse
16944
+ * @param UpdateViewRequest
16945
+ * @return UpdateViewResponse
16945
16946
  * @throws OciError when an error occurs
16946
- * @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.
16947
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidp/UpdateView.ts.html |here} to see how to use UpdateView API.
16947
16948
  */
16948
- public async fetchEntityLineage (fetchEntityLineageRequest: requests.FetchEntityLineageRequest) : Promise<responses.FetchEntityLineageResponse> {
16949
+ public async updateView (updateViewRequest: requests.UpdateViewRequest) : Promise<responses.UpdateViewResponse> {
16949
16950
  if (this.logger)
16950
- this.logger.debug("Calling operation SemanticCatalogClient#fetchEntityLineage.");
16951
- const operationName = "fetchEntityLineage";
16951
+ this.logger.debug("Calling operation SchemaClient#updateView.");
16952
+ const operationName = "updateView";
16952
16953
  const apiReferenceLink = "";
16953
16954
  const pathParams = {
16954
- "{aiDataPlatformId}": fetchEntityLineageRequest.aiDataPlatformId,
16955
+ "{aiDataPlatformId}": updateViewRequest.aiDataPlatformId,
16956
+ "{viewKey}": updateViewRequest.viewKey,
16955
16957
  };
16956
16958
 
16957
16959
  const queryParams = {
16958
- 'limit': fetchEntityLineageRequest.limit,
16959
- 'page': fetchEntityLineageRequest.page,
16960
16960
  };
16961
16961
 
16962
16962
  let headerParams = {
16963
16963
  "Content-Type": common.Constants.APPLICATION_JSON,
16964
- 'opc-retry-token': fetchEntityLineageRequest.opcRetryToken,'opc-request-id': fetchEntityLineageRequest.opcRequestId,'if-match': fetchEntityLineageRequest.ifMatch,
16964
+ 'should-update-recent': updateViewRequest.shouldUpdateRecent,'if-match': updateViewRequest.ifMatch,'opc-request-id': updateViewRequest.opcRequestId,
16965
16965
  };
16966
16966
 
16967
16967
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
16968
16968
  const retrier = GenericRetrier.createPreferredRetrier(
16969
16969
  this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
16970
- fetchEntityLineageRequest.retryConfiguration,
16970
+ updateViewRequest.retryConfiguration,
16971
16971
  specRetryConfiguration
16972
16972
  );
16973
16973
  if (this.logger) retrier.logger = this.logger;
16974
16974
  const request = await composeRequest({
16975
16975
  baseEndpoint: this._endpoint,
16976
16976
  defaultHeaders: this._defaultHeaders,
16977
- path: '/aiDataPlatforms/{aiDataPlatformId}/actions/fetchLineage',
16978
- method: 'POST',
16979
- bodyContent: common.ObjectSerializer.serialize(fetchEntityLineageRequest.fetchEntityLineageDetails, "FetchEntityLineageDetails"
16980
- , model.FetchEntityLineageDetails.getJsonObj)
16977
+ path: '/aiDataPlatforms/{aiDataPlatformId}/views/{viewKey}',
16978
+ method: 'PUT',
16979
+ bodyContent: common.ObjectSerializer.serialize(updateViewRequest.updateViewDetails, "UpdateViewDetails"
16980
+ , model.UpdateViewDetails.getJsonObj)
16981
16981
  ,
16982
16982
  pathParams: pathParams,
16983
16983
  headerParams: headerParams,
@@ -16986,20 +16986,20 @@ export class SemanticCatalogClient {
16986
16986
  try {
16987
16987
  const response = await retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
16988
16988
  const sdkResponse = composeResponse({
16989
- responseObject: <responses.FetchEntityLineageResponse>{},
16989
+ responseObject: <responses.UpdateViewResponse>{},
16990
16990
  body: await response.json(),
16991
- bodyKey: "entityLineage",
16992
- bodyModel: model.EntityLineage,
16993
- type: "model.EntityLineage",
16991
+ bodyKey: "view",
16992
+ bodyModel: model.View,
16993
+ type: "model.View",
16994
16994
  responseHeaders: [
16995
16995
  {
16996
- value: response.headers.get("opc-request-id"),
16997
- key: "opcRequestId",
16996
+ value: response.headers.get("etag"),
16997
+ key: "etag",
16998
16998
  dataType: "string"
16999
16999
  },
17000
17000
  {
17001
- value: response.headers.get("opc-next-page"),
17002
- key: "opcNextPage",
17001
+ value: response.headers.get("opc-request-id"),
17002
+ key: "opcRequestId",
17003
17003
  dataType: "string"
17004
17004
  },
17005
17005
  ]