oci-apigateway 2.112.2 → 2.114.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/lib/client.d.ts +126 -0
  2. package/lib/client.js +1042 -92
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/add-resource-lock-details.d.ts +42 -0
  5. package/lib/model/add-resource-lock-details.js +37 -0
  6. package/lib/model/add-resource-lock-details.js.map +1 -0
  7. package/lib/model/api-summary.d.ts +14 -0
  8. package/lib/model/api-summary.js +10 -0
  9. package/lib/model/api-summary.js.map +1 -1
  10. package/lib/model/api.d.ts +14 -0
  11. package/lib/model/api.js +10 -0
  12. package/lib/model/api.js.map +1 -1
  13. package/lib/model/certificate-summary.d.ts +15 -0
  14. package/lib/model/certificate-summary.js +34 -2
  15. package/lib/model/certificate-summary.js.map +1 -1
  16. package/lib/model/certificate.d.ts +15 -0
  17. package/lib/model/certificate.js +34 -2
  18. package/lib/model/certificate.js.map +1 -1
  19. package/lib/model/create-api-details.d.ts +5 -0
  20. package/lib/model/create-api-details.js +34 -2
  21. package/lib/model/create-api-details.js.map +1 -1
  22. package/lib/model/create-certificate-details.d.ts +5 -0
  23. package/lib/model/create-certificate-details.js +34 -2
  24. package/lib/model/create-certificate-details.js.map +1 -1
  25. package/lib/model/create-deployment-details.d.ts +4 -0
  26. package/lib/model/create-deployment-details.js +10 -0
  27. package/lib/model/create-deployment-details.js.map +1 -1
  28. package/lib/model/create-gateway-details.d.ts +6 -1
  29. package/lib/model/create-gateway-details.js +10 -0
  30. package/lib/model/create-gateway-details.js.map +1 -1
  31. package/lib/model/create-sdk-details.d.ts +5 -0
  32. package/lib/model/create-sdk-details.js +34 -2
  33. package/lib/model/create-sdk-details.js.map +1 -1
  34. package/lib/model/create-subscriber-details.d.ts +4 -0
  35. package/lib/model/create-subscriber-details.js +10 -0
  36. package/lib/model/create-subscriber-details.js.map +1 -1
  37. package/lib/model/create-usage-plan-details.d.ts +4 -0
  38. package/lib/model/create-usage-plan-details.js +10 -0
  39. package/lib/model/create-usage-plan-details.js.map +1 -1
  40. package/lib/model/deployment-summary.d.ts +15 -0
  41. package/lib/model/deployment-summary.js +34 -2
  42. package/lib/model/deployment-summary.js.map +1 -1
  43. package/lib/model/deployment.d.ts +14 -0
  44. package/lib/model/deployment.js +10 -0
  45. package/lib/model/deployment.js.map +1 -1
  46. package/lib/model/gateway-summary.d.ts +15 -0
  47. package/lib/model/gateway-summary.js +34 -2
  48. package/lib/model/gateway-summary.js.map +1 -1
  49. package/lib/model/gateway.d.ts +14 -0
  50. package/lib/model/gateway.js +10 -0
  51. package/lib/model/gateway.js.map +1 -1
  52. package/lib/model/h-tt-pbackend.d.ts +3 -0
  53. package/lib/model/h-tt-pbackend.js.map +1 -1
  54. package/lib/model/header-validation-request-policy.d.ts +3 -0
  55. package/lib/model/header-validation-request-policy.js.map +1 -1
  56. package/lib/model/index.d.ts +6 -0
  57. package/lib/model/index.js +10 -4
  58. package/lib/model/index.js.map +1 -1
  59. package/lib/model/o-auth2-logout-backend.d.ts +3 -0
  60. package/lib/model/o-auth2-logout-backend.js.map +1 -1
  61. package/lib/model/query-parameter-validation-request-policy.d.ts +3 -0
  62. package/lib/model/query-parameter-validation-request-policy.js.map +1 -1
  63. package/lib/model/remove-resource-lock-details.d.ts +36 -0
  64. package/lib/model/remove-resource-lock-details.js +37 -0
  65. package/lib/model/remove-resource-lock-details.js.map +1 -0
  66. package/lib/model/resource-lock.d.ts +55 -0
  67. package/lib/model/resource-lock.js +42 -0
  68. package/lib/model/resource-lock.js.map +1 -0
  69. package/lib/model/sdk-summary.d.ts +15 -0
  70. package/lib/model/sdk-summary.js +34 -2
  71. package/lib/model/sdk-summary.js.map +1 -1
  72. package/lib/model/sdk.d.ts +15 -0
  73. package/lib/model/sdk.js +34 -2
  74. package/lib/model/sdk.js.map +1 -1
  75. package/lib/model/subscriber-summary.d.ts +14 -0
  76. package/lib/model/subscriber-summary.js +10 -0
  77. package/lib/model/subscriber-summary.js.map +1 -1
  78. package/lib/model/subscriber.d.ts +14 -0
  79. package/lib/model/subscriber.js +10 -0
  80. package/lib/model/subscriber.js.map +1 -1
  81. package/lib/model/update-gateway-details.d.ts +2 -1
  82. package/lib/model/update-gateway-details.js.map +1 -1
  83. package/lib/model/usage-plan-summary.d.ts +14 -0
  84. package/lib/model/usage-plan-summary.js +10 -0
  85. package/lib/model/usage-plan-summary.js.map +1 -1
  86. package/lib/model/usage-plan.d.ts +14 -0
  87. package/lib/model/usage-plan.js +10 -0
  88. package/lib/model/usage-plan.js.map +1 -1
  89. package/lib/request/add-api-lock-request.d.ts +40 -0
  90. package/lib/request/add-api-lock-request.js +15 -0
  91. package/lib/request/add-api-lock-request.js.map +1 -0
  92. package/lib/request/add-certificate-lock-request.d.ts +40 -0
  93. package/lib/request/add-certificate-lock-request.js +15 -0
  94. package/lib/request/add-certificate-lock-request.js.map +1 -0
  95. package/lib/request/add-deployment-lock-request.d.ts +40 -0
  96. package/lib/request/add-deployment-lock-request.js +15 -0
  97. package/lib/request/add-deployment-lock-request.js.map +1 -0
  98. package/lib/request/add-gateway-lock-request.d.ts +40 -0
  99. package/lib/request/add-gateway-lock-request.js +15 -0
  100. package/lib/request/add-gateway-lock-request.js.map +1 -0
  101. package/lib/request/add-sdk-lock-request.d.ts +40 -0
  102. package/lib/request/add-sdk-lock-request.js +15 -0
  103. package/lib/request/add-sdk-lock-request.js.map +1 -0
  104. package/lib/request/add-subscriber-lock-request.d.ts +40 -0
  105. package/lib/request/add-subscriber-lock-request.js +15 -0
  106. package/lib/request/add-subscriber-lock-request.js.map +1 -0
  107. package/lib/request/add-usage-plan-lock-request.d.ts +40 -0
  108. package/lib/request/add-usage-plan-lock-request.js +15 -0
  109. package/lib/request/add-usage-plan-lock-request.js.map +1 -0
  110. package/lib/request/change-api-compartment-request.d.ts +4 -0
  111. package/lib/request/change-certificate-compartment-request.d.ts +4 -0
  112. package/lib/request/change-deployment-compartment-request.d.ts +4 -0
  113. package/lib/request/change-gateway-compartment-request.d.ts +4 -0
  114. package/lib/request/change-subscriber-compartment-request.d.ts +4 -0
  115. package/lib/request/change-usage-plan-compartment-request.d.ts +4 -0
  116. package/lib/request/delete-api-request.d.ts +4 -0
  117. package/lib/request/delete-certificate-request.d.ts +4 -0
  118. package/lib/request/delete-deployment-request.d.ts +4 -0
  119. package/lib/request/delete-gateway-request.d.ts +4 -0
  120. package/lib/request/delete-sdk-request.d.ts +4 -0
  121. package/lib/request/delete-subscriber-request.d.ts +4 -0
  122. package/lib/request/delete-usage-plan-request.d.ts +4 -0
  123. package/lib/request/index.d.ts +28 -0
  124. package/lib/request/index.js.map +1 -1
  125. package/lib/request/list-sdks-request.d.ts +2 -2
  126. package/lib/request/remove-api-lock-request.d.ts +40 -0
  127. package/lib/request/remove-api-lock-request.js +15 -0
  128. package/lib/request/remove-api-lock-request.js.map +1 -0
  129. package/lib/request/remove-certificate-lock-request.d.ts +40 -0
  130. package/lib/request/remove-certificate-lock-request.js +15 -0
  131. package/lib/request/remove-certificate-lock-request.js.map +1 -0
  132. package/lib/request/remove-deployment-lock-request.d.ts +40 -0
  133. package/lib/request/remove-deployment-lock-request.js +15 -0
  134. package/lib/request/remove-deployment-lock-request.js.map +1 -0
  135. package/lib/request/remove-gateway-lock-request.d.ts +40 -0
  136. package/lib/request/remove-gateway-lock-request.js +15 -0
  137. package/lib/request/remove-gateway-lock-request.js.map +1 -0
  138. package/lib/request/remove-sdk-lock-request.d.ts +40 -0
  139. package/lib/request/remove-sdk-lock-request.js +15 -0
  140. package/lib/request/remove-sdk-lock-request.js.map +1 -0
  141. package/lib/request/remove-subscriber-lock-request.d.ts +40 -0
  142. package/lib/request/remove-subscriber-lock-request.js +15 -0
  143. package/lib/request/remove-subscriber-lock-request.js.map +1 -0
  144. package/lib/request/remove-usage-plan-lock-request.d.ts +40 -0
  145. package/lib/request/remove-usage-plan-lock-request.js +15 -0
  146. package/lib/request/remove-usage-plan-lock-request.js.map +1 -0
  147. package/lib/request/update-api-request.d.ts +4 -0
  148. package/lib/request/update-certificate-request.d.ts +4 -0
  149. package/lib/request/update-deployment-request.d.ts +4 -0
  150. package/lib/request/update-gateway-request.d.ts +4 -0
  151. package/lib/request/update-sdk-request.d.ts +4 -0
  152. package/lib/request/update-subscriber-request.d.ts +4 -0
  153. package/lib/request/update-usage-plan-request.d.ts +4 -0
  154. package/lib/response/add-api-lock-response.d.ts +30 -0
  155. package/lib/response/add-api-lock-response.js +15 -0
  156. package/lib/response/add-api-lock-response.js.map +1 -0
  157. package/lib/response/add-certificate-lock-response.d.ts +30 -0
  158. package/lib/response/add-certificate-lock-response.js +15 -0
  159. package/lib/response/add-certificate-lock-response.js.map +1 -0
  160. package/lib/response/add-deployment-lock-response.d.ts +30 -0
  161. package/lib/response/add-deployment-lock-response.js +15 -0
  162. package/lib/response/add-deployment-lock-response.js.map +1 -0
  163. package/lib/response/add-gateway-lock-response.d.ts +30 -0
  164. package/lib/response/add-gateway-lock-response.js +15 -0
  165. package/lib/response/add-gateway-lock-response.js.map +1 -0
  166. package/lib/response/add-sdk-lock-response.d.ts +30 -0
  167. package/lib/response/add-sdk-lock-response.js +15 -0
  168. package/lib/response/add-sdk-lock-response.js.map +1 -0
  169. package/lib/response/add-subscriber-lock-response.d.ts +30 -0
  170. package/lib/response/add-subscriber-lock-response.js +15 -0
  171. package/lib/response/add-subscriber-lock-response.js.map +1 -0
  172. package/lib/response/add-usage-plan-lock-response.d.ts +30 -0
  173. package/lib/response/add-usage-plan-lock-response.js +15 -0
  174. package/lib/response/add-usage-plan-lock-response.js.map +1 -0
  175. package/lib/response/index.d.ts +28 -0
  176. package/lib/response/remove-api-lock-response.d.ts +30 -0
  177. package/lib/response/remove-api-lock-response.js +15 -0
  178. package/lib/response/remove-api-lock-response.js.map +1 -0
  179. package/lib/response/remove-certificate-lock-response.d.ts +30 -0
  180. package/lib/response/remove-certificate-lock-response.js +15 -0
  181. package/lib/response/remove-certificate-lock-response.js.map +1 -0
  182. package/lib/response/remove-deployment-lock-response.d.ts +30 -0
  183. package/lib/response/remove-deployment-lock-response.js +15 -0
  184. package/lib/response/remove-deployment-lock-response.js.map +1 -0
  185. package/lib/response/remove-gateway-lock-response.d.ts +30 -0
  186. package/lib/response/remove-gateway-lock-response.js +15 -0
  187. package/lib/response/remove-gateway-lock-response.js.map +1 -0
  188. package/lib/response/remove-sdk-lock-response.d.ts +30 -0
  189. package/lib/response/remove-sdk-lock-response.js +15 -0
  190. package/lib/response/remove-sdk-lock-response.js.map +1 -0
  191. package/lib/response/remove-subscriber-lock-response.d.ts +30 -0
  192. package/lib/response/remove-subscriber-lock-response.js +15 -0
  193. package/lib/response/remove-subscriber-lock-response.js.map +1 -0
  194. package/lib/response/remove-usage-plan-lock-response.d.ts +30 -0
  195. package/lib/response/remove-usage-plan-lock-response.js +15 -0
  196. package/lib/response/remove-usage-plan-lock-response.js.map +1 -0
  197. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -215,6 +215,201 @@ class ApiGatewayClient {
215
215
  this.shutdownCircuitBreaker();
216
216
  this.closeProvider();
217
217
  }
218
+ /**
219
+ * Adds a lock to a Api resource.
220
+ * This operation does not retry by default if the user has not defined a retry configuration.
221
+ * @param AddApiLockRequest
222
+ * @return AddApiLockResponse
223
+ * @throws OciError when an error occurs
224
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/AddApiLock.ts.html |here} to see how to use AddApiLock API.
225
+ */
226
+ addApiLock(addApiLockRequest) {
227
+ return __awaiter(this, void 0, void 0, function* () {
228
+ if (this.logger)
229
+ this.logger.debug("Calling operation ApiGatewayClient#addApiLock.");
230
+ const operationName = "addApiLock";
231
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/AddApiLock";
232
+ const pathParams = {
233
+ "{apiId}": addApiLockRequest.apiId
234
+ };
235
+ const queryParams = {};
236
+ let headerParams = {
237
+ "Content-Type": common.Constants.APPLICATION_JSON,
238
+ "opc-request-id": addApiLockRequest.opcRequestId,
239
+ "if-match": addApiLockRequest.ifMatch
240
+ };
241
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
242
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addApiLockRequest.retryConfiguration, specRetryConfiguration);
243
+ if (this.logger)
244
+ retrier.logger = this.logger;
245
+ const request = yield oci_common_1.composeRequest({
246
+ baseEndpoint: this._endpoint,
247
+ defaultHeaders: this._defaultHeaders,
248
+ path: "/apis/{apiId}/actions/addLock",
249
+ method: "POST",
250
+ bodyContent: common.ObjectSerializer.serialize(addApiLockRequest.addResourceLockDetails, "AddResourceLockDetails", model.AddResourceLockDetails.getJsonObj),
251
+ pathParams: pathParams,
252
+ headerParams: headerParams,
253
+ queryParams: queryParams
254
+ });
255
+ try {
256
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
257
+ const sdkResponse = oci_common_1.composeResponse({
258
+ responseObject: {},
259
+ body: yield response.json(),
260
+ bodyKey: "api",
261
+ bodyModel: model.Api,
262
+ type: "model.Api",
263
+ responseHeaders: [
264
+ {
265
+ value: response.headers.get("opc-request-id"),
266
+ key: "opcRequestId",
267
+ dataType: "string"
268
+ },
269
+ {
270
+ value: response.headers.get("etag"),
271
+ key: "etag",
272
+ dataType: "string"
273
+ }
274
+ ]
275
+ });
276
+ return sdkResponse;
277
+ }
278
+ catch (err) {
279
+ throw err;
280
+ }
281
+ });
282
+ }
283
+ /**
284
+ * Adds a lock to a Certificate resource.
285
+ * This operation does not retry by default if the user has not defined a retry configuration.
286
+ * @param AddCertificateLockRequest
287
+ * @return AddCertificateLockResponse
288
+ * @throws OciError when an error occurs
289
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/AddCertificateLock.ts.html |here} to see how to use AddCertificateLock API.
290
+ */
291
+ addCertificateLock(addCertificateLockRequest) {
292
+ return __awaiter(this, void 0, void 0, function* () {
293
+ if (this.logger)
294
+ this.logger.debug("Calling operation ApiGatewayClient#addCertificateLock.");
295
+ const operationName = "addCertificateLock";
296
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/AddCertificateLock";
297
+ const pathParams = {
298
+ "{certificateId}": addCertificateLockRequest.certificateId
299
+ };
300
+ const queryParams = {};
301
+ let headerParams = {
302
+ "Content-Type": common.Constants.APPLICATION_JSON,
303
+ "opc-request-id": addCertificateLockRequest.opcRequestId,
304
+ "if-match": addCertificateLockRequest.ifMatch
305
+ };
306
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
307
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addCertificateLockRequest.retryConfiguration, specRetryConfiguration);
308
+ if (this.logger)
309
+ retrier.logger = this.logger;
310
+ const request = yield oci_common_1.composeRequest({
311
+ baseEndpoint: this._endpoint,
312
+ defaultHeaders: this._defaultHeaders,
313
+ path: "/certificates/{certificateId}/actions/addLock",
314
+ method: "POST",
315
+ bodyContent: common.ObjectSerializer.serialize(addCertificateLockRequest.addResourceLockDetails, "AddResourceLockDetails", model.AddResourceLockDetails.getJsonObj),
316
+ pathParams: pathParams,
317
+ headerParams: headerParams,
318
+ queryParams: queryParams
319
+ });
320
+ try {
321
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
322
+ const sdkResponse = oci_common_1.composeResponse({
323
+ responseObject: {},
324
+ body: yield response.json(),
325
+ bodyKey: "certificate",
326
+ bodyModel: model.Certificate,
327
+ type: "model.Certificate",
328
+ responseHeaders: [
329
+ {
330
+ value: response.headers.get("opc-request-id"),
331
+ key: "opcRequestId",
332
+ dataType: "string"
333
+ },
334
+ {
335
+ value: response.headers.get("etag"),
336
+ key: "etag",
337
+ dataType: "string"
338
+ }
339
+ ]
340
+ });
341
+ return sdkResponse;
342
+ }
343
+ catch (err) {
344
+ throw err;
345
+ }
346
+ });
347
+ }
348
+ /**
349
+ * Adds a lock to a Sdk resource.
350
+ * This operation does not retry by default if the user has not defined a retry configuration.
351
+ * @param AddSdkLockRequest
352
+ * @return AddSdkLockResponse
353
+ * @throws OciError when an error occurs
354
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/AddSdkLock.ts.html |here} to see how to use AddSdkLock API.
355
+ */
356
+ addSdkLock(addSdkLockRequest) {
357
+ return __awaiter(this, void 0, void 0, function* () {
358
+ if (this.logger)
359
+ this.logger.debug("Calling operation ApiGatewayClient#addSdkLock.");
360
+ const operationName = "addSdkLock";
361
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/AddSdkLock";
362
+ const pathParams = {
363
+ "{sdkId}": addSdkLockRequest.sdkId
364
+ };
365
+ const queryParams = {};
366
+ let headerParams = {
367
+ "Content-Type": common.Constants.APPLICATION_JSON,
368
+ "opc-request-id": addSdkLockRequest.opcRequestId,
369
+ "if-match": addSdkLockRequest.ifMatch
370
+ };
371
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
372
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addSdkLockRequest.retryConfiguration, specRetryConfiguration);
373
+ if (this.logger)
374
+ retrier.logger = this.logger;
375
+ const request = yield oci_common_1.composeRequest({
376
+ baseEndpoint: this._endpoint,
377
+ defaultHeaders: this._defaultHeaders,
378
+ path: "/sdks/{sdkId}/actions/addLock",
379
+ method: "POST",
380
+ bodyContent: common.ObjectSerializer.serialize(addSdkLockRequest.addResourceLockDetails, "AddResourceLockDetails", model.AddResourceLockDetails.getJsonObj),
381
+ pathParams: pathParams,
382
+ headerParams: headerParams,
383
+ queryParams: queryParams
384
+ });
385
+ try {
386
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
387
+ const sdkResponse = oci_common_1.composeResponse({
388
+ responseObject: {},
389
+ body: yield response.json(),
390
+ bodyKey: "sdk",
391
+ bodyModel: model.Sdk,
392
+ type: "model.Sdk",
393
+ responseHeaders: [
394
+ {
395
+ value: response.headers.get("opc-request-id"),
396
+ key: "opcRequestId",
397
+ dataType: "string"
398
+ },
399
+ {
400
+ value: response.headers.get("etag"),
401
+ key: "etag",
402
+ dataType: "string"
403
+ }
404
+ ]
405
+ });
406
+ return sdkResponse;
407
+ }
408
+ catch (err) {
409
+ throw err;
410
+ }
411
+ });
412
+ }
218
413
  /**
219
414
  * Changes the API compartment.
220
415
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -232,7 +427,9 @@ class ApiGatewayClient {
232
427
  const pathParams = {
233
428
  "{apiId}": changeApiCompartmentRequest.apiId
234
429
  };
235
- const queryParams = {};
430
+ const queryParams = {
431
+ "isLockOverride": changeApiCompartmentRequest.isLockOverride
432
+ };
236
433
  let headerParams = {
237
434
  "Content-Type": common.Constants.APPLICATION_JSON,
238
435
  "opc-retry-token": changeApiCompartmentRequest.opcRetryToken,
@@ -294,7 +491,9 @@ class ApiGatewayClient {
294
491
  const pathParams = {
295
492
  "{certificateId}": changeCertificateCompartmentRequest.certificateId
296
493
  };
297
- const queryParams = {};
494
+ const queryParams = {
495
+ "isLockOverride": changeCertificateCompartmentRequest.isLockOverride
496
+ };
298
497
  let headerParams = {
299
498
  "Content-Type": common.Constants.APPLICATION_JSON,
300
499
  "opc-retry-token": changeCertificateCompartmentRequest.opcRetryToken,
@@ -572,7 +771,9 @@ class ApiGatewayClient {
572
771
  const pathParams = {
573
772
  "{apiId}": deleteApiRequest.apiId
574
773
  };
575
- const queryParams = {};
774
+ const queryParams = {
775
+ "isLockOverride": deleteApiRequest.isLockOverride
776
+ };
576
777
  let headerParams = {
577
778
  "Content-Type": common.Constants.APPLICATION_JSON,
578
779
  "if-match": deleteApiRequest.ifMatch,
@@ -632,7 +833,9 @@ class ApiGatewayClient {
632
833
  const pathParams = {
633
834
  "{certificateId}": deleteCertificateRequest.certificateId
634
835
  };
635
- const queryParams = {};
836
+ const queryParams = {
837
+ "isLockOverride": deleteCertificateRequest.isLockOverride
838
+ };
636
839
  let headerParams = {
637
840
  "Content-Type": common.Constants.APPLICATION_JSON,
638
841
  "if-match": deleteCertificateRequest.ifMatch,
@@ -692,7 +895,9 @@ class ApiGatewayClient {
692
895
  const pathParams = {
693
896
  "{sdkId}": deleteSdkRequest.sdkId
694
897
  };
695
- const queryParams = {};
898
+ const queryParams = {
899
+ "isLockOverride": deleteSdkRequest.isLockOverride
900
+ };
696
901
  let headerParams = {
697
902
  "Content-Type": common.Constants.APPLICATION_JSON,
698
903
  "opc-request-id": deleteSdkRequest.opcRequestId,
@@ -1420,38 +1625,38 @@ class ApiGatewayClient {
1420
1625
  });
1421
1626
  }
1422
1627
  /**
1423
- * Updates the API with the given identifier.
1628
+ * Removes a lock from a Api resource.
1424
1629
  * This operation does not retry by default if the user has not defined a retry configuration.
1425
- * @param UpdateApiRequest
1426
- * @return UpdateApiResponse
1630
+ * @param RemoveApiLockRequest
1631
+ * @return RemoveApiLockResponse
1427
1632
  * @throws OciError when an error occurs
1428
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
1633
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/RemoveApiLock.ts.html |here} to see how to use RemoveApiLock API.
1429
1634
  */
1430
- updateApi(updateApiRequest) {
1635
+ removeApiLock(removeApiLockRequest) {
1431
1636
  return __awaiter(this, void 0, void 0, function* () {
1432
1637
  if (this.logger)
1433
- this.logger.debug("Calling operation ApiGatewayClient#updateApi.");
1434
- const operationName = "updateApi";
1435
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/UpdateApi";
1638
+ this.logger.debug("Calling operation ApiGatewayClient#removeApiLock.");
1639
+ const operationName = "removeApiLock";
1640
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/RemoveApiLock";
1436
1641
  const pathParams = {
1437
- "{apiId}": updateApiRequest.apiId
1642
+ "{apiId}": removeApiLockRequest.apiId
1438
1643
  };
1439
1644
  const queryParams = {};
1440
1645
  let headerParams = {
1441
1646
  "Content-Type": common.Constants.APPLICATION_JSON,
1442
- "if-match": updateApiRequest.ifMatch,
1443
- "opc-request-id": updateApiRequest.opcRequestId
1647
+ "opc-request-id": removeApiLockRequest.opcRequestId,
1648
+ "if-match": removeApiLockRequest.ifMatch
1444
1649
  };
1445
1650
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1446
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateApiRequest.retryConfiguration, specRetryConfiguration);
1651
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeApiLockRequest.retryConfiguration, specRetryConfiguration);
1447
1652
  if (this.logger)
1448
1653
  retrier.logger = this.logger;
1449
1654
  const request = yield oci_common_1.composeRequest({
1450
1655
  baseEndpoint: this._endpoint,
1451
1656
  defaultHeaders: this._defaultHeaders,
1452
- path: "/apis/{apiId}",
1453
- method: "PUT",
1454
- bodyContent: common.ObjectSerializer.serialize(updateApiRequest.updateApiDetails, "UpdateApiDetails", model.UpdateApiDetails.getJsonObj),
1657
+ path: "/apis/{apiId}/actions/removeLock",
1658
+ method: "POST",
1659
+ bodyContent: common.ObjectSerializer.serialize(removeApiLockRequest.removeResourceLockDetails, "RemoveResourceLockDetails", model.RemoveResourceLockDetails.getJsonObj),
1455
1660
  pathParams: pathParams,
1456
1661
  headerParams: headerParams,
1457
1662
  queryParams: queryParams
@@ -1460,15 +1665,19 @@ class ApiGatewayClient {
1460
1665
  const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1461
1666
  const sdkResponse = oci_common_1.composeResponse({
1462
1667
  responseObject: {},
1668
+ body: yield response.json(),
1669
+ bodyKey: "api",
1670
+ bodyModel: model.Api,
1671
+ type: "model.Api",
1463
1672
  responseHeaders: [
1464
1673
  {
1465
- value: response.headers.get("opc-work-request-id"),
1466
- key: "opcWorkRequestId",
1674
+ value: response.headers.get("opc-request-id"),
1675
+ key: "opcRequestId",
1467
1676
  dataType: "string"
1468
1677
  },
1469
1678
  {
1470
- value: response.headers.get("opc-request-id"),
1471
- key: "opcRequestId",
1679
+ value: response.headers.get("etag"),
1680
+ key: "etag",
1472
1681
  dataType: "string"
1473
1682
  }
1474
1683
  ]
@@ -1481,38 +1690,38 @@ class ApiGatewayClient {
1481
1690
  });
1482
1691
  }
1483
1692
  /**
1484
- * Updates a certificate with the given identifier
1693
+ * Removes a lock from a Certificate resource.
1485
1694
  * This operation does not retry by default if the user has not defined a retry configuration.
1486
- * @param UpdateCertificateRequest
1487
- * @return UpdateCertificateResponse
1695
+ * @param RemoveCertificateLockRequest
1696
+ * @return RemoveCertificateLockResponse
1488
1697
  * @throws OciError when an error occurs
1489
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
1698
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/RemoveCertificateLock.ts.html |here} to see how to use RemoveCertificateLock API.
1490
1699
  */
1491
- updateCertificate(updateCertificateRequest) {
1700
+ removeCertificateLock(removeCertificateLockRequest) {
1492
1701
  return __awaiter(this, void 0, void 0, function* () {
1493
1702
  if (this.logger)
1494
- this.logger.debug("Calling operation ApiGatewayClient#updateCertificate.");
1495
- const operationName = "updateCertificate";
1496
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/UpdateCertificate";
1703
+ this.logger.debug("Calling operation ApiGatewayClient#removeCertificateLock.");
1704
+ const operationName = "removeCertificateLock";
1705
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/RemoveCertificateLock";
1497
1706
  const pathParams = {
1498
- "{certificateId}": updateCertificateRequest.certificateId
1707
+ "{certificateId}": removeCertificateLockRequest.certificateId
1499
1708
  };
1500
1709
  const queryParams = {};
1501
1710
  let headerParams = {
1502
1711
  "Content-Type": common.Constants.APPLICATION_JSON,
1503
- "if-match": updateCertificateRequest.ifMatch,
1504
- "opc-request-id": updateCertificateRequest.opcRequestId
1712
+ "opc-request-id": removeCertificateLockRequest.opcRequestId,
1713
+ "if-match": removeCertificateLockRequest.ifMatch
1505
1714
  };
1506
1715
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1507
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateCertificateRequest.retryConfiguration, specRetryConfiguration);
1716
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeCertificateLockRequest.retryConfiguration, specRetryConfiguration);
1508
1717
  if (this.logger)
1509
1718
  retrier.logger = this.logger;
1510
1719
  const request = yield oci_common_1.composeRequest({
1511
1720
  baseEndpoint: this._endpoint,
1512
1721
  defaultHeaders: this._defaultHeaders,
1513
- path: "/certificates/{certificateId}",
1514
- method: "PUT",
1515
- bodyContent: common.ObjectSerializer.serialize(updateCertificateRequest.updateCertificateDetails, "UpdateCertificateDetails", model.UpdateCertificateDetails.getJsonObj),
1722
+ path: "/certificates/{certificateId}/actions/removeLock",
1723
+ method: "POST",
1724
+ bodyContent: common.ObjectSerializer.serialize(removeCertificateLockRequest.removeResourceLockDetails, "RemoveResourceLockDetails", model.RemoveResourceLockDetails.getJsonObj),
1516
1725
  pathParams: pathParams,
1517
1726
  headerParams: headerParams,
1518
1727
  queryParams: queryParams
@@ -1521,15 +1730,19 @@ class ApiGatewayClient {
1521
1730
  const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1522
1731
  const sdkResponse = oci_common_1.composeResponse({
1523
1732
  responseObject: {},
1733
+ body: yield response.json(),
1734
+ bodyKey: "certificate",
1735
+ bodyModel: model.Certificate,
1736
+ type: "model.Certificate",
1524
1737
  responseHeaders: [
1525
1738
  {
1526
- value: response.headers.get("opc-work-request-id"),
1527
- key: "opcWorkRequestId",
1739
+ value: response.headers.get("opc-request-id"),
1740
+ key: "opcRequestId",
1528
1741
  dataType: "string"
1529
1742
  },
1530
1743
  {
1531
- value: response.headers.get("opc-request-id"),
1532
- key: "opcRequestId",
1744
+ value: response.headers.get("etag"),
1745
+ key: "etag",
1533
1746
  dataType: "string"
1534
1747
  }
1535
1748
  ]
@@ -1542,38 +1755,38 @@ class ApiGatewayClient {
1542
1755
  });
1543
1756
  }
1544
1757
  /**
1545
- * Updates the SDK with the given identifier.
1758
+ * Removes a lock from a Sdk resource.
1546
1759
  * This operation does not retry by default if the user has not defined a retry configuration.
1547
- * @param UpdateSdkRequest
1548
- * @return UpdateSdkResponse
1760
+ * @param RemoveSdkLockRequest
1761
+ * @return RemoveSdkLockResponse
1549
1762
  * @throws OciError when an error occurs
1550
- * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
1763
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/RemoveSdkLock.ts.html |here} to see how to use RemoveSdkLock API.
1551
1764
  */
1552
- updateSdk(updateSdkRequest) {
1765
+ removeSdkLock(removeSdkLockRequest) {
1553
1766
  return __awaiter(this, void 0, void 0, function* () {
1554
1767
  if (this.logger)
1555
- this.logger.debug("Calling operation ApiGatewayClient#updateSdk.");
1556
- const operationName = "updateSdk";
1557
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/UpdateSdk";
1768
+ this.logger.debug("Calling operation ApiGatewayClient#removeSdkLock.");
1769
+ const operationName = "removeSdkLock";
1770
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/RemoveSdkLock";
1558
1771
  const pathParams = {
1559
- "{sdkId}": updateSdkRequest.sdkId
1772
+ "{sdkId}": removeSdkLockRequest.sdkId
1560
1773
  };
1561
1774
  const queryParams = {};
1562
1775
  let headerParams = {
1563
1776
  "Content-Type": common.Constants.APPLICATION_JSON,
1564
- "if-match": updateSdkRequest.ifMatch,
1565
- "opc-request-id": updateSdkRequest.opcRequestId
1777
+ "opc-request-id": removeSdkLockRequest.opcRequestId,
1778
+ "if-match": removeSdkLockRequest.ifMatch
1566
1779
  };
1567
1780
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1568
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSdkRequest.retryConfiguration, specRetryConfiguration);
1781
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeSdkLockRequest.retryConfiguration, specRetryConfiguration);
1569
1782
  if (this.logger)
1570
1783
  retrier.logger = this.logger;
1571
1784
  const request = yield oci_common_1.composeRequest({
1572
1785
  baseEndpoint: this._endpoint,
1573
1786
  defaultHeaders: this._defaultHeaders,
1574
- path: "/sdks/{sdkId}",
1575
- method: "PUT",
1576
- bodyContent: common.ObjectSerializer.serialize(updateSdkRequest.updateSdkDetails, "UpdateSdkDetails", model.UpdateSdkDetails.getJsonObj),
1787
+ path: "/sdks/{sdkId}/actions/removeLock",
1788
+ method: "POST",
1789
+ bodyContent: common.ObjectSerializer.serialize(removeSdkLockRequest.removeResourceLockDetails, "RemoveResourceLockDetails", model.RemoveResourceLockDetails.getJsonObj),
1577
1790
  pathParams: pathParams,
1578
1791
  headerParams: headerParams,
1579
1792
  queryParams: queryParams
@@ -1582,11 +1795,20 @@ class ApiGatewayClient {
1582
1795
  const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1583
1796
  const sdkResponse = oci_common_1.composeResponse({
1584
1797
  responseObject: {},
1798
+ body: yield response.json(),
1799
+ bodyKey: "sdk",
1800
+ bodyModel: model.Sdk,
1801
+ type: "model.Sdk",
1585
1802
  responseHeaders: [
1586
1803
  {
1587
1804
  value: response.headers.get("opc-request-id"),
1588
1805
  key: "opcRequestId",
1589
1806
  dataType: "string"
1807
+ },
1808
+ {
1809
+ value: response.headers.get("etag"),
1810
+ key: "etag",
1811
+ dataType: "string"
1590
1812
  }
1591
1813
  ]
1592
1814
  });
@@ -1597,13 +1819,197 @@ class ApiGatewayClient {
1597
1819
  }
1598
1820
  });
1599
1821
  }
1600
- }
1601
- exports.ApiGatewayClient = ApiGatewayClient;
1602
- ApiGatewayClient.serviceEndpointTemplate = "https://apigateway.{region}.oci.{secondLevelDomain}";
1603
- ApiGatewayClient.endpointServiceName = "";
1604
- var DeploymentApiKeys;
1605
- (function (DeploymentApiKeys) {
1606
- })(DeploymentApiKeys = exports.DeploymentApiKeys || (exports.DeploymentApiKeys = {}));
1822
+ /**
1823
+ * Updates the API with the given identifier.
1824
+ * This operation does not retry by default if the user has not defined a retry configuration.
1825
+ * @param UpdateApiRequest
1826
+ * @return UpdateApiResponse
1827
+ * @throws OciError when an error occurs
1828
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
1829
+ */
1830
+ updateApi(updateApiRequest) {
1831
+ return __awaiter(this, void 0, void 0, function* () {
1832
+ if (this.logger)
1833
+ this.logger.debug("Calling operation ApiGatewayClient#updateApi.");
1834
+ const operationName = "updateApi";
1835
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/UpdateApi";
1836
+ const pathParams = {
1837
+ "{apiId}": updateApiRequest.apiId
1838
+ };
1839
+ const queryParams = {
1840
+ "isLockOverride": updateApiRequest.isLockOverride
1841
+ };
1842
+ let headerParams = {
1843
+ "Content-Type": common.Constants.APPLICATION_JSON,
1844
+ "if-match": updateApiRequest.ifMatch,
1845
+ "opc-request-id": updateApiRequest.opcRequestId
1846
+ };
1847
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1848
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateApiRequest.retryConfiguration, specRetryConfiguration);
1849
+ if (this.logger)
1850
+ retrier.logger = this.logger;
1851
+ const request = yield oci_common_1.composeRequest({
1852
+ baseEndpoint: this._endpoint,
1853
+ defaultHeaders: this._defaultHeaders,
1854
+ path: "/apis/{apiId}",
1855
+ method: "PUT",
1856
+ bodyContent: common.ObjectSerializer.serialize(updateApiRequest.updateApiDetails, "UpdateApiDetails", model.UpdateApiDetails.getJsonObj),
1857
+ pathParams: pathParams,
1858
+ headerParams: headerParams,
1859
+ queryParams: queryParams
1860
+ });
1861
+ try {
1862
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1863
+ const sdkResponse = oci_common_1.composeResponse({
1864
+ responseObject: {},
1865
+ responseHeaders: [
1866
+ {
1867
+ value: response.headers.get("opc-work-request-id"),
1868
+ key: "opcWorkRequestId",
1869
+ dataType: "string"
1870
+ },
1871
+ {
1872
+ value: response.headers.get("opc-request-id"),
1873
+ key: "opcRequestId",
1874
+ dataType: "string"
1875
+ }
1876
+ ]
1877
+ });
1878
+ return sdkResponse;
1879
+ }
1880
+ catch (err) {
1881
+ throw err;
1882
+ }
1883
+ });
1884
+ }
1885
+ /**
1886
+ * Updates a certificate with the given identifier
1887
+ * This operation does not retry by default if the user has not defined a retry configuration.
1888
+ * @param UpdateCertificateRequest
1889
+ * @return UpdateCertificateResponse
1890
+ * @throws OciError when an error occurs
1891
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
1892
+ */
1893
+ updateCertificate(updateCertificateRequest) {
1894
+ return __awaiter(this, void 0, void 0, function* () {
1895
+ if (this.logger)
1896
+ this.logger.debug("Calling operation ApiGatewayClient#updateCertificate.");
1897
+ const operationName = "updateCertificate";
1898
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/UpdateCertificate";
1899
+ const pathParams = {
1900
+ "{certificateId}": updateCertificateRequest.certificateId
1901
+ };
1902
+ const queryParams = {
1903
+ "isLockOverride": updateCertificateRequest.isLockOverride
1904
+ };
1905
+ let headerParams = {
1906
+ "Content-Type": common.Constants.APPLICATION_JSON,
1907
+ "if-match": updateCertificateRequest.ifMatch,
1908
+ "opc-request-id": updateCertificateRequest.opcRequestId
1909
+ };
1910
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1911
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateCertificateRequest.retryConfiguration, specRetryConfiguration);
1912
+ if (this.logger)
1913
+ retrier.logger = this.logger;
1914
+ const request = yield oci_common_1.composeRequest({
1915
+ baseEndpoint: this._endpoint,
1916
+ defaultHeaders: this._defaultHeaders,
1917
+ path: "/certificates/{certificateId}",
1918
+ method: "PUT",
1919
+ bodyContent: common.ObjectSerializer.serialize(updateCertificateRequest.updateCertificateDetails, "UpdateCertificateDetails", model.UpdateCertificateDetails.getJsonObj),
1920
+ pathParams: pathParams,
1921
+ headerParams: headerParams,
1922
+ queryParams: queryParams
1923
+ });
1924
+ try {
1925
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1926
+ const sdkResponse = oci_common_1.composeResponse({
1927
+ responseObject: {},
1928
+ responseHeaders: [
1929
+ {
1930
+ value: response.headers.get("opc-work-request-id"),
1931
+ key: "opcWorkRequestId",
1932
+ dataType: "string"
1933
+ },
1934
+ {
1935
+ value: response.headers.get("opc-request-id"),
1936
+ key: "opcRequestId",
1937
+ dataType: "string"
1938
+ }
1939
+ ]
1940
+ });
1941
+ return sdkResponse;
1942
+ }
1943
+ catch (err) {
1944
+ throw err;
1945
+ }
1946
+ });
1947
+ }
1948
+ /**
1949
+ * Updates the SDK with the given identifier.
1950
+ * This operation does not retry by default if the user has not defined a retry configuration.
1951
+ * @param UpdateSdkRequest
1952
+ * @return UpdateSdkResponse
1953
+ * @throws OciError when an error occurs
1954
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
1955
+ */
1956
+ updateSdk(updateSdkRequest) {
1957
+ return __awaiter(this, void 0, void 0, function* () {
1958
+ if (this.logger)
1959
+ this.logger.debug("Calling operation ApiGatewayClient#updateSdk.");
1960
+ const operationName = "updateSdk";
1961
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/UpdateSdk";
1962
+ const pathParams = {
1963
+ "{sdkId}": updateSdkRequest.sdkId
1964
+ };
1965
+ const queryParams = {
1966
+ "isLockOverride": updateSdkRequest.isLockOverride
1967
+ };
1968
+ let headerParams = {
1969
+ "Content-Type": common.Constants.APPLICATION_JSON,
1970
+ "if-match": updateSdkRequest.ifMatch,
1971
+ "opc-request-id": updateSdkRequest.opcRequestId
1972
+ };
1973
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1974
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSdkRequest.retryConfiguration, specRetryConfiguration);
1975
+ if (this.logger)
1976
+ retrier.logger = this.logger;
1977
+ const request = yield oci_common_1.composeRequest({
1978
+ baseEndpoint: this._endpoint,
1979
+ defaultHeaders: this._defaultHeaders,
1980
+ path: "/sdks/{sdkId}",
1981
+ method: "PUT",
1982
+ bodyContent: common.ObjectSerializer.serialize(updateSdkRequest.updateSdkDetails, "UpdateSdkDetails", model.UpdateSdkDetails.getJsonObj),
1983
+ pathParams: pathParams,
1984
+ headerParams: headerParams,
1985
+ queryParams: queryParams
1986
+ });
1987
+ try {
1988
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1989
+ const sdkResponse = oci_common_1.composeResponse({
1990
+ responseObject: {},
1991
+ responseHeaders: [
1992
+ {
1993
+ value: response.headers.get("opc-request-id"),
1994
+ key: "opcRequestId",
1995
+ dataType: "string"
1996
+ }
1997
+ ]
1998
+ });
1999
+ return sdkResponse;
2000
+ }
2001
+ catch (err) {
2002
+ throw err;
2003
+ }
2004
+ });
2005
+ }
2006
+ }
2007
+ exports.ApiGatewayClient = ApiGatewayClient;
2008
+ ApiGatewayClient.serviceEndpointTemplate = "https://apigateway.{region}.oci.{secondLevelDomain}";
2009
+ ApiGatewayClient.endpointServiceName = "";
2010
+ var DeploymentApiKeys;
2011
+ (function (DeploymentApiKeys) {
2012
+ })(DeploymentApiKeys = exports.DeploymentApiKeys || (exports.DeploymentApiKeys = {}));
1607
2013
  /**
1608
2014
  * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
1609
2015
  */
@@ -1759,6 +2165,71 @@ class DeploymentClient {
1759
2165
  this.shutdownCircuitBreaker();
1760
2166
  this.closeProvider();
1761
2167
  }
2168
+ /**
2169
+ * Adds a lock to a Deployment resource.
2170
+ * This operation does not retry by default if the user has not defined a retry configuration.
2171
+ * @param AddDeploymentLockRequest
2172
+ * @return AddDeploymentLockResponse
2173
+ * @throws OciError when an error occurs
2174
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/AddDeploymentLock.ts.html |here} to see how to use AddDeploymentLock API.
2175
+ */
2176
+ addDeploymentLock(addDeploymentLockRequest) {
2177
+ return __awaiter(this, void 0, void 0, function* () {
2178
+ if (this.logger)
2179
+ this.logger.debug("Calling operation DeploymentClient#addDeploymentLock.");
2180
+ const operationName = "addDeploymentLock";
2181
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/AddDeploymentLock";
2182
+ const pathParams = {
2183
+ "{deploymentId}": addDeploymentLockRequest.deploymentId
2184
+ };
2185
+ const queryParams = {};
2186
+ let headerParams = {
2187
+ "Content-Type": common.Constants.APPLICATION_JSON,
2188
+ "opc-request-id": addDeploymentLockRequest.opcRequestId,
2189
+ "if-match": addDeploymentLockRequest.ifMatch
2190
+ };
2191
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2192
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addDeploymentLockRequest.retryConfiguration, specRetryConfiguration);
2193
+ if (this.logger)
2194
+ retrier.logger = this.logger;
2195
+ const request = yield oci_common_1.composeRequest({
2196
+ baseEndpoint: this._endpoint,
2197
+ defaultHeaders: this._defaultHeaders,
2198
+ path: "/deployments/{deploymentId}/actions/addLock",
2199
+ method: "POST",
2200
+ bodyContent: common.ObjectSerializer.serialize(addDeploymentLockRequest.addResourceLockDetails, "AddResourceLockDetails", model.AddResourceLockDetails.getJsonObj),
2201
+ pathParams: pathParams,
2202
+ headerParams: headerParams,
2203
+ queryParams: queryParams
2204
+ });
2205
+ try {
2206
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2207
+ const sdkResponse = oci_common_1.composeResponse({
2208
+ responseObject: {},
2209
+ body: yield response.json(),
2210
+ bodyKey: "deployment",
2211
+ bodyModel: model.Deployment,
2212
+ type: "model.Deployment",
2213
+ responseHeaders: [
2214
+ {
2215
+ value: response.headers.get("opc-request-id"),
2216
+ key: "opcRequestId",
2217
+ dataType: "string"
2218
+ },
2219
+ {
2220
+ value: response.headers.get("etag"),
2221
+ key: "etag",
2222
+ dataType: "string"
2223
+ }
2224
+ ]
2225
+ });
2226
+ return sdkResponse;
2227
+ }
2228
+ catch (err) {
2229
+ throw err;
2230
+ }
2231
+ });
2232
+ }
1762
2233
  /**
1763
2234
  * Changes the deployment compartment.
1764
2235
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -1776,7 +2247,9 @@ class DeploymentClient {
1776
2247
  const pathParams = {
1777
2248
  "{deploymentId}": changeDeploymentCompartmentRequest.deploymentId
1778
2249
  };
1779
- const queryParams = {};
2250
+ const queryParams = {
2251
+ "isLockOverride": changeDeploymentCompartmentRequest.isLockOverride
2252
+ };
1780
2253
  let headerParams = {
1781
2254
  "Content-Type": common.Constants.APPLICATION_JSON,
1782
2255
  "opc-retry-token": changeDeploymentCompartmentRequest.opcRetryToken,
@@ -1912,7 +2385,9 @@ class DeploymentClient {
1912
2385
  const pathParams = {
1913
2386
  "{deploymentId}": deleteDeploymentRequest.deploymentId
1914
2387
  };
1915
- const queryParams = {};
2388
+ const queryParams = {
2389
+ "isLockOverride": deleteDeploymentRequest.isLockOverride
2390
+ };
1916
2391
  let headerParams = {
1917
2392
  "Content-Type": common.Constants.APPLICATION_JSON,
1918
2393
  "if-match": deleteDeploymentRequest.ifMatch,
@@ -2094,6 +2569,71 @@ class DeploymentClient {
2094
2569
  }
2095
2570
  });
2096
2571
  }
2572
+ /**
2573
+ * Removes a lock from a Deployment resource.
2574
+ * This operation does not retry by default if the user has not defined a retry configuration.
2575
+ * @param RemoveDeploymentLockRequest
2576
+ * @return RemoveDeploymentLockResponse
2577
+ * @throws OciError when an error occurs
2578
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/RemoveDeploymentLock.ts.html |here} to see how to use RemoveDeploymentLock API.
2579
+ */
2580
+ removeDeploymentLock(removeDeploymentLockRequest) {
2581
+ return __awaiter(this, void 0, void 0, function* () {
2582
+ if (this.logger)
2583
+ this.logger.debug("Calling operation DeploymentClient#removeDeploymentLock.");
2584
+ const operationName = "removeDeploymentLock";
2585
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/RemoveDeploymentLock";
2586
+ const pathParams = {
2587
+ "{deploymentId}": removeDeploymentLockRequest.deploymentId
2588
+ };
2589
+ const queryParams = {};
2590
+ let headerParams = {
2591
+ "Content-Type": common.Constants.APPLICATION_JSON,
2592
+ "opc-request-id": removeDeploymentLockRequest.opcRequestId,
2593
+ "if-match": removeDeploymentLockRequest.ifMatch
2594
+ };
2595
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2596
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeDeploymentLockRequest.retryConfiguration, specRetryConfiguration);
2597
+ if (this.logger)
2598
+ retrier.logger = this.logger;
2599
+ const request = yield oci_common_1.composeRequest({
2600
+ baseEndpoint: this._endpoint,
2601
+ defaultHeaders: this._defaultHeaders,
2602
+ path: "/deployments/{deploymentId}/actions/removeLock",
2603
+ method: "POST",
2604
+ bodyContent: common.ObjectSerializer.serialize(removeDeploymentLockRequest.removeResourceLockDetails, "RemoveResourceLockDetails", model.RemoveResourceLockDetails.getJsonObj),
2605
+ pathParams: pathParams,
2606
+ headerParams: headerParams,
2607
+ queryParams: queryParams
2608
+ });
2609
+ try {
2610
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2611
+ const sdkResponse = oci_common_1.composeResponse({
2612
+ responseObject: {},
2613
+ body: yield response.json(),
2614
+ bodyKey: "deployment",
2615
+ bodyModel: model.Deployment,
2616
+ type: "model.Deployment",
2617
+ responseHeaders: [
2618
+ {
2619
+ value: response.headers.get("opc-request-id"),
2620
+ key: "opcRequestId",
2621
+ dataType: "string"
2622
+ },
2623
+ {
2624
+ value: response.headers.get("etag"),
2625
+ key: "etag",
2626
+ dataType: "string"
2627
+ }
2628
+ ]
2629
+ });
2630
+ return sdkResponse;
2631
+ }
2632
+ catch (err) {
2633
+ throw err;
2634
+ }
2635
+ });
2636
+ }
2097
2637
  /**
2098
2638
  * Updates the deployment with the given identifier.
2099
2639
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -2111,7 +2651,9 @@ class DeploymentClient {
2111
2651
  const pathParams = {
2112
2652
  "{deploymentId}": updateDeploymentRequest.deploymentId
2113
2653
  };
2114
- const queryParams = {};
2654
+ const queryParams = {
2655
+ "isLockOverride": updateDeploymentRequest.isLockOverride
2656
+ };
2115
2657
  let headerParams = {
2116
2658
  "Content-Type": common.Constants.APPLICATION_JSON,
2117
2659
  "if-match": updateDeploymentRequest.ifMatch,
@@ -2317,6 +2859,71 @@ class GatewayClient {
2317
2859
  this.shutdownCircuitBreaker();
2318
2860
  this.closeProvider();
2319
2861
  }
2862
+ /**
2863
+ * Adds a lock to a Gateway resource.
2864
+ * This operation does not retry by default if the user has not defined a retry configuration.
2865
+ * @param AddGatewayLockRequest
2866
+ * @return AddGatewayLockResponse
2867
+ * @throws OciError when an error occurs
2868
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/AddGatewayLock.ts.html |here} to see how to use AddGatewayLock API.
2869
+ */
2870
+ addGatewayLock(addGatewayLockRequest) {
2871
+ return __awaiter(this, void 0, void 0, function* () {
2872
+ if (this.logger)
2873
+ this.logger.debug("Calling operation GatewayClient#addGatewayLock.");
2874
+ const operationName = "addGatewayLock";
2875
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/AddGatewayLock";
2876
+ const pathParams = {
2877
+ "{gatewayId}": addGatewayLockRequest.gatewayId
2878
+ };
2879
+ const queryParams = {};
2880
+ let headerParams = {
2881
+ "Content-Type": common.Constants.APPLICATION_JSON,
2882
+ "opc-request-id": addGatewayLockRequest.opcRequestId,
2883
+ "if-match": addGatewayLockRequest.ifMatch
2884
+ };
2885
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2886
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addGatewayLockRequest.retryConfiguration, specRetryConfiguration);
2887
+ if (this.logger)
2888
+ retrier.logger = this.logger;
2889
+ const request = yield oci_common_1.composeRequest({
2890
+ baseEndpoint: this._endpoint,
2891
+ defaultHeaders: this._defaultHeaders,
2892
+ path: "/gateways/{gatewayId}/actions/addLock",
2893
+ method: "POST",
2894
+ bodyContent: common.ObjectSerializer.serialize(addGatewayLockRequest.addResourceLockDetails, "AddResourceLockDetails", model.AddResourceLockDetails.getJsonObj),
2895
+ pathParams: pathParams,
2896
+ headerParams: headerParams,
2897
+ queryParams: queryParams
2898
+ });
2899
+ try {
2900
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2901
+ const sdkResponse = oci_common_1.composeResponse({
2902
+ responseObject: {},
2903
+ body: yield response.json(),
2904
+ bodyKey: "gateway",
2905
+ bodyModel: model.Gateway,
2906
+ type: "model.Gateway",
2907
+ responseHeaders: [
2908
+ {
2909
+ value: response.headers.get("opc-request-id"),
2910
+ key: "opcRequestId",
2911
+ dataType: "string"
2912
+ },
2913
+ {
2914
+ value: response.headers.get("etag"),
2915
+ key: "etag",
2916
+ dataType: "string"
2917
+ }
2918
+ ]
2919
+ });
2920
+ return sdkResponse;
2921
+ }
2922
+ catch (err) {
2923
+ throw err;
2924
+ }
2925
+ });
2926
+ }
2320
2927
  /**
2321
2928
  * Changes the gateway compartment.
2322
2929
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -2334,7 +2941,9 @@ class GatewayClient {
2334
2941
  const pathParams = {
2335
2942
  "{gatewayId}": changeGatewayCompartmentRequest.gatewayId
2336
2943
  };
2337
- const queryParams = {};
2944
+ const queryParams = {
2945
+ "isLockOverride": changeGatewayCompartmentRequest.isLockOverride
2946
+ };
2338
2947
  let headerParams = {
2339
2948
  "Content-Type": common.Constants.APPLICATION_JSON,
2340
2949
  "opc-retry-token": changeGatewayCompartmentRequest.opcRetryToken,
@@ -2470,7 +3079,9 @@ class GatewayClient {
2470
3079
  const pathParams = {
2471
3080
  "{gatewayId}": deleteGatewayRequest.gatewayId
2472
3081
  };
2473
- const queryParams = {};
3082
+ const queryParams = {
3083
+ "isLockOverride": deleteGatewayRequest.isLockOverride
3084
+ };
2474
3085
  let headerParams = {
2475
3086
  "Content-Type": common.Constants.APPLICATION_JSON,
2476
3087
  "if-match": deleteGatewayRequest.ifMatch,
@@ -2604,17 +3215,87 @@ class GatewayClient {
2604
3215
  };
2605
3216
  let headerParams = {
2606
3217
  "Content-Type": common.Constants.APPLICATION_JSON,
2607
- "opc-request-id": listGatewaysRequest.opcRequestId
3218
+ "opc-request-id": listGatewaysRequest.opcRequestId
3219
+ };
3220
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3221
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listGatewaysRequest.retryConfiguration, specRetryConfiguration);
3222
+ if (this.logger)
3223
+ retrier.logger = this.logger;
3224
+ const request = yield oci_common_1.composeRequest({
3225
+ baseEndpoint: this._endpoint,
3226
+ defaultHeaders: this._defaultHeaders,
3227
+ path: "/gateways",
3228
+ method: "GET",
3229
+ pathParams: pathParams,
3230
+ headerParams: headerParams,
3231
+ queryParams: queryParams
3232
+ });
3233
+ try {
3234
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3235
+ const sdkResponse = oci_common_1.composeResponse({
3236
+ responseObject: {},
3237
+ body: yield response.json(),
3238
+ bodyKey: "gatewayCollection",
3239
+ bodyModel: model.GatewayCollection,
3240
+ type: "model.GatewayCollection",
3241
+ responseHeaders: [
3242
+ {
3243
+ value: response.headers.get("opc-request-id"),
3244
+ key: "opcRequestId",
3245
+ dataType: "string"
3246
+ },
3247
+ {
3248
+ value: response.headers.get("opc-next-page"),
3249
+ key: "opcNextPage",
3250
+ dataType: "string"
3251
+ },
3252
+ {
3253
+ value: response.headers.get("opc-prev-page"),
3254
+ key: "opcPrevPage",
3255
+ dataType: "string"
3256
+ }
3257
+ ]
3258
+ });
3259
+ return sdkResponse;
3260
+ }
3261
+ catch (err) {
3262
+ throw err;
3263
+ }
3264
+ });
3265
+ }
3266
+ /**
3267
+ * Removes a lock from a Gateway resource.
3268
+ * This operation does not retry by default if the user has not defined a retry configuration.
3269
+ * @param RemoveGatewayLockRequest
3270
+ * @return RemoveGatewayLockResponse
3271
+ * @throws OciError when an error occurs
3272
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/RemoveGatewayLock.ts.html |here} to see how to use RemoveGatewayLock API.
3273
+ */
3274
+ removeGatewayLock(removeGatewayLockRequest) {
3275
+ return __awaiter(this, void 0, void 0, function* () {
3276
+ if (this.logger)
3277
+ this.logger.debug("Calling operation GatewayClient#removeGatewayLock.");
3278
+ const operationName = "removeGatewayLock";
3279
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/RemoveGatewayLock";
3280
+ const pathParams = {
3281
+ "{gatewayId}": removeGatewayLockRequest.gatewayId
3282
+ };
3283
+ const queryParams = {};
3284
+ let headerParams = {
3285
+ "Content-Type": common.Constants.APPLICATION_JSON,
3286
+ "opc-request-id": removeGatewayLockRequest.opcRequestId,
3287
+ "if-match": removeGatewayLockRequest.ifMatch
2608
3288
  };
2609
- const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2610
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listGatewaysRequest.retryConfiguration, specRetryConfiguration);
3289
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3290
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeGatewayLockRequest.retryConfiguration, specRetryConfiguration);
2611
3291
  if (this.logger)
2612
3292
  retrier.logger = this.logger;
2613
3293
  const request = yield oci_common_1.composeRequest({
2614
3294
  baseEndpoint: this._endpoint,
2615
3295
  defaultHeaders: this._defaultHeaders,
2616
- path: "/gateways",
2617
- method: "GET",
3296
+ path: "/gateways/{gatewayId}/actions/removeLock",
3297
+ method: "POST",
3298
+ bodyContent: common.ObjectSerializer.serialize(removeGatewayLockRequest.removeResourceLockDetails, "RemoveResourceLockDetails", model.RemoveResourceLockDetails.getJsonObj),
2618
3299
  pathParams: pathParams,
2619
3300
  headerParams: headerParams,
2620
3301
  queryParams: queryParams
@@ -2624,9 +3305,9 @@ class GatewayClient {
2624
3305
  const sdkResponse = oci_common_1.composeResponse({
2625
3306
  responseObject: {},
2626
3307
  body: yield response.json(),
2627
- bodyKey: "gatewayCollection",
2628
- bodyModel: model.GatewayCollection,
2629
- type: "model.GatewayCollection",
3308
+ bodyKey: "gateway",
3309
+ bodyModel: model.Gateway,
3310
+ type: "model.Gateway",
2630
3311
  responseHeaders: [
2631
3312
  {
2632
3313
  value: response.headers.get("opc-request-id"),
@@ -2634,13 +3315,8 @@ class GatewayClient {
2634
3315
  dataType: "string"
2635
3316
  },
2636
3317
  {
2637
- value: response.headers.get("opc-next-page"),
2638
- key: "opcNextPage",
2639
- dataType: "string"
2640
- },
2641
- {
2642
- value: response.headers.get("opc-prev-page"),
2643
- key: "opcPrevPage",
3318
+ value: response.headers.get("etag"),
3319
+ key: "etag",
2644
3320
  dataType: "string"
2645
3321
  }
2646
3322
  ]
@@ -2669,7 +3345,9 @@ class GatewayClient {
2669
3345
  const pathParams = {
2670
3346
  "{gatewayId}": updateGatewayRequest.gatewayId
2671
3347
  };
2672
- const queryParams = {};
3348
+ const queryParams = {
3349
+ "isLockOverride": updateGatewayRequest.isLockOverride
3350
+ };
2673
3351
  let headerParams = {
2674
3352
  "Content-Type": common.Constants.APPLICATION_JSON,
2675
3353
  "if-match": updateGatewayRequest.ifMatch,
@@ -2875,6 +3553,71 @@ class SubscribersClient {
2875
3553
  this.shutdownCircuitBreaker();
2876
3554
  this.closeProvider();
2877
3555
  }
3556
+ /**
3557
+ * Adds a lock to a Subscriber resource.
3558
+ * This operation does not retry by default if the user has not defined a retry configuration.
3559
+ * @param AddSubscriberLockRequest
3560
+ * @return AddSubscriberLockResponse
3561
+ * @throws OciError when an error occurs
3562
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/AddSubscriberLock.ts.html |here} to see how to use AddSubscriberLock API.
3563
+ */
3564
+ addSubscriberLock(addSubscriberLockRequest) {
3565
+ return __awaiter(this, void 0, void 0, function* () {
3566
+ if (this.logger)
3567
+ this.logger.debug("Calling operation SubscribersClient#addSubscriberLock.");
3568
+ const operationName = "addSubscriberLock";
3569
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/AddSubscriberLock";
3570
+ const pathParams = {
3571
+ "{subscriberId}": addSubscriberLockRequest.subscriberId
3572
+ };
3573
+ const queryParams = {};
3574
+ let headerParams = {
3575
+ "Content-Type": common.Constants.APPLICATION_JSON,
3576
+ "opc-request-id": addSubscriberLockRequest.opcRequestId,
3577
+ "if-match": addSubscriberLockRequest.ifMatch
3578
+ };
3579
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3580
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addSubscriberLockRequest.retryConfiguration, specRetryConfiguration);
3581
+ if (this.logger)
3582
+ retrier.logger = this.logger;
3583
+ const request = yield oci_common_1.composeRequest({
3584
+ baseEndpoint: this._endpoint,
3585
+ defaultHeaders: this._defaultHeaders,
3586
+ path: "/subscribers/{subscriberId}/actions/addLock",
3587
+ method: "POST",
3588
+ bodyContent: common.ObjectSerializer.serialize(addSubscriberLockRequest.addResourceLockDetails, "AddResourceLockDetails", model.AddResourceLockDetails.getJsonObj),
3589
+ pathParams: pathParams,
3590
+ headerParams: headerParams,
3591
+ queryParams: queryParams
3592
+ });
3593
+ try {
3594
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3595
+ const sdkResponse = oci_common_1.composeResponse({
3596
+ responseObject: {},
3597
+ body: yield response.json(),
3598
+ bodyKey: "subscriber",
3599
+ bodyModel: model.Subscriber,
3600
+ type: "model.Subscriber",
3601
+ responseHeaders: [
3602
+ {
3603
+ value: response.headers.get("opc-request-id"),
3604
+ key: "opcRequestId",
3605
+ dataType: "string"
3606
+ },
3607
+ {
3608
+ value: response.headers.get("etag"),
3609
+ key: "etag",
3610
+ dataType: "string"
3611
+ }
3612
+ ]
3613
+ });
3614
+ return sdkResponse;
3615
+ }
3616
+ catch (err) {
3617
+ throw err;
3618
+ }
3619
+ });
3620
+ }
2878
3621
  /**
2879
3622
  * Changes the subscriber compartment.
2880
3623
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -2892,7 +3635,9 @@ class SubscribersClient {
2892
3635
  const pathParams = {
2893
3636
  "{subscriberId}": changeSubscriberCompartmentRequest.subscriberId
2894
3637
  };
2895
- const queryParams = {};
3638
+ const queryParams = {
3639
+ "isLockOverride": changeSubscriberCompartmentRequest.isLockOverride
3640
+ };
2896
3641
  let headerParams = {
2897
3642
  "Content-Type": common.Constants.APPLICATION_JSON,
2898
3643
  "opc-retry-token": changeSubscriberCompartmentRequest.opcRetryToken,
@@ -3027,7 +3772,9 @@ class SubscribersClient {
3027
3772
  const pathParams = {
3028
3773
  "{subscriberId}": deleteSubscriberRequest.subscriberId
3029
3774
  };
3030
- const queryParams = {};
3775
+ const queryParams = {
3776
+ "isLockOverride": deleteSubscriberRequest.isLockOverride
3777
+ };
3031
3778
  let headerParams = {
3032
3779
  "Content-Type": common.Constants.APPLICATION_JSON,
3033
3780
  "if-match": deleteSubscriberRequest.ifMatch,
@@ -3207,6 +3954,71 @@ class SubscribersClient {
3207
3954
  }
3208
3955
  });
3209
3956
  }
3957
+ /**
3958
+ * Removes a lock from a Subscriber resource.
3959
+ * This operation does not retry by default if the user has not defined a retry configuration.
3960
+ * @param RemoveSubscriberLockRequest
3961
+ * @return RemoveSubscriberLockResponse
3962
+ * @throws OciError when an error occurs
3963
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/RemoveSubscriberLock.ts.html |here} to see how to use RemoveSubscriberLock API.
3964
+ */
3965
+ removeSubscriberLock(removeSubscriberLockRequest) {
3966
+ return __awaiter(this, void 0, void 0, function* () {
3967
+ if (this.logger)
3968
+ this.logger.debug("Calling operation SubscribersClient#removeSubscriberLock.");
3969
+ const operationName = "removeSubscriberLock";
3970
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/RemoveSubscriberLock";
3971
+ const pathParams = {
3972
+ "{subscriberId}": removeSubscriberLockRequest.subscriberId
3973
+ };
3974
+ const queryParams = {};
3975
+ let headerParams = {
3976
+ "Content-Type": common.Constants.APPLICATION_JSON,
3977
+ "opc-request-id": removeSubscriberLockRequest.opcRequestId,
3978
+ "if-match": removeSubscriberLockRequest.ifMatch
3979
+ };
3980
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3981
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeSubscriberLockRequest.retryConfiguration, specRetryConfiguration);
3982
+ if (this.logger)
3983
+ retrier.logger = this.logger;
3984
+ const request = yield oci_common_1.composeRequest({
3985
+ baseEndpoint: this._endpoint,
3986
+ defaultHeaders: this._defaultHeaders,
3987
+ path: "/subscribers/{subscriberId}/actions/removeLock",
3988
+ method: "POST",
3989
+ bodyContent: common.ObjectSerializer.serialize(removeSubscriberLockRequest.removeResourceLockDetails, "RemoveResourceLockDetails", model.RemoveResourceLockDetails.getJsonObj),
3990
+ pathParams: pathParams,
3991
+ headerParams: headerParams,
3992
+ queryParams: queryParams
3993
+ });
3994
+ try {
3995
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3996
+ const sdkResponse = oci_common_1.composeResponse({
3997
+ responseObject: {},
3998
+ body: yield response.json(),
3999
+ bodyKey: "subscriber",
4000
+ bodyModel: model.Subscriber,
4001
+ type: "model.Subscriber",
4002
+ responseHeaders: [
4003
+ {
4004
+ value: response.headers.get("opc-request-id"),
4005
+ key: "opcRequestId",
4006
+ dataType: "string"
4007
+ },
4008
+ {
4009
+ value: response.headers.get("etag"),
4010
+ key: "etag",
4011
+ dataType: "string"
4012
+ }
4013
+ ]
4014
+ });
4015
+ return sdkResponse;
4016
+ }
4017
+ catch (err) {
4018
+ throw err;
4019
+ }
4020
+ });
4021
+ }
3210
4022
  /**
3211
4023
  * Updates the subscriber with the given identifier.
3212
4024
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -3224,7 +4036,9 @@ class SubscribersClient {
3224
4036
  const pathParams = {
3225
4037
  "{subscriberId}": updateSubscriberRequest.subscriberId
3226
4038
  };
3227
- const queryParams = {};
4039
+ const queryParams = {
4040
+ "isLockOverride": updateSubscriberRequest.isLockOverride
4041
+ };
3228
4042
  let headerParams = {
3229
4043
  "Content-Type": common.Constants.APPLICATION_JSON,
3230
4044
  "if-match": updateSubscriberRequest.ifMatch,
@@ -3430,6 +4244,71 @@ class UsagePlansClient {
3430
4244
  this.shutdownCircuitBreaker();
3431
4245
  this.closeProvider();
3432
4246
  }
4247
+ /**
4248
+ * Adds a lock to a UsagePlan resource.
4249
+ * This operation does not retry by default if the user has not defined a retry configuration.
4250
+ * @param AddUsagePlanLockRequest
4251
+ * @return AddUsagePlanLockResponse
4252
+ * @throws OciError when an error occurs
4253
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/AddUsagePlanLock.ts.html |here} to see how to use AddUsagePlanLock API.
4254
+ */
4255
+ addUsagePlanLock(addUsagePlanLockRequest) {
4256
+ return __awaiter(this, void 0, void 0, function* () {
4257
+ if (this.logger)
4258
+ this.logger.debug("Calling operation UsagePlansClient#addUsagePlanLock.");
4259
+ const operationName = "addUsagePlanLock";
4260
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/AddUsagePlanLock";
4261
+ const pathParams = {
4262
+ "{usagePlanId}": addUsagePlanLockRequest.usagePlanId
4263
+ };
4264
+ const queryParams = {};
4265
+ let headerParams = {
4266
+ "Content-Type": common.Constants.APPLICATION_JSON,
4267
+ "opc-request-id": addUsagePlanLockRequest.opcRequestId,
4268
+ "if-match": addUsagePlanLockRequest.ifMatch
4269
+ };
4270
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4271
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addUsagePlanLockRequest.retryConfiguration, specRetryConfiguration);
4272
+ if (this.logger)
4273
+ retrier.logger = this.logger;
4274
+ const request = yield oci_common_1.composeRequest({
4275
+ baseEndpoint: this._endpoint,
4276
+ defaultHeaders: this._defaultHeaders,
4277
+ path: "/usagePlans/{usagePlanId}/actions/addLock",
4278
+ method: "POST",
4279
+ bodyContent: common.ObjectSerializer.serialize(addUsagePlanLockRequest.addResourceLockDetails, "AddResourceLockDetails", model.AddResourceLockDetails.getJsonObj),
4280
+ pathParams: pathParams,
4281
+ headerParams: headerParams,
4282
+ queryParams: queryParams
4283
+ });
4284
+ try {
4285
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
4286
+ const sdkResponse = oci_common_1.composeResponse({
4287
+ responseObject: {},
4288
+ body: yield response.json(),
4289
+ bodyKey: "usagePlan",
4290
+ bodyModel: model.UsagePlan,
4291
+ type: "model.UsagePlan",
4292
+ responseHeaders: [
4293
+ {
4294
+ value: response.headers.get("opc-request-id"),
4295
+ key: "opcRequestId",
4296
+ dataType: "string"
4297
+ },
4298
+ {
4299
+ value: response.headers.get("etag"),
4300
+ key: "etag",
4301
+ dataType: "string"
4302
+ }
4303
+ ]
4304
+ });
4305
+ return sdkResponse;
4306
+ }
4307
+ catch (err) {
4308
+ throw err;
4309
+ }
4310
+ });
4311
+ }
3433
4312
  /**
3434
4313
  * Changes the usage plan compartment.
3435
4314
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -3447,7 +4326,9 @@ class UsagePlansClient {
3447
4326
  const pathParams = {
3448
4327
  "{usagePlanId}": changeUsagePlanCompartmentRequest.usagePlanId
3449
4328
  };
3450
- const queryParams = {};
4329
+ const queryParams = {
4330
+ "isLockOverride": changeUsagePlanCompartmentRequest.isLockOverride
4331
+ };
3451
4332
  let headerParams = {
3452
4333
  "Content-Type": common.Constants.APPLICATION_JSON,
3453
4334
  "opc-retry-token": changeUsagePlanCompartmentRequest.opcRetryToken,
@@ -3582,7 +4463,9 @@ class UsagePlansClient {
3582
4463
  const pathParams = {
3583
4464
  "{usagePlanId}": deleteUsagePlanRequest.usagePlanId
3584
4465
  };
3585
- const queryParams = {};
4466
+ const queryParams = {
4467
+ "isLockOverride": deleteUsagePlanRequest.isLockOverride
4468
+ };
3586
4469
  let headerParams = {
3587
4470
  "Content-Type": common.Constants.APPLICATION_JSON,
3588
4471
  "if-match": deleteUsagePlanRequest.ifMatch,
@@ -3762,6 +4645,71 @@ class UsagePlansClient {
3762
4645
  }
3763
4646
  });
3764
4647
  }
4648
+ /**
4649
+ * Removes a lock from a UsagePlan resource.
4650
+ * This operation does not retry by default if the user has not defined a retry configuration.
4651
+ * @param RemoveUsagePlanLockRequest
4652
+ * @return RemoveUsagePlanLockResponse
4653
+ * @throws OciError when an error occurs
4654
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apigateway/RemoveUsagePlanLock.ts.html |here} to see how to use RemoveUsagePlanLock API.
4655
+ */
4656
+ removeUsagePlanLock(removeUsagePlanLockRequest) {
4657
+ return __awaiter(this, void 0, void 0, function* () {
4658
+ if (this.logger)
4659
+ this.logger.debug("Calling operation UsagePlansClient#removeUsagePlanLock.");
4660
+ const operationName = "removeUsagePlanLock";
4661
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/RemoveUsagePlanLock";
4662
+ const pathParams = {
4663
+ "{usagePlanId}": removeUsagePlanLockRequest.usagePlanId
4664
+ };
4665
+ const queryParams = {};
4666
+ let headerParams = {
4667
+ "Content-Type": common.Constants.APPLICATION_JSON,
4668
+ "opc-request-id": removeUsagePlanLockRequest.opcRequestId,
4669
+ "if-match": removeUsagePlanLockRequest.ifMatch
4670
+ };
4671
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4672
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeUsagePlanLockRequest.retryConfiguration, specRetryConfiguration);
4673
+ if (this.logger)
4674
+ retrier.logger = this.logger;
4675
+ const request = yield oci_common_1.composeRequest({
4676
+ baseEndpoint: this._endpoint,
4677
+ defaultHeaders: this._defaultHeaders,
4678
+ path: "/usagePlans/{usagePlanId}/actions/removeLock",
4679
+ method: "POST",
4680
+ bodyContent: common.ObjectSerializer.serialize(removeUsagePlanLockRequest.removeResourceLockDetails, "RemoveResourceLockDetails", model.RemoveResourceLockDetails.getJsonObj),
4681
+ pathParams: pathParams,
4682
+ headerParams: headerParams,
4683
+ queryParams: queryParams
4684
+ });
4685
+ try {
4686
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
4687
+ const sdkResponse = oci_common_1.composeResponse({
4688
+ responseObject: {},
4689
+ body: yield response.json(),
4690
+ bodyKey: "usagePlan",
4691
+ bodyModel: model.UsagePlan,
4692
+ type: "model.UsagePlan",
4693
+ responseHeaders: [
4694
+ {
4695
+ value: response.headers.get("opc-request-id"),
4696
+ key: "opcRequestId",
4697
+ dataType: "string"
4698
+ },
4699
+ {
4700
+ value: response.headers.get("etag"),
4701
+ key: "etag",
4702
+ dataType: "string"
4703
+ }
4704
+ ]
4705
+ });
4706
+ return sdkResponse;
4707
+ }
4708
+ catch (err) {
4709
+ throw err;
4710
+ }
4711
+ });
4712
+ }
3765
4713
  /**
3766
4714
  * Updates the usage plan with the given identifier.
3767
4715
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -3779,7 +4727,9 @@ class UsagePlansClient {
3779
4727
  const pathParams = {
3780
4728
  "{usagePlanId}": updateUsagePlanRequest.usagePlanId
3781
4729
  };
3782
- const queryParams = {};
4730
+ const queryParams = {
4731
+ "isLockOverride": updateUsagePlanRequest.isLockOverride
4732
+ };
3783
4733
  let headerParams = {
3784
4734
  "Content-Type": common.Constants.APPLICATION_JSON,
3785
4735
  "if-match": updateUsagePlanRequest.ifMatch,