oci-bds 2.139.2 → 2.140.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/lib/bds-waiter.d.ts +16 -0
  2. package/lib/bds-waiter.js +24 -0
  3. package/lib/bds-waiter.js.map +1 -1
  4. package/lib/client.d.ts +131 -0
  5. package/lib/client.js +944 -11
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/bds-capacity-reservation-associated-configuration-collection.d.ts +27 -0
  8. package/lib/model/bds-capacity-reservation-associated-configuration-collection.js +62 -0
  9. package/lib/model/bds-capacity-reservation-associated-configuration-collection.js.map +1 -0
  10. package/lib/model/bds-capacity-reservation-associated-configuration-summary.d.ts +63 -0
  11. package/lib/model/bds-capacity-reservation-associated-configuration-summary.js +44 -0
  12. package/lib/model/bds-capacity-reservation-associated-configuration-summary.js.map +1 -0
  13. package/lib/model/bds-capacity-reservation-collection.d.ts +27 -0
  14. package/lib/model/bds-capacity-reservation-collection.js +62 -0
  15. package/lib/model/bds-capacity-reservation-collection.js.map +1 -0
  16. package/lib/model/bds-capacity-reservation-configuration-collection.d.ts +27 -0
  17. package/lib/model/bds-capacity-reservation-configuration-collection.js +62 -0
  18. package/lib/model/bds-capacity-reservation-configuration-collection.js.map +1 -0
  19. package/lib/model/bds-capacity-reservation-configuration-summary.d.ts +50 -0
  20. package/lib/model/bds-capacity-reservation-configuration-summary.js +30 -0
  21. package/lib/model/bds-capacity-reservation-configuration-summary.js.map +1 -0
  22. package/lib/model/bds-capacity-reservation-configuration.d.ts +63 -0
  23. package/lib/model/bds-capacity-reservation-configuration.js +44 -0
  24. package/lib/model/bds-capacity-reservation-configuration.js.map +1 -0
  25. package/lib/model/bds-capacity-reservation-summary.d.ts +74 -0
  26. package/lib/model/bds-capacity-reservation-summary.js +58 -0
  27. package/lib/model/bds-capacity-reservation-summary.js.map +1 -0
  28. package/lib/model/bds-capacity-reservation.d.ts +86 -0
  29. package/lib/model/bds-capacity-reservation.js +71 -0
  30. package/lib/model/bds-capacity-reservation.js.map +1 -0
  31. package/lib/model/bds-cluster-version-summary.d.ts +1 -1
  32. package/lib/model/bds-instance.d.ts +4 -0
  33. package/lib/model/bds-instance.js +10 -0
  34. package/lib/model/bds-instance.js.map +1 -1
  35. package/lib/model/change-bds-capacity-reservation-compartment-details.d.ts +26 -0
  36. package/lib/model/change-bds-capacity-reservation-compartment-details.js +30 -0
  37. package/lib/model/change-bds-capacity-reservation-compartment-details.js.map +1 -0
  38. package/lib/model/compute-capacity-reservations.d.ts +37 -0
  39. package/lib/model/compute-capacity-reservations.js +30 -0
  40. package/lib/model/compute-capacity-reservations.js.map +1 -0
  41. package/lib/model/create-bds-capacity-reservation-configuration-details.d.ts +30 -0
  42. package/lib/model/create-bds-capacity-reservation-configuration-details.js +30 -0
  43. package/lib/model/create-bds-capacity-reservation-configuration-details.js.map +1 -0
  44. package/lib/model/create-bds-capacity-reservation-details.d.ts +50 -0
  45. package/lib/model/create-bds-capacity-reservation-details.js +58 -0
  46. package/lib/model/create-bds-capacity-reservation-details.js.map +1 -0
  47. package/lib/model/create-bds-instance-details.d.ts +4 -0
  48. package/lib/model/create-bds-instance-details.js +10 -0
  49. package/lib/model/create-bds-instance-details.js.map +1 -1
  50. package/lib/model/index.d.ts +28 -0
  51. package/lib/model/index.js +32 -4
  52. package/lib/model/index.js.map +1 -1
  53. package/lib/model/node.d.ts +4 -0
  54. package/lib/model/node.js.map +1 -1
  55. package/lib/model/update-bds-capacity-reservation-configuration-details.d.ts +30 -0
  56. package/lib/model/update-bds-capacity-reservation-configuration-details.js +30 -0
  57. package/lib/model/update-bds-capacity-reservation-configuration-details.js.map +1 -0
  58. package/lib/model/update-bds-capacity-reservation-details.d.ts +46 -0
  59. package/lib/model/update-bds-capacity-reservation-details.js +58 -0
  60. package/lib/model/update-bds-capacity-reservation-details.js.map +1 -0
  61. package/lib/request/activate-bds-capacity-reservation-configuration-request.d.ts +48 -0
  62. package/lib/request/activate-bds-capacity-reservation-configuration-request.js +15 -0
  63. package/lib/request/activate-bds-capacity-reservation-configuration-request.js.map +1 -0
  64. package/lib/request/change-bds-capacity-reservation-compartment-request.d.ts +49 -0
  65. package/lib/request/change-bds-capacity-reservation-compartment-request.js +15 -0
  66. package/lib/request/change-bds-capacity-reservation-compartment-request.js.map +1 -0
  67. package/lib/request/create-bds-capacity-reservation-configuration-request.d.ts +40 -0
  68. package/lib/request/create-bds-capacity-reservation-configuration-request.js +15 -0
  69. package/lib/request/create-bds-capacity-reservation-configuration-request.js.map +1 -0
  70. package/lib/request/create-bds-capacity-reservation-request.d.ts +36 -0
  71. package/lib/request/create-bds-capacity-reservation-request.js +15 -0
  72. package/lib/request/create-bds-capacity-reservation-request.js.map +1 -0
  73. package/lib/request/deactivate-bds-capacity-reservation-configuration-request.d.ts +48 -0
  74. package/lib/request/deactivate-bds-capacity-reservation-configuration-request.js +15 -0
  75. package/lib/request/deactivate-bds-capacity-reservation-configuration-request.js.map +1 -0
  76. package/lib/request/delete-bds-capacity-reservation-configuration-request.d.ts +39 -0
  77. package/lib/request/delete-bds-capacity-reservation-configuration-request.js +15 -0
  78. package/lib/request/delete-bds-capacity-reservation-configuration-request.js.map +1 -0
  79. package/lib/request/delete-bds-capacity-reservation-request.d.ts +35 -0
  80. package/lib/request/delete-bds-capacity-reservation-request.js +15 -0
  81. package/lib/request/delete-bds-capacity-reservation-request.js.map +1 -0
  82. package/lib/request/get-bds-capacity-reservation-configuration-request.d.ts +30 -0
  83. package/lib/request/get-bds-capacity-reservation-configuration-request.js +15 -0
  84. package/lib/request/get-bds-capacity-reservation-configuration-request.js.map +1 -0
  85. package/lib/request/get-bds-capacity-reservation-request.d.ts +26 -0
  86. package/lib/request/get-bds-capacity-reservation-request.js +15 -0
  87. package/lib/request/get-bds-capacity-reservation-request.js.map +1 -0
  88. package/lib/request/index.d.ts +28 -0
  89. package/lib/request/index.js +7 -1
  90. package/lib/request/index.js.map +1 -1
  91. package/lib/request/list-bds-capacity-reservation-associated-configurations-request.d.ts +62 -0
  92. package/lib/request/list-bds-capacity-reservation-associated-configurations-request.js +24 -0
  93. package/lib/request/list-bds-capacity-reservation-associated-configurations-request.js.map +1 -0
  94. package/lib/request/list-bds-capacity-reservation-configurations-request.d.ts +58 -0
  95. package/lib/request/list-bds-capacity-reservation-configurations-request.js +24 -0
  96. package/lib/request/list-bds-capacity-reservation-configurations-request.js.map +1 -0
  97. package/lib/request/list-bds-capacity-reservations-request.d.ts +58 -0
  98. package/lib/request/list-bds-capacity-reservations-request.js +24 -0
  99. package/lib/request/list-bds-capacity-reservations-request.js.map +1 -0
  100. package/lib/request/update-bds-capacity-reservation-configuration-request.d.ts +53 -0
  101. package/lib/request/update-bds-capacity-reservation-configuration-request.js +15 -0
  102. package/lib/request/update-bds-capacity-reservation-configuration-request.js.map +1 -0
  103. package/lib/request/update-bds-capacity-reservation-request.d.ts +49 -0
  104. package/lib/request/update-bds-capacity-reservation-request.js +15 -0
  105. package/lib/request/update-bds-capacity-reservation-request.js.map +1 -0
  106. package/lib/response/activate-bds-capacity-reservation-configuration-response.d.ts +30 -0
  107. package/lib/response/activate-bds-capacity-reservation-configuration-response.js +15 -0
  108. package/lib/response/activate-bds-capacity-reservation-configuration-response.js.map +1 -0
  109. package/lib/response/change-bds-capacity-reservation-compartment-response.d.ts +20 -0
  110. package/lib/response/change-bds-capacity-reservation-compartment-response.js +15 -0
  111. package/lib/response/change-bds-capacity-reservation-compartment-response.js.map +1 -0
  112. package/lib/response/create-bds-capacity-reservation-configuration-response.d.ts +45 -0
  113. package/lib/response/create-bds-capacity-reservation-configuration-response.js +15 -0
  114. package/lib/response/create-bds-capacity-reservation-configuration-response.js.map +1 -0
  115. package/lib/response/create-bds-capacity-reservation-response.d.ts +45 -0
  116. package/lib/response/create-bds-capacity-reservation-response.js +15 -0
  117. package/lib/response/create-bds-capacity-reservation-response.js.map +1 -0
  118. package/lib/response/deactivate-bds-capacity-reservation-configuration-response.d.ts +30 -0
  119. package/lib/response/deactivate-bds-capacity-reservation-configuration-response.js +15 -0
  120. package/lib/response/deactivate-bds-capacity-reservation-configuration-response.js.map +1 -0
  121. package/lib/response/delete-bds-capacity-reservation-configuration-response.d.ts +20 -0
  122. package/lib/response/delete-bds-capacity-reservation-configuration-response.js +15 -0
  123. package/lib/response/delete-bds-capacity-reservation-configuration-response.js.map +1 -0
  124. package/lib/response/delete-bds-capacity-reservation-response.d.ts +20 -0
  125. package/lib/response/delete-bds-capacity-reservation-response.js +15 -0
  126. package/lib/response/delete-bds-capacity-reservation-response.js.map +1 -0
  127. package/lib/response/get-bds-capacity-reservation-configuration-response.d.ts +30 -0
  128. package/lib/response/get-bds-capacity-reservation-configuration-response.js +15 -0
  129. package/lib/response/get-bds-capacity-reservation-configuration-response.js.map +1 -0
  130. package/lib/response/get-bds-capacity-reservation-response.d.ts +30 -0
  131. package/lib/response/get-bds-capacity-reservation-response.js +15 -0
  132. package/lib/response/get-bds-capacity-reservation-response.js.map +1 -0
  133. package/lib/response/index.d.ts +28 -0
  134. package/lib/response/list-bds-capacity-reservation-associated-configurations-response.d.ts +32 -0
  135. package/lib/response/list-bds-capacity-reservation-associated-configurations-response.js +15 -0
  136. package/lib/response/list-bds-capacity-reservation-associated-configurations-response.js.map +1 -0
  137. package/lib/response/list-bds-capacity-reservation-configurations-response.d.ts +32 -0
  138. package/lib/response/list-bds-capacity-reservation-configurations-response.js +15 -0
  139. package/lib/response/list-bds-capacity-reservation-configurations-response.js.map +1 -0
  140. package/lib/response/list-bds-capacity-reservations-response.d.ts +32 -0
  141. package/lib/response/list-bds-capacity-reservations-response.js +15 -0
  142. package/lib/response/list-bds-capacity-reservations-response.js.map +1 -0
  143. package/lib/response/update-bds-capacity-reservation-configuration-response.d.ts +30 -0
  144. package/lib/response/update-bds-capacity-reservation-configuration-response.js +15 -0
  145. package/lib/response/update-bds-capacity-reservation-configuration-response.js.map +1 -0
  146. package/lib/response/update-bds-capacity-reservation-response.d.ts +30 -0
  147. package/lib/response/update-bds-capacity-reservation-response.js +15 -0
  148. package/lib/response/update-bds-capacity-reservation-response.js.map +1 -0
  149. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -209,6 +209,72 @@ class BdsClient {
209
209
  this.shutdownCircuitBreaker();
210
210
  this.closeProvider();
211
211
  }
212
+ /**
213
+ * Activates the BDS capacity reservation configuration identified by the given ID.
214
+ * This operation does not retry by default if the user has not defined a retry configuration.
215
+ * @param ActivateBdsCapacityReservationConfigurationRequest
216
+ * @return ActivateBdsCapacityReservationConfigurationResponse
217
+ * @throws OciError when an error occurs
218
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/ActivateBdsCapacityReservationConfiguration.ts.html |here} to see how to use ActivateBdsCapacityReservationConfiguration API.
219
+ */
220
+ activateBdsCapacityReservationConfiguration(activateBdsCapacityReservationConfigurationRequest) {
221
+ return __awaiter(this, void 0, void 0, function* () {
222
+ if (this.logger)
223
+ this.logger.debug("Calling operation BdsClient#activateBdsCapacityReservationConfiguration.");
224
+ const operationName = "activateBdsCapacityReservationConfiguration";
225
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ActivateBdsCapacityReservationConfiguration";
226
+ const pathParams = {
227
+ "{bdsInstanceId}": activateBdsCapacityReservationConfigurationRequest.bdsInstanceId,
228
+ "{bdsCapacityReservationConfigurationId}": activateBdsCapacityReservationConfigurationRequest.bdsCapacityReservationConfigurationId
229
+ };
230
+ const queryParams = {};
231
+ let headerParams = {
232
+ "Content-Type": common.Constants.APPLICATION_JSON,
233
+ "opc-request-id": activateBdsCapacityReservationConfigurationRequest.opcRequestId,
234
+ "opc-retry-token": activateBdsCapacityReservationConfigurationRequest.opcRetryToken,
235
+ "if-match": activateBdsCapacityReservationConfigurationRequest.ifMatch
236
+ };
237
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
238
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, activateBdsCapacityReservationConfigurationRequest.retryConfiguration, specRetryConfiguration);
239
+ if (this.logger)
240
+ retrier.logger = this.logger;
241
+ const request = yield oci_common_2.composeRequest({
242
+ baseEndpoint: this._endpoint,
243
+ defaultHeaders: this._defaultHeaders,
244
+ path: "/bdsInstances/{bdsInstanceId}/bdsCapacityReservationConfigurations/{bdsCapacityReservationConfigurationId}/actions/activate",
245
+ method: "POST",
246
+ pathParams: pathParams,
247
+ headerParams: headerParams,
248
+ queryParams: queryParams
249
+ });
250
+ try {
251
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
252
+ const sdkResponse = oci_common_2.composeResponse({
253
+ responseObject: {},
254
+ body: yield response.json(),
255
+ bodyKey: "bdsCapacityReservationConfiguration",
256
+ bodyModel: model.BdsCapacityReservationConfiguration,
257
+ type: "model.BdsCapacityReservationConfiguration",
258
+ responseHeaders: [
259
+ {
260
+ value: response.headers.get("opc-request-id"),
261
+ key: "opcRequestId",
262
+ dataType: "string"
263
+ },
264
+ {
265
+ value: response.headers.get("etag"),
266
+ key: "etag",
267
+ dataType: "string"
268
+ }
269
+ ]
270
+ });
271
+ return sdkResponse;
272
+ }
273
+ catch (err) {
274
+ throw err;
275
+ }
276
+ });
277
+ }
212
278
  /**
213
279
  * Activate specified metastore configuration.
214
280
  *
@@ -1037,6 +1103,63 @@ class BdsClient {
1037
1103
  }
1038
1104
  });
1039
1105
  }
1106
+ /**
1107
+ * Moves a BDS capacity reservation into a different compartment.
1108
+ * This operation does not retry by default if the user has not defined a retry configuration.
1109
+ * @param ChangeBdsCapacityReservationCompartmentRequest
1110
+ * @return ChangeBdsCapacityReservationCompartmentResponse
1111
+ * @throws OciError when an error occurs
1112
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/ChangeBdsCapacityReservationCompartment.ts.html |here} to see how to use ChangeBdsCapacityReservationCompartment API.
1113
+ */
1114
+ changeBdsCapacityReservationCompartment(changeBdsCapacityReservationCompartmentRequest) {
1115
+ return __awaiter(this, void 0, void 0, function* () {
1116
+ if (this.logger)
1117
+ this.logger.debug("Calling operation BdsClient#changeBdsCapacityReservationCompartment.");
1118
+ const operationName = "changeBdsCapacityReservationCompartment";
1119
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ChangeBdsCapacityReservationCompartment";
1120
+ const pathParams = {
1121
+ "{bdsCapacityReservationId}": changeBdsCapacityReservationCompartmentRequest.bdsCapacityReservationId
1122
+ };
1123
+ const queryParams = {};
1124
+ let headerParams = {
1125
+ "Content-Type": common.Constants.APPLICATION_JSON,
1126
+ "opc-request-id": changeBdsCapacityReservationCompartmentRequest.opcRequestId,
1127
+ "if-match": changeBdsCapacityReservationCompartmentRequest.ifMatch,
1128
+ "opc-retry-token": changeBdsCapacityReservationCompartmentRequest.opcRetryToken
1129
+ };
1130
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1131
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeBdsCapacityReservationCompartmentRequest.retryConfiguration, specRetryConfiguration);
1132
+ if (this.logger)
1133
+ retrier.logger = this.logger;
1134
+ const request = yield oci_common_2.composeRequest({
1135
+ baseEndpoint: this._endpoint,
1136
+ defaultHeaders: this._defaultHeaders,
1137
+ path: "/bdsCapacityReservations/{bdsCapacityReservationId}/actions/changeCompartment",
1138
+ method: "POST",
1139
+ bodyContent: common.ObjectSerializer.serialize(changeBdsCapacityReservationCompartmentRequest.changeBdsCapacityReservationCompartmentDetails, "ChangeBdsCapacityReservationCompartmentDetails", model.ChangeBdsCapacityReservationCompartmentDetails.getJsonObj),
1140
+ pathParams: pathParams,
1141
+ headerParams: headerParams,
1142
+ queryParams: queryParams
1143
+ });
1144
+ try {
1145
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1146
+ const sdkResponse = oci_common_2.composeResponse({
1147
+ responseObject: {},
1148
+ responseHeaders: [
1149
+ {
1150
+ value: response.headers.get("opc-request-id"),
1151
+ key: "opcRequestId",
1152
+ dataType: "string"
1153
+ }
1154
+ ]
1155
+ });
1156
+ return sdkResponse;
1157
+ }
1158
+ catch (err) {
1159
+ throw err;
1160
+ }
1161
+ });
1162
+ }
1040
1163
  /**
1041
1164
  * Moves a Big Data Service cluster into a different compartment.
1042
1165
  *
@@ -1284,6 +1407,166 @@ class BdsClient {
1284
1407
  }
1285
1408
  });
1286
1409
  }
1410
+ /**
1411
+ * Creates a reusable BDS capacity reservation resource.
1412
+ *
1413
+ * This operation does not retry by default if the user has not defined a retry configuration.
1414
+ * @param CreateBdsCapacityReservationRequest
1415
+ * @return CreateBdsCapacityReservationResponse
1416
+ * @throws OciError when an error occurs
1417
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/CreateBdsCapacityReservation.ts.html |here} to see how to use CreateBdsCapacityReservation API.
1418
+ */
1419
+ createBdsCapacityReservation(createBdsCapacityReservationRequest) {
1420
+ return __awaiter(this, void 0, void 0, function* () {
1421
+ if (this.logger)
1422
+ this.logger.debug("Calling operation BdsClient#createBdsCapacityReservation.");
1423
+ const operationName = "createBdsCapacityReservation";
1424
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/CreateBdsCapacityReservation";
1425
+ const pathParams = {};
1426
+ const queryParams = {};
1427
+ let headerParams = {
1428
+ "Content-Type": common.Constants.APPLICATION_JSON,
1429
+ "opc-request-id": createBdsCapacityReservationRequest.opcRequestId,
1430
+ "opc-retry-token": createBdsCapacityReservationRequest.opcRetryToken
1431
+ };
1432
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1433
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBdsCapacityReservationRequest.retryConfiguration, specRetryConfiguration);
1434
+ if (this.logger)
1435
+ retrier.logger = this.logger;
1436
+ const request = yield oci_common_2.composeRequest({
1437
+ baseEndpoint: this._endpoint,
1438
+ defaultHeaders: this._defaultHeaders,
1439
+ path: "/bdsCapacityReservations",
1440
+ method: "POST",
1441
+ bodyContent: common.ObjectSerializer.serialize(createBdsCapacityReservationRequest.createBdsCapacityReservationDetails, "CreateBdsCapacityReservationDetails", model.CreateBdsCapacityReservationDetails.getJsonObj),
1442
+ pathParams: pathParams,
1443
+ headerParams: headerParams,
1444
+ queryParams: queryParams
1445
+ });
1446
+ try {
1447
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1448
+ const sdkResponse = oci_common_2.composeResponse({
1449
+ responseObject: {},
1450
+ body: yield response.json(),
1451
+ bodyKey: "bdsCapacityReservation",
1452
+ bodyModel: model.BdsCapacityReservation,
1453
+ type: "model.BdsCapacityReservation",
1454
+ responseHeaders: [
1455
+ {
1456
+ value: response.headers.get("opc-request-id"),
1457
+ key: "opcRequestId",
1458
+ dataType: "string"
1459
+ },
1460
+ {
1461
+ value: response.headers.get("opc-work-request-id"),
1462
+ key: "opcWorkRequestId",
1463
+ dataType: "string"
1464
+ },
1465
+ {
1466
+ value: response.headers.get("location"),
1467
+ key: "location",
1468
+ dataType: "string"
1469
+ },
1470
+ {
1471
+ value: response.headers.get("content-location"),
1472
+ key: "contentLocation",
1473
+ dataType: "string"
1474
+ },
1475
+ {
1476
+ value: response.headers.get("etag"),
1477
+ key: "etag",
1478
+ dataType: "string"
1479
+ }
1480
+ ]
1481
+ });
1482
+ return sdkResponse;
1483
+ }
1484
+ catch (err) {
1485
+ throw err;
1486
+ }
1487
+ });
1488
+ }
1489
+ /**
1490
+ * Creates a configuration between the specified BDS cluster and a BDS capacity reservation.
1491
+ *
1492
+ * This operation does not retry by default if the user has not defined a retry configuration.
1493
+ * @param CreateBdsCapacityReservationConfigurationRequest
1494
+ * @return CreateBdsCapacityReservationConfigurationResponse
1495
+ * @throws OciError when an error occurs
1496
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/CreateBdsCapacityReservationConfiguration.ts.html |here} to see how to use CreateBdsCapacityReservationConfiguration API.
1497
+ */
1498
+ createBdsCapacityReservationConfiguration(createBdsCapacityReservationConfigurationRequest) {
1499
+ return __awaiter(this, void 0, void 0, function* () {
1500
+ if (this.logger)
1501
+ this.logger.debug("Calling operation BdsClient#createBdsCapacityReservationConfiguration.");
1502
+ const operationName = "createBdsCapacityReservationConfiguration";
1503
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/CreateBdsCapacityReservationConfiguration";
1504
+ const pathParams = {
1505
+ "{bdsInstanceId}": createBdsCapacityReservationConfigurationRequest.bdsInstanceId
1506
+ };
1507
+ const queryParams = {};
1508
+ let headerParams = {
1509
+ "Content-Type": common.Constants.APPLICATION_JSON,
1510
+ "opc-request-id": createBdsCapacityReservationConfigurationRequest.opcRequestId,
1511
+ "opc-retry-token": createBdsCapacityReservationConfigurationRequest.opcRetryToken
1512
+ };
1513
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1514
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBdsCapacityReservationConfigurationRequest.retryConfiguration, specRetryConfiguration);
1515
+ if (this.logger)
1516
+ retrier.logger = this.logger;
1517
+ const request = yield oci_common_2.composeRequest({
1518
+ baseEndpoint: this._endpoint,
1519
+ defaultHeaders: this._defaultHeaders,
1520
+ path: "/bdsInstances/{bdsInstanceId}/bdsCapacityReservationConfigurations",
1521
+ method: "POST",
1522
+ bodyContent: common.ObjectSerializer.serialize(createBdsCapacityReservationConfigurationRequest.createBdsCapacityReservationConfigurationDetails, "CreateBdsCapacityReservationConfigurationDetails", model.CreateBdsCapacityReservationConfigurationDetails.getJsonObj),
1523
+ pathParams: pathParams,
1524
+ headerParams: headerParams,
1525
+ queryParams: queryParams
1526
+ });
1527
+ try {
1528
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1529
+ const sdkResponse = oci_common_2.composeResponse({
1530
+ responseObject: {},
1531
+ body: yield response.json(),
1532
+ bodyKey: "bdsCapacityReservationConfiguration",
1533
+ bodyModel: model.BdsCapacityReservationConfiguration,
1534
+ type: "model.BdsCapacityReservationConfiguration",
1535
+ responseHeaders: [
1536
+ {
1537
+ value: response.headers.get("opc-request-id"),
1538
+ key: "opcRequestId",
1539
+ dataType: "string"
1540
+ },
1541
+ {
1542
+ value: response.headers.get("opc-work-request-id"),
1543
+ key: "opcWorkRequestId",
1544
+ dataType: "string"
1545
+ },
1546
+ {
1547
+ value: response.headers.get("location"),
1548
+ key: "location",
1549
+ dataType: "string"
1550
+ },
1551
+ {
1552
+ value: response.headers.get("content-location"),
1553
+ key: "contentLocation",
1554
+ dataType: "string"
1555
+ },
1556
+ {
1557
+ value: response.headers.get("etag"),
1558
+ key: "etag",
1559
+ dataType: "string"
1560
+ }
1561
+ ]
1562
+ });
1563
+ return sdkResponse;
1564
+ }
1565
+ catch (err) {
1566
+ throw err;
1567
+ }
1568
+ });
1569
+ }
1287
1570
  /**
1288
1571
  * Create a BDS certificate configuration for the cluster.
1289
1572
  *
@@ -1715,6 +1998,72 @@ class BdsClient {
1715
1998
  }
1716
1999
  });
1717
2000
  }
2001
+ /**
2002
+ * Deactivates the BDS capacity reservation configuration identified by the given ID.
2003
+ * This operation does not retry by default if the user has not defined a retry configuration.
2004
+ * @param DeactivateBdsCapacityReservationConfigurationRequest
2005
+ * @return DeactivateBdsCapacityReservationConfigurationResponse
2006
+ * @throws OciError when an error occurs
2007
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/DeactivateBdsCapacityReservationConfiguration.ts.html |here} to see how to use DeactivateBdsCapacityReservationConfiguration API.
2008
+ */
2009
+ deactivateBdsCapacityReservationConfiguration(deactivateBdsCapacityReservationConfigurationRequest) {
2010
+ return __awaiter(this, void 0, void 0, function* () {
2011
+ if (this.logger)
2012
+ this.logger.debug("Calling operation BdsClient#deactivateBdsCapacityReservationConfiguration.");
2013
+ const operationName = "deactivateBdsCapacityReservationConfiguration";
2014
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeactivateBdsCapacityReservationConfiguration";
2015
+ const pathParams = {
2016
+ "{bdsInstanceId}": deactivateBdsCapacityReservationConfigurationRequest.bdsInstanceId,
2017
+ "{bdsCapacityReservationConfigurationId}": deactivateBdsCapacityReservationConfigurationRequest.bdsCapacityReservationConfigurationId
2018
+ };
2019
+ const queryParams = {};
2020
+ let headerParams = {
2021
+ "Content-Type": common.Constants.APPLICATION_JSON,
2022
+ "opc-request-id": deactivateBdsCapacityReservationConfigurationRequest.opcRequestId,
2023
+ "opc-retry-token": deactivateBdsCapacityReservationConfigurationRequest.opcRetryToken,
2024
+ "if-match": deactivateBdsCapacityReservationConfigurationRequest.ifMatch
2025
+ };
2026
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2027
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deactivateBdsCapacityReservationConfigurationRequest.retryConfiguration, specRetryConfiguration);
2028
+ if (this.logger)
2029
+ retrier.logger = this.logger;
2030
+ const request = yield oci_common_2.composeRequest({
2031
+ baseEndpoint: this._endpoint,
2032
+ defaultHeaders: this._defaultHeaders,
2033
+ path: "/bdsInstances/{bdsInstanceId}/bdsCapacityReservationConfigurations/{bdsCapacityReservationConfigurationId}/actions/deactivate",
2034
+ method: "POST",
2035
+ pathParams: pathParams,
2036
+ headerParams: headerParams,
2037
+ queryParams: queryParams
2038
+ });
2039
+ try {
2040
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2041
+ const sdkResponse = oci_common_2.composeResponse({
2042
+ responseObject: {},
2043
+ body: yield response.json(),
2044
+ bodyKey: "bdsCapacityReservationConfiguration",
2045
+ bodyModel: model.BdsCapacityReservationConfiguration,
2046
+ type: "model.BdsCapacityReservationConfiguration",
2047
+ responseHeaders: [
2048
+ {
2049
+ value: response.headers.get("opc-request-id"),
2050
+ key: "opcRequestId",
2051
+ dataType: "string"
2052
+ },
2053
+ {
2054
+ value: response.headers.get("etag"),
2055
+ key: "etag",
2056
+ dataType: "string"
2057
+ }
2058
+ ]
2059
+ });
2060
+ return sdkResponse;
2061
+ }
2062
+ catch (err) {
2063
+ throw err;
2064
+ }
2065
+ });
2066
+ }
1718
2067
  /**
1719
2068
  * Deactivate the IAM user sync configuration.
1720
2069
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -1902,6 +2251,117 @@ class BdsClient {
1902
2251
  }
1903
2252
  });
1904
2253
  }
2254
+ /**
2255
+ * Deletes the BDS capacity reservation identified by the given ID.
2256
+ * This operation does not retry by default if the user has not defined a retry configuration.
2257
+ * @param DeleteBdsCapacityReservationRequest
2258
+ * @return DeleteBdsCapacityReservationResponse
2259
+ * @throws OciError when an error occurs
2260
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/DeleteBdsCapacityReservation.ts.html |here} to see how to use DeleteBdsCapacityReservation API.
2261
+ */
2262
+ deleteBdsCapacityReservation(deleteBdsCapacityReservationRequest) {
2263
+ return __awaiter(this, void 0, void 0, function* () {
2264
+ if (this.logger)
2265
+ this.logger.debug("Calling operation BdsClient#deleteBdsCapacityReservation.");
2266
+ const operationName = "deleteBdsCapacityReservation";
2267
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/DeleteBdsCapacityReservation";
2268
+ const pathParams = {
2269
+ "{bdsCapacityReservationId}": deleteBdsCapacityReservationRequest.bdsCapacityReservationId
2270
+ };
2271
+ const queryParams = {};
2272
+ let headerParams = {
2273
+ "Content-Type": common.Constants.APPLICATION_JSON,
2274
+ "if-match": deleteBdsCapacityReservationRequest.ifMatch,
2275
+ "opc-request-id": deleteBdsCapacityReservationRequest.opcRequestId
2276
+ };
2277
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2278
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBdsCapacityReservationRequest.retryConfiguration, specRetryConfiguration);
2279
+ if (this.logger)
2280
+ retrier.logger = this.logger;
2281
+ const request = yield oci_common_2.composeRequest({
2282
+ baseEndpoint: this._endpoint,
2283
+ defaultHeaders: this._defaultHeaders,
2284
+ path: "/bdsCapacityReservations/{bdsCapacityReservationId}",
2285
+ method: "DELETE",
2286
+ pathParams: pathParams,
2287
+ headerParams: headerParams,
2288
+ queryParams: queryParams
2289
+ });
2290
+ try {
2291
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2292
+ const sdkResponse = oci_common_2.composeResponse({
2293
+ responseObject: {},
2294
+ responseHeaders: [
2295
+ {
2296
+ value: response.headers.get("opc-request-id"),
2297
+ key: "opcRequestId",
2298
+ dataType: "string"
2299
+ }
2300
+ ]
2301
+ });
2302
+ return sdkResponse;
2303
+ }
2304
+ catch (err) {
2305
+ throw err;
2306
+ }
2307
+ });
2308
+ }
2309
+ /**
2310
+ * Deletes the BDS capacity reservation configuration identified by the given ID.
2311
+ * This operation does not retry by default if the user has not defined a retry configuration.
2312
+ * @param DeleteBdsCapacityReservationConfigurationRequest
2313
+ * @return DeleteBdsCapacityReservationConfigurationResponse
2314
+ * @throws OciError when an error occurs
2315
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/DeleteBdsCapacityReservationConfiguration.ts.html |here} to see how to use DeleteBdsCapacityReservationConfiguration API.
2316
+ */
2317
+ deleteBdsCapacityReservationConfiguration(deleteBdsCapacityReservationConfigurationRequest) {
2318
+ return __awaiter(this, void 0, void 0, function* () {
2319
+ if (this.logger)
2320
+ this.logger.debug("Calling operation BdsClient#deleteBdsCapacityReservationConfiguration.");
2321
+ const operationName = "deleteBdsCapacityReservationConfiguration";
2322
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeleteBdsCapacityReservationConfiguration";
2323
+ const pathParams = {
2324
+ "{bdsInstanceId}": deleteBdsCapacityReservationConfigurationRequest.bdsInstanceId,
2325
+ "{bdsCapacityReservationConfigurationId}": deleteBdsCapacityReservationConfigurationRequest.bdsCapacityReservationConfigurationId
2326
+ };
2327
+ const queryParams = {};
2328
+ let headerParams = {
2329
+ "Content-Type": common.Constants.APPLICATION_JSON,
2330
+ "if-match": deleteBdsCapacityReservationConfigurationRequest.ifMatch,
2331
+ "opc-request-id": deleteBdsCapacityReservationConfigurationRequest.opcRequestId
2332
+ };
2333
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2334
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBdsCapacityReservationConfigurationRequest.retryConfiguration, specRetryConfiguration);
2335
+ if (this.logger)
2336
+ retrier.logger = this.logger;
2337
+ const request = yield oci_common_2.composeRequest({
2338
+ baseEndpoint: this._endpoint,
2339
+ defaultHeaders: this._defaultHeaders,
2340
+ path: "/bdsInstances/{bdsInstanceId}/bdsCapacityReservationConfigurations/{bdsCapacityReservationConfigurationId}",
2341
+ method: "DELETE",
2342
+ pathParams: pathParams,
2343
+ headerParams: headerParams,
2344
+ queryParams: queryParams
2345
+ });
2346
+ try {
2347
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2348
+ const sdkResponse = oci_common_2.composeResponse({
2349
+ responseObject: {},
2350
+ responseHeaders: [
2351
+ {
2352
+ value: response.headers.get("opc-request-id"),
2353
+ key: "opcRequestId",
2354
+ dataType: "string"
2355
+ }
2356
+ ]
2357
+ });
2358
+ return sdkResponse;
2359
+ }
2360
+ catch (err) {
2361
+ throw err;
2362
+ }
2363
+ });
2364
+ }
1905
2365
  /**
1906
2366
  * Delete the BDS certificate configuration for the given ID.
1907
2367
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -2660,26 +3120,153 @@ class BdsClient {
2660
3120
  getBdsApiKey(getBdsApiKeyRequest) {
2661
3121
  return __awaiter(this, void 0, void 0, function* () {
2662
3122
  if (this.logger)
2663
- this.logger.debug("Calling operation BdsClient#getBdsApiKey.");
2664
- const operationName = "getBdsApiKey";
2665
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsApiKey/GetBdsApiKey";
3123
+ this.logger.debug("Calling operation BdsClient#getBdsApiKey.");
3124
+ const operationName = "getBdsApiKey";
3125
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsApiKey/GetBdsApiKey";
3126
+ const pathParams = {
3127
+ "{bdsInstanceId}": getBdsApiKeyRequest.bdsInstanceId,
3128
+ "{apiKeyId}": getBdsApiKeyRequest.apiKeyId
3129
+ };
3130
+ const queryParams = {};
3131
+ let headerParams = {
3132
+ "Content-Type": common.Constants.APPLICATION_JSON,
3133
+ "opc-request-id": getBdsApiKeyRequest.opcRequestId
3134
+ };
3135
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3136
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
3137
+ if (this.logger)
3138
+ retrier.logger = this.logger;
3139
+ const request = yield oci_common_2.composeRequest({
3140
+ baseEndpoint: this._endpoint,
3141
+ defaultHeaders: this._defaultHeaders,
3142
+ path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}",
3143
+ method: "GET",
3144
+ pathParams: pathParams,
3145
+ headerParams: headerParams,
3146
+ queryParams: queryParams
3147
+ });
3148
+ try {
3149
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3150
+ const sdkResponse = oci_common_2.composeResponse({
3151
+ responseObject: {},
3152
+ body: yield response.json(),
3153
+ bodyKey: "bdsApiKey",
3154
+ bodyModel: model.BdsApiKey,
3155
+ type: "model.BdsApiKey",
3156
+ responseHeaders: [
3157
+ {
3158
+ value: response.headers.get("opc-request-id"),
3159
+ key: "opcRequestId",
3160
+ dataType: "string"
3161
+ },
3162
+ {
3163
+ value: response.headers.get("etag"),
3164
+ key: "etag",
3165
+ dataType: "string"
3166
+ }
3167
+ ]
3168
+ });
3169
+ return sdkResponse;
3170
+ }
3171
+ catch (err) {
3172
+ throw err;
3173
+ }
3174
+ });
3175
+ }
3176
+ /**
3177
+ * Returns information about the BDS capacity reservation identified by the given ID.
3178
+ * This operation does not retry by default if the user has not defined a retry configuration.
3179
+ * @param GetBdsCapacityReservationRequest
3180
+ * @return GetBdsCapacityReservationResponse
3181
+ * @throws OciError when an error occurs
3182
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/GetBdsCapacityReservation.ts.html |here} to see how to use GetBdsCapacityReservation API.
3183
+ */
3184
+ getBdsCapacityReservation(getBdsCapacityReservationRequest) {
3185
+ return __awaiter(this, void 0, void 0, function* () {
3186
+ if (this.logger)
3187
+ this.logger.debug("Calling operation BdsClient#getBdsCapacityReservation.");
3188
+ const operationName = "getBdsCapacityReservation";
3189
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/GetBdsCapacityReservation";
3190
+ const pathParams = {
3191
+ "{bdsCapacityReservationId}": getBdsCapacityReservationRequest.bdsCapacityReservationId
3192
+ };
3193
+ const queryParams = {};
3194
+ let headerParams = {
3195
+ "Content-Type": common.Constants.APPLICATION_JSON,
3196
+ "opc-request-id": getBdsCapacityReservationRequest.opcRequestId
3197
+ };
3198
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3199
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBdsCapacityReservationRequest.retryConfiguration, specRetryConfiguration);
3200
+ if (this.logger)
3201
+ retrier.logger = this.logger;
3202
+ const request = yield oci_common_2.composeRequest({
3203
+ baseEndpoint: this._endpoint,
3204
+ defaultHeaders: this._defaultHeaders,
3205
+ path: "/bdsCapacityReservations/{bdsCapacityReservationId}",
3206
+ method: "GET",
3207
+ pathParams: pathParams,
3208
+ headerParams: headerParams,
3209
+ queryParams: queryParams
3210
+ });
3211
+ try {
3212
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3213
+ const sdkResponse = oci_common_2.composeResponse({
3214
+ responseObject: {},
3215
+ body: yield response.json(),
3216
+ bodyKey: "bdsCapacityReservation",
3217
+ bodyModel: model.BdsCapacityReservation,
3218
+ type: "model.BdsCapacityReservation",
3219
+ responseHeaders: [
3220
+ {
3221
+ value: response.headers.get("opc-request-id"),
3222
+ key: "opcRequestId",
3223
+ dataType: "string"
3224
+ },
3225
+ {
3226
+ value: response.headers.get("etag"),
3227
+ key: "etag",
3228
+ dataType: "string"
3229
+ }
3230
+ ]
3231
+ });
3232
+ return sdkResponse;
3233
+ }
3234
+ catch (err) {
3235
+ throw err;
3236
+ }
3237
+ });
3238
+ }
3239
+ /**
3240
+ * Returns information about the BDS capacity reservation configuration identified by the given ID.
3241
+ * This operation does not retry by default if the user has not defined a retry configuration.
3242
+ * @param GetBdsCapacityReservationConfigurationRequest
3243
+ * @return GetBdsCapacityReservationConfigurationResponse
3244
+ * @throws OciError when an error occurs
3245
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/GetBdsCapacityReservationConfiguration.ts.html |here} to see how to use GetBdsCapacityReservationConfiguration API.
3246
+ */
3247
+ getBdsCapacityReservationConfiguration(getBdsCapacityReservationConfigurationRequest) {
3248
+ return __awaiter(this, void 0, void 0, function* () {
3249
+ if (this.logger)
3250
+ this.logger.debug("Calling operation BdsClient#getBdsCapacityReservationConfiguration.");
3251
+ const operationName = "getBdsCapacityReservationConfiguration";
3252
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/GetBdsCapacityReservationConfiguration";
2666
3253
  const pathParams = {
2667
- "{bdsInstanceId}": getBdsApiKeyRequest.bdsInstanceId,
2668
- "{apiKeyId}": getBdsApiKeyRequest.apiKeyId
3254
+ "{bdsInstanceId}": getBdsCapacityReservationConfigurationRequest.bdsInstanceId,
3255
+ "{bdsCapacityReservationConfigurationId}": getBdsCapacityReservationConfigurationRequest.bdsCapacityReservationConfigurationId
2669
3256
  };
2670
3257
  const queryParams = {};
2671
3258
  let headerParams = {
2672
3259
  "Content-Type": common.Constants.APPLICATION_JSON,
2673
- "opc-request-id": getBdsApiKeyRequest.opcRequestId
3260
+ "opc-request-id": getBdsCapacityReservationConfigurationRequest.opcRequestId
2674
3261
  };
2675
3262
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2676
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBdsApiKeyRequest.retryConfiguration, specRetryConfiguration);
3263
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBdsCapacityReservationConfigurationRequest.retryConfiguration, specRetryConfiguration);
2677
3264
  if (this.logger)
2678
3265
  retrier.logger = this.logger;
2679
3266
  const request = yield oci_common_2.composeRequest({
2680
3267
  baseEndpoint: this._endpoint,
2681
3268
  defaultHeaders: this._defaultHeaders,
2682
- path: "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}",
3269
+ path: "/bdsInstances/{bdsInstanceId}/bdsCapacityReservationConfigurations/{bdsCapacityReservationConfigurationId}",
2683
3270
  method: "GET",
2684
3271
  pathParams: pathParams,
2685
3272
  headerParams: headerParams,
@@ -2690,9 +3277,9 @@ class BdsClient {
2690
3277
  const sdkResponse = oci_common_2.composeResponse({
2691
3278
  responseObject: {},
2692
3279
  body: yield response.json(),
2693
- bodyKey: "bdsApiKey",
2694
- bodyModel: model.BdsApiKey,
2695
- type: "model.BdsApiKey",
3280
+ bodyKey: "bdsCapacityReservationConfiguration",
3281
+ bodyModel: model.BdsCapacityReservationConfiguration,
3282
+ type: "model.BdsCapacityReservationConfiguration",
2696
3283
  responseHeaders: [
2697
3284
  {
2698
3285
  value: response.headers.get("opc-request-id"),
@@ -3844,6 +4431,219 @@ class BdsClient {
3844
4431
  listBdsApiKeysResponseIterator(request) {
3845
4432
  return oci_common_1.paginateResponses(request, req => this.listBdsApiKeys(req));
3846
4433
  }
4434
+ /**
4435
+ * Returns a list of BDS capacity reservation configurations associated with the specified BDS capacity reservation.
4436
+ *
4437
+ * This operation does not retry by default if the user has not defined a retry configuration.
4438
+ * @param ListBdsCapacityReservationAssociatedConfigurationsRequest
4439
+ * @return ListBdsCapacityReservationAssociatedConfigurationsResponse
4440
+ * @throws OciError when an error occurs
4441
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/ListBdsCapacityReservationAssociatedConfigurations.ts.html |here} to see how to use ListBdsCapacityReservationAssociatedConfigurations API.
4442
+ */
4443
+ listBdsCapacityReservationAssociatedConfigurations(listBdsCapacityReservationAssociatedConfigurationsRequest) {
4444
+ return __awaiter(this, void 0, void 0, function* () {
4445
+ if (this.logger)
4446
+ this.logger.debug("Calling operation BdsClient#listBdsCapacityReservationAssociatedConfigurations.");
4447
+ const operationName = "listBdsCapacityReservationAssociatedConfigurations";
4448
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationAssociatedConfigurations";
4449
+ const pathParams = {
4450
+ "{bdsCapacityReservationId}": listBdsCapacityReservationAssociatedConfigurationsRequest.bdsCapacityReservationId
4451
+ };
4452
+ const queryParams = {
4453
+ "compartmentId": listBdsCapacityReservationAssociatedConfigurationsRequest.compartmentId,
4454
+ "lifecycleState": listBdsCapacityReservationAssociatedConfigurationsRequest.lifecycleState,
4455
+ "page": listBdsCapacityReservationAssociatedConfigurationsRequest.page,
4456
+ "limit": listBdsCapacityReservationAssociatedConfigurationsRequest.limit,
4457
+ "sortBy": listBdsCapacityReservationAssociatedConfigurationsRequest.sortBy,
4458
+ "sortOrder": listBdsCapacityReservationAssociatedConfigurationsRequest.sortOrder,
4459
+ "displayName": listBdsCapacityReservationAssociatedConfigurationsRequest.displayName
4460
+ };
4461
+ let headerParams = {
4462
+ "Content-Type": common.Constants.APPLICATION_JSON,
4463
+ "opc-request-id": listBdsCapacityReservationAssociatedConfigurationsRequest.opcRequestId
4464
+ };
4465
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4466
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBdsCapacityReservationAssociatedConfigurationsRequest.retryConfiguration, specRetryConfiguration);
4467
+ if (this.logger)
4468
+ retrier.logger = this.logger;
4469
+ const request = yield oci_common_2.composeRequest({
4470
+ baseEndpoint: this._endpoint,
4471
+ defaultHeaders: this._defaultHeaders,
4472
+ path: "/bdsCapacityReservations/{bdsCapacityReservationId}/associatedConfigurations",
4473
+ method: "GET",
4474
+ pathParams: pathParams,
4475
+ headerParams: headerParams,
4476
+ queryParams: queryParams
4477
+ });
4478
+ try {
4479
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
4480
+ const sdkResponse = oci_common_2.composeResponse({
4481
+ responseObject: {},
4482
+ body: yield response.json(),
4483
+ bodyKey: "bdsCapacityReservationAssociatedConfigurationCollection",
4484
+ bodyModel: model.BdsCapacityReservationAssociatedConfigurationCollection,
4485
+ type: "model.BdsCapacityReservationAssociatedConfigurationCollection",
4486
+ responseHeaders: [
4487
+ {
4488
+ value: response.headers.get("opc-request-id"),
4489
+ key: "opcRequestId",
4490
+ dataType: "string"
4491
+ },
4492
+ {
4493
+ value: response.headers.get("opc-next-page"),
4494
+ key: "opcNextPage",
4495
+ dataType: "string"
4496
+ }
4497
+ ]
4498
+ });
4499
+ return sdkResponse;
4500
+ }
4501
+ catch (err) {
4502
+ throw err;
4503
+ }
4504
+ });
4505
+ }
4506
+ /**
4507
+ * Returns a list of BDS capacity reservation configurations for the specified BDS cluster.
4508
+ *
4509
+ * This operation does not retry by default if the user has not defined a retry configuration.
4510
+ * @param ListBdsCapacityReservationConfigurationsRequest
4511
+ * @return ListBdsCapacityReservationConfigurationsResponse
4512
+ * @throws OciError when an error occurs
4513
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/ListBdsCapacityReservationConfigurations.ts.html |here} to see how to use ListBdsCapacityReservationConfigurations API.
4514
+ */
4515
+ listBdsCapacityReservationConfigurations(listBdsCapacityReservationConfigurationsRequest) {
4516
+ return __awaiter(this, void 0, void 0, function* () {
4517
+ if (this.logger)
4518
+ this.logger.debug("Calling operation BdsClient#listBdsCapacityReservationConfigurations.");
4519
+ const operationName = "listBdsCapacityReservationConfigurations";
4520
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationConfigurations";
4521
+ const pathParams = {
4522
+ "{bdsInstanceId}": listBdsCapacityReservationConfigurationsRequest.bdsInstanceId
4523
+ };
4524
+ const queryParams = {
4525
+ "lifecycleState": listBdsCapacityReservationConfigurationsRequest.lifecycleState,
4526
+ "page": listBdsCapacityReservationConfigurationsRequest.page,
4527
+ "limit": listBdsCapacityReservationConfigurationsRequest.limit,
4528
+ "sortBy": listBdsCapacityReservationConfigurationsRequest.sortBy,
4529
+ "sortOrder": listBdsCapacityReservationConfigurationsRequest.sortOrder,
4530
+ "displayName": listBdsCapacityReservationConfigurationsRequest.displayName
4531
+ };
4532
+ let headerParams = {
4533
+ "Content-Type": common.Constants.APPLICATION_JSON,
4534
+ "opc-request-id": listBdsCapacityReservationConfigurationsRequest.opcRequestId
4535
+ };
4536
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4537
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBdsCapacityReservationConfigurationsRequest.retryConfiguration, specRetryConfiguration);
4538
+ if (this.logger)
4539
+ retrier.logger = this.logger;
4540
+ const request = yield oci_common_2.composeRequest({
4541
+ baseEndpoint: this._endpoint,
4542
+ defaultHeaders: this._defaultHeaders,
4543
+ path: "/bdsInstances/{bdsInstanceId}/bdsCapacityReservationConfigurations",
4544
+ method: "GET",
4545
+ pathParams: pathParams,
4546
+ headerParams: headerParams,
4547
+ queryParams: queryParams
4548
+ });
4549
+ try {
4550
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
4551
+ const sdkResponse = oci_common_2.composeResponse({
4552
+ responseObject: {},
4553
+ body: yield response.json(),
4554
+ bodyKey: "bdsCapacityReservationConfigurationCollection",
4555
+ bodyModel: model.BdsCapacityReservationConfigurationCollection,
4556
+ type: "model.BdsCapacityReservationConfigurationCollection",
4557
+ responseHeaders: [
4558
+ {
4559
+ value: response.headers.get("opc-request-id"),
4560
+ key: "opcRequestId",
4561
+ dataType: "string"
4562
+ },
4563
+ {
4564
+ value: response.headers.get("opc-next-page"),
4565
+ key: "opcNextPage",
4566
+ dataType: "string"
4567
+ }
4568
+ ]
4569
+ });
4570
+ return sdkResponse;
4571
+ }
4572
+ catch (err) {
4573
+ throw err;
4574
+ }
4575
+ });
4576
+ }
4577
+ /**
4578
+ * Returns a list of BDS capacity reservations in a compartment.
4579
+ *
4580
+ * This operation does not retry by default if the user has not defined a retry configuration.
4581
+ * @param ListBdsCapacityReservationsRequest
4582
+ * @return ListBdsCapacityReservationsResponse
4583
+ * @throws OciError when an error occurs
4584
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/ListBdsCapacityReservations.ts.html |here} to see how to use ListBdsCapacityReservations API.
4585
+ */
4586
+ listBdsCapacityReservations(listBdsCapacityReservationsRequest) {
4587
+ return __awaiter(this, void 0, void 0, function* () {
4588
+ if (this.logger)
4589
+ this.logger.debug("Calling operation BdsClient#listBdsCapacityReservations.");
4590
+ const operationName = "listBdsCapacityReservations";
4591
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ListBdsCapacityReservations";
4592
+ const pathParams = {};
4593
+ const queryParams = {
4594
+ "compartmentId": listBdsCapacityReservationsRequest.compartmentId,
4595
+ "lifecycleState": listBdsCapacityReservationsRequest.lifecycleState,
4596
+ "page": listBdsCapacityReservationsRequest.page,
4597
+ "limit": listBdsCapacityReservationsRequest.limit,
4598
+ "sortBy": listBdsCapacityReservationsRequest.sortBy,
4599
+ "sortOrder": listBdsCapacityReservationsRequest.sortOrder,
4600
+ "displayName": listBdsCapacityReservationsRequest.displayName
4601
+ };
4602
+ let headerParams = {
4603
+ "Content-Type": common.Constants.APPLICATION_JSON,
4604
+ "opc-request-id": listBdsCapacityReservationsRequest.opcRequestId
4605
+ };
4606
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4607
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBdsCapacityReservationsRequest.retryConfiguration, specRetryConfiguration);
4608
+ if (this.logger)
4609
+ retrier.logger = this.logger;
4610
+ const request = yield oci_common_2.composeRequest({
4611
+ baseEndpoint: this._endpoint,
4612
+ defaultHeaders: this._defaultHeaders,
4613
+ path: "/bdsCapacityReservations",
4614
+ method: "GET",
4615
+ pathParams: pathParams,
4616
+ headerParams: headerParams,
4617
+ queryParams: queryParams
4618
+ });
4619
+ try {
4620
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
4621
+ const sdkResponse = oci_common_2.composeResponse({
4622
+ responseObject: {},
4623
+ body: yield response.json(),
4624
+ bodyKey: "bdsCapacityReservationCollection",
4625
+ bodyModel: model.BdsCapacityReservationCollection,
4626
+ type: "model.BdsCapacityReservationCollection",
4627
+ responseHeaders: [
4628
+ {
4629
+ value: response.headers.get("opc-request-id"),
4630
+ key: "opcRequestId",
4631
+ dataType: "string"
4632
+ },
4633
+ {
4634
+ value: response.headers.get("opc-next-page"),
4635
+ key: "opcNextPage",
4636
+ dataType: "string"
4637
+ }
4638
+ ]
4639
+ });
4640
+ return sdkResponse;
4641
+ }
4642
+ catch (err) {
4643
+ throw err;
4644
+ }
4645
+ });
4646
+ }
3847
4647
  /**
3848
4648
  * Returns a list of BDS certificate configurations associated with this Big Data Service cluster.
3849
4649
  *
@@ -6770,6 +7570,139 @@ class BdsClient {
6770
7570
  }
6771
7571
  });
6772
7572
  }
7573
+ /**
7574
+ * Updates the BDS capacity reservation identified by the given ID.
7575
+ * This operation does not retry by default if the user has not defined a retry configuration.
7576
+ * @param UpdateBdsCapacityReservationRequest
7577
+ * @return UpdateBdsCapacityReservationResponse
7578
+ * @throws OciError when an error occurs
7579
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/UpdateBdsCapacityReservation.ts.html |here} to see how to use UpdateBdsCapacityReservation API.
7580
+ */
7581
+ updateBdsCapacityReservation(updateBdsCapacityReservationRequest) {
7582
+ return __awaiter(this, void 0, void 0, function* () {
7583
+ if (this.logger)
7584
+ this.logger.debug("Calling operation BdsClient#updateBdsCapacityReservation.");
7585
+ const operationName = "updateBdsCapacityReservation";
7586
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/UpdateBdsCapacityReservation";
7587
+ const pathParams = {
7588
+ "{bdsCapacityReservationId}": updateBdsCapacityReservationRequest.bdsCapacityReservationId
7589
+ };
7590
+ const queryParams = {};
7591
+ let headerParams = {
7592
+ "Content-Type": common.Constants.APPLICATION_JSON,
7593
+ "if-match": updateBdsCapacityReservationRequest.ifMatch,
7594
+ "opc-request-id": updateBdsCapacityReservationRequest.opcRequestId,
7595
+ "opc-retry-token": updateBdsCapacityReservationRequest.opcRetryToken
7596
+ };
7597
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
7598
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBdsCapacityReservationRequest.retryConfiguration, specRetryConfiguration);
7599
+ if (this.logger)
7600
+ retrier.logger = this.logger;
7601
+ const request = yield oci_common_2.composeRequest({
7602
+ baseEndpoint: this._endpoint,
7603
+ defaultHeaders: this._defaultHeaders,
7604
+ path: "/bdsCapacityReservations/{bdsCapacityReservationId}",
7605
+ method: "PUT",
7606
+ bodyContent: common.ObjectSerializer.serialize(updateBdsCapacityReservationRequest.updateBdsCapacityReservationDetails, "UpdateBdsCapacityReservationDetails", model.UpdateBdsCapacityReservationDetails.getJsonObj),
7607
+ pathParams: pathParams,
7608
+ headerParams: headerParams,
7609
+ queryParams: queryParams
7610
+ });
7611
+ try {
7612
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7613
+ const sdkResponse = oci_common_2.composeResponse({
7614
+ responseObject: {},
7615
+ body: yield response.json(),
7616
+ bodyKey: "bdsCapacityReservation",
7617
+ bodyModel: model.BdsCapacityReservation,
7618
+ type: "model.BdsCapacityReservation",
7619
+ responseHeaders: [
7620
+ {
7621
+ value: response.headers.get("opc-request-id"),
7622
+ key: "opcRequestId",
7623
+ dataType: "string"
7624
+ },
7625
+ {
7626
+ value: response.headers.get("etag"),
7627
+ key: "etag",
7628
+ dataType: "string"
7629
+ }
7630
+ ]
7631
+ });
7632
+ return sdkResponse;
7633
+ }
7634
+ catch (err) {
7635
+ throw err;
7636
+ }
7637
+ });
7638
+ }
7639
+ /**
7640
+ * Updates the BDS capacity reservation configuration identified by the given ID.
7641
+ * This operation does not retry by default if the user has not defined a retry configuration.
7642
+ * @param UpdateBdsCapacityReservationConfigurationRequest
7643
+ * @return UpdateBdsCapacityReservationConfigurationResponse
7644
+ * @throws OciError when an error occurs
7645
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/bds/UpdateBdsCapacityReservationConfiguration.ts.html |here} to see how to use UpdateBdsCapacityReservationConfiguration API.
7646
+ */
7647
+ updateBdsCapacityReservationConfiguration(updateBdsCapacityReservationConfigurationRequest) {
7648
+ return __awaiter(this, void 0, void 0, function* () {
7649
+ if (this.logger)
7650
+ this.logger.debug("Calling operation BdsClient#updateBdsCapacityReservationConfiguration.");
7651
+ const operationName = "updateBdsCapacityReservationConfiguration";
7652
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/UpdateBdsCapacityReservationConfiguration";
7653
+ const pathParams = {
7654
+ "{bdsInstanceId}": updateBdsCapacityReservationConfigurationRequest.bdsInstanceId,
7655
+ "{bdsCapacityReservationConfigurationId}": updateBdsCapacityReservationConfigurationRequest.bdsCapacityReservationConfigurationId
7656
+ };
7657
+ const queryParams = {};
7658
+ let headerParams = {
7659
+ "Content-Type": common.Constants.APPLICATION_JSON,
7660
+ "if-match": updateBdsCapacityReservationConfigurationRequest.ifMatch,
7661
+ "opc-request-id": updateBdsCapacityReservationConfigurationRequest.opcRequestId,
7662
+ "opc-retry-token": updateBdsCapacityReservationConfigurationRequest.opcRetryToken
7663
+ };
7664
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
7665
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBdsCapacityReservationConfigurationRequest.retryConfiguration, specRetryConfiguration);
7666
+ if (this.logger)
7667
+ retrier.logger = this.logger;
7668
+ const request = yield oci_common_2.composeRequest({
7669
+ baseEndpoint: this._endpoint,
7670
+ defaultHeaders: this._defaultHeaders,
7671
+ path: "/bdsInstances/{bdsInstanceId}/bdsCapacityReservationConfigurations/{bdsCapacityReservationConfigurationId}",
7672
+ method: "PUT",
7673
+ bodyContent: common.ObjectSerializer.serialize(updateBdsCapacityReservationConfigurationRequest.updateBdsCapacityReservationConfigurationDetails, "UpdateBdsCapacityReservationConfigurationDetails", model.UpdateBdsCapacityReservationConfigurationDetails.getJsonObj),
7674
+ pathParams: pathParams,
7675
+ headerParams: headerParams,
7676
+ queryParams: queryParams
7677
+ });
7678
+ try {
7679
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
7680
+ const sdkResponse = oci_common_2.composeResponse({
7681
+ responseObject: {},
7682
+ body: yield response.json(),
7683
+ bodyKey: "bdsCapacityReservationConfiguration",
7684
+ bodyModel: model.BdsCapacityReservationConfiguration,
7685
+ type: "model.BdsCapacityReservationConfiguration",
7686
+ responseHeaders: [
7687
+ {
7688
+ value: response.headers.get("opc-request-id"),
7689
+ key: "opcRequestId",
7690
+ dataType: "string"
7691
+ },
7692
+ {
7693
+ value: response.headers.get("etag"),
7694
+ key: "etag",
7695
+ dataType: "string"
7696
+ }
7697
+ ]
7698
+ });
7699
+ return sdkResponse;
7700
+ }
7701
+ catch (err) {
7702
+ throw err;
7703
+ }
7704
+ });
7705
+ }
6773
7706
  /**
6774
7707
  * Updates the Big Data Service cluster identified by the given ID.
6775
7708
  * This operation does not retry by default if the user has not defined a retry configuration.