oci-apigateway 2.79.1 → 2.81.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 (86) hide show
  1. package/lib/client.d.ts +62 -56
  2. package/lib/client.js +298 -118
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/api-specification-route-backend.js +4 -2
  5. package/lib/model/api-specification-route-backend.js.map +1 -1
  6. package/lib/model/authentication-policy.js +4 -2
  7. package/lib/model/authentication-policy.js.map +1 -1
  8. package/lib/model/ca-bundle.js +4 -2
  9. package/lib/model/ca-bundle.js.map +1 -1
  10. package/lib/model/client-app-details.js +4 -2
  11. package/lib/model/client-app-details.js.map +1 -1
  12. package/lib/model/content-validation.js +4 -2
  13. package/lib/model/content-validation.js.map +1 -1
  14. package/lib/model/dynamic-selection-key.js +4 -2
  15. package/lib/model/dynamic-selection-key.js.map +1 -1
  16. package/lib/model/public-key-set.js +4 -2
  17. package/lib/model/public-key-set.js.map +1 -1
  18. package/lib/model/response-cache-details.js +4 -2
  19. package/lib/model/response-cache-details.js.map +1 -1
  20. package/lib/model/response-cache-lookup-policy.js +4 -2
  21. package/lib/model/response-cache-lookup-policy.js.map +1 -1
  22. package/lib/model/response-cache-store-policy.js +4 -2
  23. package/lib/model/response-cache-store-policy.js.map +1 -1
  24. package/lib/model/route-authorization-policy.js +4 -2
  25. package/lib/model/route-authorization-policy.js.map +1 -1
  26. package/lib/model/selection-source-policy.js +4 -2
  27. package/lib/model/selection-source-policy.js.map +1 -1
  28. package/lib/model/source-uri-details.js +4 -2
  29. package/lib/model/source-uri-details.js.map +1 -1
  30. package/lib/model/static-public-key.js +4 -2
  31. package/lib/model/static-public-key.js.map +1 -1
  32. package/lib/model/token-authentication-validation-policy.js +4 -2
  33. package/lib/model/token-authentication-validation-policy.js.map +1 -1
  34. package/lib/model/validation-failure-policy.js +4 -2
  35. package/lib/model/validation-failure-policy.js.map +1 -1
  36. package/lib/request/cancel-work-request-request.d.ts +1 -1
  37. package/lib/request/change-api-compartment-request.d.ts +1 -1
  38. package/lib/request/change-certificate-compartment-request.d.ts +1 -1
  39. package/lib/request/change-deployment-compartment-request.d.ts +1 -1
  40. package/lib/request/change-gateway-compartment-request.d.ts +1 -1
  41. package/lib/request/change-subscriber-compartment-request.d.ts +1 -1
  42. package/lib/request/change-usage-plan-compartment-request.d.ts +1 -1
  43. package/lib/request/create-api-request.d.ts +1 -1
  44. package/lib/request/create-certificate-request.d.ts +1 -1
  45. package/lib/request/create-deployment-request.d.ts +1 -1
  46. package/lib/request/create-gateway-request.d.ts +1 -1
  47. package/lib/request/create-sdk-request.d.ts +1 -1
  48. package/lib/request/create-subscriber-request.d.ts +1 -1
  49. package/lib/request/create-usage-plan-request.d.ts +1 -1
  50. package/lib/request/delete-api-request.d.ts +1 -1
  51. package/lib/request/delete-certificate-request.d.ts +1 -1
  52. package/lib/request/delete-deployment-request.d.ts +1 -1
  53. package/lib/request/delete-gateway-request.d.ts +1 -1
  54. package/lib/request/delete-sdk-request.d.ts +1 -1
  55. package/lib/request/delete-subscriber-request.d.ts +1 -1
  56. package/lib/request/delete-usage-plan-request.d.ts +1 -1
  57. package/lib/request/get-api-content-request.d.ts +1 -1
  58. package/lib/request/get-api-deployment-specification-request.d.ts +1 -1
  59. package/lib/request/get-api-request.d.ts +1 -1
  60. package/lib/request/get-api-validations-request.d.ts +1 -1
  61. package/lib/request/get-certificate-request.d.ts +1 -1
  62. package/lib/request/get-deployment-request.d.ts +1 -1
  63. package/lib/request/get-gateway-request.d.ts +1 -1
  64. package/lib/request/get-sdk-request.d.ts +1 -1
  65. package/lib/request/get-subscriber-request.d.ts +1 -1
  66. package/lib/request/get-usage-plan-request.d.ts +1 -1
  67. package/lib/request/get-work-request-request.d.ts +1 -1
  68. package/lib/request/list-apis-request.d.ts +1 -1
  69. package/lib/request/list-certificates-request.d.ts +1 -1
  70. package/lib/request/list-deployments-request.d.ts +1 -1
  71. package/lib/request/list-gateways-request.d.ts +1 -1
  72. package/lib/request/list-sdk-language-types-request.d.ts +1 -1
  73. package/lib/request/list-sdks-request.d.ts +1 -1
  74. package/lib/request/list-subscribers-request.d.ts +1 -1
  75. package/lib/request/list-usage-plans-request.d.ts +1 -1
  76. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  77. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  78. package/lib/request/list-work-requests-request.d.ts +1 -1
  79. package/lib/request/update-api-request.d.ts +1 -1
  80. package/lib/request/update-certificate-request.d.ts +1 -1
  81. package/lib/request/update-deployment-request.d.ts +1 -1
  82. package/lib/request/update-gateway-request.d.ts +1 -1
  83. package/lib/request/update-sdk-request.d.ts +1 -1
  84. package/lib/request/update-subscriber-request.d.ts +1 -1
  85. package/lib/request/update-usage-plan-request.d.ts +1 -1
  86. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -65,7 +65,7 @@ var ApiGatewayApiKeys;
65
65
  */
66
66
  class ApiGatewayClient {
67
67
  constructor(params, clientConfiguration) {
68
- this["_realmSpecificEndpointTemplateEnabled"] = false;
68
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
69
69
  this["_endpoint"] = "";
70
70
  this["_defaultHeaders"] = {};
71
71
  this._circuitBreaker = null;
@@ -124,7 +124,11 @@ class ApiGatewayClient {
124
124
  set endpoint(endpoint) {
125
125
  this._endpoint = endpoint;
126
126
  this._endpoint = this._endpoint + "/20190501";
127
- oci_common_1.logger.info(`ApiGatewayClient endpoint set to ${this._endpoint}`);
127
+ if (this.logger)
128
+ this.logger.info(`ApiGatewayClient endpoint set to ${this._endpoint}`);
129
+ }
130
+ get logger() {
131
+ return common.LOG.logger;
128
132
  }
129
133
  /**
130
134
  * Determines whether realm specific endpoint should be used or not.
@@ -133,7 +137,8 @@ class ApiGatewayClient {
133
137
  */
134
138
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
135
139
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
136
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
140
+ if (this.logger)
141
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
137
142
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
138
143
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ApiGatewayClient.serviceEndpointTemplate, this._region, ApiGatewayClient.endpointServiceName);
139
144
  }
@@ -199,11 +204,12 @@ class ApiGatewayClient {
199
204
  * @param ChangeApiCompartmentRequest
200
205
  * @return ChangeApiCompartmentResponse
201
206
  * @throws OciError when an error occurs
202
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ChangeApiCompartment.ts.html |here} to see how to use ChangeApiCompartment API.
207
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ChangeApiCompartment.ts.html |here} to see how to use ChangeApiCompartment API.
203
208
  */
204
209
  changeApiCompartment(changeApiCompartmentRequest) {
205
210
  return __awaiter(this, void 0, void 0, function* () {
206
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#changeApiCompartment.");
211
+ if (this.logger)
212
+ this.logger.debug("Calling operation ApiGatewayClient#changeApiCompartment.");
207
213
  const operationName = "changeApiCompartment";
208
214
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/ChangeApiCompartment";
209
215
  const pathParams = {
@@ -218,6 +224,8 @@ class ApiGatewayClient {
218
224
  };
219
225
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
220
226
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeApiCompartmentRequest.retryConfiguration, specRetryConfiguration);
227
+ if (this.logger)
228
+ retrier.logger = this.logger;
221
229
  const request = yield oci_common_1.composeRequest({
222
230
  baseEndpoint: this._endpoint,
223
231
  defaultHeaders: this._defaultHeaders,
@@ -258,11 +266,12 @@ class ApiGatewayClient {
258
266
  * @param ChangeCertificateCompartmentRequest
259
267
  * @return ChangeCertificateCompartmentResponse
260
268
  * @throws OciError when an error occurs
261
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ChangeCertificateCompartment.ts.html |here} to see how to use ChangeCertificateCompartment API.
269
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ChangeCertificateCompartment.ts.html |here} to see how to use ChangeCertificateCompartment API.
262
270
  */
263
271
  changeCertificateCompartment(changeCertificateCompartmentRequest) {
264
272
  return __awaiter(this, void 0, void 0, function* () {
265
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#changeCertificateCompartment.");
273
+ if (this.logger)
274
+ this.logger.debug("Calling operation ApiGatewayClient#changeCertificateCompartment.");
266
275
  const operationName = "changeCertificateCompartment";
267
276
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/ChangeCertificateCompartment";
268
277
  const pathParams = {
@@ -277,6 +286,8 @@ class ApiGatewayClient {
277
286
  };
278
287
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
279
288
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeCertificateCompartmentRequest.retryConfiguration, specRetryConfiguration);
289
+ if (this.logger)
290
+ retrier.logger = this.logger;
280
291
  const request = yield oci_common_1.composeRequest({
281
292
  baseEndpoint: this._endpoint,
282
293
  defaultHeaders: this._defaultHeaders,
@@ -313,11 +324,12 @@ class ApiGatewayClient {
313
324
  * @param CreateApiRequest
314
325
  * @return CreateApiResponse
315
326
  * @throws OciError when an error occurs
316
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/CreateApi.ts.html |here} to see how to use CreateApi API.
327
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/CreateApi.ts.html |here} to see how to use CreateApi API.
317
328
  */
318
329
  createApi(createApiRequest) {
319
330
  return __awaiter(this, void 0, void 0, function* () {
320
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#createApi.");
331
+ if (this.logger)
332
+ this.logger.debug("Calling operation ApiGatewayClient#createApi.");
321
333
  const operationName = "createApi";
322
334
  const apiReferenceLink = "";
323
335
  const pathParams = {};
@@ -329,6 +341,8 @@ class ApiGatewayClient {
329
341
  };
330
342
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
331
343
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createApiRequest.retryConfiguration, specRetryConfiguration);
344
+ if (this.logger)
345
+ retrier.logger = this.logger;
332
346
  const request = yield oci_common_1.composeRequest({
333
347
  baseEndpoint: this._endpoint,
334
348
  defaultHeaders: this._defaultHeaders,
@@ -384,11 +398,12 @@ class ApiGatewayClient {
384
398
  * @param CreateCertificateRequest
385
399
  * @return CreateCertificateResponse
386
400
  * @throws OciError when an error occurs
387
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/CreateCertificate.ts.html |here} to see how to use CreateCertificate API.
401
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/CreateCertificate.ts.html |here} to see how to use CreateCertificate API.
388
402
  */
389
403
  createCertificate(createCertificateRequest) {
390
404
  return __awaiter(this, void 0, void 0, function* () {
391
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#createCertificate.");
405
+ if (this.logger)
406
+ this.logger.debug("Calling operation ApiGatewayClient#createCertificate.");
392
407
  const operationName = "createCertificate";
393
408
  const apiReferenceLink = "";
394
409
  const pathParams = {};
@@ -400,6 +415,8 @@ class ApiGatewayClient {
400
415
  };
401
416
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
402
417
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createCertificateRequest.retryConfiguration, specRetryConfiguration);
418
+ if (this.logger)
419
+ retrier.logger = this.logger;
403
420
  const request = yield oci_common_1.composeRequest({
404
421
  baseEndpoint: this._endpoint,
405
422
  defaultHeaders: this._defaultHeaders,
@@ -454,11 +471,12 @@ class ApiGatewayClient {
454
471
  * @param CreateSdkRequest
455
472
  * @return CreateSdkResponse
456
473
  * @throws OciError when an error occurs
457
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/CreateSdk.ts.html |here} to see how to use CreateSdk API.
474
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/CreateSdk.ts.html |here} to see how to use CreateSdk API.
458
475
  */
459
476
  createSdk(createSdkRequest) {
460
477
  return __awaiter(this, void 0, void 0, function* () {
461
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#createSdk.");
478
+ if (this.logger)
479
+ this.logger.debug("Calling operation ApiGatewayClient#createSdk.");
462
480
  const operationName = "createSdk";
463
481
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/CreateSdk";
464
482
  const pathParams = {};
@@ -470,6 +488,8 @@ class ApiGatewayClient {
470
488
  };
471
489
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
472
490
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSdkRequest.retryConfiguration, specRetryConfiguration);
491
+ if (this.logger)
492
+ retrier.logger = this.logger;
473
493
  const request = yield oci_common_1.composeRequest({
474
494
  baseEndpoint: this._endpoint,
475
495
  defaultHeaders: this._defaultHeaders,
@@ -524,11 +544,12 @@ class ApiGatewayClient {
524
544
  * @param DeleteApiRequest
525
545
  * @return DeleteApiResponse
526
546
  * @throws OciError when an error occurs
527
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/DeleteApi.ts.html |here} to see how to use DeleteApi API.
547
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/DeleteApi.ts.html |here} to see how to use DeleteApi API.
528
548
  */
529
549
  deleteApi(deleteApiRequest) {
530
550
  return __awaiter(this, void 0, void 0, function* () {
531
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#deleteApi.");
551
+ if (this.logger)
552
+ this.logger.debug("Calling operation ApiGatewayClient#deleteApi.");
532
553
  const operationName = "deleteApi";
533
554
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/DeleteApi";
534
555
  const pathParams = {
@@ -542,6 +563,8 @@ class ApiGatewayClient {
542
563
  };
543
564
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
544
565
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteApiRequest.retryConfiguration, specRetryConfiguration);
566
+ if (this.logger)
567
+ retrier.logger = this.logger;
545
568
  const request = yield oci_common_1.composeRequest({
546
569
  baseEndpoint: this._endpoint,
547
570
  defaultHeaders: this._defaultHeaders,
@@ -581,11 +604,12 @@ class ApiGatewayClient {
581
604
  * @param DeleteCertificateRequest
582
605
  * @return DeleteCertificateResponse
583
606
  * @throws OciError when an error occurs
584
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API.
607
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API.
585
608
  */
586
609
  deleteCertificate(deleteCertificateRequest) {
587
610
  return __awaiter(this, void 0, void 0, function* () {
588
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#deleteCertificate.");
611
+ if (this.logger)
612
+ this.logger.debug("Calling operation ApiGatewayClient#deleteCertificate.");
589
613
  const operationName = "deleteCertificate";
590
614
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/DeleteCertificate";
591
615
  const pathParams = {
@@ -599,6 +623,8 @@ class ApiGatewayClient {
599
623
  };
600
624
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
601
625
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteCertificateRequest.retryConfiguration, specRetryConfiguration);
626
+ if (this.logger)
627
+ retrier.logger = this.logger;
602
628
  const request = yield oci_common_1.composeRequest({
603
629
  baseEndpoint: this._endpoint,
604
630
  defaultHeaders: this._defaultHeaders,
@@ -638,11 +664,12 @@ class ApiGatewayClient {
638
664
  * @param DeleteSdkRequest
639
665
  * @return DeleteSdkResponse
640
666
  * @throws OciError when an error occurs
641
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/DeleteSdk.ts.html |here} to see how to use DeleteSdk API.
667
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/DeleteSdk.ts.html |here} to see how to use DeleteSdk API.
642
668
  */
643
669
  deleteSdk(deleteSdkRequest) {
644
670
  return __awaiter(this, void 0, void 0, function* () {
645
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#deleteSdk.");
671
+ if (this.logger)
672
+ this.logger.debug("Calling operation ApiGatewayClient#deleteSdk.");
646
673
  const operationName = "deleteSdk";
647
674
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/DeleteSdk";
648
675
  const pathParams = {
@@ -656,6 +683,8 @@ class ApiGatewayClient {
656
683
  };
657
684
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
658
685
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSdkRequest.retryConfiguration, specRetryConfiguration);
686
+ if (this.logger)
687
+ retrier.logger = this.logger;
659
688
  const request = yield oci_common_1.composeRequest({
660
689
  baseEndpoint: this._endpoint,
661
690
  defaultHeaders: this._defaultHeaders,
@@ -695,11 +724,12 @@ class ApiGatewayClient {
695
724
  * @param GetApiRequest
696
725
  * @return GetApiResponse
697
726
  * @throws OciError when an error occurs
698
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetApi.ts.html |here} to see how to use GetApi API.
727
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetApi.ts.html |here} to see how to use GetApi API.
699
728
  */
700
729
  getApi(getApiRequest) {
701
730
  return __awaiter(this, void 0, void 0, function* () {
702
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#getApi.");
731
+ if (this.logger)
732
+ this.logger.debug("Calling operation ApiGatewayClient#getApi.");
703
733
  const operationName = "getApi";
704
734
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/GetApi";
705
735
  const pathParams = {
@@ -712,6 +742,8 @@ class ApiGatewayClient {
712
742
  };
713
743
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
714
744
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiRequest.retryConfiguration, specRetryConfiguration);
745
+ if (this.logger)
746
+ retrier.logger = this.logger;
715
747
  const request = yield oci_common_1.composeRequest({
716
748
  baseEndpoint: this._endpoint,
717
749
  defaultHeaders: this._defaultHeaders,
@@ -755,11 +787,12 @@ class ApiGatewayClient {
755
787
  * @param GetApiContentRequest
756
788
  * @return GetApiContentResponse
757
789
  * @throws OciError when an error occurs
758
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetApiContent.ts.html |here} to see how to use GetApiContent API.
790
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetApiContent.ts.html |here} to see how to use GetApiContent API.
759
791
  */
760
792
  getApiContent(getApiContentRequest) {
761
793
  return __awaiter(this, void 0, void 0, function* () {
762
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#getApiContent.");
794
+ if (this.logger)
795
+ this.logger.debug("Calling operation ApiGatewayClient#getApiContent.");
763
796
  const operationName = "getApiContent";
764
797
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/GetApiContent";
765
798
  const pathParams = {
@@ -774,6 +807,8 @@ class ApiGatewayClient {
774
807
  };
775
808
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
776
809
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiContentRequest.retryConfiguration, specRetryConfiguration);
810
+ if (this.logger)
811
+ retrier.logger = this.logger;
777
812
  const request = yield oci_common_1.composeRequest({
778
813
  baseEndpoint: this._endpoint,
779
814
  defaultHeaders: this._defaultHeaders,
@@ -821,11 +856,12 @@ class ApiGatewayClient {
821
856
  * @param GetApiDeploymentSpecificationRequest
822
857
  * @return GetApiDeploymentSpecificationResponse
823
858
  * @throws OciError when an error occurs
824
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetApiDeploymentSpecification.ts.html |here} to see how to use GetApiDeploymentSpecification API.
859
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetApiDeploymentSpecification.ts.html |here} to see how to use GetApiDeploymentSpecification API.
825
860
  */
826
861
  getApiDeploymentSpecification(getApiDeploymentSpecificationRequest) {
827
862
  return __awaiter(this, void 0, void 0, function* () {
828
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#getApiDeploymentSpecification.");
863
+ if (this.logger)
864
+ this.logger.debug("Calling operation ApiGatewayClient#getApiDeploymentSpecification.");
829
865
  const operationName = "getApiDeploymentSpecification";
830
866
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/ApiSpecification/GetApiDeploymentSpecification";
831
867
  const pathParams = {
@@ -839,6 +875,8 @@ class ApiGatewayClient {
839
875
  };
840
876
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
841
877
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiDeploymentSpecificationRequest.retryConfiguration, specRetryConfiguration);
878
+ if (this.logger)
879
+ retrier.logger = this.logger;
842
880
  const request = yield oci_common_1.composeRequest({
843
881
  baseEndpoint: this._endpoint,
844
882
  defaultHeaders: this._defaultHeaders,
@@ -882,11 +920,12 @@ class ApiGatewayClient {
882
920
  * @param GetApiValidationsRequest
883
921
  * @return GetApiValidationsResponse
884
922
  * @throws OciError when an error occurs
885
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetApiValidations.ts.html |here} to see how to use GetApiValidations API.
923
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetApiValidations.ts.html |here} to see how to use GetApiValidations API.
886
924
  */
887
925
  getApiValidations(getApiValidationsRequest) {
888
926
  return __awaiter(this, void 0, void 0, function* () {
889
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#getApiValidations.");
927
+ if (this.logger)
928
+ this.logger.debug("Calling operation ApiGatewayClient#getApiValidations.");
890
929
  const operationName = "getApiValidations";
891
930
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/ApiValidations/GetApiValidations";
892
931
  const pathParams = {
@@ -900,6 +939,8 @@ class ApiGatewayClient {
900
939
  };
901
940
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
902
941
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiValidationsRequest.retryConfiguration, specRetryConfiguration);
942
+ if (this.logger)
943
+ retrier.logger = this.logger;
903
944
  const request = yield oci_common_1.composeRequest({
904
945
  baseEndpoint: this._endpoint,
905
946
  defaultHeaders: this._defaultHeaders,
@@ -943,11 +984,12 @@ class ApiGatewayClient {
943
984
  * @param GetCertificateRequest
944
985
  * @return GetCertificateResponse
945
986
  * @throws OciError when an error occurs
946
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetCertificate.ts.html |here} to see how to use GetCertificate API.
987
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetCertificate.ts.html |here} to see how to use GetCertificate API.
947
988
  */
948
989
  getCertificate(getCertificateRequest) {
949
990
  return __awaiter(this, void 0, void 0, function* () {
950
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#getCertificate.");
991
+ if (this.logger)
992
+ this.logger.debug("Calling operation ApiGatewayClient#getCertificate.");
951
993
  const operationName = "getCertificate";
952
994
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/GetCertificate";
953
995
  const pathParams = {
@@ -960,6 +1002,8 @@ class ApiGatewayClient {
960
1002
  };
961
1003
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
962
1004
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCertificateRequest.retryConfiguration, specRetryConfiguration);
1005
+ if (this.logger)
1006
+ retrier.logger = this.logger;
963
1007
  const request = yield oci_common_1.composeRequest({
964
1008
  baseEndpoint: this._endpoint,
965
1009
  defaultHeaders: this._defaultHeaders,
@@ -1003,11 +1047,12 @@ class ApiGatewayClient {
1003
1047
  * @param GetSdkRequest
1004
1048
  * @return GetSdkResponse
1005
1049
  * @throws OciError when an error occurs
1006
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetSdk.ts.html |here} to see how to use GetSdk API.
1050
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetSdk.ts.html |here} to see how to use GetSdk API.
1007
1051
  */
1008
1052
  getSdk(getSdkRequest) {
1009
1053
  return __awaiter(this, void 0, void 0, function* () {
1010
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#getSdk.");
1054
+ if (this.logger)
1055
+ this.logger.debug("Calling operation ApiGatewayClient#getSdk.");
1011
1056
  const operationName = "getSdk";
1012
1057
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/GetSdk";
1013
1058
  const pathParams = {
@@ -1020,6 +1065,8 @@ class ApiGatewayClient {
1020
1065
  };
1021
1066
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1022
1067
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSdkRequest.retryConfiguration, specRetryConfiguration);
1068
+ if (this.logger)
1069
+ retrier.logger = this.logger;
1023
1070
  const request = yield oci_common_1.composeRequest({
1024
1071
  baseEndpoint: this._endpoint,
1025
1072
  defaultHeaders: this._defaultHeaders,
@@ -1064,11 +1111,12 @@ class ApiGatewayClient {
1064
1111
  * @param ListApisRequest
1065
1112
  * @return ListApisResponse
1066
1113
  * @throws OciError when an error occurs
1067
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListApis.ts.html |here} to see how to use ListApis API.
1114
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListApis.ts.html |here} to see how to use ListApis API.
1068
1115
  */
1069
1116
  listApis(listApisRequest) {
1070
1117
  return __awaiter(this, void 0, void 0, function* () {
1071
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#listApis.");
1118
+ if (this.logger)
1119
+ this.logger.debug("Calling operation ApiGatewayClient#listApis.");
1072
1120
  const operationName = "listApis";
1073
1121
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/ListApis";
1074
1122
  const pathParams = {};
@@ -1087,6 +1135,8 @@ class ApiGatewayClient {
1087
1135
  };
1088
1136
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1089
1137
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listApisRequest.retryConfiguration, specRetryConfiguration);
1138
+ if (this.logger)
1139
+ retrier.logger = this.logger;
1090
1140
  const request = yield oci_common_1.composeRequest({
1091
1141
  baseEndpoint: this._endpoint,
1092
1142
  defaultHeaders: this._defaultHeaders,
@@ -1136,11 +1186,12 @@ class ApiGatewayClient {
1136
1186
  * @param ListCertificatesRequest
1137
1187
  * @return ListCertificatesResponse
1138
1188
  * @throws OciError when an error occurs
1139
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListCertificates.ts.html |here} to see how to use ListCertificates API.
1189
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListCertificates.ts.html |here} to see how to use ListCertificates API.
1140
1190
  */
1141
1191
  listCertificates(listCertificatesRequest) {
1142
1192
  return __awaiter(this, void 0, void 0, function* () {
1143
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#listCertificates.");
1193
+ if (this.logger)
1194
+ this.logger.debug("Calling operation ApiGatewayClient#listCertificates.");
1144
1195
  const operationName = "listCertificates";
1145
1196
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/ListCertificates";
1146
1197
  const pathParams = {};
@@ -1159,6 +1210,8 @@ class ApiGatewayClient {
1159
1210
  };
1160
1211
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1161
1212
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCertificatesRequest.retryConfiguration, specRetryConfiguration);
1213
+ if (this.logger)
1214
+ retrier.logger = this.logger;
1162
1215
  const request = yield oci_common_1.composeRequest({
1163
1216
  baseEndpoint: this._endpoint,
1164
1217
  defaultHeaders: this._defaultHeaders,
@@ -1207,11 +1260,12 @@ class ApiGatewayClient {
1207
1260
  * @param ListSdkLanguageTypesRequest
1208
1261
  * @return ListSdkLanguageTypesResponse
1209
1262
  * @throws OciError when an error occurs
1210
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListSdkLanguageTypes.ts.html |here} to see how to use ListSdkLanguageTypes API.
1263
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListSdkLanguageTypes.ts.html |here} to see how to use ListSdkLanguageTypes API.
1211
1264
  */
1212
1265
  listSdkLanguageTypes(listSdkLanguageTypesRequest) {
1213
1266
  return __awaiter(this, void 0, void 0, function* () {
1214
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#listSdkLanguageTypes.");
1267
+ if (this.logger)
1268
+ this.logger.debug("Calling operation ApiGatewayClient#listSdkLanguageTypes.");
1215
1269
  const operationName = "listSdkLanguageTypes";
1216
1270
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/SdkLanguageTypeSummary/ListSdkLanguageTypes";
1217
1271
  const pathParams = {};
@@ -1229,6 +1283,8 @@ class ApiGatewayClient {
1229
1283
  };
1230
1284
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1231
1285
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSdkLanguageTypesRequest.retryConfiguration, specRetryConfiguration);
1286
+ if (this.logger)
1287
+ retrier.logger = this.logger;
1232
1288
  const request = yield oci_common_1.composeRequest({
1233
1289
  baseEndpoint: this._endpoint,
1234
1290
  defaultHeaders: this._defaultHeaders,
@@ -1277,11 +1333,12 @@ class ApiGatewayClient {
1277
1333
  * @param ListSdksRequest
1278
1334
  * @return ListSdksResponse
1279
1335
  * @throws OciError when an error occurs
1280
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListSdks.ts.html |here} to see how to use ListSdks API.
1336
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListSdks.ts.html |here} to see how to use ListSdks API.
1281
1337
  */
1282
1338
  listSdks(listSdksRequest) {
1283
1339
  return __awaiter(this, void 0, void 0, function* () {
1284
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#listSdks.");
1340
+ if (this.logger)
1341
+ this.logger.debug("Calling operation ApiGatewayClient#listSdks.");
1285
1342
  const operationName = "listSdks";
1286
1343
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/ListSdks";
1287
1344
  const pathParams = {};
@@ -1301,6 +1358,8 @@ class ApiGatewayClient {
1301
1358
  };
1302
1359
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1303
1360
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSdksRequest.retryConfiguration, specRetryConfiguration);
1361
+ if (this.logger)
1362
+ retrier.logger = this.logger;
1304
1363
  const request = yield oci_common_1.composeRequest({
1305
1364
  baseEndpoint: this._endpoint,
1306
1365
  defaultHeaders: this._defaultHeaders,
@@ -1349,11 +1408,12 @@ class ApiGatewayClient {
1349
1408
  * @param UpdateApiRequest
1350
1409
  * @return UpdateApiResponse
1351
1410
  * @throws OciError when an error occurs
1352
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
1411
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
1353
1412
  */
1354
1413
  updateApi(updateApiRequest) {
1355
1414
  return __awaiter(this, void 0, void 0, function* () {
1356
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#updateApi.");
1415
+ if (this.logger)
1416
+ this.logger.debug("Calling operation ApiGatewayClient#updateApi.");
1357
1417
  const operationName = "updateApi";
1358
1418
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/UpdateApi";
1359
1419
  const pathParams = {
@@ -1367,6 +1427,8 @@ class ApiGatewayClient {
1367
1427
  };
1368
1428
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1369
1429
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateApiRequest.retryConfiguration, specRetryConfiguration);
1430
+ if (this.logger)
1431
+ retrier.logger = this.logger;
1370
1432
  const request = yield oci_common_1.composeRequest({
1371
1433
  baseEndpoint: this._endpoint,
1372
1434
  defaultHeaders: this._defaultHeaders,
@@ -1407,11 +1469,12 @@ class ApiGatewayClient {
1407
1469
  * @param UpdateCertificateRequest
1408
1470
  * @return UpdateCertificateResponse
1409
1471
  * @throws OciError when an error occurs
1410
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
1472
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
1411
1473
  */
1412
1474
  updateCertificate(updateCertificateRequest) {
1413
1475
  return __awaiter(this, void 0, void 0, function* () {
1414
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#updateCertificate.");
1476
+ if (this.logger)
1477
+ this.logger.debug("Calling operation ApiGatewayClient#updateCertificate.");
1415
1478
  const operationName = "updateCertificate";
1416
1479
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/UpdateCertificate";
1417
1480
  const pathParams = {
@@ -1425,6 +1488,8 @@ class ApiGatewayClient {
1425
1488
  };
1426
1489
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1427
1490
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateCertificateRequest.retryConfiguration, specRetryConfiguration);
1491
+ if (this.logger)
1492
+ retrier.logger = this.logger;
1428
1493
  const request = yield oci_common_1.composeRequest({
1429
1494
  baseEndpoint: this._endpoint,
1430
1495
  defaultHeaders: this._defaultHeaders,
@@ -1465,11 +1530,12 @@ class ApiGatewayClient {
1465
1530
  * @param UpdateSdkRequest
1466
1531
  * @return UpdateSdkResponse
1467
1532
  * @throws OciError when an error occurs
1468
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
1533
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
1469
1534
  */
1470
1535
  updateSdk(updateSdkRequest) {
1471
1536
  return __awaiter(this, void 0, void 0, function* () {
1472
- oci_common_1.logger.debug("Calling operation ApiGatewayClient#updateSdk.");
1537
+ if (this.logger)
1538
+ this.logger.debug("Calling operation ApiGatewayClient#updateSdk.");
1473
1539
  const operationName = "updateSdk";
1474
1540
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/UpdateSdk";
1475
1541
  const pathParams = {
@@ -1483,6 +1549,8 @@ class ApiGatewayClient {
1483
1549
  };
1484
1550
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1485
1551
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSdkRequest.retryConfiguration, specRetryConfiguration);
1552
+ if (this.logger)
1553
+ retrier.logger = this.logger;
1486
1554
  const request = yield oci_common_1.composeRequest({
1487
1555
  baseEndpoint: this._endpoint,
1488
1556
  defaultHeaders: this._defaultHeaders,
@@ -1524,7 +1592,7 @@ var DeploymentApiKeys;
1524
1592
  */
1525
1593
  class DeploymentClient {
1526
1594
  constructor(params, clientConfiguration) {
1527
- this["_realmSpecificEndpointTemplateEnabled"] = false;
1595
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
1528
1596
  this["_endpoint"] = "";
1529
1597
  this["_defaultHeaders"] = {};
1530
1598
  this._circuitBreaker = null;
@@ -1583,7 +1651,11 @@ class DeploymentClient {
1583
1651
  set endpoint(endpoint) {
1584
1652
  this._endpoint = endpoint;
1585
1653
  this._endpoint = this._endpoint + "/20190501";
1586
- oci_common_1.logger.info(`DeploymentClient endpoint set to ${this._endpoint}`);
1654
+ if (this.logger)
1655
+ this.logger.info(`DeploymentClient endpoint set to ${this._endpoint}`);
1656
+ }
1657
+ get logger() {
1658
+ return common.LOG.logger;
1587
1659
  }
1588
1660
  /**
1589
1661
  * Determines whether realm specific endpoint should be used or not.
@@ -1592,7 +1664,8 @@ class DeploymentClient {
1592
1664
  */
1593
1665
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1594
1666
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1595
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1667
+ if (this.logger)
1668
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1596
1669
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1597
1670
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DeploymentClient.serviceEndpointTemplate, this._region, DeploymentClient.endpointServiceName);
1598
1671
  }
@@ -1658,11 +1731,12 @@ class DeploymentClient {
1658
1731
  * @param ChangeDeploymentCompartmentRequest
1659
1732
  * @return ChangeDeploymentCompartmentResponse
1660
1733
  * @throws OciError when an error occurs
1661
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ChangeDeploymentCompartment.ts.html |here} to see how to use ChangeDeploymentCompartment API.
1734
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ChangeDeploymentCompartment.ts.html |here} to see how to use ChangeDeploymentCompartment API.
1662
1735
  */
1663
1736
  changeDeploymentCompartment(changeDeploymentCompartmentRequest) {
1664
1737
  return __awaiter(this, void 0, void 0, function* () {
1665
- oci_common_1.logger.debug("Calling operation DeploymentClient#changeDeploymentCompartment.");
1738
+ if (this.logger)
1739
+ this.logger.debug("Calling operation DeploymentClient#changeDeploymentCompartment.");
1666
1740
  const operationName = "changeDeploymentCompartment";
1667
1741
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/ChangeDeploymentCompartment";
1668
1742
  const pathParams = {
@@ -1677,6 +1751,8 @@ class DeploymentClient {
1677
1751
  };
1678
1752
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1679
1753
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDeploymentCompartmentRequest.retryConfiguration, specRetryConfiguration);
1754
+ if (this.logger)
1755
+ retrier.logger = this.logger;
1680
1756
  const request = yield oci_common_1.composeRequest({
1681
1757
  baseEndpoint: this._endpoint,
1682
1758
  defaultHeaders: this._defaultHeaders,
@@ -1718,11 +1794,12 @@ class DeploymentClient {
1718
1794
  * @param CreateDeploymentRequest
1719
1795
  * @return CreateDeploymentResponse
1720
1796
  * @throws OciError when an error occurs
1721
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/CreateDeployment.ts.html |here} to see how to use CreateDeployment API.
1797
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/CreateDeployment.ts.html |here} to see how to use CreateDeployment API.
1722
1798
  */
1723
1799
  createDeployment(createDeploymentRequest) {
1724
1800
  return __awaiter(this, void 0, void 0, function* () {
1725
- oci_common_1.logger.debug("Calling operation DeploymentClient#createDeployment.");
1801
+ if (this.logger)
1802
+ this.logger.debug("Calling operation DeploymentClient#createDeployment.");
1726
1803
  const operationName = "createDeployment";
1727
1804
  const apiReferenceLink = "";
1728
1805
  const pathParams = {};
@@ -1734,6 +1811,8 @@ class DeploymentClient {
1734
1811
  };
1735
1812
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1736
1813
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDeploymentRequest.retryConfiguration, specRetryConfiguration);
1814
+ if (this.logger)
1815
+ retrier.logger = this.logger;
1737
1816
  const request = yield oci_common_1.composeRequest({
1738
1817
  baseEndpoint: this._endpoint,
1739
1818
  defaultHeaders: this._defaultHeaders,
@@ -1788,11 +1867,12 @@ class DeploymentClient {
1788
1867
  * @param DeleteDeploymentRequest
1789
1868
  * @return DeleteDeploymentResponse
1790
1869
  * @throws OciError when an error occurs
1791
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/DeleteDeployment.ts.html |here} to see how to use DeleteDeployment API.
1870
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/DeleteDeployment.ts.html |here} to see how to use DeleteDeployment API.
1792
1871
  */
1793
1872
  deleteDeployment(deleteDeploymentRequest) {
1794
1873
  return __awaiter(this, void 0, void 0, function* () {
1795
- oci_common_1.logger.debug("Calling operation DeploymentClient#deleteDeployment.");
1874
+ if (this.logger)
1875
+ this.logger.debug("Calling operation DeploymentClient#deleteDeployment.");
1796
1876
  const operationName = "deleteDeployment";
1797
1877
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/DeleteDeployment";
1798
1878
  const pathParams = {
@@ -1806,6 +1886,8 @@ class DeploymentClient {
1806
1886
  };
1807
1887
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1808
1888
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDeploymentRequest.retryConfiguration, specRetryConfiguration);
1889
+ if (this.logger)
1890
+ retrier.logger = this.logger;
1809
1891
  const request = yield oci_common_1.composeRequest({
1810
1892
  baseEndpoint: this._endpoint,
1811
1893
  defaultHeaders: this._defaultHeaders,
@@ -1845,11 +1927,12 @@ class DeploymentClient {
1845
1927
  * @param GetDeploymentRequest
1846
1928
  * @return GetDeploymentResponse
1847
1929
  * @throws OciError when an error occurs
1848
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetDeployment.ts.html |here} to see how to use GetDeployment API.
1930
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetDeployment.ts.html |here} to see how to use GetDeployment API.
1849
1931
  */
1850
1932
  getDeployment(getDeploymentRequest) {
1851
1933
  return __awaiter(this, void 0, void 0, function* () {
1852
- oci_common_1.logger.debug("Calling operation DeploymentClient#getDeployment.");
1934
+ if (this.logger)
1935
+ this.logger.debug("Calling operation DeploymentClient#getDeployment.");
1853
1936
  const operationName = "getDeployment";
1854
1937
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/GetDeployment";
1855
1938
  const pathParams = {
@@ -1862,6 +1945,8 @@ class DeploymentClient {
1862
1945
  };
1863
1946
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1864
1947
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDeploymentRequest.retryConfiguration, specRetryConfiguration);
1948
+ if (this.logger)
1949
+ retrier.logger = this.logger;
1865
1950
  const request = yield oci_common_1.composeRequest({
1866
1951
  baseEndpoint: this._endpoint,
1867
1952
  defaultHeaders: this._defaultHeaders,
@@ -1906,11 +1991,12 @@ class DeploymentClient {
1906
1991
  * @param ListDeploymentsRequest
1907
1992
  * @return ListDeploymentsResponse
1908
1993
  * @throws OciError when an error occurs
1909
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListDeployments.ts.html |here} to see how to use ListDeployments API.
1994
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListDeployments.ts.html |here} to see how to use ListDeployments API.
1910
1995
  */
1911
1996
  listDeployments(listDeploymentsRequest) {
1912
1997
  return __awaiter(this, void 0, void 0, function* () {
1913
- oci_common_1.logger.debug("Calling operation DeploymentClient#listDeployments.");
1998
+ if (this.logger)
1999
+ this.logger.debug("Calling operation DeploymentClient#listDeployments.");
1914
2000
  const operationName = "listDeployments";
1915
2001
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/DeploymentSummary/ListDeployments";
1916
2002
  const pathParams = {};
@@ -1930,6 +2016,8 @@ class DeploymentClient {
1930
2016
  };
1931
2017
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1932
2018
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDeploymentsRequest.retryConfiguration, specRetryConfiguration);
2019
+ if (this.logger)
2020
+ retrier.logger = this.logger;
1933
2021
  const request = yield oci_common_1.composeRequest({
1934
2022
  baseEndpoint: this._endpoint,
1935
2023
  defaultHeaders: this._defaultHeaders,
@@ -1978,11 +2066,12 @@ class DeploymentClient {
1978
2066
  * @param UpdateDeploymentRequest
1979
2067
  * @return UpdateDeploymentResponse
1980
2068
  * @throws OciError when an error occurs
1981
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/UpdateDeployment.ts.html |here} to see how to use UpdateDeployment API.
2069
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/UpdateDeployment.ts.html |here} to see how to use UpdateDeployment API.
1982
2070
  */
1983
2071
  updateDeployment(updateDeploymentRequest) {
1984
2072
  return __awaiter(this, void 0, void 0, function* () {
1985
- oci_common_1.logger.debug("Calling operation DeploymentClient#updateDeployment.");
2073
+ if (this.logger)
2074
+ this.logger.debug("Calling operation DeploymentClient#updateDeployment.");
1986
2075
  const operationName = "updateDeployment";
1987
2076
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Deployment/UpdateDeployment";
1988
2077
  const pathParams = {
@@ -1996,6 +2085,8 @@ class DeploymentClient {
1996
2085
  };
1997
2086
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1998
2087
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDeploymentRequest.retryConfiguration, specRetryConfiguration);
2088
+ if (this.logger)
2089
+ retrier.logger = this.logger;
1999
2090
  const request = yield oci_common_1.composeRequest({
2000
2091
  baseEndpoint: this._endpoint,
2001
2092
  defaultHeaders: this._defaultHeaders,
@@ -2042,7 +2133,7 @@ var GatewayApiKeys;
2042
2133
  */
2043
2134
  class GatewayClient {
2044
2135
  constructor(params, clientConfiguration) {
2045
- this["_realmSpecificEndpointTemplateEnabled"] = false;
2136
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
2046
2137
  this["_endpoint"] = "";
2047
2138
  this["_defaultHeaders"] = {};
2048
2139
  this._circuitBreaker = null;
@@ -2101,7 +2192,11 @@ class GatewayClient {
2101
2192
  set endpoint(endpoint) {
2102
2193
  this._endpoint = endpoint;
2103
2194
  this._endpoint = this._endpoint + "/20190501";
2104
- oci_common_1.logger.info(`GatewayClient endpoint set to ${this._endpoint}`);
2195
+ if (this.logger)
2196
+ this.logger.info(`GatewayClient endpoint set to ${this._endpoint}`);
2197
+ }
2198
+ get logger() {
2199
+ return common.LOG.logger;
2105
2200
  }
2106
2201
  /**
2107
2202
  * Determines whether realm specific endpoint should be used or not.
@@ -2110,7 +2205,8 @@ class GatewayClient {
2110
2205
  */
2111
2206
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
2112
2207
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
2113
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2208
+ if (this.logger)
2209
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2114
2210
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
2115
2211
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(GatewayClient.serviceEndpointTemplate, this._region, GatewayClient.endpointServiceName);
2116
2212
  }
@@ -2176,11 +2272,12 @@ class GatewayClient {
2176
2272
  * @param ChangeGatewayCompartmentRequest
2177
2273
  * @return ChangeGatewayCompartmentResponse
2178
2274
  * @throws OciError when an error occurs
2179
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ChangeGatewayCompartment.ts.html |here} to see how to use ChangeGatewayCompartment API.
2275
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ChangeGatewayCompartment.ts.html |here} to see how to use ChangeGatewayCompartment API.
2180
2276
  */
2181
2277
  changeGatewayCompartment(changeGatewayCompartmentRequest) {
2182
2278
  return __awaiter(this, void 0, void 0, function* () {
2183
- oci_common_1.logger.debug("Calling operation GatewayClient#changeGatewayCompartment.");
2279
+ if (this.logger)
2280
+ this.logger.debug("Calling operation GatewayClient#changeGatewayCompartment.");
2184
2281
  const operationName = "changeGatewayCompartment";
2185
2282
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/ChangeGatewayCompartment";
2186
2283
  const pathParams = {
@@ -2195,6 +2292,8 @@ class GatewayClient {
2195
2292
  };
2196
2293
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2197
2294
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeGatewayCompartmentRequest.retryConfiguration, specRetryConfiguration);
2295
+ if (this.logger)
2296
+ retrier.logger = this.logger;
2198
2297
  const request = yield oci_common_1.composeRequest({
2199
2298
  baseEndpoint: this._endpoint,
2200
2299
  defaultHeaders: this._defaultHeaders,
@@ -2236,11 +2335,12 @@ class GatewayClient {
2236
2335
  * @param CreateGatewayRequest
2237
2336
  * @return CreateGatewayResponse
2238
2337
  * @throws OciError when an error occurs
2239
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/CreateGateway.ts.html |here} to see how to use CreateGateway API.
2338
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/CreateGateway.ts.html |here} to see how to use CreateGateway API.
2240
2339
  */
2241
2340
  createGateway(createGatewayRequest) {
2242
2341
  return __awaiter(this, void 0, void 0, function* () {
2243
- oci_common_1.logger.debug("Calling operation GatewayClient#createGateway.");
2342
+ if (this.logger)
2343
+ this.logger.debug("Calling operation GatewayClient#createGateway.");
2244
2344
  const operationName = "createGateway";
2245
2345
  const apiReferenceLink = "";
2246
2346
  const pathParams = {};
@@ -2252,6 +2352,8 @@ class GatewayClient {
2252
2352
  };
2253
2353
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2254
2354
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createGatewayRequest.retryConfiguration, specRetryConfiguration);
2355
+ if (this.logger)
2356
+ retrier.logger = this.logger;
2255
2357
  const request = yield oci_common_1.composeRequest({
2256
2358
  baseEndpoint: this._endpoint,
2257
2359
  defaultHeaders: this._defaultHeaders,
@@ -2306,11 +2408,12 @@ class GatewayClient {
2306
2408
  * @param DeleteGatewayRequest
2307
2409
  * @return DeleteGatewayResponse
2308
2410
  * @throws OciError when an error occurs
2309
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/DeleteGateway.ts.html |here} to see how to use DeleteGateway API.
2411
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/DeleteGateway.ts.html |here} to see how to use DeleteGateway API.
2310
2412
  */
2311
2413
  deleteGateway(deleteGatewayRequest) {
2312
2414
  return __awaiter(this, void 0, void 0, function* () {
2313
- oci_common_1.logger.debug("Calling operation GatewayClient#deleteGateway.");
2415
+ if (this.logger)
2416
+ this.logger.debug("Calling operation GatewayClient#deleteGateway.");
2314
2417
  const operationName = "deleteGateway";
2315
2418
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/DeleteGateway";
2316
2419
  const pathParams = {
@@ -2324,6 +2427,8 @@ class GatewayClient {
2324
2427
  };
2325
2428
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2326
2429
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteGatewayRequest.retryConfiguration, specRetryConfiguration);
2430
+ if (this.logger)
2431
+ retrier.logger = this.logger;
2327
2432
  const request = yield oci_common_1.composeRequest({
2328
2433
  baseEndpoint: this._endpoint,
2329
2434
  defaultHeaders: this._defaultHeaders,
@@ -2363,11 +2468,12 @@ class GatewayClient {
2363
2468
  * @param GetGatewayRequest
2364
2469
  * @return GetGatewayResponse
2365
2470
  * @throws OciError when an error occurs
2366
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetGateway.ts.html |here} to see how to use GetGateway API.
2471
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetGateway.ts.html |here} to see how to use GetGateway API.
2367
2472
  */
2368
2473
  getGateway(getGatewayRequest) {
2369
2474
  return __awaiter(this, void 0, void 0, function* () {
2370
- oci_common_1.logger.debug("Calling operation GatewayClient#getGateway.");
2475
+ if (this.logger)
2476
+ this.logger.debug("Calling operation GatewayClient#getGateway.");
2371
2477
  const operationName = "getGateway";
2372
2478
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/GetGateway";
2373
2479
  const pathParams = {
@@ -2380,6 +2486,8 @@ class GatewayClient {
2380
2486
  };
2381
2487
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2382
2488
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getGatewayRequest.retryConfiguration, specRetryConfiguration);
2489
+ if (this.logger)
2490
+ retrier.logger = this.logger;
2383
2491
  const request = yield oci_common_1.composeRequest({
2384
2492
  baseEndpoint: this._endpoint,
2385
2493
  defaultHeaders: this._defaultHeaders,
@@ -2424,11 +2532,12 @@ class GatewayClient {
2424
2532
  * @param ListGatewaysRequest
2425
2533
  * @return ListGatewaysResponse
2426
2534
  * @throws OciError when an error occurs
2427
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListGateways.ts.html |here} to see how to use ListGateways API.
2535
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListGateways.ts.html |here} to see how to use ListGateways API.
2428
2536
  */
2429
2537
  listGateways(listGatewaysRequest) {
2430
2538
  return __awaiter(this, void 0, void 0, function* () {
2431
- oci_common_1.logger.debug("Calling operation GatewayClient#listGateways.");
2539
+ if (this.logger)
2540
+ this.logger.debug("Calling operation GatewayClient#listGateways.");
2432
2541
  const operationName = "listGateways";
2433
2542
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/GatewaySummary/ListGateways";
2434
2543
  const pathParams = {};
@@ -2448,6 +2557,8 @@ class GatewayClient {
2448
2557
  };
2449
2558
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2450
2559
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listGatewaysRequest.retryConfiguration, specRetryConfiguration);
2560
+ if (this.logger)
2561
+ retrier.logger = this.logger;
2451
2562
  const request = yield oci_common_1.composeRequest({
2452
2563
  baseEndpoint: this._endpoint,
2453
2564
  defaultHeaders: this._defaultHeaders,
@@ -2496,11 +2607,12 @@ class GatewayClient {
2496
2607
  * @param UpdateGatewayRequest
2497
2608
  * @return UpdateGatewayResponse
2498
2609
  * @throws OciError when an error occurs
2499
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/UpdateGateway.ts.html |here} to see how to use UpdateGateway API.
2610
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/UpdateGateway.ts.html |here} to see how to use UpdateGateway API.
2500
2611
  */
2501
2612
  updateGateway(updateGatewayRequest) {
2502
2613
  return __awaiter(this, void 0, void 0, function* () {
2503
- oci_common_1.logger.debug("Calling operation GatewayClient#updateGateway.");
2614
+ if (this.logger)
2615
+ this.logger.debug("Calling operation GatewayClient#updateGateway.");
2504
2616
  const operationName = "updateGateway";
2505
2617
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Gateway/UpdateGateway";
2506
2618
  const pathParams = {
@@ -2514,6 +2626,8 @@ class GatewayClient {
2514
2626
  };
2515
2627
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2516
2628
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateGatewayRequest.retryConfiguration, specRetryConfiguration);
2629
+ if (this.logger)
2630
+ retrier.logger = this.logger;
2517
2631
  const request = yield oci_common_1.composeRequest({
2518
2632
  baseEndpoint: this._endpoint,
2519
2633
  defaultHeaders: this._defaultHeaders,
@@ -2560,7 +2674,7 @@ var SubscribersApiKeys;
2560
2674
  */
2561
2675
  class SubscribersClient {
2562
2676
  constructor(params, clientConfiguration) {
2563
- this["_realmSpecificEndpointTemplateEnabled"] = false;
2677
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
2564
2678
  this["_endpoint"] = "";
2565
2679
  this["_defaultHeaders"] = {};
2566
2680
  this._circuitBreaker = null;
@@ -2619,7 +2733,11 @@ class SubscribersClient {
2619
2733
  set endpoint(endpoint) {
2620
2734
  this._endpoint = endpoint;
2621
2735
  this._endpoint = this._endpoint + "/20190501";
2622
- oci_common_1.logger.info(`SubscribersClient endpoint set to ${this._endpoint}`);
2736
+ if (this.logger)
2737
+ this.logger.info(`SubscribersClient endpoint set to ${this._endpoint}`);
2738
+ }
2739
+ get logger() {
2740
+ return common.LOG.logger;
2623
2741
  }
2624
2742
  /**
2625
2743
  * Determines whether realm specific endpoint should be used or not.
@@ -2628,7 +2746,8 @@ class SubscribersClient {
2628
2746
  */
2629
2747
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
2630
2748
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
2631
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2749
+ if (this.logger)
2750
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2632
2751
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
2633
2752
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SubscribersClient.serviceEndpointTemplate, this._region, SubscribersClient.endpointServiceName);
2634
2753
  }
@@ -2694,11 +2813,12 @@ class SubscribersClient {
2694
2813
  * @param ChangeSubscriberCompartmentRequest
2695
2814
  * @return ChangeSubscriberCompartmentResponse
2696
2815
  * @throws OciError when an error occurs
2697
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ChangeSubscriberCompartment.ts.html |here} to see how to use ChangeSubscriberCompartment API.
2816
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ChangeSubscriberCompartment.ts.html |here} to see how to use ChangeSubscriberCompartment API.
2698
2817
  */
2699
2818
  changeSubscriberCompartment(changeSubscriberCompartmentRequest) {
2700
2819
  return __awaiter(this, void 0, void 0, function* () {
2701
- oci_common_1.logger.debug("Calling operation SubscribersClient#changeSubscriberCompartment.");
2820
+ if (this.logger)
2821
+ this.logger.debug("Calling operation SubscribersClient#changeSubscriberCompartment.");
2702
2822
  const operationName = "changeSubscriberCompartment";
2703
2823
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/ChangeSubscriberCompartment";
2704
2824
  const pathParams = {
@@ -2713,6 +2833,8 @@ class SubscribersClient {
2713
2833
  };
2714
2834
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2715
2835
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeSubscriberCompartmentRequest.retryConfiguration, specRetryConfiguration);
2836
+ if (this.logger)
2837
+ retrier.logger = this.logger;
2716
2838
  const request = yield oci_common_1.composeRequest({
2717
2839
  baseEndpoint: this._endpoint,
2718
2840
  defaultHeaders: this._defaultHeaders,
@@ -2753,11 +2875,12 @@ class SubscribersClient {
2753
2875
  * @param CreateSubscriberRequest
2754
2876
  * @return CreateSubscriberResponse
2755
2877
  * @throws OciError when an error occurs
2756
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/CreateSubscriber.ts.html |here} to see how to use CreateSubscriber API.
2878
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/CreateSubscriber.ts.html |here} to see how to use CreateSubscriber API.
2757
2879
  */
2758
2880
  createSubscriber(createSubscriberRequest) {
2759
2881
  return __awaiter(this, void 0, void 0, function* () {
2760
- oci_common_1.logger.debug("Calling operation SubscribersClient#createSubscriber.");
2882
+ if (this.logger)
2883
+ this.logger.debug("Calling operation SubscribersClient#createSubscriber.");
2761
2884
  const operationName = "createSubscriber";
2762
2885
  const apiReferenceLink = "";
2763
2886
  const pathParams = {};
@@ -2769,6 +2892,8 @@ class SubscribersClient {
2769
2892
  };
2770
2893
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2771
2894
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSubscriberRequest.retryConfiguration, specRetryConfiguration);
2895
+ if (this.logger)
2896
+ retrier.logger = this.logger;
2772
2897
  const request = yield oci_common_1.composeRequest({
2773
2898
  baseEndpoint: this._endpoint,
2774
2899
  defaultHeaders: this._defaultHeaders,
@@ -2823,11 +2948,12 @@ class SubscribersClient {
2823
2948
  * @param DeleteSubscriberRequest
2824
2949
  * @return DeleteSubscriberResponse
2825
2950
  * @throws OciError when an error occurs
2826
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/DeleteSubscriber.ts.html |here} to see how to use DeleteSubscriber API.
2951
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/DeleteSubscriber.ts.html |here} to see how to use DeleteSubscriber API.
2827
2952
  */
2828
2953
  deleteSubscriber(deleteSubscriberRequest) {
2829
2954
  return __awaiter(this, void 0, void 0, function* () {
2830
- oci_common_1.logger.debug("Calling operation SubscribersClient#deleteSubscriber.");
2955
+ if (this.logger)
2956
+ this.logger.debug("Calling operation SubscribersClient#deleteSubscriber.");
2831
2957
  const operationName = "deleteSubscriber";
2832
2958
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/DeleteSubscriber";
2833
2959
  const pathParams = {
@@ -2841,6 +2967,8 @@ class SubscribersClient {
2841
2967
  };
2842
2968
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2843
2969
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSubscriberRequest.retryConfiguration, specRetryConfiguration);
2970
+ if (this.logger)
2971
+ retrier.logger = this.logger;
2844
2972
  const request = yield oci_common_1.composeRequest({
2845
2973
  baseEndpoint: this._endpoint,
2846
2974
  defaultHeaders: this._defaultHeaders,
@@ -2880,11 +3008,12 @@ class SubscribersClient {
2880
3008
  * @param GetSubscriberRequest
2881
3009
  * @return GetSubscriberResponse
2882
3010
  * @throws OciError when an error occurs
2883
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetSubscriber.ts.html |here} to see how to use GetSubscriber API.
3011
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetSubscriber.ts.html |here} to see how to use GetSubscriber API.
2884
3012
  */
2885
3013
  getSubscriber(getSubscriberRequest) {
2886
3014
  return __awaiter(this, void 0, void 0, function* () {
2887
- oci_common_1.logger.debug("Calling operation SubscribersClient#getSubscriber.");
3015
+ if (this.logger)
3016
+ this.logger.debug("Calling operation SubscribersClient#getSubscriber.");
2888
3017
  const operationName = "getSubscriber";
2889
3018
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/GetSubscriber";
2890
3019
  const pathParams = {
@@ -2897,6 +3026,8 @@ class SubscribersClient {
2897
3026
  };
2898
3027
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2899
3028
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSubscriberRequest.retryConfiguration, specRetryConfiguration);
3029
+ if (this.logger)
3030
+ retrier.logger = this.logger;
2900
3031
  const request = yield oci_common_1.composeRequest({
2901
3032
  baseEndpoint: this._endpoint,
2902
3033
  defaultHeaders: this._defaultHeaders,
@@ -2940,11 +3071,12 @@ class SubscribersClient {
2940
3071
  * @param ListSubscribersRequest
2941
3072
  * @return ListSubscribersResponse
2942
3073
  * @throws OciError when an error occurs
2943
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListSubscribers.ts.html |here} to see how to use ListSubscribers API.
3074
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListSubscribers.ts.html |here} to see how to use ListSubscribers API.
2944
3075
  */
2945
3076
  listSubscribers(listSubscribersRequest) {
2946
3077
  return __awaiter(this, void 0, void 0, function* () {
2947
- oci_common_1.logger.debug("Calling operation SubscribersClient#listSubscribers.");
3078
+ if (this.logger)
3079
+ this.logger.debug("Calling operation SubscribersClient#listSubscribers.");
2948
3080
  const operationName = "listSubscribers";
2949
3081
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/ListSubscribers";
2950
3082
  const pathParams = {};
@@ -2963,6 +3095,8 @@ class SubscribersClient {
2963
3095
  };
2964
3096
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2965
3097
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSubscribersRequest.retryConfiguration, specRetryConfiguration);
3098
+ if (this.logger)
3099
+ retrier.logger = this.logger;
2966
3100
  const request = yield oci_common_1.composeRequest({
2967
3101
  baseEndpoint: this._endpoint,
2968
3102
  defaultHeaders: this._defaultHeaders,
@@ -3011,11 +3145,12 @@ class SubscribersClient {
3011
3145
  * @param UpdateSubscriberRequest
3012
3146
  * @return UpdateSubscriberResponse
3013
3147
  * @throws OciError when an error occurs
3014
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/UpdateSubscriber.ts.html |here} to see how to use UpdateSubscriber API.
3148
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/UpdateSubscriber.ts.html |here} to see how to use UpdateSubscriber API.
3015
3149
  */
3016
3150
  updateSubscriber(updateSubscriberRequest) {
3017
3151
  return __awaiter(this, void 0, void 0, function* () {
3018
- oci_common_1.logger.debug("Calling operation SubscribersClient#updateSubscriber.");
3152
+ if (this.logger)
3153
+ this.logger.debug("Calling operation SubscribersClient#updateSubscriber.");
3019
3154
  const operationName = "updateSubscriber";
3020
3155
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Subscriber/UpdateSubscriber";
3021
3156
  const pathParams = {
@@ -3029,6 +3164,8 @@ class SubscribersClient {
3029
3164
  };
3030
3165
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3031
3166
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSubscriberRequest.retryConfiguration, specRetryConfiguration);
3167
+ if (this.logger)
3168
+ retrier.logger = this.logger;
3032
3169
  const request = yield oci_common_1.composeRequest({
3033
3170
  baseEndpoint: this._endpoint,
3034
3171
  defaultHeaders: this._defaultHeaders,
@@ -3075,7 +3212,7 @@ var UsagePlansApiKeys;
3075
3212
  */
3076
3213
  class UsagePlansClient {
3077
3214
  constructor(params, clientConfiguration) {
3078
- this["_realmSpecificEndpointTemplateEnabled"] = false;
3215
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
3079
3216
  this["_endpoint"] = "";
3080
3217
  this["_defaultHeaders"] = {};
3081
3218
  this._circuitBreaker = null;
@@ -3134,7 +3271,11 @@ class UsagePlansClient {
3134
3271
  set endpoint(endpoint) {
3135
3272
  this._endpoint = endpoint;
3136
3273
  this._endpoint = this._endpoint + "/20190501";
3137
- oci_common_1.logger.info(`UsagePlansClient endpoint set to ${this._endpoint}`);
3274
+ if (this.logger)
3275
+ this.logger.info(`UsagePlansClient endpoint set to ${this._endpoint}`);
3276
+ }
3277
+ get logger() {
3278
+ return common.LOG.logger;
3138
3279
  }
3139
3280
  /**
3140
3281
  * Determines whether realm specific endpoint should be used or not.
@@ -3143,7 +3284,8 @@ class UsagePlansClient {
3143
3284
  */
3144
3285
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
3145
3286
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
3146
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3287
+ if (this.logger)
3288
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3147
3289
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
3148
3290
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(UsagePlansClient.serviceEndpointTemplate, this._region, UsagePlansClient.endpointServiceName);
3149
3291
  }
@@ -3209,11 +3351,12 @@ class UsagePlansClient {
3209
3351
  * @param ChangeUsagePlanCompartmentRequest
3210
3352
  * @return ChangeUsagePlanCompartmentResponse
3211
3353
  * @throws OciError when an error occurs
3212
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ChangeUsagePlanCompartment.ts.html |here} to see how to use ChangeUsagePlanCompartment API.
3354
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ChangeUsagePlanCompartment.ts.html |here} to see how to use ChangeUsagePlanCompartment API.
3213
3355
  */
3214
3356
  changeUsagePlanCompartment(changeUsagePlanCompartmentRequest) {
3215
3357
  return __awaiter(this, void 0, void 0, function* () {
3216
- oci_common_1.logger.debug("Calling operation UsagePlansClient#changeUsagePlanCompartment.");
3358
+ if (this.logger)
3359
+ this.logger.debug("Calling operation UsagePlansClient#changeUsagePlanCompartment.");
3217
3360
  const operationName = "changeUsagePlanCompartment";
3218
3361
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/ChangeUsagePlanCompartment";
3219
3362
  const pathParams = {
@@ -3228,6 +3371,8 @@ class UsagePlansClient {
3228
3371
  };
3229
3372
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3230
3373
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeUsagePlanCompartmentRequest.retryConfiguration, specRetryConfiguration);
3374
+ if (this.logger)
3375
+ retrier.logger = this.logger;
3231
3376
  const request = yield oci_common_1.composeRequest({
3232
3377
  baseEndpoint: this._endpoint,
3233
3378
  defaultHeaders: this._defaultHeaders,
@@ -3268,11 +3413,12 @@ class UsagePlansClient {
3268
3413
  * @param CreateUsagePlanRequest
3269
3414
  * @return CreateUsagePlanResponse
3270
3415
  * @throws OciError when an error occurs
3271
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/CreateUsagePlan.ts.html |here} to see how to use CreateUsagePlan API.
3416
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/CreateUsagePlan.ts.html |here} to see how to use CreateUsagePlan API.
3272
3417
  */
3273
3418
  createUsagePlan(createUsagePlanRequest) {
3274
3419
  return __awaiter(this, void 0, void 0, function* () {
3275
- oci_common_1.logger.debug("Calling operation UsagePlansClient#createUsagePlan.");
3420
+ if (this.logger)
3421
+ this.logger.debug("Calling operation UsagePlansClient#createUsagePlan.");
3276
3422
  const operationName = "createUsagePlan";
3277
3423
  const apiReferenceLink = "";
3278
3424
  const pathParams = {};
@@ -3284,6 +3430,8 @@ class UsagePlansClient {
3284
3430
  };
3285
3431
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3286
3432
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createUsagePlanRequest.retryConfiguration, specRetryConfiguration);
3433
+ if (this.logger)
3434
+ retrier.logger = this.logger;
3287
3435
  const request = yield oci_common_1.composeRequest({
3288
3436
  baseEndpoint: this._endpoint,
3289
3437
  defaultHeaders: this._defaultHeaders,
@@ -3338,11 +3486,12 @@ class UsagePlansClient {
3338
3486
  * @param DeleteUsagePlanRequest
3339
3487
  * @return DeleteUsagePlanResponse
3340
3488
  * @throws OciError when an error occurs
3341
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/DeleteUsagePlan.ts.html |here} to see how to use DeleteUsagePlan API.
3489
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/DeleteUsagePlan.ts.html |here} to see how to use DeleteUsagePlan API.
3342
3490
  */
3343
3491
  deleteUsagePlan(deleteUsagePlanRequest) {
3344
3492
  return __awaiter(this, void 0, void 0, function* () {
3345
- oci_common_1.logger.debug("Calling operation UsagePlansClient#deleteUsagePlan.");
3493
+ if (this.logger)
3494
+ this.logger.debug("Calling operation UsagePlansClient#deleteUsagePlan.");
3346
3495
  const operationName = "deleteUsagePlan";
3347
3496
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/DeleteUsagePlan";
3348
3497
  const pathParams = {
@@ -3356,6 +3505,8 @@ class UsagePlansClient {
3356
3505
  };
3357
3506
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3358
3507
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteUsagePlanRequest.retryConfiguration, specRetryConfiguration);
3508
+ if (this.logger)
3509
+ retrier.logger = this.logger;
3359
3510
  const request = yield oci_common_1.composeRequest({
3360
3511
  baseEndpoint: this._endpoint,
3361
3512
  defaultHeaders: this._defaultHeaders,
@@ -3395,11 +3546,12 @@ class UsagePlansClient {
3395
3546
  * @param GetUsagePlanRequest
3396
3547
  * @return GetUsagePlanResponse
3397
3548
  * @throws OciError when an error occurs
3398
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetUsagePlan.ts.html |here} to see how to use GetUsagePlan API.
3549
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetUsagePlan.ts.html |here} to see how to use GetUsagePlan API.
3399
3550
  */
3400
3551
  getUsagePlan(getUsagePlanRequest) {
3401
3552
  return __awaiter(this, void 0, void 0, function* () {
3402
- oci_common_1.logger.debug("Calling operation UsagePlansClient#getUsagePlan.");
3553
+ if (this.logger)
3554
+ this.logger.debug("Calling operation UsagePlansClient#getUsagePlan.");
3403
3555
  const operationName = "getUsagePlan";
3404
3556
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/GetUsagePlan";
3405
3557
  const pathParams = {
@@ -3412,6 +3564,8 @@ class UsagePlansClient {
3412
3564
  };
3413
3565
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3414
3566
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getUsagePlanRequest.retryConfiguration, specRetryConfiguration);
3567
+ if (this.logger)
3568
+ retrier.logger = this.logger;
3415
3569
  const request = yield oci_common_1.composeRequest({
3416
3570
  baseEndpoint: this._endpoint,
3417
3571
  defaultHeaders: this._defaultHeaders,
@@ -3455,11 +3609,12 @@ class UsagePlansClient {
3455
3609
  * @param ListUsagePlansRequest
3456
3610
  * @return ListUsagePlansResponse
3457
3611
  * @throws OciError when an error occurs
3458
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListUsagePlans.ts.html |here} to see how to use ListUsagePlans API.
3612
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListUsagePlans.ts.html |here} to see how to use ListUsagePlans API.
3459
3613
  */
3460
3614
  listUsagePlans(listUsagePlansRequest) {
3461
3615
  return __awaiter(this, void 0, void 0, function* () {
3462
- oci_common_1.logger.debug("Calling operation UsagePlansClient#listUsagePlans.");
3616
+ if (this.logger)
3617
+ this.logger.debug("Calling operation UsagePlansClient#listUsagePlans.");
3463
3618
  const operationName = "listUsagePlans";
3464
3619
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/ListUsagePlans";
3465
3620
  const pathParams = {};
@@ -3478,6 +3633,8 @@ class UsagePlansClient {
3478
3633
  };
3479
3634
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3480
3635
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listUsagePlansRequest.retryConfiguration, specRetryConfiguration);
3636
+ if (this.logger)
3637
+ retrier.logger = this.logger;
3481
3638
  const request = yield oci_common_1.composeRequest({
3482
3639
  baseEndpoint: this._endpoint,
3483
3640
  defaultHeaders: this._defaultHeaders,
@@ -3526,11 +3683,12 @@ class UsagePlansClient {
3526
3683
  * @param UpdateUsagePlanRequest
3527
3684
  * @return UpdateUsagePlanResponse
3528
3685
  * @throws OciError when an error occurs
3529
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/UpdateUsagePlan.ts.html |here} to see how to use UpdateUsagePlan API.
3686
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/UpdateUsagePlan.ts.html |here} to see how to use UpdateUsagePlan API.
3530
3687
  */
3531
3688
  updateUsagePlan(updateUsagePlanRequest) {
3532
3689
  return __awaiter(this, void 0, void 0, function* () {
3533
- oci_common_1.logger.debug("Calling operation UsagePlansClient#updateUsagePlan.");
3690
+ if (this.logger)
3691
+ this.logger.debug("Calling operation UsagePlansClient#updateUsagePlan.");
3534
3692
  const operationName = "updateUsagePlan";
3535
3693
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/UsagePlan/UpdateUsagePlan";
3536
3694
  const pathParams = {
@@ -3544,6 +3702,8 @@ class UsagePlansClient {
3544
3702
  };
3545
3703
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3546
3704
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateUsagePlanRequest.retryConfiguration, specRetryConfiguration);
3705
+ if (this.logger)
3706
+ retrier.logger = this.logger;
3547
3707
  const request = yield oci_common_1.composeRequest({
3548
3708
  baseEndpoint: this._endpoint,
3549
3709
  defaultHeaders: this._defaultHeaders,
@@ -3590,7 +3750,7 @@ var WorkRequestsApiKeys;
3590
3750
  */
3591
3751
  class WorkRequestsClient {
3592
3752
  constructor(params, clientConfiguration) {
3593
- this["_realmSpecificEndpointTemplateEnabled"] = false;
3753
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
3594
3754
  this["_endpoint"] = "";
3595
3755
  this["_defaultHeaders"] = {};
3596
3756
  this._circuitBreaker = null;
@@ -3649,7 +3809,11 @@ class WorkRequestsClient {
3649
3809
  set endpoint(endpoint) {
3650
3810
  this._endpoint = endpoint;
3651
3811
  this._endpoint = this._endpoint + "/20190501";
3652
- oci_common_1.logger.info(`WorkRequestsClient endpoint set to ${this._endpoint}`);
3812
+ if (this.logger)
3813
+ this.logger.info(`WorkRequestsClient endpoint set to ${this._endpoint}`);
3814
+ }
3815
+ get logger() {
3816
+ return common.LOG.logger;
3653
3817
  }
3654
3818
  /**
3655
3819
  * Determines whether realm specific endpoint should be used or not.
@@ -3658,7 +3822,8 @@ class WorkRequestsClient {
3658
3822
  */
3659
3823
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
3660
3824
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
3661
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3825
+ if (this.logger)
3826
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3662
3827
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
3663
3828
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, this._region, WorkRequestsClient.endpointServiceName);
3664
3829
  }
@@ -3724,11 +3889,12 @@ class WorkRequestsClient {
3724
3889
  * @param CancelWorkRequestRequest
3725
3890
  * @return CancelWorkRequestResponse
3726
3891
  * @throws OciError when an error occurs
3727
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
3892
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
3728
3893
  */
3729
3894
  cancelWorkRequest(cancelWorkRequestRequest) {
3730
3895
  return __awaiter(this, void 0, void 0, function* () {
3731
- oci_common_1.logger.debug("Calling operation WorkRequestsClient#cancelWorkRequest.");
3896
+ if (this.logger)
3897
+ this.logger.debug("Calling operation WorkRequestsClient#cancelWorkRequest.");
3732
3898
  const operationName = "cancelWorkRequest";
3733
3899
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequest/CancelWorkRequest";
3734
3900
  const pathParams = {
@@ -3743,6 +3909,8 @@ class WorkRequestsClient {
3743
3909
  };
3744
3910
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3745
3911
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
3912
+ if (this.logger)
3913
+ retrier.logger = this.logger;
3746
3914
  const request = yield oci_common_1.composeRequest({
3747
3915
  baseEndpoint: this._endpoint,
3748
3916
  defaultHeaders: this._defaultHeaders,
@@ -3777,11 +3945,12 @@ class WorkRequestsClient {
3777
3945
  * @param GetWorkRequestRequest
3778
3946
  * @return GetWorkRequestResponse
3779
3947
  * @throws OciError when an error occurs
3780
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
3948
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
3781
3949
  */
3782
3950
  getWorkRequest(getWorkRequestRequest) {
3783
3951
  return __awaiter(this, void 0, void 0, function* () {
3784
- oci_common_1.logger.debug("Calling operation WorkRequestsClient#getWorkRequest.");
3952
+ if (this.logger)
3953
+ this.logger.debug("Calling operation WorkRequestsClient#getWorkRequest.");
3785
3954
  const operationName = "getWorkRequest";
3786
3955
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequest/GetWorkRequest";
3787
3956
  const pathParams = {
@@ -3794,6 +3963,8 @@ class WorkRequestsClient {
3794
3963
  };
3795
3964
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3796
3965
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
3966
+ if (this.logger)
3967
+ retrier.logger = this.logger;
3797
3968
  const request = yield oci_common_1.composeRequest({
3798
3969
  baseEndpoint: this._endpoint,
3799
3970
  defaultHeaders: this._defaultHeaders,
@@ -3843,11 +4014,12 @@ class WorkRequestsClient {
3843
4014
  * @param ListWorkRequestErrorsRequest
3844
4015
  * @return ListWorkRequestErrorsResponse
3845
4016
  * @throws OciError when an error occurs
3846
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
4017
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3847
4018
  */
3848
4019
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
3849
4020
  return __awaiter(this, void 0, void 0, function* () {
3850
- oci_common_1.logger.debug("Calling operation WorkRequestsClient#listWorkRequestErrors.");
4021
+ if (this.logger)
4022
+ this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestErrors.");
3851
4023
  const operationName = "listWorkRequestErrors";
3852
4024
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequestError/ListWorkRequestErrors";
3853
4025
  const pathParams = {
@@ -3865,6 +4037,8 @@ class WorkRequestsClient {
3865
4037
  };
3866
4038
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3867
4039
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
4040
+ if (this.logger)
4041
+ retrier.logger = this.logger;
3868
4042
  const request = yield oci_common_1.composeRequest({
3869
4043
  baseEndpoint: this._endpoint,
3870
4044
  defaultHeaders: this._defaultHeaders,
@@ -3914,11 +4088,12 @@ class WorkRequestsClient {
3914
4088
  * @param ListWorkRequestLogsRequest
3915
4089
  * @return ListWorkRequestLogsResponse
3916
4090
  * @throws OciError when an error occurs
3917
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
4091
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3918
4092
  */
3919
4093
  listWorkRequestLogs(listWorkRequestLogsRequest) {
3920
4094
  return __awaiter(this, void 0, void 0, function* () {
3921
- oci_common_1.logger.debug("Calling operation WorkRequestsClient#listWorkRequestLogs.");
4095
+ if (this.logger)
4096
+ this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestLogs.");
3922
4097
  const operationName = "listWorkRequestLogs";
3923
4098
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequestLog/ListWorkRequestLogs";
3924
4099
  const pathParams = {
@@ -3936,6 +4111,8 @@ class WorkRequestsClient {
3936
4111
  };
3937
4112
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3938
4113
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
4114
+ if (this.logger)
4115
+ retrier.logger = this.logger;
3939
4116
  const request = yield oci_common_1.composeRequest({
3940
4117
  baseEndpoint: this._endpoint,
3941
4118
  defaultHeaders: this._defaultHeaders,
@@ -3985,11 +4162,12 @@ class WorkRequestsClient {
3985
4162
  * @param ListWorkRequestsRequest
3986
4163
  * @return ListWorkRequestsResponse
3987
4164
  * @throws OciError when an error occurs
3988
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/apigateway/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
4165
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/apigateway/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
3989
4166
  */
3990
4167
  listWorkRequests(listWorkRequestsRequest) {
3991
4168
  return __awaiter(this, void 0, void 0, function* () {
3992
- oci_common_1.logger.debug("Calling operation WorkRequestsClient#listWorkRequests.");
4169
+ if (this.logger)
4170
+ this.logger.debug("Calling operation WorkRequestsClient#listWorkRequests.");
3993
4171
  const operationName = "listWorkRequests";
3994
4172
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/WorkRequestSummary/ListWorkRequests";
3995
4173
  const pathParams = {};
@@ -4007,6 +4185,8 @@ class WorkRequestsClient {
4007
4185
  };
4008
4186
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
4009
4187
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
4188
+ if (this.logger)
4189
+ retrier.logger = this.logger;
4010
4190
  const request = yield oci_common_1.composeRequest({
4011
4191
  baseEndpoint: this._endpoint,
4012
4192
  defaultHeaders: this._defaultHeaders,