oci-bds 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/lib/bds-waiter.d.ts +8 -0
  2. package/lib/bds-waiter.js +12 -0
  3. package/lib/bds-waiter.js.map +1 -1
  4. package/lib/client.d.ts +101 -22
  5. package/lib/client.js +373 -23
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/bds-api-key-summary.d.ts +46 -0
  8. package/lib/model/bds-api-key-summary.js +30 -0
  9. package/lib/model/bds-api-key-summary.js.map +1 -0
  10. package/lib/model/bds-api-key.d.ts +74 -0
  11. package/lib/model/bds-api-key.js +43 -0
  12. package/lib/model/bds-api-key.js.map +1 -0
  13. package/lib/model/create-bds-api-key-details.d.ts +42 -0
  14. package/lib/model/create-bds-api-key-details.js +30 -0
  15. package/lib/model/create-bds-api-key-details.js.map +1 -0
  16. package/lib/model/index.d.ts +8 -0
  17. package/lib/model/index.js +9 -1
  18. package/lib/model/index.js.map +1 -1
  19. package/lib/model/test-bds-object-storage-connection-details.d.ts +34 -0
  20. package/lib/model/test-bds-object-storage-connection-details.js +30 -0
  21. package/lib/model/test-bds-object-storage-connection-details.js.map +1 -0
  22. package/lib/request/add-auto-scaling-configuration-request.d.ts +1 -1
  23. package/lib/request/add-block-storage-request.d.ts +1 -1
  24. package/lib/request/add-cloud-sql-request.d.ts +1 -1
  25. package/lib/request/add-worker-nodes-request.d.ts +1 -1
  26. package/lib/request/change-bds-instance-compartment-request.d.ts +1 -1
  27. package/lib/request/change-shape-request.d.ts +1 -1
  28. package/lib/request/create-bds-api-key-request.d.ts +40 -0
  29. package/lib/request/create-bds-api-key-request.js +15 -0
  30. package/lib/request/create-bds-api-key-request.js.map +1 -0
  31. package/lib/request/create-bds-instance-request.d.ts +1 -1
  32. package/lib/request/delete-bds-api-key-request.d.ts +39 -0
  33. package/lib/request/delete-bds-api-key-request.js +15 -0
  34. package/lib/request/delete-bds-api-key-request.js.map +1 -0
  35. package/lib/request/delete-bds-instance-request.d.ts +1 -1
  36. package/lib/request/get-auto-scaling-configuration-request.d.ts +1 -1
  37. package/lib/request/get-bds-api-key-request.d.ts +30 -0
  38. package/lib/request/get-bds-api-key-request.js +15 -0
  39. package/lib/request/get-bds-api-key-request.js.map +1 -0
  40. package/lib/request/get-bds-instance-request.d.ts +1 -1
  41. package/lib/request/get-work-request-request.d.ts +1 -1
  42. package/lib/request/index.d.ts +10 -0
  43. package/lib/request/index.js +3 -1
  44. package/lib/request/index.js.map +1 -1
  45. package/lib/request/list-auto-scaling-configurations-request.d.ts +1 -1
  46. package/lib/request/list-bds-api-keys-request.d.ts +62 -0
  47. package/lib/request/list-bds-api-keys-request.js +24 -0
  48. package/lib/request/list-bds-api-keys-request.js.map +1 -0
  49. package/lib/request/list-bds-instances-request.d.ts +1 -1
  50. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  51. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  52. package/lib/request/list-work-requests-request.d.ts +1 -1
  53. package/lib/request/remove-auto-scaling-configuration-request.d.ts +1 -1
  54. package/lib/request/remove-cloud-sql-request.d.ts +1 -1
  55. package/lib/request/restart-node-request.d.ts +1 -1
  56. package/lib/request/test-bds-object-storage-connection-request.d.ts +35 -0
  57. package/lib/request/test-bds-object-storage-connection-request.js +15 -0
  58. package/lib/request/test-bds-object-storage-connection-request.js.map +1 -0
  59. package/lib/request/update-auto-scaling-configuration-request.d.ts +1 -1
  60. package/lib/request/update-bds-instance-request.d.ts +1 -1
  61. package/lib/response/create-bds-api-key-response.d.ts +25 -0
  62. package/lib/response/create-bds-api-key-response.js +15 -0
  63. package/lib/response/create-bds-api-key-response.js.map +1 -0
  64. package/lib/response/delete-bds-api-key-response.d.ts +25 -0
  65. package/lib/response/delete-bds-api-key-response.js +15 -0
  66. package/lib/response/delete-bds-api-key-response.js.map +1 -0
  67. package/lib/response/get-bds-api-key-response.d.ts +30 -0
  68. package/lib/response/get-bds-api-key-response.js +15 -0
  69. package/lib/response/get-bds-api-key-response.js.map +1 -0
  70. package/lib/response/index.d.ts +10 -0
  71. package/lib/response/list-bds-api-keys-response.d.ts +32 -0
  72. package/lib/response/list-bds-api-keys-response.js +15 -0
  73. package/lib/response/list-bds-api-keys-response.js.map +1 -0
  74. package/lib/response/test-bds-object-storage-connection-response.d.ts +25 -0
  75. package/lib/response/test-bds-object-storage-connection-response.js +15 -0
  76. package/lib/response/test-bds-object-storage-connection-response.js.map +1 -0
  77. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -54,7 +54,7 @@ var BdsApiKeys;
54
54
  (function (BdsApiKeys) {
55
55
  })(BdsApiKeys = exports.BdsApiKeys || (exports.BdsApiKeys = {}));
56
56
  /**
57
- * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
57
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
58
58
  */
59
59
  class BdsClient {
60
60
  constructor(params, clientConfiguration) {
@@ -71,7 +71,7 @@ class BdsClient {
71
71
  : null;
72
72
  }
73
73
  // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
74
- const specCircuitBreakerEnabled = false;
74
+ const specCircuitBreakerEnabled = true;
75
75
  if (!this._circuitBreaker &&
76
76
  common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
77
77
  (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
@@ -153,7 +153,7 @@ class BdsClient {
153
153
  * @param AddAutoScalingConfigurationRequest
154
154
  * @return AddAutoScalingConfigurationResponse
155
155
  * @throws OciError when an error occurs
156
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/AddAutoScalingConfiguration.ts.html |here} to see how to use AddAutoScalingConfiguration API.
156
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/AddAutoScalingConfiguration.ts.html |here} to see how to use AddAutoScalingConfiguration API.
157
157
  */
158
158
  addAutoScalingConfiguration(addAutoScalingConfigurationRequest) {
159
159
  return __awaiter(this, void 0, void 0, function* () {
@@ -214,7 +214,7 @@ class BdsClient {
214
214
  * @param AddBlockStorageRequest
215
215
  * @return AddBlockStorageResponse
216
216
  * @throws OciError when an error occurs
217
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/AddBlockStorage.ts.html |here} to see how to use AddBlockStorage API.
217
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/AddBlockStorage.ts.html |here} to see how to use AddBlockStorage API.
218
218
  */
219
219
  addBlockStorage(addBlockStorageRequest) {
220
220
  return __awaiter(this, void 0, void 0, function* () {
@@ -275,7 +275,7 @@ class BdsClient {
275
275
  * @param AddCloudSqlRequest
276
276
  * @return AddCloudSqlResponse
277
277
  * @throws OciError when an error occurs
278
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/AddCloudSql.ts.html |here} to see how to use AddCloudSql API.
278
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/AddCloudSql.ts.html |here} to see how to use AddCloudSql API.
279
279
  */
280
280
  addCloudSql(addCloudSqlRequest) {
281
281
  return __awaiter(this, void 0, void 0, function* () {
@@ -336,7 +336,7 @@ class BdsClient {
336
336
  * @param AddWorkerNodesRequest
337
337
  * @return AddWorkerNodesResponse
338
338
  * @throws OciError when an error occurs
339
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/AddWorkerNodes.ts.html |here} to see how to use AddWorkerNodes API.
339
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/AddWorkerNodes.ts.html |here} to see how to use AddWorkerNodes API.
340
340
  */
341
341
  addWorkerNodes(addWorkerNodesRequest) {
342
342
  return __awaiter(this, void 0, void 0, function* () {
@@ -397,7 +397,7 @@ class BdsClient {
397
397
  * @param ChangeBdsInstanceCompartmentRequest
398
398
  * @return ChangeBdsInstanceCompartmentResponse
399
399
  * @throws OciError when an error occurs
400
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/ChangeBdsInstanceCompartment.ts.html |here} to see how to use ChangeBdsInstanceCompartment API.
400
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ChangeBdsInstanceCompartment.ts.html |here} to see how to use ChangeBdsInstanceCompartment API.
401
401
  */
402
402
  changeBdsInstanceCompartment(changeBdsInstanceCompartmentRequest) {
403
403
  return __awaiter(this, void 0, void 0, function* () {
@@ -458,7 +458,7 @@ class BdsClient {
458
458
  * @param ChangeShapeRequest
459
459
  * @return ChangeShapeResponse
460
460
  * @throws OciError when an error occurs
461
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/ChangeShape.ts.html |here} to see how to use ChangeShape API.
461
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ChangeShape.ts.html |here} to see how to use ChangeShape API.
462
462
  */
463
463
  changeShape(changeShapeRequest) {
464
464
  return __awaiter(this, void 0, void 0, function* () {
@@ -512,6 +512,66 @@ class BdsClient {
512
512
  }
513
513
  });
514
514
  }
515
+ /**
516
+ * Create an API key on behalf of the specified user.
517
+ *
518
+ * This operation does not retry by default if the user has not defined a retry configuration.
519
+ * @param CreateBdsApiKeyRequest
520
+ * @return CreateBdsApiKeyResponse
521
+ * @throws OciError when an error occurs
522
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/CreateBdsApiKey.ts.html |here} to see how to use CreateBdsApiKey API.
523
+ */
524
+ createBdsApiKey(createBdsApiKeyRequest) {
525
+ return __awaiter(this, void 0, void 0, function* () {
526
+ if (this.logger)
527
+ this.logger.debug("Calling operation BdsClient#createBdsApiKey.");
528
+ const pathParams = {
529
+ "{bdsInstanceId}": createBdsApiKeyRequest.bdsInstanceId
530
+ };
531
+ const queryParams = {};
532
+ let headerParams = {
533
+ "Content-Type": common.Constants.APPLICATION_JSON,
534
+ "opc-retry-token": createBdsApiKeyRequest.opcRetryToken,
535
+ "opc-request-id": createBdsApiKeyRequest.opcRequestId
536
+ };
537
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
538
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
539
+ if (this.logger)
540
+ retrier.logger = this.logger;
541
+ const request = yield oci_common_2.composeRequest({
542
+ baseEndpoint: this._endpoint,
543
+ defaultHeaders: this._defaultHeaders,
544
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys",
545
+ method: "POST",
546
+ bodyContent: common.ObjectSerializer.serialize(createBdsApiKeyRequest.createBdsApiKeyDetails, "CreateBdsApiKeyDetails", model.CreateBdsApiKeyDetails.getJsonObj),
547
+ pathParams: pathParams,
548
+ headerParams: headerParams,
549
+ queryParams: queryParams
550
+ });
551
+ try {
552
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
553
+ const sdkResponse = oci_common_2.composeResponse({
554
+ responseObject: {},
555
+ responseHeaders: [
556
+ {
557
+ value: response.headers.get("opc-request-id"),
558
+ key: "opcRequestId",
559
+ dataType: "string"
560
+ },
561
+ {
562
+ value: response.headers.get("opc-work-request-id"),
563
+ key: "opcWorkRequestId",
564
+ dataType: "string"
565
+ }
566
+ ]
567
+ });
568
+ return sdkResponse;
569
+ }
570
+ catch (err) {
571
+ throw err;
572
+ }
573
+ });
574
+ }
515
575
  /**
516
576
  * Creates a Big Data Service cluster.
517
577
  *
@@ -519,7 +579,7 @@ class BdsClient {
519
579
  * @param CreateBdsInstanceRequest
520
580
  * @return CreateBdsInstanceResponse
521
581
  * @throws OciError when an error occurs
522
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/CreateBdsInstance.ts.html |here} to see how to use CreateBdsInstance API.
582
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/CreateBdsInstance.ts.html |here} to see how to use CreateBdsInstance API.
523
583
  */
524
584
  createBdsInstance(createBdsInstanceRequest) {
525
585
  return __awaiter(this, void 0, void 0, function* () {
@@ -570,13 +630,72 @@ class BdsClient {
570
630
  }
571
631
  });
572
632
  }
633
+ /**
634
+ * Deletes the user's API key represented by the provided ID.
635
+ * This operation does not retry by default if the user has not defined a retry configuration.
636
+ * @param DeleteBdsApiKeyRequest
637
+ * @return DeleteBdsApiKeyResponse
638
+ * @throws OciError when an error occurs
639
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/DeleteBdsApiKey.ts.html |here} to see how to use DeleteBdsApiKey API.
640
+ */
641
+ deleteBdsApiKey(deleteBdsApiKeyRequest) {
642
+ return __awaiter(this, void 0, void 0, function* () {
643
+ if (this.logger)
644
+ this.logger.debug("Calling operation BdsClient#deleteBdsApiKey.");
645
+ const pathParams = {
646
+ "{bdsInstanceId}": deleteBdsApiKeyRequest.bdsInstanceId,
647
+ "{apiKeyId}": deleteBdsApiKeyRequest.apiKeyId
648
+ };
649
+ const queryParams = {};
650
+ let headerParams = {
651
+ "Content-Type": common.Constants.APPLICATION_JSON,
652
+ "opc-request-id": deleteBdsApiKeyRequest.opcRequestId,
653
+ "if-match": deleteBdsApiKeyRequest.ifMatch
654
+ };
655
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
656
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
657
+ if (this.logger)
658
+ retrier.logger = this.logger;
659
+ const request = yield oci_common_2.composeRequest({
660
+ baseEndpoint: this._endpoint,
661
+ defaultHeaders: this._defaultHeaders,
662
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}",
663
+ method: "DELETE",
664
+ pathParams: pathParams,
665
+ headerParams: headerParams,
666
+ queryParams: queryParams
667
+ });
668
+ try {
669
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
670
+ const sdkResponse = oci_common_2.composeResponse({
671
+ responseObject: {},
672
+ responseHeaders: [
673
+ {
674
+ value: response.headers.get("opc-request-id"),
675
+ key: "opcRequestId",
676
+ dataType: "string"
677
+ },
678
+ {
679
+ value: response.headers.get("opc-work-request-id"),
680
+ key: "opcWorkRequestId",
681
+ dataType: "string"
682
+ }
683
+ ]
684
+ });
685
+ return sdkResponse;
686
+ }
687
+ catch (err) {
688
+ throw err;
689
+ }
690
+ });
691
+ }
573
692
  /**
574
693
  * Deletes the cluster identified by the given ID.
575
694
  * This operation does not retry by default if the user has not defined a retry configuration.
576
695
  * @param DeleteBdsInstanceRequest
577
696
  * @return DeleteBdsInstanceResponse
578
697
  * @throws OciError when an error occurs
579
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/DeleteBdsInstance.ts.html |here} to see how to use DeleteBdsInstance API.
698
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/DeleteBdsInstance.ts.html |here} to see how to use DeleteBdsInstance API.
580
699
  */
581
700
  deleteBdsInstance(deleteBdsInstanceRequest) {
582
701
  return __awaiter(this, void 0, void 0, function* () {
@@ -635,7 +754,7 @@ class BdsClient {
635
754
  * @param GetAutoScalingConfigurationRequest
636
755
  * @return GetAutoScalingConfigurationResponse
637
756
  * @throws OciError when an error occurs
638
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/GetAutoScalingConfiguration.ts.html |here} to see how to use GetAutoScalingConfiguration API.
757
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/GetAutoScalingConfiguration.ts.html |here} to see how to use GetAutoScalingConfiguration API.
639
758
  */
640
759
  getAutoScalingConfiguration(getAutoScalingConfigurationRequest) {
641
760
  return __awaiter(this, void 0, void 0, function* () {
@@ -691,13 +810,75 @@ class BdsClient {
691
810
  }
692
811
  });
693
812
  }
813
+ /**
814
+ * Returns the user's API key information for the given ID.
815
+ * This operation does not retry by default if the user has not defined a retry configuration.
816
+ * @param GetBdsApiKeyRequest
817
+ * @return GetBdsApiKeyResponse
818
+ * @throws OciError when an error occurs
819
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/GetBdsApiKey.ts.html |here} to see how to use GetBdsApiKey API.
820
+ */
821
+ getBdsApiKey(getBdsApiKeyRequest) {
822
+ return __awaiter(this, void 0, void 0, function* () {
823
+ if (this.logger)
824
+ this.logger.debug("Calling operation BdsClient#getBdsApiKey.");
825
+ const pathParams = {
826
+ "{bdsInstanceId}": getBdsApiKeyRequest.bdsInstanceId,
827
+ "{apiKeyId}": getBdsApiKeyRequest.apiKeyId
828
+ };
829
+ const queryParams = {};
830
+ let headerParams = {
831
+ "Content-Type": common.Constants.APPLICATION_JSON,
832
+ "opc-request-id": getBdsApiKeyRequest.opcRequestId
833
+ };
834
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
835
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
836
+ if (this.logger)
837
+ retrier.logger = this.logger;
838
+ const request = yield oci_common_2.composeRequest({
839
+ baseEndpoint: this._endpoint,
840
+ defaultHeaders: this._defaultHeaders,
841
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}",
842
+ method: "GET",
843
+ pathParams: pathParams,
844
+ headerParams: headerParams,
845
+ queryParams: queryParams
846
+ });
847
+ try {
848
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
849
+ const sdkResponse = oci_common_2.composeResponse({
850
+ responseObject: {},
851
+ body: yield response.json(),
852
+ bodyKey: "bdsApiKey",
853
+ bodyModel: model.BdsApiKey,
854
+ type: "model.BdsApiKey",
855
+ responseHeaders: [
856
+ {
857
+ value: response.headers.get("opc-request-id"),
858
+ key: "opcRequestId",
859
+ dataType: "string"
860
+ },
861
+ {
862
+ value: response.headers.get("etag"),
863
+ key: "etag",
864
+ dataType: "string"
865
+ }
866
+ ]
867
+ });
868
+ return sdkResponse;
869
+ }
870
+ catch (err) {
871
+ throw err;
872
+ }
873
+ });
874
+ }
694
875
  /**
695
876
  * Returns information about the Big Data Service cluster identified by the given ID.
696
877
  * This operation does not retry by default if the user has not defined a retry configuration.
697
878
  * @param GetBdsInstanceRequest
698
879
  * @return GetBdsInstanceResponse
699
880
  * @throws OciError when an error occurs
700
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/GetBdsInstance.ts.html |here} to see how to use GetBdsInstance API.
881
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/GetBdsInstance.ts.html |here} to see how to use GetBdsInstance API.
701
882
  */
702
883
  getBdsInstance(getBdsInstanceRequest) {
703
884
  return __awaiter(this, void 0, void 0, function* () {
@@ -758,7 +939,7 @@ class BdsClient {
758
939
  * @param GetWorkRequestRequest
759
940
  * @return GetWorkRequestResponse
760
941
  * @throws OciError when an error occurs
761
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
942
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
762
943
  */
763
944
  getWorkRequest(getWorkRequestRequest) {
764
945
  return __awaiter(this, void 0, void 0, function* () {
@@ -820,7 +1001,7 @@ class BdsClient {
820
1001
  * @param ListAutoScalingConfigurationsRequest
821
1002
  * @return ListAutoScalingConfigurationsResponse
822
1003
  * @throws OciError when an error occurs
823
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/ListAutoScalingConfigurations.ts.html |here} to see how to use ListAutoScalingConfigurations API.
1004
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListAutoScalingConfigurations.ts.html |here} to see how to use ListAutoScalingConfigurations API.
824
1005
  */
825
1006
  listAutoScalingConfigurations(listAutoScalingConfigurationsRequest) {
826
1007
  return __awaiter(this, void 0, void 0, function* () {
@@ -923,6 +1104,116 @@ class BdsClient {
923
1104
  listAutoScalingConfigurationsResponseIterator(request) {
924
1105
  return oci_common_1.paginateResponses(request, req => this.listAutoScalingConfigurations(req));
925
1106
  }
1107
+ /**
1108
+ * Returns a list of all API keys associated with this Big Data Service cluster.
1109
+ *
1110
+ * This operation does not retry by default if the user has not defined a retry configuration.
1111
+ * @param ListBdsApiKeysRequest
1112
+ * @return ListBdsApiKeysResponse
1113
+ * @throws OciError when an error occurs
1114
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListBdsApiKeys.ts.html |here} to see how to use ListBdsApiKeys API.
1115
+ */
1116
+ listBdsApiKeys(listBdsApiKeysRequest) {
1117
+ return __awaiter(this, void 0, void 0, function* () {
1118
+ if (this.logger)
1119
+ this.logger.debug("Calling operation BdsClient#listBdsApiKeys.");
1120
+ const pathParams = {
1121
+ "{bdsInstanceId}": listBdsApiKeysRequest.bdsInstanceId
1122
+ };
1123
+ const queryParams = {
1124
+ "lifecycleState": listBdsApiKeysRequest.lifecycleState,
1125
+ "userId": listBdsApiKeysRequest.userId,
1126
+ "page": listBdsApiKeysRequest.page,
1127
+ "limit": listBdsApiKeysRequest.limit,
1128
+ "sortBy": listBdsApiKeysRequest.sortBy,
1129
+ "sortOrder": listBdsApiKeysRequest.sortOrder,
1130
+ "displayName": listBdsApiKeysRequest.displayName
1131
+ };
1132
+ let headerParams = {
1133
+ "Content-Type": common.Constants.APPLICATION_JSON,
1134
+ "opc-request-id": listBdsApiKeysRequest.opcRequestId
1135
+ };
1136
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1137
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBdsApiKeysRequest.retryConfiguration, specRetryConfiguration);
1138
+ if (this.logger)
1139
+ retrier.logger = this.logger;
1140
+ const request = yield oci_common_2.composeRequest({
1141
+ baseEndpoint: this._endpoint,
1142
+ defaultHeaders: this._defaultHeaders,
1143
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys",
1144
+ method: "GET",
1145
+ pathParams: pathParams,
1146
+ headerParams: headerParams,
1147
+ queryParams: queryParams
1148
+ });
1149
+ try {
1150
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1151
+ const sdkResponse = oci_common_2.composeResponse({
1152
+ responseObject: {},
1153
+ body: yield response.json(),
1154
+ bodyKey: "items",
1155
+ bodyModel: model.BdsApiKeySummary,
1156
+ type: "Array<model.BdsApiKeySummary>",
1157
+ responseHeaders: [
1158
+ {
1159
+ value: response.headers.get("opc-request-id"),
1160
+ key: "opcRequestId",
1161
+ dataType: "string"
1162
+ },
1163
+ {
1164
+ value: response.headers.get("opc-next-page"),
1165
+ key: "opcNextPage",
1166
+ dataType: "string"
1167
+ }
1168
+ ]
1169
+ });
1170
+ return sdkResponse;
1171
+ }
1172
+ catch (err) {
1173
+ throw err;
1174
+ }
1175
+ });
1176
+ }
1177
+ /**
1178
+ * NOTE: This function is deprecated in favor of listBdsApiKeysRecordIterator function.
1179
+ * Creates a new async iterator which will iterate over the models.BdsApiKeySummary objects
1180
+ * contained in responses from the listBdsApiKeys operation. This iterator will fetch more data from the
1181
+ * server as needed.
1182
+ *
1183
+ * @param request a request which can be sent to the service operation
1184
+ */
1185
+ listAllBdsApiKeys(request) {
1186
+ return oci_common_1.paginateRecords(request, req => this.listBdsApiKeys(req));
1187
+ }
1188
+ /**
1189
+ * NOTE: This function is deprecated in favor of listBdsApiKeysResponseIterator function.
1190
+ * Creates a new async iterator which will iterate over the responses received from the listBdsApiKeys operation. This iterator
1191
+ * will fetch more data from the server as needed.
1192
+ *
1193
+ * @param request a request which can be sent to the service operation
1194
+ */
1195
+ listAllBdsApiKeysResponses(request) {
1196
+ return oci_common_1.paginateResponses(request, req => this.listBdsApiKeys(req));
1197
+ }
1198
+ /**
1199
+ * Creates a new async iterator which will iterate over the models.BdsApiKeySummary objects
1200
+ * contained in responses from the listBdsApiKeys operation. This iterator will fetch more data from the
1201
+ * server as needed.
1202
+ *
1203
+ * @param request a request which can be sent to the service operation
1204
+ */
1205
+ listBdsApiKeysRecordIterator(request) {
1206
+ return oci_common_1.paginateRecords(request, req => this.listBdsApiKeys(req));
1207
+ }
1208
+ /**
1209
+ * Creates a new async iterator which will iterate over the responses received from the listBdsApiKeys operation. This iterator
1210
+ * will fetch more data from the server as needed.
1211
+ *
1212
+ * @param request a request which can be sent to the service operation
1213
+ */
1214
+ listBdsApiKeysResponseIterator(request) {
1215
+ return oci_common_1.paginateResponses(request, req => this.listBdsApiKeys(req));
1216
+ }
926
1217
  /**
927
1218
  * Returns a list of all Big Data Service clusters in a compartment.
928
1219
  *
@@ -930,7 +1221,7 @@ class BdsClient {
930
1221
  * @param ListBdsInstancesRequest
931
1222
  * @return ListBdsInstancesResponse
932
1223
  * @throws OciError when an error occurs
933
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/ListBdsInstances.ts.html |here} to see how to use ListBdsInstances API.
1224
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListBdsInstances.ts.html |here} to see how to use ListBdsInstances API.
934
1225
  */
935
1226
  listBdsInstances(listBdsInstancesRequest) {
936
1227
  return __awaiter(this, void 0, void 0, function* () {
@@ -1038,7 +1329,7 @@ class BdsClient {
1038
1329
  * @param ListWorkRequestErrorsRequest
1039
1330
  * @return ListWorkRequestErrorsResponse
1040
1331
  * @throws OciError when an error occurs
1041
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1332
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1042
1333
  */
1043
1334
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
1044
1335
  return __awaiter(this, void 0, void 0, function* () {
@@ -1145,7 +1436,7 @@ class BdsClient {
1145
1436
  * @param ListWorkRequestLogsRequest
1146
1437
  * @return ListWorkRequestLogsResponse
1147
1438
  * @throws OciError when an error occurs
1148
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1439
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1149
1440
  */
1150
1441
  listWorkRequestLogs(listWorkRequestLogsRequest) {
1151
1442
  return __awaiter(this, void 0, void 0, function* () {
@@ -1252,7 +1543,7 @@ class BdsClient {
1252
1543
  * @param ListWorkRequestsRequest
1253
1544
  * @return ListWorkRequestsResponse
1254
1545
  * @throws OciError when an error occurs
1255
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1546
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1256
1547
  */
1257
1548
  listWorkRequests(listWorkRequestsRequest) {
1258
1549
  return __awaiter(this, void 0, void 0, function* () {
@@ -1359,7 +1650,7 @@ class BdsClient {
1359
1650
  * @param RemoveAutoScalingConfigurationRequest
1360
1651
  * @return RemoveAutoScalingConfigurationResponse
1361
1652
  * @throws OciError when an error occurs
1362
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/RemoveAutoScalingConfiguration.ts.html |here} to see how to use RemoveAutoScalingConfiguration API.
1653
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/RemoveAutoScalingConfiguration.ts.html |here} to see how to use RemoveAutoScalingConfiguration API.
1363
1654
  */
1364
1655
  removeAutoScalingConfiguration(removeAutoScalingConfigurationRequest) {
1365
1656
  return __awaiter(this, void 0, void 0, function* () {
@@ -1421,7 +1712,7 @@ class BdsClient {
1421
1712
  * @param RemoveCloudSqlRequest
1422
1713
  * @return RemoveCloudSqlResponse
1423
1714
  * @throws OciError when an error occurs
1424
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/RemoveCloudSql.ts.html |here} to see how to use RemoveCloudSql API.
1715
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/RemoveCloudSql.ts.html |here} to see how to use RemoveCloudSql API.
1425
1716
  */
1426
1717
  removeCloudSql(removeCloudSqlRequest) {
1427
1718
  return __awaiter(this, void 0, void 0, function* () {
@@ -1482,7 +1773,7 @@ class BdsClient {
1482
1773
  * @param RestartNodeRequest
1483
1774
  * @return RestartNodeResponse
1484
1775
  * @throws OciError when an error occurs
1485
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/RestartNode.ts.html |here} to see how to use RestartNode API.
1776
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/RestartNode.ts.html |here} to see how to use RestartNode API.
1486
1777
  */
1487
1778
  restartNode(restartNodeRequest) {
1488
1779
  return __awaiter(this, void 0, void 0, function* () {
@@ -1536,6 +1827,65 @@ class BdsClient {
1536
1827
  }
1537
1828
  });
1538
1829
  }
1830
+ /**
1831
+ * Test access to specified Object Storage bucket using the API key.
1832
+ * This operation does not retry by default if the user has not defined a retry configuration.
1833
+ * @param TestBdsObjectStorageConnectionRequest
1834
+ * @return TestBdsObjectStorageConnectionResponse
1835
+ * @throws OciError when an error occurs
1836
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/TestBdsObjectStorageConnection.ts.html |here} to see how to use TestBdsObjectStorageConnection API.
1837
+ */
1838
+ testBdsObjectStorageConnection(testBdsObjectStorageConnectionRequest) {
1839
+ return __awaiter(this, void 0, void 0, function* () {
1840
+ if (this.logger)
1841
+ this.logger.debug("Calling operation BdsClient#testBdsObjectStorageConnection.");
1842
+ const pathParams = {
1843
+ "{bdsInstanceId}": testBdsObjectStorageConnectionRequest.bdsInstanceId,
1844
+ "{apiKeyId}": testBdsObjectStorageConnectionRequest.apiKeyId
1845
+ };
1846
+ const queryParams = {};
1847
+ let headerParams = {
1848
+ "Content-Type": common.Constants.APPLICATION_JSON,
1849
+ "opc-request-id": testBdsObjectStorageConnectionRequest.opcRequestId
1850
+ };
1851
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1852
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, testBdsObjectStorageConnectionRequest.retryConfiguration, specRetryConfiguration);
1853
+ if (this.logger)
1854
+ retrier.logger = this.logger;
1855
+ const request = yield oci_common_2.composeRequest({
1856
+ baseEndpoint: this._endpoint,
1857
+ defaultHeaders: this._defaultHeaders,
1858
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}/actions/testObjectStorageConnection",
1859
+ method: "POST",
1860
+ bodyContent: common.ObjectSerializer.serialize(testBdsObjectStorageConnectionRequest.testBdsObjectStorageConnectionDetails, "TestBdsObjectStorageConnectionDetails", model.TestBdsObjectStorageConnectionDetails.getJsonObj),
1861
+ pathParams: pathParams,
1862
+ headerParams: headerParams,
1863
+ queryParams: queryParams
1864
+ });
1865
+ try {
1866
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1867
+ const sdkResponse = oci_common_2.composeResponse({
1868
+ responseObject: {},
1869
+ responseHeaders: [
1870
+ {
1871
+ value: response.headers.get("opc-request-id"),
1872
+ key: "opcRequestId",
1873
+ dataType: "string"
1874
+ },
1875
+ {
1876
+ value: response.headers.get("opc-work-request-id"),
1877
+ key: "opcWorkRequestId",
1878
+ dataType: "string"
1879
+ }
1880
+ ]
1881
+ });
1882
+ return sdkResponse;
1883
+ }
1884
+ catch (err) {
1885
+ throw err;
1886
+ }
1887
+ });
1888
+ }
1539
1889
  /**
1540
1890
  * Updates fields on an autoscale configuration, including the name, the threshold value, and whether the autoscale configuration is enabled.
1541
1891
  *
@@ -1543,7 +1893,7 @@ class BdsClient {
1543
1893
  * @param UpdateAutoScalingConfigurationRequest
1544
1894
  * @return UpdateAutoScalingConfigurationResponse
1545
1895
  * @throws OciError when an error occurs
1546
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/UpdateAutoScalingConfiguration.ts.html |here} to see how to use UpdateAutoScalingConfiguration API.
1896
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/UpdateAutoScalingConfiguration.ts.html |here} to see how to use UpdateAutoScalingConfiguration API.
1547
1897
  */
1548
1898
  updateAutoScalingConfiguration(updateAutoScalingConfigurationRequest) {
1549
1899
  return __awaiter(this, void 0, void 0, function* () {
@@ -1604,7 +1954,7 @@ class BdsClient {
1604
1954
  * @param UpdateBdsInstanceRequest
1605
1955
  * @return UpdateBdsInstanceResponse
1606
1956
  * @throws OciError when an error occurs
1607
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/bds/UpdateBdsInstance.ts.html |here} to see how to use UpdateBdsInstance API.
1957
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/UpdateBdsInstance.ts.html |here} to see how to use UpdateBdsInstance API.
1608
1958
  */
1609
1959
  updateBdsInstance(updateBdsInstanceRequest) {
1610
1960
  return __awaiter(this, void 0, void 0, function* () {