oci-bds 2.5.2 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +124 -21
- package/lib/client.js +444 -42
- package/lib/client.js.map +1 -1
- package/lib/model/bds-api-key-summary.d.ts +46 -0
- package/lib/model/bds-api-key-summary.js +30 -0
- package/lib/model/bds-api-key-summary.js.map +1 -0
- package/lib/model/bds-api-key.d.ts +74 -0
- package/lib/model/bds-api-key.js +43 -0
- package/lib/model/bds-api-key.js.map +1 -0
- package/lib/model/create-bds-api-key-details.d.ts +42 -0
- package/lib/model/create-bds-api-key-details.js +30 -0
- package/lib/model/create-bds-api-key-details.js.map +1 -0
- package/lib/model/index.d.ts +8 -0
- package/lib/model/index.js +9 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/test-bds-object-storage-connection-details.d.ts +34 -0
- package/lib/model/test-bds-object-storage-connection-details.js +30 -0
- package/lib/model/test-bds-object-storage-connection-details.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 +40 -0
- package/lib/request/create-bds-api-key-request.js +15 -0
- package/lib/request/create-bds-api-key-request.js.map +1 -0
- package/lib/request/create-bds-instance-request.d.ts +1 -1
- package/lib/request/delete-bds-api-key-request.d.ts +39 -0
- package/lib/request/delete-bds-api-key-request.js +15 -0
- package/lib/request/delete-bds-api-key-request.js.map +1 -0
- package/lib/request/delete-bds-instance-request.d.ts +1 -1
- package/lib/request/get-auto-scaling-configuration-request.d.ts +1 -1
- package/lib/request/get-bds-api-key-request.d.ts +30 -0
- package/lib/request/get-bds-api-key-request.js +15 -0
- package/lib/request/get-bds-api-key-request.js.map +1 -0
- package/lib/request/get-bds-instance-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +10 -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 +62 -0
- package/lib/request/list-bds-api-keys-request.js +24 -0
- package/lib/request/list-bds-api-keys-request.js.map +1 -0
- package/lib/request/list-bds-instances-request.d.ts +1 -1
- 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-object-storage-connection-request.d.ts +35 -0
- package/lib/request/test-bds-object-storage-connection-request.js +15 -0
- package/lib/request/test-bds-object-storage-connection-request.js.map +1 -0
- 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/response/create-bds-api-key-response.d.ts +25 -0
- package/lib/response/create-bds-api-key-response.js +15 -0
- package/lib/response/create-bds-api-key-response.js.map +1 -0
- package/lib/response/delete-bds-api-key-response.d.ts +25 -0
- package/lib/response/delete-bds-api-key-response.js +15 -0
- package/lib/response/delete-bds-api-key-response.js.map +1 -0
- package/lib/response/get-bds-api-key-response.d.ts +30 -0
- package/lib/response/get-bds-api-key-response.js +15 -0
- package/lib/response/get-bds-api-key-response.js.map +1 -0
- package/lib/response/index.d.ts +10 -0
- package/lib/response/list-bds-api-keys-response.d.ts +32 -0
- package/lib/response/list-bds-api-keys-response.js +15 -0
- package/lib/response/list-bds-api-keys-response.js.map +1 -0
- package/lib/response/test-bds-object-storage-connection-response.d.ts +25 -0
- package/lib/response/test-bds-object-storage-connection-response.js +15 -0
- package/lib/response/test-bds-object-storage-connection-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -53,6 +53,9 @@ const oci_common_2 = require("oci-common");
|
|
|
53
53
|
var BdsApiKeys;
|
|
54
54
|
(function (BdsApiKeys) {
|
|
55
55
|
})(BdsApiKeys = exports.BdsApiKeys || (exports.BdsApiKeys = {}));
|
|
56
|
+
/**
|
|
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
|
+
*/
|
|
56
59
|
class BdsClient {
|
|
57
60
|
constructor(params, clientConfiguration) {
|
|
58
61
|
this["_endpoint"] = "";
|
|
@@ -67,6 +70,13 @@ class BdsClient {
|
|
|
67
70
|
? clientConfiguration.circuitBreaker.circuit
|
|
68
71
|
: null;
|
|
69
72
|
}
|
|
73
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
74
|
+
const specCircuitBreakerEnabled = true;
|
|
75
|
+
if (!this._circuitBreaker &&
|
|
76
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
77
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
78
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
79
|
+
}
|
|
70
80
|
this._httpClient =
|
|
71
81
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
72
82
|
if (params.authenticationDetailsProvider &&
|
|
@@ -139,10 +149,11 @@ class BdsClient {
|
|
|
139
149
|
/**
|
|
140
150
|
* Add an autoscale configuration to the cluster.
|
|
141
151
|
*
|
|
152
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
142
153
|
* @param AddAutoScalingConfigurationRequest
|
|
143
154
|
* @return AddAutoScalingConfigurationResponse
|
|
144
155
|
* @throws OciError when an error occurs
|
|
145
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
156
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/AddAutoScalingConfiguration.ts.html |here} to see how to use AddAutoScalingConfiguration API.
|
|
146
157
|
*/
|
|
147
158
|
addAutoScalingConfiguration(addAutoScalingConfigurationRequest) {
|
|
148
159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -158,7 +169,8 @@ class BdsClient {
|
|
|
158
169
|
"if-match": addAutoScalingConfigurationRequest.ifMatch,
|
|
159
170
|
"opc-retry-token": addAutoScalingConfigurationRequest.opcRetryToken
|
|
160
171
|
};
|
|
161
|
-
const
|
|
172
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
173
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addAutoScalingConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
162
174
|
if (this.logger)
|
|
163
175
|
retrier.logger = this.logger;
|
|
164
176
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -198,10 +210,11 @@ class BdsClient {
|
|
|
198
210
|
/**
|
|
199
211
|
* Adds block storage to existing worker nodes. The same amount of storage will be added to all worker nodes. No change will be made to storage that is already attached. Block storage cannot be removed.
|
|
200
212
|
*
|
|
213
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
201
214
|
* @param AddBlockStorageRequest
|
|
202
215
|
* @return AddBlockStorageResponse
|
|
203
216
|
* @throws OciError when an error occurs
|
|
204
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
217
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/AddBlockStorage.ts.html |here} to see how to use AddBlockStorage API.
|
|
205
218
|
*/
|
|
206
219
|
addBlockStorage(addBlockStorageRequest) {
|
|
207
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -217,7 +230,8 @@ class BdsClient {
|
|
|
217
230
|
"if-match": addBlockStorageRequest.ifMatch,
|
|
218
231
|
"opc-retry-token": addBlockStorageRequest.opcRetryToken
|
|
219
232
|
};
|
|
220
|
-
const
|
|
233
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
234
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addBlockStorageRequest.retryConfiguration, specRetryConfiguration);
|
|
221
235
|
if (this.logger)
|
|
222
236
|
retrier.logger = this.logger;
|
|
223
237
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -257,10 +271,11 @@ class BdsClient {
|
|
|
257
271
|
/**
|
|
258
272
|
* Adds Cloud SQL to your cluster. You can use Cloud SQL to query against non-relational data stored in multiple big data sources, including Apache Hive, HDFS, Oracle NoSQL Database, and Apache HBase. Adding Cloud SQL adds a query server node to the cluster and creates cell servers on all the worker nodes in the cluster.
|
|
259
273
|
*
|
|
274
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
260
275
|
* @param AddCloudSqlRequest
|
|
261
276
|
* @return AddCloudSqlResponse
|
|
262
277
|
* @throws OciError when an error occurs
|
|
263
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
278
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/AddCloudSql.ts.html |here} to see how to use AddCloudSql API.
|
|
264
279
|
*/
|
|
265
280
|
addCloudSql(addCloudSqlRequest) {
|
|
266
281
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -276,7 +291,8 @@ class BdsClient {
|
|
|
276
291
|
"if-match": addCloudSqlRequest.ifMatch,
|
|
277
292
|
"opc-retry-token": addCloudSqlRequest.opcRetryToken
|
|
278
293
|
};
|
|
279
|
-
const
|
|
294
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
295
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addCloudSqlRequest.retryConfiguration, specRetryConfiguration);
|
|
280
296
|
if (this.logger)
|
|
281
297
|
retrier.logger = this.logger;
|
|
282
298
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -316,10 +332,11 @@ class BdsClient {
|
|
|
316
332
|
/**
|
|
317
333
|
* Increases the size (scales out) a cluster by adding worker nodes. The added worker nodes will have the same shape and will have the same amount of attached block storage as other worker nodes in the cluster.
|
|
318
334
|
*
|
|
335
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
319
336
|
* @param AddWorkerNodesRequest
|
|
320
337
|
* @return AddWorkerNodesResponse
|
|
321
338
|
* @throws OciError when an error occurs
|
|
322
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
339
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/AddWorkerNodes.ts.html |here} to see how to use AddWorkerNodes API.
|
|
323
340
|
*/
|
|
324
341
|
addWorkerNodes(addWorkerNodesRequest) {
|
|
325
342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -335,7 +352,8 @@ class BdsClient {
|
|
|
335
352
|
"if-match": addWorkerNodesRequest.ifMatch,
|
|
336
353
|
"opc-retry-token": addWorkerNodesRequest.opcRetryToken
|
|
337
354
|
};
|
|
338
|
-
const
|
|
355
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
356
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addWorkerNodesRequest.retryConfiguration, specRetryConfiguration);
|
|
339
357
|
if (this.logger)
|
|
340
358
|
retrier.logger = this.logger;
|
|
341
359
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -375,10 +393,11 @@ class BdsClient {
|
|
|
375
393
|
/**
|
|
376
394
|
* Moves a Big Data Service cluster into a different compartment.
|
|
377
395
|
*
|
|
396
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
378
397
|
* @param ChangeBdsInstanceCompartmentRequest
|
|
379
398
|
* @return ChangeBdsInstanceCompartmentResponse
|
|
380
399
|
* @throws OciError when an error occurs
|
|
381
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
400
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ChangeBdsInstanceCompartment.ts.html |here} to see how to use ChangeBdsInstanceCompartment API.
|
|
382
401
|
*/
|
|
383
402
|
changeBdsInstanceCompartment(changeBdsInstanceCompartmentRequest) {
|
|
384
403
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -394,7 +413,8 @@ class BdsClient {
|
|
|
394
413
|
"if-match": changeBdsInstanceCompartmentRequest.ifMatch,
|
|
395
414
|
"opc-retry-token": changeBdsInstanceCompartmentRequest.opcRetryToken
|
|
396
415
|
};
|
|
397
|
-
const
|
|
416
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
417
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeBdsInstanceCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
398
418
|
if (this.logger)
|
|
399
419
|
retrier.logger = this.logger;
|
|
400
420
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -434,10 +454,11 @@ class BdsClient {
|
|
|
434
454
|
/**
|
|
435
455
|
* Changes the size of a cluster by scaling up or scaling down the nodes. Nodes are scaled up or down by changing the shapes of all the nodes of the same type to the next larger or smaller shape. The node types are master, utility, worker, and Cloud SQL. Only nodes with VM-STANDARD shapes can be scaled.
|
|
436
456
|
*
|
|
457
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
437
458
|
* @param ChangeShapeRequest
|
|
438
459
|
* @return ChangeShapeResponse
|
|
439
460
|
* @throws OciError when an error occurs
|
|
440
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
461
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ChangeShape.ts.html |here} to see how to use ChangeShape API.
|
|
441
462
|
*/
|
|
442
463
|
changeShape(changeShapeRequest) {
|
|
443
464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -453,7 +474,8 @@ class BdsClient {
|
|
|
453
474
|
"if-match": changeShapeRequest.ifMatch,
|
|
454
475
|
"opc-retry-token": changeShapeRequest.opcRetryToken
|
|
455
476
|
};
|
|
456
|
-
const
|
|
477
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
478
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeShapeRequest.retryConfiguration, specRetryConfiguration);
|
|
457
479
|
if (this.logger)
|
|
458
480
|
retrier.logger = this.logger;
|
|
459
481
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -490,13 +512,74 @@ class BdsClient {
|
|
|
490
512
|
}
|
|
491
513
|
});
|
|
492
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
* Create an API key on behalf of the specified user.
|
|
517
|
+
*
|
|
518
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
519
|
+
* @param CreateBdsApiKeyRequest
|
|
520
|
+
* @return CreateBdsApiKeyResponse
|
|
521
|
+
* @throws OciError when an error occurs
|
|
522
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/CreateBdsApiKey.ts.html |here} to see how to use CreateBdsApiKey API.
|
|
523
|
+
*/
|
|
524
|
+
createBdsApiKey(createBdsApiKeyRequest) {
|
|
525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
526
|
+
if (this.logger)
|
|
527
|
+
this.logger.debug("Calling operation BdsClient#createBdsApiKey.");
|
|
528
|
+
const pathParams = {
|
|
529
|
+
"{bdsInstanceId}": createBdsApiKeyRequest.bdsInstanceId
|
|
530
|
+
};
|
|
531
|
+
const queryParams = {};
|
|
532
|
+
let headerParams = {
|
|
533
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
534
|
+
"opc-retry-token": createBdsApiKeyRequest.opcRetryToken,
|
|
535
|
+
"opc-request-id": createBdsApiKeyRequest.opcRequestId
|
|
536
|
+
};
|
|
537
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
538
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
539
|
+
if (this.logger)
|
|
540
|
+
retrier.logger = this.logger;
|
|
541
|
+
const request = yield oci_common_2.composeRequest({
|
|
542
|
+
baseEndpoint: this._endpoint,
|
|
543
|
+
defaultHeaders: this._defaultHeaders,
|
|
544
|
+
path: "/bdsInstances/{bdsInstanceId}/apiKeys",
|
|
545
|
+
method: "POST",
|
|
546
|
+
bodyContent: common.ObjectSerializer.serialize(createBdsApiKeyRequest.createBdsApiKeyDetails, "CreateBdsApiKeyDetails", model.CreateBdsApiKeyDetails.getJsonObj),
|
|
547
|
+
pathParams: pathParams,
|
|
548
|
+
headerParams: headerParams,
|
|
549
|
+
queryParams: queryParams
|
|
550
|
+
});
|
|
551
|
+
try {
|
|
552
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
553
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
554
|
+
responseObject: {},
|
|
555
|
+
responseHeaders: [
|
|
556
|
+
{
|
|
557
|
+
value: response.headers.get("opc-request-id"),
|
|
558
|
+
key: "opcRequestId",
|
|
559
|
+
dataType: "string"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
value: response.headers.get("opc-work-request-id"),
|
|
563
|
+
key: "opcWorkRequestId",
|
|
564
|
+
dataType: "string"
|
|
565
|
+
}
|
|
566
|
+
]
|
|
567
|
+
});
|
|
568
|
+
return sdkResponse;
|
|
569
|
+
}
|
|
570
|
+
catch (err) {
|
|
571
|
+
throw err;
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
}
|
|
493
575
|
/**
|
|
494
576
|
* Creates a Big Data Service cluster.
|
|
495
577
|
*
|
|
578
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
496
579
|
* @param CreateBdsInstanceRequest
|
|
497
580
|
* @return CreateBdsInstanceResponse
|
|
498
581
|
* @throws OciError when an error occurs
|
|
499
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
582
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/CreateBdsInstance.ts.html |here} to see how to use CreateBdsInstance API.
|
|
500
583
|
*/
|
|
501
584
|
createBdsInstance(createBdsInstanceRequest) {
|
|
502
585
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -509,7 +592,8 @@ class BdsClient {
|
|
|
509
592
|
"opc-request-id": createBdsInstanceRequest.opcRequestId,
|
|
510
593
|
"opc-retry-token": createBdsInstanceRequest.opcRetryToken
|
|
511
594
|
};
|
|
512
|
-
const
|
|
595
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
596
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBdsInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
513
597
|
if (this.logger)
|
|
514
598
|
retrier.logger = this.logger;
|
|
515
599
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -546,12 +630,72 @@ class BdsClient {
|
|
|
546
630
|
}
|
|
547
631
|
});
|
|
548
632
|
}
|
|
633
|
+
/**
|
|
634
|
+
* Deletes the user's API key represented by the provided ID.
|
|
635
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
636
|
+
* @param DeleteBdsApiKeyRequest
|
|
637
|
+
* @return DeleteBdsApiKeyResponse
|
|
638
|
+
* @throws OciError when an error occurs
|
|
639
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/DeleteBdsApiKey.ts.html |here} to see how to use DeleteBdsApiKey API.
|
|
640
|
+
*/
|
|
641
|
+
deleteBdsApiKey(deleteBdsApiKeyRequest) {
|
|
642
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
643
|
+
if (this.logger)
|
|
644
|
+
this.logger.debug("Calling operation BdsClient#deleteBdsApiKey.");
|
|
645
|
+
const pathParams = {
|
|
646
|
+
"{bdsInstanceId}": deleteBdsApiKeyRequest.bdsInstanceId,
|
|
647
|
+
"{apiKeyId}": deleteBdsApiKeyRequest.apiKeyId
|
|
648
|
+
};
|
|
649
|
+
const queryParams = {};
|
|
650
|
+
let headerParams = {
|
|
651
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
652
|
+
"opc-request-id": deleteBdsApiKeyRequest.opcRequestId,
|
|
653
|
+
"if-match": deleteBdsApiKeyRequest.ifMatch
|
|
654
|
+
};
|
|
655
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
656
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
657
|
+
if (this.logger)
|
|
658
|
+
retrier.logger = this.logger;
|
|
659
|
+
const request = yield oci_common_2.composeRequest({
|
|
660
|
+
baseEndpoint: this._endpoint,
|
|
661
|
+
defaultHeaders: this._defaultHeaders,
|
|
662
|
+
path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}",
|
|
663
|
+
method: "DELETE",
|
|
664
|
+
pathParams: pathParams,
|
|
665
|
+
headerParams: headerParams,
|
|
666
|
+
queryParams: queryParams
|
|
667
|
+
});
|
|
668
|
+
try {
|
|
669
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
670
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
671
|
+
responseObject: {},
|
|
672
|
+
responseHeaders: [
|
|
673
|
+
{
|
|
674
|
+
value: response.headers.get("opc-request-id"),
|
|
675
|
+
key: "opcRequestId",
|
|
676
|
+
dataType: "string"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
value: response.headers.get("opc-work-request-id"),
|
|
680
|
+
key: "opcWorkRequestId",
|
|
681
|
+
dataType: "string"
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
});
|
|
685
|
+
return sdkResponse;
|
|
686
|
+
}
|
|
687
|
+
catch (err) {
|
|
688
|
+
throw err;
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
}
|
|
549
692
|
/**
|
|
550
693
|
* Deletes the cluster identified by the given ID.
|
|
694
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
551
695
|
* @param DeleteBdsInstanceRequest
|
|
552
696
|
* @return DeleteBdsInstanceResponse
|
|
553
697
|
* @throws OciError when an error occurs
|
|
554
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
698
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/DeleteBdsInstance.ts.html |here} to see how to use DeleteBdsInstance API.
|
|
555
699
|
*/
|
|
556
700
|
deleteBdsInstance(deleteBdsInstanceRequest) {
|
|
557
701
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -566,7 +710,8 @@ class BdsClient {
|
|
|
566
710
|
"opc-request-id": deleteBdsInstanceRequest.opcRequestId,
|
|
567
711
|
"if-match": deleteBdsInstanceRequest.ifMatch
|
|
568
712
|
};
|
|
569
|
-
const
|
|
713
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
714
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBdsInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
570
715
|
if (this.logger)
|
|
571
716
|
retrier.logger = this.logger;
|
|
572
717
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -605,10 +750,11 @@ class BdsClient {
|
|
|
605
750
|
/**
|
|
606
751
|
* Returns details of the autoscale configuration identified by the given ID.
|
|
607
752
|
*
|
|
753
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
608
754
|
* @param GetAutoScalingConfigurationRequest
|
|
609
755
|
* @return GetAutoScalingConfigurationResponse
|
|
610
756
|
* @throws OciError when an error occurs
|
|
611
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
757
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/GetAutoScalingConfiguration.ts.html |here} to see how to use GetAutoScalingConfiguration API.
|
|
612
758
|
*/
|
|
613
759
|
getAutoScalingConfiguration(getAutoScalingConfigurationRequest) {
|
|
614
760
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -623,7 +769,8 @@ class BdsClient {
|
|
|
623
769
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
624
770
|
"opc-request-id": getAutoScalingConfigurationRequest.opcRequestId
|
|
625
771
|
};
|
|
626
|
-
const
|
|
772
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
773
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAutoScalingConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
627
774
|
if (this.logger)
|
|
628
775
|
retrier.logger = this.logger;
|
|
629
776
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -663,12 +810,75 @@ class BdsClient {
|
|
|
663
810
|
}
|
|
664
811
|
});
|
|
665
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
* Returns the user's API key information for the given ID.
|
|
815
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
816
|
+
* @param GetBdsApiKeyRequest
|
|
817
|
+
* @return GetBdsApiKeyResponse
|
|
818
|
+
* @throws OciError when an error occurs
|
|
819
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/GetBdsApiKey.ts.html |here} to see how to use GetBdsApiKey API.
|
|
820
|
+
*/
|
|
821
|
+
getBdsApiKey(getBdsApiKeyRequest) {
|
|
822
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
823
|
+
if (this.logger)
|
|
824
|
+
this.logger.debug("Calling operation BdsClient#getBdsApiKey.");
|
|
825
|
+
const pathParams = {
|
|
826
|
+
"{bdsInstanceId}": getBdsApiKeyRequest.bdsInstanceId,
|
|
827
|
+
"{apiKeyId}": getBdsApiKeyRequest.apiKeyId
|
|
828
|
+
};
|
|
829
|
+
const queryParams = {};
|
|
830
|
+
let headerParams = {
|
|
831
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
832
|
+
"opc-request-id": getBdsApiKeyRequest.opcRequestId
|
|
833
|
+
};
|
|
834
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
835
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
836
|
+
if (this.logger)
|
|
837
|
+
retrier.logger = this.logger;
|
|
838
|
+
const request = yield oci_common_2.composeRequest({
|
|
839
|
+
baseEndpoint: this._endpoint,
|
|
840
|
+
defaultHeaders: this._defaultHeaders,
|
|
841
|
+
path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}",
|
|
842
|
+
method: "GET",
|
|
843
|
+
pathParams: pathParams,
|
|
844
|
+
headerParams: headerParams,
|
|
845
|
+
queryParams: queryParams
|
|
846
|
+
});
|
|
847
|
+
try {
|
|
848
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
849
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
850
|
+
responseObject: {},
|
|
851
|
+
body: yield response.json(),
|
|
852
|
+
bodyKey: "bdsApiKey",
|
|
853
|
+
bodyModel: model.BdsApiKey,
|
|
854
|
+
type: "model.BdsApiKey",
|
|
855
|
+
responseHeaders: [
|
|
856
|
+
{
|
|
857
|
+
value: response.headers.get("opc-request-id"),
|
|
858
|
+
key: "opcRequestId",
|
|
859
|
+
dataType: "string"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
value: response.headers.get("etag"),
|
|
863
|
+
key: "etag",
|
|
864
|
+
dataType: "string"
|
|
865
|
+
}
|
|
866
|
+
]
|
|
867
|
+
});
|
|
868
|
+
return sdkResponse;
|
|
869
|
+
}
|
|
870
|
+
catch (err) {
|
|
871
|
+
throw err;
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
}
|
|
666
875
|
/**
|
|
667
876
|
* Returns information about the Big Data Service cluster identified by the given ID.
|
|
877
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
668
878
|
* @param GetBdsInstanceRequest
|
|
669
879
|
* @return GetBdsInstanceResponse
|
|
670
880
|
* @throws OciError when an error occurs
|
|
671
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
881
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/GetBdsInstance.ts.html |here} to see how to use GetBdsInstance API.
|
|
672
882
|
*/
|
|
673
883
|
getBdsInstance(getBdsInstanceRequest) {
|
|
674
884
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -682,7 +892,8 @@ class BdsClient {
|
|
|
682
892
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
683
893
|
"opc-request-id": getBdsInstanceRequest.opcRequestId
|
|
684
894
|
};
|
|
685
|
-
const
|
|
895
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
896
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBdsInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
686
897
|
if (this.logger)
|
|
687
898
|
retrier.logger = this.logger;
|
|
688
899
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -724,10 +935,11 @@ class BdsClient {
|
|
|
724
935
|
}
|
|
725
936
|
/**
|
|
726
937
|
* Returns the status of the work request identified by the given ID.
|
|
938
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
727
939
|
* @param GetWorkRequestRequest
|
|
728
940
|
* @return GetWorkRequestResponse
|
|
729
941
|
* @throws OciError when an error occurs
|
|
730
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
942
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
731
943
|
*/
|
|
732
944
|
getWorkRequest(getWorkRequestRequest) {
|
|
733
945
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -741,7 +953,8 @@ class BdsClient {
|
|
|
741
953
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
742
954
|
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
743
955
|
};
|
|
744
|
-
const
|
|
956
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
957
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
745
958
|
if (this.logger)
|
|
746
959
|
retrier.logger = this.logger;
|
|
747
960
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -784,10 +997,11 @@ class BdsClient {
|
|
|
784
997
|
/**
|
|
785
998
|
* Returns information about the autoscaling configurations for a cluster.
|
|
786
999
|
*
|
|
1000
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
787
1001
|
* @param ListAutoScalingConfigurationsRequest
|
|
788
1002
|
* @return ListAutoScalingConfigurationsResponse
|
|
789
1003
|
* @throws OciError when an error occurs
|
|
790
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1004
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListAutoScalingConfigurations.ts.html |here} to see how to use ListAutoScalingConfigurations API.
|
|
791
1005
|
*/
|
|
792
1006
|
listAutoScalingConfigurations(listAutoScalingConfigurationsRequest) {
|
|
793
1007
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -809,7 +1023,8 @@ class BdsClient {
|
|
|
809
1023
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
810
1024
|
"opc-request-id": listAutoScalingConfigurationsRequest.opcRequestId
|
|
811
1025
|
};
|
|
812
|
-
const
|
|
1026
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1027
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAutoScalingConfigurationsRequest.retryConfiguration, specRetryConfiguration);
|
|
813
1028
|
if (this.logger)
|
|
814
1029
|
retrier.logger = this.logger;
|
|
815
1030
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -889,13 +1104,124 @@ class BdsClient {
|
|
|
889
1104
|
listAutoScalingConfigurationsResponseIterator(request) {
|
|
890
1105
|
return oci_common_1.paginateResponses(request, req => this.listAutoScalingConfigurations(req));
|
|
891
1106
|
}
|
|
1107
|
+
/**
|
|
1108
|
+
* Returns a list of all API keys associated with this Big Data Service cluster.
|
|
1109
|
+
*
|
|
1110
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1111
|
+
* @param ListBdsApiKeysRequest
|
|
1112
|
+
* @return ListBdsApiKeysResponse
|
|
1113
|
+
* @throws OciError when an error occurs
|
|
1114
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListBdsApiKeys.ts.html |here} to see how to use ListBdsApiKeys API.
|
|
1115
|
+
*/
|
|
1116
|
+
listBdsApiKeys(listBdsApiKeysRequest) {
|
|
1117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1118
|
+
if (this.logger)
|
|
1119
|
+
this.logger.debug("Calling operation BdsClient#listBdsApiKeys.");
|
|
1120
|
+
const pathParams = {
|
|
1121
|
+
"{bdsInstanceId}": listBdsApiKeysRequest.bdsInstanceId
|
|
1122
|
+
};
|
|
1123
|
+
const queryParams = {
|
|
1124
|
+
"lifecycleState": listBdsApiKeysRequest.lifecycleState,
|
|
1125
|
+
"userId": listBdsApiKeysRequest.userId,
|
|
1126
|
+
"page": listBdsApiKeysRequest.page,
|
|
1127
|
+
"limit": listBdsApiKeysRequest.limit,
|
|
1128
|
+
"sortBy": listBdsApiKeysRequest.sortBy,
|
|
1129
|
+
"sortOrder": listBdsApiKeysRequest.sortOrder,
|
|
1130
|
+
"displayName": listBdsApiKeysRequest.displayName
|
|
1131
|
+
};
|
|
1132
|
+
let headerParams = {
|
|
1133
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1134
|
+
"opc-request-id": listBdsApiKeysRequest.opcRequestId
|
|
1135
|
+
};
|
|
1136
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1137
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBdsApiKeysRequest.retryConfiguration, specRetryConfiguration);
|
|
1138
|
+
if (this.logger)
|
|
1139
|
+
retrier.logger = this.logger;
|
|
1140
|
+
const request = yield oci_common_2.composeRequest({
|
|
1141
|
+
baseEndpoint: this._endpoint,
|
|
1142
|
+
defaultHeaders: this._defaultHeaders,
|
|
1143
|
+
path: "/bdsInstances/{bdsInstanceId}/apiKeys",
|
|
1144
|
+
method: "GET",
|
|
1145
|
+
pathParams: pathParams,
|
|
1146
|
+
headerParams: headerParams,
|
|
1147
|
+
queryParams: queryParams
|
|
1148
|
+
});
|
|
1149
|
+
try {
|
|
1150
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1151
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1152
|
+
responseObject: {},
|
|
1153
|
+
body: yield response.json(),
|
|
1154
|
+
bodyKey: "items",
|
|
1155
|
+
bodyModel: model.BdsApiKeySummary,
|
|
1156
|
+
type: "Array<model.BdsApiKeySummary>",
|
|
1157
|
+
responseHeaders: [
|
|
1158
|
+
{
|
|
1159
|
+
value: response.headers.get("opc-request-id"),
|
|
1160
|
+
key: "opcRequestId",
|
|
1161
|
+
dataType: "string"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
value: response.headers.get("opc-next-page"),
|
|
1165
|
+
key: "opcNextPage",
|
|
1166
|
+
dataType: "string"
|
|
1167
|
+
}
|
|
1168
|
+
]
|
|
1169
|
+
});
|
|
1170
|
+
return sdkResponse;
|
|
1171
|
+
}
|
|
1172
|
+
catch (err) {
|
|
1173
|
+
throw err;
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* NOTE: This function is deprecated in favor of listBdsApiKeysRecordIterator function.
|
|
1179
|
+
* Creates a new async iterator which will iterate over the models.BdsApiKeySummary objects
|
|
1180
|
+
* contained in responses from the listBdsApiKeys operation. This iterator will fetch more data from the
|
|
1181
|
+
* server as needed.
|
|
1182
|
+
*
|
|
1183
|
+
* @param request a request which can be sent to the service operation
|
|
1184
|
+
*/
|
|
1185
|
+
listAllBdsApiKeys(request) {
|
|
1186
|
+
return oci_common_1.paginateRecords(request, req => this.listBdsApiKeys(req));
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* NOTE: This function is deprecated in favor of listBdsApiKeysResponseIterator function.
|
|
1190
|
+
* Creates a new async iterator which will iterate over the responses received from the listBdsApiKeys operation. This iterator
|
|
1191
|
+
* will fetch more data from the server as needed.
|
|
1192
|
+
*
|
|
1193
|
+
* @param request a request which can be sent to the service operation
|
|
1194
|
+
*/
|
|
1195
|
+
listAllBdsApiKeysResponses(request) {
|
|
1196
|
+
return oci_common_1.paginateResponses(request, req => this.listBdsApiKeys(req));
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Creates a new async iterator which will iterate over the models.BdsApiKeySummary objects
|
|
1200
|
+
* contained in responses from the listBdsApiKeys operation. This iterator will fetch more data from the
|
|
1201
|
+
* server as needed.
|
|
1202
|
+
*
|
|
1203
|
+
* @param request a request which can be sent to the service operation
|
|
1204
|
+
*/
|
|
1205
|
+
listBdsApiKeysRecordIterator(request) {
|
|
1206
|
+
return oci_common_1.paginateRecords(request, req => this.listBdsApiKeys(req));
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Creates a new async iterator which will iterate over the responses received from the listBdsApiKeys operation. This iterator
|
|
1210
|
+
* will fetch more data from the server as needed.
|
|
1211
|
+
*
|
|
1212
|
+
* @param request a request which can be sent to the service operation
|
|
1213
|
+
*/
|
|
1214
|
+
listBdsApiKeysResponseIterator(request) {
|
|
1215
|
+
return oci_common_1.paginateResponses(request, req => this.listBdsApiKeys(req));
|
|
1216
|
+
}
|
|
892
1217
|
/**
|
|
893
1218
|
* Returns a list of all Big Data Service clusters in a compartment.
|
|
894
1219
|
*
|
|
1220
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
895
1221
|
* @param ListBdsInstancesRequest
|
|
896
1222
|
* @return ListBdsInstancesResponse
|
|
897
1223
|
* @throws OciError when an error occurs
|
|
898
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1224
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListBdsInstances.ts.html |here} to see how to use ListBdsInstances API.
|
|
899
1225
|
*/
|
|
900
1226
|
listBdsInstances(listBdsInstancesRequest) {
|
|
901
1227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -915,7 +1241,8 @@ class BdsClient {
|
|
|
915
1241
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
916
1242
|
"opc-request-id": listBdsInstancesRequest.opcRequestId
|
|
917
1243
|
};
|
|
918
|
-
const
|
|
1244
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1245
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBdsInstancesRequest.retryConfiguration, specRetryConfiguration);
|
|
919
1246
|
if (this.logger)
|
|
920
1247
|
retrier.logger = this.logger;
|
|
921
1248
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -998,10 +1325,11 @@ class BdsClient {
|
|
|
998
1325
|
/**
|
|
999
1326
|
* Returns a paginated list of errors for a work request identified by the given ID.
|
|
1000
1327
|
*
|
|
1328
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1001
1329
|
* @param ListWorkRequestErrorsRequest
|
|
1002
1330
|
* @return ListWorkRequestErrorsResponse
|
|
1003
1331
|
* @throws OciError when an error occurs
|
|
1004
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1332
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1005
1333
|
*/
|
|
1006
1334
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1007
1335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1020,7 +1348,8 @@ class BdsClient {
|
|
|
1020
1348
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1021
1349
|
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1022
1350
|
};
|
|
1023
|
-
const
|
|
1351
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1352
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1024
1353
|
if (this.logger)
|
|
1025
1354
|
retrier.logger = this.logger;
|
|
1026
1355
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1103,10 +1432,11 @@ class BdsClient {
|
|
|
1103
1432
|
/**
|
|
1104
1433
|
* Returns a paginated list of logs for a given work request.
|
|
1105
1434
|
*
|
|
1435
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1106
1436
|
* @param ListWorkRequestLogsRequest
|
|
1107
1437
|
* @return ListWorkRequestLogsResponse
|
|
1108
1438
|
* @throws OciError when an error occurs
|
|
1109
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1439
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1110
1440
|
*/
|
|
1111
1441
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1112
1442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1125,7 +1455,8 @@ class BdsClient {
|
|
|
1125
1455
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1126
1456
|
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1127
1457
|
};
|
|
1128
|
-
const
|
|
1458
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1459
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1129
1460
|
if (this.logger)
|
|
1130
1461
|
retrier.logger = this.logger;
|
|
1131
1462
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1208,10 +1539,11 @@ class BdsClient {
|
|
|
1208
1539
|
/**
|
|
1209
1540
|
* Lists the work requests in a compartment.
|
|
1210
1541
|
*
|
|
1542
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1211
1543
|
* @param ListWorkRequestsRequest
|
|
1212
1544
|
* @return ListWorkRequestsResponse
|
|
1213
1545
|
* @throws OciError when an error occurs
|
|
1214
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1546
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1215
1547
|
*/
|
|
1216
1548
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1217
1549
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1230,7 +1562,8 @@ class BdsClient {
|
|
|
1230
1562
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1231
1563
|
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1232
1564
|
};
|
|
1233
|
-
const
|
|
1565
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1566
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1234
1567
|
if (this.logger)
|
|
1235
1568
|
retrier.logger = this.logger;
|
|
1236
1569
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1313,10 +1646,11 @@ class BdsClient {
|
|
|
1313
1646
|
/**
|
|
1314
1647
|
* Deletes an autoscale configuration.
|
|
1315
1648
|
*
|
|
1649
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1316
1650
|
* @param RemoveAutoScalingConfigurationRequest
|
|
1317
1651
|
* @return RemoveAutoScalingConfigurationResponse
|
|
1318
1652
|
* @throws OciError when an error occurs
|
|
1319
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1653
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/RemoveAutoScalingConfiguration.ts.html |here} to see how to use RemoveAutoScalingConfiguration API.
|
|
1320
1654
|
*/
|
|
1321
1655
|
removeAutoScalingConfiguration(removeAutoScalingConfigurationRequest) {
|
|
1322
1656
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1333,7 +1667,8 @@ class BdsClient {
|
|
|
1333
1667
|
"if-match": removeAutoScalingConfigurationRequest.ifMatch,
|
|
1334
1668
|
"opc-retry-token": removeAutoScalingConfigurationRequest.opcRetryToken
|
|
1335
1669
|
};
|
|
1336
|
-
const
|
|
1670
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1671
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeAutoScalingConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
1337
1672
|
if (this.logger)
|
|
1338
1673
|
retrier.logger = this.logger;
|
|
1339
1674
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1373,10 +1708,11 @@ class BdsClient {
|
|
|
1373
1708
|
/**
|
|
1374
1709
|
* Removes Cloud SQL from the cluster.
|
|
1375
1710
|
*
|
|
1711
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1376
1712
|
* @param RemoveCloudSqlRequest
|
|
1377
1713
|
* @return RemoveCloudSqlResponse
|
|
1378
1714
|
* @throws OciError when an error occurs
|
|
1379
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1715
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/RemoveCloudSql.ts.html |here} to see how to use RemoveCloudSql API.
|
|
1380
1716
|
*/
|
|
1381
1717
|
removeCloudSql(removeCloudSqlRequest) {
|
|
1382
1718
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1392,7 +1728,8 @@ class BdsClient {
|
|
|
1392
1728
|
"if-match": removeCloudSqlRequest.ifMatch,
|
|
1393
1729
|
"opc-retry-token": removeCloudSqlRequest.opcRetryToken
|
|
1394
1730
|
};
|
|
1395
|
-
const
|
|
1731
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1732
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeCloudSqlRequest.retryConfiguration, specRetryConfiguration);
|
|
1396
1733
|
if (this.logger)
|
|
1397
1734
|
retrier.logger = this.logger;
|
|
1398
1735
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1432,10 +1769,11 @@ class BdsClient {
|
|
|
1432
1769
|
/**
|
|
1433
1770
|
* Restarts a single node of a Big Data Service cluster
|
|
1434
1771
|
*
|
|
1772
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1435
1773
|
* @param RestartNodeRequest
|
|
1436
1774
|
* @return RestartNodeResponse
|
|
1437
1775
|
* @throws OciError when an error occurs
|
|
1438
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1776
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/RestartNode.ts.html |here} to see how to use RestartNode API.
|
|
1439
1777
|
*/
|
|
1440
1778
|
restartNode(restartNodeRequest) {
|
|
1441
1779
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1451,7 +1789,8 @@ class BdsClient {
|
|
|
1451
1789
|
"if-match": restartNodeRequest.ifMatch,
|
|
1452
1790
|
"opc-retry-token": restartNodeRequest.opcRetryToken
|
|
1453
1791
|
};
|
|
1454
|
-
const
|
|
1792
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1793
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restartNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
1455
1794
|
if (this.logger)
|
|
1456
1795
|
retrier.logger = this.logger;
|
|
1457
1796
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1488,13 +1827,73 @@ class BdsClient {
|
|
|
1488
1827
|
}
|
|
1489
1828
|
});
|
|
1490
1829
|
}
|
|
1830
|
+
/**
|
|
1831
|
+
* Test access to specified Object Storage bucket using the API key.
|
|
1832
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1833
|
+
* @param TestBdsObjectStorageConnectionRequest
|
|
1834
|
+
* @return TestBdsObjectStorageConnectionResponse
|
|
1835
|
+
* @throws OciError when an error occurs
|
|
1836
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/TestBdsObjectStorageConnection.ts.html |here} to see how to use TestBdsObjectStorageConnection API.
|
|
1837
|
+
*/
|
|
1838
|
+
testBdsObjectStorageConnection(testBdsObjectStorageConnectionRequest) {
|
|
1839
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1840
|
+
if (this.logger)
|
|
1841
|
+
this.logger.debug("Calling operation BdsClient#testBdsObjectStorageConnection.");
|
|
1842
|
+
const pathParams = {
|
|
1843
|
+
"{bdsInstanceId}": testBdsObjectStorageConnectionRequest.bdsInstanceId,
|
|
1844
|
+
"{apiKeyId}": testBdsObjectStorageConnectionRequest.apiKeyId
|
|
1845
|
+
};
|
|
1846
|
+
const queryParams = {};
|
|
1847
|
+
let headerParams = {
|
|
1848
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1849
|
+
"opc-request-id": testBdsObjectStorageConnectionRequest.opcRequestId
|
|
1850
|
+
};
|
|
1851
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1852
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, testBdsObjectStorageConnectionRequest.retryConfiguration, specRetryConfiguration);
|
|
1853
|
+
if (this.logger)
|
|
1854
|
+
retrier.logger = this.logger;
|
|
1855
|
+
const request = yield oci_common_2.composeRequest({
|
|
1856
|
+
baseEndpoint: this._endpoint,
|
|
1857
|
+
defaultHeaders: this._defaultHeaders,
|
|
1858
|
+
path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}/actions/testObjectStorageConnection",
|
|
1859
|
+
method: "POST",
|
|
1860
|
+
bodyContent: common.ObjectSerializer.serialize(testBdsObjectStorageConnectionRequest.testBdsObjectStorageConnectionDetails, "TestBdsObjectStorageConnectionDetails", model.TestBdsObjectStorageConnectionDetails.getJsonObj),
|
|
1861
|
+
pathParams: pathParams,
|
|
1862
|
+
headerParams: headerParams,
|
|
1863
|
+
queryParams: queryParams
|
|
1864
|
+
});
|
|
1865
|
+
try {
|
|
1866
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1867
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1868
|
+
responseObject: {},
|
|
1869
|
+
responseHeaders: [
|
|
1870
|
+
{
|
|
1871
|
+
value: response.headers.get("opc-request-id"),
|
|
1872
|
+
key: "opcRequestId",
|
|
1873
|
+
dataType: "string"
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1877
|
+
key: "opcWorkRequestId",
|
|
1878
|
+
dataType: "string"
|
|
1879
|
+
}
|
|
1880
|
+
]
|
|
1881
|
+
});
|
|
1882
|
+
return sdkResponse;
|
|
1883
|
+
}
|
|
1884
|
+
catch (err) {
|
|
1885
|
+
throw err;
|
|
1886
|
+
}
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1491
1889
|
/**
|
|
1492
1890
|
* Updates fields on an autoscale configuration, including the name, the threshold value, and whether the autoscale configuration is enabled.
|
|
1493
1891
|
*
|
|
1892
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1494
1893
|
* @param UpdateAutoScalingConfigurationRequest
|
|
1495
1894
|
* @return UpdateAutoScalingConfigurationResponse
|
|
1496
1895
|
* @throws OciError when an error occurs
|
|
1497
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1896
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/UpdateAutoScalingConfiguration.ts.html |here} to see how to use UpdateAutoScalingConfiguration API.
|
|
1498
1897
|
*/
|
|
1499
1898
|
updateAutoScalingConfiguration(updateAutoScalingConfigurationRequest) {
|
|
1500
1899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1511,7 +1910,8 @@ class BdsClient {
|
|
|
1511
1910
|
"if-match": updateAutoScalingConfigurationRequest.ifMatch,
|
|
1512
1911
|
"opc-retry-token": updateAutoScalingConfigurationRequest.opcRetryToken
|
|
1513
1912
|
};
|
|
1514
|
-
const
|
|
1913
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1914
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateAutoScalingConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
1515
1915
|
if (this.logger)
|
|
1516
1916
|
retrier.logger = this.logger;
|
|
1517
1917
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1550,10 +1950,11 @@ class BdsClient {
|
|
|
1550
1950
|
}
|
|
1551
1951
|
/**
|
|
1552
1952
|
* Updates the Big Data Service cluster identified by the given ID.
|
|
1953
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1553
1954
|
* @param UpdateBdsInstanceRequest
|
|
1554
1955
|
* @return UpdateBdsInstanceResponse
|
|
1555
1956
|
* @throws OciError when an error occurs
|
|
1556
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1957
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/bds/UpdateBdsInstance.ts.html |here} to see how to use UpdateBdsInstance API.
|
|
1557
1958
|
*/
|
|
1558
1959
|
updateBdsInstance(updateBdsInstanceRequest) {
|
|
1559
1960
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1568,7 +1969,8 @@ class BdsClient {
|
|
|
1568
1969
|
"if-match": updateBdsInstanceRequest.ifMatch,
|
|
1569
1970
|
"opc-request-id": updateBdsInstanceRequest.opcRequestId
|
|
1570
1971
|
};
|
|
1571
|
-
const
|
|
1972
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1973
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBdsInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
1572
1974
|
if (this.logger)
|
|
1573
1975
|
retrier.logger = this.logger;
|
|
1574
1976
|
const request = yield oci_common_2.composeRequest({
|