oci-apigateway 2.27.0 → 2.30.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 (198) hide show
  1. package/index.d.ts +6 -0
  2. package/index.js +7 -1
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +287 -61
  5. package/lib/client.js +1302 -222
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/api-specification-request-policies.d.ts +1 -0
  8. package/lib/model/api-specification-request-policies.js +5 -1
  9. package/lib/model/api-specification-request-policies.js.map +1 -1
  10. package/lib/model/change-subscriber-compartment-details.d.ts +30 -0
  11. package/lib/model/change-subscriber-compartment-details.js +32 -0
  12. package/lib/model/change-subscriber-compartment-details.js.map +1 -0
  13. package/lib/model/change-usage-plan-compartment-details.d.ts +30 -0
  14. package/lib/model/change-usage-plan-compartment-details.js +32 -0
  15. package/lib/model/change-usage-plan-compartment-details.js.map +1 -0
  16. package/lib/model/client-summary.d.ts +28 -0
  17. package/lib/model/client-summary.js +32 -0
  18. package/lib/model/client-summary.js.map +1 -0
  19. package/lib/model/client.d.ts +32 -0
  20. package/lib/model/client.js +32 -0
  21. package/lib/model/client.js.map +1 -0
  22. package/lib/model/create-deployment-details.d.ts +1 -1
  23. package/lib/model/create-subscriber-details.d.ts +73 -0
  24. package/lib/model/create-subscriber-details.js +64 -0
  25. package/lib/model/create-subscriber-details.js.map +1 -0
  26. package/lib/model/create-usage-plan-details.d.ts +68 -0
  27. package/lib/model/create-usage-plan-details.js +64 -0
  28. package/lib/model/create-usage-plan-details.js.map +1 -0
  29. package/lib/model/deployment.d.ts +1 -1
  30. package/lib/model/entitlement-summary.d.ts +39 -0
  31. package/lib/model/entitlement-summary.js +60 -0
  32. package/lib/model/entitlement-summary.js.map +1 -0
  33. package/lib/model/entitlement-target.d.ts +31 -0
  34. package/lib/model/entitlement-target.js +32 -0
  35. package/lib/model/entitlement-target.js.map +1 -0
  36. package/lib/model/entitlement.d.ts +44 -0
  37. package/lib/model/entitlement.js +70 -0
  38. package/lib/model/entitlement.js.map +1 -0
  39. package/lib/model/index.d.ts +40 -0
  40. package/lib/model/index.js +43 -3
  41. package/lib/model/index.js.map +1 -1
  42. package/lib/model/quota.d.ts +78 -0
  43. package/lib/model/quota.js +64 -0
  44. package/lib/model/quota.js.map +1 -0
  45. package/lib/model/rate-limit.d.ts +44 -0
  46. package/lib/model/rate-limit.js +41 -0
  47. package/lib/model/rate-limit.js.map +1 -0
  48. package/lib/model/subscriber-collection.d.ts +29 -0
  49. package/lib/model/subscriber-collection.js +64 -0
  50. package/lib/model/subscriber-collection.js.map +1 -0
  51. package/lib/model/subscriber-summary.d.ts +97 -0
  52. package/lib/model/subscriber-summary.js +64 -0
  53. package/lib/model/subscriber-summary.js.map +1 -0
  54. package/lib/model/subscriber.d.ts +111 -0
  55. package/lib/model/subscriber.js +78 -0
  56. package/lib/model/subscriber.js.map +1 -0
  57. package/lib/model/update-subscriber-details.d.ts +67 -0
  58. package/lib/model/update-subscriber-details.js +64 -0
  59. package/lib/model/update-subscriber-details.js.map +1 -0
  60. package/lib/model/update-usage-plan-details.d.ts +62 -0
  61. package/lib/model/update-usage-plan-details.js +64 -0
  62. package/lib/model/update-usage-plan-details.js.map +1 -0
  63. package/lib/model/usage-plan-collection.d.ts +29 -0
  64. package/lib/model/usage-plan-collection.js +64 -0
  65. package/lib/model/usage-plan-collection.js.map +1 -0
  66. package/lib/model/usage-plan-summary.d.ts +92 -0
  67. package/lib/model/usage-plan-summary.js +64 -0
  68. package/lib/model/usage-plan-summary.js.map +1 -0
  69. package/lib/model/usage-plan.d.ts +106 -0
  70. package/lib/model/usage-plan.js +78 -0
  71. package/lib/model/usage-plan.js.map +1 -0
  72. package/lib/model/usage-plans-policy.d.ts +34 -0
  73. package/lib/model/usage-plans-policy.js +32 -0
  74. package/lib/model/usage-plans-policy.js.map +1 -0
  75. package/lib/model/work-request.d.ts +6 -0
  76. package/lib/model/work-request.js +6 -0
  77. package/lib/model/work-request.js.map +1 -1
  78. package/lib/request/cancel-work-request-request.d.ts +1 -1
  79. package/lib/request/change-api-compartment-request.d.ts +1 -1
  80. package/lib/request/change-certificate-compartment-request.d.ts +1 -1
  81. package/lib/request/change-deployment-compartment-request.d.ts +1 -1
  82. package/lib/request/change-gateway-compartment-request.d.ts +1 -1
  83. package/lib/request/change-subscriber-compartment-request.d.ts +49 -0
  84. package/lib/request/change-subscriber-compartment-request.js +15 -0
  85. package/lib/request/change-subscriber-compartment-request.js.map +1 -0
  86. package/lib/request/change-usage-plan-compartment-request.d.ts +49 -0
  87. package/lib/request/change-usage-plan-compartment-request.js +15 -0
  88. package/lib/request/change-usage-plan-compartment-request.js.map +1 -0
  89. package/lib/request/create-api-request.d.ts +1 -1
  90. package/lib/request/create-certificate-request.d.ts +1 -1
  91. package/lib/request/create-deployment-request.d.ts +1 -1
  92. package/lib/request/create-gateway-request.d.ts +1 -1
  93. package/lib/request/create-sdk-request.d.ts +1 -1
  94. package/lib/request/create-subscriber-request.d.ts +36 -0
  95. package/lib/request/create-subscriber-request.js +15 -0
  96. package/lib/request/create-subscriber-request.js.map +1 -0
  97. package/lib/request/create-usage-plan-request.d.ts +36 -0
  98. package/lib/request/create-usage-plan-request.js +15 -0
  99. package/lib/request/create-usage-plan-request.js.map +1 -0
  100. package/lib/request/delete-api-request.d.ts +1 -1
  101. package/lib/request/delete-certificate-request.d.ts +1 -1
  102. package/lib/request/delete-deployment-request.d.ts +1 -1
  103. package/lib/request/delete-gateway-request.d.ts +1 -1
  104. package/lib/request/delete-sdk-request.d.ts +1 -1
  105. package/lib/request/delete-subscriber-request.d.ts +35 -0
  106. package/lib/request/delete-subscriber-request.js +15 -0
  107. package/lib/request/delete-subscriber-request.js.map +1 -0
  108. package/lib/request/delete-usage-plan-request.d.ts +35 -0
  109. package/lib/request/delete-usage-plan-request.js +15 -0
  110. package/lib/request/delete-usage-plan-request.js.map +1 -0
  111. package/lib/request/get-api-content-request.d.ts +1 -1
  112. package/lib/request/get-api-deployment-specification-request.d.ts +1 -1
  113. package/lib/request/get-api-request.d.ts +1 -1
  114. package/lib/request/get-api-validations-request.d.ts +1 -1
  115. package/lib/request/get-certificate-request.d.ts +1 -1
  116. package/lib/request/get-deployment-request.d.ts +1 -1
  117. package/lib/request/get-gateway-request.d.ts +1 -1
  118. package/lib/request/get-sdk-request.d.ts +1 -1
  119. package/lib/request/get-subscriber-request.d.ts +26 -0
  120. package/lib/request/get-subscriber-request.js +15 -0
  121. package/lib/request/get-subscriber-request.js.map +1 -0
  122. package/lib/request/get-usage-plan-request.d.ts +26 -0
  123. package/lib/request/get-usage-plan-request.js +15 -0
  124. package/lib/request/get-usage-plan-request.js.map +1 -0
  125. package/lib/request/get-work-request-request.d.ts +1 -1
  126. package/lib/request/index.d.ts +24 -0
  127. package/lib/request/index.js +5 -1
  128. package/lib/request/index.js.map +1 -1
  129. package/lib/request/list-apis-request.d.ts +1 -1
  130. package/lib/request/list-certificates-request.d.ts +1 -1
  131. package/lib/request/list-deployments-request.d.ts +1 -1
  132. package/lib/request/list-gateways-request.d.ts +1 -1
  133. package/lib/request/list-sdk-language-types-request.d.ts +1 -1
  134. package/lib/request/list-sdks-request.d.ts +1 -1
  135. package/lib/request/list-subscribers-request.d.ts +69 -0
  136. package/lib/request/list-subscribers-request.js +29 -0
  137. package/lib/request/list-subscribers-request.js.map +1 -0
  138. package/lib/request/list-usage-plans-request.d.ts +69 -0
  139. package/lib/request/list-usage-plans-request.js +29 -0
  140. package/lib/request/list-usage-plans-request.js.map +1 -0
  141. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  142. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  143. package/lib/request/list-work-requests-request.d.ts +1 -1
  144. package/lib/request/update-api-request.d.ts +1 -1
  145. package/lib/request/update-certificate-request.d.ts +1 -1
  146. package/lib/request/update-deployment-request.d.ts +1 -1
  147. package/lib/request/update-gateway-request.d.ts +1 -1
  148. package/lib/request/update-sdk-request.d.ts +1 -1
  149. package/lib/request/update-subscriber-request.d.ts +40 -0
  150. package/lib/request/update-subscriber-request.js +15 -0
  151. package/lib/request/update-subscriber-request.js.map +1 -0
  152. package/lib/request/update-usage-plan-request.d.ts +40 -0
  153. package/lib/request/update-usage-plan-request.js +15 -0
  154. package/lib/request/update-usage-plan-request.js.map +1 -0
  155. package/lib/response/change-subscriber-compartment-response.d.ts +29 -0
  156. package/lib/response/change-subscriber-compartment-response.js +15 -0
  157. package/lib/response/change-subscriber-compartment-response.js.map +1 -0
  158. package/lib/response/change-usage-plan-compartment-response.d.ts +29 -0
  159. package/lib/response/change-usage-plan-compartment-response.js +15 -0
  160. package/lib/response/change-usage-plan-compartment-response.js.map +1 -0
  161. package/lib/response/create-subscriber-response.d.ts +44 -0
  162. package/lib/response/create-subscriber-response.js +15 -0
  163. package/lib/response/create-subscriber-response.js.map +1 -0
  164. package/lib/response/create-usage-plan-response.d.ts +44 -0
  165. package/lib/response/create-usage-plan-response.js +15 -0
  166. package/lib/response/create-usage-plan-response.js.map +1 -0
  167. package/lib/response/delete-subscriber-response.d.ts +29 -0
  168. package/lib/response/delete-subscriber-response.js +15 -0
  169. package/lib/response/delete-subscriber-response.js.map +1 -0
  170. package/lib/response/delete-usage-plan-response.d.ts +29 -0
  171. package/lib/response/delete-usage-plan-response.js +15 -0
  172. package/lib/response/delete-usage-plan-response.js.map +1 -0
  173. package/lib/response/get-subscriber-response.d.ts +31 -0
  174. package/lib/response/get-subscriber-response.js +15 -0
  175. package/lib/response/get-subscriber-response.js.map +1 -0
  176. package/lib/response/get-usage-plan-response.d.ts +31 -0
  177. package/lib/response/get-usage-plan-response.js +15 -0
  178. package/lib/response/get-usage-plan-response.js.map +1 -0
  179. package/lib/response/index.d.ts +24 -0
  180. package/lib/response/list-subscribers-response.d.ts +42 -0
  181. package/lib/response/list-subscribers-response.js +15 -0
  182. package/lib/response/list-subscribers-response.js.map +1 -0
  183. package/lib/response/list-usage-plans-response.d.ts +42 -0
  184. package/lib/response/list-usage-plans-response.js +15 -0
  185. package/lib/response/list-usage-plans-response.js.map +1 -0
  186. package/lib/response/update-subscriber-response.d.ts +29 -0
  187. package/lib/response/update-subscriber-response.js +15 -0
  188. package/lib/response/update-subscriber-response.js.map +1 -0
  189. package/lib/response/update-usage-plan-response.d.ts +29 -0
  190. package/lib/response/update-usage-plan-response.js +15 -0
  191. package/lib/response/update-usage-plan-response.js.map +1 -0
  192. package/lib/subscribers-waiter.d.ts +32 -0
  193. package/lib/subscribers-waiter.js +68 -0
  194. package/lib/subscribers-waiter.js.map +1 -0
  195. package/lib/usageplans-waiter.d.ts +32 -0
  196. package/lib/usageplans-waiter.js +68 -0
  197. package/lib/usageplans-waiter.js.map +1 -0
  198. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -43,12 +43,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.WorkRequestsClient = exports.WorkRequestsApiKeys = exports.GatewayClient = exports.GatewayApiKeys = exports.DeploymentClient = exports.DeploymentApiKeys = exports.ApiGatewayClient = exports.ApiGatewayApiKeys = void 0;
46
+ exports.WorkRequestsClient = exports.WorkRequestsApiKeys = exports.UsagePlansClient = exports.UsagePlansApiKeys = exports.SubscribersClient = exports.SubscribersApiKeys = exports.GatewayClient = exports.GatewayApiKeys = exports.DeploymentClient = exports.DeploymentApiKeys = exports.ApiGatewayClient = exports.ApiGatewayApiKeys = void 0;
47
47
  const common = require("oci-common");
48
48
  const model = __importStar(require("./model"));
49
49
  const apigateway_waiter_1 = require("./apigateway-waiter");
50
50
  const deployment_waiter_1 = require("./deployment-waiter");
51
51
  const gateway_waiter_1 = require("./gateway-waiter");
52
+ const subscribers_waiter_1 = require("./subscribers-waiter");
53
+ const usageplans_waiter_1 = require("./usageplans-waiter");
52
54
  const workrequests_waiter_1 = require("./workrequests-waiter");
53
55
  const oci_common_1 = require("oci-common");
54
56
  // ===============================================
@@ -66,6 +68,7 @@ class ApiGatewayClient {
66
68
  this["_defaultHeaders"] = {};
67
69
  this._circuitBreaker = null;
68
70
  this._httpOptions = undefined;
71
+ this.targetService = "ApiGateway";
69
72
  const requestSigner = params.authenticationDetailsProvider
70
73
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
71
74
  : null;
@@ -161,12 +164,14 @@ class ApiGatewayClient {
161
164
  * @param ChangeApiCompartmentRequest
162
165
  * @return ChangeApiCompartmentResponse
163
166
  * @throws OciError when an error occurs
164
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ChangeApiCompartment.ts.html |here} to see how to use ChangeApiCompartment API.
167
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ChangeApiCompartment.ts.html |here} to see how to use ChangeApiCompartment API.
165
168
  */
166
169
  changeApiCompartment(changeApiCompartmentRequest) {
167
170
  return __awaiter(this, void 0, void 0, function* () {
168
171
  if (this.logger)
169
172
  this.logger.debug("Calling operation ApiGatewayClient#changeApiCompartment.");
173
+ const operationName = "changeApiCompartment";
174
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/ChangeApiCompartment";
170
175
  const pathParams = {
171
176
  "{apiId}": changeApiCompartmentRequest.apiId
172
177
  };
@@ -192,7 +197,7 @@ class ApiGatewayClient {
192
197
  queryParams: queryParams
193
198
  });
194
199
  try {
195
- const response = yield retrier.makeServiceCall(this._httpClient, request);
200
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
196
201
  const sdkResponse = oci_common_1.composeResponse({
197
202
  responseObject: {},
198
203
  responseHeaders: [
@@ -221,12 +226,14 @@ class ApiGatewayClient {
221
226
  * @param ChangeCertificateCompartmentRequest
222
227
  * @return ChangeCertificateCompartmentResponse
223
228
  * @throws OciError when an error occurs
224
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ChangeCertificateCompartment.ts.html |here} to see how to use ChangeCertificateCompartment API.
229
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ChangeCertificateCompartment.ts.html |here} to see how to use ChangeCertificateCompartment API.
225
230
  */
226
231
  changeCertificateCompartment(changeCertificateCompartmentRequest) {
227
232
  return __awaiter(this, void 0, void 0, function* () {
228
233
  if (this.logger)
229
234
  this.logger.debug("Calling operation ApiGatewayClient#changeCertificateCompartment.");
235
+ const operationName = "changeCertificateCompartment";
236
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/ChangeCertificateCompartment";
230
237
  const pathParams = {
231
238
  "{certificateId}": changeCertificateCompartmentRequest.certificateId
232
239
  };
@@ -252,7 +259,7 @@ class ApiGatewayClient {
252
259
  queryParams: queryParams
253
260
  });
254
261
  try {
255
- const response = yield retrier.makeServiceCall(this._httpClient, request);
262
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
256
263
  const sdkResponse = oci_common_1.composeResponse({
257
264
  responseObject: {},
258
265
  responseHeaders: [
@@ -273,16 +280,18 @@ class ApiGatewayClient {
273
280
  /**
274
281
  * Creates a new API.
275
282
  *
276
- * This operation does not retry by default if the user has not defined a retry configuration.
283
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
277
284
  * @param CreateApiRequest
278
285
  * @return CreateApiResponse
279
286
  * @throws OciError when an error occurs
280
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/CreateApi.ts.html |here} to see how to use CreateApi API.
287
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/CreateApi.ts.html |here} to see how to use CreateApi API.
281
288
  */
282
289
  createApi(createApiRequest) {
283
290
  return __awaiter(this, void 0, void 0, function* () {
284
291
  if (this.logger)
285
292
  this.logger.debug("Calling operation ApiGatewayClient#createApi.");
293
+ const operationName = "createApi";
294
+ const apiReferenceLink = "";
286
295
  const pathParams = {};
287
296
  const queryParams = {};
288
297
  let headerParams = {
@@ -290,7 +299,7 @@ class ApiGatewayClient {
290
299
  "opc-retry-token": createApiRequest.opcRetryToken,
291
300
  "opc-request-id": createApiRequest.opcRequestId
292
301
  };
293
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
302
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
294
303
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createApiRequest.retryConfiguration, specRetryConfiguration);
295
304
  if (this.logger)
296
305
  retrier.logger = this.logger;
@@ -305,7 +314,7 @@ class ApiGatewayClient {
305
314
  queryParams: queryParams
306
315
  });
307
316
  try {
308
- const response = yield retrier.makeServiceCall(this._httpClient, request);
317
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
309
318
  const sdkResponse = oci_common_1.composeResponse({
310
319
  responseObject: {},
311
320
  body: yield response.json(),
@@ -345,16 +354,18 @@ class ApiGatewayClient {
345
354
  /**
346
355
  * Creates a new Certificate.
347
356
  *
348
- * This operation does not retry by default if the user has not defined a retry configuration.
357
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
349
358
  * @param CreateCertificateRequest
350
359
  * @return CreateCertificateResponse
351
360
  * @throws OciError when an error occurs
352
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/CreateCertificate.ts.html |here} to see how to use CreateCertificate API.
361
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/CreateCertificate.ts.html |here} to see how to use CreateCertificate API.
353
362
  */
354
363
  createCertificate(createCertificateRequest) {
355
364
  return __awaiter(this, void 0, void 0, function* () {
356
365
  if (this.logger)
357
366
  this.logger.debug("Calling operation ApiGatewayClient#createCertificate.");
367
+ const operationName = "createCertificate";
368
+ const apiReferenceLink = "";
358
369
  const pathParams = {};
359
370
  const queryParams = {};
360
371
  let headerParams = {
@@ -362,7 +373,7 @@ class ApiGatewayClient {
362
373
  "opc-retry-token": createCertificateRequest.opcRetryToken,
363
374
  "opc-request-id": createCertificateRequest.opcRequestId
364
375
  };
365
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
376
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
366
377
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createCertificateRequest.retryConfiguration, specRetryConfiguration);
367
378
  if (this.logger)
368
379
  retrier.logger = this.logger;
@@ -377,7 +388,7 @@ class ApiGatewayClient {
377
388
  queryParams: queryParams
378
389
  });
379
390
  try {
380
- const response = yield retrier.makeServiceCall(this._httpClient, request);
391
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
381
392
  const sdkResponse = oci_common_1.composeResponse({
382
393
  responseObject: {},
383
394
  body: yield response.json(),
@@ -416,16 +427,18 @@ class ApiGatewayClient {
416
427
  }
417
428
  /**
418
429
  * Creates a new SDK.
419
- * This operation does not retry by default if the user has not defined a retry configuration.
430
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
420
431
  * @param CreateSdkRequest
421
432
  * @return CreateSdkResponse
422
433
  * @throws OciError when an error occurs
423
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/CreateSdk.ts.html |here} to see how to use CreateSdk API.
434
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/CreateSdk.ts.html |here} to see how to use CreateSdk API.
424
435
  */
425
436
  createSdk(createSdkRequest) {
426
437
  return __awaiter(this, void 0, void 0, function* () {
427
438
  if (this.logger)
428
439
  this.logger.debug("Calling operation ApiGatewayClient#createSdk.");
440
+ const operationName = "createSdk";
441
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/CreateSdk";
429
442
  const pathParams = {};
430
443
  const queryParams = {};
431
444
  let headerParams = {
@@ -433,7 +446,7 @@ class ApiGatewayClient {
433
446
  "opc-retry-token": createSdkRequest.opcRetryToken,
434
447
  "opc-request-id": createSdkRequest.opcRequestId
435
448
  };
436
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
449
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
437
450
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSdkRequest.retryConfiguration, specRetryConfiguration);
438
451
  if (this.logger)
439
452
  retrier.logger = this.logger;
@@ -448,7 +461,7 @@ class ApiGatewayClient {
448
461
  queryParams: queryParams
449
462
  });
450
463
  try {
451
- const response = yield retrier.makeServiceCall(this._httpClient, request);
464
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
452
465
  const sdkResponse = oci_common_1.composeResponse({
453
466
  responseObject: {},
454
467
  body: yield response.json(),
@@ -491,12 +504,14 @@ class ApiGatewayClient {
491
504
  * @param DeleteApiRequest
492
505
  * @return DeleteApiResponse
493
506
  * @throws OciError when an error occurs
494
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/DeleteApi.ts.html |here} to see how to use DeleteApi API.
507
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/DeleteApi.ts.html |here} to see how to use DeleteApi API.
495
508
  */
496
509
  deleteApi(deleteApiRequest) {
497
510
  return __awaiter(this, void 0, void 0, function* () {
498
511
  if (this.logger)
499
512
  this.logger.debug("Calling operation ApiGatewayClient#deleteApi.");
513
+ const operationName = "deleteApi";
514
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/DeleteApi";
500
515
  const pathParams = {
501
516
  "{apiId}": deleteApiRequest.apiId
502
517
  };
@@ -520,7 +535,7 @@ class ApiGatewayClient {
520
535
  queryParams: queryParams
521
536
  });
522
537
  try {
523
- const response = yield retrier.makeServiceCall(this._httpClient, request);
538
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
524
539
  const sdkResponse = oci_common_1.composeResponse({
525
540
  responseObject: {},
526
541
  responseHeaders: [
@@ -549,12 +564,14 @@ class ApiGatewayClient {
549
564
  * @param DeleteCertificateRequest
550
565
  * @return DeleteCertificateResponse
551
566
  * @throws OciError when an error occurs
552
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API.
567
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API.
553
568
  */
554
569
  deleteCertificate(deleteCertificateRequest) {
555
570
  return __awaiter(this, void 0, void 0, function* () {
556
571
  if (this.logger)
557
572
  this.logger.debug("Calling operation ApiGatewayClient#deleteCertificate.");
573
+ const operationName = "deleteCertificate";
574
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/DeleteCertificate";
558
575
  const pathParams = {
559
576
  "{certificateId}": deleteCertificateRequest.certificateId
560
577
  };
@@ -578,7 +595,7 @@ class ApiGatewayClient {
578
595
  queryParams: queryParams
579
596
  });
580
597
  try {
581
- const response = yield retrier.makeServiceCall(this._httpClient, request);
598
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
582
599
  const sdkResponse = oci_common_1.composeResponse({
583
600
  responseObject: {},
584
601
  responseHeaders: [
@@ -607,12 +624,14 @@ class ApiGatewayClient {
607
624
  * @param DeleteSdkRequest
608
625
  * @return DeleteSdkResponse
609
626
  * @throws OciError when an error occurs
610
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/DeleteSdk.ts.html |here} to see how to use DeleteSdk API.
627
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/DeleteSdk.ts.html |here} to see how to use DeleteSdk API.
611
628
  */
612
629
  deleteSdk(deleteSdkRequest) {
613
630
  return __awaiter(this, void 0, void 0, function* () {
614
631
  if (this.logger)
615
632
  this.logger.debug("Calling operation ApiGatewayClient#deleteSdk.");
633
+ const operationName = "deleteSdk";
634
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/DeleteSdk";
616
635
  const pathParams = {
617
636
  "{sdkId}": deleteSdkRequest.sdkId
618
637
  };
@@ -636,7 +655,7 @@ class ApiGatewayClient {
636
655
  queryParams: queryParams
637
656
  });
638
657
  try {
639
- const response = yield retrier.makeServiceCall(this._httpClient, request);
658
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
640
659
  const sdkResponse = oci_common_1.composeResponse({
641
660
  responseObject: {},
642
661
  responseHeaders: [
@@ -661,16 +680,18 @@ class ApiGatewayClient {
661
680
  }
662
681
  /**
663
682
  * Gets an API by identifier.
664
- * This operation does not retry by default if the user has not defined a retry configuration.
683
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
665
684
  * @param GetApiRequest
666
685
  * @return GetApiResponse
667
686
  * @throws OciError when an error occurs
668
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/GetApi.ts.html |here} to see how to use GetApi API.
687
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetApi.ts.html |here} to see how to use GetApi API.
669
688
  */
670
689
  getApi(getApiRequest) {
671
690
  return __awaiter(this, void 0, void 0, function* () {
672
691
  if (this.logger)
673
692
  this.logger.debug("Calling operation ApiGatewayClient#getApi.");
693
+ const operationName = "getApi";
694
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/GetApi";
674
695
  const pathParams = {
675
696
  "{apiId}": getApiRequest.apiId
676
697
  };
@@ -679,7 +700,7 @@ class ApiGatewayClient {
679
700
  "Content-Type": common.Constants.APPLICATION_JSON,
680
701
  "opc-request-id": getApiRequest.opcRequestId
681
702
  };
682
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
703
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
683
704
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiRequest.retryConfiguration, specRetryConfiguration);
684
705
  if (this.logger)
685
706
  retrier.logger = this.logger;
@@ -693,7 +714,7 @@ class ApiGatewayClient {
693
714
  queryParams: queryParams
694
715
  });
695
716
  try {
696
- const response = yield retrier.makeServiceCall(this._httpClient, request);
717
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
697
718
  const sdkResponse = oci_common_1.composeResponse({
698
719
  responseObject: {},
699
720
  body: yield response.json(),
@@ -722,16 +743,18 @@ class ApiGatewayClient {
722
743
  }
723
744
  /**
724
745
  * Get the raw API content.
725
- * This operation does not retry by default if the user has not defined a retry configuration.
746
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
726
747
  * @param GetApiContentRequest
727
748
  * @return GetApiContentResponse
728
749
  * @throws OciError when an error occurs
729
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/GetApiContent.ts.html |here} to see how to use GetApiContent API.
750
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetApiContent.ts.html |here} to see how to use GetApiContent API.
730
751
  */
731
752
  getApiContent(getApiContentRequest) {
732
753
  return __awaiter(this, void 0, void 0, function* () {
733
754
  if (this.logger)
734
755
  this.logger.debug("Calling operation ApiGatewayClient#getApiContent.");
756
+ const operationName = "getApiContent";
757
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/GetApiContent";
735
758
  const pathParams = {
736
759
  "{apiId}": getApiContentRequest.apiId
737
760
  };
@@ -742,7 +765,7 @@ class ApiGatewayClient {
742
765
  "if-match": getApiContentRequest.ifMatch,
743
766
  "range": getApiContentRequest.range
744
767
  };
745
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
768
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
746
769
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiContentRequest.retryConfiguration, specRetryConfiguration);
747
770
  if (this.logger)
748
771
  retrier.logger = this.logger;
@@ -756,7 +779,7 @@ class ApiGatewayClient {
756
779
  queryParams: queryParams
757
780
  });
758
781
  try {
759
- const response = yield retrier.makeServiceCall(this._httpClient, request);
782
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
760
783
  const sdkResponse = oci_common_1.composeResponse({
761
784
  responseObject: {},
762
785
  body: response.body,
@@ -789,16 +812,18 @@ class ApiGatewayClient {
789
812
  }
790
813
  /**
791
814
  * Gets an API Deployment specification by identifier.
792
- * This operation does not retry by default if the user has not defined a retry configuration.
815
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
793
816
  * @param GetApiDeploymentSpecificationRequest
794
817
  * @return GetApiDeploymentSpecificationResponse
795
818
  * @throws OciError when an error occurs
796
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/GetApiDeploymentSpecification.ts.html |here} to see how to use GetApiDeploymentSpecification API.
819
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetApiDeploymentSpecification.ts.html |here} to see how to use GetApiDeploymentSpecification API.
797
820
  */
798
821
  getApiDeploymentSpecification(getApiDeploymentSpecificationRequest) {
799
822
  return __awaiter(this, void 0, void 0, function* () {
800
823
  if (this.logger)
801
824
  this.logger.debug("Calling operation ApiGatewayClient#getApiDeploymentSpecification.");
825
+ const operationName = "getApiDeploymentSpecification";
826
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/ApiSpecification/GetApiDeploymentSpecification";
802
827
  const pathParams = {
803
828
  "{apiId}": getApiDeploymentSpecificationRequest.apiId
804
829
  };
@@ -808,7 +833,7 @@ class ApiGatewayClient {
808
833
  "opc-request-id": getApiDeploymentSpecificationRequest.opcRequestId,
809
834
  "if-match": getApiDeploymentSpecificationRequest.ifMatch
810
835
  };
811
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
836
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
812
837
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiDeploymentSpecificationRequest.retryConfiguration, specRetryConfiguration);
813
838
  if (this.logger)
814
839
  retrier.logger = this.logger;
@@ -822,7 +847,7 @@ class ApiGatewayClient {
822
847
  queryParams: queryParams
823
848
  });
824
849
  try {
825
- const response = yield retrier.makeServiceCall(this._httpClient, request);
850
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
826
851
  const sdkResponse = oci_common_1.composeResponse({
827
852
  responseObject: {},
828
853
  body: yield response.json(),
@@ -851,16 +876,18 @@ class ApiGatewayClient {
851
876
  }
852
877
  /**
853
878
  * Gets the API validation results.
854
- * This operation does not retry by default if the user has not defined a retry configuration.
879
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
855
880
  * @param GetApiValidationsRequest
856
881
  * @return GetApiValidationsResponse
857
882
  * @throws OciError when an error occurs
858
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/GetApiValidations.ts.html |here} to see how to use GetApiValidations API.
883
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetApiValidations.ts.html |here} to see how to use GetApiValidations API.
859
884
  */
860
885
  getApiValidations(getApiValidationsRequest) {
861
886
  return __awaiter(this, void 0, void 0, function* () {
862
887
  if (this.logger)
863
888
  this.logger.debug("Calling operation ApiGatewayClient#getApiValidations.");
889
+ const operationName = "getApiValidations";
890
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/ApiValidations/GetApiValidations";
864
891
  const pathParams = {
865
892
  "{apiId}": getApiValidationsRequest.apiId
866
893
  };
@@ -870,7 +897,7 @@ class ApiGatewayClient {
870
897
  "opc-request-id": getApiValidationsRequest.opcRequestId,
871
898
  "if-match": getApiValidationsRequest.ifMatch
872
899
  };
873
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
900
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
874
901
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiValidationsRequest.retryConfiguration, specRetryConfiguration);
875
902
  if (this.logger)
876
903
  retrier.logger = this.logger;
@@ -884,7 +911,7 @@ class ApiGatewayClient {
884
911
  queryParams: queryParams
885
912
  });
886
913
  try {
887
- const response = yield retrier.makeServiceCall(this._httpClient, request);
914
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
888
915
  const sdkResponse = oci_common_1.composeResponse({
889
916
  responseObject: {},
890
917
  body: yield response.json(),
@@ -913,16 +940,18 @@ class ApiGatewayClient {
913
940
  }
914
941
  /**
915
942
  * Gets a certificate by identifier.
916
- * This operation does not retry by default if the user has not defined a retry configuration.
943
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
917
944
  * @param GetCertificateRequest
918
945
  * @return GetCertificateResponse
919
946
  * @throws OciError when an error occurs
920
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/GetCertificate.ts.html |here} to see how to use GetCertificate API.
947
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetCertificate.ts.html |here} to see how to use GetCertificate API.
921
948
  */
922
949
  getCertificate(getCertificateRequest) {
923
950
  return __awaiter(this, void 0, void 0, function* () {
924
951
  if (this.logger)
925
952
  this.logger.debug("Calling operation ApiGatewayClient#getCertificate.");
953
+ const operationName = "getCertificate";
954
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/GetCertificate";
926
955
  const pathParams = {
927
956
  "{certificateId}": getCertificateRequest.certificateId
928
957
  };
@@ -931,7 +960,7 @@ class ApiGatewayClient {
931
960
  "Content-Type": common.Constants.APPLICATION_JSON,
932
961
  "opc-request-id": getCertificateRequest.opcRequestId
933
962
  };
934
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
963
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
935
964
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCertificateRequest.retryConfiguration, specRetryConfiguration);
936
965
  if (this.logger)
937
966
  retrier.logger = this.logger;
@@ -945,7 +974,7 @@ class ApiGatewayClient {
945
974
  queryParams: queryParams
946
975
  });
947
976
  try {
948
- const response = yield retrier.makeServiceCall(this._httpClient, request);
977
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
949
978
  const sdkResponse = oci_common_1.composeResponse({
950
979
  responseObject: {},
951
980
  body: yield response.json(),
@@ -974,16 +1003,18 @@ class ApiGatewayClient {
974
1003
  }
975
1004
  /**
976
1005
  * Return object store downloadable URL and metadata.
977
- * This operation does not retry by default if the user has not defined a retry configuration.
1006
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
978
1007
  * @param GetSdkRequest
979
1008
  * @return GetSdkResponse
980
1009
  * @throws OciError when an error occurs
981
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/GetSdk.ts.html |here} to see how to use GetSdk API.
1010
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetSdk.ts.html |here} to see how to use GetSdk API.
982
1011
  */
983
1012
  getSdk(getSdkRequest) {
984
1013
  return __awaiter(this, void 0, void 0, function* () {
985
1014
  if (this.logger)
986
1015
  this.logger.debug("Calling operation ApiGatewayClient#getSdk.");
1016
+ const operationName = "getSdk";
1017
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/GetSdk";
987
1018
  const pathParams = {
988
1019
  "{sdkId}": getSdkRequest.sdkId
989
1020
  };
@@ -992,7 +1023,7 @@ class ApiGatewayClient {
992
1023
  "Content-Type": common.Constants.APPLICATION_JSON,
993
1024
  "opc-request-id": getSdkRequest.opcRequestId
994
1025
  };
995
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1026
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
996
1027
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSdkRequest.retryConfiguration, specRetryConfiguration);
997
1028
  if (this.logger)
998
1029
  retrier.logger = this.logger;
@@ -1006,7 +1037,7 @@ class ApiGatewayClient {
1006
1037
  queryParams: queryParams
1007
1038
  });
1008
1039
  try {
1009
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1040
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1010
1041
  const sdkResponse = oci_common_1.composeResponse({
1011
1042
  responseObject: {},
1012
1043
  body: yield response.json(),
@@ -1036,16 +1067,18 @@ class ApiGatewayClient {
1036
1067
  /**
1037
1068
  * Returns a list of APIs.
1038
1069
  *
1039
- * This operation does not retry by default if the user has not defined a retry configuration.
1070
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1040
1071
  * @param ListApisRequest
1041
1072
  * @return ListApisResponse
1042
1073
  * @throws OciError when an error occurs
1043
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ListApis.ts.html |here} to see how to use ListApis API.
1074
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListApis.ts.html |here} to see how to use ListApis API.
1044
1075
  */
1045
1076
  listApis(listApisRequest) {
1046
1077
  return __awaiter(this, void 0, void 0, function* () {
1047
1078
  if (this.logger)
1048
1079
  this.logger.debug("Calling operation ApiGatewayClient#listApis.");
1080
+ const operationName = "listApis";
1081
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/ListApis";
1049
1082
  const pathParams = {};
1050
1083
  const queryParams = {
1051
1084
  "compartmentId": listApisRequest.compartmentId,
@@ -1060,7 +1093,7 @@ class ApiGatewayClient {
1060
1093
  "Content-Type": common.Constants.APPLICATION_JSON,
1061
1094
  "opc-request-id": listApisRequest.opcRequestId
1062
1095
  };
1063
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1096
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1064
1097
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listApisRequest.retryConfiguration, specRetryConfiguration);
1065
1098
  if (this.logger)
1066
1099
  retrier.logger = this.logger;
@@ -1074,7 +1107,7 @@ class ApiGatewayClient {
1074
1107
  queryParams: queryParams
1075
1108
  });
1076
1109
  try {
1077
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1110
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1078
1111
  const sdkResponse = oci_common_1.composeResponse({
1079
1112
  responseObject: {},
1080
1113
  body: yield response.json(),
@@ -1109,16 +1142,18 @@ class ApiGatewayClient {
1109
1142
  /**
1110
1143
  * Returns a list of certificates.
1111
1144
  *
1112
- * This operation does not retry by default if the user has not defined a retry configuration.
1145
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1113
1146
  * @param ListCertificatesRequest
1114
1147
  * @return ListCertificatesResponse
1115
1148
  * @throws OciError when an error occurs
1116
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ListCertificates.ts.html |here} to see how to use ListCertificates API.
1149
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListCertificates.ts.html |here} to see how to use ListCertificates API.
1117
1150
  */
1118
1151
  listCertificates(listCertificatesRequest) {
1119
1152
  return __awaiter(this, void 0, void 0, function* () {
1120
1153
  if (this.logger)
1121
1154
  this.logger.debug("Calling operation ApiGatewayClient#listCertificates.");
1155
+ const operationName = "listCertificates";
1156
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/ListCertificates";
1122
1157
  const pathParams = {};
1123
1158
  const queryParams = {
1124
1159
  "compartmentId": listCertificatesRequest.compartmentId,
@@ -1133,7 +1168,7 @@ class ApiGatewayClient {
1133
1168
  "Content-Type": common.Constants.APPLICATION_JSON,
1134
1169
  "opc-request-id": listCertificatesRequest.opcRequestId
1135
1170
  };
1136
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1171
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1137
1172
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCertificatesRequest.retryConfiguration, specRetryConfiguration);
1138
1173
  if (this.logger)
1139
1174
  retrier.logger = this.logger;
@@ -1147,7 +1182,7 @@ class ApiGatewayClient {
1147
1182
  queryParams: queryParams
1148
1183
  });
1149
1184
  try {
1150
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1185
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1151
1186
  const sdkResponse = oci_common_1.composeResponse({
1152
1187
  responseObject: {},
1153
1188
  body: yield response.json(),
@@ -1181,16 +1216,18 @@ class ApiGatewayClient {
1181
1216
  }
1182
1217
  /**
1183
1218
  * Lists programming languages in which SDK can be generated.
1184
- * This operation does not retry by default if the user has not defined a retry configuration.
1219
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1185
1220
  * @param ListSdkLanguageTypesRequest
1186
1221
  * @return ListSdkLanguageTypesResponse
1187
1222
  * @throws OciError when an error occurs
1188
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ListSdkLanguageTypes.ts.html |here} to see how to use ListSdkLanguageTypes API.
1223
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListSdkLanguageTypes.ts.html |here} to see how to use ListSdkLanguageTypes API.
1189
1224
  */
1190
1225
  listSdkLanguageTypes(listSdkLanguageTypesRequest) {
1191
1226
  return __awaiter(this, void 0, void 0, function* () {
1192
1227
  if (this.logger)
1193
1228
  this.logger.debug("Calling operation ApiGatewayClient#listSdkLanguageTypes.");
1229
+ const operationName = "listSdkLanguageTypes";
1230
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/SdkLanguageTypeSummary/ListSdkLanguageTypes";
1194
1231
  const pathParams = {};
1195
1232
  const queryParams = {
1196
1233
  "displayName": listSdkLanguageTypesRequest.displayName,
@@ -1204,7 +1241,7 @@ class ApiGatewayClient {
1204
1241
  "Content-Type": common.Constants.APPLICATION_JSON,
1205
1242
  "opc-request-id": listSdkLanguageTypesRequest.opcRequestId
1206
1243
  };
1207
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1244
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1208
1245
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSdkLanguageTypesRequest.retryConfiguration, specRetryConfiguration);
1209
1246
  if (this.logger)
1210
1247
  retrier.logger = this.logger;
@@ -1218,7 +1255,7 @@ class ApiGatewayClient {
1218
1255
  queryParams: queryParams
1219
1256
  });
1220
1257
  try {
1221
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1258
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1222
1259
  const sdkResponse = oci_common_1.composeResponse({
1223
1260
  responseObject: {},
1224
1261
  body: yield response.json(),
@@ -1252,16 +1289,18 @@ class ApiGatewayClient {
1252
1289
  }
1253
1290
  /**
1254
1291
  * Returns list of generated SDKs.
1255
- * This operation does not retry by default if the user has not defined a retry configuration.
1292
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1256
1293
  * @param ListSdksRequest
1257
1294
  * @return ListSdksResponse
1258
1295
  * @throws OciError when an error occurs
1259
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ListSdks.ts.html |here} to see how to use ListSdks API.
1296
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListSdks.ts.html |here} to see how to use ListSdks API.
1260
1297
  */
1261
1298
  listSdks(listSdksRequest) {
1262
1299
  return __awaiter(this, void 0, void 0, function* () {
1263
1300
  if (this.logger)
1264
1301
  this.logger.debug("Calling operation ApiGatewayClient#listSdks.");
1302
+ const operationName = "listSdks";
1303
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/ListSdks";
1265
1304
  const pathParams = {};
1266
1305
  const queryParams = {
1267
1306
  "sdkId": listSdksRequest.sdkId,
@@ -1277,7 +1316,7 @@ class ApiGatewayClient {
1277
1316
  "Content-Type": common.Constants.APPLICATION_JSON,
1278
1317
  "opc-request-id": listSdksRequest.opcRequestId
1279
1318
  };
1280
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1319
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1281
1320
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSdksRequest.retryConfiguration, specRetryConfiguration);
1282
1321
  if (this.logger)
1283
1322
  retrier.logger = this.logger;
@@ -1291,7 +1330,7 @@ class ApiGatewayClient {
1291
1330
  queryParams: queryParams
1292
1331
  });
1293
1332
  try {
1294
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1333
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1295
1334
  const sdkResponse = oci_common_1.composeResponse({
1296
1335
  responseObject: {},
1297
1336
  body: yield response.json(),
@@ -1329,12 +1368,14 @@ class ApiGatewayClient {
1329
1368
  * @param UpdateApiRequest
1330
1369
  * @return UpdateApiResponse
1331
1370
  * @throws OciError when an error occurs
1332
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
1371
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
1333
1372
  */
1334
1373
  updateApi(updateApiRequest) {
1335
1374
  return __awaiter(this, void 0, void 0, function* () {
1336
1375
  if (this.logger)
1337
1376
  this.logger.debug("Calling operation ApiGatewayClient#updateApi.");
1377
+ const operationName = "updateApi";
1378
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/UpdateApi";
1338
1379
  const pathParams = {
1339
1380
  "{apiId}": updateApiRequest.apiId
1340
1381
  };
@@ -1359,7 +1400,7 @@ class ApiGatewayClient {
1359
1400
  queryParams: queryParams
1360
1401
  });
1361
1402
  try {
1362
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1403
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1363
1404
  const sdkResponse = oci_common_1.composeResponse({
1364
1405
  responseObject: {},
1365
1406
  responseHeaders: [
@@ -1388,12 +1429,14 @@ class ApiGatewayClient {
1388
1429
  * @param UpdateCertificateRequest
1389
1430
  * @return UpdateCertificateResponse
1390
1431
  * @throws OciError when an error occurs
1391
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
1432
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
1392
1433
  */
1393
1434
  updateCertificate(updateCertificateRequest) {
1394
1435
  return __awaiter(this, void 0, void 0, function* () {
1395
1436
  if (this.logger)
1396
1437
  this.logger.debug("Calling operation ApiGatewayClient#updateCertificate.");
1438
+ const operationName = "updateCertificate";
1439
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/UpdateCertificate";
1397
1440
  const pathParams = {
1398
1441
  "{certificateId}": updateCertificateRequest.certificateId
1399
1442
  };
@@ -1418,7 +1461,7 @@ class ApiGatewayClient {
1418
1461
  queryParams: queryParams
1419
1462
  });
1420
1463
  try {
1421
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1464
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1422
1465
  const sdkResponse = oci_common_1.composeResponse({
1423
1466
  responseObject: {},
1424
1467
  responseHeaders: [
@@ -1447,12 +1490,14 @@ class ApiGatewayClient {
1447
1490
  * @param UpdateSdkRequest
1448
1491
  * @return UpdateSdkResponse
1449
1492
  * @throws OciError when an error occurs
1450
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
1493
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
1451
1494
  */
1452
1495
  updateSdk(updateSdkRequest) {
1453
1496
  return __awaiter(this, void 0, void 0, function* () {
1454
1497
  if (this.logger)
1455
1498
  this.logger.debug("Calling operation ApiGatewayClient#updateSdk.");
1499
+ const operationName = "updateSdk";
1500
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/UpdateSdk";
1456
1501
  const pathParams = {
1457
1502
  "{sdkId}": updateSdkRequest.sdkId
1458
1503
  };
@@ -1477,7 +1522,7 @@ class ApiGatewayClient {
1477
1522
  queryParams: queryParams
1478
1523
  });
1479
1524
  try {
1480
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1525
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1481
1526
  const sdkResponse = oci_common_1.composeResponse({
1482
1527
  responseObject: {},
1483
1528
  responseHeaders: [
@@ -1511,6 +1556,7 @@ class DeploymentClient {
1511
1556
  this["_defaultHeaders"] = {};
1512
1557
  this._circuitBreaker = null;
1513
1558
  this._httpOptions = undefined;
1559
+ this.targetService = "Deployment";
1514
1560
  const requestSigner = params.authenticationDetailsProvider
1515
1561
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1516
1562
  : null;
@@ -1606,12 +1652,14 @@ class DeploymentClient {
1606
1652
  * @param ChangeDeploymentCompartmentRequest
1607
1653
  * @return ChangeDeploymentCompartmentResponse
1608
1654
  * @throws OciError when an error occurs
1609
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ChangeDeploymentCompartment.ts.html |here} to see how to use ChangeDeploymentCompartment API.
1655
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ChangeDeploymentCompartment.ts.html |here} to see how to use ChangeDeploymentCompartment API.
1610
1656
  */
1611
1657
  changeDeploymentCompartment(changeDeploymentCompartmentRequest) {
1612
1658
  return __awaiter(this, void 0, void 0, function* () {
1613
1659
  if (this.logger)
1614
1660
  this.logger.debug("Calling operation DeploymentClient#changeDeploymentCompartment.");
1661
+ const operationName = "changeDeploymentCompartment";
1662
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/ChangeDeploymentCompartment";
1615
1663
  const pathParams = {
1616
1664
  "{deploymentId}": changeDeploymentCompartmentRequest.deploymentId
1617
1665
  };
@@ -1637,7 +1685,7 @@ class DeploymentClient {
1637
1685
  queryParams: queryParams
1638
1686
  });
1639
1687
  try {
1640
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1688
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1641
1689
  const sdkResponse = oci_common_1.composeResponse({
1642
1690
  responseObject: {},
1643
1691
  responseHeaders: [
@@ -1663,16 +1711,18 @@ class DeploymentClient {
1663
1711
  /**
1664
1712
  * Creates a new deployment.
1665
1713
  *
1666
- * This operation does not retry by default if the user has not defined a retry configuration.
1714
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1667
1715
  * @param CreateDeploymentRequest
1668
1716
  * @return CreateDeploymentResponse
1669
1717
  * @throws OciError when an error occurs
1670
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/CreateDeployment.ts.html |here} to see how to use CreateDeployment API.
1718
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/CreateDeployment.ts.html |here} to see how to use CreateDeployment API.
1671
1719
  */
1672
1720
  createDeployment(createDeploymentRequest) {
1673
1721
  return __awaiter(this, void 0, void 0, function* () {
1674
1722
  if (this.logger)
1675
1723
  this.logger.debug("Calling operation DeploymentClient#createDeployment.");
1724
+ const operationName = "createDeployment";
1725
+ const apiReferenceLink = "";
1676
1726
  const pathParams = {};
1677
1727
  const queryParams = {};
1678
1728
  let headerParams = {
@@ -1680,7 +1730,7 @@ class DeploymentClient {
1680
1730
  "opc-retry-token": createDeploymentRequest.opcRetryToken,
1681
1731
  "opc-request-id": createDeploymentRequest.opcRequestId
1682
1732
  };
1683
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1733
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1684
1734
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDeploymentRequest.retryConfiguration, specRetryConfiguration);
1685
1735
  if (this.logger)
1686
1736
  retrier.logger = this.logger;
@@ -1695,7 +1745,7 @@ class DeploymentClient {
1695
1745
  queryParams: queryParams
1696
1746
  });
1697
1747
  try {
1698
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1748
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1699
1749
  const sdkResponse = oci_common_1.composeResponse({
1700
1750
  responseObject: {},
1701
1751
  body: yield response.json(),
@@ -1738,12 +1788,14 @@ class DeploymentClient {
1738
1788
  * @param DeleteDeploymentRequest
1739
1789
  * @return DeleteDeploymentResponse
1740
1790
  * @throws OciError when an error occurs
1741
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/DeleteDeployment.ts.html |here} to see how to use DeleteDeployment API.
1791
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/DeleteDeployment.ts.html |here} to see how to use DeleteDeployment API.
1742
1792
  */
1743
1793
  deleteDeployment(deleteDeploymentRequest) {
1744
1794
  return __awaiter(this, void 0, void 0, function* () {
1745
1795
  if (this.logger)
1746
1796
  this.logger.debug("Calling operation DeploymentClient#deleteDeployment.");
1797
+ const operationName = "deleteDeployment";
1798
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/DeleteDeployment";
1747
1799
  const pathParams = {
1748
1800
  "{deploymentId}": deleteDeploymentRequest.deploymentId
1749
1801
  };
@@ -1767,7 +1819,7 @@ class DeploymentClient {
1767
1819
  queryParams: queryParams
1768
1820
  });
1769
1821
  try {
1770
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1822
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1771
1823
  const sdkResponse = oci_common_1.composeResponse({
1772
1824
  responseObject: {},
1773
1825
  responseHeaders: [
@@ -1792,16 +1844,18 @@ class DeploymentClient {
1792
1844
  }
1793
1845
  /**
1794
1846
  * Gets a deployment by identifier.
1795
- * This operation does not retry by default if the user has not defined a retry configuration.
1847
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1796
1848
  * @param GetDeploymentRequest
1797
1849
  * @return GetDeploymentResponse
1798
1850
  * @throws OciError when an error occurs
1799
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/GetDeployment.ts.html |here} to see how to use GetDeployment API.
1851
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetDeployment.ts.html |here} to see how to use GetDeployment API.
1800
1852
  */
1801
1853
  getDeployment(getDeploymentRequest) {
1802
1854
  return __awaiter(this, void 0, void 0, function* () {
1803
1855
  if (this.logger)
1804
1856
  this.logger.debug("Calling operation DeploymentClient#getDeployment.");
1857
+ const operationName = "getDeployment";
1858
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/GetDeployment";
1805
1859
  const pathParams = {
1806
1860
  "{deploymentId}": getDeploymentRequest.deploymentId
1807
1861
  };
@@ -1810,7 +1864,7 @@ class DeploymentClient {
1810
1864
  "Content-Type": common.Constants.APPLICATION_JSON,
1811
1865
  "opc-request-id": getDeploymentRequest.opcRequestId
1812
1866
  };
1813
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1867
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1814
1868
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDeploymentRequest.retryConfiguration, specRetryConfiguration);
1815
1869
  if (this.logger)
1816
1870
  retrier.logger = this.logger;
@@ -1824,7 +1878,7 @@ class DeploymentClient {
1824
1878
  queryParams: queryParams
1825
1879
  });
1826
1880
  try {
1827
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1881
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1828
1882
  const sdkResponse = oci_common_1.composeResponse({
1829
1883
  responseObject: {},
1830
1884
  body: yield response.json(),
@@ -1854,16 +1908,18 @@ class DeploymentClient {
1854
1908
  /**
1855
1909
  * Returns a list of deployments.
1856
1910
  *
1857
- * This operation does not retry by default if the user has not defined a retry configuration.
1911
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1858
1912
  * @param ListDeploymentsRequest
1859
1913
  * @return ListDeploymentsResponse
1860
1914
  * @throws OciError when an error occurs
1861
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ListDeployments.ts.html |here} to see how to use ListDeployments API.
1915
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListDeployments.ts.html |here} to see how to use ListDeployments API.
1862
1916
  */
1863
1917
  listDeployments(listDeploymentsRequest) {
1864
1918
  return __awaiter(this, void 0, void 0, function* () {
1865
1919
  if (this.logger)
1866
1920
  this.logger.debug("Calling operation DeploymentClient#listDeployments.");
1921
+ const operationName = "listDeployments";
1922
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/DeploymentSummary/ListDeployments";
1867
1923
  const pathParams = {};
1868
1924
  const queryParams = {
1869
1925
  "compartmentId": listDeploymentsRequest.compartmentId,
@@ -1879,7 +1935,7 @@ class DeploymentClient {
1879
1935
  "Content-Type": common.Constants.APPLICATION_JSON,
1880
1936
  "opc-request-id": listDeploymentsRequest.opcRequestId
1881
1937
  };
1882
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1938
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1883
1939
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDeploymentsRequest.retryConfiguration, specRetryConfiguration);
1884
1940
  if (this.logger)
1885
1941
  retrier.logger = this.logger;
@@ -1893,7 +1949,7 @@ class DeploymentClient {
1893
1949
  queryParams: queryParams
1894
1950
  });
1895
1951
  try {
1896
- const response = yield retrier.makeServiceCall(this._httpClient, request);
1952
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1897
1953
  const sdkResponse = oci_common_1.composeResponse({
1898
1954
  responseObject: {},
1899
1955
  body: yield response.json(),
@@ -1931,12 +1987,14 @@ class DeploymentClient {
1931
1987
  * @param UpdateDeploymentRequest
1932
1988
  * @return UpdateDeploymentResponse
1933
1989
  * @throws OciError when an error occurs
1934
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/UpdateDeployment.ts.html |here} to see how to use UpdateDeployment API.
1990
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/UpdateDeployment.ts.html |here} to see how to use UpdateDeployment API.
1935
1991
  */
1936
1992
  updateDeployment(updateDeploymentRequest) {
1937
1993
  return __awaiter(this, void 0, void 0, function* () {
1938
1994
  if (this.logger)
1939
1995
  this.logger.debug("Calling operation DeploymentClient#updateDeployment.");
1996
+ const operationName = "updateDeployment";
1997
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/UpdateDeployment";
1940
1998
  const pathParams = {
1941
1999
  "{deploymentId}": updateDeploymentRequest.deploymentId
1942
2000
  };
@@ -1961,7 +2019,7 @@ class DeploymentClient {
1961
2019
  queryParams: queryParams
1962
2020
  });
1963
2021
  try {
1964
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2022
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1965
2023
  const sdkResponse = oci_common_1.composeResponse({
1966
2024
  responseObject: {},
1967
2025
  responseHeaders: [
@@ -2000,6 +2058,7 @@ class GatewayClient {
2000
2058
  this["_defaultHeaders"] = {};
2001
2059
  this._circuitBreaker = null;
2002
2060
  this._httpOptions = undefined;
2061
+ this.targetService = "Gateway";
2003
2062
  const requestSigner = params.authenticationDetailsProvider
2004
2063
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2005
2064
  : null;
@@ -2095,12 +2154,14 @@ class GatewayClient {
2095
2154
  * @param ChangeGatewayCompartmentRequest
2096
2155
  * @return ChangeGatewayCompartmentResponse
2097
2156
  * @throws OciError when an error occurs
2098
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ChangeGatewayCompartment.ts.html |here} to see how to use ChangeGatewayCompartment API.
2157
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ChangeGatewayCompartment.ts.html |here} to see how to use ChangeGatewayCompartment API.
2099
2158
  */
2100
2159
  changeGatewayCompartment(changeGatewayCompartmentRequest) {
2101
2160
  return __awaiter(this, void 0, void 0, function* () {
2102
2161
  if (this.logger)
2103
2162
  this.logger.debug("Calling operation GatewayClient#changeGatewayCompartment.");
2163
+ const operationName = "changeGatewayCompartment";
2164
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/ChangeGatewayCompartment";
2104
2165
  const pathParams = {
2105
2166
  "{gatewayId}": changeGatewayCompartmentRequest.gatewayId
2106
2167
  };
@@ -2126,7 +2187,7 @@ class GatewayClient {
2126
2187
  queryParams: queryParams
2127
2188
  });
2128
2189
  try {
2129
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2190
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2130
2191
  const sdkResponse = oci_common_1.composeResponse({
2131
2192
  responseObject: {},
2132
2193
  responseHeaders: [
@@ -2152,16 +2213,18 @@ class GatewayClient {
2152
2213
  /**
2153
2214
  * Creates a new gateway.
2154
2215
  *
2155
- * This operation does not retry by default if the user has not defined a retry configuration.
2216
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2156
2217
  * @param CreateGatewayRequest
2157
2218
  * @return CreateGatewayResponse
2158
2219
  * @throws OciError when an error occurs
2159
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/CreateGateway.ts.html |here} to see how to use CreateGateway API.
2220
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/CreateGateway.ts.html |here} to see how to use CreateGateway API.
2160
2221
  */
2161
2222
  createGateway(createGatewayRequest) {
2162
2223
  return __awaiter(this, void 0, void 0, function* () {
2163
2224
  if (this.logger)
2164
2225
  this.logger.debug("Calling operation GatewayClient#createGateway.");
2226
+ const operationName = "createGateway";
2227
+ const apiReferenceLink = "";
2165
2228
  const pathParams = {};
2166
2229
  const queryParams = {};
2167
2230
  let headerParams = {
@@ -2169,7 +2232,7 @@ class GatewayClient {
2169
2232
  "opc-retry-token": createGatewayRequest.opcRetryToken,
2170
2233
  "opc-request-id": createGatewayRequest.opcRequestId
2171
2234
  };
2172
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
2235
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2173
2236
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createGatewayRequest.retryConfiguration, specRetryConfiguration);
2174
2237
  if (this.logger)
2175
2238
  retrier.logger = this.logger;
@@ -2184,7 +2247,7 @@ class GatewayClient {
2184
2247
  queryParams: queryParams
2185
2248
  });
2186
2249
  try {
2187
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2250
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2188
2251
  const sdkResponse = oci_common_1.composeResponse({
2189
2252
  responseObject: {},
2190
2253
  body: yield response.json(),
@@ -2227,12 +2290,14 @@ class GatewayClient {
2227
2290
  * @param DeleteGatewayRequest
2228
2291
  * @return DeleteGatewayResponse
2229
2292
  * @throws OciError when an error occurs
2230
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/DeleteGateway.ts.html |here} to see how to use DeleteGateway API.
2293
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/DeleteGateway.ts.html |here} to see how to use DeleteGateway API.
2231
2294
  */
2232
2295
  deleteGateway(deleteGatewayRequest) {
2233
2296
  return __awaiter(this, void 0, void 0, function* () {
2234
2297
  if (this.logger)
2235
2298
  this.logger.debug("Calling operation GatewayClient#deleteGateway.");
2299
+ const operationName = "deleteGateway";
2300
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/DeleteGateway";
2236
2301
  const pathParams = {
2237
2302
  "{gatewayId}": deleteGatewayRequest.gatewayId
2238
2303
  };
@@ -2256,7 +2321,7 @@ class GatewayClient {
2256
2321
  queryParams: queryParams
2257
2322
  });
2258
2323
  try {
2259
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2324
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2260
2325
  const sdkResponse = oci_common_1.composeResponse({
2261
2326
  responseObject: {},
2262
2327
  responseHeaders: [
@@ -2281,16 +2346,18 @@ class GatewayClient {
2281
2346
  }
2282
2347
  /**
2283
2348
  * Gets a gateway by identifier.
2284
- * This operation does not retry by default if the user has not defined a retry configuration.
2349
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2285
2350
  * @param GetGatewayRequest
2286
2351
  * @return GetGatewayResponse
2287
2352
  * @throws OciError when an error occurs
2288
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/GetGateway.ts.html |here} to see how to use GetGateway API.
2353
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetGateway.ts.html |here} to see how to use GetGateway API.
2289
2354
  */
2290
2355
  getGateway(getGatewayRequest) {
2291
2356
  return __awaiter(this, void 0, void 0, function* () {
2292
2357
  if (this.logger)
2293
2358
  this.logger.debug("Calling operation GatewayClient#getGateway.");
2359
+ const operationName = "getGateway";
2360
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/GetGateway";
2294
2361
  const pathParams = {
2295
2362
  "{gatewayId}": getGatewayRequest.gatewayId
2296
2363
  };
@@ -2299,7 +2366,7 @@ class GatewayClient {
2299
2366
  "Content-Type": common.Constants.APPLICATION_JSON,
2300
2367
  "opc-request-id": getGatewayRequest.opcRequestId
2301
2368
  };
2302
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
2369
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2303
2370
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getGatewayRequest.retryConfiguration, specRetryConfiguration);
2304
2371
  if (this.logger)
2305
2372
  retrier.logger = this.logger;
@@ -2313,7 +2380,7 @@ class GatewayClient {
2313
2380
  queryParams: queryParams
2314
2381
  });
2315
2382
  try {
2316
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2383
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2317
2384
  const sdkResponse = oci_common_1.composeResponse({
2318
2385
  responseObject: {},
2319
2386
  body: yield response.json(),
@@ -2343,16 +2410,18 @@ class GatewayClient {
2343
2410
  /**
2344
2411
  * Returns a list of gateways.
2345
2412
  *
2346
- * This operation does not retry by default if the user has not defined a retry configuration.
2413
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2347
2414
  * @param ListGatewaysRequest
2348
2415
  * @return ListGatewaysResponse
2349
2416
  * @throws OciError when an error occurs
2350
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ListGateways.ts.html |here} to see how to use ListGateways API.
2417
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListGateways.ts.html |here} to see how to use ListGateways API.
2351
2418
  */
2352
2419
  listGateways(listGatewaysRequest) {
2353
2420
  return __awaiter(this, void 0, void 0, function* () {
2354
2421
  if (this.logger)
2355
2422
  this.logger.debug("Calling operation GatewayClient#listGateways.");
2423
+ const operationName = "listGateways";
2424
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/GatewaySummary/ListGateways";
2356
2425
  const pathParams = {};
2357
2426
  const queryParams = {
2358
2427
  "compartmentId": listGatewaysRequest.compartmentId,
@@ -2368,7 +2437,7 @@ class GatewayClient {
2368
2437
  "Content-Type": common.Constants.APPLICATION_JSON,
2369
2438
  "opc-request-id": listGatewaysRequest.opcRequestId
2370
2439
  };
2371
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
2440
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2372
2441
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listGatewaysRequest.retryConfiguration, specRetryConfiguration);
2373
2442
  if (this.logger)
2374
2443
  retrier.logger = this.logger;
@@ -2382,7 +2451,7 @@ class GatewayClient {
2382
2451
  queryParams: queryParams
2383
2452
  });
2384
2453
  try {
2385
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2454
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2386
2455
  const sdkResponse = oci_common_1.composeResponse({
2387
2456
  responseObject: {},
2388
2457
  body: yield response.json(),
@@ -2420,12 +2489,14 @@ class GatewayClient {
2420
2489
  * @param UpdateGatewayRequest
2421
2490
  * @return UpdateGatewayResponse
2422
2491
  * @throws OciError when an error occurs
2423
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/UpdateGateway.ts.html |here} to see how to use UpdateGateway API.
2492
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/UpdateGateway.ts.html |here} to see how to use UpdateGateway API.
2424
2493
  */
2425
2494
  updateGateway(updateGatewayRequest) {
2426
2495
  return __awaiter(this, void 0, void 0, function* () {
2427
2496
  if (this.logger)
2428
2497
  this.logger.debug("Calling operation GatewayClient#updateGateway.");
2498
+ const operationName = "updateGateway";
2499
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/UpdateGateway";
2429
2500
  const pathParams = {
2430
2501
  "{gatewayId}": updateGatewayRequest.gatewayId
2431
2502
  };
@@ -2450,7 +2521,7 @@ class GatewayClient {
2450
2521
  queryParams: queryParams
2451
2522
  });
2452
2523
  try {
2453
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2524
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2454
2525
  const sdkResponse = oci_common_1.composeResponse({
2455
2526
  responseObject: {},
2456
2527
  responseHeaders: [
@@ -2477,18 +2548,19 @@ class GatewayClient {
2477
2548
  exports.GatewayClient = GatewayClient;
2478
2549
  GatewayClient.serviceEndpointTemplate = "https://apigateway.{region}.oci.{secondLevelDomain}";
2479
2550
  GatewayClient.endpointServiceName = "";
2480
- var WorkRequestsApiKeys;
2481
- (function (WorkRequestsApiKeys) {
2482
- })(WorkRequestsApiKeys = exports.WorkRequestsApiKeys || (exports.WorkRequestsApiKeys = {}));
2551
+ var SubscribersApiKeys;
2552
+ (function (SubscribersApiKeys) {
2553
+ })(SubscribersApiKeys = exports.SubscribersApiKeys || (exports.SubscribersApiKeys = {}));
2483
2554
  /**
2484
2555
  * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
2485
2556
  */
2486
- class WorkRequestsClient {
2557
+ class SubscribersClient {
2487
2558
  constructor(params, clientConfiguration) {
2488
2559
  this["_endpoint"] = "";
2489
2560
  this["_defaultHeaders"] = {};
2490
2561
  this._circuitBreaker = null;
2491
2562
  this._httpOptions = undefined;
2563
+ this.targetService = "Subscribers";
2492
2564
  const requestSigner = params.authenticationDetailsProvider
2493
2565
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2494
2566
  : null;
@@ -2533,7 +2605,7 @@ class WorkRequestsClient {
2533
2605
  this._endpoint = endpoint;
2534
2606
  this._endpoint = this._endpoint + "/20190501";
2535
2607
  if (this.logger)
2536
- this.logger.info(`WorkRequestsClient endpoint set to ${this._endpoint}`);
2608
+ this.logger.info(`SubscribersClient endpoint set to ${this._endpoint}`);
2537
2609
  }
2538
2610
  get logger() {
2539
2611
  return common.LOG.logger;
@@ -2544,7 +2616,7 @@ class WorkRequestsClient {
2544
2616
  * @param region The region of the service.
2545
2617
  */
2546
2618
  set region(region) {
2547
- this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, region, WorkRequestsClient.endpointServiceName);
2619
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SubscribersClient.serviceEndpointTemplate, region, SubscribersClient.endpointServiceName);
2548
2620
  }
2549
2621
  /**
2550
2622
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -2555,16 +2627,16 @@ class WorkRequestsClient {
2555
2627
  * @param regionId The public region ID.
2556
2628
  */
2557
2629
  set regionId(regionId) {
2558
- this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestsClient.serviceEndpointTemplate, regionId, WorkRequestsClient.endpointServiceName);
2630
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SubscribersClient.serviceEndpointTemplate, regionId, SubscribersClient.endpointServiceName);
2559
2631
  }
2560
2632
  /**
2561
- * Creates a new WorkRequestsWaiter for resources for this service.
2633
+ * Creates a new SubscribersWaiter for resources for this service.
2562
2634
  *
2563
2635
  * @param config The waiter configuration for termination and delay strategy
2564
2636
  * @return The service waiters.
2565
2637
  */
2566
2638
  createWaiters(config) {
2567
- this._waiters = new workrequests_waiter_1.WorkRequestsWaiter(this, config);
2639
+ this._waiters = new subscribers_waiter_1.SubscribersWaiter(this, config);
2568
2640
  return this._waiters;
2569
2641
  }
2570
2642
  /**
@@ -2579,45 +2651,53 @@ class WorkRequestsClient {
2579
2651
  throw Error("Waiters do not exist. Please create waiters.");
2580
2652
  }
2581
2653
  /**
2582
- * Cancels the work request.
2654
+ * Changes the subscriber compartment.
2583
2655
  * This operation does not retry by default if the user has not defined a retry configuration.
2584
- * @param CancelWorkRequestRequest
2585
- * @return CancelWorkRequestResponse
2656
+ * @param ChangeSubscriberCompartmentRequest
2657
+ * @return ChangeSubscriberCompartmentResponse
2586
2658
  * @throws OciError when an error occurs
2587
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
2659
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ChangeSubscriberCompartment.ts.html |here} to see how to use ChangeSubscriberCompartment API.
2588
2660
  */
2589
- cancelWorkRequest(cancelWorkRequestRequest) {
2661
+ changeSubscriberCompartment(changeSubscriberCompartmentRequest) {
2590
2662
  return __awaiter(this, void 0, void 0, function* () {
2591
2663
  if (this.logger)
2592
- this.logger.debug("Calling operation WorkRequestsClient#cancelWorkRequest.");
2664
+ this.logger.debug("Calling operation SubscribersClient#changeSubscriberCompartment.");
2665
+ const operationName = "changeSubscriberCompartment";
2666
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/ChangeSubscriberCompartment";
2593
2667
  const pathParams = {
2594
- "{workRequestId}": cancelWorkRequestRequest.workRequestId
2668
+ "{subscriberId}": changeSubscriberCompartmentRequest.subscriberId
2595
2669
  };
2596
2670
  const queryParams = {};
2597
2671
  let headerParams = {
2598
2672
  "Content-Type": common.Constants.APPLICATION_JSON,
2599
- "opc-retry-token": cancelWorkRequestRequest.opcRetryToken,
2600
- "if-match": cancelWorkRequestRequest.ifMatch,
2601
- "opc-request-id": cancelWorkRequestRequest.opcRequestId
2673
+ "opc-retry-token": changeSubscriberCompartmentRequest.opcRetryToken,
2674
+ "if-match": changeSubscriberCompartmentRequest.ifMatch,
2675
+ "opc-request-id": changeSubscriberCompartmentRequest.opcRequestId
2602
2676
  };
2603
2677
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2604
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
2678
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeSubscriberCompartmentRequest.retryConfiguration, specRetryConfiguration);
2605
2679
  if (this.logger)
2606
2680
  retrier.logger = this.logger;
2607
2681
  const request = yield oci_common_1.composeRequest({
2608
2682
  baseEndpoint: this._endpoint,
2609
2683
  defaultHeaders: this._defaultHeaders,
2610
- path: "/workRequests/{workRequestId}",
2611
- method: "DELETE",
2684
+ path: "/subscribers/{subscriberId}/actions/changeCompartment",
2685
+ method: "POST",
2686
+ bodyContent: common.ObjectSerializer.serialize(changeSubscriberCompartmentRequest.changeSubscriberCompartmentDetails, "ChangeSubscriberCompartmentDetails", model.ChangeSubscriberCompartmentDetails.getJsonObj),
2612
2687
  pathParams: pathParams,
2613
2688
  headerParams: headerParams,
2614
2689
  queryParams: queryParams
2615
2690
  });
2616
2691
  try {
2617
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2692
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2618
2693
  const sdkResponse = oci_common_1.composeResponse({
2619
2694
  responseObject: {},
2620
2695
  responseHeaders: [
2696
+ {
2697
+ value: response.headers.get("opc-work-request-id"),
2698
+ key: "opcWorkRequestId",
2699
+ dataType: "string"
2700
+ },
2621
2701
  {
2622
2702
  value: response.headers.get("opc-request-id"),
2623
2703
  key: "opcRequestId",
@@ -2633,61 +2713,68 @@ class WorkRequestsClient {
2633
2713
  });
2634
2714
  }
2635
2715
  /**
2636
- * Gets the status of the work request with the given identifier.
2637
- * This operation does not retry by default if the user has not defined a retry configuration.
2638
- * @param GetWorkRequestRequest
2639
- * @return GetWorkRequestResponse
2716
+ * Creates a new subscriber.
2717
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2718
+ * @param CreateSubscriberRequest
2719
+ * @return CreateSubscriberResponse
2640
2720
  * @throws OciError when an error occurs
2641
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
2721
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/CreateSubscriber.ts.html |here} to see how to use CreateSubscriber API.
2642
2722
  */
2643
- getWorkRequest(getWorkRequestRequest) {
2723
+ createSubscriber(createSubscriberRequest) {
2644
2724
  return __awaiter(this, void 0, void 0, function* () {
2645
2725
  if (this.logger)
2646
- this.logger.debug("Calling operation WorkRequestsClient#getWorkRequest.");
2647
- const pathParams = {
2648
- "{workRequestId}": getWorkRequestRequest.workRequestId
2649
- };
2726
+ this.logger.debug("Calling operation SubscribersClient#createSubscriber.");
2727
+ const operationName = "createSubscriber";
2728
+ const apiReferenceLink = "";
2729
+ const pathParams = {};
2650
2730
  const queryParams = {};
2651
2731
  let headerParams = {
2652
2732
  "Content-Type": common.Constants.APPLICATION_JSON,
2653
- "opc-request-id": getWorkRequestRequest.opcRequestId
2733
+ "opc-retry-token": createSubscriberRequest.opcRetryToken,
2734
+ "opc-request-id": createSubscriberRequest.opcRequestId
2654
2735
  };
2655
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
2656
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
2736
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2737
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSubscriberRequest.retryConfiguration, specRetryConfiguration);
2657
2738
  if (this.logger)
2658
2739
  retrier.logger = this.logger;
2659
2740
  const request = yield oci_common_1.composeRequest({
2660
2741
  baseEndpoint: this._endpoint,
2661
2742
  defaultHeaders: this._defaultHeaders,
2662
- path: "/workRequests/{workRequestId}",
2663
- method: "GET",
2743
+ path: "/subscribers",
2744
+ method: "POST",
2745
+ bodyContent: common.ObjectSerializer.serialize(createSubscriberRequest.createSubscriberDetails, "CreateSubscriberDetails", model.CreateSubscriberDetails.getJsonObj),
2664
2746
  pathParams: pathParams,
2665
2747
  headerParams: headerParams,
2666
2748
  queryParams: queryParams
2667
2749
  });
2668
2750
  try {
2669
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2751
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2670
2752
  const sdkResponse = oci_common_1.composeResponse({
2671
2753
  responseObject: {},
2672
2754
  body: yield response.json(),
2673
- bodyKey: "workRequest",
2674
- bodyModel: model.WorkRequest,
2675
- type: "model.WorkRequest",
2755
+ bodyKey: "subscriber",
2756
+ bodyModel: model.Subscriber,
2757
+ type: "model.Subscriber",
2676
2758
  responseHeaders: [
2677
2759
  {
2678
2760
  value: response.headers.get("etag"),
2679
2761
  key: "etag",
2680
2762
  dataType: "string"
2681
2763
  },
2764
+ {
2765
+ value: response.headers.get("opc-work-request-id"),
2766
+ key: "opcWorkRequestId",
2767
+ dataType: "string"
2768
+ },
2682
2769
  {
2683
2770
  value: response.headers.get("opc-request-id"),
2684
2771
  key: "opcRequestId",
2685
2772
  dataType: "string"
2686
2773
  },
2687
2774
  {
2688
- value: response.headers.get("retry-after"),
2689
- key: "retryAfter",
2690
- dataType: "number"
2775
+ value: response.headers.get("location"),
2776
+ key: "location",
2777
+ dataType: "string"
2691
2778
  }
2692
2779
  ]
2693
2780
  });
@@ -2699,61 +2786,112 @@ class WorkRequestsClient {
2699
2786
  });
2700
2787
  }
2701
2788
  /**
2702
- * Returns a (paginated) list of errors for a given work request.
2703
- *
2789
+ * Deletes the subscriber with the given identifier.
2704
2790
  * This operation does not retry by default if the user has not defined a retry configuration.
2705
- * @param ListWorkRequestErrorsRequest
2706
- * @return ListWorkRequestErrorsResponse
2791
+ * @param DeleteSubscriberRequest
2792
+ * @return DeleteSubscriberResponse
2707
2793
  * @throws OciError when an error occurs
2708
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2794
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/DeleteSubscriber.ts.html |here} to see how to use DeleteSubscriber API.
2709
2795
  */
2710
- listWorkRequestErrors(listWorkRequestErrorsRequest) {
2796
+ deleteSubscriber(deleteSubscriberRequest) {
2711
2797
  return __awaiter(this, void 0, void 0, function* () {
2712
2798
  if (this.logger)
2713
- this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestErrors.");
2799
+ this.logger.debug("Calling operation SubscribersClient#deleteSubscriber.");
2800
+ const operationName = "deleteSubscriber";
2801
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/DeleteSubscriber";
2714
2802
  const pathParams = {
2715
- "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
2716
- };
2717
- const queryParams = {
2718
- "page": listWorkRequestErrorsRequest.page,
2719
- "limit": listWorkRequestErrorsRequest.limit,
2720
- "sortOrder": listWorkRequestErrorsRequest.sortOrder,
2721
- "sortBy": listWorkRequestErrorsRequest.sortBy
2803
+ "{subscriberId}": deleteSubscriberRequest.subscriberId
2722
2804
  };
2805
+ const queryParams = {};
2723
2806
  let headerParams = {
2724
2807
  "Content-Type": common.Constants.APPLICATION_JSON,
2725
- "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
2808
+ "if-match": deleteSubscriberRequest.ifMatch,
2809
+ "opc-request-id": deleteSubscriberRequest.opcRequestId
2726
2810
  };
2727
2811
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2728
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
2812
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSubscriberRequest.retryConfiguration, specRetryConfiguration);
2729
2813
  if (this.logger)
2730
2814
  retrier.logger = this.logger;
2731
2815
  const request = yield oci_common_1.composeRequest({
2732
2816
  baseEndpoint: this._endpoint,
2733
2817
  defaultHeaders: this._defaultHeaders,
2734
- path: "/workRequests/{workRequestId}/errors",
2735
- method: "GET",
2818
+ path: "/subscribers/{subscriberId}",
2819
+ method: "DELETE",
2736
2820
  pathParams: pathParams,
2737
2821
  headerParams: headerParams,
2738
2822
  queryParams: queryParams
2739
2823
  });
2740
2824
  try {
2741
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2825
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2742
2826
  const sdkResponse = oci_common_1.composeResponse({
2743
2827
  responseObject: {},
2744
- body: yield response.json(),
2745
- bodyKey: "workRequestErrorCollection",
2746
- bodyModel: model.WorkRequestErrorCollection,
2747
- type: "model.WorkRequestErrorCollection",
2748
2828
  responseHeaders: [
2749
2829
  {
2750
- value: response.headers.get("opc-next-page"),
2751
- key: "opcNextPage",
2830
+ value: response.headers.get("opc-work-request-id"),
2831
+ key: "opcWorkRequestId",
2752
2832
  dataType: "string"
2753
2833
  },
2754
2834
  {
2755
- value: response.headers.get("opc-prev-page"),
2756
- key: "opcPrevPage",
2835
+ value: response.headers.get("opc-request-id"),
2836
+ key: "opcRequestId",
2837
+ dataType: "string"
2838
+ }
2839
+ ]
2840
+ });
2841
+ return sdkResponse;
2842
+ }
2843
+ catch (err) {
2844
+ throw err;
2845
+ }
2846
+ });
2847
+ }
2848
+ /**
2849
+ * Gets a subscriber by identifier.
2850
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2851
+ * @param GetSubscriberRequest
2852
+ * @return GetSubscriberResponse
2853
+ * @throws OciError when an error occurs
2854
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetSubscriber.ts.html |here} to see how to use GetSubscriber API.
2855
+ */
2856
+ getSubscriber(getSubscriberRequest) {
2857
+ return __awaiter(this, void 0, void 0, function* () {
2858
+ if (this.logger)
2859
+ this.logger.debug("Calling operation SubscribersClient#getSubscriber.");
2860
+ const operationName = "getSubscriber";
2861
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/GetSubscriber";
2862
+ const pathParams = {
2863
+ "{subscriberId}": getSubscriberRequest.subscriberId
2864
+ };
2865
+ const queryParams = {};
2866
+ let headerParams = {
2867
+ "Content-Type": common.Constants.APPLICATION_JSON,
2868
+ "opc-request-id": getSubscriberRequest.opcRequestId
2869
+ };
2870
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2871
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSubscriberRequest.retryConfiguration, specRetryConfiguration);
2872
+ if (this.logger)
2873
+ retrier.logger = this.logger;
2874
+ const request = yield oci_common_1.composeRequest({
2875
+ baseEndpoint: this._endpoint,
2876
+ defaultHeaders: this._defaultHeaders,
2877
+ path: "/subscribers/{subscriberId}",
2878
+ method: "GET",
2879
+ pathParams: pathParams,
2880
+ headerParams: headerParams,
2881
+ queryParams: queryParams
2882
+ });
2883
+ try {
2884
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2885
+ const sdkResponse = oci_common_1.composeResponse({
2886
+ responseObject: {},
2887
+ body: yield response.json(),
2888
+ bodyKey: "subscriber",
2889
+ bodyModel: model.Subscriber,
2890
+ type: "model.Subscriber",
2891
+ responseHeaders: [
2892
+ {
2893
+ value: response.headers.get("etag"),
2894
+ key: "etag",
2757
2895
  dataType: "string"
2758
2896
  },
2759
2897
  {
@@ -2771,53 +2909,60 @@ class WorkRequestsClient {
2771
2909
  });
2772
2910
  }
2773
2911
  /**
2774
- * Returns a (paginated) list of logs for a given work request.
2775
- *
2776
- * This operation does not retry by default if the user has not defined a retry configuration.
2777
- * @param ListWorkRequestLogsRequest
2778
- * @return ListWorkRequestLogsResponse
2912
+ * Returns a list of subscribers.
2913
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2914
+ * @param ListSubscribersRequest
2915
+ * @return ListSubscribersResponse
2779
2916
  * @throws OciError when an error occurs
2780
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2917
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListSubscribers.ts.html |here} to see how to use ListSubscribers API.
2781
2918
  */
2782
- listWorkRequestLogs(listWorkRequestLogsRequest) {
2919
+ listSubscribers(listSubscribersRequest) {
2783
2920
  return __awaiter(this, void 0, void 0, function* () {
2784
2921
  if (this.logger)
2785
- this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestLogs.");
2786
- const pathParams = {
2787
- "{workRequestId}": listWorkRequestLogsRequest.workRequestId
2788
- };
2922
+ this.logger.debug("Calling operation SubscribersClient#listSubscribers.");
2923
+ const operationName = "listSubscribers";
2924
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/ListSubscribers";
2925
+ const pathParams = {};
2789
2926
  const queryParams = {
2790
- "page": listWorkRequestLogsRequest.page,
2791
- "limit": listWorkRequestLogsRequest.limit,
2792
- "sortOrder": listWorkRequestLogsRequest.sortOrder,
2793
- "sortBy": listWorkRequestLogsRequest.sortBy
2927
+ "compartmentId": listSubscribersRequest.compartmentId,
2928
+ "displayName": listSubscribersRequest.displayName,
2929
+ "lifecycleState": listSubscribersRequest.lifecycleState,
2930
+ "limit": listSubscribersRequest.limit,
2931
+ "page": listSubscribersRequest.page,
2932
+ "sortOrder": listSubscribersRequest.sortOrder,
2933
+ "sortBy": listSubscribersRequest.sortBy
2794
2934
  };
2795
2935
  let headerParams = {
2796
2936
  "Content-Type": common.Constants.APPLICATION_JSON,
2797
- "opc-request-id": listWorkRequestLogsRequest.opcRequestId
2937
+ "opc-request-id": listSubscribersRequest.opcRequestId
2798
2938
  };
2799
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
2800
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
2939
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2940
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSubscribersRequest.retryConfiguration, specRetryConfiguration);
2801
2941
  if (this.logger)
2802
2942
  retrier.logger = this.logger;
2803
2943
  const request = yield oci_common_1.composeRequest({
2804
2944
  baseEndpoint: this._endpoint,
2805
2945
  defaultHeaders: this._defaultHeaders,
2806
- path: "/workRequests/{workRequestId}/logs",
2946
+ path: "/subscribers",
2807
2947
  method: "GET",
2808
2948
  pathParams: pathParams,
2809
2949
  headerParams: headerParams,
2810
2950
  queryParams: queryParams
2811
2951
  });
2812
2952
  try {
2813
- const response = yield retrier.makeServiceCall(this._httpClient, request);
2953
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2814
2954
  const sdkResponse = oci_common_1.composeResponse({
2815
2955
  responseObject: {},
2816
2956
  body: yield response.json(),
2817
- bodyKey: "workRequestLogCollection",
2818
- bodyModel: model.WorkRequestLogCollection,
2819
- type: "model.WorkRequestLogCollection",
2957
+ bodyKey: "subscriberCollection",
2958
+ bodyModel: model.SubscriberCollection,
2959
+ type: "model.SubscriberCollection",
2820
2960
  responseHeaders: [
2961
+ {
2962
+ value: response.headers.get("opc-request-id"),
2963
+ key: "opcRequestId",
2964
+ dataType: "string"
2965
+ },
2821
2966
  {
2822
2967
  value: response.headers.get("opc-next-page"),
2823
2968
  key: "opcNextPage",
@@ -2827,11 +2972,6 @@ class WorkRequestsClient {
2827
2972
  value: response.headers.get("opc-prev-page"),
2828
2973
  key: "opcPrevPage",
2829
2974
  dataType: "string"
2830
- },
2831
- {
2832
- value: response.headers.get("opc-request-id"),
2833
- key: "opcRequestId",
2834
- dataType: "string"
2835
2975
  }
2836
2976
  ]
2837
2977
  });
@@ -2843,32 +2983,972 @@ class WorkRequestsClient {
2843
2983
  });
2844
2984
  }
2845
2985
  /**
2846
- * Lists the work requests in a compartment.
2847
- *
2986
+ * Updates the subscriber with the given identifier.
2848
2987
  * This operation does not retry by default if the user has not defined a retry configuration.
2849
- * @param ListWorkRequestsRequest
2850
- * @return ListWorkRequestsResponse
2988
+ * @param UpdateSubscriberRequest
2989
+ * @return UpdateSubscriberResponse
2851
2990
  * @throws OciError when an error occurs
2852
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.27.0/apigateway/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2991
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/UpdateSubscriber.ts.html |here} to see how to use UpdateSubscriber API.
2853
2992
  */
2854
- listWorkRequests(listWorkRequestsRequest) {
2993
+ updateSubscriber(updateSubscriberRequest) {
2855
2994
  return __awaiter(this, void 0, void 0, function* () {
2856
2995
  if (this.logger)
2857
- this.logger.debug("Calling operation WorkRequestsClient#listWorkRequests.");
2858
- const pathParams = {};
2859
- const queryParams = {
2860
- "compartmentId": listWorkRequestsRequest.compartmentId,
2861
- "resourceId": listWorkRequestsRequest.resourceId,
2862
- "page": listWorkRequestsRequest.page,
2863
- "limit": listWorkRequestsRequest.limit,
2864
- "sortOrder": listWorkRequestsRequest.sortOrder,
2865
- "sortBy": listWorkRequestsRequest.sortBy
2996
+ this.logger.debug("Calling operation SubscribersClient#updateSubscriber.");
2997
+ const operationName = "updateSubscriber";
2998
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/UpdateSubscriber";
2999
+ const pathParams = {
3000
+ "{subscriberId}": updateSubscriberRequest.subscriberId
2866
3001
  };
3002
+ const queryParams = {};
2867
3003
  let headerParams = {
2868
3004
  "Content-Type": common.Constants.APPLICATION_JSON,
2869
- "opc-request-id": listWorkRequestsRequest.opcRequestId
3005
+ "if-match": updateSubscriberRequest.ifMatch,
3006
+ "opc-request-id": updateSubscriberRequest.opcRequestId
2870
3007
  };
2871
3008
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3009
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSubscriberRequest.retryConfiguration, specRetryConfiguration);
3010
+ if (this.logger)
3011
+ retrier.logger = this.logger;
3012
+ const request = yield oci_common_1.composeRequest({
3013
+ baseEndpoint: this._endpoint,
3014
+ defaultHeaders: this._defaultHeaders,
3015
+ path: "/subscribers/{subscriberId}",
3016
+ method: "PUT",
3017
+ bodyContent: common.ObjectSerializer.serialize(updateSubscriberRequest.updateSubscriberDetails, "UpdateSubscriberDetails", model.UpdateSubscriberDetails.getJsonObj),
3018
+ pathParams: pathParams,
3019
+ headerParams: headerParams,
3020
+ queryParams: queryParams
3021
+ });
3022
+ try {
3023
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3024
+ const sdkResponse = oci_common_1.composeResponse({
3025
+ responseObject: {},
3026
+ responseHeaders: [
3027
+ {
3028
+ value: response.headers.get("opc-work-request-id"),
3029
+ key: "opcWorkRequestId",
3030
+ dataType: "string"
3031
+ },
3032
+ {
3033
+ value: response.headers.get("opc-request-id"),
3034
+ key: "opcRequestId",
3035
+ dataType: "string"
3036
+ }
3037
+ ]
3038
+ });
3039
+ return sdkResponse;
3040
+ }
3041
+ catch (err) {
3042
+ throw err;
3043
+ }
3044
+ });
3045
+ }
3046
+ }
3047
+ exports.SubscribersClient = SubscribersClient;
3048
+ SubscribersClient.serviceEndpointTemplate = "https://apigateway.{region}.oci.{secondLevelDomain}";
3049
+ SubscribersClient.endpointServiceName = "";
3050
+ var UsagePlansApiKeys;
3051
+ (function (UsagePlansApiKeys) {
3052
+ })(UsagePlansApiKeys = exports.UsagePlansApiKeys || (exports.UsagePlansApiKeys = {}));
3053
+ /**
3054
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
3055
+ */
3056
+ class UsagePlansClient {
3057
+ constructor(params, clientConfiguration) {
3058
+ this["_endpoint"] = "";
3059
+ this["_defaultHeaders"] = {};
3060
+ this._circuitBreaker = null;
3061
+ this._httpOptions = undefined;
3062
+ this.targetService = "UsagePlans";
3063
+ const requestSigner = params.authenticationDetailsProvider
3064
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
3065
+ : null;
3066
+ if (clientConfiguration) {
3067
+ this._clientConfiguration = clientConfiguration;
3068
+ this._circuitBreaker = clientConfiguration.circuitBreaker
3069
+ ? clientConfiguration.circuitBreaker.circuit
3070
+ : null;
3071
+ this._httpOptions = clientConfiguration.httpOptions
3072
+ ? clientConfiguration.httpOptions
3073
+ : undefined;
3074
+ }
3075
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
3076
+ const specCircuitBreakerEnabled = true;
3077
+ if (!this._circuitBreaker &&
3078
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
3079
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
3080
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
3081
+ }
3082
+ this._httpClient =
3083
+ params.httpClient ||
3084
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
3085
+ if (params.authenticationDetailsProvider &&
3086
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
3087
+ const provider = params.authenticationDetailsProvider;
3088
+ if (provider.getRegion()) {
3089
+ this.region = provider.getRegion();
3090
+ }
3091
+ }
3092
+ }
3093
+ /**
3094
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
3095
+ */
3096
+ get endpoint() {
3097
+ return this._endpoint;
3098
+ }
3099
+ /**
3100
+ * Sets the endpoint to call (ex, https://www.example.com).
3101
+ * @param endpoint The endpoint of the service.
3102
+ */
3103
+ set endpoint(endpoint) {
3104
+ this._endpoint = endpoint;
3105
+ this._endpoint = this._endpoint + "/20190501";
3106
+ if (this.logger)
3107
+ this.logger.info(`UsagePlansClient endpoint set to ${this._endpoint}`);
3108
+ }
3109
+ get logger() {
3110
+ return common.LOG.logger;
3111
+ }
3112
+ /**
3113
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
3114
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
3115
+ * @param region The region of the service.
3116
+ */
3117
+ set region(region) {
3118
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(UsagePlansClient.serviceEndpointTemplate, region, UsagePlansClient.endpointServiceName);
3119
+ }
3120
+ /**
3121
+ * Sets the regionId to call (ex, 'us-phoenix-1').
3122
+ *
3123
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
3124
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
3125
+ * and then call {@link #endpoint(String) endpoint}.
3126
+ * @param regionId The public region ID.
3127
+ */
3128
+ set regionId(regionId) {
3129
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(UsagePlansClient.serviceEndpointTemplate, regionId, UsagePlansClient.endpointServiceName);
3130
+ }
3131
+ /**
3132
+ * Creates a new UsagePlansWaiter for resources for this service.
3133
+ *
3134
+ * @param config The waiter configuration for termination and delay strategy
3135
+ * @return The service waiters.
3136
+ */
3137
+ createWaiters(config) {
3138
+ this._waiters = new usageplans_waiter_1.UsagePlansWaiter(this, config);
3139
+ return this._waiters;
3140
+ }
3141
+ /**
3142
+ * Gets the waiters available for resources for this service.
3143
+ *
3144
+ * @return The service waiters.
3145
+ */
3146
+ getWaiters() {
3147
+ if (this._waiters) {
3148
+ return this._waiters;
3149
+ }
3150
+ throw Error("Waiters do not exist. Please create waiters.");
3151
+ }
3152
+ /**
3153
+ * Changes the usage plan compartment.
3154
+ * This operation does not retry by default if the user has not defined a retry configuration.
3155
+ * @param ChangeUsagePlanCompartmentRequest
3156
+ * @return ChangeUsagePlanCompartmentResponse
3157
+ * @throws OciError when an error occurs
3158
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ChangeUsagePlanCompartment.ts.html |here} to see how to use ChangeUsagePlanCompartment API.
3159
+ */
3160
+ changeUsagePlanCompartment(changeUsagePlanCompartmentRequest) {
3161
+ return __awaiter(this, void 0, void 0, function* () {
3162
+ if (this.logger)
3163
+ this.logger.debug("Calling operation UsagePlansClient#changeUsagePlanCompartment.");
3164
+ const operationName = "changeUsagePlanCompartment";
3165
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/ChangeUsagePlanCompartment";
3166
+ const pathParams = {
3167
+ "{usagePlanId}": changeUsagePlanCompartmentRequest.usagePlanId
3168
+ };
3169
+ const queryParams = {};
3170
+ let headerParams = {
3171
+ "Content-Type": common.Constants.APPLICATION_JSON,
3172
+ "opc-retry-token": changeUsagePlanCompartmentRequest.opcRetryToken,
3173
+ "if-match": changeUsagePlanCompartmentRequest.ifMatch,
3174
+ "opc-request-id": changeUsagePlanCompartmentRequest.opcRequestId
3175
+ };
3176
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3177
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeUsagePlanCompartmentRequest.retryConfiguration, specRetryConfiguration);
3178
+ if (this.logger)
3179
+ retrier.logger = this.logger;
3180
+ const request = yield oci_common_1.composeRequest({
3181
+ baseEndpoint: this._endpoint,
3182
+ defaultHeaders: this._defaultHeaders,
3183
+ path: "/usagePlans/{usagePlanId}/actions/changeCompartment",
3184
+ method: "POST",
3185
+ bodyContent: common.ObjectSerializer.serialize(changeUsagePlanCompartmentRequest.changeUsagePlanCompartmentDetails, "ChangeUsagePlanCompartmentDetails", model.ChangeUsagePlanCompartmentDetails.getJsonObj),
3186
+ pathParams: pathParams,
3187
+ headerParams: headerParams,
3188
+ queryParams: queryParams
3189
+ });
3190
+ try {
3191
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3192
+ const sdkResponse = oci_common_1.composeResponse({
3193
+ responseObject: {},
3194
+ responseHeaders: [
3195
+ {
3196
+ value: response.headers.get("opc-work-request-id"),
3197
+ key: "opcWorkRequestId",
3198
+ dataType: "string"
3199
+ },
3200
+ {
3201
+ value: response.headers.get("opc-request-id"),
3202
+ key: "opcRequestId",
3203
+ dataType: "string"
3204
+ }
3205
+ ]
3206
+ });
3207
+ return sdkResponse;
3208
+ }
3209
+ catch (err) {
3210
+ throw err;
3211
+ }
3212
+ });
3213
+ }
3214
+ /**
3215
+ * Creates a new usage plan.
3216
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3217
+ * @param CreateUsagePlanRequest
3218
+ * @return CreateUsagePlanResponse
3219
+ * @throws OciError when an error occurs
3220
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/CreateUsagePlan.ts.html |here} to see how to use CreateUsagePlan API.
3221
+ */
3222
+ createUsagePlan(createUsagePlanRequest) {
3223
+ return __awaiter(this, void 0, void 0, function* () {
3224
+ if (this.logger)
3225
+ this.logger.debug("Calling operation UsagePlansClient#createUsagePlan.");
3226
+ const operationName = "createUsagePlan";
3227
+ const apiReferenceLink = "";
3228
+ const pathParams = {};
3229
+ const queryParams = {};
3230
+ let headerParams = {
3231
+ "Content-Type": common.Constants.APPLICATION_JSON,
3232
+ "opc-retry-token": createUsagePlanRequest.opcRetryToken,
3233
+ "opc-request-id": createUsagePlanRequest.opcRequestId
3234
+ };
3235
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3236
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createUsagePlanRequest.retryConfiguration, specRetryConfiguration);
3237
+ if (this.logger)
3238
+ retrier.logger = this.logger;
3239
+ const request = yield oci_common_1.composeRequest({
3240
+ baseEndpoint: this._endpoint,
3241
+ defaultHeaders: this._defaultHeaders,
3242
+ path: "/usagePlans",
3243
+ method: "POST",
3244
+ bodyContent: common.ObjectSerializer.serialize(createUsagePlanRequest.createUsagePlanDetails, "CreateUsagePlanDetails", model.CreateUsagePlanDetails.getJsonObj),
3245
+ pathParams: pathParams,
3246
+ headerParams: headerParams,
3247
+ queryParams: queryParams
3248
+ });
3249
+ try {
3250
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3251
+ const sdkResponse = oci_common_1.composeResponse({
3252
+ responseObject: {},
3253
+ body: yield response.json(),
3254
+ bodyKey: "usagePlan",
3255
+ bodyModel: model.UsagePlan,
3256
+ type: "model.UsagePlan",
3257
+ responseHeaders: [
3258
+ {
3259
+ value: response.headers.get("etag"),
3260
+ key: "etag",
3261
+ dataType: "string"
3262
+ },
3263
+ {
3264
+ value: response.headers.get("opc-work-request-id"),
3265
+ key: "opcWorkRequestId",
3266
+ dataType: "string"
3267
+ },
3268
+ {
3269
+ value: response.headers.get("opc-request-id"),
3270
+ key: "opcRequestId",
3271
+ dataType: "string"
3272
+ },
3273
+ {
3274
+ value: response.headers.get("location"),
3275
+ key: "location",
3276
+ dataType: "string"
3277
+ }
3278
+ ]
3279
+ });
3280
+ return sdkResponse;
3281
+ }
3282
+ catch (err) {
3283
+ throw err;
3284
+ }
3285
+ });
3286
+ }
3287
+ /**
3288
+ * Deletes the usage plan with the given identifier.
3289
+ * This operation does not retry by default if the user has not defined a retry configuration.
3290
+ * @param DeleteUsagePlanRequest
3291
+ * @return DeleteUsagePlanResponse
3292
+ * @throws OciError when an error occurs
3293
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/DeleteUsagePlan.ts.html |here} to see how to use DeleteUsagePlan API.
3294
+ */
3295
+ deleteUsagePlan(deleteUsagePlanRequest) {
3296
+ return __awaiter(this, void 0, void 0, function* () {
3297
+ if (this.logger)
3298
+ this.logger.debug("Calling operation UsagePlansClient#deleteUsagePlan.");
3299
+ const operationName = "deleteUsagePlan";
3300
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/DeleteUsagePlan";
3301
+ const pathParams = {
3302
+ "{usagePlanId}": deleteUsagePlanRequest.usagePlanId
3303
+ };
3304
+ const queryParams = {};
3305
+ let headerParams = {
3306
+ "Content-Type": common.Constants.APPLICATION_JSON,
3307
+ "if-match": deleteUsagePlanRequest.ifMatch,
3308
+ "opc-request-id": deleteUsagePlanRequest.opcRequestId
3309
+ };
3310
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3311
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteUsagePlanRequest.retryConfiguration, specRetryConfiguration);
3312
+ if (this.logger)
3313
+ retrier.logger = this.logger;
3314
+ const request = yield oci_common_1.composeRequest({
3315
+ baseEndpoint: this._endpoint,
3316
+ defaultHeaders: this._defaultHeaders,
3317
+ path: "/usagePlans/{usagePlanId}",
3318
+ method: "DELETE",
3319
+ pathParams: pathParams,
3320
+ headerParams: headerParams,
3321
+ queryParams: queryParams
3322
+ });
3323
+ try {
3324
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3325
+ const sdkResponse = oci_common_1.composeResponse({
3326
+ responseObject: {},
3327
+ responseHeaders: [
3328
+ {
3329
+ value: response.headers.get("opc-work-request-id"),
3330
+ key: "opcWorkRequestId",
3331
+ dataType: "string"
3332
+ },
3333
+ {
3334
+ value: response.headers.get("opc-request-id"),
3335
+ key: "opcRequestId",
3336
+ dataType: "string"
3337
+ }
3338
+ ]
3339
+ });
3340
+ return sdkResponse;
3341
+ }
3342
+ catch (err) {
3343
+ throw err;
3344
+ }
3345
+ });
3346
+ }
3347
+ /**
3348
+ * Gets a usage plan by identifier.
3349
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3350
+ * @param GetUsagePlanRequest
3351
+ * @return GetUsagePlanResponse
3352
+ * @throws OciError when an error occurs
3353
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetUsagePlan.ts.html |here} to see how to use GetUsagePlan API.
3354
+ */
3355
+ getUsagePlan(getUsagePlanRequest) {
3356
+ return __awaiter(this, void 0, void 0, function* () {
3357
+ if (this.logger)
3358
+ this.logger.debug("Calling operation UsagePlansClient#getUsagePlan.");
3359
+ const operationName = "getUsagePlan";
3360
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/GetUsagePlan";
3361
+ const pathParams = {
3362
+ "{usagePlanId}": getUsagePlanRequest.usagePlanId
3363
+ };
3364
+ const queryParams = {};
3365
+ let headerParams = {
3366
+ "Content-Type": common.Constants.APPLICATION_JSON,
3367
+ "opc-request-id": getUsagePlanRequest.opcRequestId
3368
+ };
3369
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3370
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getUsagePlanRequest.retryConfiguration, specRetryConfiguration);
3371
+ if (this.logger)
3372
+ retrier.logger = this.logger;
3373
+ const request = yield oci_common_1.composeRequest({
3374
+ baseEndpoint: this._endpoint,
3375
+ defaultHeaders: this._defaultHeaders,
3376
+ path: "/usagePlans/{usagePlanId}",
3377
+ method: "GET",
3378
+ pathParams: pathParams,
3379
+ headerParams: headerParams,
3380
+ queryParams: queryParams
3381
+ });
3382
+ try {
3383
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3384
+ const sdkResponse = oci_common_1.composeResponse({
3385
+ responseObject: {},
3386
+ body: yield response.json(),
3387
+ bodyKey: "usagePlan",
3388
+ bodyModel: model.UsagePlan,
3389
+ type: "model.UsagePlan",
3390
+ responseHeaders: [
3391
+ {
3392
+ value: response.headers.get("etag"),
3393
+ key: "etag",
3394
+ dataType: "string"
3395
+ },
3396
+ {
3397
+ value: response.headers.get("opc-request-id"),
3398
+ key: "opcRequestId",
3399
+ dataType: "string"
3400
+ }
3401
+ ]
3402
+ });
3403
+ return sdkResponse;
3404
+ }
3405
+ catch (err) {
3406
+ throw err;
3407
+ }
3408
+ });
3409
+ }
3410
+ /**
3411
+ * Returns a list of usage plans.
3412
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3413
+ * @param ListUsagePlansRequest
3414
+ * @return ListUsagePlansResponse
3415
+ * @throws OciError when an error occurs
3416
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListUsagePlans.ts.html |here} to see how to use ListUsagePlans API.
3417
+ */
3418
+ listUsagePlans(listUsagePlansRequest) {
3419
+ return __awaiter(this, void 0, void 0, function* () {
3420
+ if (this.logger)
3421
+ this.logger.debug("Calling operation UsagePlansClient#listUsagePlans.");
3422
+ const operationName = "listUsagePlans";
3423
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/ListUsagePlans";
3424
+ const pathParams = {};
3425
+ const queryParams = {
3426
+ "compartmentId": listUsagePlansRequest.compartmentId,
3427
+ "displayName": listUsagePlansRequest.displayName,
3428
+ "lifecycleState": listUsagePlansRequest.lifecycleState,
3429
+ "limit": listUsagePlansRequest.limit,
3430
+ "page": listUsagePlansRequest.page,
3431
+ "sortOrder": listUsagePlansRequest.sortOrder,
3432
+ "sortBy": listUsagePlansRequest.sortBy
3433
+ };
3434
+ let headerParams = {
3435
+ "Content-Type": common.Constants.APPLICATION_JSON,
3436
+ "opc-request-id": listUsagePlansRequest.opcRequestId
3437
+ };
3438
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3439
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listUsagePlansRequest.retryConfiguration, specRetryConfiguration);
3440
+ if (this.logger)
3441
+ retrier.logger = this.logger;
3442
+ const request = yield oci_common_1.composeRequest({
3443
+ baseEndpoint: this._endpoint,
3444
+ defaultHeaders: this._defaultHeaders,
3445
+ path: "/usagePlans",
3446
+ method: "GET",
3447
+ pathParams: pathParams,
3448
+ headerParams: headerParams,
3449
+ queryParams: queryParams
3450
+ });
3451
+ try {
3452
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3453
+ const sdkResponse = oci_common_1.composeResponse({
3454
+ responseObject: {},
3455
+ body: yield response.json(),
3456
+ bodyKey: "usagePlanCollection",
3457
+ bodyModel: model.UsagePlanCollection,
3458
+ type: "model.UsagePlanCollection",
3459
+ responseHeaders: [
3460
+ {
3461
+ value: response.headers.get("opc-request-id"),
3462
+ key: "opcRequestId",
3463
+ dataType: "string"
3464
+ },
3465
+ {
3466
+ value: response.headers.get("opc-next-page"),
3467
+ key: "opcNextPage",
3468
+ dataType: "string"
3469
+ },
3470
+ {
3471
+ value: response.headers.get("opc-prev-page"),
3472
+ key: "opcPrevPage",
3473
+ dataType: "string"
3474
+ }
3475
+ ]
3476
+ });
3477
+ return sdkResponse;
3478
+ }
3479
+ catch (err) {
3480
+ throw err;
3481
+ }
3482
+ });
3483
+ }
3484
+ /**
3485
+ * Updates the usage plan with the given identifier.
3486
+ * This operation does not retry by default if the user has not defined a retry configuration.
3487
+ * @param UpdateUsagePlanRequest
3488
+ * @return UpdateUsagePlanResponse
3489
+ * @throws OciError when an error occurs
3490
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/UpdateUsagePlan.ts.html |here} to see how to use UpdateUsagePlan API.
3491
+ */
3492
+ updateUsagePlan(updateUsagePlanRequest) {
3493
+ return __awaiter(this, void 0, void 0, function* () {
3494
+ if (this.logger)
3495
+ this.logger.debug("Calling operation UsagePlansClient#updateUsagePlan.");
3496
+ const operationName = "updateUsagePlan";
3497
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/UpdateUsagePlan";
3498
+ const pathParams = {
3499
+ "{usagePlanId}": updateUsagePlanRequest.usagePlanId
3500
+ };
3501
+ const queryParams = {};
3502
+ let headerParams = {
3503
+ "Content-Type": common.Constants.APPLICATION_JSON,
3504
+ "if-match": updateUsagePlanRequest.ifMatch,
3505
+ "opc-request-id": updateUsagePlanRequest.opcRequestId
3506
+ };
3507
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3508
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateUsagePlanRequest.retryConfiguration, specRetryConfiguration);
3509
+ if (this.logger)
3510
+ retrier.logger = this.logger;
3511
+ const request = yield oci_common_1.composeRequest({
3512
+ baseEndpoint: this._endpoint,
3513
+ defaultHeaders: this._defaultHeaders,
3514
+ path: "/usagePlans/{usagePlanId}",
3515
+ method: "PUT",
3516
+ bodyContent: common.ObjectSerializer.serialize(updateUsagePlanRequest.updateUsagePlanDetails, "UpdateUsagePlanDetails", model.UpdateUsagePlanDetails.getJsonObj),
3517
+ pathParams: pathParams,
3518
+ headerParams: headerParams,
3519
+ queryParams: queryParams
3520
+ });
3521
+ try {
3522
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3523
+ const sdkResponse = oci_common_1.composeResponse({
3524
+ responseObject: {},
3525
+ responseHeaders: [
3526
+ {
3527
+ value: response.headers.get("opc-work-request-id"),
3528
+ key: "opcWorkRequestId",
3529
+ dataType: "string"
3530
+ },
3531
+ {
3532
+ value: response.headers.get("opc-request-id"),
3533
+ key: "opcRequestId",
3534
+ dataType: "string"
3535
+ }
3536
+ ]
3537
+ });
3538
+ return sdkResponse;
3539
+ }
3540
+ catch (err) {
3541
+ throw err;
3542
+ }
3543
+ });
3544
+ }
3545
+ }
3546
+ exports.UsagePlansClient = UsagePlansClient;
3547
+ UsagePlansClient.serviceEndpointTemplate = "https://apigateway.{region}.oci.{secondLevelDomain}";
3548
+ UsagePlansClient.endpointServiceName = "";
3549
+ var WorkRequestsApiKeys;
3550
+ (function (WorkRequestsApiKeys) {
3551
+ })(WorkRequestsApiKeys = exports.WorkRequestsApiKeys || (exports.WorkRequestsApiKeys = {}));
3552
+ /**
3553
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
3554
+ */
3555
+ class WorkRequestsClient {
3556
+ constructor(params, clientConfiguration) {
3557
+ this["_endpoint"] = "";
3558
+ this["_defaultHeaders"] = {};
3559
+ this._circuitBreaker = null;
3560
+ this._httpOptions = undefined;
3561
+ this.targetService = "WorkRequests";
3562
+ const requestSigner = params.authenticationDetailsProvider
3563
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
3564
+ : null;
3565
+ if (clientConfiguration) {
3566
+ this._clientConfiguration = clientConfiguration;
3567
+ this._circuitBreaker = clientConfiguration.circuitBreaker
3568
+ ? clientConfiguration.circuitBreaker.circuit
3569
+ : null;
3570
+ this._httpOptions = clientConfiguration.httpOptions
3571
+ ? clientConfiguration.httpOptions
3572
+ : undefined;
3573
+ }
3574
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
3575
+ const specCircuitBreakerEnabled = true;
3576
+ if (!this._circuitBreaker &&
3577
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
3578
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
3579
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
3580
+ }
3581
+ this._httpClient =
3582
+ params.httpClient ||
3583
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
3584
+ if (params.authenticationDetailsProvider &&
3585
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
3586
+ const provider = params.authenticationDetailsProvider;
3587
+ if (provider.getRegion()) {
3588
+ this.region = provider.getRegion();
3589
+ }
3590
+ }
3591
+ }
3592
+ /**
3593
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
3594
+ */
3595
+ get endpoint() {
3596
+ return this._endpoint;
3597
+ }
3598
+ /**
3599
+ * Sets the endpoint to call (ex, https://www.example.com).
3600
+ * @param endpoint The endpoint of the service.
3601
+ */
3602
+ set endpoint(endpoint) {
3603
+ this._endpoint = endpoint;
3604
+ this._endpoint = this._endpoint + "/20190501";
3605
+ if (this.logger)
3606
+ this.logger.info(`WorkRequestsClient endpoint set to ${this._endpoint}`);
3607
+ }
3608
+ get logger() {
3609
+ return common.LOG.logger;
3610
+ }
3611
+ /**
3612
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
3613
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
3614
+ * @param region The region of the service.
3615
+ */
3616
+ set region(region) {
3617
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, region, WorkRequestsClient.endpointServiceName);
3618
+ }
3619
+ /**
3620
+ * Sets the regionId to call (ex, 'us-phoenix-1').
3621
+ *
3622
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
3623
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
3624
+ * and then call {@link #endpoint(String) endpoint}.
3625
+ * @param regionId The public region ID.
3626
+ */
3627
+ set regionId(regionId) {
3628
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestsClient.serviceEndpointTemplate, regionId, WorkRequestsClient.endpointServiceName);
3629
+ }
3630
+ /**
3631
+ * Creates a new WorkRequestsWaiter for resources for this service.
3632
+ *
3633
+ * @param config The waiter configuration for termination and delay strategy
3634
+ * @return The service waiters.
3635
+ */
3636
+ createWaiters(config) {
3637
+ this._waiters = new workrequests_waiter_1.WorkRequestsWaiter(this, config);
3638
+ return this._waiters;
3639
+ }
3640
+ /**
3641
+ * Gets the waiters available for resources for this service.
3642
+ *
3643
+ * @return The service waiters.
3644
+ */
3645
+ getWaiters() {
3646
+ if (this._waiters) {
3647
+ return this._waiters;
3648
+ }
3649
+ throw Error("Waiters do not exist. Please create waiters.");
3650
+ }
3651
+ /**
3652
+ * Cancels the work request.
3653
+ * This operation does not retry by default if the user has not defined a retry configuration.
3654
+ * @param CancelWorkRequestRequest
3655
+ * @return CancelWorkRequestResponse
3656
+ * @throws OciError when an error occurs
3657
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
3658
+ */
3659
+ cancelWorkRequest(cancelWorkRequestRequest) {
3660
+ return __awaiter(this, void 0, void 0, function* () {
3661
+ if (this.logger)
3662
+ this.logger.debug("Calling operation WorkRequestsClient#cancelWorkRequest.");
3663
+ const operationName = "cancelWorkRequest";
3664
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequest/CancelWorkRequest";
3665
+ const pathParams = {
3666
+ "{workRequestId}": cancelWorkRequestRequest.workRequestId
3667
+ };
3668
+ const queryParams = {};
3669
+ let headerParams = {
3670
+ "Content-Type": common.Constants.APPLICATION_JSON,
3671
+ "opc-retry-token": cancelWorkRequestRequest.opcRetryToken,
3672
+ "if-match": cancelWorkRequestRequest.ifMatch,
3673
+ "opc-request-id": cancelWorkRequestRequest.opcRequestId
3674
+ };
3675
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3676
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
3677
+ if (this.logger)
3678
+ retrier.logger = this.logger;
3679
+ const request = yield oci_common_1.composeRequest({
3680
+ baseEndpoint: this._endpoint,
3681
+ defaultHeaders: this._defaultHeaders,
3682
+ path: "/workRequests/{workRequestId}",
3683
+ method: "DELETE",
3684
+ pathParams: pathParams,
3685
+ headerParams: headerParams,
3686
+ queryParams: queryParams
3687
+ });
3688
+ try {
3689
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3690
+ const sdkResponse = oci_common_1.composeResponse({
3691
+ responseObject: {},
3692
+ responseHeaders: [
3693
+ {
3694
+ value: response.headers.get("opc-request-id"),
3695
+ key: "opcRequestId",
3696
+ dataType: "string"
3697
+ }
3698
+ ]
3699
+ });
3700
+ return sdkResponse;
3701
+ }
3702
+ catch (err) {
3703
+ throw err;
3704
+ }
3705
+ });
3706
+ }
3707
+ /**
3708
+ * Gets the status of the work request with the given identifier.
3709
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3710
+ * @param GetWorkRequestRequest
3711
+ * @return GetWorkRequestResponse
3712
+ * @throws OciError when an error occurs
3713
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
3714
+ */
3715
+ getWorkRequest(getWorkRequestRequest) {
3716
+ return __awaiter(this, void 0, void 0, function* () {
3717
+ if (this.logger)
3718
+ this.logger.debug("Calling operation WorkRequestsClient#getWorkRequest.");
3719
+ const operationName = "getWorkRequest";
3720
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequest/GetWorkRequest";
3721
+ const pathParams = {
3722
+ "{workRequestId}": getWorkRequestRequest.workRequestId
3723
+ };
3724
+ const queryParams = {};
3725
+ let headerParams = {
3726
+ "Content-Type": common.Constants.APPLICATION_JSON,
3727
+ "opc-request-id": getWorkRequestRequest.opcRequestId
3728
+ };
3729
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3730
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
3731
+ if (this.logger)
3732
+ retrier.logger = this.logger;
3733
+ const request = yield oci_common_1.composeRequest({
3734
+ baseEndpoint: this._endpoint,
3735
+ defaultHeaders: this._defaultHeaders,
3736
+ path: "/workRequests/{workRequestId}",
3737
+ method: "GET",
3738
+ pathParams: pathParams,
3739
+ headerParams: headerParams,
3740
+ queryParams: queryParams
3741
+ });
3742
+ try {
3743
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3744
+ const sdkResponse = oci_common_1.composeResponse({
3745
+ responseObject: {},
3746
+ body: yield response.json(),
3747
+ bodyKey: "workRequest",
3748
+ bodyModel: model.WorkRequest,
3749
+ type: "model.WorkRequest",
3750
+ responseHeaders: [
3751
+ {
3752
+ value: response.headers.get("etag"),
3753
+ key: "etag",
3754
+ dataType: "string"
3755
+ },
3756
+ {
3757
+ value: response.headers.get("opc-request-id"),
3758
+ key: "opcRequestId",
3759
+ dataType: "string"
3760
+ },
3761
+ {
3762
+ value: response.headers.get("retry-after"),
3763
+ key: "retryAfter",
3764
+ dataType: "number"
3765
+ }
3766
+ ]
3767
+ });
3768
+ return sdkResponse;
3769
+ }
3770
+ catch (err) {
3771
+ throw err;
3772
+ }
3773
+ });
3774
+ }
3775
+ /**
3776
+ * Returns a (paginated) list of errors for a given work request.
3777
+ *
3778
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3779
+ * @param ListWorkRequestErrorsRequest
3780
+ * @return ListWorkRequestErrorsResponse
3781
+ * @throws OciError when an error occurs
3782
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3783
+ */
3784
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
3785
+ return __awaiter(this, void 0, void 0, function* () {
3786
+ if (this.logger)
3787
+ this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestErrors.");
3788
+ const operationName = "listWorkRequestErrors";
3789
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequestError/ListWorkRequestErrors";
3790
+ const pathParams = {
3791
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
3792
+ };
3793
+ const queryParams = {
3794
+ "page": listWorkRequestErrorsRequest.page,
3795
+ "limit": listWorkRequestErrorsRequest.limit,
3796
+ "sortOrder": listWorkRequestErrorsRequest.sortOrder,
3797
+ "sortBy": listWorkRequestErrorsRequest.sortBy
3798
+ };
3799
+ let headerParams = {
3800
+ "Content-Type": common.Constants.APPLICATION_JSON,
3801
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
3802
+ };
3803
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3804
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
3805
+ if (this.logger)
3806
+ retrier.logger = this.logger;
3807
+ const request = yield oci_common_1.composeRequest({
3808
+ baseEndpoint: this._endpoint,
3809
+ defaultHeaders: this._defaultHeaders,
3810
+ path: "/workRequests/{workRequestId}/errors",
3811
+ method: "GET",
3812
+ pathParams: pathParams,
3813
+ headerParams: headerParams,
3814
+ queryParams: queryParams
3815
+ });
3816
+ try {
3817
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3818
+ const sdkResponse = oci_common_1.composeResponse({
3819
+ responseObject: {},
3820
+ body: yield response.json(),
3821
+ bodyKey: "workRequestErrorCollection",
3822
+ bodyModel: model.WorkRequestErrorCollection,
3823
+ type: "model.WorkRequestErrorCollection",
3824
+ responseHeaders: [
3825
+ {
3826
+ value: response.headers.get("opc-next-page"),
3827
+ key: "opcNextPage",
3828
+ dataType: "string"
3829
+ },
3830
+ {
3831
+ value: response.headers.get("opc-prev-page"),
3832
+ key: "opcPrevPage",
3833
+ dataType: "string"
3834
+ },
3835
+ {
3836
+ value: response.headers.get("opc-request-id"),
3837
+ key: "opcRequestId",
3838
+ dataType: "string"
3839
+ }
3840
+ ]
3841
+ });
3842
+ return sdkResponse;
3843
+ }
3844
+ catch (err) {
3845
+ throw err;
3846
+ }
3847
+ });
3848
+ }
3849
+ /**
3850
+ * Returns a (paginated) list of logs for a given work request.
3851
+ *
3852
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3853
+ * @param ListWorkRequestLogsRequest
3854
+ * @return ListWorkRequestLogsResponse
3855
+ * @throws OciError when an error occurs
3856
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3857
+ */
3858
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
3859
+ return __awaiter(this, void 0, void 0, function* () {
3860
+ if (this.logger)
3861
+ this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestLogs.");
3862
+ const operationName = "listWorkRequestLogs";
3863
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequestLog/ListWorkRequestLogs";
3864
+ const pathParams = {
3865
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
3866
+ };
3867
+ const queryParams = {
3868
+ "page": listWorkRequestLogsRequest.page,
3869
+ "limit": listWorkRequestLogsRequest.limit,
3870
+ "sortOrder": listWorkRequestLogsRequest.sortOrder,
3871
+ "sortBy": listWorkRequestLogsRequest.sortBy
3872
+ };
3873
+ let headerParams = {
3874
+ "Content-Type": common.Constants.APPLICATION_JSON,
3875
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
3876
+ };
3877
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3878
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
3879
+ if (this.logger)
3880
+ retrier.logger = this.logger;
3881
+ const request = yield oci_common_1.composeRequest({
3882
+ baseEndpoint: this._endpoint,
3883
+ defaultHeaders: this._defaultHeaders,
3884
+ path: "/workRequests/{workRequestId}/logs",
3885
+ method: "GET",
3886
+ pathParams: pathParams,
3887
+ headerParams: headerParams,
3888
+ queryParams: queryParams
3889
+ });
3890
+ try {
3891
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3892
+ const sdkResponse = oci_common_1.composeResponse({
3893
+ responseObject: {},
3894
+ body: yield response.json(),
3895
+ bodyKey: "workRequestLogCollection",
3896
+ bodyModel: model.WorkRequestLogCollection,
3897
+ type: "model.WorkRequestLogCollection",
3898
+ responseHeaders: [
3899
+ {
3900
+ value: response.headers.get("opc-next-page"),
3901
+ key: "opcNextPage",
3902
+ dataType: "string"
3903
+ },
3904
+ {
3905
+ value: response.headers.get("opc-prev-page"),
3906
+ key: "opcPrevPage",
3907
+ dataType: "string"
3908
+ },
3909
+ {
3910
+ value: response.headers.get("opc-request-id"),
3911
+ key: "opcRequestId",
3912
+ dataType: "string"
3913
+ }
3914
+ ]
3915
+ });
3916
+ return sdkResponse;
3917
+ }
3918
+ catch (err) {
3919
+ throw err;
3920
+ }
3921
+ });
3922
+ }
3923
+ /**
3924
+ * Lists the work requests in a compartment.
3925
+ *
3926
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3927
+ * @param ListWorkRequestsRequest
3928
+ * @return ListWorkRequestsResponse
3929
+ * @throws OciError when an error occurs
3930
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.30.0/apigateway/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
3931
+ */
3932
+ listWorkRequests(listWorkRequestsRequest) {
3933
+ return __awaiter(this, void 0, void 0, function* () {
3934
+ if (this.logger)
3935
+ this.logger.debug("Calling operation WorkRequestsClient#listWorkRequests.");
3936
+ const operationName = "listWorkRequests";
3937
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequestSummary/ListWorkRequests";
3938
+ const pathParams = {};
3939
+ const queryParams = {
3940
+ "compartmentId": listWorkRequestsRequest.compartmentId,
3941
+ "resourceId": listWorkRequestsRequest.resourceId,
3942
+ "page": listWorkRequestsRequest.page,
3943
+ "limit": listWorkRequestsRequest.limit,
3944
+ "sortOrder": listWorkRequestsRequest.sortOrder,
3945
+ "sortBy": listWorkRequestsRequest.sortBy
3946
+ };
3947
+ let headerParams = {
3948
+ "Content-Type": common.Constants.APPLICATION_JSON,
3949
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
3950
+ };
3951
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2872
3952
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
2873
3953
  if (this.logger)
2874
3954
  retrier.logger = this.logger;
@@ -2882,7 +3962,7 @@ class WorkRequestsClient {
2882
3962
  queryParams: queryParams
2883
3963
  });
2884
3964
  try {
2885
- const response = yield retrier.makeServiceCall(this._httpClient, request);
3965
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2886
3966
  const sdkResponse = oci_common_1.composeResponse({
2887
3967
  responseObject: {},
2888
3968
  body: yield response.json(),