oci-bds 2.9.1 → 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.
- package/lib/bds-waiter.d.ts +8 -0
- package/lib/bds-waiter.js +12 -0
- package/lib/bds-waiter.js.map +1 -1
- package/lib/client.d.ts +125 -26
- package/lib/client.js +502 -26
- package/lib/client.js.map +1 -1
- package/lib/model/activate-bds-metastore-configuration-details.d.ts +30 -0
- package/lib/model/activate-bds-metastore-configuration-details.js +30 -0
- package/lib/model/activate-bds-metastore-configuration-details.js.map +1 -0
- package/lib/model/bds-metastore-configuration-summary.d.ts +54 -0
- package/lib/model/bds-metastore-configuration-summary.js +30 -0
- package/lib/model/bds-metastore-configuration-summary.js.map +1 -0
- package/lib/model/bds-metastore-configuration.d.ts +78 -0
- package/lib/model/bds-metastore-configuration.js +56 -0
- package/lib/model/bds-metastore-configuration.js.map +1 -0
- package/lib/model/create-bds-metastore-configuration-details.d.ts +42 -0
- package/lib/model/create-bds-metastore-configuration-details.js +30 -0
- package/lib/model/create-bds-metastore-configuration-details.js.map +1 -0
- package/lib/model/index.d.ts +12 -0
- package/lib/model/index.js +13 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/operation-types.d.ts +8 -0
- package/lib/model/operation-types.js +8 -0
- package/lib/model/operation-types.js.map +1 -1
- package/lib/model/test-bds-metastore-configuration-details.d.ts +26 -0
- package/lib/model/test-bds-metastore-configuration-details.js +30 -0
- package/lib/model/test-bds-metastore-configuration-details.js.map +1 -0
- package/lib/model/update-bds-metastore-configuration-details.d.ts +38 -0
- package/lib/model/update-bds-metastore-configuration-details.js +30 -0
- package/lib/model/update-bds-metastore-configuration-details.js.map +1 -0
- package/lib/request/activate-bds-metastore-configuration-request.d.ts +53 -0
- package/lib/request/activate-bds-metastore-configuration-request.js +15 -0
- package/lib/request/activate-bds-metastore-configuration-request.js.map +1 -0
- package/lib/request/add-auto-scaling-configuration-request.d.ts +1 -1
- package/lib/request/add-block-storage-request.d.ts +1 -1
- package/lib/request/add-cloud-sql-request.d.ts +1 -1
- package/lib/request/add-worker-nodes-request.d.ts +1 -1
- package/lib/request/change-bds-instance-compartment-request.d.ts +1 -1
- package/lib/request/change-shape-request.d.ts +1 -1
- package/lib/request/create-bds-api-key-request.d.ts +1 -1
- package/lib/request/create-bds-instance-request.d.ts +1 -1
- package/lib/request/create-bds-metastore-configuration-request.d.ts +40 -0
- package/lib/request/create-bds-metastore-configuration-request.js +15 -0
- package/lib/request/create-bds-metastore-configuration-request.js.map +1 -0
- package/lib/request/delete-bds-api-key-request.d.ts +1 -1
- package/lib/request/delete-bds-instance-request.d.ts +1 -1
- package/lib/request/delete-bds-metastore-configuration-request.d.ts +39 -0
- package/lib/request/delete-bds-metastore-configuration-request.js +15 -0
- package/lib/request/delete-bds-metastore-configuration-request.js.map +1 -0
- package/lib/request/get-auto-scaling-configuration-request.d.ts +1 -1
- package/lib/request/get-bds-api-key-request.d.ts +1 -1
- package/lib/request/get-bds-instance-request.d.ts +1 -1
- package/lib/request/get-bds-metastore-configuration-request.d.ts +30 -0
- package/lib/request/get-bds-metastore-configuration-request.js +15 -0
- package/lib/request/get-bds-metastore-configuration-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +14 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-auto-scaling-configurations-request.d.ts +1 -1
- package/lib/request/list-bds-api-keys-request.d.ts +1 -1
- package/lib/request/list-bds-instances-request.d.ts +1 -1
- package/lib/request/list-bds-metastore-configurations-request.d.ts +70 -0
- package/lib/request/list-bds-metastore-configurations-request.js +24 -0
- package/lib/request/list-bds-metastore-configurations-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/remove-auto-scaling-configuration-request.d.ts +1 -1
- package/lib/request/remove-cloud-sql-request.d.ts +1 -1
- package/lib/request/restart-node-request.d.ts +1 -1
- package/lib/request/test-bds-metastore-configuration-request.d.ts +44 -0
- package/lib/request/test-bds-metastore-configuration-request.js +15 -0
- package/lib/request/test-bds-metastore-configuration-request.js.map +1 -0
- package/lib/request/test-bds-object-storage-connection-request.d.ts +1 -1
- package/lib/request/update-auto-scaling-configuration-request.d.ts +1 -1
- package/lib/request/update-bds-instance-request.d.ts +1 -1
- package/lib/request/update-bds-metastore-configuration-request.d.ts +44 -0
- package/lib/request/update-bds-metastore-configuration-request.js +15 -0
- package/lib/request/update-bds-metastore-configuration-request.js.map +1 -0
- package/lib/response/activate-bds-metastore-configuration-response.d.ts +25 -0
- package/lib/response/activate-bds-metastore-configuration-response.js +15 -0
- package/lib/response/activate-bds-metastore-configuration-response.js.map +1 -0
- package/lib/response/create-bds-metastore-configuration-response.d.ts +25 -0
- package/lib/response/create-bds-metastore-configuration-response.js +15 -0
- package/lib/response/create-bds-metastore-configuration-response.js.map +1 -0
- package/lib/response/delete-bds-metastore-configuration-response.d.ts +25 -0
- package/lib/response/delete-bds-metastore-configuration-response.js +15 -0
- package/lib/response/delete-bds-metastore-configuration-response.js.map +1 -0
- package/lib/response/get-bds-metastore-configuration-response.d.ts +30 -0
- package/lib/response/get-bds-metastore-configuration-response.js +15 -0
- package/lib/response/get-bds-metastore-configuration-response.js.map +1 -0
- package/lib/response/index.d.ts +14 -0
- package/lib/response/list-bds-metastore-configurations-response.d.ts +32 -0
- package/lib/response/list-bds-metastore-configurations-response.js +15 -0
- package/lib/response/list-bds-metastore-configurations-response.js.map +1 -0
- package/lib/response/test-bds-metastore-configuration-response.d.ts +25 -0
- package/lib/response/test-bds-metastore-configuration-response.js +15 -0
- package/lib/response/test-bds-metastore-configuration-response.js.map +1 -0
- package/lib/response/update-bds-metastore-configuration-response.d.ts +25 -0
- package/lib/response/update-bds-metastore-configuration-response.js +15 -0
- package/lib/response/update-bds-metastore-configuration-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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* () {
|
|
@@ -519,7 +581,7 @@ class BdsClient {
|
|
|
519
581
|
* @param CreateBdsApiKeyRequest
|
|
520
582
|
* @return CreateBdsApiKeyResponse
|
|
521
583
|
* @throws OciError when an error occurs
|
|
522
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
523
585
|
*/
|
|
524
586
|
createBdsApiKey(createBdsApiKeyRequest) {
|
|
525
587
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -579,7 +641,7 @@ class BdsClient {
|
|
|
579
641
|
* @param CreateBdsInstanceRequest
|
|
580
642
|
* @return CreateBdsInstanceResponse
|
|
581
643
|
* @throws OciError when an error occurs
|
|
582
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
583
645
|
*/
|
|
584
646
|
createBdsInstance(createBdsInstanceRequest) {
|
|
585
647
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -630,13 +692,73 @@ class BdsClient {
|
|
|
630
692
|
}
|
|
631
693
|
});
|
|
632
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
|
+
}
|
|
633
755
|
/**
|
|
634
756
|
* Deletes the user's API key represented by the provided ID.
|
|
635
757
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
636
758
|
* @param DeleteBdsApiKeyRequest
|
|
637
759
|
* @return DeleteBdsApiKeyResponse
|
|
638
760
|
* @throws OciError when an error occurs
|
|
639
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
640
762
|
*/
|
|
641
763
|
deleteBdsApiKey(deleteBdsApiKeyRequest) {
|
|
642
764
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -695,7 +817,7 @@ class BdsClient {
|
|
|
695
817
|
* @param DeleteBdsInstanceRequest
|
|
696
818
|
* @return DeleteBdsInstanceResponse
|
|
697
819
|
* @throws OciError when an error occurs
|
|
698
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
699
821
|
*/
|
|
700
822
|
deleteBdsInstance(deleteBdsInstanceRequest) {
|
|
701
823
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -747,6 +869,65 @@ class BdsClient {
|
|
|
747
869
|
}
|
|
748
870
|
});
|
|
749
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
|
+
}
|
|
750
931
|
/**
|
|
751
932
|
* Returns details of the autoscale configuration identified by the given ID.
|
|
752
933
|
*
|
|
@@ -754,7 +935,7 @@ class BdsClient {
|
|
|
754
935
|
* @param GetAutoScalingConfigurationRequest
|
|
755
936
|
* @return GetAutoScalingConfigurationResponse
|
|
756
937
|
* @throws OciError when an error occurs
|
|
757
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
758
939
|
*/
|
|
759
940
|
getAutoScalingConfiguration(getAutoScalingConfigurationRequest) {
|
|
760
941
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -816,7 +997,7 @@ class BdsClient {
|
|
|
816
997
|
* @param GetBdsApiKeyRequest
|
|
817
998
|
* @return GetBdsApiKeyResponse
|
|
818
999
|
* @throws OciError when an error occurs
|
|
819
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
820
1001
|
*/
|
|
821
1002
|
getBdsApiKey(getBdsApiKeyRequest) {
|
|
822
1003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -878,7 +1059,7 @@ class BdsClient {
|
|
|
878
1059
|
* @param GetBdsInstanceRequest
|
|
879
1060
|
* @return GetBdsInstanceResponse
|
|
880
1061
|
* @throws OciError when an error occurs
|
|
881
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
882
1063
|
*/
|
|
883
1064
|
getBdsInstance(getBdsInstanceRequest) {
|
|
884
1065
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -933,13 +1114,75 @@ class BdsClient {
|
|
|
933
1114
|
}
|
|
934
1115
|
});
|
|
935
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
|
+
}
|
|
936
1179
|
/**
|
|
937
1180
|
* Returns the status of the work request identified by the given ID.
|
|
938
1181
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
939
1182
|
* @param GetWorkRequestRequest
|
|
940
1183
|
* @return GetWorkRequestResponse
|
|
941
1184
|
* @throws OciError when an error occurs
|
|
942
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
943
1186
|
*/
|
|
944
1187
|
getWorkRequest(getWorkRequestRequest) {
|
|
945
1188
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1001,7 +1244,7 @@ class BdsClient {
|
|
|
1001
1244
|
* @param ListAutoScalingConfigurationsRequest
|
|
1002
1245
|
* @return ListAutoScalingConfigurationsResponse
|
|
1003
1246
|
* @throws OciError when an error occurs
|
|
1004
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1005
1248
|
*/
|
|
1006
1249
|
listAutoScalingConfigurations(listAutoScalingConfigurationsRequest) {
|
|
1007
1250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1111,7 +1354,7 @@ class BdsClient {
|
|
|
1111
1354
|
* @param ListBdsApiKeysRequest
|
|
1112
1355
|
* @return ListBdsApiKeysResponse
|
|
1113
1356
|
* @throws OciError when an error occurs
|
|
1114
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1115
1358
|
*/
|
|
1116
1359
|
listBdsApiKeys(listBdsApiKeysRequest) {
|
|
1117
1360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1221,7 +1464,7 @@ class BdsClient {
|
|
|
1221
1464
|
* @param ListBdsInstancesRequest
|
|
1222
1465
|
* @return ListBdsInstancesResponse
|
|
1223
1466
|
* @throws OciError when an error occurs
|
|
1224
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1225
1468
|
*/
|
|
1226
1469
|
listBdsInstances(listBdsInstancesRequest) {
|
|
1227
1470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1322,6 +1565,118 @@ class BdsClient {
|
|
|
1322
1565
|
listBdsInstancesResponseIterator(request) {
|
|
1323
1566
|
return oci_common_1.paginateResponses(request, req => this.listBdsInstances(req));
|
|
1324
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
|
+
}
|
|
1325
1680
|
/**
|
|
1326
1681
|
* Returns a paginated list of errors for a work request identified by the given ID.
|
|
1327
1682
|
*
|
|
@@ -1329,7 +1684,7 @@ class BdsClient {
|
|
|
1329
1684
|
* @param ListWorkRequestErrorsRequest
|
|
1330
1685
|
* @return ListWorkRequestErrorsResponse
|
|
1331
1686
|
* @throws OciError when an error occurs
|
|
1332
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1333
1688
|
*/
|
|
1334
1689
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1335
1690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1436,7 +1791,7 @@ class BdsClient {
|
|
|
1436
1791
|
* @param ListWorkRequestLogsRequest
|
|
1437
1792
|
* @return ListWorkRequestLogsResponse
|
|
1438
1793
|
* @throws OciError when an error occurs
|
|
1439
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1440
1795
|
*/
|
|
1441
1796
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1442
1797
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1543,7 +1898,7 @@ class BdsClient {
|
|
|
1543
1898
|
* @param ListWorkRequestsRequest
|
|
1544
1899
|
* @return ListWorkRequestsResponse
|
|
1545
1900
|
* @throws OciError when an error occurs
|
|
1546
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1547
1902
|
*/
|
|
1548
1903
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1549
1904
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1650,7 +2005,7 @@ class BdsClient {
|
|
|
1650
2005
|
* @param RemoveAutoScalingConfigurationRequest
|
|
1651
2006
|
* @return RemoveAutoScalingConfigurationResponse
|
|
1652
2007
|
* @throws OciError when an error occurs
|
|
1653
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1654
2009
|
*/
|
|
1655
2010
|
removeAutoScalingConfiguration(removeAutoScalingConfigurationRequest) {
|
|
1656
2011
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1712,7 +2067,7 @@ class BdsClient {
|
|
|
1712
2067
|
* @param RemoveCloudSqlRequest
|
|
1713
2068
|
* @return RemoveCloudSqlResponse
|
|
1714
2069
|
* @throws OciError when an error occurs
|
|
1715
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1716
2071
|
*/
|
|
1717
2072
|
removeCloudSql(removeCloudSqlRequest) {
|
|
1718
2073
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1773,7 +2128,7 @@ class BdsClient {
|
|
|
1773
2128
|
* @param RestartNodeRequest
|
|
1774
2129
|
* @return RestartNodeResponse
|
|
1775
2130
|
* @throws OciError when an error occurs
|
|
1776
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1777
2132
|
*/
|
|
1778
2133
|
restartNode(restartNodeRequest) {
|
|
1779
2134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1827,13 +2182,74 @@ class BdsClient {
|
|
|
1827
2182
|
}
|
|
1828
2183
|
});
|
|
1829
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
|
+
}
|
|
1830
2246
|
/**
|
|
1831
2247
|
* Test access to specified Object Storage bucket using the API key.
|
|
1832
2248
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1833
2249
|
* @param TestBdsObjectStorageConnectionRequest
|
|
1834
2250
|
* @return TestBdsObjectStorageConnectionResponse
|
|
1835
2251
|
* @throws OciError when an error occurs
|
|
1836
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1837
2253
|
*/
|
|
1838
2254
|
testBdsObjectStorageConnection(testBdsObjectStorageConnectionRequest) {
|
|
1839
2255
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1893,7 +2309,7 @@ class BdsClient {
|
|
|
1893
2309
|
* @param UpdateAutoScalingConfigurationRequest
|
|
1894
2310
|
* @return UpdateAutoScalingConfigurationResponse
|
|
1895
2311
|
* @throws OciError when an error occurs
|
|
1896
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1897
2313
|
*/
|
|
1898
2314
|
updateAutoScalingConfiguration(updateAutoScalingConfigurationRequest) {
|
|
1899
2315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1954,7 +2370,7 @@ class BdsClient {
|
|
|
1954
2370
|
* @param UpdateBdsInstanceRequest
|
|
1955
2371
|
* @return UpdateBdsInstanceResponse
|
|
1956
2372
|
* @throws OciError when an error occurs
|
|
1957
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
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.
|
|
1958
2374
|
*/
|
|
1959
2375
|
updateBdsInstance(updateBdsInstanceRequest) {
|
|
1960
2376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2007,6 +2423,66 @@ class BdsClient {
|
|
|
2007
2423
|
}
|
|
2008
2424
|
});
|
|
2009
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
|
+
}
|
|
2010
2486
|
}
|
|
2011
2487
|
exports.BdsClient = BdsClient;
|
|
2012
2488
|
BdsClient.serviceEndpointTemplate = "https://bigdataservice.{region}.oci.{secondLevelDomain}";
|