oci-containerengine 2.54.0 → 2.55.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 (224) hide show
  1. package/lib/client.d.ts +308 -22
  2. package/lib/client.js +1229 -124
  3. package/lib/client.js.map +1 -1
  4. package/lib/containerengine-waiter.d.ts +24 -0
  5. package/lib/containerengine-waiter.js +36 -0
  6. package/lib/containerengine-waiter.js.map +1 -1
  7. package/lib/model/addon-configuration.d.ts +32 -0
  8. package/lib/model/addon-configuration.js +32 -0
  9. package/lib/model/addon-configuration.js.map +1 -0
  10. package/lib/model/addon-error.d.ts +36 -0
  11. package/lib/model/addon-error.js +32 -0
  12. package/lib/model/addon-error.js.map +1 -0
  13. package/lib/model/addon-lifecycle-state.d.ts +36 -0
  14. package/lib/model/addon-lifecycle-state.js +47 -0
  15. package/lib/model/addon-lifecycle-state.js.map +1 -0
  16. package/lib/model/addon-option-summary.d.ts +96 -0
  17. package/lib/model/addon-option-summary.js +74 -0
  18. package/lib/model/addon-option-summary.js.map +1 -0
  19. package/lib/model/addon-summary.d.ts +49 -0
  20. package/lib/model/addon-summary.js +58 -0
  21. package/lib/model/addon-summary.js.map +1 -0
  22. package/lib/model/addon-version-configuration.d.ts +44 -0
  23. package/lib/model/addon-version-configuration.js +32 -0
  24. package/lib/model/addon-version-configuration.js.map +1 -0
  25. package/lib/model/addon-versions.d.ts +56 -0
  26. package/lib/model/addon-versions.js +82 -0
  27. package/lib/model/addon-versions.js.map +1 -0
  28. package/lib/model/addon.d.ts +53 -0
  29. package/lib/model/addon.js +68 -0
  30. package/lib/model/addon.js.map +1 -0
  31. package/lib/model/cluster-summary.d.ts +4 -0
  32. package/lib/model/cluster-summary.js.map +1 -1
  33. package/lib/model/cluster-type.d.ts +31 -0
  34. package/lib/model/cluster-type.js +42 -0
  35. package/lib/model/cluster-type.js.map +1 -0
  36. package/lib/model/cluster.d.ts +4 -0
  37. package/lib/model/cluster.js.map +1 -1
  38. package/lib/model/create-cluster-details.d.ts +4 -0
  39. package/lib/model/create-cluster-details.js.map +1 -1
  40. package/lib/model/create-virtual-node-pool-details.d.ts +82 -0
  41. package/lib/model/create-virtual-node-pool-details.js +96 -0
  42. package/lib/model/create-virtual-node-pool-details.js.map +1 -0
  43. package/lib/model/index.d.ts +62 -0
  44. package/lib/model/index.js +64 -2
  45. package/lib/model/index.js.map +1 -1
  46. package/lib/model/initial-virtual-node-label.d.ts +32 -0
  47. package/lib/model/initial-virtual-node-label.js +32 -0
  48. package/lib/model/initial-virtual-node-label.js.map +1 -0
  49. package/lib/model/install-addon-details.d.ts +37 -0
  50. package/lib/model/install-addon-details.js +64 -0
  51. package/lib/model/install-addon-details.js.map +1 -0
  52. package/lib/model/kubernetes-versions-filters.d.ts +37 -0
  53. package/lib/model/kubernetes-versions-filters.js +32 -0
  54. package/lib/model/kubernetes-versions-filters.js.map +1 -0
  55. package/lib/model/placement-configuration.d.ts +38 -0
  56. package/lib/model/placement-configuration.js +32 -0
  57. package/lib/model/placement-configuration.js.map +1 -0
  58. package/lib/model/pod-configuration.d.ts +36 -0
  59. package/lib/model/pod-configuration.js +32 -0
  60. package/lib/model/pod-configuration.js.map +1 -0
  61. package/lib/model/pod-shape-summary.d.ts +45 -0
  62. package/lib/model/pod-shape-summary.js +84 -0
  63. package/lib/model/pod-shape-summary.js.map +1 -0
  64. package/lib/model/pod-shape.d.ts +45 -0
  65. package/lib/model/pod-shape.js +84 -0
  66. package/lib/model/pod-shape.js.map +1 -0
  67. package/lib/model/shape-memory-options.d.ts +44 -0
  68. package/lib/model/shape-memory-options.js +32 -0
  69. package/lib/model/shape-memory-options.js.map +1 -0
  70. package/lib/model/shape-network-bandwidth-options.d.ts +36 -0
  71. package/lib/model/shape-network-bandwidth-options.js +32 -0
  72. package/lib/model/shape-network-bandwidth-options.js.map +1 -0
  73. package/lib/model/shape-ocpu-options.d.ts +32 -0
  74. package/lib/model/shape-ocpu-options.js +32 -0
  75. package/lib/model/shape-ocpu-options.js.map +1 -0
  76. package/lib/model/taint.d.ts +36 -0
  77. package/lib/model/taint.js +32 -0
  78. package/lib/model/taint.js.map +1 -0
  79. package/lib/model/update-addon-details.d.ts +33 -0
  80. package/lib/model/update-addon-details.js +64 -0
  81. package/lib/model/update-addon-details.js.map +1 -0
  82. package/lib/model/update-cluster-details.d.ts +4 -0
  83. package/lib/model/update-cluster-details.js.map +1 -1
  84. package/lib/model/update-virtual-node-details.d.ts +29 -0
  85. package/lib/model/update-virtual-node-details.js +32 -0
  86. package/lib/model/update-virtual-node-details.js.map +1 -0
  87. package/lib/model/update-virtual-node-pool-details.d.ts +74 -0
  88. package/lib/model/update-virtual-node-pool-details.js +96 -0
  89. package/lib/model/update-virtual-node-pool-details.js.map +1 -0
  90. package/lib/model/virtual-node-lifecycle-state.d.ts +36 -0
  91. package/lib/model/virtual-node-lifecycle-state.js +47 -0
  92. package/lib/model/virtual-node-lifecycle-state.js.map +1 -0
  93. package/lib/model/virtual-node-pool-lifecycle-state.d.ts +36 -0
  94. package/lib/model/virtual-node-pool-lifecycle-state.js +47 -0
  95. package/lib/model/virtual-node-pool-lifecycle-state.js.map +1 -0
  96. package/lib/model/virtual-node-pool-summary.d.ts +116 -0
  97. package/lib/model/virtual-node-pool-summary.js +96 -0
  98. package/lib/model/virtual-node-pool-summary.js.map +1 -0
  99. package/lib/model/virtual-node-pool.d.ts +116 -0
  100. package/lib/model/virtual-node-pool.js +96 -0
  101. package/lib/model/virtual-node-pool.js.map +1 -0
  102. package/lib/model/virtual-node-summary.d.ts +107 -0
  103. package/lib/model/virtual-node-summary.js +32 -0
  104. package/lib/model/virtual-node-summary.js.map +1 -0
  105. package/lib/model/virtual-node-tags.d.ts +44 -0
  106. package/lib/model/virtual-node-tags.js +32 -0
  107. package/lib/model/virtual-node-tags.js.map +1 -0
  108. package/lib/model/virtual-node.d.ts +107 -0
  109. package/lib/model/virtual-node.js +32 -0
  110. package/lib/model/virtual-node.js.map +1 -0
  111. package/lib/model/work-request-operation-type.d.ts +8 -0
  112. package/lib/model/work-request-operation-type.js +8 -0
  113. package/lib/model/work-request-operation-type.js.map +1 -1
  114. package/lib/request/cluster-migrate-to-native-vcn-request.d.ts +1 -1
  115. package/lib/request/create-cluster-request.d.ts +1 -1
  116. package/lib/request/create-kubeconfig-request.d.ts +1 -1
  117. package/lib/request/create-node-pool-request.d.ts +1 -1
  118. package/lib/request/create-virtual-node-pool-request.d.ts +35 -0
  119. package/lib/request/create-virtual-node-pool-request.js +15 -0
  120. package/lib/request/create-virtual-node-pool-request.js.map +1 -0
  121. package/lib/request/delete-cluster-request.d.ts +1 -1
  122. package/lib/request/delete-node-pool-request.d.ts +1 -1
  123. package/lib/request/delete-node-request.d.ts +1 -1
  124. package/lib/request/delete-virtual-node-pool-request.d.ts +45 -0
  125. package/lib/request/delete-virtual-node-pool-request.js +15 -0
  126. package/lib/request/delete-virtual-node-pool-request.js.map +1 -0
  127. package/lib/request/delete-work-request-request.d.ts +1 -1
  128. package/lib/request/disable-addon-request.d.ts +43 -0
  129. package/lib/request/disable-addon-request.js +15 -0
  130. package/lib/request/disable-addon-request.js.map +1 -0
  131. package/lib/request/get-addon-request.d.ts +32 -0
  132. package/lib/request/get-addon-request.js +15 -0
  133. package/lib/request/get-addon-request.js.map +1 -0
  134. package/lib/request/get-cluster-migrate-to-native-vcn-status-request.d.ts +1 -1
  135. package/lib/request/get-cluster-options-request.d.ts +1 -1
  136. package/lib/request/get-cluster-request.d.ts +1 -1
  137. package/lib/request/get-node-pool-options-request.d.ts +1 -1
  138. package/lib/request/get-node-pool-request.d.ts +1 -1
  139. package/lib/request/get-virtual-node-pool-request.d.ts +28 -0
  140. package/lib/request/get-virtual-node-pool-request.js +15 -0
  141. package/lib/request/get-virtual-node-pool-request.js.map +1 -0
  142. package/lib/request/get-virtual-node-request.d.ts +32 -0
  143. package/lib/request/get-virtual-node-request.js +15 -0
  144. package/lib/request/get-virtual-node-request.js.map +1 -0
  145. package/lib/request/get-work-request-request.d.ts +1 -1
  146. package/lib/request/index.d.ts +28 -0
  147. package/lib/request/index.js +11 -1
  148. package/lib/request/index.js.map +1 -1
  149. package/lib/request/install-addon-request.d.ts +46 -0
  150. package/lib/request/install-addon-request.js +15 -0
  151. package/lib/request/install-addon-request.js.map +1 -0
  152. package/lib/request/list-addon-options-request.d.ts +60 -0
  153. package/lib/request/list-addon-options-request.js +24 -0
  154. package/lib/request/list-addon-options-request.js.map +1 -0
  155. package/lib/request/list-addons-request.d.ts +56 -0
  156. package/lib/request/list-addons-request.js +24 -0
  157. package/lib/request/list-addons-request.js.map +1 -0
  158. package/lib/request/list-clusters-request.d.ts +1 -1
  159. package/lib/request/list-node-pools-request.d.ts +1 -1
  160. package/lib/request/list-pod-shapes-request.d.ts +65 -0
  161. package/lib/request/list-pod-shapes-request.js +25 -0
  162. package/lib/request/list-pod-shapes-request.js.map +1 -0
  163. package/lib/request/list-virtual-node-pools-request.d.ts +69 -0
  164. package/lib/request/list-virtual-node-pools-request.js +25 -0
  165. package/lib/request/list-virtual-node-pools-request.js.map +1 -0
  166. package/lib/request/list-virtual-nodes-request.d.ts +61 -0
  167. package/lib/request/list-virtual-nodes-request.js +25 -0
  168. package/lib/request/list-virtual-nodes-request.js.map +1 -0
  169. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  170. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  171. package/lib/request/list-work-requests-request.d.ts +1 -1
  172. package/lib/request/update-addon-request.d.ts +44 -0
  173. package/lib/request/update-addon-request.js +15 -0
  174. package/lib/request/update-addon-request.js.map +1 -0
  175. package/lib/request/update-cluster-endpoint-config-request.d.ts +1 -1
  176. package/lib/request/update-cluster-request.d.ts +1 -1
  177. package/lib/request/update-node-pool-request.d.ts +1 -1
  178. package/lib/request/update-virtual-node-pool-request.d.ts +40 -0
  179. package/lib/request/update-virtual-node-pool-request.js +15 -0
  180. package/lib/request/update-virtual-node-pool-request.js.map +1 -0
  181. package/lib/response/create-virtual-node-pool-response.d.ts +22 -0
  182. package/lib/response/create-virtual-node-pool-response.js +15 -0
  183. package/lib/response/create-virtual-node-pool-response.js.map +1 -0
  184. package/lib/response/delete-virtual-node-pool-response.d.ts +22 -0
  185. package/lib/response/delete-virtual-node-pool-response.js +15 -0
  186. package/lib/response/delete-virtual-node-pool-response.js.map +1 -0
  187. package/lib/response/disable-addon-response.d.ts +22 -0
  188. package/lib/response/disable-addon-response.js +15 -0
  189. package/lib/response/disable-addon-response.js.map +1 -0
  190. package/lib/response/get-addon-response.d.ts +29 -0
  191. package/lib/response/get-addon-response.js +15 -0
  192. package/lib/response/get-addon-response.js.map +1 -0
  193. package/lib/response/get-virtual-node-pool-response.d.ts +29 -0
  194. package/lib/response/get-virtual-node-pool-response.js +15 -0
  195. package/lib/response/get-virtual-node-pool-response.js.map +1 -0
  196. package/lib/response/get-virtual-node-response.d.ts +29 -0
  197. package/lib/response/get-virtual-node-response.js +15 -0
  198. package/lib/response/get-virtual-node-response.js.map +1 -0
  199. package/lib/response/index.d.ts +28 -0
  200. package/lib/response/install-addon-response.d.ts +22 -0
  201. package/lib/response/install-addon-response.js +15 -0
  202. package/lib/response/install-addon-response.js.map +1 -0
  203. package/lib/response/list-addon-options-response.d.ts +31 -0
  204. package/lib/response/list-addon-options-response.js +15 -0
  205. package/lib/response/list-addon-options-response.js.map +1 -0
  206. package/lib/response/list-addons-response.d.ts +31 -0
  207. package/lib/response/list-addons-response.js +15 -0
  208. package/lib/response/list-addons-response.js.map +1 -0
  209. package/lib/response/list-pod-shapes-response.d.ts +31 -0
  210. package/lib/response/list-pod-shapes-response.js +15 -0
  211. package/lib/response/list-pod-shapes-response.js.map +1 -0
  212. package/lib/response/list-virtual-node-pools-response.d.ts +31 -0
  213. package/lib/response/list-virtual-node-pools-response.js +15 -0
  214. package/lib/response/list-virtual-node-pools-response.js.map +1 -0
  215. package/lib/response/list-virtual-nodes-response.d.ts +31 -0
  216. package/lib/response/list-virtual-nodes-response.js +15 -0
  217. package/lib/response/list-virtual-nodes-response.js.map +1 -0
  218. package/lib/response/update-addon-response.d.ts +22 -0
  219. package/lib/response/update-addon-response.js +15 -0
  220. package/lib/response/update-addon-response.js.map +1 -0
  221. package/lib/response/update-virtual-node-pool-response.d.ts +22 -0
  222. package/lib/response/update-virtual-node-pool-response.js +15 -0
  223. package/lib/response/update-virtual-node-pool-response.js.map +1 -0
  224. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -160,7 +160,7 @@ class ContainerEngineClient {
160
160
  * @param ClusterMigrateToNativeVcnRequest
161
161
  * @return ClusterMigrateToNativeVcnResponse
162
162
  * @throws OciError when an error occurs
163
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/ClusterMigrateToNativeVcn.ts.html |here} to see how to use ClusterMigrateToNativeVcn API.
163
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ClusterMigrateToNativeVcn.ts.html |here} to see how to use ClusterMigrateToNativeVcn API.
164
164
  */
165
165
  clusterMigrateToNativeVcn(clusterMigrateToNativeVcnRequest) {
166
166
  return __awaiter(this, void 0, void 0, function* () {
@@ -221,7 +221,7 @@ class ContainerEngineClient {
221
221
  * @param CreateClusterRequest
222
222
  * @return CreateClusterResponse
223
223
  * @throws OciError when an error occurs
224
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/CreateCluster.ts.html |here} to see how to use CreateCluster API.
224
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/CreateCluster.ts.html |here} to see how to use CreateCluster API.
225
225
  */
226
226
  createCluster(createClusterRequest) {
227
227
  return __awaiter(this, void 0, void 0, function* () {
@@ -280,7 +280,7 @@ class ContainerEngineClient {
280
280
  * @param CreateKubeconfigRequest
281
281
  * @return CreateKubeconfigResponse
282
282
  * @throws OciError when an error occurs
283
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/CreateKubeconfig.ts.html |here} to see how to use CreateKubeconfig API.
283
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/CreateKubeconfig.ts.html |here} to see how to use CreateKubeconfig API.
284
284
  */
285
285
  createKubeconfig(createKubeconfigRequest) {
286
286
  return __awaiter(this, void 0, void 0, function* () {
@@ -338,7 +338,7 @@ class ContainerEngineClient {
338
338
  * @param CreateNodePoolRequest
339
339
  * @return CreateNodePoolResponse
340
340
  * @throws OciError when an error occurs
341
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/CreateNodePool.ts.html |here} to see how to use CreateNodePool API.
341
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/CreateNodePool.ts.html |here} to see how to use CreateNodePool API.
342
342
  */
343
343
  createNodePool(createNodePoolRequest) {
344
344
  return __awaiter(this, void 0, void 0, function* () {
@@ -391,13 +391,72 @@ class ContainerEngineClient {
391
391
  }
392
392
  });
393
393
  }
394
+ /**
395
+ * Create a new virtual node pool.
396
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
397
+ * @param CreateVirtualNodePoolRequest
398
+ * @return CreateVirtualNodePoolResponse
399
+ * @throws OciError when an error occurs
400
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/CreateVirtualNodePool.ts.html |here} to see how to use CreateVirtualNodePool API.
401
+ */
402
+ createVirtualNodePool(createVirtualNodePoolRequest) {
403
+ return __awaiter(this, void 0, void 0, function* () {
404
+ if (this.logger)
405
+ this.logger.debug("Calling operation ContainerEngineClient#createVirtualNodePool.");
406
+ const operationName = "createVirtualNodePool";
407
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/CreateVirtualNodePool";
408
+ const pathParams = {};
409
+ const queryParams = {};
410
+ let headerParams = {
411
+ "Content-Type": common.Constants.APPLICATION_JSON,
412
+ "opc-retry-token": createVirtualNodePoolRequest.opcRetryToken,
413
+ "opc-request-id": createVirtualNodePoolRequest.opcRequestId
414
+ };
415
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
416
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVirtualNodePoolRequest.retryConfiguration, specRetryConfiguration);
417
+ if (this.logger)
418
+ retrier.logger = this.logger;
419
+ const request = yield oci_common_2.composeRequest({
420
+ baseEndpoint: this._endpoint,
421
+ defaultHeaders: this._defaultHeaders,
422
+ path: "/virtualNodePools",
423
+ method: "POST",
424
+ bodyContent: common.ObjectSerializer.serialize(createVirtualNodePoolRequest.createVirtualNodePoolDetails, "CreateVirtualNodePoolDetails", model.CreateVirtualNodePoolDetails.getJsonObj),
425
+ pathParams: pathParams,
426
+ headerParams: headerParams,
427
+ queryParams: queryParams
428
+ });
429
+ try {
430
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
431
+ const sdkResponse = oci_common_2.composeResponse({
432
+ responseObject: {},
433
+ responseHeaders: [
434
+ {
435
+ value: response.headers.get("opc-work-request-id"),
436
+ key: "opcWorkRequestId",
437
+ dataType: "string"
438
+ },
439
+ {
440
+ value: response.headers.get("opc-request-id"),
441
+ key: "opcRequestId",
442
+ dataType: "string"
443
+ }
444
+ ]
445
+ });
446
+ return sdkResponse;
447
+ }
448
+ catch (err) {
449
+ throw err;
450
+ }
451
+ });
452
+ }
394
453
  /**
395
454
  * Delete a cluster.
396
455
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
397
456
  * @param DeleteClusterRequest
398
457
  * @return DeleteClusterResponse
399
458
  * @throws OciError when an error occurs
400
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/DeleteCluster.ts.html |here} to see how to use DeleteCluster API.
459
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/DeleteCluster.ts.html |here} to see how to use DeleteCluster API.
401
460
  */
402
461
  deleteCluster(deleteClusterRequest) {
403
462
  return __awaiter(this, void 0, void 0, function* () {
@@ -457,7 +516,7 @@ class ContainerEngineClient {
457
516
  * @param DeleteNodeRequest
458
517
  * @return DeleteNodeResponse
459
518
  * @throws OciError when an error occurs
460
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/DeleteNode.ts.html |here} to see how to use DeleteNode API.
519
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/DeleteNode.ts.html |here} to see how to use DeleteNode API.
461
520
  */
462
521
  deleteNode(deleteNodeRequest) {
463
522
  return __awaiter(this, void 0, void 0, function* () {
@@ -522,7 +581,7 @@ class ContainerEngineClient {
522
581
  * @param DeleteNodePoolRequest
523
582
  * @return DeleteNodePoolResponse
524
583
  * @throws OciError when an error occurs
525
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/DeleteNodePool.ts.html |here} to see how to use DeleteNodePool API.
584
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/DeleteNodePool.ts.html |here} to see how to use DeleteNodePool API.
526
585
  */
527
586
  deleteNodePool(deleteNodePoolRequest) {
528
587
  return __awaiter(this, void 0, void 0, function* () {
@@ -579,13 +638,76 @@ class ContainerEngineClient {
579
638
  }
580
639
  });
581
640
  }
641
+ /**
642
+ * Delete a virtual node pool.
643
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
644
+ * @param DeleteVirtualNodePoolRequest
645
+ * @return DeleteVirtualNodePoolResponse
646
+ * @throws OciError when an error occurs
647
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/DeleteVirtualNodePool.ts.html |here} to see how to use DeleteVirtualNodePool API.
648
+ */
649
+ deleteVirtualNodePool(deleteVirtualNodePoolRequest) {
650
+ return __awaiter(this, void 0, void 0, function* () {
651
+ if (this.logger)
652
+ this.logger.debug("Calling operation ContainerEngineClient#deleteVirtualNodePool.");
653
+ const operationName = "deleteVirtualNodePool";
654
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/DeleteVirtualNodePool";
655
+ const pathParams = {
656
+ "{virtualNodePoolId}": deleteVirtualNodePoolRequest.virtualNodePoolId
657
+ };
658
+ const queryParams = {
659
+ "overrideEvictionGraceDurationVnp": deleteVirtualNodePoolRequest.overrideEvictionGraceDurationVnp,
660
+ "isForceDeletionAfterOverrideGraceDurationVnp": deleteVirtualNodePoolRequest.isForceDeletionAfterOverrideGraceDurationVnp
661
+ };
662
+ let headerParams = {
663
+ "Content-Type": common.Constants.APPLICATION_JSON,
664
+ "if-match": deleteVirtualNodePoolRequest.ifMatch,
665
+ "opc-request-id": deleteVirtualNodePoolRequest.opcRequestId
666
+ };
667
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
668
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteVirtualNodePoolRequest.retryConfiguration, specRetryConfiguration);
669
+ if (this.logger)
670
+ retrier.logger = this.logger;
671
+ const request = yield oci_common_2.composeRequest({
672
+ baseEndpoint: this._endpoint,
673
+ defaultHeaders: this._defaultHeaders,
674
+ path: "/virtualNodePools/{virtualNodePoolId}",
675
+ method: "DELETE",
676
+ pathParams: pathParams,
677
+ headerParams: headerParams,
678
+ queryParams: queryParams
679
+ });
680
+ try {
681
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
682
+ const sdkResponse = oci_common_2.composeResponse({
683
+ responseObject: {},
684
+ responseHeaders: [
685
+ {
686
+ value: response.headers.get("opc-work-request-id"),
687
+ key: "opcWorkRequestId",
688
+ dataType: "string"
689
+ },
690
+ {
691
+ value: response.headers.get("opc-request-id"),
692
+ key: "opcRequestId",
693
+ dataType: "string"
694
+ }
695
+ ]
696
+ });
697
+ return sdkResponse;
698
+ }
699
+ catch (err) {
700
+ throw err;
701
+ }
702
+ });
703
+ }
582
704
  /**
583
705
  * Cancel a work request that has not started.
584
706
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
585
707
  * @param DeleteWorkRequestRequest
586
708
  * @return DeleteWorkRequestResponse
587
709
  * @throws OciError when an error occurs
588
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/DeleteWorkRequest.ts.html |here} to see how to use DeleteWorkRequest API.
710
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/DeleteWorkRequest.ts.html |here} to see how to use DeleteWorkRequest API.
589
711
  */
590
712
  deleteWorkRequest(deleteWorkRequestRequest) {
591
713
  return __awaiter(this, void 0, void 0, function* () {
@@ -634,13 +756,140 @@ class ContainerEngineClient {
634
756
  }
635
757
  });
636
758
  }
759
+ /**
760
+ * Disable addon for a provisioned cluster.
761
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
762
+ * @param DisableAddonRequest
763
+ * @return DisableAddonResponse
764
+ * @throws OciError when an error occurs
765
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/DisableAddon.ts.html |here} to see how to use DisableAddon API.
766
+ */
767
+ disableAddon(disableAddonRequest) {
768
+ return __awaiter(this, void 0, void 0, function* () {
769
+ if (this.logger)
770
+ this.logger.debug("Calling operation ContainerEngineClient#disableAddon.");
771
+ const operationName = "disableAddon";
772
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/DisableAddon";
773
+ const pathParams = {
774
+ "{clusterId}": disableAddonRequest.clusterId,
775
+ "{addonName}": disableAddonRequest.addonName
776
+ };
777
+ const queryParams = {
778
+ "isRemoveExistingAddOn": disableAddonRequest.isRemoveExistingAddOn
779
+ };
780
+ let headerParams = {
781
+ "Content-Type": common.Constants.APPLICATION_JSON,
782
+ "if-match": disableAddonRequest.ifMatch,
783
+ "opc-request-id": disableAddonRequest.opcRequestId
784
+ };
785
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
786
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableAddonRequest.retryConfiguration, specRetryConfiguration);
787
+ if (this.logger)
788
+ retrier.logger = this.logger;
789
+ const request = yield oci_common_2.composeRequest({
790
+ baseEndpoint: this._endpoint,
791
+ defaultHeaders: this._defaultHeaders,
792
+ path: "/clusters/{clusterId}/addons/{addonName}",
793
+ method: "DELETE",
794
+ pathParams: pathParams,
795
+ headerParams: headerParams,
796
+ queryParams: queryParams
797
+ });
798
+ try {
799
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
800
+ const sdkResponse = oci_common_2.composeResponse({
801
+ responseObject: {},
802
+ responseHeaders: [
803
+ {
804
+ value: response.headers.get("opc-work-request-id"),
805
+ key: "opcWorkRequestId",
806
+ dataType: "string"
807
+ },
808
+ {
809
+ value: response.headers.get("opc-request-id"),
810
+ key: "opcRequestId",
811
+ dataType: "string"
812
+ }
813
+ ]
814
+ });
815
+ return sdkResponse;
816
+ }
817
+ catch (err) {
818
+ throw err;
819
+ }
820
+ });
821
+ }
822
+ /**
823
+ * Get the specified addon for a cluster.
824
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
825
+ * @param GetAddonRequest
826
+ * @return GetAddonResponse
827
+ * @throws OciError when an error occurs
828
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/GetAddon.ts.html |here} to see how to use GetAddon API.
829
+ */
830
+ getAddon(getAddonRequest) {
831
+ return __awaiter(this, void 0, void 0, function* () {
832
+ if (this.logger)
833
+ this.logger.debug("Calling operation ContainerEngineClient#getAddon.");
834
+ const operationName = "getAddon";
835
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/GetAddon";
836
+ const pathParams = {
837
+ "{clusterId}": getAddonRequest.clusterId,
838
+ "{addonName}": getAddonRequest.addonName
839
+ };
840
+ const queryParams = {};
841
+ let headerParams = {
842
+ "Content-Type": common.Constants.APPLICATION_JSON,
843
+ "opc-request-id": getAddonRequest.opcRequestId
844
+ };
845
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
846
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAddonRequest.retryConfiguration, specRetryConfiguration);
847
+ if (this.logger)
848
+ retrier.logger = this.logger;
849
+ const request = yield oci_common_2.composeRequest({
850
+ baseEndpoint: this._endpoint,
851
+ defaultHeaders: this._defaultHeaders,
852
+ path: "/clusters/{clusterId}/addons/{addonName}",
853
+ method: "GET",
854
+ pathParams: pathParams,
855
+ headerParams: headerParams,
856
+ queryParams: queryParams
857
+ });
858
+ try {
859
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
860
+ const sdkResponse = oci_common_2.composeResponse({
861
+ responseObject: {},
862
+ body: yield response.json(),
863
+ bodyKey: "addon",
864
+ bodyModel: model.Addon,
865
+ type: "model.Addon",
866
+ responseHeaders: [
867
+ {
868
+ value: response.headers.get("etag"),
869
+ key: "etag",
870
+ dataType: "string"
871
+ },
872
+ {
873
+ value: response.headers.get("opc-request-id"),
874
+ key: "opcRequestId",
875
+ dataType: "string"
876
+ }
877
+ ]
878
+ });
879
+ return sdkResponse;
880
+ }
881
+ catch (err) {
882
+ throw err;
883
+ }
884
+ });
885
+ }
637
886
  /**
638
887
  * Get the details of a cluster.
639
888
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
640
889
  * @param GetClusterRequest
641
890
  * @return GetClusterResponse
642
891
  * @throws OciError when an error occurs
643
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/GetCluster.ts.html |here} to see how to use GetCluster API.
892
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/GetCluster.ts.html |here} to see how to use GetCluster API.
644
893
  */
645
894
  getCluster(getClusterRequest) {
646
895
  return __awaiter(this, void 0, void 0, function* () {
@@ -703,7 +952,7 @@ class ContainerEngineClient {
703
952
  * @param GetClusterMigrateToNativeVcnStatusRequest
704
953
  * @return GetClusterMigrateToNativeVcnStatusResponse
705
954
  * @throws OciError when an error occurs
706
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/GetClusterMigrateToNativeVcnStatus.ts.html |here} to see how to use GetClusterMigrateToNativeVcnStatus API.
955
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/GetClusterMigrateToNativeVcnStatus.ts.html |here} to see how to use GetClusterMigrateToNativeVcnStatus API.
707
956
  */
708
957
  getClusterMigrateToNativeVcnStatus(getClusterMigrateToNativeVcnStatusRequest) {
709
958
  return __awaiter(this, void 0, void 0, function* () {
@@ -766,7 +1015,7 @@ class ContainerEngineClient {
766
1015
  * @param GetClusterOptionsRequest
767
1016
  * @return GetClusterOptionsResponse
768
1017
  * @throws OciError when an error occurs
769
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/GetClusterOptions.ts.html |here} to see how to use GetClusterOptions API.
1018
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/GetClusterOptions.ts.html |here} to see how to use GetClusterOptions API.
770
1019
  */
771
1020
  getClusterOptions(getClusterOptionsRequest) {
772
1021
  return __awaiter(this, void 0, void 0, function* () {
@@ -826,7 +1075,7 @@ class ContainerEngineClient {
826
1075
  * @param GetNodePoolRequest
827
1076
  * @return GetNodePoolResponse
828
1077
  * @throws OciError when an error occurs
829
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/GetNodePool.ts.html |here} to see how to use GetNodePool API.
1078
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/GetNodePool.ts.html |here} to see how to use GetNodePool API.
830
1079
  */
831
1080
  getNodePool(getNodePoolRequest) {
832
1081
  return __awaiter(this, void 0, void 0, function* () {
@@ -889,7 +1138,7 @@ class ContainerEngineClient {
889
1138
  * @param GetNodePoolOptionsRequest
890
1139
  * @return GetNodePoolOptionsResponse
891
1140
  * @throws OciError when an error occurs
892
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/GetNodePoolOptions.ts.html |here} to see how to use GetNodePoolOptions API.
1141
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/GetNodePoolOptions.ts.html |here} to see how to use GetNodePoolOptions API.
893
1142
  */
894
1143
  getNodePoolOptions(getNodePoolOptionsRequest) {
895
1144
  return __awaiter(this, void 0, void 0, function* () {
@@ -944,35 +1193,36 @@ class ContainerEngineClient {
944
1193
  });
945
1194
  }
946
1195
  /**
947
- * Get the details of a work request.
1196
+ * Get the details of a virtual node.
948
1197
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
949
- * @param GetWorkRequestRequest
950
- * @return GetWorkRequestResponse
1198
+ * @param GetVirtualNodeRequest
1199
+ * @return GetVirtualNodeResponse
951
1200
  * @throws OciError when an error occurs
952
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1201
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/GetVirtualNode.ts.html |here} to see how to use GetVirtualNode API.
953
1202
  */
954
- getWorkRequest(getWorkRequestRequest) {
1203
+ getVirtualNode(getVirtualNodeRequest) {
955
1204
  return __awaiter(this, void 0, void 0, function* () {
956
1205
  if (this.logger)
957
- this.logger.debug("Calling operation ContainerEngineClient#getWorkRequest.");
958
- const operationName = "getWorkRequest";
959
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/GetWorkRequest";
1206
+ this.logger.debug("Calling operation ContainerEngineClient#getVirtualNode.");
1207
+ const operationName = "getVirtualNode";
1208
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/GetVirtualNode";
960
1209
  const pathParams = {
961
- "{workRequestId}": getWorkRequestRequest.workRequestId
1210
+ "{virtualNodePoolId}": getVirtualNodeRequest.virtualNodePoolId,
1211
+ "{virtualNodeId}": getVirtualNodeRequest.virtualNodeId
962
1212
  };
963
1213
  const queryParams = {};
964
1214
  let headerParams = {
965
1215
  "Content-Type": common.Constants.APPLICATION_JSON,
966
- "opc-request-id": getWorkRequestRequest.opcRequestId
1216
+ "opc-request-id": getVirtualNodeRequest.opcRequestId
967
1217
  };
968
1218
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
969
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
1219
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVirtualNodeRequest.retryConfiguration, specRetryConfiguration);
970
1220
  if (this.logger)
971
1221
  retrier.logger = this.logger;
972
1222
  const request = yield oci_common_2.composeRequest({
973
1223
  baseEndpoint: this._endpoint,
974
1224
  defaultHeaders: this._defaultHeaders,
975
- path: "/workRequests/{workRequestId}",
1225
+ path: "/virtualNodePools/{virtualNodePoolId}/virtualNodes/{virtualNodeId}",
976
1226
  method: "GET",
977
1227
  pathParams: pathParams,
978
1228
  headerParams: headerParams,
@@ -983,9 +1233,9 @@ class ContainerEngineClient {
983
1233
  const sdkResponse = oci_common_2.composeResponse({
984
1234
  responseObject: {},
985
1235
  body: yield response.json(),
986
- bodyKey: "workRequest",
987
- bodyModel: model.WorkRequest,
988
- type: "model.WorkRequest",
1236
+ bodyKey: "virtualNode",
1237
+ bodyModel: model.VirtualNode,
1238
+ type: "model.VirtualNode",
989
1239
  responseHeaders: [
990
1240
  {
991
1241
  value: response.headers.get("etag"),
@@ -996,11 +1246,6 @@ class ContainerEngineClient {
996
1246
  value: response.headers.get("opc-request-id"),
997
1247
  key: "opcRequestId",
998
1248
  dataType: "string"
999
- },
1000
- {
1001
- value: response.headers.get("retry-after"),
1002
- key: "retryAfter",
1003
- dataType: "number"
1004
1249
  }
1005
1250
  ]
1006
1251
  });
@@ -1012,41 +1257,35 @@ class ContainerEngineClient {
1012
1257
  });
1013
1258
  }
1014
1259
  /**
1015
- * List all the cluster objects in a compartment.
1260
+ * Get the details of a virtual node pool.
1016
1261
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1017
- * @param ListClustersRequest
1018
- * @return ListClustersResponse
1262
+ * @param GetVirtualNodePoolRequest
1263
+ * @return GetVirtualNodePoolResponse
1019
1264
  * @throws OciError when an error occurs
1020
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/ListClusters.ts.html |here} to see how to use ListClusters API.
1265
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/GetVirtualNodePool.ts.html |here} to see how to use GetVirtualNodePool API.
1021
1266
  */
1022
- listClusters(listClustersRequest) {
1267
+ getVirtualNodePool(getVirtualNodePoolRequest) {
1023
1268
  return __awaiter(this, void 0, void 0, function* () {
1024
1269
  if (this.logger)
1025
- this.logger.debug("Calling operation ContainerEngineClient#listClusters.");
1026
- const operationName = "listClusters";
1027
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterSummary/ListClusters";
1028
- const pathParams = {};
1029
- const queryParams = {
1030
- "compartmentId": listClustersRequest.compartmentId,
1031
- "lifecycleState": listClustersRequest.lifecycleState,
1032
- "name": listClustersRequest.name,
1033
- "limit": listClustersRequest.limit,
1034
- "page": listClustersRequest.page,
1035
- "sortOrder": listClustersRequest.sortOrder,
1036
- "sortBy": listClustersRequest.sortBy
1270
+ this.logger.debug("Calling operation ContainerEngineClient#getVirtualNodePool.");
1271
+ const operationName = "getVirtualNodePool";
1272
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/GetVirtualNodePool";
1273
+ const pathParams = {
1274
+ "{virtualNodePoolId}": getVirtualNodePoolRequest.virtualNodePoolId
1037
1275
  };
1276
+ const queryParams = {};
1038
1277
  let headerParams = {
1039
1278
  "Content-Type": common.Constants.APPLICATION_JSON,
1040
- "opc-request-id": listClustersRequest.opcRequestId
1279
+ "opc-request-id": getVirtualNodePoolRequest.opcRequestId
1041
1280
  };
1042
1281
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1043
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listClustersRequest.retryConfiguration, specRetryConfiguration);
1282
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVirtualNodePoolRequest.retryConfiguration, specRetryConfiguration);
1044
1283
  if (this.logger)
1045
1284
  retrier.logger = this.logger;
1046
1285
  const request = yield oci_common_2.composeRequest({
1047
1286
  baseEndpoint: this._endpoint,
1048
1287
  defaultHeaders: this._defaultHeaders,
1049
- path: "/clusters",
1288
+ path: "/virtualNodePools/{virtualNodePoolId}",
1050
1289
  method: "GET",
1051
1290
  pathParams: pathParams,
1052
1291
  headerParams: headerParams,
@@ -1057,13 +1296,13 @@ class ContainerEngineClient {
1057
1296
  const sdkResponse = oci_common_2.composeResponse({
1058
1297
  responseObject: {},
1059
1298
  body: yield response.json(),
1060
- bodyKey: "items",
1061
- bodyModel: model.ClusterSummary,
1062
- type: "Array<model.ClusterSummary>",
1299
+ bodyKey: "virtualNodePool",
1300
+ bodyModel: model.VirtualNodePool,
1301
+ type: "model.VirtualNodePool",
1063
1302
  responseHeaders: [
1064
1303
  {
1065
- value: response.headers.get("opc-next-page"),
1066
- key: "opcNextPage",
1304
+ value: response.headers.get("etag"),
1305
+ key: "etag",
1067
1306
  dataType: "string"
1068
1307
  },
1069
1308
  {
@@ -1081,82 +1320,716 @@ class ContainerEngineClient {
1081
1320
  });
1082
1321
  }
1083
1322
  /**
1084
- * NOTE: This function is deprecated in favor of listClustersRecordIterator function.
1085
- * Creates a new async iterator which will iterate over the models.ClusterSummary objects
1086
- * contained in responses from the listClusters operation. This iterator will fetch more data from the
1087
- * server as needed.
1088
- *
1089
- * @param request a request which can be sent to the service operation
1323
+ * Get the details of a work request.
1324
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1325
+ * @param GetWorkRequestRequest
1326
+ * @return GetWorkRequestResponse
1327
+ * @throws OciError when an error occurs
1328
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1090
1329
  */
1091
- listAllClusters(request) {
1092
- return oci_common_1.paginateRecords(request, req => this.listClusters(req));
1093
- }
1094
- /**
1095
- * NOTE: This function is deprecated in favor of listClustersResponseIterator function.
1096
- * Creates a new async iterator which will iterate over the responses received from the listClusters operation. This iterator
1097
- * will fetch more data from the server as needed.
1098
- *
1330
+ getWorkRequest(getWorkRequestRequest) {
1331
+ return __awaiter(this, void 0, void 0, function* () {
1332
+ if (this.logger)
1333
+ this.logger.debug("Calling operation ContainerEngineClient#getWorkRequest.");
1334
+ const operationName = "getWorkRequest";
1335
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/GetWorkRequest";
1336
+ const pathParams = {
1337
+ "{workRequestId}": getWorkRequestRequest.workRequestId
1338
+ };
1339
+ const queryParams = {};
1340
+ let headerParams = {
1341
+ "Content-Type": common.Constants.APPLICATION_JSON,
1342
+ "opc-request-id": getWorkRequestRequest.opcRequestId
1343
+ };
1344
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1345
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
1346
+ if (this.logger)
1347
+ retrier.logger = this.logger;
1348
+ const request = yield oci_common_2.composeRequest({
1349
+ baseEndpoint: this._endpoint,
1350
+ defaultHeaders: this._defaultHeaders,
1351
+ path: "/workRequests/{workRequestId}",
1352
+ method: "GET",
1353
+ pathParams: pathParams,
1354
+ headerParams: headerParams,
1355
+ queryParams: queryParams
1356
+ });
1357
+ try {
1358
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1359
+ const sdkResponse = oci_common_2.composeResponse({
1360
+ responseObject: {},
1361
+ body: yield response.json(),
1362
+ bodyKey: "workRequest",
1363
+ bodyModel: model.WorkRequest,
1364
+ type: "model.WorkRequest",
1365
+ responseHeaders: [
1366
+ {
1367
+ value: response.headers.get("etag"),
1368
+ key: "etag",
1369
+ dataType: "string"
1370
+ },
1371
+ {
1372
+ value: response.headers.get("opc-request-id"),
1373
+ key: "opcRequestId",
1374
+ dataType: "string"
1375
+ },
1376
+ {
1377
+ value: response.headers.get("retry-after"),
1378
+ key: "retryAfter",
1379
+ dataType: "number"
1380
+ }
1381
+ ]
1382
+ });
1383
+ return sdkResponse;
1384
+ }
1385
+ catch (err) {
1386
+ throw err;
1387
+ }
1388
+ });
1389
+ }
1390
+ /**
1391
+ * Install the specified addon for a cluster.
1392
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1393
+ * @param InstallAddonRequest
1394
+ * @return InstallAddonResponse
1395
+ * @throws OciError when an error occurs
1396
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/InstallAddon.ts.html |here} to see how to use InstallAddon API.
1397
+ */
1398
+ installAddon(installAddonRequest) {
1399
+ return __awaiter(this, void 0, void 0, function* () {
1400
+ if (this.logger)
1401
+ this.logger.debug("Calling operation ContainerEngineClient#installAddon.");
1402
+ const operationName = "installAddon";
1403
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/InstallAddon";
1404
+ const pathParams = {
1405
+ "{clusterId}": installAddonRequest.clusterId
1406
+ };
1407
+ const queryParams = {};
1408
+ let headerParams = {
1409
+ "Content-Type": common.Constants.APPLICATION_JSON,
1410
+ "opc-retry-token": installAddonRequest.opcRetryToken,
1411
+ "opc-request-id": installAddonRequest.opcRequestId,
1412
+ "if-match": installAddonRequest.ifMatch
1413
+ };
1414
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1415
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, installAddonRequest.retryConfiguration, specRetryConfiguration);
1416
+ if (this.logger)
1417
+ retrier.logger = this.logger;
1418
+ const request = yield oci_common_2.composeRequest({
1419
+ baseEndpoint: this._endpoint,
1420
+ defaultHeaders: this._defaultHeaders,
1421
+ path: "/clusters/{clusterId}/addons",
1422
+ method: "POST",
1423
+ bodyContent: common.ObjectSerializer.serialize(installAddonRequest.installAddonDetails, "InstallAddonDetails", model.InstallAddonDetails.getJsonObj),
1424
+ pathParams: pathParams,
1425
+ headerParams: headerParams,
1426
+ queryParams: queryParams
1427
+ });
1428
+ try {
1429
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1430
+ const sdkResponse = oci_common_2.composeResponse({
1431
+ responseObject: {},
1432
+ responseHeaders: [
1433
+ {
1434
+ value: response.headers.get("opc-work-request-id"),
1435
+ key: "opcWorkRequestId",
1436
+ dataType: "string"
1437
+ },
1438
+ {
1439
+ value: response.headers.get("opc-request-id"),
1440
+ key: "opcRequestId",
1441
+ dataType: "string"
1442
+ }
1443
+ ]
1444
+ });
1445
+ return sdkResponse;
1446
+ }
1447
+ catch (err) {
1448
+ throw err;
1449
+ }
1450
+ });
1451
+ }
1452
+ /**
1453
+ * Get list of supported addons for a specific kubernetes version.
1454
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1455
+ * @param ListAddonOptionsRequest
1456
+ * @return ListAddonOptionsResponse
1457
+ * @throws OciError when an error occurs
1458
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListAddonOptions.ts.html |here} to see how to use ListAddonOptions API.
1459
+ */
1460
+ listAddonOptions(listAddonOptionsRequest) {
1461
+ return __awaiter(this, void 0, void 0, function* () {
1462
+ if (this.logger)
1463
+ this.logger.debug("Calling operation ContainerEngineClient#listAddonOptions.");
1464
+ const operationName = "listAddonOptions";
1465
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/AddonOptionSummary/ListAddonOptions";
1466
+ const pathParams = {};
1467
+ const queryParams = {
1468
+ "kubernetesVersion": listAddonOptionsRequest.kubernetesVersion,
1469
+ "addonName": listAddonOptionsRequest.addonName,
1470
+ "limit": listAddonOptionsRequest.limit,
1471
+ "page": listAddonOptionsRequest.page,
1472
+ "sortOrder": listAddonOptionsRequest.sortOrder,
1473
+ "sortBy": listAddonOptionsRequest.sortBy
1474
+ };
1475
+ let headerParams = {
1476
+ "Content-Type": common.Constants.APPLICATION_JSON,
1477
+ "opc-request-id": listAddonOptionsRequest.opcRequestId
1478
+ };
1479
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1480
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAddonOptionsRequest.retryConfiguration, specRetryConfiguration);
1481
+ if (this.logger)
1482
+ retrier.logger = this.logger;
1483
+ const request = yield oci_common_2.composeRequest({
1484
+ baseEndpoint: this._endpoint,
1485
+ defaultHeaders: this._defaultHeaders,
1486
+ path: "/addonOptions",
1487
+ method: "GET",
1488
+ pathParams: pathParams,
1489
+ headerParams: headerParams,
1490
+ queryParams: queryParams
1491
+ });
1492
+ try {
1493
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1494
+ const sdkResponse = oci_common_2.composeResponse({
1495
+ responseObject: {},
1496
+ body: yield response.json(),
1497
+ bodyKey: "items",
1498
+ bodyModel: model.AddonOptionSummary,
1499
+ type: "Array<model.AddonOptionSummary>",
1500
+ responseHeaders: [
1501
+ {
1502
+ value: response.headers.get("opc-next-page"),
1503
+ key: "opcNextPage",
1504
+ dataType: "string"
1505
+ },
1506
+ {
1507
+ value: response.headers.get("opc-request-id"),
1508
+ key: "opcRequestId",
1509
+ dataType: "string"
1510
+ }
1511
+ ]
1512
+ });
1513
+ return sdkResponse;
1514
+ }
1515
+ catch (err) {
1516
+ throw err;
1517
+ }
1518
+ });
1519
+ }
1520
+ /**
1521
+ * NOTE: This function is deprecated in favor of listAddonOptionsRecordIterator function.
1522
+ * Creates a new async iterator which will iterate over the models.AddonOptionSummary objects
1523
+ * contained in responses from the listAddonOptions operation. This iterator will fetch more data from the
1524
+ * server as needed.
1525
+ *
1526
+ * @param request a request which can be sent to the service operation
1527
+ */
1528
+ listAllAddonOptions(request) {
1529
+ return oci_common_1.paginateRecords(request, req => this.listAddonOptions(req));
1530
+ }
1531
+ /**
1532
+ * NOTE: This function is deprecated in favor of listAddonOptionsResponseIterator function.
1533
+ * Creates a new async iterator which will iterate over the responses received from the listAddonOptions operation. This iterator
1534
+ * will fetch more data from the server as needed.
1535
+ *
1536
+ * @param request a request which can be sent to the service operation
1537
+ */
1538
+ listAllAddonOptionsResponses(request) {
1539
+ return oci_common_1.paginateResponses(request, req => this.listAddonOptions(req));
1540
+ }
1541
+ /**
1542
+ * Creates a new async iterator which will iterate over the models.AddonOptionSummary objects
1543
+ * contained in responses from the listAddonOptions operation. This iterator will fetch more data from the
1544
+ * server as needed.
1545
+ *
1546
+ * @param request a request which can be sent to the service operation
1547
+ */
1548
+ listAddonOptionsRecordIterator(request) {
1549
+ return oci_common_1.paginateRecords(request, req => this.listAddonOptions(req));
1550
+ }
1551
+ /**
1552
+ * Creates a new async iterator which will iterate over the responses received from the listAddonOptions operation. This iterator
1553
+ * will fetch more data from the server as needed.
1554
+ *
1555
+ * @param request a request which can be sent to the service operation
1556
+ */
1557
+ listAddonOptionsResponseIterator(request) {
1558
+ return oci_common_1.paginateResponses(request, req => this.listAddonOptions(req));
1559
+ }
1560
+ /**
1561
+ * List addon for a provisioned cluster.
1562
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1563
+ * @param ListAddonsRequest
1564
+ * @return ListAddonsResponse
1565
+ * @throws OciError when an error occurs
1566
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListAddons.ts.html |here} to see how to use ListAddons API.
1567
+ */
1568
+ listAddons(listAddonsRequest) {
1569
+ return __awaiter(this, void 0, void 0, function* () {
1570
+ if (this.logger)
1571
+ this.logger.debug("Calling operation ContainerEngineClient#listAddons.");
1572
+ const operationName = "listAddons";
1573
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/ListAddons";
1574
+ const pathParams = {
1575
+ "{clusterId}": listAddonsRequest.clusterId
1576
+ };
1577
+ const queryParams = {
1578
+ "limit": listAddonsRequest.limit,
1579
+ "page": listAddonsRequest.page,
1580
+ "sortOrder": listAddonsRequest.sortOrder,
1581
+ "sortBy": listAddonsRequest.sortBy
1582
+ };
1583
+ let headerParams = {
1584
+ "Content-Type": common.Constants.APPLICATION_JSON,
1585
+ "opc-request-id": listAddonsRequest.opcRequestId
1586
+ };
1587
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1588
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAddonsRequest.retryConfiguration, specRetryConfiguration);
1589
+ if (this.logger)
1590
+ retrier.logger = this.logger;
1591
+ const request = yield oci_common_2.composeRequest({
1592
+ baseEndpoint: this._endpoint,
1593
+ defaultHeaders: this._defaultHeaders,
1594
+ path: "/clusters/{clusterId}/addons",
1595
+ method: "GET",
1596
+ pathParams: pathParams,
1597
+ headerParams: headerParams,
1598
+ queryParams: queryParams
1599
+ });
1600
+ try {
1601
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1602
+ const sdkResponse = oci_common_2.composeResponse({
1603
+ responseObject: {},
1604
+ body: yield response.json(),
1605
+ bodyKey: "items",
1606
+ bodyModel: model.AddonSummary,
1607
+ type: "Array<model.AddonSummary>",
1608
+ responseHeaders: [
1609
+ {
1610
+ value: response.headers.get("opc-next-page"),
1611
+ key: "opcNextPage",
1612
+ dataType: "string"
1613
+ },
1614
+ {
1615
+ value: response.headers.get("opc-request-id"),
1616
+ key: "opcRequestId",
1617
+ dataType: "string"
1618
+ }
1619
+ ]
1620
+ });
1621
+ return sdkResponse;
1622
+ }
1623
+ catch (err) {
1624
+ throw err;
1625
+ }
1626
+ });
1627
+ }
1628
+ /**
1629
+ * NOTE: This function is deprecated in favor of listAddonsRecordIterator function.
1630
+ * Creates a new async iterator which will iterate over the models.AddonSummary objects
1631
+ * contained in responses from the listAddons operation. This iterator will fetch more data from the
1632
+ * server as needed.
1633
+ *
1634
+ * @param request a request which can be sent to the service operation
1635
+ */
1636
+ listAllAddons(request) {
1637
+ return oci_common_1.paginateRecords(request, req => this.listAddons(req));
1638
+ }
1639
+ /**
1640
+ * NOTE: This function is deprecated in favor of listAddonsResponseIterator function.
1641
+ * Creates a new async iterator which will iterate over the responses received from the listAddons operation. This iterator
1642
+ * will fetch more data from the server as needed.
1643
+ *
1644
+ * @param request a request which can be sent to the service operation
1645
+ */
1646
+ listAllAddonsResponses(request) {
1647
+ return oci_common_1.paginateResponses(request, req => this.listAddons(req));
1648
+ }
1649
+ /**
1650
+ * Creates a new async iterator which will iterate over the models.AddonSummary objects
1651
+ * contained in responses from the listAddons operation. This iterator will fetch more data from the
1652
+ * server as needed.
1653
+ *
1654
+ * @param request a request which can be sent to the service operation
1655
+ */
1656
+ listAddonsRecordIterator(request) {
1657
+ return oci_common_1.paginateRecords(request, req => this.listAddons(req));
1658
+ }
1659
+ /**
1660
+ * Creates a new async iterator which will iterate over the responses received from the listAddons operation. This iterator
1661
+ * will fetch more data from the server as needed.
1662
+ *
1663
+ * @param request a request which can be sent to the service operation
1664
+ */
1665
+ listAddonsResponseIterator(request) {
1666
+ return oci_common_1.paginateResponses(request, req => this.listAddons(req));
1667
+ }
1668
+ /**
1669
+ * List all the cluster objects in a compartment.
1670
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1671
+ * @param ListClustersRequest
1672
+ * @return ListClustersResponse
1673
+ * @throws OciError when an error occurs
1674
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListClusters.ts.html |here} to see how to use ListClusters API.
1675
+ */
1676
+ listClusters(listClustersRequest) {
1677
+ return __awaiter(this, void 0, void 0, function* () {
1678
+ if (this.logger)
1679
+ this.logger.debug("Calling operation ContainerEngineClient#listClusters.");
1680
+ const operationName = "listClusters";
1681
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterSummary/ListClusters";
1682
+ const pathParams = {};
1683
+ const queryParams = {
1684
+ "compartmentId": listClustersRequest.compartmentId,
1685
+ "lifecycleState": listClustersRequest.lifecycleState,
1686
+ "name": listClustersRequest.name,
1687
+ "limit": listClustersRequest.limit,
1688
+ "page": listClustersRequest.page,
1689
+ "sortOrder": listClustersRequest.sortOrder,
1690
+ "sortBy": listClustersRequest.sortBy
1691
+ };
1692
+ let headerParams = {
1693
+ "Content-Type": common.Constants.APPLICATION_JSON,
1694
+ "opc-request-id": listClustersRequest.opcRequestId
1695
+ };
1696
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1697
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listClustersRequest.retryConfiguration, specRetryConfiguration);
1698
+ if (this.logger)
1699
+ retrier.logger = this.logger;
1700
+ const request = yield oci_common_2.composeRequest({
1701
+ baseEndpoint: this._endpoint,
1702
+ defaultHeaders: this._defaultHeaders,
1703
+ path: "/clusters",
1704
+ method: "GET",
1705
+ pathParams: pathParams,
1706
+ headerParams: headerParams,
1707
+ queryParams: queryParams
1708
+ });
1709
+ try {
1710
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1711
+ const sdkResponse = oci_common_2.composeResponse({
1712
+ responseObject: {},
1713
+ body: yield response.json(),
1714
+ bodyKey: "items",
1715
+ bodyModel: model.ClusterSummary,
1716
+ type: "Array<model.ClusterSummary>",
1717
+ responseHeaders: [
1718
+ {
1719
+ value: response.headers.get("opc-next-page"),
1720
+ key: "opcNextPage",
1721
+ dataType: "string"
1722
+ },
1723
+ {
1724
+ value: response.headers.get("opc-request-id"),
1725
+ key: "opcRequestId",
1726
+ dataType: "string"
1727
+ }
1728
+ ]
1729
+ });
1730
+ return sdkResponse;
1731
+ }
1732
+ catch (err) {
1733
+ throw err;
1734
+ }
1735
+ });
1736
+ }
1737
+ /**
1738
+ * NOTE: This function is deprecated in favor of listClustersRecordIterator function.
1739
+ * Creates a new async iterator which will iterate over the models.ClusterSummary objects
1740
+ * contained in responses from the listClusters operation. This iterator will fetch more data from the
1741
+ * server as needed.
1742
+ *
1743
+ * @param request a request which can be sent to the service operation
1744
+ */
1745
+ listAllClusters(request) {
1746
+ return oci_common_1.paginateRecords(request, req => this.listClusters(req));
1747
+ }
1748
+ /**
1749
+ * NOTE: This function is deprecated in favor of listClustersResponseIterator function.
1750
+ * Creates a new async iterator which will iterate over the responses received from the listClusters operation. This iterator
1751
+ * will fetch more data from the server as needed.
1752
+ *
1753
+ * @param request a request which can be sent to the service operation
1754
+ */
1755
+ listAllClustersResponses(request) {
1756
+ return oci_common_1.paginateResponses(request, req => this.listClusters(req));
1757
+ }
1758
+ /**
1759
+ * Creates a new async iterator which will iterate over the models.ClusterSummary objects
1760
+ * contained in responses from the listClusters operation. This iterator will fetch more data from the
1761
+ * server as needed.
1762
+ *
1763
+ * @param request a request which can be sent to the service operation
1764
+ */
1765
+ listClustersRecordIterator(request) {
1766
+ return oci_common_1.paginateRecords(request, req => this.listClusters(req));
1767
+ }
1768
+ /**
1769
+ * Creates a new async iterator which will iterate over the responses received from the listClusters operation. This iterator
1770
+ * will fetch more data from the server as needed.
1771
+ *
1772
+ * @param request a request which can be sent to the service operation
1773
+ */
1774
+ listClustersResponseIterator(request) {
1775
+ return oci_common_1.paginateResponses(request, req => this.listClusters(req));
1776
+ }
1777
+ /**
1778
+ * List all the node pools in a compartment, and optionally filter by cluster.
1779
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1780
+ * @param ListNodePoolsRequest
1781
+ * @return ListNodePoolsResponse
1782
+ * @throws OciError when an error occurs
1783
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListNodePools.ts.html |here} to see how to use ListNodePools API.
1784
+ */
1785
+ listNodePools(listNodePoolsRequest) {
1786
+ return __awaiter(this, void 0, void 0, function* () {
1787
+ if (this.logger)
1788
+ this.logger.debug("Calling operation ContainerEngineClient#listNodePools.");
1789
+ const operationName = "listNodePools";
1790
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolSummary/ListNodePools";
1791
+ const pathParams = {};
1792
+ const queryParams = {
1793
+ "compartmentId": listNodePoolsRequest.compartmentId,
1794
+ "clusterId": listNodePoolsRequest.clusterId,
1795
+ "name": listNodePoolsRequest.name,
1796
+ "limit": listNodePoolsRequest.limit,
1797
+ "page": listNodePoolsRequest.page,
1798
+ "sortOrder": listNodePoolsRequest.sortOrder,
1799
+ "sortBy": listNodePoolsRequest.sortBy,
1800
+ "lifecycleState": listNodePoolsRequest.lifecycleState
1801
+ };
1802
+ let headerParams = {
1803
+ "Content-Type": common.Constants.APPLICATION_JSON,
1804
+ "opc-request-id": listNodePoolsRequest.opcRequestId
1805
+ };
1806
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1807
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listNodePoolsRequest.retryConfiguration, specRetryConfiguration);
1808
+ if (this.logger)
1809
+ retrier.logger = this.logger;
1810
+ const request = yield oci_common_2.composeRequest({
1811
+ baseEndpoint: this._endpoint,
1812
+ defaultHeaders: this._defaultHeaders,
1813
+ path: "/nodePools",
1814
+ method: "GET",
1815
+ pathParams: pathParams,
1816
+ headerParams: headerParams,
1817
+ queryParams: queryParams
1818
+ });
1819
+ try {
1820
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1821
+ const sdkResponse = oci_common_2.composeResponse({
1822
+ responseObject: {},
1823
+ body: yield response.json(),
1824
+ bodyKey: "items",
1825
+ bodyModel: model.NodePoolSummary,
1826
+ type: "Array<model.NodePoolSummary>",
1827
+ responseHeaders: [
1828
+ {
1829
+ value: response.headers.get("opc-next-page"),
1830
+ key: "opcNextPage",
1831
+ dataType: "string"
1832
+ },
1833
+ {
1834
+ value: response.headers.get("opc-request-id"),
1835
+ key: "opcRequestId",
1836
+ dataType: "string"
1837
+ }
1838
+ ]
1839
+ });
1840
+ return sdkResponse;
1841
+ }
1842
+ catch (err) {
1843
+ throw err;
1844
+ }
1845
+ });
1846
+ }
1847
+ /**
1848
+ * NOTE: This function is deprecated in favor of listNodePoolsRecordIterator function.
1849
+ * Creates a new async iterator which will iterate over the models.NodePoolSummary objects
1850
+ * contained in responses from the listNodePools operation. This iterator will fetch more data from the
1851
+ * server as needed.
1852
+ *
1853
+ * @param request a request which can be sent to the service operation
1854
+ */
1855
+ listAllNodePools(request) {
1856
+ return oci_common_1.paginateRecords(request, req => this.listNodePools(req));
1857
+ }
1858
+ /**
1859
+ * NOTE: This function is deprecated in favor of listNodePoolsResponseIterator function.
1860
+ * Creates a new async iterator which will iterate over the responses received from the listNodePools operation. This iterator
1861
+ * will fetch more data from the server as needed.
1862
+ *
1863
+ * @param request a request which can be sent to the service operation
1864
+ */
1865
+ listAllNodePoolsResponses(request) {
1866
+ return oci_common_1.paginateResponses(request, req => this.listNodePools(req));
1867
+ }
1868
+ /**
1869
+ * Creates a new async iterator which will iterate over the models.NodePoolSummary objects
1870
+ * contained in responses from the listNodePools operation. This iterator will fetch more data from the
1871
+ * server as needed.
1872
+ *
1873
+ * @param request a request which can be sent to the service operation
1874
+ */
1875
+ listNodePoolsRecordIterator(request) {
1876
+ return oci_common_1.paginateRecords(request, req => this.listNodePools(req));
1877
+ }
1878
+ /**
1879
+ * Creates a new async iterator which will iterate over the responses received from the listNodePools operation. This iterator
1880
+ * will fetch more data from the server as needed.
1881
+ *
1882
+ * @param request a request which can be sent to the service operation
1883
+ */
1884
+ listNodePoolsResponseIterator(request) {
1885
+ return oci_common_1.paginateResponses(request, req => this.listNodePools(req));
1886
+ }
1887
+ /**
1888
+ * List all the Pod Shapes in a compartment.
1889
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1890
+ * @param ListPodShapesRequest
1891
+ * @return ListPodShapesResponse
1892
+ * @throws OciError when an error occurs
1893
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListPodShapes.ts.html |here} to see how to use ListPodShapes API.
1894
+ */
1895
+ listPodShapes(listPodShapesRequest) {
1896
+ return __awaiter(this, void 0, void 0, function* () {
1897
+ if (this.logger)
1898
+ this.logger.debug("Calling operation ContainerEngineClient#listPodShapes.");
1899
+ const operationName = "listPodShapes";
1900
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/PodShapeSummary/ListPodShapes";
1901
+ const pathParams = {};
1902
+ const queryParams = {
1903
+ "compartmentId": listPodShapesRequest.compartmentId,
1904
+ "availabilityDomain": listPodShapesRequest.availabilityDomain,
1905
+ "name": listPodShapesRequest.name,
1906
+ "limit": listPodShapesRequest.limit,
1907
+ "page": listPodShapesRequest.page,
1908
+ "sortOrder": listPodShapesRequest.sortOrder,
1909
+ "sortBy": listPodShapesRequest.sortBy
1910
+ };
1911
+ let headerParams = {
1912
+ "Content-Type": common.Constants.APPLICATION_JSON,
1913
+ "opc-request-id": listPodShapesRequest.opcRequestId
1914
+ };
1915
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1916
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPodShapesRequest.retryConfiguration, specRetryConfiguration);
1917
+ if (this.logger)
1918
+ retrier.logger = this.logger;
1919
+ const request = yield oci_common_2.composeRequest({
1920
+ baseEndpoint: this._endpoint,
1921
+ defaultHeaders: this._defaultHeaders,
1922
+ path: "/podShapes",
1923
+ method: "GET",
1924
+ pathParams: pathParams,
1925
+ headerParams: headerParams,
1926
+ queryParams: queryParams
1927
+ });
1928
+ try {
1929
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1930
+ const sdkResponse = oci_common_2.composeResponse({
1931
+ responseObject: {},
1932
+ body: yield response.json(),
1933
+ bodyKey: "items",
1934
+ bodyModel: model.PodShapeSummary,
1935
+ type: "Array<model.PodShapeSummary>",
1936
+ responseHeaders: [
1937
+ {
1938
+ value: response.headers.get("opc-next-page"),
1939
+ key: "opcNextPage",
1940
+ dataType: "string"
1941
+ },
1942
+ {
1943
+ value: response.headers.get("opc-request-id"),
1944
+ key: "opcRequestId",
1945
+ dataType: "string"
1946
+ }
1947
+ ]
1948
+ });
1949
+ return sdkResponse;
1950
+ }
1951
+ catch (err) {
1952
+ throw err;
1953
+ }
1954
+ });
1955
+ }
1956
+ /**
1957
+ * NOTE: This function is deprecated in favor of listPodShapesRecordIterator function.
1958
+ * Creates a new async iterator which will iterate over the models.PodShapeSummary objects
1959
+ * contained in responses from the listPodShapes operation. This iterator will fetch more data from the
1960
+ * server as needed.
1961
+ *
1099
1962
  * @param request a request which can be sent to the service operation
1100
1963
  */
1101
- listAllClustersResponses(request) {
1102
- return oci_common_1.paginateResponses(request, req => this.listClusters(req));
1964
+ listAllPodShapes(request) {
1965
+ return oci_common_1.paginateRecords(request, req => this.listPodShapes(req));
1103
1966
  }
1104
1967
  /**
1105
- * Creates a new async iterator which will iterate over the models.ClusterSummary objects
1106
- * contained in responses from the listClusters operation. This iterator will fetch more data from the
1968
+ * NOTE: This function is deprecated in favor of listPodShapesResponseIterator function.
1969
+ * Creates a new async iterator which will iterate over the responses received from the listPodShapes operation. This iterator
1970
+ * will fetch more data from the server as needed.
1971
+ *
1972
+ * @param request a request which can be sent to the service operation
1973
+ */
1974
+ listAllPodShapesResponses(request) {
1975
+ return oci_common_1.paginateResponses(request, req => this.listPodShapes(req));
1976
+ }
1977
+ /**
1978
+ * Creates a new async iterator which will iterate over the models.PodShapeSummary objects
1979
+ * contained in responses from the listPodShapes operation. This iterator will fetch more data from the
1107
1980
  * server as needed.
1108
1981
  *
1109
1982
  * @param request a request which can be sent to the service operation
1110
1983
  */
1111
- listClustersRecordIterator(request) {
1112
- return oci_common_1.paginateRecords(request, req => this.listClusters(req));
1984
+ listPodShapesRecordIterator(request) {
1985
+ return oci_common_1.paginateRecords(request, req => this.listPodShapes(req));
1113
1986
  }
1114
1987
  /**
1115
- * Creates a new async iterator which will iterate over the responses received from the listClusters operation. This iterator
1988
+ * Creates a new async iterator which will iterate over the responses received from the listPodShapes operation. This iterator
1116
1989
  * will fetch more data from the server as needed.
1117
1990
  *
1118
1991
  * @param request a request which can be sent to the service operation
1119
1992
  */
1120
- listClustersResponseIterator(request) {
1121
- return oci_common_1.paginateResponses(request, req => this.listClusters(req));
1993
+ listPodShapesResponseIterator(request) {
1994
+ return oci_common_1.paginateResponses(request, req => this.listPodShapes(req));
1122
1995
  }
1123
1996
  /**
1124
- * List all the node pools in a compartment, and optionally filter by cluster.
1997
+ * List all the virtual node pools in a compartment, and optionally filter by cluster.
1125
1998
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1126
- * @param ListNodePoolsRequest
1127
- * @return ListNodePoolsResponse
1999
+ * @param ListVirtualNodePoolsRequest
2000
+ * @return ListVirtualNodePoolsResponse
1128
2001
  * @throws OciError when an error occurs
1129
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/ListNodePools.ts.html |here} to see how to use ListNodePools API.
2002
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListVirtualNodePools.ts.html |here} to see how to use ListVirtualNodePools API.
1130
2003
  */
1131
- listNodePools(listNodePoolsRequest) {
2004
+ listVirtualNodePools(listVirtualNodePoolsRequest) {
1132
2005
  return __awaiter(this, void 0, void 0, function* () {
1133
2006
  if (this.logger)
1134
- this.logger.debug("Calling operation ContainerEngineClient#listNodePools.");
1135
- const operationName = "listNodePools";
1136
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolSummary/ListNodePools";
2007
+ this.logger.debug("Calling operation ContainerEngineClient#listVirtualNodePools.");
2008
+ const operationName = "listVirtualNodePools";
2009
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePoolSummary/ListVirtualNodePools";
1137
2010
  const pathParams = {};
1138
2011
  const queryParams = {
1139
- "compartmentId": listNodePoolsRequest.compartmentId,
1140
- "clusterId": listNodePoolsRequest.clusterId,
1141
- "name": listNodePoolsRequest.name,
1142
- "limit": listNodePoolsRequest.limit,
1143
- "page": listNodePoolsRequest.page,
1144
- "sortOrder": listNodePoolsRequest.sortOrder,
1145
- "sortBy": listNodePoolsRequest.sortBy,
1146
- "lifecycleState": listNodePoolsRequest.lifecycleState
2012
+ "compartmentId": listVirtualNodePoolsRequest.compartmentId,
2013
+ "clusterId": listVirtualNodePoolsRequest.clusterId,
2014
+ "name": listVirtualNodePoolsRequest.name,
2015
+ "limit": listVirtualNodePoolsRequest.limit,
2016
+ "page": listVirtualNodePoolsRequest.page,
2017
+ "sortOrder": listVirtualNodePoolsRequest.sortOrder,
2018
+ "sortBy": listVirtualNodePoolsRequest.sortBy,
2019
+ "lifecycleState": listVirtualNodePoolsRequest.lifecycleState
1147
2020
  };
1148
2021
  let headerParams = {
1149
2022
  "Content-Type": common.Constants.APPLICATION_JSON,
1150
- "opc-request-id": listNodePoolsRequest.opcRequestId
2023
+ "opc-request-id": listVirtualNodePoolsRequest.opcRequestId
1151
2024
  };
1152
2025
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1153
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listNodePoolsRequest.retryConfiguration, specRetryConfiguration);
2026
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVirtualNodePoolsRequest.retryConfiguration, specRetryConfiguration);
1154
2027
  if (this.logger)
1155
2028
  retrier.logger = this.logger;
1156
2029
  const request = yield oci_common_2.composeRequest({
1157
2030
  baseEndpoint: this._endpoint,
1158
2031
  defaultHeaders: this._defaultHeaders,
1159
- path: "/nodePools",
2032
+ path: "/virtualNodePools",
1160
2033
  method: "GET",
1161
2034
  pathParams: pathParams,
1162
2035
  headerParams: headerParams,
@@ -1168,8 +2041,8 @@ class ContainerEngineClient {
1168
2041
  responseObject: {},
1169
2042
  body: yield response.json(),
1170
2043
  bodyKey: "items",
1171
- bodyModel: model.NodePoolSummary,
1172
- type: "Array<model.NodePoolSummary>",
2044
+ bodyModel: model.VirtualNodePoolSummary,
2045
+ type: "Array<model.VirtualNodePoolSummary>",
1173
2046
  responseHeaders: [
1174
2047
  {
1175
2048
  value: response.headers.get("opc-next-page"),
@@ -1191,44 +2064,153 @@ class ContainerEngineClient {
1191
2064
  });
1192
2065
  }
1193
2066
  /**
1194
- * NOTE: This function is deprecated in favor of listNodePoolsRecordIterator function.
1195
- * Creates a new async iterator which will iterate over the models.NodePoolSummary objects
1196
- * contained in responses from the listNodePools operation. This iterator will fetch more data from the
2067
+ * NOTE: This function is deprecated in favor of listVirtualNodePoolsRecordIterator function.
2068
+ * Creates a new async iterator which will iterate over the models.VirtualNodePoolSummary objects
2069
+ * contained in responses from the listVirtualNodePools operation. This iterator will fetch more data from the
1197
2070
  * server as needed.
1198
2071
  *
1199
2072
  * @param request a request which can be sent to the service operation
1200
2073
  */
1201
- listAllNodePools(request) {
1202
- return oci_common_1.paginateRecords(request, req => this.listNodePools(req));
2074
+ listAllVirtualNodePools(request) {
2075
+ return oci_common_1.paginateRecords(request, req => this.listVirtualNodePools(req));
1203
2076
  }
1204
2077
  /**
1205
- * NOTE: This function is deprecated in favor of listNodePoolsResponseIterator function.
1206
- * Creates a new async iterator which will iterate over the responses received from the listNodePools operation. This iterator
2078
+ * NOTE: This function is deprecated in favor of listVirtualNodePoolsResponseIterator function.
2079
+ * Creates a new async iterator which will iterate over the responses received from the listVirtualNodePools operation. This iterator
1207
2080
  * will fetch more data from the server as needed.
1208
2081
  *
1209
2082
  * @param request a request which can be sent to the service operation
1210
2083
  */
1211
- listAllNodePoolsResponses(request) {
1212
- return oci_common_1.paginateResponses(request, req => this.listNodePools(req));
2084
+ listAllVirtualNodePoolsResponses(request) {
2085
+ return oci_common_1.paginateResponses(request, req => this.listVirtualNodePools(req));
1213
2086
  }
1214
2087
  /**
1215
- * Creates a new async iterator which will iterate over the models.NodePoolSummary objects
1216
- * contained in responses from the listNodePools operation. This iterator will fetch more data from the
2088
+ * Creates a new async iterator which will iterate over the models.VirtualNodePoolSummary objects
2089
+ * contained in responses from the listVirtualNodePools operation. This iterator will fetch more data from the
1217
2090
  * server as needed.
1218
2091
  *
1219
2092
  * @param request a request which can be sent to the service operation
1220
2093
  */
1221
- listNodePoolsRecordIterator(request) {
1222
- return oci_common_1.paginateRecords(request, req => this.listNodePools(req));
2094
+ listVirtualNodePoolsRecordIterator(request) {
2095
+ return oci_common_1.paginateRecords(request, req => this.listVirtualNodePools(req));
1223
2096
  }
1224
2097
  /**
1225
- * Creates a new async iterator which will iterate over the responses received from the listNodePools operation. This iterator
2098
+ * Creates a new async iterator which will iterate over the responses received from the listVirtualNodePools operation. This iterator
1226
2099
  * will fetch more data from the server as needed.
1227
2100
  *
1228
2101
  * @param request a request which can be sent to the service operation
1229
2102
  */
1230
- listNodePoolsResponseIterator(request) {
1231
- return oci_common_1.paginateResponses(request, req => this.listNodePools(req));
2103
+ listVirtualNodePoolsResponseIterator(request) {
2104
+ return oci_common_1.paginateResponses(request, req => this.listVirtualNodePools(req));
2105
+ }
2106
+ /**
2107
+ * List virtual nodes in a virtual node pool.
2108
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2109
+ * @param ListVirtualNodesRequest
2110
+ * @return ListVirtualNodesResponse
2111
+ * @throws OciError when an error occurs
2112
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListVirtualNodes.ts.html |here} to see how to use ListVirtualNodes API.
2113
+ */
2114
+ listVirtualNodes(listVirtualNodesRequest) {
2115
+ return __awaiter(this, void 0, void 0, function* () {
2116
+ if (this.logger)
2117
+ this.logger.debug("Calling operation ContainerEngineClient#listVirtualNodes.");
2118
+ const operationName = "listVirtualNodes";
2119
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/ListVirtualNodes";
2120
+ const pathParams = {
2121
+ "{virtualNodePoolId}": listVirtualNodesRequest.virtualNodePoolId
2122
+ };
2123
+ const queryParams = {
2124
+ "name": listVirtualNodesRequest.name,
2125
+ "limit": listVirtualNodesRequest.limit,
2126
+ "page": listVirtualNodesRequest.page,
2127
+ "sortOrder": listVirtualNodesRequest.sortOrder,
2128
+ "sortBy": listVirtualNodesRequest.sortBy
2129
+ };
2130
+ let headerParams = {
2131
+ "Content-Type": common.Constants.APPLICATION_JSON,
2132
+ "opc-request-id": listVirtualNodesRequest.opcRequestId
2133
+ };
2134
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2135
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVirtualNodesRequest.retryConfiguration, specRetryConfiguration);
2136
+ if (this.logger)
2137
+ retrier.logger = this.logger;
2138
+ const request = yield oci_common_2.composeRequest({
2139
+ baseEndpoint: this._endpoint,
2140
+ defaultHeaders: this._defaultHeaders,
2141
+ path: "/virtualNodePools/{virtualNodePoolId}/virtualNodes",
2142
+ method: "GET",
2143
+ pathParams: pathParams,
2144
+ headerParams: headerParams,
2145
+ queryParams: queryParams
2146
+ });
2147
+ try {
2148
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2149
+ const sdkResponse = oci_common_2.composeResponse({
2150
+ responseObject: {},
2151
+ body: yield response.json(),
2152
+ bodyKey: "items",
2153
+ bodyModel: model.VirtualNodeSummary,
2154
+ type: "Array<model.VirtualNodeSummary>",
2155
+ responseHeaders: [
2156
+ {
2157
+ value: response.headers.get("opc-next-page"),
2158
+ key: "opcNextPage",
2159
+ dataType: "string"
2160
+ },
2161
+ {
2162
+ value: response.headers.get("opc-request-id"),
2163
+ key: "opcRequestId",
2164
+ dataType: "string"
2165
+ }
2166
+ ]
2167
+ });
2168
+ return sdkResponse;
2169
+ }
2170
+ catch (err) {
2171
+ throw err;
2172
+ }
2173
+ });
2174
+ }
2175
+ /**
2176
+ * NOTE: This function is deprecated in favor of listVirtualNodesRecordIterator function.
2177
+ * Creates a new async iterator which will iterate over the models.VirtualNodeSummary objects
2178
+ * contained in responses from the listVirtualNodes operation. This iterator will fetch more data from the
2179
+ * server as needed.
2180
+ *
2181
+ * @param request a request which can be sent to the service operation
2182
+ */
2183
+ listAllVirtualNodes(request) {
2184
+ return oci_common_1.paginateRecords(request, req => this.listVirtualNodes(req));
2185
+ }
2186
+ /**
2187
+ * NOTE: This function is deprecated in favor of listVirtualNodesResponseIterator function.
2188
+ * Creates a new async iterator which will iterate over the responses received from the listVirtualNodes operation. This iterator
2189
+ * will fetch more data from the server as needed.
2190
+ *
2191
+ * @param request a request which can be sent to the service operation
2192
+ */
2193
+ listAllVirtualNodesResponses(request) {
2194
+ return oci_common_1.paginateResponses(request, req => this.listVirtualNodes(req));
2195
+ }
2196
+ /**
2197
+ * Creates a new async iterator which will iterate over the models.VirtualNodeSummary objects
2198
+ * contained in responses from the listVirtualNodes operation. This iterator will fetch more data from the
2199
+ * server as needed.
2200
+ *
2201
+ * @param request a request which can be sent to the service operation
2202
+ */
2203
+ listVirtualNodesRecordIterator(request) {
2204
+ return oci_common_1.paginateRecords(request, req => this.listVirtualNodes(req));
2205
+ }
2206
+ /**
2207
+ * Creates a new async iterator which will iterate over the responses received from the listVirtualNodes operation. This iterator
2208
+ * will fetch more data from the server as needed.
2209
+ *
2210
+ * @param request a request which can be sent to the service operation
2211
+ */
2212
+ listVirtualNodesResponseIterator(request) {
2213
+ return oci_common_1.paginateResponses(request, req => this.listVirtualNodes(req));
1232
2214
  }
1233
2215
  /**
1234
2216
  * Get the errors of a work request.
@@ -1236,7 +2218,7 @@ class ContainerEngineClient {
1236
2218
  * @param ListWorkRequestErrorsRequest
1237
2219
  * @return ListWorkRequestErrorsResponse
1238
2220
  * @throws OciError when an error occurs
1239
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2221
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1240
2222
  */
1241
2223
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
1242
2224
  return __awaiter(this, void 0, void 0, function* () {
@@ -1296,7 +2278,7 @@ class ContainerEngineClient {
1296
2278
  * @param ListWorkRequestLogsRequest
1297
2279
  * @return ListWorkRequestLogsResponse
1298
2280
  * @throws OciError when an error occurs
1299
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2281
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1300
2282
  */
1301
2283
  listWorkRequestLogs(listWorkRequestLogsRequest) {
1302
2284
  return __awaiter(this, void 0, void 0, function* () {
@@ -1356,7 +2338,7 @@ class ContainerEngineClient {
1356
2338
  * @param ListWorkRequestsRequest
1357
2339
  * @return ListWorkRequestsResponse
1358
2340
  * @throws OciError when an error occurs
1359
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2341
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1360
2342
  */
1361
2343
  listWorkRequests(listWorkRequestsRequest) {
1362
2344
  return __awaiter(this, void 0, void 0, function* () {
@@ -1461,13 +2443,75 @@ class ContainerEngineClient {
1461
2443
  listWorkRequestsResponseIterator(request) {
1462
2444
  return oci_common_1.paginateResponses(request, req => this.listWorkRequests(req));
1463
2445
  }
2446
+ /**
2447
+ * Update addon details for a cluster.
2448
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2449
+ * @param UpdateAddonRequest
2450
+ * @return UpdateAddonResponse
2451
+ * @throws OciError when an error occurs
2452
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/UpdateAddon.ts.html |here} to see how to use UpdateAddon API.
2453
+ */
2454
+ updateAddon(updateAddonRequest) {
2455
+ return __awaiter(this, void 0, void 0, function* () {
2456
+ if (this.logger)
2457
+ this.logger.debug("Calling operation ContainerEngineClient#updateAddon.");
2458
+ const operationName = "updateAddon";
2459
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateAddon";
2460
+ const pathParams = {
2461
+ "{clusterId}": updateAddonRequest.clusterId,
2462
+ "{addonName}": updateAddonRequest.addonName
2463
+ };
2464
+ const queryParams = {};
2465
+ let headerParams = {
2466
+ "Content-Type": common.Constants.APPLICATION_JSON,
2467
+ "if-match": updateAddonRequest.ifMatch,
2468
+ "opc-request-id": updateAddonRequest.opcRequestId
2469
+ };
2470
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2471
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateAddonRequest.retryConfiguration, specRetryConfiguration);
2472
+ if (this.logger)
2473
+ retrier.logger = this.logger;
2474
+ const request = yield oci_common_2.composeRequest({
2475
+ baseEndpoint: this._endpoint,
2476
+ defaultHeaders: this._defaultHeaders,
2477
+ path: "/clusters/{clusterId}/addons/{addonName}",
2478
+ method: "PUT",
2479
+ bodyContent: common.ObjectSerializer.serialize(updateAddonRequest.updateAddonDetails, "UpdateAddonDetails", model.UpdateAddonDetails.getJsonObj),
2480
+ pathParams: pathParams,
2481
+ headerParams: headerParams,
2482
+ queryParams: queryParams
2483
+ });
2484
+ try {
2485
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2486
+ const sdkResponse = oci_common_2.composeResponse({
2487
+ responseObject: {},
2488
+ responseHeaders: [
2489
+ {
2490
+ value: response.headers.get("opc-work-request-id"),
2491
+ key: "opcWorkRequestId",
2492
+ dataType: "string"
2493
+ },
2494
+ {
2495
+ value: response.headers.get("opc-request-id"),
2496
+ key: "opcRequestId",
2497
+ dataType: "string"
2498
+ }
2499
+ ]
2500
+ });
2501
+ return sdkResponse;
2502
+ }
2503
+ catch (err) {
2504
+ throw err;
2505
+ }
2506
+ });
2507
+ }
1464
2508
  /**
1465
2509
  * Update the details of a cluster.
1466
2510
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1467
2511
  * @param UpdateClusterRequest
1468
2512
  * @return UpdateClusterResponse
1469
2513
  * @throws OciError when an error occurs
1470
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/UpdateCluster.ts.html |here} to see how to use UpdateCluster API.
2514
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/UpdateCluster.ts.html |here} to see how to use UpdateCluster API.
1471
2515
  */
1472
2516
  updateCluster(updateClusterRequest) {
1473
2517
  return __awaiter(this, void 0, void 0, function* () {
@@ -1528,7 +2572,7 @@ class ContainerEngineClient {
1528
2572
  * @param UpdateClusterEndpointConfigRequest
1529
2573
  * @return UpdateClusterEndpointConfigResponse
1530
2574
  * @throws OciError when an error occurs
1531
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/UpdateClusterEndpointConfig.ts.html |here} to see how to use UpdateClusterEndpointConfig API.
2575
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/UpdateClusterEndpointConfig.ts.html |here} to see how to use UpdateClusterEndpointConfig API.
1532
2576
  */
1533
2577
  updateClusterEndpointConfig(updateClusterEndpointConfigRequest) {
1534
2578
  return __awaiter(this, void 0, void 0, function* () {
@@ -1589,7 +2633,7 @@ class ContainerEngineClient {
1589
2633
  * @param UpdateNodePoolRequest
1590
2634
  * @return UpdateNodePoolResponse
1591
2635
  * @throws OciError when an error occurs
1592
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.54.0/containerengine/UpdateNodePool.ts.html |here} to see how to use UpdateNodePool API.
2636
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/UpdateNodePool.ts.html |here} to see how to use UpdateNodePool API.
1593
2637
  */
1594
2638
  updateNodePool(updateNodePoolRequest) {
1595
2639
  return __awaiter(this, void 0, void 0, function* () {
@@ -1647,6 +2691,67 @@ class ContainerEngineClient {
1647
2691
  }
1648
2692
  });
1649
2693
  }
2694
+ /**
2695
+ * Update the details of a virtual node pool.
2696
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2697
+ * @param UpdateVirtualNodePoolRequest
2698
+ * @return UpdateVirtualNodePoolResponse
2699
+ * @throws OciError when an error occurs
2700
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.55.0/containerengine/UpdateVirtualNodePool.ts.html |here} to see how to use UpdateVirtualNodePool API.
2701
+ */
2702
+ updateVirtualNodePool(updateVirtualNodePoolRequest) {
2703
+ return __awaiter(this, void 0, void 0, function* () {
2704
+ if (this.logger)
2705
+ this.logger.debug("Calling operation ContainerEngineClient#updateVirtualNodePool.");
2706
+ const operationName = "updateVirtualNodePool";
2707
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/UpdateVirtualNodePool";
2708
+ const pathParams = {
2709
+ "{virtualNodePoolId}": updateVirtualNodePoolRequest.virtualNodePoolId
2710
+ };
2711
+ const queryParams = {};
2712
+ let headerParams = {
2713
+ "Content-Type": common.Constants.APPLICATION_JSON,
2714
+ "if-match": updateVirtualNodePoolRequest.ifMatch,
2715
+ "opc-request-id": updateVirtualNodePoolRequest.opcRequestId
2716
+ };
2717
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2718
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateVirtualNodePoolRequest.retryConfiguration, specRetryConfiguration);
2719
+ if (this.logger)
2720
+ retrier.logger = this.logger;
2721
+ const request = yield oci_common_2.composeRequest({
2722
+ baseEndpoint: this._endpoint,
2723
+ defaultHeaders: this._defaultHeaders,
2724
+ path: "/virtualNodePools/{virtualNodePoolId}",
2725
+ method: "PUT",
2726
+ bodyContent: common.ObjectSerializer.serialize(updateVirtualNodePoolRequest.updateVirtualNodePoolDetails, "UpdateVirtualNodePoolDetails", model.UpdateVirtualNodePoolDetails.getJsonObj),
2727
+ pathParams: pathParams,
2728
+ headerParams: headerParams,
2729
+ queryParams: queryParams
2730
+ });
2731
+ try {
2732
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2733
+ const sdkResponse = oci_common_2.composeResponse({
2734
+ responseObject: {},
2735
+ responseHeaders: [
2736
+ {
2737
+ value: response.headers.get("opc-work-request-id"),
2738
+ key: "opcWorkRequestId",
2739
+ dataType: "string"
2740
+ },
2741
+ {
2742
+ value: response.headers.get("opc-request-id"),
2743
+ key: "opcRequestId",
2744
+ dataType: "string"
2745
+ }
2746
+ ]
2747
+ });
2748
+ return sdkResponse;
2749
+ }
2750
+ catch (err) {
2751
+ throw err;
2752
+ }
2753
+ });
2754
+ }
1650
2755
  }
1651
2756
  exports.ContainerEngineClient = ContainerEngineClient;
1652
2757
  ContainerEngineClient.serviceEndpointTemplate = "https://containerengine.{region}.oci.{secondLevelDomain}";