oci-bds 2.7.0 → 2.10.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 (140) hide show
  1. package/lib/bds-waiter.d.ts +16 -0
  2. package/lib/bds-waiter.js +24 -0
  3. package/lib/bds-waiter.js.map +1 -1
  4. package/lib/client.d.ts +200 -22
  5. package/lib/client.js +883 -57
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/activate-bds-metastore-configuration-details.d.ts +30 -0
  8. package/lib/model/activate-bds-metastore-configuration-details.js +30 -0
  9. package/lib/model/activate-bds-metastore-configuration-details.js.map +1 -0
  10. package/lib/model/bds-api-key-summary.d.ts +46 -0
  11. package/lib/model/bds-api-key-summary.js +30 -0
  12. package/lib/model/bds-api-key-summary.js.map +1 -0
  13. package/lib/model/bds-api-key.d.ts +74 -0
  14. package/lib/model/bds-api-key.js +43 -0
  15. package/lib/model/bds-api-key.js.map +1 -0
  16. package/lib/model/bds-metastore-configuration-summary.d.ts +54 -0
  17. package/lib/model/bds-metastore-configuration-summary.js +30 -0
  18. package/lib/model/bds-metastore-configuration-summary.js.map +1 -0
  19. package/lib/model/bds-metastore-configuration.d.ts +78 -0
  20. package/lib/model/bds-metastore-configuration.js +56 -0
  21. package/lib/model/bds-metastore-configuration.js.map +1 -0
  22. package/lib/model/create-bds-api-key-details.d.ts +42 -0
  23. package/lib/model/create-bds-api-key-details.js +30 -0
  24. package/lib/model/create-bds-api-key-details.js.map +1 -0
  25. package/lib/model/create-bds-metastore-configuration-details.d.ts +42 -0
  26. package/lib/model/create-bds-metastore-configuration-details.js +30 -0
  27. package/lib/model/create-bds-metastore-configuration-details.js.map +1 -0
  28. package/lib/model/index.d.ts +20 -0
  29. package/lib/model/index.js +21 -1
  30. package/lib/model/index.js.map +1 -1
  31. package/lib/model/operation-types.d.ts +8 -0
  32. package/lib/model/operation-types.js +8 -0
  33. package/lib/model/operation-types.js.map +1 -1
  34. package/lib/model/test-bds-metastore-configuration-details.d.ts +26 -0
  35. package/lib/model/test-bds-metastore-configuration-details.js +30 -0
  36. package/lib/model/test-bds-metastore-configuration-details.js.map +1 -0
  37. package/lib/model/test-bds-object-storage-connection-details.d.ts +34 -0
  38. package/lib/model/test-bds-object-storage-connection-details.js +30 -0
  39. package/lib/model/test-bds-object-storage-connection-details.js.map +1 -0
  40. package/lib/model/update-bds-metastore-configuration-details.d.ts +38 -0
  41. package/lib/model/update-bds-metastore-configuration-details.js +30 -0
  42. package/lib/model/update-bds-metastore-configuration-details.js.map +1 -0
  43. package/lib/request/activate-bds-metastore-configuration-request.d.ts +53 -0
  44. package/lib/request/activate-bds-metastore-configuration-request.js +15 -0
  45. package/lib/request/activate-bds-metastore-configuration-request.js.map +1 -0
  46. package/lib/request/add-auto-scaling-configuration-request.d.ts +1 -1
  47. package/lib/request/add-block-storage-request.d.ts +1 -1
  48. package/lib/request/add-cloud-sql-request.d.ts +1 -1
  49. package/lib/request/add-worker-nodes-request.d.ts +1 -1
  50. package/lib/request/change-bds-instance-compartment-request.d.ts +1 -1
  51. package/lib/request/change-shape-request.d.ts +1 -1
  52. package/lib/request/create-bds-api-key-request.d.ts +40 -0
  53. package/lib/request/create-bds-api-key-request.js +15 -0
  54. package/lib/request/create-bds-api-key-request.js.map +1 -0
  55. package/lib/request/create-bds-instance-request.d.ts +1 -1
  56. package/lib/request/create-bds-metastore-configuration-request.d.ts +40 -0
  57. package/lib/request/create-bds-metastore-configuration-request.js +15 -0
  58. package/lib/request/create-bds-metastore-configuration-request.js.map +1 -0
  59. package/lib/request/delete-bds-api-key-request.d.ts +39 -0
  60. package/lib/request/delete-bds-api-key-request.js +15 -0
  61. package/lib/request/delete-bds-api-key-request.js.map +1 -0
  62. package/lib/request/delete-bds-instance-request.d.ts +1 -1
  63. package/lib/request/delete-bds-metastore-configuration-request.d.ts +39 -0
  64. package/lib/request/delete-bds-metastore-configuration-request.js +15 -0
  65. package/lib/request/delete-bds-metastore-configuration-request.js.map +1 -0
  66. package/lib/request/get-auto-scaling-configuration-request.d.ts +1 -1
  67. package/lib/request/get-bds-api-key-request.d.ts +30 -0
  68. package/lib/request/get-bds-api-key-request.js +15 -0
  69. package/lib/request/get-bds-api-key-request.js.map +1 -0
  70. package/lib/request/get-bds-instance-request.d.ts +1 -1
  71. package/lib/request/get-bds-metastore-configuration-request.d.ts +30 -0
  72. package/lib/request/get-bds-metastore-configuration-request.js +15 -0
  73. package/lib/request/get-bds-metastore-configuration-request.js.map +1 -0
  74. package/lib/request/get-work-request-request.d.ts +1 -1
  75. package/lib/request/index.d.ts +24 -0
  76. package/lib/request/index.js +5 -1
  77. package/lib/request/index.js.map +1 -1
  78. package/lib/request/list-auto-scaling-configurations-request.d.ts +1 -1
  79. package/lib/request/list-bds-api-keys-request.d.ts +62 -0
  80. package/lib/request/list-bds-api-keys-request.js +24 -0
  81. package/lib/request/list-bds-api-keys-request.js.map +1 -0
  82. package/lib/request/list-bds-instances-request.d.ts +1 -1
  83. package/lib/request/list-bds-metastore-configurations-request.d.ts +70 -0
  84. package/lib/request/list-bds-metastore-configurations-request.js +24 -0
  85. package/lib/request/list-bds-metastore-configurations-request.js.map +1 -0
  86. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  87. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  88. package/lib/request/list-work-requests-request.d.ts +1 -1
  89. package/lib/request/remove-auto-scaling-configuration-request.d.ts +1 -1
  90. package/lib/request/remove-cloud-sql-request.d.ts +1 -1
  91. package/lib/request/restart-node-request.d.ts +1 -1
  92. package/lib/request/test-bds-metastore-configuration-request.d.ts +44 -0
  93. package/lib/request/test-bds-metastore-configuration-request.js +15 -0
  94. package/lib/request/test-bds-metastore-configuration-request.js.map +1 -0
  95. package/lib/request/test-bds-object-storage-connection-request.d.ts +35 -0
  96. package/lib/request/test-bds-object-storage-connection-request.js +15 -0
  97. package/lib/request/test-bds-object-storage-connection-request.js.map +1 -0
  98. package/lib/request/update-auto-scaling-configuration-request.d.ts +1 -1
  99. package/lib/request/update-bds-instance-request.d.ts +1 -1
  100. package/lib/request/update-bds-metastore-configuration-request.d.ts +44 -0
  101. package/lib/request/update-bds-metastore-configuration-request.js +15 -0
  102. package/lib/request/update-bds-metastore-configuration-request.js.map +1 -0
  103. package/lib/response/activate-bds-metastore-configuration-response.d.ts +25 -0
  104. package/lib/response/activate-bds-metastore-configuration-response.js +15 -0
  105. package/lib/response/activate-bds-metastore-configuration-response.js.map +1 -0
  106. package/lib/response/create-bds-api-key-response.d.ts +25 -0
  107. package/lib/response/create-bds-api-key-response.js +15 -0
  108. package/lib/response/create-bds-api-key-response.js.map +1 -0
  109. package/lib/response/create-bds-metastore-configuration-response.d.ts +25 -0
  110. package/lib/response/create-bds-metastore-configuration-response.js +15 -0
  111. package/lib/response/create-bds-metastore-configuration-response.js.map +1 -0
  112. package/lib/response/delete-bds-api-key-response.d.ts +25 -0
  113. package/lib/response/delete-bds-api-key-response.js +15 -0
  114. package/lib/response/delete-bds-api-key-response.js.map +1 -0
  115. package/lib/response/delete-bds-metastore-configuration-response.d.ts +25 -0
  116. package/lib/response/delete-bds-metastore-configuration-response.js +15 -0
  117. package/lib/response/delete-bds-metastore-configuration-response.js.map +1 -0
  118. package/lib/response/get-bds-api-key-response.d.ts +30 -0
  119. package/lib/response/get-bds-api-key-response.js +15 -0
  120. package/lib/response/get-bds-api-key-response.js.map +1 -0
  121. package/lib/response/get-bds-metastore-configuration-response.d.ts +30 -0
  122. package/lib/response/get-bds-metastore-configuration-response.js +15 -0
  123. package/lib/response/get-bds-metastore-configuration-response.js.map +1 -0
  124. package/lib/response/index.d.ts +24 -0
  125. package/lib/response/list-bds-api-keys-response.d.ts +32 -0
  126. package/lib/response/list-bds-api-keys-response.js +15 -0
  127. package/lib/response/list-bds-api-keys-response.js.map +1 -0
  128. package/lib/response/list-bds-metastore-configurations-response.d.ts +32 -0
  129. package/lib/response/list-bds-metastore-configurations-response.js +15 -0
  130. package/lib/response/list-bds-metastore-configurations-response.js.map +1 -0
  131. package/lib/response/test-bds-metastore-configuration-response.d.ts +25 -0
  132. package/lib/response/test-bds-metastore-configuration-response.js +15 -0
  133. package/lib/response/test-bds-metastore-configuration-response.js.map +1 -0
  134. package/lib/response/test-bds-object-storage-connection-response.d.ts +25 -0
  135. package/lib/response/test-bds-object-storage-connection-response.js +15 -0
  136. package/lib/response/test-bds-object-storage-connection-response.js.map +1 -0
  137. package/lib/response/update-bds-metastore-configuration-response.d.ts +25 -0
  138. package/lib/response/update-bds-metastore-configuration-response.js +15 -0
  139. package/lib/response/update-bds-metastore-configuration-response.js.map +1 -0
  140. 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)) {
@@ -146,6 +146,68 @@ class BdsClient {
146
146
  }
147
147
  throw Error("Waiters do not exist. Please create waiters.");
148
148
  }
149
+ /**
150
+ * Activate specified metastore configuration.
151
+ *
152
+ * This operation does not retry by default if the user has not defined a retry configuration.
153
+ * @param ActivateBdsMetastoreConfigurationRequest
154
+ * @return ActivateBdsMetastoreConfigurationResponse
155
+ * @throws OciError when an error occurs
156
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ActivateBdsMetastoreConfiguration.ts.html |here} to see how to use ActivateBdsMetastoreConfiguration API.
157
+ */
158
+ activateBdsMetastoreConfiguration(activateBdsMetastoreConfigurationRequest) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ if (this.logger)
161
+ this.logger.debug("Calling operation BdsClient#activateBdsMetastoreConfiguration.");
162
+ const pathParams = {
163
+ "{bdsInstanceId}": activateBdsMetastoreConfigurationRequest.bdsInstanceId,
164
+ "{metastoreConfigId}": activateBdsMetastoreConfigurationRequest.metastoreConfigId
165
+ };
166
+ const queryParams = {};
167
+ let headerParams = {
168
+ "Content-Type": common.Constants.APPLICATION_JSON,
169
+ "opc-request-id": activateBdsMetastoreConfigurationRequest.opcRequestId,
170
+ "opc-retry-token": activateBdsMetastoreConfigurationRequest.opcRetryToken,
171
+ "if-match": activateBdsMetastoreConfigurationRequest.ifMatch
172
+ };
173
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
174
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, activateBdsMetastoreConfigurationRequest.retryConfiguration, specRetryConfiguration);
175
+ if (this.logger)
176
+ retrier.logger = this.logger;
177
+ const request = yield oci_common_2.composeRequest({
178
+ baseEndpoint: this._endpoint,
179
+ defaultHeaders: this._defaultHeaders,
180
+ path: "/bdsInstances/{bdsInstanceId}/metastoreConfigs/{metastoreConfigId}/actions/activate",
181
+ method: "POST",
182
+ bodyContent: common.ObjectSerializer.serialize(activateBdsMetastoreConfigurationRequest.activateBdsMetastoreConfigurationDetails, "ActivateBdsMetastoreConfigurationDetails", model.ActivateBdsMetastoreConfigurationDetails.getJsonObj),
183
+ pathParams: pathParams,
184
+ headerParams: headerParams,
185
+ queryParams: queryParams
186
+ });
187
+ try {
188
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
189
+ const sdkResponse = oci_common_2.composeResponse({
190
+ responseObject: {},
191
+ responseHeaders: [
192
+ {
193
+ value: response.headers.get("opc-request-id"),
194
+ key: "opcRequestId",
195
+ dataType: "string"
196
+ },
197
+ {
198
+ value: response.headers.get("opc-work-request-id"),
199
+ key: "opcWorkRequestId",
200
+ dataType: "string"
201
+ }
202
+ ]
203
+ });
204
+ return sdkResponse;
205
+ }
206
+ catch (err) {
207
+ throw err;
208
+ }
209
+ });
210
+ }
149
211
  /**
150
212
  * Add an autoscale configuration to the cluster.
151
213
  *
@@ -153,7 +215,7 @@ class BdsClient {
153
215
  * @param AddAutoScalingConfigurationRequest
154
216
  * @return AddAutoScalingConfigurationResponse
155
217
  * @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.
218
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/AddAutoScalingConfiguration.ts.html |here} to see how to use AddAutoScalingConfiguration API.
157
219
  */
158
220
  addAutoScalingConfiguration(addAutoScalingConfigurationRequest) {
159
221
  return __awaiter(this, void 0, void 0, function* () {
@@ -214,7 +276,7 @@ class BdsClient {
214
276
  * @param AddBlockStorageRequest
215
277
  * @return AddBlockStorageResponse
216
278
  * @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.
279
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/AddBlockStorage.ts.html |here} to see how to use AddBlockStorage API.
218
280
  */
219
281
  addBlockStorage(addBlockStorageRequest) {
220
282
  return __awaiter(this, void 0, void 0, function* () {
@@ -275,7 +337,7 @@ class BdsClient {
275
337
  * @param AddCloudSqlRequest
276
338
  * @return AddCloudSqlResponse
277
339
  * @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.
340
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/AddCloudSql.ts.html |here} to see how to use AddCloudSql API.
279
341
  */
280
342
  addCloudSql(addCloudSqlRequest) {
281
343
  return __awaiter(this, void 0, void 0, function* () {
@@ -336,7 +398,7 @@ class BdsClient {
336
398
  * @param AddWorkerNodesRequest
337
399
  * @return AddWorkerNodesResponse
338
400
  * @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.
401
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/AddWorkerNodes.ts.html |here} to see how to use AddWorkerNodes API.
340
402
  */
341
403
  addWorkerNodes(addWorkerNodesRequest) {
342
404
  return __awaiter(this, void 0, void 0, function* () {
@@ -397,7 +459,7 @@ class BdsClient {
397
459
  * @param ChangeBdsInstanceCompartmentRequest
398
460
  * @return ChangeBdsInstanceCompartmentResponse
399
461
  * @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.
462
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ChangeBdsInstanceCompartment.ts.html |here} to see how to use ChangeBdsInstanceCompartment API.
401
463
  */
402
464
  changeBdsInstanceCompartment(changeBdsInstanceCompartmentRequest) {
403
465
  return __awaiter(this, void 0, void 0, function* () {
@@ -458,7 +520,7 @@ class BdsClient {
458
520
  * @param ChangeShapeRequest
459
521
  * @return ChangeShapeResponse
460
522
  * @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.
523
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ChangeShape.ts.html |here} to see how to use ChangeShape API.
462
524
  */
463
525
  changeShape(changeShapeRequest) {
464
526
  return __awaiter(this, void 0, void 0, function* () {
@@ -512,6 +574,66 @@ class BdsClient {
512
574
  }
513
575
  });
514
576
  }
577
+ /**
578
+ * Create an API key on behalf of the specified user.
579
+ *
580
+ * This operation does not retry by default if the user has not defined a retry configuration.
581
+ * @param CreateBdsApiKeyRequest
582
+ * @return CreateBdsApiKeyResponse
583
+ * @throws OciError when an error occurs
584
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/CreateBdsApiKey.ts.html |here} to see how to use CreateBdsApiKey API.
585
+ */
586
+ createBdsApiKey(createBdsApiKeyRequest) {
587
+ return __awaiter(this, void 0, void 0, function* () {
588
+ if (this.logger)
589
+ this.logger.debug("Calling operation BdsClient#createBdsApiKey.");
590
+ const pathParams = {
591
+ "{bdsInstanceId}": createBdsApiKeyRequest.bdsInstanceId
592
+ };
593
+ const queryParams = {};
594
+ let headerParams = {
595
+ "Content-Type": common.Constants.APPLICATION_JSON,
596
+ "opc-retry-token": createBdsApiKeyRequest.opcRetryToken,
597
+ "opc-request-id": createBdsApiKeyRequest.opcRequestId
598
+ };
599
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
600
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
601
+ if (this.logger)
602
+ retrier.logger = this.logger;
603
+ const request = yield oci_common_2.composeRequest({
604
+ baseEndpoint: this._endpoint,
605
+ defaultHeaders: this._defaultHeaders,
606
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys",
607
+ method: "POST",
608
+ bodyContent: common.ObjectSerializer.serialize(createBdsApiKeyRequest.createBdsApiKeyDetails, "CreateBdsApiKeyDetails", model.CreateBdsApiKeyDetails.getJsonObj),
609
+ pathParams: pathParams,
610
+ headerParams: headerParams,
611
+ queryParams: queryParams
612
+ });
613
+ try {
614
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
615
+ const sdkResponse = oci_common_2.composeResponse({
616
+ responseObject: {},
617
+ responseHeaders: [
618
+ {
619
+ value: response.headers.get("opc-request-id"),
620
+ key: "opcRequestId",
621
+ dataType: "string"
622
+ },
623
+ {
624
+ value: response.headers.get("opc-work-request-id"),
625
+ key: "opcWorkRequestId",
626
+ dataType: "string"
627
+ }
628
+ ]
629
+ });
630
+ return sdkResponse;
631
+ }
632
+ catch (err) {
633
+ throw err;
634
+ }
635
+ });
636
+ }
515
637
  /**
516
638
  * Creates a Big Data Service cluster.
517
639
  *
@@ -519,7 +641,7 @@ class BdsClient {
519
641
  * @param CreateBdsInstanceRequest
520
642
  * @return CreateBdsInstanceResponse
521
643
  * @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.
644
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/CreateBdsInstance.ts.html |here} to see how to use CreateBdsInstance API.
523
645
  */
524
646
  createBdsInstance(createBdsInstanceRequest) {
525
647
  return __awaiter(this, void 0, void 0, function* () {
@@ -570,13 +692,132 @@ class BdsClient {
570
692
  }
571
693
  });
572
694
  }
695
+ /**
696
+ * Create and activate external metastore configuration.
697
+ *
698
+ * This operation does not retry by default if the user has not defined a retry configuration.
699
+ * @param CreateBdsMetastoreConfigurationRequest
700
+ * @return CreateBdsMetastoreConfigurationResponse
701
+ * @throws OciError when an error occurs
702
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/CreateBdsMetastoreConfiguration.ts.html |here} to see how to use CreateBdsMetastoreConfiguration API.
703
+ */
704
+ createBdsMetastoreConfiguration(createBdsMetastoreConfigurationRequest) {
705
+ return __awaiter(this, void 0, void 0, function* () {
706
+ if (this.logger)
707
+ this.logger.debug("Calling operation BdsClient#createBdsMetastoreConfiguration.");
708
+ const pathParams = {
709
+ "{bdsInstanceId}": createBdsMetastoreConfigurationRequest.bdsInstanceId
710
+ };
711
+ const queryParams = {};
712
+ let headerParams = {
713
+ "Content-Type": common.Constants.APPLICATION_JSON,
714
+ "opc-retry-token": createBdsMetastoreConfigurationRequest.opcRetryToken,
715
+ "opc-request-id": createBdsMetastoreConfigurationRequest.opcRequestId
716
+ };
717
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
718
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBdsMetastoreConfigurationRequest.retryConfiguration, specRetryConfiguration);
719
+ if (this.logger)
720
+ retrier.logger = this.logger;
721
+ const request = yield oci_common_2.composeRequest({
722
+ baseEndpoint: this._endpoint,
723
+ defaultHeaders: this._defaultHeaders,
724
+ path: "/bdsInstances/{bdsInstanceId}/metastoreConfigs",
725
+ method: "POST",
726
+ bodyContent: common.ObjectSerializer.serialize(createBdsMetastoreConfigurationRequest.createBdsMetastoreConfigurationDetails, "CreateBdsMetastoreConfigurationDetails", model.CreateBdsMetastoreConfigurationDetails.getJsonObj),
727
+ pathParams: pathParams,
728
+ headerParams: headerParams,
729
+ queryParams: queryParams
730
+ });
731
+ try {
732
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
733
+ const sdkResponse = oci_common_2.composeResponse({
734
+ responseObject: {},
735
+ responseHeaders: [
736
+ {
737
+ value: response.headers.get("opc-request-id"),
738
+ key: "opcRequestId",
739
+ dataType: "string"
740
+ },
741
+ {
742
+ value: response.headers.get("opc-work-request-id"),
743
+ key: "opcWorkRequestId",
744
+ dataType: "string"
745
+ }
746
+ ]
747
+ });
748
+ return sdkResponse;
749
+ }
750
+ catch (err) {
751
+ throw err;
752
+ }
753
+ });
754
+ }
755
+ /**
756
+ * Deletes the user's API key represented by the provided ID.
757
+ * This operation does not retry by default if the user has not defined a retry configuration.
758
+ * @param DeleteBdsApiKeyRequest
759
+ * @return DeleteBdsApiKeyResponse
760
+ * @throws OciError when an error occurs
761
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/DeleteBdsApiKey.ts.html |here} to see how to use DeleteBdsApiKey API.
762
+ */
763
+ deleteBdsApiKey(deleteBdsApiKeyRequest) {
764
+ return __awaiter(this, void 0, void 0, function* () {
765
+ if (this.logger)
766
+ this.logger.debug("Calling operation BdsClient#deleteBdsApiKey.");
767
+ const pathParams = {
768
+ "{bdsInstanceId}": deleteBdsApiKeyRequest.bdsInstanceId,
769
+ "{apiKeyId}": deleteBdsApiKeyRequest.apiKeyId
770
+ };
771
+ const queryParams = {};
772
+ let headerParams = {
773
+ "Content-Type": common.Constants.APPLICATION_JSON,
774
+ "opc-request-id": deleteBdsApiKeyRequest.opcRequestId,
775
+ "if-match": deleteBdsApiKeyRequest.ifMatch
776
+ };
777
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
778
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
779
+ if (this.logger)
780
+ retrier.logger = this.logger;
781
+ const request = yield oci_common_2.composeRequest({
782
+ baseEndpoint: this._endpoint,
783
+ defaultHeaders: this._defaultHeaders,
784
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}",
785
+ method: "DELETE",
786
+ pathParams: pathParams,
787
+ headerParams: headerParams,
788
+ queryParams: queryParams
789
+ });
790
+ try {
791
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
792
+ const sdkResponse = oci_common_2.composeResponse({
793
+ responseObject: {},
794
+ responseHeaders: [
795
+ {
796
+ value: response.headers.get("opc-request-id"),
797
+ key: "opcRequestId",
798
+ dataType: "string"
799
+ },
800
+ {
801
+ value: response.headers.get("opc-work-request-id"),
802
+ key: "opcWorkRequestId",
803
+ dataType: "string"
804
+ }
805
+ ]
806
+ });
807
+ return sdkResponse;
808
+ }
809
+ catch (err) {
810
+ throw err;
811
+ }
812
+ });
813
+ }
573
814
  /**
574
815
  * Deletes the cluster identified by the given ID.
575
816
  * This operation does not retry by default if the user has not defined a retry configuration.
576
817
  * @param DeleteBdsInstanceRequest
577
818
  * @return DeleteBdsInstanceResponse
578
819
  * @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.
820
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/DeleteBdsInstance.ts.html |here} to see how to use DeleteBdsInstance API.
580
821
  */
581
822
  deleteBdsInstance(deleteBdsInstanceRequest) {
582
823
  return __awaiter(this, void 0, void 0, function* () {
@@ -628,6 +869,65 @@ class BdsClient {
628
869
  }
629
870
  });
630
871
  }
872
+ /**
873
+ * Delete the BDS metastore configuration represented by the provided ID.
874
+ * This operation does not retry by default if the user has not defined a retry configuration.
875
+ * @param DeleteBdsMetastoreConfigurationRequest
876
+ * @return DeleteBdsMetastoreConfigurationResponse
877
+ * @throws OciError when an error occurs
878
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/DeleteBdsMetastoreConfiguration.ts.html |here} to see how to use DeleteBdsMetastoreConfiguration API.
879
+ */
880
+ deleteBdsMetastoreConfiguration(deleteBdsMetastoreConfigurationRequest) {
881
+ return __awaiter(this, void 0, void 0, function* () {
882
+ if (this.logger)
883
+ this.logger.debug("Calling operation BdsClient#deleteBdsMetastoreConfiguration.");
884
+ const pathParams = {
885
+ "{bdsInstanceId}": deleteBdsMetastoreConfigurationRequest.bdsInstanceId,
886
+ "{metastoreConfigId}": deleteBdsMetastoreConfigurationRequest.metastoreConfigId
887
+ };
888
+ const queryParams = {};
889
+ let headerParams = {
890
+ "Content-Type": common.Constants.APPLICATION_JSON,
891
+ "opc-request-id": deleteBdsMetastoreConfigurationRequest.opcRequestId,
892
+ "if-match": deleteBdsMetastoreConfigurationRequest.ifMatch
893
+ };
894
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
895
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBdsMetastoreConfigurationRequest.retryConfiguration, specRetryConfiguration);
896
+ if (this.logger)
897
+ retrier.logger = this.logger;
898
+ const request = yield oci_common_2.composeRequest({
899
+ baseEndpoint: this._endpoint,
900
+ defaultHeaders: this._defaultHeaders,
901
+ path: "/bdsInstances/{bdsInstanceId}/metastoreConfigs/{metastoreConfigId}",
902
+ method: "DELETE",
903
+ pathParams: pathParams,
904
+ headerParams: headerParams,
905
+ queryParams: queryParams
906
+ });
907
+ try {
908
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
909
+ const sdkResponse = oci_common_2.composeResponse({
910
+ responseObject: {},
911
+ responseHeaders: [
912
+ {
913
+ value: response.headers.get("opc-request-id"),
914
+ key: "opcRequestId",
915
+ dataType: "string"
916
+ },
917
+ {
918
+ value: response.headers.get("opc-work-request-id"),
919
+ key: "opcWorkRequestId",
920
+ dataType: "string"
921
+ }
922
+ ]
923
+ });
924
+ return sdkResponse;
925
+ }
926
+ catch (err) {
927
+ throw err;
928
+ }
929
+ });
930
+ }
631
931
  /**
632
932
  * Returns details of the autoscale configuration identified by the given ID.
633
933
  *
@@ -635,7 +935,7 @@ class BdsClient {
635
935
  * @param GetAutoScalingConfigurationRequest
636
936
  * @return GetAutoScalingConfigurationResponse
637
937
  * @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.
938
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/GetAutoScalingConfiguration.ts.html |here} to see how to use GetAutoScalingConfiguration API.
639
939
  */
640
940
  getAutoScalingConfiguration(getAutoScalingConfigurationRequest) {
641
941
  return __awaiter(this, void 0, void 0, function* () {
@@ -691,13 +991,75 @@ class BdsClient {
691
991
  }
692
992
  });
693
993
  }
994
+ /**
995
+ * Returns the user's API key information for the given ID.
996
+ * This operation does not retry by default if the user has not defined a retry configuration.
997
+ * @param GetBdsApiKeyRequest
998
+ * @return GetBdsApiKeyResponse
999
+ * @throws OciError when an error occurs
1000
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/GetBdsApiKey.ts.html |here} to see how to use GetBdsApiKey API.
1001
+ */
1002
+ getBdsApiKey(getBdsApiKeyRequest) {
1003
+ return __awaiter(this, void 0, void 0, function* () {
1004
+ if (this.logger)
1005
+ this.logger.debug("Calling operation BdsClient#getBdsApiKey.");
1006
+ const pathParams = {
1007
+ "{bdsInstanceId}": getBdsApiKeyRequest.bdsInstanceId,
1008
+ "{apiKeyId}": getBdsApiKeyRequest.apiKeyId
1009
+ };
1010
+ const queryParams = {};
1011
+ let headerParams = {
1012
+ "Content-Type": common.Constants.APPLICATION_JSON,
1013
+ "opc-request-id": getBdsApiKeyRequest.opcRequestId
1014
+ };
1015
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1016
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
1017
+ if (this.logger)
1018
+ retrier.logger = this.logger;
1019
+ const request = yield oci_common_2.composeRequest({
1020
+ baseEndpoint: this._endpoint,
1021
+ defaultHeaders: this._defaultHeaders,
1022
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}",
1023
+ method: "GET",
1024
+ pathParams: pathParams,
1025
+ headerParams: headerParams,
1026
+ queryParams: queryParams
1027
+ });
1028
+ try {
1029
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1030
+ const sdkResponse = oci_common_2.composeResponse({
1031
+ responseObject: {},
1032
+ body: yield response.json(),
1033
+ bodyKey: "bdsApiKey",
1034
+ bodyModel: model.BdsApiKey,
1035
+ type: "model.BdsApiKey",
1036
+ responseHeaders: [
1037
+ {
1038
+ value: response.headers.get("opc-request-id"),
1039
+ key: "opcRequestId",
1040
+ dataType: "string"
1041
+ },
1042
+ {
1043
+ value: response.headers.get("etag"),
1044
+ key: "etag",
1045
+ dataType: "string"
1046
+ }
1047
+ ]
1048
+ });
1049
+ return sdkResponse;
1050
+ }
1051
+ catch (err) {
1052
+ throw err;
1053
+ }
1054
+ });
1055
+ }
694
1056
  /**
695
1057
  * Returns information about the Big Data Service cluster identified by the given ID.
696
1058
  * This operation does not retry by default if the user has not defined a retry configuration.
697
1059
  * @param GetBdsInstanceRequest
698
1060
  * @return GetBdsInstanceResponse
699
1061
  * @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.
1062
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/GetBdsInstance.ts.html |here} to see how to use GetBdsInstance API.
701
1063
  */
702
1064
  getBdsInstance(getBdsInstanceRequest) {
703
1065
  return __awaiter(this, void 0, void 0, function* () {
@@ -752,13 +1114,75 @@ class BdsClient {
752
1114
  }
753
1115
  });
754
1116
  }
1117
+ /**
1118
+ * Returns the BDS Metastore configuration information for the given ID.
1119
+ * This operation does not retry by default if the user has not defined a retry configuration.
1120
+ * @param GetBdsMetastoreConfigurationRequest
1121
+ * @return GetBdsMetastoreConfigurationResponse
1122
+ * @throws OciError when an error occurs
1123
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/GetBdsMetastoreConfiguration.ts.html |here} to see how to use GetBdsMetastoreConfiguration API.
1124
+ */
1125
+ getBdsMetastoreConfiguration(getBdsMetastoreConfigurationRequest) {
1126
+ return __awaiter(this, void 0, void 0, function* () {
1127
+ if (this.logger)
1128
+ this.logger.debug("Calling operation BdsClient#getBdsMetastoreConfiguration.");
1129
+ const pathParams = {
1130
+ "{bdsInstanceId}": getBdsMetastoreConfigurationRequest.bdsInstanceId,
1131
+ "{metastoreConfigId}": getBdsMetastoreConfigurationRequest.metastoreConfigId
1132
+ };
1133
+ const queryParams = {};
1134
+ let headerParams = {
1135
+ "Content-Type": common.Constants.APPLICATION_JSON,
1136
+ "opc-request-id": getBdsMetastoreConfigurationRequest.opcRequestId
1137
+ };
1138
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1139
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBdsMetastoreConfigurationRequest.retryConfiguration, specRetryConfiguration);
1140
+ if (this.logger)
1141
+ retrier.logger = this.logger;
1142
+ const request = yield oci_common_2.composeRequest({
1143
+ baseEndpoint: this._endpoint,
1144
+ defaultHeaders: this._defaultHeaders,
1145
+ path: "/bdsInstances/{bdsInstanceId}/metastoreConfigs/{metastoreConfigId}",
1146
+ method: "GET",
1147
+ pathParams: pathParams,
1148
+ headerParams: headerParams,
1149
+ queryParams: queryParams
1150
+ });
1151
+ try {
1152
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1153
+ const sdkResponse = oci_common_2.composeResponse({
1154
+ responseObject: {},
1155
+ body: yield response.json(),
1156
+ bodyKey: "bdsMetastoreConfiguration",
1157
+ bodyModel: model.BdsMetastoreConfiguration,
1158
+ type: "model.BdsMetastoreConfiguration",
1159
+ responseHeaders: [
1160
+ {
1161
+ value: response.headers.get("opc-request-id"),
1162
+ key: "opcRequestId",
1163
+ dataType: "string"
1164
+ },
1165
+ {
1166
+ value: response.headers.get("etag"),
1167
+ key: "etag",
1168
+ dataType: "string"
1169
+ }
1170
+ ]
1171
+ });
1172
+ return sdkResponse;
1173
+ }
1174
+ catch (err) {
1175
+ throw err;
1176
+ }
1177
+ });
1178
+ }
755
1179
  /**
756
1180
  * Returns the status of the work request identified by the given ID.
757
1181
  * This operation does not retry by default if the user has not defined a retry configuration.
758
1182
  * @param GetWorkRequestRequest
759
1183
  * @return GetWorkRequestResponse
760
1184
  * @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.
1185
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
762
1186
  */
763
1187
  getWorkRequest(getWorkRequestRequest) {
764
1188
  return __awaiter(this, void 0, void 0, function* () {
@@ -814,42 +1238,152 @@ class BdsClient {
814
1238
  });
815
1239
  }
816
1240
  /**
817
- * Returns information about the autoscaling configurations for a cluster.
1241
+ * Returns information about the autoscaling configurations for a cluster.
1242
+ *
1243
+ * This operation does not retry by default if the user has not defined a retry configuration.
1244
+ * @param ListAutoScalingConfigurationsRequest
1245
+ * @return ListAutoScalingConfigurationsResponse
1246
+ * @throws OciError when an error occurs
1247
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ListAutoScalingConfigurations.ts.html |here} to see how to use ListAutoScalingConfigurations API.
1248
+ */
1249
+ listAutoScalingConfigurations(listAutoScalingConfigurationsRequest) {
1250
+ return __awaiter(this, void 0, void 0, function* () {
1251
+ if (this.logger)
1252
+ this.logger.debug("Calling operation BdsClient#listAutoScalingConfigurations.");
1253
+ const pathParams = {
1254
+ "{bdsInstanceId}": listAutoScalingConfigurationsRequest.bdsInstanceId
1255
+ };
1256
+ const queryParams = {
1257
+ "compartmentId": listAutoScalingConfigurationsRequest.compartmentId,
1258
+ "page": listAutoScalingConfigurationsRequest.page,
1259
+ "limit": listAutoScalingConfigurationsRequest.limit,
1260
+ "sortBy": listAutoScalingConfigurationsRequest.sortBy,
1261
+ "sortOrder": listAutoScalingConfigurationsRequest.sortOrder,
1262
+ "displayName": listAutoScalingConfigurationsRequest.displayName,
1263
+ "lifecycleState": listAutoScalingConfigurationsRequest.lifecycleState
1264
+ };
1265
+ let headerParams = {
1266
+ "Content-Type": common.Constants.APPLICATION_JSON,
1267
+ "opc-request-id": listAutoScalingConfigurationsRequest.opcRequestId
1268
+ };
1269
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1270
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAutoScalingConfigurationsRequest.retryConfiguration, specRetryConfiguration);
1271
+ if (this.logger)
1272
+ retrier.logger = this.logger;
1273
+ const request = yield oci_common_2.composeRequest({
1274
+ baseEndpoint: this._endpoint,
1275
+ defaultHeaders: this._defaultHeaders,
1276
+ path: "/bdsInstances/{bdsInstanceId}/autoScalingConfiguration",
1277
+ method: "GET",
1278
+ pathParams: pathParams,
1279
+ headerParams: headerParams,
1280
+ queryParams: queryParams
1281
+ });
1282
+ try {
1283
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1284
+ const sdkResponse = oci_common_2.composeResponse({
1285
+ responseObject: {},
1286
+ body: yield response.json(),
1287
+ bodyKey: "items",
1288
+ bodyModel: model.AutoScalingConfigurationSummary,
1289
+ type: "Array<model.AutoScalingConfigurationSummary>",
1290
+ responseHeaders: [
1291
+ {
1292
+ value: response.headers.get("opc-request-id"),
1293
+ key: "opcRequestId",
1294
+ dataType: "string"
1295
+ },
1296
+ {
1297
+ value: response.headers.get("opc-next-page"),
1298
+ key: "opcNextPage",
1299
+ dataType: "string"
1300
+ }
1301
+ ]
1302
+ });
1303
+ return sdkResponse;
1304
+ }
1305
+ catch (err) {
1306
+ throw err;
1307
+ }
1308
+ });
1309
+ }
1310
+ /**
1311
+ * NOTE: This function is deprecated in favor of listAutoScalingConfigurationsRecordIterator function.
1312
+ * Creates a new async iterator which will iterate over the models.AutoScalingConfigurationSummary objects
1313
+ * contained in responses from the listAutoScalingConfigurations operation. This iterator will fetch more data from the
1314
+ * server as needed.
1315
+ *
1316
+ * @param request a request which can be sent to the service operation
1317
+ */
1318
+ listAllAutoScalingConfigurations(request) {
1319
+ return oci_common_1.paginateRecords(request, req => this.listAutoScalingConfigurations(req));
1320
+ }
1321
+ /**
1322
+ * NOTE: This function is deprecated in favor of listAutoScalingConfigurationsResponseIterator function.
1323
+ * Creates a new async iterator which will iterate over the responses received from the listAutoScalingConfigurations operation. This iterator
1324
+ * will fetch more data from the server as needed.
1325
+ *
1326
+ * @param request a request which can be sent to the service operation
1327
+ */
1328
+ listAllAutoScalingConfigurationsResponses(request) {
1329
+ return oci_common_1.paginateResponses(request, req => this.listAutoScalingConfigurations(req));
1330
+ }
1331
+ /**
1332
+ * Creates a new async iterator which will iterate over the models.AutoScalingConfigurationSummary objects
1333
+ * contained in responses from the listAutoScalingConfigurations operation. This iterator will fetch more data from the
1334
+ * server as needed.
1335
+ *
1336
+ * @param request a request which can be sent to the service operation
1337
+ */
1338
+ listAutoScalingConfigurationsRecordIterator(request) {
1339
+ return oci_common_1.paginateRecords(request, req => this.listAutoScalingConfigurations(req));
1340
+ }
1341
+ /**
1342
+ * Creates a new async iterator which will iterate over the responses received from the listAutoScalingConfigurations operation. This iterator
1343
+ * will fetch more data from the server as needed.
1344
+ *
1345
+ * @param request a request which can be sent to the service operation
1346
+ */
1347
+ listAutoScalingConfigurationsResponseIterator(request) {
1348
+ return oci_common_1.paginateResponses(request, req => this.listAutoScalingConfigurations(req));
1349
+ }
1350
+ /**
1351
+ * Returns a list of all API keys associated with this Big Data Service cluster.
818
1352
  *
819
1353
  * This operation does not retry by default if the user has not defined a retry configuration.
820
- * @param ListAutoScalingConfigurationsRequest
821
- * @return ListAutoScalingConfigurationsResponse
1354
+ * @param ListBdsApiKeysRequest
1355
+ * @return ListBdsApiKeysResponse
822
1356
  * @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.
1357
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ListBdsApiKeys.ts.html |here} to see how to use ListBdsApiKeys API.
824
1358
  */
825
- listAutoScalingConfigurations(listAutoScalingConfigurationsRequest) {
1359
+ listBdsApiKeys(listBdsApiKeysRequest) {
826
1360
  return __awaiter(this, void 0, void 0, function* () {
827
1361
  if (this.logger)
828
- this.logger.debug("Calling operation BdsClient#listAutoScalingConfigurations.");
1362
+ this.logger.debug("Calling operation BdsClient#listBdsApiKeys.");
829
1363
  const pathParams = {
830
- "{bdsInstanceId}": listAutoScalingConfigurationsRequest.bdsInstanceId
1364
+ "{bdsInstanceId}": listBdsApiKeysRequest.bdsInstanceId
831
1365
  };
832
1366
  const queryParams = {
833
- "compartmentId": listAutoScalingConfigurationsRequest.compartmentId,
834
- "page": listAutoScalingConfigurationsRequest.page,
835
- "limit": listAutoScalingConfigurationsRequest.limit,
836
- "sortBy": listAutoScalingConfigurationsRequest.sortBy,
837
- "sortOrder": listAutoScalingConfigurationsRequest.sortOrder,
838
- "displayName": listAutoScalingConfigurationsRequest.displayName,
839
- "lifecycleState": listAutoScalingConfigurationsRequest.lifecycleState
1367
+ "lifecycleState": listBdsApiKeysRequest.lifecycleState,
1368
+ "userId": listBdsApiKeysRequest.userId,
1369
+ "page": listBdsApiKeysRequest.page,
1370
+ "limit": listBdsApiKeysRequest.limit,
1371
+ "sortBy": listBdsApiKeysRequest.sortBy,
1372
+ "sortOrder": listBdsApiKeysRequest.sortOrder,
1373
+ "displayName": listBdsApiKeysRequest.displayName
840
1374
  };
841
1375
  let headerParams = {
842
1376
  "Content-Type": common.Constants.APPLICATION_JSON,
843
- "opc-request-id": listAutoScalingConfigurationsRequest.opcRequestId
1377
+ "opc-request-id": listBdsApiKeysRequest.opcRequestId
844
1378
  };
845
1379
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
846
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAutoScalingConfigurationsRequest.retryConfiguration, specRetryConfiguration);
1380
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBdsApiKeysRequest.retryConfiguration, specRetryConfiguration);
847
1381
  if (this.logger)
848
1382
  retrier.logger = this.logger;
849
1383
  const request = yield oci_common_2.composeRequest({
850
1384
  baseEndpoint: this._endpoint,
851
1385
  defaultHeaders: this._defaultHeaders,
852
- path: "/bdsInstances/{bdsInstanceId}/autoScalingConfiguration",
1386
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys",
853
1387
  method: "GET",
854
1388
  pathParams: pathParams,
855
1389
  headerParams: headerParams,
@@ -861,8 +1395,8 @@ class BdsClient {
861
1395
  responseObject: {},
862
1396
  body: yield response.json(),
863
1397
  bodyKey: "items",
864
- bodyModel: model.AutoScalingConfigurationSummary,
865
- type: "Array<model.AutoScalingConfigurationSummary>",
1398
+ bodyModel: model.BdsApiKeySummary,
1399
+ type: "Array<model.BdsApiKeySummary>",
866
1400
  responseHeaders: [
867
1401
  {
868
1402
  value: response.headers.get("opc-request-id"),
@@ -884,44 +1418,44 @@ class BdsClient {
884
1418
  });
885
1419
  }
886
1420
  /**
887
- * NOTE: This function is deprecated in favor of listAutoScalingConfigurationsRecordIterator function.
888
- * Creates a new async iterator which will iterate over the models.AutoScalingConfigurationSummary objects
889
- * contained in responses from the listAutoScalingConfigurations operation. This iterator will fetch more data from the
1421
+ * NOTE: This function is deprecated in favor of listBdsApiKeysRecordIterator function.
1422
+ * Creates a new async iterator which will iterate over the models.BdsApiKeySummary objects
1423
+ * contained in responses from the listBdsApiKeys operation. This iterator will fetch more data from the
890
1424
  * server as needed.
891
1425
  *
892
1426
  * @param request a request which can be sent to the service operation
893
1427
  */
894
- listAllAutoScalingConfigurations(request) {
895
- return oci_common_1.paginateRecords(request, req => this.listAutoScalingConfigurations(req));
1428
+ listAllBdsApiKeys(request) {
1429
+ return oci_common_1.paginateRecords(request, req => this.listBdsApiKeys(req));
896
1430
  }
897
1431
  /**
898
- * NOTE: This function is deprecated in favor of listAutoScalingConfigurationsResponseIterator function.
899
- * Creates a new async iterator which will iterate over the responses received from the listAutoScalingConfigurations operation. This iterator
1432
+ * NOTE: This function is deprecated in favor of listBdsApiKeysResponseIterator function.
1433
+ * Creates a new async iterator which will iterate over the responses received from the listBdsApiKeys operation. This iterator
900
1434
  * will fetch more data from the server as needed.
901
1435
  *
902
1436
  * @param request a request which can be sent to the service operation
903
1437
  */
904
- listAllAutoScalingConfigurationsResponses(request) {
905
- return oci_common_1.paginateResponses(request, req => this.listAutoScalingConfigurations(req));
1438
+ listAllBdsApiKeysResponses(request) {
1439
+ return oci_common_1.paginateResponses(request, req => this.listBdsApiKeys(req));
906
1440
  }
907
1441
  /**
908
- * Creates a new async iterator which will iterate over the models.AutoScalingConfigurationSummary objects
909
- * contained in responses from the listAutoScalingConfigurations operation. This iterator will fetch more data from the
1442
+ * Creates a new async iterator which will iterate over the models.BdsApiKeySummary objects
1443
+ * contained in responses from the listBdsApiKeys operation. This iterator will fetch more data from the
910
1444
  * server as needed.
911
1445
  *
912
1446
  * @param request a request which can be sent to the service operation
913
1447
  */
914
- listAutoScalingConfigurationsRecordIterator(request) {
915
- return oci_common_1.paginateRecords(request, req => this.listAutoScalingConfigurations(req));
1448
+ listBdsApiKeysRecordIterator(request) {
1449
+ return oci_common_1.paginateRecords(request, req => this.listBdsApiKeys(req));
916
1450
  }
917
1451
  /**
918
- * Creates a new async iterator which will iterate over the responses received from the listAutoScalingConfigurations operation. This iterator
1452
+ * Creates a new async iterator which will iterate over the responses received from the listBdsApiKeys operation. This iterator
919
1453
  * will fetch more data from the server as needed.
920
1454
  *
921
1455
  * @param request a request which can be sent to the service operation
922
1456
  */
923
- listAutoScalingConfigurationsResponseIterator(request) {
924
- return oci_common_1.paginateResponses(request, req => this.listAutoScalingConfigurations(req));
1457
+ listBdsApiKeysResponseIterator(request) {
1458
+ return oci_common_1.paginateResponses(request, req => this.listBdsApiKeys(req));
925
1459
  }
926
1460
  /**
927
1461
  * Returns a list of all Big Data Service clusters in a compartment.
@@ -930,7 +1464,7 @@ class BdsClient {
930
1464
  * @param ListBdsInstancesRequest
931
1465
  * @return ListBdsInstancesResponse
932
1466
  * @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.
1467
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ListBdsInstances.ts.html |here} to see how to use ListBdsInstances API.
934
1468
  */
935
1469
  listBdsInstances(listBdsInstancesRequest) {
936
1470
  return __awaiter(this, void 0, void 0, function* () {
@@ -1031,6 +1565,118 @@ class BdsClient {
1031
1565
  listBdsInstancesResponseIterator(request) {
1032
1566
  return oci_common_1.paginateResponses(request, req => this.listBdsInstances(req));
1033
1567
  }
1568
+ /**
1569
+ * Returns a list of metastore configurations ssociated with this Big Data Service cluster.
1570
+ *
1571
+ * This operation does not retry by default if the user has not defined a retry configuration.
1572
+ * @param ListBdsMetastoreConfigurationsRequest
1573
+ * @return ListBdsMetastoreConfigurationsResponse
1574
+ * @throws OciError when an error occurs
1575
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ListBdsMetastoreConfigurations.ts.html |here} to see how to use ListBdsMetastoreConfigurations API.
1576
+ */
1577
+ listBdsMetastoreConfigurations(listBdsMetastoreConfigurationsRequest) {
1578
+ return __awaiter(this, void 0, void 0, function* () {
1579
+ if (this.logger)
1580
+ this.logger.debug("Calling operation BdsClient#listBdsMetastoreConfigurations.");
1581
+ const pathParams = {
1582
+ "{bdsInstanceId}": listBdsMetastoreConfigurationsRequest.bdsInstanceId
1583
+ };
1584
+ const queryParams = {
1585
+ "metastoreType": listBdsMetastoreConfigurationsRequest.metastoreType,
1586
+ "metastoreId": listBdsMetastoreConfigurationsRequest.metastoreId,
1587
+ "lifecycleState": listBdsMetastoreConfigurationsRequest.lifecycleState,
1588
+ "bdsApiKeyId": listBdsMetastoreConfigurationsRequest.bdsApiKeyId,
1589
+ "page": listBdsMetastoreConfigurationsRequest.page,
1590
+ "limit": listBdsMetastoreConfigurationsRequest.limit,
1591
+ "sortBy": listBdsMetastoreConfigurationsRequest.sortBy,
1592
+ "sortOrder": listBdsMetastoreConfigurationsRequest.sortOrder,
1593
+ "displayName": listBdsMetastoreConfigurationsRequest.displayName
1594
+ };
1595
+ let headerParams = {
1596
+ "Content-Type": common.Constants.APPLICATION_JSON,
1597
+ "opc-request-id": listBdsMetastoreConfigurationsRequest.opcRequestId
1598
+ };
1599
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1600
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBdsMetastoreConfigurationsRequest.retryConfiguration, specRetryConfiguration);
1601
+ if (this.logger)
1602
+ retrier.logger = this.logger;
1603
+ const request = yield oci_common_2.composeRequest({
1604
+ baseEndpoint: this._endpoint,
1605
+ defaultHeaders: this._defaultHeaders,
1606
+ path: "/bdsInstances/{bdsInstanceId}/metastoreConfigs",
1607
+ method: "GET",
1608
+ pathParams: pathParams,
1609
+ headerParams: headerParams,
1610
+ queryParams: queryParams
1611
+ });
1612
+ try {
1613
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1614
+ const sdkResponse = oci_common_2.composeResponse({
1615
+ responseObject: {},
1616
+ body: yield response.json(),
1617
+ bodyKey: "items",
1618
+ bodyModel: model.BdsMetastoreConfigurationSummary,
1619
+ type: "Array<model.BdsMetastoreConfigurationSummary>",
1620
+ responseHeaders: [
1621
+ {
1622
+ value: response.headers.get("opc-request-id"),
1623
+ key: "opcRequestId",
1624
+ dataType: "string"
1625
+ },
1626
+ {
1627
+ value: response.headers.get("opc-next-page"),
1628
+ key: "opcNextPage",
1629
+ dataType: "string"
1630
+ }
1631
+ ]
1632
+ });
1633
+ return sdkResponse;
1634
+ }
1635
+ catch (err) {
1636
+ throw err;
1637
+ }
1638
+ });
1639
+ }
1640
+ /**
1641
+ * NOTE: This function is deprecated in favor of listBdsMetastoreConfigurationsRecordIterator function.
1642
+ * Creates a new async iterator which will iterate over the models.BdsMetastoreConfigurationSummary objects
1643
+ * contained in responses from the listBdsMetastoreConfigurations operation. This iterator will fetch more data from the
1644
+ * server as needed.
1645
+ *
1646
+ * @param request a request which can be sent to the service operation
1647
+ */
1648
+ listAllBdsMetastoreConfigurations(request) {
1649
+ return oci_common_1.paginateRecords(request, req => this.listBdsMetastoreConfigurations(req));
1650
+ }
1651
+ /**
1652
+ * NOTE: This function is deprecated in favor of listBdsMetastoreConfigurationsResponseIterator function.
1653
+ * Creates a new async iterator which will iterate over the responses received from the listBdsMetastoreConfigurations operation. This iterator
1654
+ * will fetch more data from the server as needed.
1655
+ *
1656
+ * @param request a request which can be sent to the service operation
1657
+ */
1658
+ listAllBdsMetastoreConfigurationsResponses(request) {
1659
+ return oci_common_1.paginateResponses(request, req => this.listBdsMetastoreConfigurations(req));
1660
+ }
1661
+ /**
1662
+ * Creates a new async iterator which will iterate over the models.BdsMetastoreConfigurationSummary objects
1663
+ * contained in responses from the listBdsMetastoreConfigurations operation. This iterator will fetch more data from the
1664
+ * server as needed.
1665
+ *
1666
+ * @param request a request which can be sent to the service operation
1667
+ */
1668
+ listBdsMetastoreConfigurationsRecordIterator(request) {
1669
+ return oci_common_1.paginateRecords(request, req => this.listBdsMetastoreConfigurations(req));
1670
+ }
1671
+ /**
1672
+ * Creates a new async iterator which will iterate over the responses received from the listBdsMetastoreConfigurations operation. This iterator
1673
+ * will fetch more data from the server as needed.
1674
+ *
1675
+ * @param request a request which can be sent to the service operation
1676
+ */
1677
+ listBdsMetastoreConfigurationsResponseIterator(request) {
1678
+ return oci_common_1.paginateResponses(request, req => this.listBdsMetastoreConfigurations(req));
1679
+ }
1034
1680
  /**
1035
1681
  * Returns a paginated list of errors for a work request identified by the given ID.
1036
1682
  *
@@ -1038,7 +1684,7 @@ class BdsClient {
1038
1684
  * @param ListWorkRequestErrorsRequest
1039
1685
  * @return ListWorkRequestErrorsResponse
1040
1686
  * @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.
1687
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1042
1688
  */
1043
1689
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
1044
1690
  return __awaiter(this, void 0, void 0, function* () {
@@ -1145,7 +1791,7 @@ class BdsClient {
1145
1791
  * @param ListWorkRequestLogsRequest
1146
1792
  * @return ListWorkRequestLogsResponse
1147
1793
  * @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.
1794
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1149
1795
  */
1150
1796
  listWorkRequestLogs(listWorkRequestLogsRequest) {
1151
1797
  return __awaiter(this, void 0, void 0, function* () {
@@ -1252,7 +1898,7 @@ class BdsClient {
1252
1898
  * @param ListWorkRequestsRequest
1253
1899
  * @return ListWorkRequestsResponse
1254
1900
  * @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.
1901
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1256
1902
  */
1257
1903
  listWorkRequests(listWorkRequestsRequest) {
1258
1904
  return __awaiter(this, void 0, void 0, function* () {
@@ -1359,7 +2005,7 @@ class BdsClient {
1359
2005
  * @param RemoveAutoScalingConfigurationRequest
1360
2006
  * @return RemoveAutoScalingConfigurationResponse
1361
2007
  * @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.
2008
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/RemoveAutoScalingConfiguration.ts.html |here} to see how to use RemoveAutoScalingConfiguration API.
1363
2009
  */
1364
2010
  removeAutoScalingConfiguration(removeAutoScalingConfigurationRequest) {
1365
2011
  return __awaiter(this, void 0, void 0, function* () {
@@ -1421,7 +2067,7 @@ class BdsClient {
1421
2067
  * @param RemoveCloudSqlRequest
1422
2068
  * @return RemoveCloudSqlResponse
1423
2069
  * @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.
2070
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/RemoveCloudSql.ts.html |here} to see how to use RemoveCloudSql API.
1425
2071
  */
1426
2072
  removeCloudSql(removeCloudSqlRequest) {
1427
2073
  return __awaiter(this, void 0, void 0, function* () {
@@ -1482,7 +2128,7 @@ class BdsClient {
1482
2128
  * @param RestartNodeRequest
1483
2129
  * @return RestartNodeResponse
1484
2130
  * @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.
2131
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/RestartNode.ts.html |here} to see how to use RestartNode API.
1486
2132
  */
1487
2133
  restartNode(restartNodeRequest) {
1488
2134
  return __awaiter(this, void 0, void 0, function* () {
@@ -1536,6 +2182,126 @@ class BdsClient {
1536
2182
  }
1537
2183
  });
1538
2184
  }
2185
+ /**
2186
+ * Test specified metastore configuration.
2187
+ *
2188
+ * This operation does not retry by default if the user has not defined a retry configuration.
2189
+ * @param TestBdsMetastoreConfigurationRequest
2190
+ * @return TestBdsMetastoreConfigurationResponse
2191
+ * @throws OciError when an error occurs
2192
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/TestBdsMetastoreConfiguration.ts.html |here} to see how to use TestBdsMetastoreConfiguration API.
2193
+ */
2194
+ testBdsMetastoreConfiguration(testBdsMetastoreConfigurationRequest) {
2195
+ return __awaiter(this, void 0, void 0, function* () {
2196
+ if (this.logger)
2197
+ this.logger.debug("Calling operation BdsClient#testBdsMetastoreConfiguration.");
2198
+ const pathParams = {
2199
+ "{bdsInstanceId}": testBdsMetastoreConfigurationRequest.bdsInstanceId,
2200
+ "{metastoreConfigId}": testBdsMetastoreConfigurationRequest.metastoreConfigId
2201
+ };
2202
+ const queryParams = {};
2203
+ let headerParams = {
2204
+ "Content-Type": common.Constants.APPLICATION_JSON,
2205
+ "opc-request-id": testBdsMetastoreConfigurationRequest.opcRequestId,
2206
+ "if-match": testBdsMetastoreConfigurationRequest.ifMatch
2207
+ };
2208
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2209
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, testBdsMetastoreConfigurationRequest.retryConfiguration, specRetryConfiguration);
2210
+ if (this.logger)
2211
+ retrier.logger = this.logger;
2212
+ const request = yield oci_common_2.composeRequest({
2213
+ baseEndpoint: this._endpoint,
2214
+ defaultHeaders: this._defaultHeaders,
2215
+ path: "/bdsInstances/{bdsInstanceId}/metastoreConfigs/{metastoreConfigId}/actions/test",
2216
+ method: "POST",
2217
+ bodyContent: common.ObjectSerializer.serialize(testBdsMetastoreConfigurationRequest.testBdsMetastoreConfigurationDetails, "TestBdsMetastoreConfigurationDetails", model.TestBdsMetastoreConfigurationDetails.getJsonObj),
2218
+ pathParams: pathParams,
2219
+ headerParams: headerParams,
2220
+ queryParams: queryParams
2221
+ });
2222
+ try {
2223
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2224
+ const sdkResponse = oci_common_2.composeResponse({
2225
+ responseObject: {},
2226
+ responseHeaders: [
2227
+ {
2228
+ value: response.headers.get("opc-request-id"),
2229
+ key: "opcRequestId",
2230
+ dataType: "string"
2231
+ },
2232
+ {
2233
+ value: response.headers.get("opc-work-request-id"),
2234
+ key: "opcWorkRequestId",
2235
+ dataType: "string"
2236
+ }
2237
+ ]
2238
+ });
2239
+ return sdkResponse;
2240
+ }
2241
+ catch (err) {
2242
+ throw err;
2243
+ }
2244
+ });
2245
+ }
2246
+ /**
2247
+ * Test access to specified Object Storage bucket using the API key.
2248
+ * This operation does not retry by default if the user has not defined a retry configuration.
2249
+ * @param TestBdsObjectStorageConnectionRequest
2250
+ * @return TestBdsObjectStorageConnectionResponse
2251
+ * @throws OciError when an error occurs
2252
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/TestBdsObjectStorageConnection.ts.html |here} to see how to use TestBdsObjectStorageConnection API.
2253
+ */
2254
+ testBdsObjectStorageConnection(testBdsObjectStorageConnectionRequest) {
2255
+ return __awaiter(this, void 0, void 0, function* () {
2256
+ if (this.logger)
2257
+ this.logger.debug("Calling operation BdsClient#testBdsObjectStorageConnection.");
2258
+ const pathParams = {
2259
+ "{bdsInstanceId}": testBdsObjectStorageConnectionRequest.bdsInstanceId,
2260
+ "{apiKeyId}": testBdsObjectStorageConnectionRequest.apiKeyId
2261
+ };
2262
+ const queryParams = {};
2263
+ let headerParams = {
2264
+ "Content-Type": common.Constants.APPLICATION_JSON,
2265
+ "opc-request-id": testBdsObjectStorageConnectionRequest.opcRequestId
2266
+ };
2267
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2268
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, testBdsObjectStorageConnectionRequest.retryConfiguration, specRetryConfiguration);
2269
+ if (this.logger)
2270
+ retrier.logger = this.logger;
2271
+ const request = yield oci_common_2.composeRequest({
2272
+ baseEndpoint: this._endpoint,
2273
+ defaultHeaders: this._defaultHeaders,
2274
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}/actions/testObjectStorageConnection",
2275
+ method: "POST",
2276
+ bodyContent: common.ObjectSerializer.serialize(testBdsObjectStorageConnectionRequest.testBdsObjectStorageConnectionDetails, "TestBdsObjectStorageConnectionDetails", model.TestBdsObjectStorageConnectionDetails.getJsonObj),
2277
+ pathParams: pathParams,
2278
+ headerParams: headerParams,
2279
+ queryParams: queryParams
2280
+ });
2281
+ try {
2282
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2283
+ const sdkResponse = oci_common_2.composeResponse({
2284
+ responseObject: {},
2285
+ responseHeaders: [
2286
+ {
2287
+ value: response.headers.get("opc-request-id"),
2288
+ key: "opcRequestId",
2289
+ dataType: "string"
2290
+ },
2291
+ {
2292
+ value: response.headers.get("opc-work-request-id"),
2293
+ key: "opcWorkRequestId",
2294
+ dataType: "string"
2295
+ }
2296
+ ]
2297
+ });
2298
+ return sdkResponse;
2299
+ }
2300
+ catch (err) {
2301
+ throw err;
2302
+ }
2303
+ });
2304
+ }
1539
2305
  /**
1540
2306
  * Updates fields on an autoscale configuration, including the name, the threshold value, and whether the autoscale configuration is enabled.
1541
2307
  *
@@ -1543,7 +2309,7 @@ class BdsClient {
1543
2309
  * @param UpdateAutoScalingConfigurationRequest
1544
2310
  * @return UpdateAutoScalingConfigurationResponse
1545
2311
  * @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.
2312
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/UpdateAutoScalingConfiguration.ts.html |here} to see how to use UpdateAutoScalingConfiguration API.
1547
2313
  */
1548
2314
  updateAutoScalingConfiguration(updateAutoScalingConfigurationRequest) {
1549
2315
  return __awaiter(this, void 0, void 0, function* () {
@@ -1604,7 +2370,7 @@ class BdsClient {
1604
2370
  * @param UpdateBdsInstanceRequest
1605
2371
  * @return UpdateBdsInstanceResponse
1606
2372
  * @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.
2373
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/UpdateBdsInstance.ts.html |here} to see how to use UpdateBdsInstance API.
1608
2374
  */
1609
2375
  updateBdsInstance(updateBdsInstanceRequest) {
1610
2376
  return __awaiter(this, void 0, void 0, function* () {
@@ -1657,6 +2423,66 @@ class BdsClient {
1657
2423
  }
1658
2424
  });
1659
2425
  }
2426
+ /**
2427
+ * Update the BDS metastore configuration represented by the provided ID.
2428
+ * This operation does not retry by default if the user has not defined a retry configuration.
2429
+ * @param UpdateBdsMetastoreConfigurationRequest
2430
+ * @return UpdateBdsMetastoreConfigurationResponse
2431
+ * @throws OciError when an error occurs
2432
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/bds/UpdateBdsMetastoreConfiguration.ts.html |here} to see how to use UpdateBdsMetastoreConfiguration API.
2433
+ */
2434
+ updateBdsMetastoreConfiguration(updateBdsMetastoreConfigurationRequest) {
2435
+ return __awaiter(this, void 0, void 0, function* () {
2436
+ if (this.logger)
2437
+ this.logger.debug("Calling operation BdsClient#updateBdsMetastoreConfiguration.");
2438
+ const pathParams = {
2439
+ "{bdsInstanceId}": updateBdsMetastoreConfigurationRequest.bdsInstanceId,
2440
+ "{metastoreConfigId}": updateBdsMetastoreConfigurationRequest.metastoreConfigId
2441
+ };
2442
+ const queryParams = {};
2443
+ let headerParams = {
2444
+ "Content-Type": common.Constants.APPLICATION_JSON,
2445
+ "opc-request-id": updateBdsMetastoreConfigurationRequest.opcRequestId,
2446
+ "if-match": updateBdsMetastoreConfigurationRequest.ifMatch
2447
+ };
2448
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2449
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBdsMetastoreConfigurationRequest.retryConfiguration, specRetryConfiguration);
2450
+ if (this.logger)
2451
+ retrier.logger = this.logger;
2452
+ const request = yield oci_common_2.composeRequest({
2453
+ baseEndpoint: this._endpoint,
2454
+ defaultHeaders: this._defaultHeaders,
2455
+ path: "/bdsInstances/{bdsInstanceId}/metastoreConfigs/{metastoreConfigId}",
2456
+ method: "PUT",
2457
+ bodyContent: common.ObjectSerializer.serialize(updateBdsMetastoreConfigurationRequest.updateBdsMetastoreConfigurationDetails, "UpdateBdsMetastoreConfigurationDetails", model.UpdateBdsMetastoreConfigurationDetails.getJsonObj),
2458
+ pathParams: pathParams,
2459
+ headerParams: headerParams,
2460
+ queryParams: queryParams
2461
+ });
2462
+ try {
2463
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2464
+ const sdkResponse = oci_common_2.composeResponse({
2465
+ responseObject: {},
2466
+ responseHeaders: [
2467
+ {
2468
+ value: response.headers.get("opc-request-id"),
2469
+ key: "opcRequestId",
2470
+ dataType: "string"
2471
+ },
2472
+ {
2473
+ value: response.headers.get("opc-work-request-id"),
2474
+ key: "opcWorkRequestId",
2475
+ dataType: "string"
2476
+ }
2477
+ ]
2478
+ });
2479
+ return sdkResponse;
2480
+ }
2481
+ catch (err) {
2482
+ throw err;
2483
+ }
2484
+ });
2485
+ }
1660
2486
  }
1661
2487
  exports.BdsClient = BdsClient;
1662
2488
  BdsClient.serviceEndpointTemplate = "https://bigdataservice.{region}.oci.{secondLevelDomain}";