oci-apigateway 2.78.0 → 2.79.1

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