oci-managedkafka 2.116.1

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 (251) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +576 -0
  5. package/index.d.ts +22 -0
  6. package/index.js +45 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +310 -0
  9. package/lib/client.js +1652 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/kafkacluster-waiter.d.ts +44 -0
  12. package/lib/kafkacluster-waiter.js +88 -0
  13. package/lib/kafkacluster-waiter.js.map +1 -0
  14. package/lib/model/action-type.d.ts +32 -0
  15. package/lib/model/action-type.js +43 -0
  16. package/lib/model/action-type.js.map +1 -0
  17. package/lib/model/bootstrap-url.d.ts +29 -0
  18. package/lib/model/bootstrap-url.js +29 -0
  19. package/lib/model/bootstrap-url.js.map +1 -0
  20. package/lib/model/broker-shape.d.ts +33 -0
  21. package/lib/model/broker-shape.js +29 -0
  22. package/lib/model/broker-shape.js.map +1 -0
  23. package/lib/model/change-kafka-cluster-compartment-details.d.ts +26 -0
  24. package/lib/model/change-kafka-cluster-compartment-details.js +29 -0
  25. package/lib/model/change-kafka-cluster-compartment-details.js.map +1 -0
  26. package/lib/model/change-kafka-cluster-config-compartment-details.d.ts +26 -0
  27. package/lib/model/change-kafka-cluster-config-compartment-details.js +29 -0
  28. package/lib/model/change-kafka-cluster-config-compartment-details.js.map +1 -0
  29. package/lib/model/create-kafka-cluster-config-details.d.ts +54 -0
  30. package/lib/model/create-kafka-cluster-config-details.js +57 -0
  31. package/lib/model/create-kafka-cluster-config-details.js.map +1 -0
  32. package/lib/model/create-kafka-cluster-details.d.ts +85 -0
  33. package/lib/model/create-kafka-cluster-details.js +65 -0
  34. package/lib/model/create-kafka-cluster-details.js.map +1 -0
  35. package/lib/model/enable-superuser-details.d.ts +30 -0
  36. package/lib/model/enable-superuser-details.js +29 -0
  37. package/lib/model/enable-superuser-details.js.map +1 -0
  38. package/lib/model/index.d.ts +76 -0
  39. package/lib/model/index.js +99 -0
  40. package/lib/model/index.js.map +1 -0
  41. package/lib/model/kafka-cluster-collection.d.ts +26 -0
  42. package/lib/model/kafka-cluster-collection.js +61 -0
  43. package/lib/model/kafka-cluster-collection.js.map +1 -0
  44. package/lib/model/kafka-cluster-config-collection.d.ts +26 -0
  45. package/lib/model/kafka-cluster-config-collection.js +61 -0
  46. package/lib/model/kafka-cluster-config-collection.js.map +1 -0
  47. package/lib/model/kafka-cluster-config-summary.d.ts +90 -0
  48. package/lib/model/kafka-cluster-config-summary.js +29 -0
  49. package/lib/model/kafka-cluster-config-summary.js.map +1 -0
  50. package/lib/model/kafka-cluster-config-version-collection.d.ts +26 -0
  51. package/lib/model/kafka-cluster-config-version-collection.js +61 -0
  52. package/lib/model/kafka-cluster-config-version-collection.js.map +1 -0
  53. package/lib/model/kafka-cluster-config-version-summary.d.ts +35 -0
  54. package/lib/model/kafka-cluster-config-version-summary.js +29 -0
  55. package/lib/model/kafka-cluster-config-version-summary.js.map +1 -0
  56. package/lib/model/kafka-cluster-config-version.d.ts +42 -0
  57. package/lib/model/kafka-cluster-config-version.js +29 -0
  58. package/lib/model/kafka-cluster-config-version.js.map +1 -0
  59. package/lib/model/kafka-cluster-config.d.ts +108 -0
  60. package/lib/model/kafka-cluster-config.js +69 -0
  61. package/lib/model/kafka-cluster-config.js.map +1 -0
  62. package/lib/model/kafka-cluster-summary.d.ts +119 -0
  63. package/lib/model/kafka-cluster-summary.js +65 -0
  64. package/lib/model/kafka-cluster-summary.js.map +1 -0
  65. package/lib/model/kafka-cluster.d.ts +167 -0
  66. package/lib/model/kafka-cluster.js +109 -0
  67. package/lib/model/kafka-cluster.js.map +1 -0
  68. package/lib/model/operation-status.d.ts +34 -0
  69. package/lib/model/operation-status.js +45 -0
  70. package/lib/model/operation-status.js.map +1 -0
  71. package/lib/model/operation-type.d.ts +32 -0
  72. package/lib/model/operation-type.js +43 -0
  73. package/lib/model/operation-type.js.map +1 -0
  74. package/lib/model/sort-order.d.ts +30 -0
  75. package/lib/model/sort-order.js +41 -0
  76. package/lib/model/sort-order.js.map +1 -0
  77. package/lib/model/subnet-set.d.ts +25 -0
  78. package/lib/model/subnet-set.js +29 -0
  79. package/lib/model/subnet-set.js.map +1 -0
  80. package/lib/model/update-kafka-cluster-config-details.d.ts +49 -0
  81. package/lib/model/update-kafka-cluster-config-details.js +57 -0
  82. package/lib/model/update-kafka-cluster-config-details.js.map +1 -0
  83. package/lib/model/update-kafka-cluster-details.d.ts +69 -0
  84. package/lib/model/update-kafka-cluster-details.js +65 -0
  85. package/lib/model/update-kafka-cluster-details.js.map +1 -0
  86. package/lib/model/work-request-error-collection.d.ts +26 -0
  87. package/lib/model/work-request-error-collection.js +61 -0
  88. package/lib/model/work-request-error-collection.js.map +1 -0
  89. package/lib/model/work-request-error.d.ts +37 -0
  90. package/lib/model/work-request-error.js +29 -0
  91. package/lib/model/work-request-error.js.map +1 -0
  92. package/lib/model/work-request-log-entry-collection.d.ts +26 -0
  93. package/lib/model/work-request-log-entry-collection.js +61 -0
  94. package/lib/model/work-request-log-entry-collection.js.map +1 -0
  95. package/lib/model/work-request-log-entry.d.ts +31 -0
  96. package/lib/model/work-request-log-entry.js +29 -0
  97. package/lib/model/work-request-log-entry.js.map +1 -0
  98. package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
  99. package/lib/model/work-request-resource-metadata-key.js +38 -0
  100. package/lib/model/work-request-resource-metadata-key.js.map +1 -0
  101. package/lib/model/work-request-resource.d.ts +48 -0
  102. package/lib/model/work-request-resource.js +29 -0
  103. package/lib/model/work-request-resource.js.map +1 -0
  104. package/lib/model/work-request-summary-collection.d.ts +26 -0
  105. package/lib/model/work-request-summary-collection.js +61 -0
  106. package/lib/model/work-request-summary-collection.js.map +1 -0
  107. package/lib/model/work-request-summary.d.ts +73 -0
  108. package/lib/model/work-request-summary.js +61 -0
  109. package/lib/model/work-request-summary.js.map +1 -0
  110. package/lib/model/work-request.d.ts +76 -0
  111. package/lib/model/work-request.js +61 -0
  112. package/lib/model/work-request.js.map +1 -0
  113. package/lib/request/cancel-work-request-request.d.ts +38 -0
  114. package/lib/request/cancel-work-request-request.js +15 -0
  115. package/lib/request/cancel-work-request-request.js.map +1 -0
  116. package/lib/request/change-kafka-cluster-compartment-request.d.ts +43 -0
  117. package/lib/request/change-kafka-cluster-compartment-request.js +15 -0
  118. package/lib/request/change-kafka-cluster-compartment-request.js.map +1 -0
  119. package/lib/request/change-kafka-cluster-config-compartment-request.d.ts +43 -0
  120. package/lib/request/change-kafka-cluster-config-compartment-request.js +15 -0
  121. package/lib/request/change-kafka-cluster-config-compartment-request.js.map +1 -0
  122. package/lib/request/create-kafka-cluster-config-request.d.ts +40 -0
  123. package/lib/request/create-kafka-cluster-config-request.js +15 -0
  124. package/lib/request/create-kafka-cluster-config-request.js.map +1 -0
  125. package/lib/request/create-kafka-cluster-request.d.ts +40 -0
  126. package/lib/request/create-kafka-cluster-request.js +15 -0
  127. package/lib/request/create-kafka-cluster-request.js.map +1 -0
  128. package/lib/request/delete-kafka-cluster-config-request.d.ts +38 -0
  129. package/lib/request/delete-kafka-cluster-config-request.js +15 -0
  130. package/lib/request/delete-kafka-cluster-config-request.js.map +1 -0
  131. package/lib/request/delete-kafka-cluster-config-version-request.d.ts +42 -0
  132. package/lib/request/delete-kafka-cluster-config-version-request.js +15 -0
  133. package/lib/request/delete-kafka-cluster-config-version-request.js.map +1 -0
  134. package/lib/request/delete-kafka-cluster-request.d.ts +38 -0
  135. package/lib/request/delete-kafka-cluster-request.js +15 -0
  136. package/lib/request/delete-kafka-cluster-request.js.map +1 -0
  137. package/lib/request/disable-superuser-request.d.ts +47 -0
  138. package/lib/request/disable-superuser-request.js +15 -0
  139. package/lib/request/disable-superuser-request.js.map +1 -0
  140. package/lib/request/enable-superuser-request.d.ts +52 -0
  141. package/lib/request/enable-superuser-request.js +15 -0
  142. package/lib/request/enable-superuser-request.js.map +1 -0
  143. package/lib/request/get-kafka-cluster-config-request.d.ts +30 -0
  144. package/lib/request/get-kafka-cluster-config-request.js +15 -0
  145. package/lib/request/get-kafka-cluster-config-request.js.map +1 -0
  146. package/lib/request/get-kafka-cluster-config-version-request.d.ts +34 -0
  147. package/lib/request/get-kafka-cluster-config-version-request.js +15 -0
  148. package/lib/request/get-kafka-cluster-config-version-request.js.map +1 -0
  149. package/lib/request/get-kafka-cluster-request.d.ts +30 -0
  150. package/lib/request/get-kafka-cluster-request.js +15 -0
  151. package/lib/request/get-kafka-cluster-request.js.map +1 -0
  152. package/lib/request/get-work-request-request.d.ts +30 -0
  153. package/lib/request/get-work-request-request.js +15 -0
  154. package/lib/request/get-work-request-request.js.map +1 -0
  155. package/lib/request/index.d.ts +56 -0
  156. package/lib/request/index.js +47 -0
  157. package/lib/request/index.js.map +1 -0
  158. package/lib/request/list-kafka-cluster-config-versions-request.d.ts +60 -0
  159. package/lib/request/list-kafka-cluster-config-versions-request.js +23 -0
  160. package/lib/request/list-kafka-cluster-config-versions-request.js.map +1 -0
  161. package/lib/request/list-kafka-cluster-configs-request.d.ts +75 -0
  162. package/lib/request/list-kafka-cluster-configs-request.js +24 -0
  163. package/lib/request/list-kafka-cluster-configs-request.js.map +1 -0
  164. package/lib/request/list-kafka-clusters-request.d.ts +75 -0
  165. package/lib/request/list-kafka-clusters-request.js +24 -0
  166. package/lib/request/list-kafka-clusters-request.js.map +1 -0
  167. package/lib/request/list-work-request-errors-request.d.ts +59 -0
  168. package/lib/request/list-work-request-errors-request.js +23 -0
  169. package/lib/request/list-work-request-errors-request.js.map +1 -0
  170. package/lib/request/list-work-request-logs-request.d.ts +59 -0
  171. package/lib/request/list-work-request-logs-request.js +23 -0
  172. package/lib/request/list-work-request-logs-request.js.map +1 -0
  173. package/lib/request/list-work-requests-request.d.ts +71 -0
  174. package/lib/request/list-work-requests-request.js +23 -0
  175. package/lib/request/list-work-requests-request.js.map +1 -0
  176. package/lib/request/update-kafka-cluster-config-request.d.ts +43 -0
  177. package/lib/request/update-kafka-cluster-config-request.js +15 -0
  178. package/lib/request/update-kafka-cluster-config-request.js.map +1 -0
  179. package/lib/request/update-kafka-cluster-request.d.ts +43 -0
  180. package/lib/request/update-kafka-cluster-request.js +15 -0
  181. package/lib/request/update-kafka-cluster-request.js.map +1 -0
  182. package/lib/response/cancel-work-request-response.d.ts +20 -0
  183. package/lib/response/cancel-work-request-response.js +15 -0
  184. package/lib/response/cancel-work-request-response.js.map +1 -0
  185. package/lib/response/change-kafka-cluster-compartment-response.d.ts +26 -0
  186. package/lib/response/change-kafka-cluster-compartment-response.js +15 -0
  187. package/lib/response/change-kafka-cluster-compartment-response.js.map +1 -0
  188. package/lib/response/change-kafka-cluster-config-compartment-response.d.ts +20 -0
  189. package/lib/response/change-kafka-cluster-config-compartment-response.js +15 -0
  190. package/lib/response/change-kafka-cluster-config-compartment-response.js.map +1 -0
  191. package/lib/response/create-kafka-cluster-config-response.d.ts +38 -0
  192. package/lib/response/create-kafka-cluster-config-response.js +15 -0
  193. package/lib/response/create-kafka-cluster-config-response.js.map +1 -0
  194. package/lib/response/create-kafka-cluster-response.d.ts +44 -0
  195. package/lib/response/create-kafka-cluster-response.js +15 -0
  196. package/lib/response/create-kafka-cluster-response.js.map +1 -0
  197. package/lib/response/delete-kafka-cluster-config-response.d.ts +20 -0
  198. package/lib/response/delete-kafka-cluster-config-response.js +15 -0
  199. package/lib/response/delete-kafka-cluster-config-response.js.map +1 -0
  200. package/lib/response/delete-kafka-cluster-config-version-response.d.ts +20 -0
  201. package/lib/response/delete-kafka-cluster-config-version-response.js +15 -0
  202. package/lib/response/delete-kafka-cluster-config-version-response.js.map +1 -0
  203. package/lib/response/delete-kafka-cluster-response.d.ts +26 -0
  204. package/lib/response/delete-kafka-cluster-response.js +15 -0
  205. package/lib/response/delete-kafka-cluster-response.js.map +1 -0
  206. package/lib/response/disable-superuser-response.d.ts +26 -0
  207. package/lib/response/disable-superuser-response.js +15 -0
  208. package/lib/response/disable-superuser-response.js.map +1 -0
  209. package/lib/response/enable-superuser-response.d.ts +26 -0
  210. package/lib/response/enable-superuser-response.js +15 -0
  211. package/lib/response/enable-superuser-response.js.map +1 -0
  212. package/lib/response/get-kafka-cluster-config-response.d.ts +30 -0
  213. package/lib/response/get-kafka-cluster-config-response.js +15 -0
  214. package/lib/response/get-kafka-cluster-config-response.js.map +1 -0
  215. package/lib/response/get-kafka-cluster-config-version-response.d.ts +30 -0
  216. package/lib/response/get-kafka-cluster-config-version-response.js +15 -0
  217. package/lib/response/get-kafka-cluster-config-version-response.js.map +1 -0
  218. package/lib/response/get-kafka-cluster-response.d.ts +30 -0
  219. package/lib/response/get-kafka-cluster-response.js +15 -0
  220. package/lib/response/get-kafka-cluster-response.js.map +1 -0
  221. package/lib/response/get-work-request-response.d.ts +34 -0
  222. package/lib/response/get-work-request-response.js +15 -0
  223. package/lib/response/get-work-request-response.js.map +1 -0
  224. package/lib/response/index.d.ts +56 -0
  225. package/lib/response/index.js +15 -0
  226. package/lib/response/index.js.map +1 -0
  227. package/lib/response/list-kafka-cluster-config-versions-response.d.ts +31 -0
  228. package/lib/response/list-kafka-cluster-config-versions-response.js +15 -0
  229. package/lib/response/list-kafka-cluster-config-versions-response.js.map +1 -0
  230. package/lib/response/list-kafka-cluster-configs-response.d.ts +31 -0
  231. package/lib/response/list-kafka-cluster-configs-response.js +15 -0
  232. package/lib/response/list-kafka-cluster-configs-response.js.map +1 -0
  233. package/lib/response/list-kafka-clusters-response.d.ts +31 -0
  234. package/lib/response/list-kafka-clusters-response.js +15 -0
  235. package/lib/response/list-kafka-clusters-response.js.map +1 -0
  236. package/lib/response/list-work-request-errors-response.d.ts +31 -0
  237. package/lib/response/list-work-request-errors-response.js +15 -0
  238. package/lib/response/list-work-request-errors-response.js.map +1 -0
  239. package/lib/response/list-work-request-logs-response.d.ts +31 -0
  240. package/lib/response/list-work-request-logs-response.js +15 -0
  241. package/lib/response/list-work-request-logs-response.js.map +1 -0
  242. package/lib/response/list-work-requests-response.d.ts +31 -0
  243. package/lib/response/list-work-requests-response.js +15 -0
  244. package/lib/response/list-work-requests-response.js.map +1 -0
  245. package/lib/response/update-kafka-cluster-config-response.d.ts +30 -0
  246. package/lib/response/update-kafka-cluster-config-response.js +15 -0
  247. package/lib/response/update-kafka-cluster-config-response.js.map +1 -0
  248. package/lib/response/update-kafka-cluster-response.d.ts +36 -0
  249. package/lib/response/update-kafka-cluster-response.js +15 -0
  250. package/lib/response/update-kafka-cluster-response.js.map +1 -0
  251. package/package.json +29 -0
package/lib/client.js ADDED
@@ -0,0 +1,1652 @@
1
+ "use strict";
2
+ /**
3
+ * Oracle Streaming with Apache Kafka (OSAK) API
4
+ * Use Oracle Streaming with Apache Kafka Control Plane API to create/update/delete managed Kafka clusters.
5
+ * OpenAPI spec version: 20240901
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
34
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
+ return new (P || (P = Promise))(function (resolve, reject) {
36
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
40
+ });
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.KafkaClusterClient = exports.KafkaClusterApiKeys = void 0;
44
+ const common = require("oci-common");
45
+ const model = __importStar(require("./model"));
46
+ const kafkacluster_waiter_1 = require("./kafkacluster-waiter");
47
+ const oci_common_1 = require("oci-common");
48
+ const Breaker = require("opossum");
49
+ // ===============================================
50
+ // This file is autogenerated - Please do not edit
51
+ // ===============================================
52
+ var KafkaClusterApiKeys;
53
+ (function (KafkaClusterApiKeys) {
54
+ })(KafkaClusterApiKeys = exports.KafkaClusterApiKeys || (exports.KafkaClusterApiKeys = {}));
55
+ /**
56
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
57
+ */
58
+ class KafkaClusterClient {
59
+ constructor(params, clientConfiguration) {
60
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
61
+ this["_endpoint"] = "";
62
+ this["_defaultHeaders"] = {};
63
+ this._circuitBreaker = null;
64
+ this._httpOptions = undefined;
65
+ this._bodyDuplexMode = undefined;
66
+ this.targetService = "KafkaCluster";
67
+ this._regionId = "";
68
+ this._lastSetRegionOrRegionId = "";
69
+ const requestSigner = params.authenticationDetailsProvider
70
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
71
+ : null;
72
+ this._authProvider = params.authenticationDetailsProvider;
73
+ if (clientConfiguration) {
74
+ this._clientConfiguration = clientConfiguration;
75
+ this._circuitBreaker = clientConfiguration.circuitBreaker
76
+ ? clientConfiguration.circuitBreaker.circuit
77
+ : null;
78
+ this._httpOptions = clientConfiguration.httpOptions
79
+ ? clientConfiguration.httpOptions
80
+ : undefined;
81
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
82
+ ? clientConfiguration.bodyDuplexMode
83
+ : undefined;
84
+ }
85
+ if (!oci_common_1.developerToolConfiguration.isServiceEnabled("managedkafka")) {
86
+ let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
87
+ throw errmsg.concat("managedkafka");
88
+ }
89
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
90
+ const specCircuitBreakerEnabled = true;
91
+ if (!this._circuitBreaker &&
92
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
93
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
94
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
95
+ }
96
+ this._httpClient =
97
+ params.httpClient ||
98
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
99
+ if (params.authenticationDetailsProvider &&
100
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
101
+ const provider = params.authenticationDetailsProvider;
102
+ if (provider.getRegion()) {
103
+ this.region = provider.getRegion();
104
+ }
105
+ }
106
+ }
107
+ /**
108
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
109
+ */
110
+ get endpoint() {
111
+ return this._endpoint;
112
+ }
113
+ /**
114
+ * Sets the endpoint to call (ex, https://www.example.com).
115
+ * @param endpoint The endpoint of the service.
116
+ */
117
+ set endpoint(endpoint) {
118
+ this._endpoint = endpoint;
119
+ this._endpoint = this._endpoint + "/20240901";
120
+ if (this.logger)
121
+ this.logger.info(`KafkaClusterClient endpoint set to ${this._endpoint}`);
122
+ }
123
+ get logger() {
124
+ return common.LOG.logger;
125
+ }
126
+ /**
127
+ * Determines whether realm specific endpoint should be used or not.
128
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
129
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
130
+ */
131
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
132
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
133
+ if (this.logger)
134
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
135
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
136
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(KafkaClusterClient.serviceEndpointTemplate, this._region, KafkaClusterClient.endpointServiceName);
137
+ }
138
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
139
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(KafkaClusterClient.serviceEndpointTemplate, this._regionId, KafkaClusterClient.endpointServiceName);
140
+ }
141
+ }
142
+ /**
143
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
144
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
145
+ * @param region The region of the service.
146
+ */
147
+ set region(region) {
148
+ this._region = region;
149
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(KafkaClusterClient.serviceEndpointTemplate, region, KafkaClusterClient.endpointServiceName);
150
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
151
+ }
152
+ /**
153
+ * Sets the regionId to call (ex, 'us-phoenix-1').
154
+ *
155
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
156
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
157
+ * and then call {@link #endpoint(String) endpoint}.
158
+ * @param regionId The public region ID.
159
+ */
160
+ set regionId(regionId) {
161
+ this._regionId = regionId;
162
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(KafkaClusterClient.serviceEndpointTemplate, regionId, KafkaClusterClient.endpointServiceName);
163
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
164
+ }
165
+ /**
166
+ * Creates a new KafkaClusterWaiter for resources for this service.
167
+ *
168
+ * @param config The waiter configuration for termination and delay strategy
169
+ * @return The service waiters.
170
+ */
171
+ createWaiters(config) {
172
+ this._waiters = new kafkacluster_waiter_1.KafkaClusterWaiter(this, config);
173
+ return this._waiters;
174
+ }
175
+ /**
176
+ * Gets the waiters available for resources for this service.
177
+ *
178
+ * @return The service waiters.
179
+ */
180
+ getWaiters() {
181
+ if (this._waiters) {
182
+ return this._waiters;
183
+ }
184
+ throw Error("Waiters do not exist. Please create waiters.");
185
+ }
186
+ /**
187
+ * Shutdown the circuit breaker used by the client when it is no longer needed
188
+ */
189
+ shutdownCircuitBreaker() {
190
+ if (this._circuitBreaker) {
191
+ this._circuitBreaker.shutdown();
192
+ }
193
+ }
194
+ /**
195
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
196
+ */
197
+ closeProvider() {
198
+ if (this._authProvider) {
199
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
200
+ (this._authProvider).closeProvider();
201
+ }
202
+ }
203
+ /**
204
+ * Close the client once it is no longer needed
205
+ */
206
+ close() {
207
+ this.shutdownCircuitBreaker();
208
+ this.closeProvider();
209
+ }
210
+ /**
211
+ * Cancels a work request.
212
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
213
+ * @param CancelWorkRequestRequest
214
+ * @return CancelWorkRequestResponse
215
+ * @throws OciError when an error occurs
216
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
217
+ */
218
+ cancelWorkRequest(cancelWorkRequestRequest) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ if (this.logger)
221
+ this.logger.debug("Calling operation KafkaClusterClient#cancelWorkRequest.");
222
+ const operationName = "cancelWorkRequest";
223
+ const apiReferenceLink = "";
224
+ const pathParams = {
225
+ "{workRequestId}": cancelWorkRequestRequest.workRequestId
226
+ };
227
+ const queryParams = {};
228
+ let headerParams = {
229
+ "Content-Type": common.Constants.APPLICATION_JSON,
230
+ "if-match": cancelWorkRequestRequest.ifMatch,
231
+ "opc-request-id": cancelWorkRequestRequest.opcRequestId
232
+ };
233
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
234
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
235
+ if (this.logger)
236
+ retrier.logger = this.logger;
237
+ const request = yield oci_common_1.composeRequest({
238
+ baseEndpoint: this._endpoint,
239
+ defaultHeaders: this._defaultHeaders,
240
+ path: "/workRequests/{workRequestId}",
241
+ method: "DELETE",
242
+ pathParams: pathParams,
243
+ headerParams: headerParams,
244
+ queryParams: queryParams
245
+ });
246
+ try {
247
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
248
+ const sdkResponse = oci_common_1.composeResponse({
249
+ responseObject: {},
250
+ responseHeaders: [
251
+ {
252
+ value: response.headers.get("opc-request-id"),
253
+ key: "opcRequestId",
254
+ dataType: "string"
255
+ }
256
+ ]
257
+ });
258
+ return sdkResponse;
259
+ }
260
+ catch (err) {
261
+ throw err;
262
+ }
263
+ });
264
+ }
265
+ /**
266
+ * Moves a KafkaCluster into a different compartment within the same tenancy. For information about moving resources between
267
+ * compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
268
+ *
269
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
270
+ * @param ChangeKafkaClusterCompartmentRequest
271
+ * @return ChangeKafkaClusterCompartmentResponse
272
+ * @throws OciError when an error occurs
273
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ChangeKafkaClusterCompartment.ts.html |here} to see how to use ChangeKafkaClusterCompartment API.
274
+ */
275
+ changeKafkaClusterCompartment(changeKafkaClusterCompartmentRequest) {
276
+ return __awaiter(this, void 0, void 0, function* () {
277
+ if (this.logger)
278
+ this.logger.debug("Calling operation KafkaClusterClient#changeKafkaClusterCompartment.");
279
+ const operationName = "changeKafkaClusterCompartment";
280
+ const apiReferenceLink = "";
281
+ const pathParams = {
282
+ "{kafkaClusterId}": changeKafkaClusterCompartmentRequest.kafkaClusterId
283
+ };
284
+ const queryParams = {};
285
+ let headerParams = {
286
+ "Content-Type": common.Constants.APPLICATION_JSON,
287
+ "if-match": changeKafkaClusterCompartmentRequest.ifMatch,
288
+ "opc-request-id": changeKafkaClusterCompartmentRequest.opcRequestId
289
+ };
290
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
291
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeKafkaClusterCompartmentRequest.retryConfiguration, specRetryConfiguration);
292
+ if (this.logger)
293
+ retrier.logger = this.logger;
294
+ const request = yield oci_common_1.composeRequest({
295
+ baseEndpoint: this._endpoint,
296
+ defaultHeaders: this._defaultHeaders,
297
+ path: "/kafkaClusters/{kafkaClusterId}/actions/changeCompartment",
298
+ method: "POST",
299
+ bodyContent: common.ObjectSerializer.serialize(changeKafkaClusterCompartmentRequest.changeKafkaClusterCompartmentDetails, "ChangeKafkaClusterCompartmentDetails", model.ChangeKafkaClusterCompartmentDetails.getJsonObj),
300
+ pathParams: pathParams,
301
+ headerParams: headerParams,
302
+ queryParams: queryParams
303
+ });
304
+ try {
305
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
306
+ const sdkResponse = oci_common_1.composeResponse({
307
+ responseObject: {},
308
+ responseHeaders: [
309
+ {
310
+ value: response.headers.get("opc-work-request-id"),
311
+ key: "opcWorkRequestId",
312
+ dataType: "string"
313
+ },
314
+ {
315
+ value: response.headers.get("opc-request-id"),
316
+ key: "opcRequestId",
317
+ dataType: "string"
318
+ }
319
+ ]
320
+ });
321
+ return sdkResponse;
322
+ }
323
+ catch (err) {
324
+ throw err;
325
+ }
326
+ });
327
+ }
328
+ /**
329
+ * Moves a KafkaClusterConfig into a different compartment within the same tenancy. For information about moving resources between
330
+ * compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
331
+ *
332
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
333
+ * @param ChangeKafkaClusterConfigCompartmentRequest
334
+ * @return ChangeKafkaClusterConfigCompartmentResponse
335
+ * @throws OciError when an error occurs
336
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ChangeKafkaClusterConfigCompartment.ts.html |here} to see how to use ChangeKafkaClusterConfigCompartment API.
337
+ */
338
+ changeKafkaClusterConfigCompartment(changeKafkaClusterConfigCompartmentRequest) {
339
+ return __awaiter(this, void 0, void 0, function* () {
340
+ if (this.logger)
341
+ this.logger.debug("Calling operation KafkaClusterClient#changeKafkaClusterConfigCompartment.");
342
+ const operationName = "changeKafkaClusterConfigCompartment";
343
+ const apiReferenceLink = "";
344
+ const pathParams = {
345
+ "{kafkaClusterConfigId}": changeKafkaClusterConfigCompartmentRequest.kafkaClusterConfigId
346
+ };
347
+ const queryParams = {};
348
+ let headerParams = {
349
+ "Content-Type": common.Constants.APPLICATION_JSON,
350
+ "if-match": changeKafkaClusterConfigCompartmentRequest.ifMatch,
351
+ "opc-request-id": changeKafkaClusterConfigCompartmentRequest.opcRequestId
352
+ };
353
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
354
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeKafkaClusterConfigCompartmentRequest.retryConfiguration, specRetryConfiguration);
355
+ if (this.logger)
356
+ retrier.logger = this.logger;
357
+ const request = yield oci_common_1.composeRequest({
358
+ baseEndpoint: this._endpoint,
359
+ defaultHeaders: this._defaultHeaders,
360
+ path: "/kafkaClusterConfigs/{kafkaClusterConfigId}/actions/changeCompartment",
361
+ method: "POST",
362
+ bodyContent: common.ObjectSerializer.serialize(changeKafkaClusterConfigCompartmentRequest.changeKafkaClusterConfigCompartmentDetails, "ChangeKafkaClusterConfigCompartmentDetails", model.ChangeKafkaClusterConfigCompartmentDetails.getJsonObj),
363
+ pathParams: pathParams,
364
+ headerParams: headerParams,
365
+ queryParams: queryParams
366
+ });
367
+ try {
368
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
369
+ const sdkResponse = oci_common_1.composeResponse({
370
+ responseObject: {},
371
+ responseHeaders: [
372
+ {
373
+ value: response.headers.get("opc-request-id"),
374
+ key: "opcRequestId",
375
+ dataType: "string"
376
+ }
377
+ ]
378
+ });
379
+ return sdkResponse;
380
+ }
381
+ catch (err) {
382
+ throw err;
383
+ }
384
+ });
385
+ }
386
+ /**
387
+ * Creates a KafkaCluster.
388
+ *
389
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
390
+ * @param CreateKafkaClusterRequest
391
+ * @return CreateKafkaClusterResponse
392
+ * @throws OciError when an error occurs
393
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/CreateKafkaCluster.ts.html |here} to see how to use CreateKafkaCluster API.
394
+ */
395
+ createKafkaCluster(createKafkaClusterRequest) {
396
+ return __awaiter(this, void 0, void 0, function* () {
397
+ if (this.logger)
398
+ this.logger.debug("Calling operation KafkaClusterClient#createKafkaCluster.");
399
+ const operationName = "createKafkaCluster";
400
+ const apiReferenceLink = "";
401
+ const pathParams = {};
402
+ const queryParams = {};
403
+ let headerParams = {
404
+ "Content-Type": common.Constants.APPLICATION_JSON,
405
+ "opc-retry-token": createKafkaClusterRequest.opcRetryToken,
406
+ "opc-request-id": createKafkaClusterRequest.opcRequestId
407
+ };
408
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
409
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createKafkaClusterRequest.retryConfiguration, specRetryConfiguration);
410
+ if (this.logger)
411
+ retrier.logger = this.logger;
412
+ const request = yield oci_common_1.composeRequest({
413
+ baseEndpoint: this._endpoint,
414
+ defaultHeaders: this._defaultHeaders,
415
+ path: "/kafkaClusters",
416
+ method: "POST",
417
+ bodyContent: common.ObjectSerializer.serialize(createKafkaClusterRequest.createKafkaClusterDetails, "CreateKafkaClusterDetails", model.CreateKafkaClusterDetails.getJsonObj),
418
+ pathParams: pathParams,
419
+ headerParams: headerParams,
420
+ queryParams: queryParams
421
+ });
422
+ try {
423
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
424
+ const sdkResponse = oci_common_1.composeResponse({
425
+ responseObject: {},
426
+ body: yield response.json(),
427
+ bodyKey: "kafkaCluster",
428
+ bodyModel: model.KafkaCluster,
429
+ type: "model.KafkaCluster",
430
+ responseHeaders: [
431
+ {
432
+ value: response.headers.get("location"),
433
+ key: "location",
434
+ dataType: "string"
435
+ },
436
+ {
437
+ value: response.headers.get("content-location"),
438
+ key: "contentLocation",
439
+ dataType: "string"
440
+ },
441
+ {
442
+ value: response.headers.get("etag"),
443
+ key: "etag",
444
+ dataType: "string"
445
+ },
446
+ {
447
+ value: response.headers.get("opc-work-request-id"),
448
+ key: "opcWorkRequestId",
449
+ dataType: "string"
450
+ },
451
+ {
452
+ value: response.headers.get("opc-request-id"),
453
+ key: "opcRequestId",
454
+ dataType: "string"
455
+ }
456
+ ]
457
+ });
458
+ return sdkResponse;
459
+ }
460
+ catch (err) {
461
+ throw err;
462
+ }
463
+ });
464
+ }
465
+ /**
466
+ * Creates a KafkaClusterConfig.
467
+ *
468
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
469
+ * @param CreateKafkaClusterConfigRequest
470
+ * @return CreateKafkaClusterConfigResponse
471
+ * @throws OciError when an error occurs
472
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/CreateKafkaClusterConfig.ts.html |here} to see how to use CreateKafkaClusterConfig API.
473
+ */
474
+ createKafkaClusterConfig(createKafkaClusterConfigRequest) {
475
+ return __awaiter(this, void 0, void 0, function* () {
476
+ if (this.logger)
477
+ this.logger.debug("Calling operation KafkaClusterClient#createKafkaClusterConfig.");
478
+ const operationName = "createKafkaClusterConfig";
479
+ const apiReferenceLink = "";
480
+ const pathParams = {};
481
+ const queryParams = {};
482
+ let headerParams = {
483
+ "Content-Type": common.Constants.APPLICATION_JSON,
484
+ "opc-retry-token": createKafkaClusterConfigRequest.opcRetryToken,
485
+ "opc-request-id": createKafkaClusterConfigRequest.opcRequestId
486
+ };
487
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
488
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createKafkaClusterConfigRequest.retryConfiguration, specRetryConfiguration);
489
+ if (this.logger)
490
+ retrier.logger = this.logger;
491
+ const request = yield oci_common_1.composeRequest({
492
+ baseEndpoint: this._endpoint,
493
+ defaultHeaders: this._defaultHeaders,
494
+ path: "/kafkaClusterConfigs",
495
+ method: "POST",
496
+ bodyContent: common.ObjectSerializer.serialize(createKafkaClusterConfigRequest.createKafkaClusterConfigDetails, "CreateKafkaClusterConfigDetails", model.CreateKafkaClusterConfigDetails.getJsonObj),
497
+ pathParams: pathParams,
498
+ headerParams: headerParams,
499
+ queryParams: queryParams
500
+ });
501
+ try {
502
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
503
+ const sdkResponse = oci_common_1.composeResponse({
504
+ responseObject: {},
505
+ body: yield response.json(),
506
+ bodyKey: "kafkaClusterConfig",
507
+ bodyModel: model.KafkaClusterConfig,
508
+ type: "model.KafkaClusterConfig",
509
+ responseHeaders: [
510
+ {
511
+ value: response.headers.get("etag"),
512
+ key: "etag",
513
+ dataType: "string"
514
+ },
515
+ {
516
+ value: response.headers.get("opc-request-id"),
517
+ key: "opcRequestId",
518
+ dataType: "string"
519
+ },
520
+ {
521
+ value: response.headers.get("location"),
522
+ key: "location",
523
+ dataType: "string"
524
+ },
525
+ {
526
+ value: response.headers.get("content-location"),
527
+ key: "contentLocation",
528
+ dataType: "string"
529
+ }
530
+ ]
531
+ });
532
+ return sdkResponse;
533
+ }
534
+ catch (err) {
535
+ throw err;
536
+ }
537
+ });
538
+ }
539
+ /**
540
+ * Deletes a KafkaCluster.
541
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
542
+ * @param DeleteKafkaClusterRequest
543
+ * @return DeleteKafkaClusterResponse
544
+ * @throws OciError when an error occurs
545
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/DeleteKafkaCluster.ts.html |here} to see how to use DeleteKafkaCluster API.
546
+ */
547
+ deleteKafkaCluster(deleteKafkaClusterRequest) {
548
+ return __awaiter(this, void 0, void 0, function* () {
549
+ if (this.logger)
550
+ this.logger.debug("Calling operation KafkaClusterClient#deleteKafkaCluster.");
551
+ const operationName = "deleteKafkaCluster";
552
+ const apiReferenceLink = "";
553
+ const pathParams = {
554
+ "{kafkaClusterId}": deleteKafkaClusterRequest.kafkaClusterId
555
+ };
556
+ const queryParams = {};
557
+ let headerParams = {
558
+ "Content-Type": common.Constants.APPLICATION_JSON,
559
+ "if-match": deleteKafkaClusterRequest.ifMatch,
560
+ "opc-request-id": deleteKafkaClusterRequest.opcRequestId
561
+ };
562
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
563
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteKafkaClusterRequest.retryConfiguration, specRetryConfiguration);
564
+ if (this.logger)
565
+ retrier.logger = this.logger;
566
+ const request = yield oci_common_1.composeRequest({
567
+ baseEndpoint: this._endpoint,
568
+ defaultHeaders: this._defaultHeaders,
569
+ path: "/kafkaClusters/{kafkaClusterId}",
570
+ method: "DELETE",
571
+ pathParams: pathParams,
572
+ headerParams: headerParams,
573
+ queryParams: queryParams
574
+ });
575
+ try {
576
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
577
+ const sdkResponse = oci_common_1.composeResponse({
578
+ responseObject: {},
579
+ responseHeaders: [
580
+ {
581
+ value: response.headers.get("opc-work-request-id"),
582
+ key: "opcWorkRequestId",
583
+ dataType: "string"
584
+ },
585
+ {
586
+ value: response.headers.get("opc-request-id"),
587
+ key: "opcRequestId",
588
+ dataType: "string"
589
+ }
590
+ ]
591
+ });
592
+ return sdkResponse;
593
+ }
594
+ catch (err) {
595
+ throw err;
596
+ }
597
+ });
598
+ }
599
+ /**
600
+ * Deletes a KafkaClusterConfig.
601
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
602
+ * @param DeleteKafkaClusterConfigRequest
603
+ * @return DeleteKafkaClusterConfigResponse
604
+ * @throws OciError when an error occurs
605
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/DeleteKafkaClusterConfig.ts.html |here} to see how to use DeleteKafkaClusterConfig API.
606
+ */
607
+ deleteKafkaClusterConfig(deleteKafkaClusterConfigRequest) {
608
+ return __awaiter(this, void 0, void 0, function* () {
609
+ if (this.logger)
610
+ this.logger.debug("Calling operation KafkaClusterClient#deleteKafkaClusterConfig.");
611
+ const operationName = "deleteKafkaClusterConfig";
612
+ const apiReferenceLink = "";
613
+ const pathParams = {
614
+ "{kafkaClusterConfigId}": deleteKafkaClusterConfigRequest.kafkaClusterConfigId
615
+ };
616
+ const queryParams = {};
617
+ let headerParams = {
618
+ "Content-Type": common.Constants.APPLICATION_JSON,
619
+ "if-match": deleteKafkaClusterConfigRequest.ifMatch,
620
+ "opc-request-id": deleteKafkaClusterConfigRequest.opcRequestId
621
+ };
622
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
623
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteKafkaClusterConfigRequest.retryConfiguration, specRetryConfiguration);
624
+ if (this.logger)
625
+ retrier.logger = this.logger;
626
+ const request = yield oci_common_1.composeRequest({
627
+ baseEndpoint: this._endpoint,
628
+ defaultHeaders: this._defaultHeaders,
629
+ path: "/kafkaClusterConfigs/{kafkaClusterConfigId}",
630
+ method: "DELETE",
631
+ pathParams: pathParams,
632
+ headerParams: headerParams,
633
+ queryParams: queryParams
634
+ });
635
+ try {
636
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
637
+ const sdkResponse = oci_common_1.composeResponse({
638
+ responseObject: {},
639
+ responseHeaders: [
640
+ {
641
+ value: response.headers.get("opc-request-id"),
642
+ key: "opcRequestId",
643
+ dataType: "string"
644
+ }
645
+ ]
646
+ });
647
+ return sdkResponse;
648
+ }
649
+ catch (err) {
650
+ throw err;
651
+ }
652
+ });
653
+ }
654
+ /**
655
+ * Deletes a KafkaClusterConfig version.
656
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
657
+ * @param DeleteKafkaClusterConfigVersionRequest
658
+ * @return DeleteKafkaClusterConfigVersionResponse
659
+ * @throws OciError when an error occurs
660
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/DeleteKafkaClusterConfigVersion.ts.html |here} to see how to use DeleteKafkaClusterConfigVersion API.
661
+ */
662
+ deleteKafkaClusterConfigVersion(deleteKafkaClusterConfigVersionRequest) {
663
+ return __awaiter(this, void 0, void 0, function* () {
664
+ if (this.logger)
665
+ this.logger.debug("Calling operation KafkaClusterClient#deleteKafkaClusterConfigVersion.");
666
+ const operationName = "deleteKafkaClusterConfigVersion";
667
+ const apiReferenceLink = "";
668
+ const pathParams = {
669
+ "{kafkaClusterConfigId}": deleteKafkaClusterConfigVersionRequest.kafkaClusterConfigId,
670
+ "{versionNumber}": deleteKafkaClusterConfigVersionRequest.versionNumber
671
+ };
672
+ const queryParams = {};
673
+ let headerParams = {
674
+ "Content-Type": common.Constants.APPLICATION_JSON,
675
+ "if-match": deleteKafkaClusterConfigVersionRequest.ifMatch,
676
+ "opc-request-id": deleteKafkaClusterConfigVersionRequest.opcRequestId
677
+ };
678
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
679
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteKafkaClusterConfigVersionRequest.retryConfiguration, specRetryConfiguration);
680
+ if (this.logger)
681
+ retrier.logger = this.logger;
682
+ const request = yield oci_common_1.composeRequest({
683
+ baseEndpoint: this._endpoint,
684
+ defaultHeaders: this._defaultHeaders,
685
+ path: "/kafkaClusterConfigs/{kafkaClusterConfigId}/versions/{versionNumber}",
686
+ method: "DELETE",
687
+ pathParams: pathParams,
688
+ headerParams: headerParams,
689
+ queryParams: queryParams
690
+ });
691
+ try {
692
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
693
+ const sdkResponse = oci_common_1.composeResponse({
694
+ responseObject: {},
695
+ responseHeaders: [
696
+ {
697
+ value: response.headers.get("opc-request-id"),
698
+ key: "opcRequestId",
699
+ dataType: "string"
700
+ }
701
+ ]
702
+ });
703
+ return sdkResponse;
704
+ }
705
+ catch (err) {
706
+ throw err;
707
+ }
708
+ });
709
+ }
710
+ /**
711
+ * Removes the SASL superuser to the Kafka cluster.
712
+ *
713
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
714
+ * @param DisableSuperuserRequest
715
+ * @return DisableSuperuserResponse
716
+ * @throws OciError when an error occurs
717
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/DisableSuperuser.ts.html |here} to see how to use DisableSuperuser API.
718
+ */
719
+ disableSuperuser(disableSuperuserRequest) {
720
+ return __awaiter(this, void 0, void 0, function* () {
721
+ if (this.logger)
722
+ this.logger.debug("Calling operation KafkaClusterClient#disableSuperuser.");
723
+ const operationName = "disableSuperuser";
724
+ const apiReferenceLink = "";
725
+ const pathParams = {
726
+ "{kafkaClusterId}": disableSuperuserRequest.kafkaClusterId
727
+ };
728
+ const queryParams = {};
729
+ let headerParams = {
730
+ "Content-Type": common.Constants.APPLICATION_JSON,
731
+ "if-match": disableSuperuserRequest.ifMatch,
732
+ "opc-request-id": disableSuperuserRequest.opcRequestId,
733
+ "opc-retry-token": disableSuperuserRequest.opcRetryToken
734
+ };
735
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
736
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableSuperuserRequest.retryConfiguration, specRetryConfiguration);
737
+ if (this.logger)
738
+ retrier.logger = this.logger;
739
+ const request = yield oci_common_1.composeRequest({
740
+ baseEndpoint: this._endpoint,
741
+ defaultHeaders: this._defaultHeaders,
742
+ path: "/kafkaClusters/{kafkaClusterId}/actions/disableSuperuser",
743
+ method: "POST",
744
+ pathParams: pathParams,
745
+ headerParams: headerParams,
746
+ queryParams: queryParams
747
+ });
748
+ try {
749
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
750
+ const sdkResponse = oci_common_1.composeResponse({
751
+ responseObject: {},
752
+ responseHeaders: [
753
+ {
754
+ value: response.headers.get("opc-work-request-id"),
755
+ key: "opcWorkRequestId",
756
+ dataType: "string"
757
+ },
758
+ {
759
+ value: response.headers.get("opc-request-id"),
760
+ key: "opcRequestId",
761
+ dataType: "string"
762
+ }
763
+ ]
764
+ });
765
+ return sdkResponse;
766
+ }
767
+ catch (err) {
768
+ throw err;
769
+ }
770
+ });
771
+ }
772
+ /**
773
+ * Adds a SASL superuser to the Kafka cluster. A generated password will be updated to the specified vault.
774
+ *
775
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
776
+ * @param EnableSuperuserRequest
777
+ * @return EnableSuperuserResponse
778
+ * @throws OciError when an error occurs
779
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/EnableSuperuser.ts.html |here} to see how to use EnableSuperuser API.
780
+ */
781
+ enableSuperuser(enableSuperuserRequest) {
782
+ return __awaiter(this, void 0, void 0, function* () {
783
+ if (this.logger)
784
+ this.logger.debug("Calling operation KafkaClusterClient#enableSuperuser.");
785
+ const operationName = "enableSuperuser";
786
+ const apiReferenceLink = "";
787
+ const pathParams = {
788
+ "{kafkaClusterId}": enableSuperuserRequest.kafkaClusterId
789
+ };
790
+ const queryParams = {};
791
+ let headerParams = {
792
+ "Content-Type": common.Constants.APPLICATION_JSON,
793
+ "if-match": enableSuperuserRequest.ifMatch,
794
+ "opc-request-id": enableSuperuserRequest.opcRequestId,
795
+ "opc-retry-token": enableSuperuserRequest.opcRetryToken
796
+ };
797
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
798
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableSuperuserRequest.retryConfiguration, specRetryConfiguration);
799
+ if (this.logger)
800
+ retrier.logger = this.logger;
801
+ const request = yield oci_common_1.composeRequest({
802
+ baseEndpoint: this._endpoint,
803
+ defaultHeaders: this._defaultHeaders,
804
+ path: "/kafkaClusters/{kafkaClusterId}/actions/enableSuperuser",
805
+ method: "POST",
806
+ bodyContent: common.ObjectSerializer.serialize(enableSuperuserRequest.enableSuperuserDetails, "EnableSuperuserDetails", model.EnableSuperuserDetails.getJsonObj),
807
+ pathParams: pathParams,
808
+ headerParams: headerParams,
809
+ queryParams: queryParams
810
+ });
811
+ try {
812
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
813
+ const sdkResponse = oci_common_1.composeResponse({
814
+ responseObject: {},
815
+ responseHeaders: [
816
+ {
817
+ value: response.headers.get("opc-work-request-id"),
818
+ key: "opcWorkRequestId",
819
+ dataType: "string"
820
+ },
821
+ {
822
+ value: response.headers.get("opc-request-id"),
823
+ key: "opcRequestId",
824
+ dataType: "string"
825
+ }
826
+ ]
827
+ });
828
+ return sdkResponse;
829
+ }
830
+ catch (err) {
831
+ throw err;
832
+ }
833
+ });
834
+ }
835
+ /**
836
+ * Gets information about a KafkaCluster.
837
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
838
+ * @param GetKafkaClusterRequest
839
+ * @return GetKafkaClusterResponse
840
+ * @throws OciError when an error occurs
841
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/GetKafkaCluster.ts.html |here} to see how to use GetKafkaCluster API.
842
+ */
843
+ getKafkaCluster(getKafkaClusterRequest) {
844
+ return __awaiter(this, void 0, void 0, function* () {
845
+ if (this.logger)
846
+ this.logger.debug("Calling operation KafkaClusterClient#getKafkaCluster.");
847
+ const operationName = "getKafkaCluster";
848
+ const apiReferenceLink = "";
849
+ const pathParams = {
850
+ "{kafkaClusterId}": getKafkaClusterRequest.kafkaClusterId
851
+ };
852
+ const queryParams = {};
853
+ let headerParams = {
854
+ "Content-Type": common.Constants.APPLICATION_JSON,
855
+ "opc-request-id": getKafkaClusterRequest.opcRequestId
856
+ };
857
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
858
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKafkaClusterRequest.retryConfiguration, specRetryConfiguration);
859
+ if (this.logger)
860
+ retrier.logger = this.logger;
861
+ const request = yield oci_common_1.composeRequest({
862
+ baseEndpoint: this._endpoint,
863
+ defaultHeaders: this._defaultHeaders,
864
+ path: "/kafkaClusters/{kafkaClusterId}",
865
+ method: "GET",
866
+ pathParams: pathParams,
867
+ headerParams: headerParams,
868
+ queryParams: queryParams
869
+ });
870
+ try {
871
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
872
+ const sdkResponse = oci_common_1.composeResponse({
873
+ responseObject: {},
874
+ body: yield response.json(),
875
+ bodyKey: "kafkaCluster",
876
+ bodyModel: model.KafkaCluster,
877
+ type: "model.KafkaCluster",
878
+ responseHeaders: [
879
+ {
880
+ value: response.headers.get("etag"),
881
+ key: "etag",
882
+ dataType: "string"
883
+ },
884
+ {
885
+ value: response.headers.get("opc-request-id"),
886
+ key: "opcRequestId",
887
+ dataType: "string"
888
+ }
889
+ ]
890
+ });
891
+ return sdkResponse;
892
+ }
893
+ catch (err) {
894
+ throw err;
895
+ }
896
+ });
897
+ }
898
+ /**
899
+ * Gets information about a KafkaClusterConfig.
900
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
901
+ * @param GetKafkaClusterConfigRequest
902
+ * @return GetKafkaClusterConfigResponse
903
+ * @throws OciError when an error occurs
904
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/GetKafkaClusterConfig.ts.html |here} to see how to use GetKafkaClusterConfig API.
905
+ */
906
+ getKafkaClusterConfig(getKafkaClusterConfigRequest) {
907
+ return __awaiter(this, void 0, void 0, function* () {
908
+ if (this.logger)
909
+ this.logger.debug("Calling operation KafkaClusterClient#getKafkaClusterConfig.");
910
+ const operationName = "getKafkaClusterConfig";
911
+ const apiReferenceLink = "";
912
+ const pathParams = {
913
+ "{kafkaClusterConfigId}": getKafkaClusterConfigRequest.kafkaClusterConfigId
914
+ };
915
+ const queryParams = {};
916
+ let headerParams = {
917
+ "Content-Type": common.Constants.APPLICATION_JSON,
918
+ "opc-request-id": getKafkaClusterConfigRequest.opcRequestId
919
+ };
920
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
921
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKafkaClusterConfigRequest.retryConfiguration, specRetryConfiguration);
922
+ if (this.logger)
923
+ retrier.logger = this.logger;
924
+ const request = yield oci_common_1.composeRequest({
925
+ baseEndpoint: this._endpoint,
926
+ defaultHeaders: this._defaultHeaders,
927
+ path: "/kafkaClusterConfigs/{kafkaClusterConfigId}",
928
+ method: "GET",
929
+ pathParams: pathParams,
930
+ headerParams: headerParams,
931
+ queryParams: queryParams
932
+ });
933
+ try {
934
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
935
+ const sdkResponse = oci_common_1.composeResponse({
936
+ responseObject: {},
937
+ body: yield response.json(),
938
+ bodyKey: "kafkaClusterConfig",
939
+ bodyModel: model.KafkaClusterConfig,
940
+ type: "model.KafkaClusterConfig",
941
+ responseHeaders: [
942
+ {
943
+ value: response.headers.get("etag"),
944
+ key: "etag",
945
+ dataType: "string"
946
+ },
947
+ {
948
+ value: response.headers.get("opc-request-id"),
949
+ key: "opcRequestId",
950
+ dataType: "string"
951
+ }
952
+ ]
953
+ });
954
+ return sdkResponse;
955
+ }
956
+ catch (err) {
957
+ throw err;
958
+ }
959
+ });
960
+ }
961
+ /**
962
+ * Gets information about a KafkaClusterConfig version.
963
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
964
+ * @param GetKafkaClusterConfigVersionRequest
965
+ * @return GetKafkaClusterConfigVersionResponse
966
+ * @throws OciError when an error occurs
967
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/GetKafkaClusterConfigVersion.ts.html |here} to see how to use GetKafkaClusterConfigVersion API.
968
+ */
969
+ getKafkaClusterConfigVersion(getKafkaClusterConfigVersionRequest) {
970
+ return __awaiter(this, void 0, void 0, function* () {
971
+ if (this.logger)
972
+ this.logger.debug("Calling operation KafkaClusterClient#getKafkaClusterConfigVersion.");
973
+ const operationName = "getKafkaClusterConfigVersion";
974
+ const apiReferenceLink = "";
975
+ const pathParams = {
976
+ "{kafkaClusterConfigId}": getKafkaClusterConfigVersionRequest.kafkaClusterConfigId,
977
+ "{versionNumber}": getKafkaClusterConfigVersionRequest.versionNumber
978
+ };
979
+ const queryParams = {};
980
+ let headerParams = {
981
+ "Content-Type": common.Constants.APPLICATION_JSON,
982
+ "opc-request-id": getKafkaClusterConfigVersionRequest.opcRequestId
983
+ };
984
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
985
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKafkaClusterConfigVersionRequest.retryConfiguration, specRetryConfiguration);
986
+ if (this.logger)
987
+ retrier.logger = this.logger;
988
+ const request = yield oci_common_1.composeRequest({
989
+ baseEndpoint: this._endpoint,
990
+ defaultHeaders: this._defaultHeaders,
991
+ path: "/kafkaClusterConfigs/{kafkaClusterConfigId}/versions/{versionNumber}",
992
+ method: "GET",
993
+ pathParams: pathParams,
994
+ headerParams: headerParams,
995
+ queryParams: queryParams
996
+ });
997
+ try {
998
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
999
+ const sdkResponse = oci_common_1.composeResponse({
1000
+ responseObject: {},
1001
+ body: yield response.json(),
1002
+ bodyKey: "kafkaClusterConfigVersion",
1003
+ bodyModel: model.KafkaClusterConfigVersion,
1004
+ type: "model.KafkaClusterConfigVersion",
1005
+ responseHeaders: [
1006
+ {
1007
+ value: response.headers.get("etag"),
1008
+ key: "etag",
1009
+ dataType: "string"
1010
+ },
1011
+ {
1012
+ value: response.headers.get("opc-request-id"),
1013
+ key: "opcRequestId",
1014
+ dataType: "string"
1015
+ }
1016
+ ]
1017
+ });
1018
+ return sdkResponse;
1019
+ }
1020
+ catch (err) {
1021
+ throw err;
1022
+ }
1023
+ });
1024
+ }
1025
+ /**
1026
+ * Gets the details of a work request.
1027
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1028
+ * @param GetWorkRequestRequest
1029
+ * @return GetWorkRequestResponse
1030
+ * @throws OciError when an error occurs
1031
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1032
+ */
1033
+ getWorkRequest(getWorkRequestRequest) {
1034
+ return __awaiter(this, void 0, void 0, function* () {
1035
+ if (this.logger)
1036
+ this.logger.debug("Calling operation KafkaClusterClient#getWorkRequest.");
1037
+ const operationName = "getWorkRequest";
1038
+ const apiReferenceLink = "";
1039
+ const pathParams = {
1040
+ "{workRequestId}": getWorkRequestRequest.workRequestId
1041
+ };
1042
+ const queryParams = {};
1043
+ let headerParams = {
1044
+ "Content-Type": common.Constants.APPLICATION_JSON,
1045
+ "opc-request-id": getWorkRequestRequest.opcRequestId
1046
+ };
1047
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1048
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
1049
+ if (this.logger)
1050
+ retrier.logger = this.logger;
1051
+ const request = yield oci_common_1.composeRequest({
1052
+ baseEndpoint: this._endpoint,
1053
+ defaultHeaders: this._defaultHeaders,
1054
+ path: "/workRequests/{workRequestId}",
1055
+ method: "GET",
1056
+ pathParams: pathParams,
1057
+ headerParams: headerParams,
1058
+ queryParams: queryParams
1059
+ });
1060
+ try {
1061
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1062
+ const sdkResponse = oci_common_1.composeResponse({
1063
+ responseObject: {},
1064
+ body: yield response.json(),
1065
+ bodyKey: "workRequest",
1066
+ bodyModel: model.WorkRequest,
1067
+ type: "model.WorkRequest",
1068
+ responseHeaders: [
1069
+ {
1070
+ value: response.headers.get("etag"),
1071
+ key: "etag",
1072
+ dataType: "string"
1073
+ },
1074
+ {
1075
+ value: response.headers.get("opc-request-id"),
1076
+ key: "opcRequestId",
1077
+ dataType: "string"
1078
+ },
1079
+ {
1080
+ value: response.headers.get("retry-after"),
1081
+ key: "retryAfter",
1082
+ dataType: "number"
1083
+ }
1084
+ ]
1085
+ });
1086
+ return sdkResponse;
1087
+ }
1088
+ catch (err) {
1089
+ throw err;
1090
+ }
1091
+ });
1092
+ }
1093
+ /**
1094
+ * Gets a list of KafkaClusterConfig Versions.
1095
+ *
1096
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1097
+ * @param ListKafkaClusterConfigVersionsRequest
1098
+ * @return ListKafkaClusterConfigVersionsResponse
1099
+ * @throws OciError when an error occurs
1100
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListKafkaClusterConfigVersions.ts.html |here} to see how to use ListKafkaClusterConfigVersions API.
1101
+ */
1102
+ listKafkaClusterConfigVersions(listKafkaClusterConfigVersionsRequest) {
1103
+ return __awaiter(this, void 0, void 0, function* () {
1104
+ if (this.logger)
1105
+ this.logger.debug("Calling operation KafkaClusterClient#listKafkaClusterConfigVersions.");
1106
+ const operationName = "listKafkaClusterConfigVersions";
1107
+ const apiReferenceLink = "";
1108
+ const pathParams = {
1109
+ "{kafkaClusterConfigId}": listKafkaClusterConfigVersionsRequest.kafkaClusterConfigId
1110
+ };
1111
+ const queryParams = {
1112
+ "limit": listKafkaClusterConfigVersionsRequest.limit,
1113
+ "page": listKafkaClusterConfigVersionsRequest.page,
1114
+ "sortOrder": listKafkaClusterConfigVersionsRequest.sortOrder,
1115
+ "sortBy": listKafkaClusterConfigVersionsRequest.sortBy
1116
+ };
1117
+ let headerParams = {
1118
+ "Content-Type": common.Constants.APPLICATION_JSON,
1119
+ "opc-request-id": listKafkaClusterConfigVersionsRequest.opcRequestId
1120
+ };
1121
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1122
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKafkaClusterConfigVersionsRequest.retryConfiguration, specRetryConfiguration);
1123
+ if (this.logger)
1124
+ retrier.logger = this.logger;
1125
+ const request = yield oci_common_1.composeRequest({
1126
+ baseEndpoint: this._endpoint,
1127
+ defaultHeaders: this._defaultHeaders,
1128
+ path: "/kafkaClusterConfigs/{kafkaClusterConfigId}/versions",
1129
+ method: "GET",
1130
+ pathParams: pathParams,
1131
+ headerParams: headerParams,
1132
+ queryParams: queryParams
1133
+ });
1134
+ try {
1135
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1136
+ const sdkResponse = oci_common_1.composeResponse({
1137
+ responseObject: {},
1138
+ body: yield response.json(),
1139
+ bodyKey: "kafkaClusterConfigVersionCollection",
1140
+ bodyModel: model.KafkaClusterConfigVersionCollection,
1141
+ type: "model.KafkaClusterConfigVersionCollection",
1142
+ responseHeaders: [
1143
+ {
1144
+ value: response.headers.get("opc-request-id"),
1145
+ key: "opcRequestId",
1146
+ dataType: "string"
1147
+ },
1148
+ {
1149
+ value: response.headers.get("opc-next-page"),
1150
+ key: "opcNextPage",
1151
+ dataType: "string"
1152
+ }
1153
+ ]
1154
+ });
1155
+ return sdkResponse;
1156
+ }
1157
+ catch (err) {
1158
+ throw err;
1159
+ }
1160
+ });
1161
+ }
1162
+ /**
1163
+ * Gets a list of KafkaClusterConfigs.
1164
+ *
1165
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1166
+ * @param ListKafkaClusterConfigsRequest
1167
+ * @return ListKafkaClusterConfigsResponse
1168
+ * @throws OciError when an error occurs
1169
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListKafkaClusterConfigs.ts.html |here} to see how to use ListKafkaClusterConfigs API.
1170
+ */
1171
+ listKafkaClusterConfigs(listKafkaClusterConfigsRequest) {
1172
+ return __awaiter(this, void 0, void 0, function* () {
1173
+ if (this.logger)
1174
+ this.logger.debug("Calling operation KafkaClusterClient#listKafkaClusterConfigs.");
1175
+ const operationName = "listKafkaClusterConfigs";
1176
+ const apiReferenceLink = "";
1177
+ const pathParams = {};
1178
+ const queryParams = {
1179
+ "compartmentId": listKafkaClusterConfigsRequest.compartmentId,
1180
+ "lifecycleState": listKafkaClusterConfigsRequest.lifecycleState,
1181
+ "displayName": listKafkaClusterConfigsRequest.displayName,
1182
+ "id": listKafkaClusterConfigsRequest.id,
1183
+ "limit": listKafkaClusterConfigsRequest.limit,
1184
+ "page": listKafkaClusterConfigsRequest.page,
1185
+ "sortOrder": listKafkaClusterConfigsRequest.sortOrder,
1186
+ "sortBy": listKafkaClusterConfigsRequest.sortBy
1187
+ };
1188
+ let headerParams = {
1189
+ "Content-Type": common.Constants.APPLICATION_JSON,
1190
+ "opc-request-id": listKafkaClusterConfigsRequest.opcRequestId
1191
+ };
1192
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1193
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKafkaClusterConfigsRequest.retryConfiguration, specRetryConfiguration);
1194
+ if (this.logger)
1195
+ retrier.logger = this.logger;
1196
+ const request = yield oci_common_1.composeRequest({
1197
+ baseEndpoint: this._endpoint,
1198
+ defaultHeaders: this._defaultHeaders,
1199
+ path: "/kafkaClusterConfigs",
1200
+ method: "GET",
1201
+ pathParams: pathParams,
1202
+ headerParams: headerParams,
1203
+ queryParams: queryParams
1204
+ });
1205
+ try {
1206
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1207
+ const sdkResponse = oci_common_1.composeResponse({
1208
+ responseObject: {},
1209
+ body: yield response.json(),
1210
+ bodyKey: "kafkaClusterConfigCollection",
1211
+ bodyModel: model.KafkaClusterConfigCollection,
1212
+ type: "model.KafkaClusterConfigCollection",
1213
+ responseHeaders: [
1214
+ {
1215
+ value: response.headers.get("opc-request-id"),
1216
+ key: "opcRequestId",
1217
+ dataType: "string"
1218
+ },
1219
+ {
1220
+ value: response.headers.get("opc-next-page"),
1221
+ key: "opcNextPage",
1222
+ dataType: "string"
1223
+ }
1224
+ ]
1225
+ });
1226
+ return sdkResponse;
1227
+ }
1228
+ catch (err) {
1229
+ throw err;
1230
+ }
1231
+ });
1232
+ }
1233
+ /**
1234
+ * Gets a list of KafkaClusters.
1235
+ *
1236
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1237
+ * @param ListKafkaClustersRequest
1238
+ * @return ListKafkaClustersResponse
1239
+ * @throws OciError when an error occurs
1240
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListKafkaClusters.ts.html |here} to see how to use ListKafkaClusters API.
1241
+ */
1242
+ listKafkaClusters(listKafkaClustersRequest) {
1243
+ return __awaiter(this, void 0, void 0, function* () {
1244
+ if (this.logger)
1245
+ this.logger.debug("Calling operation KafkaClusterClient#listKafkaClusters.");
1246
+ const operationName = "listKafkaClusters";
1247
+ const apiReferenceLink = "";
1248
+ const pathParams = {};
1249
+ const queryParams = {
1250
+ "compartmentId": listKafkaClustersRequest.compartmentId,
1251
+ "lifecycleState": listKafkaClustersRequest.lifecycleState,
1252
+ "displayName": listKafkaClustersRequest.displayName,
1253
+ "id": listKafkaClustersRequest.id,
1254
+ "limit": listKafkaClustersRequest.limit,
1255
+ "page": listKafkaClustersRequest.page,
1256
+ "sortOrder": listKafkaClustersRequest.sortOrder,
1257
+ "sortBy": listKafkaClustersRequest.sortBy
1258
+ };
1259
+ let headerParams = {
1260
+ "Content-Type": common.Constants.APPLICATION_JSON,
1261
+ "opc-request-id": listKafkaClustersRequest.opcRequestId
1262
+ };
1263
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1264
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKafkaClustersRequest.retryConfiguration, specRetryConfiguration);
1265
+ if (this.logger)
1266
+ retrier.logger = this.logger;
1267
+ const request = yield oci_common_1.composeRequest({
1268
+ baseEndpoint: this._endpoint,
1269
+ defaultHeaders: this._defaultHeaders,
1270
+ path: "/kafkaClusters",
1271
+ method: "GET",
1272
+ pathParams: pathParams,
1273
+ headerParams: headerParams,
1274
+ queryParams: queryParams
1275
+ });
1276
+ try {
1277
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1278
+ const sdkResponse = oci_common_1.composeResponse({
1279
+ responseObject: {},
1280
+ body: yield response.json(),
1281
+ bodyKey: "kafkaClusterCollection",
1282
+ bodyModel: model.KafkaClusterCollection,
1283
+ type: "model.KafkaClusterCollection",
1284
+ responseHeaders: [
1285
+ {
1286
+ value: response.headers.get("opc-request-id"),
1287
+ key: "opcRequestId",
1288
+ dataType: "string"
1289
+ },
1290
+ {
1291
+ value: response.headers.get("opc-next-page"),
1292
+ key: "opcNextPage",
1293
+ dataType: "string"
1294
+ }
1295
+ ]
1296
+ });
1297
+ return sdkResponse;
1298
+ }
1299
+ catch (err) {
1300
+ throw err;
1301
+ }
1302
+ });
1303
+ }
1304
+ /**
1305
+ * Lists the errors for a work request.
1306
+ *
1307
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1308
+ * @param ListWorkRequestErrorsRequest
1309
+ * @return ListWorkRequestErrorsResponse
1310
+ * @throws OciError when an error occurs
1311
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1312
+ */
1313
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
1314
+ return __awaiter(this, void 0, void 0, function* () {
1315
+ if (this.logger)
1316
+ this.logger.debug("Calling operation KafkaClusterClient#listWorkRequestErrors.");
1317
+ const operationName = "listWorkRequestErrors";
1318
+ const apiReferenceLink = "";
1319
+ const pathParams = {
1320
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
1321
+ };
1322
+ const queryParams = {
1323
+ "page": listWorkRequestErrorsRequest.page,
1324
+ "limit": listWorkRequestErrorsRequest.limit,
1325
+ "sortBy": listWorkRequestErrorsRequest.sortBy,
1326
+ "sortOrder": listWorkRequestErrorsRequest.sortOrder
1327
+ };
1328
+ let headerParams = {
1329
+ "Content-Type": common.Constants.APPLICATION_JSON,
1330
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
1331
+ };
1332
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1333
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
1334
+ if (this.logger)
1335
+ retrier.logger = this.logger;
1336
+ const request = yield oci_common_1.composeRequest({
1337
+ baseEndpoint: this._endpoint,
1338
+ defaultHeaders: this._defaultHeaders,
1339
+ path: "/workRequests/{workRequestId}/errors",
1340
+ method: "GET",
1341
+ pathParams: pathParams,
1342
+ headerParams: headerParams,
1343
+ queryParams: queryParams
1344
+ });
1345
+ try {
1346
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1347
+ const sdkResponse = oci_common_1.composeResponse({
1348
+ responseObject: {},
1349
+ body: yield response.json(),
1350
+ bodyKey: "workRequestErrorCollection",
1351
+ bodyModel: model.WorkRequestErrorCollection,
1352
+ type: "model.WorkRequestErrorCollection",
1353
+ responseHeaders: [
1354
+ {
1355
+ value: response.headers.get("opc-next-page"),
1356
+ key: "opcNextPage",
1357
+ dataType: "string"
1358
+ },
1359
+ {
1360
+ value: response.headers.get("opc-request-id"),
1361
+ key: "opcRequestId",
1362
+ dataType: "string"
1363
+ }
1364
+ ]
1365
+ });
1366
+ return sdkResponse;
1367
+ }
1368
+ catch (err) {
1369
+ throw err;
1370
+ }
1371
+ });
1372
+ }
1373
+ /**
1374
+ * Lists the logs for a work request.
1375
+ *
1376
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1377
+ * @param ListWorkRequestLogsRequest
1378
+ * @return ListWorkRequestLogsResponse
1379
+ * @throws OciError when an error occurs
1380
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1381
+ */
1382
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
1383
+ return __awaiter(this, void 0, void 0, function* () {
1384
+ if (this.logger)
1385
+ this.logger.debug("Calling operation KafkaClusterClient#listWorkRequestLogs.");
1386
+ const operationName = "listWorkRequestLogs";
1387
+ const apiReferenceLink = "";
1388
+ const pathParams = {
1389
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
1390
+ };
1391
+ const queryParams = {
1392
+ "page": listWorkRequestLogsRequest.page,
1393
+ "limit": listWorkRequestLogsRequest.limit,
1394
+ "sortBy": listWorkRequestLogsRequest.sortBy,
1395
+ "sortOrder": listWorkRequestLogsRequest.sortOrder
1396
+ };
1397
+ let headerParams = {
1398
+ "Content-Type": common.Constants.APPLICATION_JSON,
1399
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
1400
+ };
1401
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1402
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
1403
+ if (this.logger)
1404
+ retrier.logger = this.logger;
1405
+ const request = yield oci_common_1.composeRequest({
1406
+ baseEndpoint: this._endpoint,
1407
+ defaultHeaders: this._defaultHeaders,
1408
+ path: "/workRequests/{workRequestId}/logs",
1409
+ method: "GET",
1410
+ pathParams: pathParams,
1411
+ headerParams: headerParams,
1412
+ queryParams: queryParams
1413
+ });
1414
+ try {
1415
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1416
+ const sdkResponse = oci_common_1.composeResponse({
1417
+ responseObject: {},
1418
+ body: yield response.json(),
1419
+ bodyKey: "workRequestLogEntryCollection",
1420
+ bodyModel: model.WorkRequestLogEntryCollection,
1421
+ type: "model.WorkRequestLogEntryCollection",
1422
+ responseHeaders: [
1423
+ {
1424
+ value: response.headers.get("opc-next-page"),
1425
+ key: "opcNextPage",
1426
+ dataType: "string"
1427
+ },
1428
+ {
1429
+ value: response.headers.get("opc-request-id"),
1430
+ key: "opcRequestId",
1431
+ dataType: "string"
1432
+ }
1433
+ ]
1434
+ });
1435
+ return sdkResponse;
1436
+ }
1437
+ catch (err) {
1438
+ throw err;
1439
+ }
1440
+ });
1441
+ }
1442
+ /**
1443
+ * Lists the work requests in a compartment.
1444
+ *
1445
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1446
+ * @param ListWorkRequestsRequest
1447
+ * @return ListWorkRequestsResponse
1448
+ * @throws OciError when an error occurs
1449
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1450
+ */
1451
+ listWorkRequests(listWorkRequestsRequest) {
1452
+ return __awaiter(this, void 0, void 0, function* () {
1453
+ if (this.logger)
1454
+ this.logger.debug("Calling operation KafkaClusterClient#listWorkRequests.");
1455
+ const operationName = "listWorkRequests";
1456
+ const apiReferenceLink = "";
1457
+ const pathParams = {};
1458
+ const queryParams = {
1459
+ "compartmentId": listWorkRequestsRequest.compartmentId,
1460
+ "workRequestId": listWorkRequestsRequest.workRequestId,
1461
+ "status": listWorkRequestsRequest.status,
1462
+ "resourceId": listWorkRequestsRequest.resourceId,
1463
+ "page": listWorkRequestsRequest.page,
1464
+ "limit": listWorkRequestsRequest.limit,
1465
+ "sortOrder": listWorkRequestsRequest.sortOrder,
1466
+ "sortBy": listWorkRequestsRequest.sortBy
1467
+ };
1468
+ let headerParams = {
1469
+ "Content-Type": common.Constants.APPLICATION_JSON,
1470
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
1471
+ };
1472
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1473
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
1474
+ if (this.logger)
1475
+ retrier.logger = this.logger;
1476
+ const request = yield oci_common_1.composeRequest({
1477
+ baseEndpoint: this._endpoint,
1478
+ defaultHeaders: this._defaultHeaders,
1479
+ path: "/workRequests",
1480
+ method: "GET",
1481
+ pathParams: pathParams,
1482
+ headerParams: headerParams,
1483
+ queryParams: queryParams
1484
+ });
1485
+ try {
1486
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1487
+ const sdkResponse = oci_common_1.composeResponse({
1488
+ responseObject: {},
1489
+ body: yield response.json(),
1490
+ bodyKey: "workRequestSummaryCollection",
1491
+ bodyModel: model.WorkRequestSummaryCollection,
1492
+ type: "model.WorkRequestSummaryCollection",
1493
+ responseHeaders: [
1494
+ {
1495
+ value: response.headers.get("opc-request-id"),
1496
+ key: "opcRequestId",
1497
+ dataType: "string"
1498
+ },
1499
+ {
1500
+ value: response.headers.get("opc-next-page"),
1501
+ key: "opcNextPage",
1502
+ dataType: "string"
1503
+ }
1504
+ ]
1505
+ });
1506
+ return sdkResponse;
1507
+ }
1508
+ catch (err) {
1509
+ throw err;
1510
+ }
1511
+ });
1512
+ }
1513
+ /**
1514
+ * Updates a KafkaCluster.
1515
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1516
+ * @param UpdateKafkaClusterRequest
1517
+ * @return UpdateKafkaClusterResponse
1518
+ * @throws OciError when an error occurs
1519
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/UpdateKafkaCluster.ts.html |here} to see how to use UpdateKafkaCluster API.
1520
+ */
1521
+ updateKafkaCluster(updateKafkaClusterRequest) {
1522
+ return __awaiter(this, void 0, void 0, function* () {
1523
+ if (this.logger)
1524
+ this.logger.debug("Calling operation KafkaClusterClient#updateKafkaCluster.");
1525
+ const operationName = "updateKafkaCluster";
1526
+ const apiReferenceLink = "";
1527
+ const pathParams = {
1528
+ "{kafkaClusterId}": updateKafkaClusterRequest.kafkaClusterId
1529
+ };
1530
+ const queryParams = {};
1531
+ let headerParams = {
1532
+ "Content-Type": common.Constants.APPLICATION_JSON,
1533
+ "if-match": updateKafkaClusterRequest.ifMatch,
1534
+ "opc-request-id": updateKafkaClusterRequest.opcRequestId
1535
+ };
1536
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1537
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateKafkaClusterRequest.retryConfiguration, specRetryConfiguration);
1538
+ if (this.logger)
1539
+ retrier.logger = this.logger;
1540
+ const request = yield oci_common_1.composeRequest({
1541
+ baseEndpoint: this._endpoint,
1542
+ defaultHeaders: this._defaultHeaders,
1543
+ path: "/kafkaClusters/{kafkaClusterId}",
1544
+ method: "PUT",
1545
+ bodyContent: common.ObjectSerializer.serialize(updateKafkaClusterRequest.updateKafkaClusterDetails, "UpdateKafkaClusterDetails", model.UpdateKafkaClusterDetails.getJsonObj),
1546
+ pathParams: pathParams,
1547
+ headerParams: headerParams,
1548
+ queryParams: queryParams
1549
+ });
1550
+ try {
1551
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1552
+ const sdkResponse = oci_common_1.composeResponse({
1553
+ responseObject: {},
1554
+ body: yield response.json(),
1555
+ bodyKey: "kafkaCluster",
1556
+ bodyModel: model.KafkaCluster,
1557
+ type: "model.KafkaCluster",
1558
+ responseHeaders: [
1559
+ {
1560
+ value: response.headers.get("etag"),
1561
+ key: "etag",
1562
+ dataType: "string"
1563
+ },
1564
+ {
1565
+ value: response.headers.get("opc-work-request-id"),
1566
+ key: "opcWorkRequestId",
1567
+ dataType: "string"
1568
+ },
1569
+ {
1570
+ value: response.headers.get("opc-request-id"),
1571
+ key: "opcRequestId",
1572
+ dataType: "string"
1573
+ }
1574
+ ]
1575
+ });
1576
+ return sdkResponse;
1577
+ }
1578
+ catch (err) {
1579
+ throw err;
1580
+ }
1581
+ });
1582
+ }
1583
+ /**
1584
+ * Updates a KafkaClusterConfig.
1585
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1586
+ * @param UpdateKafkaClusterConfigRequest
1587
+ * @return UpdateKafkaClusterConfigResponse
1588
+ * @throws OciError when an error occurs
1589
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/UpdateKafkaClusterConfig.ts.html |here} to see how to use UpdateKafkaClusterConfig API.
1590
+ */
1591
+ updateKafkaClusterConfig(updateKafkaClusterConfigRequest) {
1592
+ return __awaiter(this, void 0, void 0, function* () {
1593
+ if (this.logger)
1594
+ this.logger.debug("Calling operation KafkaClusterClient#updateKafkaClusterConfig.");
1595
+ const operationName = "updateKafkaClusterConfig";
1596
+ const apiReferenceLink = "";
1597
+ const pathParams = {
1598
+ "{kafkaClusterConfigId}": updateKafkaClusterConfigRequest.kafkaClusterConfigId
1599
+ };
1600
+ const queryParams = {};
1601
+ let headerParams = {
1602
+ "Content-Type": common.Constants.APPLICATION_JSON,
1603
+ "if-match": updateKafkaClusterConfigRequest.ifMatch,
1604
+ "opc-request-id": updateKafkaClusterConfigRequest.opcRequestId
1605
+ };
1606
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1607
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateKafkaClusterConfigRequest.retryConfiguration, specRetryConfiguration);
1608
+ if (this.logger)
1609
+ retrier.logger = this.logger;
1610
+ const request = yield oci_common_1.composeRequest({
1611
+ baseEndpoint: this._endpoint,
1612
+ defaultHeaders: this._defaultHeaders,
1613
+ path: "/kafkaClusterConfigs/{kafkaClusterConfigId}",
1614
+ method: "PUT",
1615
+ bodyContent: common.ObjectSerializer.serialize(updateKafkaClusterConfigRequest.updateKafkaClusterConfigDetails, "UpdateKafkaClusterConfigDetails", model.UpdateKafkaClusterConfigDetails.getJsonObj),
1616
+ pathParams: pathParams,
1617
+ headerParams: headerParams,
1618
+ queryParams: queryParams
1619
+ });
1620
+ try {
1621
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1622
+ const sdkResponse = oci_common_1.composeResponse({
1623
+ responseObject: {},
1624
+ body: yield response.json(),
1625
+ bodyKey: "kafkaClusterConfig",
1626
+ bodyModel: model.KafkaClusterConfig,
1627
+ type: "model.KafkaClusterConfig",
1628
+ responseHeaders: [
1629
+ {
1630
+ value: response.headers.get("etag"),
1631
+ key: "etag",
1632
+ dataType: "string"
1633
+ },
1634
+ {
1635
+ value: response.headers.get("opc-request-id"),
1636
+ key: "opcRequestId",
1637
+ dataType: "string"
1638
+ }
1639
+ ]
1640
+ });
1641
+ return sdkResponse;
1642
+ }
1643
+ catch (err) {
1644
+ throw err;
1645
+ }
1646
+ });
1647
+ }
1648
+ }
1649
+ exports.KafkaClusterClient = KafkaClusterClient;
1650
+ KafkaClusterClient.serviceEndpointTemplate = "https://kafka.{region}.oci.{secondLevelDomain}";
1651
+ KafkaClusterClient.endpointServiceName = "";
1652
+ //# sourceMappingURL=client.js.map