oci-managedkafka 2.131.2 → 2.134.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.
- package/lib/client.d.ts +54 -0
- package/lib/client.js +400 -0
- package/lib/client.js.map +1 -1
- package/lib/model/addon-collection.d.ts +27 -0
- package/lib/model/addon-collection.js +61 -0
- package/lib/model/addon-collection.js.map +1 -0
- package/lib/model/addon-option-collection.d.ts +27 -0
- package/lib/model/addon-option-collection.js +61 -0
- package/lib/model/addon-option-collection.js.map +1 -0
- package/lib/model/addon-option-summary.d.ts +38 -0
- package/lib/model/addon-option-summary.js +39 -0
- package/lib/model/addon-option-summary.js.map +1 -0
- package/lib/model/addon-summary.d.ts +55 -0
- package/lib/model/addon-summary.js +29 -0
- package/lib/model/addon-summary.js.map +1 -0
- package/lib/model/authentication-mechanism.d.ts +23 -0
- package/lib/model/authentication-mechanism.js +34 -0
- package/lib/model/authentication-mechanism.js.map +1 -0
- package/lib/model/index.d.ts +22 -0
- package/lib/model/index.js +23 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/install-addon-details.d.ts +30 -0
- package/lib/model/install-addon-details.js +68 -0
- package/lib/model/install-addon-details.js.map +1 -0
- package/lib/model/install-public-connectivity-addon-details.d.ts +32 -0
- package/lib/model/install-public-connectivity-addon-details.js +54 -0
- package/lib/model/install-public-connectivity-addon-details.js.map +1 -0
- package/lib/model/kafka-cluster-addon.d.ts +55 -0
- package/lib/model/kafka-cluster-addon.js +82 -0
- package/lib/model/kafka-cluster-addon.js.map +1 -0
- package/lib/model/operation-type.d.ts +3 -0
- package/lib/model/operation-type.js +3 -0
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/public-connectivity-addon.d.ts +36 -0
- package/lib/model/public-connectivity-addon.js +54 -0
- package/lib/model/public-connectivity-addon.js.map +1 -0
- package/lib/model/update-addon-details.d.ts +26 -0
- package/lib/model/update-addon-details.js +68 -0
- package/lib/model/update-addon-details.js.map +1 -0
- package/lib/model/update-public-connectivity-addon-details.d.ts +28 -0
- package/lib/model/update-public-connectivity-addon-details.js +54 -0
- package/lib/model/update-public-connectivity-addon-details.js.map +1 -0
- package/lib/request/get-addon-request.d.ts +34 -0
- package/lib/request/get-addon-request.js +15 -0
- package/lib/request/get-addon-request.js.map +1 -0
- package/lib/request/index.d.ts +12 -0
- package/lib/request/index.js +5 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/install-addon-request.d.ts +52 -0
- package/lib/request/install-addon-request.js +15 -0
- package/lib/request/install-addon-request.js.map +1 -0
- package/lib/request/list-addon-options-request.d.ts +64 -0
- package/lib/request/list-addon-options-request.js +23 -0
- package/lib/request/list-addon-options-request.js.map +1 -0
- package/lib/request/list-addons-request.d.ts +70 -0
- package/lib/request/list-addons-request.js +23 -0
- package/lib/request/list-addons-request.js.map +1 -0
- package/lib/request/uninstall-addon-request.d.ts +42 -0
- package/lib/request/uninstall-addon-request.js +15 -0
- package/lib/request/uninstall-addon-request.js.map +1 -0
- package/lib/request/update-addon-request.d.ts +47 -0
- package/lib/request/update-addon-request.js +15 -0
- package/lib/request/update-addon-request.js.map +1 -0
- package/lib/response/get-addon-response.d.ts +30 -0
- package/lib/response/get-addon-response.js +15 -0
- package/lib/response/get-addon-response.js.map +1 -0
- package/lib/response/index.d.ts +12 -0
- package/lib/response/install-addon-response.d.ts +36 -0
- package/lib/response/install-addon-response.js +15 -0
- package/lib/response/install-addon-response.js.map +1 -0
- package/lib/response/list-addon-options-response.d.ts +31 -0
- package/lib/response/list-addon-options-response.js +15 -0
- package/lib/response/list-addon-options-response.js.map +1 -0
- package/lib/response/list-addons-response.d.ts +31 -0
- package/lib/response/list-addons-response.js +15 -0
- package/lib/response/list-addons-response.js.map +1 -0
- package/lib/response/uninstall-addon-response.d.ts +20 -0
- package/lib/response/uninstall-addon-response.js +15 -0
- package/lib/response/uninstall-addon-response.js.map +1 -0
- package/lib/response/update-addon-response.d.ts +36 -0
- package/lib/response/update-addon-response.js +15 -0
- package/lib/response/update-addon-response.js.map +1 -0
- package/package.json +4 -3
package/lib/client.d.ts
CHANGED
|
@@ -192,6 +192,15 @@ export declare class KafkaClusterClient {
|
|
|
192
192
|
* @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.
|
|
193
193
|
*/
|
|
194
194
|
enableSuperuser(enableSuperuserRequest: requests.EnableSuperuserRequest): Promise<responses.EnableSuperuserResponse>;
|
|
195
|
+
/**
|
|
196
|
+
* Gets information about a KafkaClusterAddon.
|
|
197
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
198
|
+
* @param GetAddonRequest
|
|
199
|
+
* @return GetAddonResponse
|
|
200
|
+
* @throws OciError when an error occurs
|
|
201
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/GetAddon.ts.html |here} to see how to use GetAddon API.
|
|
202
|
+
*/
|
|
203
|
+
getAddon(getAddonRequest: requests.GetAddonRequest): Promise<responses.GetAddonResponse>;
|
|
195
204
|
/**
|
|
196
205
|
* Gets information about a KafkaCluster.
|
|
197
206
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -228,6 +237,33 @@ export declare class KafkaClusterClient {
|
|
|
228
237
|
* @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.
|
|
229
238
|
*/
|
|
230
239
|
getWorkRequest(getWorkRequestRequest: requests.GetWorkRequestRequest): Promise<responses.GetWorkRequestResponse>;
|
|
240
|
+
/**
|
|
241
|
+
* Installs a KafkaClusterAddon.
|
|
242
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
243
|
+
* @param InstallAddonRequest
|
|
244
|
+
* @return InstallAddonResponse
|
|
245
|
+
* @throws OciError when an error occurs
|
|
246
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/InstallAddon.ts.html |here} to see how to use InstallAddon API.
|
|
247
|
+
*/
|
|
248
|
+
installAddon(installAddonRequest: requests.InstallAddonRequest): Promise<responses.InstallAddonResponse>;
|
|
249
|
+
/**
|
|
250
|
+
* Gets a list of supported KafkaClusterAddons.
|
|
251
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
252
|
+
* @param ListAddonOptionsRequest
|
|
253
|
+
* @return ListAddonOptionsResponse
|
|
254
|
+
* @throws OciError when an error occurs
|
|
255
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListAddonOptions.ts.html |here} to see how to use ListAddonOptions API.
|
|
256
|
+
*/
|
|
257
|
+
listAddonOptions(listAddonOptionsRequest: requests.ListAddonOptionsRequest): Promise<responses.ListAddonOptionsResponse>;
|
|
258
|
+
/**
|
|
259
|
+
* Gets a list of KafkaClusterAddons.
|
|
260
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
261
|
+
* @param ListAddonsRequest
|
|
262
|
+
* @return ListAddonsResponse
|
|
263
|
+
* @throws OciError when an error occurs
|
|
264
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListAddons.ts.html |here} to see how to use ListAddons API.
|
|
265
|
+
*/
|
|
266
|
+
listAddons(listAddonsRequest: requests.ListAddonsRequest): Promise<responses.ListAddonsResponse>;
|
|
231
267
|
/**
|
|
232
268
|
* Gets a list of KafkaClusterConfig Versions.
|
|
233
269
|
*
|
|
@@ -297,6 +333,24 @@ export declare class KafkaClusterClient {
|
|
|
297
333
|
* @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.
|
|
298
334
|
*/
|
|
299
335
|
listWorkRequests(listWorkRequestsRequest: requests.ListWorkRequestsRequest): Promise<responses.ListWorkRequestsResponse>;
|
|
336
|
+
/**
|
|
337
|
+
* Uninstalls a KafkaClusterAddon in a provisioned cluster.
|
|
338
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
339
|
+
* @param UninstallAddonRequest
|
|
340
|
+
* @return UninstallAddonResponse
|
|
341
|
+
* @throws OciError when an error occurs
|
|
342
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/UninstallAddon.ts.html |here} to see how to use UninstallAddon API.
|
|
343
|
+
*/
|
|
344
|
+
uninstallAddon(uninstallAddonRequest: requests.UninstallAddonRequest): Promise<responses.UninstallAddonResponse>;
|
|
345
|
+
/**
|
|
346
|
+
* Installs updates on the existing KafkaClusterAddon.
|
|
347
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
348
|
+
* @param UpdateAddonRequest
|
|
349
|
+
* @return UpdateAddonResponse
|
|
350
|
+
* @throws OciError when an error occurs
|
|
351
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/UpdateAddon.ts.html |here} to see how to use UpdateAddon API.
|
|
352
|
+
*/
|
|
353
|
+
updateAddon(updateAddonRequest: requests.UpdateAddonRequest): Promise<responses.UpdateAddonResponse>;
|
|
300
354
|
/**
|
|
301
355
|
* Updates a KafkaCluster.
|
|
302
356
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
package/lib/client.js
CHANGED
|
@@ -832,6 +832,70 @@ class KafkaClusterClient {
|
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
|
+
/**
|
|
836
|
+
* Gets information about a KafkaClusterAddon.
|
|
837
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
838
|
+
* @param GetAddonRequest
|
|
839
|
+
* @return GetAddonResponse
|
|
840
|
+
* @throws OciError when an error occurs
|
|
841
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/GetAddon.ts.html |here} to see how to use GetAddon API.
|
|
842
|
+
*/
|
|
843
|
+
getAddon(getAddonRequest) {
|
|
844
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
845
|
+
if (this.logger)
|
|
846
|
+
this.logger.debug("Calling operation KafkaClusterClient#getAddon.");
|
|
847
|
+
const operationName = "getAddon";
|
|
848
|
+
const apiReferenceLink = "";
|
|
849
|
+
const pathParams = {
|
|
850
|
+
"{kafkaClusterId}": getAddonRequest.kafkaClusterId,
|
|
851
|
+
"{addonName}": getAddonRequest.addonName
|
|
852
|
+
};
|
|
853
|
+
const queryParams = {};
|
|
854
|
+
let headerParams = {
|
|
855
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
856
|
+
"opc-request-id": getAddonRequest.opcRequestId
|
|
857
|
+
};
|
|
858
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
859
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAddonRequest.retryConfiguration, specRetryConfiguration);
|
|
860
|
+
if (this.logger)
|
|
861
|
+
retrier.logger = this.logger;
|
|
862
|
+
const request = yield oci_common_1.composeRequest({
|
|
863
|
+
baseEndpoint: this._endpoint,
|
|
864
|
+
defaultHeaders: this._defaultHeaders,
|
|
865
|
+
path: "/kafkaClusters/{kafkaClusterId}/addons/{addonName}",
|
|
866
|
+
method: "GET",
|
|
867
|
+
pathParams: pathParams,
|
|
868
|
+
headerParams: headerParams,
|
|
869
|
+
queryParams: queryParams
|
|
870
|
+
});
|
|
871
|
+
try {
|
|
872
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
873
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
874
|
+
responseObject: {},
|
|
875
|
+
body: yield response.json(),
|
|
876
|
+
bodyKey: "kafkaClusterAddon",
|
|
877
|
+
bodyModel: model.KafkaClusterAddon,
|
|
878
|
+
type: "model.KafkaClusterAddon",
|
|
879
|
+
responseHeaders: [
|
|
880
|
+
{
|
|
881
|
+
value: response.headers.get("etag"),
|
|
882
|
+
key: "etag",
|
|
883
|
+
dataType: "string"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
value: response.headers.get("opc-request-id"),
|
|
887
|
+
key: "opcRequestId",
|
|
888
|
+
dataType: "string"
|
|
889
|
+
}
|
|
890
|
+
]
|
|
891
|
+
});
|
|
892
|
+
return sdkResponse;
|
|
893
|
+
}
|
|
894
|
+
catch (err) {
|
|
895
|
+
throw err;
|
|
896
|
+
}
|
|
897
|
+
});
|
|
898
|
+
}
|
|
835
899
|
/**
|
|
836
900
|
* Gets information about a KafkaCluster.
|
|
837
901
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -1090,6 +1154,215 @@ class KafkaClusterClient {
|
|
|
1090
1154
|
}
|
|
1091
1155
|
});
|
|
1092
1156
|
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Installs a KafkaClusterAddon.
|
|
1159
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1160
|
+
* @param InstallAddonRequest
|
|
1161
|
+
* @return InstallAddonResponse
|
|
1162
|
+
* @throws OciError when an error occurs
|
|
1163
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/InstallAddon.ts.html |here} to see how to use InstallAddon API.
|
|
1164
|
+
*/
|
|
1165
|
+
installAddon(installAddonRequest) {
|
|
1166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1167
|
+
if (this.logger)
|
|
1168
|
+
this.logger.debug("Calling operation KafkaClusterClient#installAddon.");
|
|
1169
|
+
const operationName = "installAddon";
|
|
1170
|
+
const apiReferenceLink = "";
|
|
1171
|
+
const pathParams = {
|
|
1172
|
+
"{kafkaClusterId}": installAddonRequest.kafkaClusterId
|
|
1173
|
+
};
|
|
1174
|
+
const queryParams = {};
|
|
1175
|
+
let headerParams = {
|
|
1176
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1177
|
+
"opc-retry-token": installAddonRequest.opcRetryToken,
|
|
1178
|
+
"opc-request-id": installAddonRequest.opcRequestId,
|
|
1179
|
+
"if-match": installAddonRequest.ifMatch
|
|
1180
|
+
};
|
|
1181
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1182
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, installAddonRequest.retryConfiguration, specRetryConfiguration);
|
|
1183
|
+
if (this.logger)
|
|
1184
|
+
retrier.logger = this.logger;
|
|
1185
|
+
const request = yield oci_common_1.composeRequest({
|
|
1186
|
+
baseEndpoint: this._endpoint,
|
|
1187
|
+
defaultHeaders: this._defaultHeaders,
|
|
1188
|
+
path: "/kafkaClusters/{kafkaClusterId}/addons",
|
|
1189
|
+
method: "POST",
|
|
1190
|
+
bodyContent: common.ObjectSerializer.serialize(installAddonRequest.installAddonDetails, "InstallAddonDetails", model.InstallAddonDetails.getJsonObj),
|
|
1191
|
+
pathParams: pathParams,
|
|
1192
|
+
headerParams: headerParams,
|
|
1193
|
+
queryParams: queryParams
|
|
1194
|
+
});
|
|
1195
|
+
try {
|
|
1196
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1197
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1198
|
+
responseObject: {},
|
|
1199
|
+
body: yield response.json(),
|
|
1200
|
+
bodyKey: "kafkaClusterAddon",
|
|
1201
|
+
bodyModel: model.KafkaClusterAddon,
|
|
1202
|
+
type: "model.KafkaClusterAddon",
|
|
1203
|
+
responseHeaders: [
|
|
1204
|
+
{
|
|
1205
|
+
value: response.headers.get("etag"),
|
|
1206
|
+
key: "etag",
|
|
1207
|
+
dataType: "string"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1211
|
+
key: "opcWorkRequestId",
|
|
1212
|
+
dataType: "string"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
value: response.headers.get("opc-request-id"),
|
|
1216
|
+
key: "opcRequestId",
|
|
1217
|
+
dataType: "string"
|
|
1218
|
+
}
|
|
1219
|
+
]
|
|
1220
|
+
});
|
|
1221
|
+
return sdkResponse;
|
|
1222
|
+
}
|
|
1223
|
+
catch (err) {
|
|
1224
|
+
throw err;
|
|
1225
|
+
}
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* Gets a list of supported KafkaClusterAddons.
|
|
1230
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1231
|
+
* @param ListAddonOptionsRequest
|
|
1232
|
+
* @return ListAddonOptionsResponse
|
|
1233
|
+
* @throws OciError when an error occurs
|
|
1234
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListAddonOptions.ts.html |here} to see how to use ListAddonOptions API.
|
|
1235
|
+
*/
|
|
1236
|
+
listAddonOptions(listAddonOptionsRequest) {
|
|
1237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1238
|
+
if (this.logger)
|
|
1239
|
+
this.logger.debug("Calling operation KafkaClusterClient#listAddonOptions.");
|
|
1240
|
+
const operationName = "listAddonOptions";
|
|
1241
|
+
const apiReferenceLink = "";
|
|
1242
|
+
const pathParams = {};
|
|
1243
|
+
const queryParams = {
|
|
1244
|
+
"compartmentId": listAddonOptionsRequest.compartmentId,
|
|
1245
|
+
"limit": listAddonOptionsRequest.limit,
|
|
1246
|
+
"page": listAddonOptionsRequest.page,
|
|
1247
|
+
"name": listAddonOptionsRequest.name,
|
|
1248
|
+
"sortOrder": listAddonOptionsRequest.sortOrder,
|
|
1249
|
+
"sortBy": listAddonOptionsRequest.sortBy
|
|
1250
|
+
};
|
|
1251
|
+
let headerParams = {
|
|
1252
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1253
|
+
"opc-request-id": listAddonOptionsRequest.opcRequestId
|
|
1254
|
+
};
|
|
1255
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1256
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAddonOptionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1257
|
+
if (this.logger)
|
|
1258
|
+
retrier.logger = this.logger;
|
|
1259
|
+
const request = yield oci_common_1.composeRequest({
|
|
1260
|
+
baseEndpoint: this._endpoint,
|
|
1261
|
+
defaultHeaders: this._defaultHeaders,
|
|
1262
|
+
path: "/addonOptions",
|
|
1263
|
+
method: "GET",
|
|
1264
|
+
pathParams: pathParams,
|
|
1265
|
+
headerParams: headerParams,
|
|
1266
|
+
queryParams: queryParams
|
|
1267
|
+
});
|
|
1268
|
+
try {
|
|
1269
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1270
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1271
|
+
responseObject: {},
|
|
1272
|
+
body: yield response.json(),
|
|
1273
|
+
bodyKey: "addonOptionCollection",
|
|
1274
|
+
bodyModel: model.AddonOptionCollection,
|
|
1275
|
+
type: "model.AddonOptionCollection",
|
|
1276
|
+
responseHeaders: [
|
|
1277
|
+
{
|
|
1278
|
+
value: response.headers.get("opc-request-id"),
|
|
1279
|
+
key: "opcRequestId",
|
|
1280
|
+
dataType: "string"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
value: response.headers.get("opc-next-page"),
|
|
1284
|
+
key: "opcNextPage",
|
|
1285
|
+
dataType: "string"
|
|
1286
|
+
}
|
|
1287
|
+
]
|
|
1288
|
+
});
|
|
1289
|
+
return sdkResponse;
|
|
1290
|
+
}
|
|
1291
|
+
catch (err) {
|
|
1292
|
+
throw err;
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* Gets a list of KafkaClusterAddons.
|
|
1298
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1299
|
+
* @param ListAddonsRequest
|
|
1300
|
+
* @return ListAddonsResponse
|
|
1301
|
+
* @throws OciError when an error occurs
|
|
1302
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/ListAddons.ts.html |here} to see how to use ListAddons API.
|
|
1303
|
+
*/
|
|
1304
|
+
listAddons(listAddonsRequest) {
|
|
1305
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1306
|
+
if (this.logger)
|
|
1307
|
+
this.logger.debug("Calling operation KafkaClusterClient#listAddons.");
|
|
1308
|
+
const operationName = "listAddons";
|
|
1309
|
+
const apiReferenceLink = "";
|
|
1310
|
+
const pathParams = {
|
|
1311
|
+
"{kafkaClusterId}": listAddonsRequest.kafkaClusterId
|
|
1312
|
+
};
|
|
1313
|
+
const queryParams = {
|
|
1314
|
+
"lifecycleState": listAddonsRequest.lifecycleState,
|
|
1315
|
+
"limit": listAddonsRequest.limit,
|
|
1316
|
+
"page": listAddonsRequest.page,
|
|
1317
|
+
"name": listAddonsRequest.name,
|
|
1318
|
+
"sortOrder": listAddonsRequest.sortOrder,
|
|
1319
|
+
"sortBy": listAddonsRequest.sortBy
|
|
1320
|
+
};
|
|
1321
|
+
let headerParams = {
|
|
1322
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1323
|
+
"opc-request-id": listAddonsRequest.opcRequestId
|
|
1324
|
+
};
|
|
1325
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1326
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAddonsRequest.retryConfiguration, specRetryConfiguration);
|
|
1327
|
+
if (this.logger)
|
|
1328
|
+
retrier.logger = this.logger;
|
|
1329
|
+
const request = yield oci_common_1.composeRequest({
|
|
1330
|
+
baseEndpoint: this._endpoint,
|
|
1331
|
+
defaultHeaders: this._defaultHeaders,
|
|
1332
|
+
path: "/kafkaClusters/{kafkaClusterId}/addons",
|
|
1333
|
+
method: "GET",
|
|
1334
|
+
pathParams: pathParams,
|
|
1335
|
+
headerParams: headerParams,
|
|
1336
|
+
queryParams: queryParams
|
|
1337
|
+
});
|
|
1338
|
+
try {
|
|
1339
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1340
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1341
|
+
responseObject: {},
|
|
1342
|
+
body: yield response.json(),
|
|
1343
|
+
bodyKey: "addonCollection",
|
|
1344
|
+
bodyModel: model.AddonCollection,
|
|
1345
|
+
type: "model.AddonCollection",
|
|
1346
|
+
responseHeaders: [
|
|
1347
|
+
{
|
|
1348
|
+
value: response.headers.get("opc-request-id"),
|
|
1349
|
+
key: "opcRequestId",
|
|
1350
|
+
dataType: "string"
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
value: response.headers.get("opc-next-page"),
|
|
1354
|
+
key: "opcNextPage",
|
|
1355
|
+
dataType: "string"
|
|
1356
|
+
}
|
|
1357
|
+
]
|
|
1358
|
+
});
|
|
1359
|
+
return sdkResponse;
|
|
1360
|
+
}
|
|
1361
|
+
catch (err) {
|
|
1362
|
+
throw err;
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1093
1366
|
/**
|
|
1094
1367
|
* Gets a list of KafkaClusterConfig Versions.
|
|
1095
1368
|
*
|
|
@@ -1578,6 +1851,133 @@ class KafkaClusterClient {
|
|
|
1578
1851
|
}
|
|
1579
1852
|
});
|
|
1580
1853
|
}
|
|
1854
|
+
/**
|
|
1855
|
+
* Uninstalls a KafkaClusterAddon in a provisioned cluster.
|
|
1856
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1857
|
+
* @param UninstallAddonRequest
|
|
1858
|
+
* @return UninstallAddonResponse
|
|
1859
|
+
* @throws OciError when an error occurs
|
|
1860
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/UninstallAddon.ts.html |here} to see how to use UninstallAddon API.
|
|
1861
|
+
*/
|
|
1862
|
+
uninstallAddon(uninstallAddonRequest) {
|
|
1863
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1864
|
+
if (this.logger)
|
|
1865
|
+
this.logger.debug("Calling operation KafkaClusterClient#uninstallAddon.");
|
|
1866
|
+
const operationName = "uninstallAddon";
|
|
1867
|
+
const apiReferenceLink = "";
|
|
1868
|
+
const pathParams = {
|
|
1869
|
+
"{kafkaClusterId}": uninstallAddonRequest.kafkaClusterId,
|
|
1870
|
+
"{addonName}": uninstallAddonRequest.addonName
|
|
1871
|
+
};
|
|
1872
|
+
const queryParams = {};
|
|
1873
|
+
let headerParams = {
|
|
1874
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1875
|
+
"if-match": uninstallAddonRequest.ifMatch,
|
|
1876
|
+
"opc-request-id": uninstallAddonRequest.opcRequestId
|
|
1877
|
+
};
|
|
1878
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1879
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uninstallAddonRequest.retryConfiguration, specRetryConfiguration);
|
|
1880
|
+
if (this.logger)
|
|
1881
|
+
retrier.logger = this.logger;
|
|
1882
|
+
const request = yield oci_common_1.composeRequest({
|
|
1883
|
+
baseEndpoint: this._endpoint,
|
|
1884
|
+
defaultHeaders: this._defaultHeaders,
|
|
1885
|
+
path: "/kafkaClusters/{kafkaClusterId}/addons/{addonName}",
|
|
1886
|
+
method: "DELETE",
|
|
1887
|
+
pathParams: pathParams,
|
|
1888
|
+
headerParams: headerParams,
|
|
1889
|
+
queryParams: queryParams
|
|
1890
|
+
});
|
|
1891
|
+
try {
|
|
1892
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1893
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1894
|
+
responseObject: {},
|
|
1895
|
+
responseHeaders: [
|
|
1896
|
+
{
|
|
1897
|
+
value: response.headers.get("opc-request-id"),
|
|
1898
|
+
key: "opcRequestId",
|
|
1899
|
+
dataType: "string"
|
|
1900
|
+
}
|
|
1901
|
+
]
|
|
1902
|
+
});
|
|
1903
|
+
return sdkResponse;
|
|
1904
|
+
}
|
|
1905
|
+
catch (err) {
|
|
1906
|
+
throw err;
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
/**
|
|
1911
|
+
* Installs updates on the existing KafkaClusterAddon.
|
|
1912
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1913
|
+
* @param UpdateAddonRequest
|
|
1914
|
+
* @return UpdateAddonResponse
|
|
1915
|
+
* @throws OciError when an error occurs
|
|
1916
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managedkafka/UpdateAddon.ts.html |here} to see how to use UpdateAddon API.
|
|
1917
|
+
*/
|
|
1918
|
+
updateAddon(updateAddonRequest) {
|
|
1919
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1920
|
+
if (this.logger)
|
|
1921
|
+
this.logger.debug("Calling operation KafkaClusterClient#updateAddon.");
|
|
1922
|
+
const operationName = "updateAddon";
|
|
1923
|
+
const apiReferenceLink = "";
|
|
1924
|
+
const pathParams = {
|
|
1925
|
+
"{kafkaClusterId}": updateAddonRequest.kafkaClusterId,
|
|
1926
|
+
"{addonName}": updateAddonRequest.addonName
|
|
1927
|
+
};
|
|
1928
|
+
const queryParams = {};
|
|
1929
|
+
let headerParams = {
|
|
1930
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1931
|
+
"if-match": updateAddonRequest.ifMatch,
|
|
1932
|
+
"opc-request-id": updateAddonRequest.opcRequestId
|
|
1933
|
+
};
|
|
1934
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1935
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateAddonRequest.retryConfiguration, specRetryConfiguration);
|
|
1936
|
+
if (this.logger)
|
|
1937
|
+
retrier.logger = this.logger;
|
|
1938
|
+
const request = yield oci_common_1.composeRequest({
|
|
1939
|
+
baseEndpoint: this._endpoint,
|
|
1940
|
+
defaultHeaders: this._defaultHeaders,
|
|
1941
|
+
path: "/kafkaClusters/{kafkaClusterId}/addons/{addonName}",
|
|
1942
|
+
method: "PUT",
|
|
1943
|
+
bodyContent: common.ObjectSerializer.serialize(updateAddonRequest.updateAddonDetails, "UpdateAddonDetails", model.UpdateAddonDetails.getJsonObj),
|
|
1944
|
+
pathParams: pathParams,
|
|
1945
|
+
headerParams: headerParams,
|
|
1946
|
+
queryParams: queryParams
|
|
1947
|
+
});
|
|
1948
|
+
try {
|
|
1949
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1950
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1951
|
+
responseObject: {},
|
|
1952
|
+
body: yield response.json(),
|
|
1953
|
+
bodyKey: "kafkaClusterAddon",
|
|
1954
|
+
bodyModel: model.KafkaClusterAddon,
|
|
1955
|
+
type: "model.KafkaClusterAddon",
|
|
1956
|
+
responseHeaders: [
|
|
1957
|
+
{
|
|
1958
|
+
value: response.headers.get("etag"),
|
|
1959
|
+
key: "etag",
|
|
1960
|
+
dataType: "string"
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1964
|
+
key: "opcWorkRequestId",
|
|
1965
|
+
dataType: "string"
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
value: response.headers.get("opc-request-id"),
|
|
1969
|
+
key: "opcRequestId",
|
|
1970
|
+
dataType: "string"
|
|
1971
|
+
}
|
|
1972
|
+
]
|
|
1973
|
+
});
|
|
1974
|
+
return sdkResponse;
|
|
1975
|
+
}
|
|
1976
|
+
catch (err) {
|
|
1977
|
+
throw err;
|
|
1978
|
+
}
|
|
1979
|
+
});
|
|
1980
|
+
}
|
|
1581
1981
|
/**
|
|
1582
1982
|
* Updates a KafkaCluster.
|
|
1583
1983
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|