oci-ocvp 2.79.1 → 2.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/lib/client.d.ts +39 -35
  2. package/lib/client.js +187 -74
  3. package/lib/client.js.map +1 -1
  4. package/lib/request/cancel-downgrade-hcx-request.d.ts +1 -1
  5. package/lib/request/change-sddc-compartment-request.d.ts +1 -1
  6. package/lib/request/create-cluster-request.d.ts +1 -1
  7. package/lib/request/create-esxi-host-request.d.ts +1 -1
  8. package/lib/request/create-sddc-request.d.ts +1 -1
  9. package/lib/request/delete-cluster-request.d.ts +1 -1
  10. package/lib/request/delete-esxi-host-request.d.ts +1 -1
  11. package/lib/request/delete-sddc-request.d.ts +1 -1
  12. package/lib/request/downgrade-hcx-request.d.ts +1 -1
  13. package/lib/request/get-cluster-request.d.ts +1 -1
  14. package/lib/request/get-esxi-host-request.d.ts +1 -1
  15. package/lib/request/get-sddc-request.d.ts +1 -1
  16. package/lib/request/get-work-request-request.d.ts +1 -1
  17. package/lib/request/inplace-upgrade-request.d.ts +1 -1
  18. package/lib/request/list-clusters-request.d.ts +1 -1
  19. package/lib/request/list-esxi-hosts-request.d.ts +1 -1
  20. package/lib/request/list-sddcs-request.d.ts +1 -1
  21. package/lib/request/list-supported-commitments-request.d.ts +1 -1
  22. package/lib/request/list-supported-host-shapes-request.d.ts +1 -1
  23. package/lib/request/list-supported-vmware-software-versions-request.d.ts +1 -1
  24. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  25. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  26. package/lib/request/list-work-requests-request.d.ts +1 -1
  27. package/lib/request/refresh-hcx-license-status-request.d.ts +1 -1
  28. package/lib/request/replace-host-request.d.ts +1 -1
  29. package/lib/request/retrieve-password-request.d.ts +1 -1
  30. package/lib/request/swap-billing-request.d.ts +1 -1
  31. package/lib/request/update-cluster-request.d.ts +1 -1
  32. package/lib/request/update-esxi-host-request.d.ts +1 -1
  33. package/lib/request/update-sddc-request.d.ts +1 -1
  34. package/lib/request/upgrade-hcx-request.d.ts +1 -1
  35. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -62,7 +62,7 @@ var ClusterApiKeys;
62
62
  */
63
63
  class ClusterClient {
64
64
  constructor(params, clientConfiguration) {
65
- this["_realmSpecificEndpointTemplateEnabled"] = false;
65
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
66
66
  this["_endpoint"] = "";
67
67
  this["_defaultHeaders"] = {};
68
68
  this._circuitBreaker = null;
@@ -121,7 +121,11 @@ class ClusterClient {
121
121
  set endpoint(endpoint) {
122
122
  this._endpoint = endpoint;
123
123
  this._endpoint = this._endpoint + "/20230701";
124
- oci_common_1.logger.info(`ClusterClient endpoint set to ${this._endpoint}`);
124
+ if (this.logger)
125
+ this.logger.info(`ClusterClient endpoint set to ${this._endpoint}`);
126
+ }
127
+ get logger() {
128
+ return common.LOG.logger;
125
129
  }
126
130
  /**
127
131
  * Determines whether realm specific endpoint should be used or not.
@@ -130,7 +134,8 @@ class ClusterClient {
130
134
  */
131
135
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
132
136
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
133
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
137
+ if (this.logger)
138
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
134
139
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
135
140
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ClusterClient.serviceEndpointTemplate, this._region, ClusterClient.endpointServiceName);
136
141
  }
@@ -202,11 +207,12 @@ class ClusterClient {
202
207
  * @param CreateClusterRequest
203
208
  * @return CreateClusterResponse
204
209
  * @throws OciError when an error occurs
205
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/CreateCluster.ts.html |here} to see how to use CreateCluster API.
210
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/CreateCluster.ts.html |here} to see how to use CreateCluster API.
206
211
  */
207
212
  createCluster(createClusterRequest) {
208
213
  return __awaiter(this, void 0, void 0, function* () {
209
- oci_common_1.logger.debug("Calling operation ClusterClient#createCluster.");
214
+ if (this.logger)
215
+ this.logger.debug("Calling operation ClusterClient#createCluster.");
210
216
  const operationName = "createCluster";
211
217
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/CreateCluster";
212
218
  const pathParams = {};
@@ -218,6 +224,8 @@ class ClusterClient {
218
224
  };
219
225
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
220
226
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createClusterRequest.retryConfiguration, specRetryConfiguration);
227
+ if (this.logger)
228
+ retrier.logger = this.logger;
221
229
  const request = yield oci_common_1.composeRequest({
222
230
  baseEndpoint: this._endpoint,
223
231
  defaultHeaders: this._defaultHeaders,
@@ -264,11 +272,12 @@ class ClusterClient {
264
272
  * @param DeleteClusterRequest
265
273
  * @return DeleteClusterResponse
266
274
  * @throws OciError when an error occurs
267
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/DeleteCluster.ts.html |here} to see how to use DeleteCluster API.
275
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/DeleteCluster.ts.html |here} to see how to use DeleteCluster API.
268
276
  */
269
277
  deleteCluster(deleteClusterRequest) {
270
278
  return __awaiter(this, void 0, void 0, function* () {
271
- oci_common_1.logger.debug("Calling operation ClusterClient#deleteCluster.");
279
+ if (this.logger)
280
+ this.logger.debug("Calling operation ClusterClient#deleteCluster.");
272
281
  const operationName = "deleteCluster";
273
282
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/DeleteCluster";
274
283
  const pathParams = {
@@ -282,6 +291,8 @@ class ClusterClient {
282
291
  };
283
292
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
284
293
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteClusterRequest.retryConfiguration, specRetryConfiguration);
294
+ if (this.logger)
295
+ retrier.logger = this.logger;
285
296
  const request = yield oci_common_1.composeRequest({
286
297
  baseEndpoint: this._endpoint,
287
298
  defaultHeaders: this._defaultHeaders,
@@ -321,11 +332,12 @@ class ClusterClient {
321
332
  * @param GetClusterRequest
322
333
  * @return GetClusterResponse
323
334
  * @throws OciError when an error occurs
324
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/GetCluster.ts.html |here} to see how to use GetCluster API.
335
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/GetCluster.ts.html |here} to see how to use GetCluster API.
325
336
  */
326
337
  getCluster(getClusterRequest) {
327
338
  return __awaiter(this, void 0, void 0, function* () {
328
- oci_common_1.logger.debug("Calling operation ClusterClient#getCluster.");
339
+ if (this.logger)
340
+ this.logger.debug("Calling operation ClusterClient#getCluster.");
329
341
  const operationName = "getCluster";
330
342
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/GetCluster";
331
343
  const pathParams = {
@@ -338,6 +350,8 @@ class ClusterClient {
338
350
  };
339
351
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
340
352
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getClusterRequest.retryConfiguration, specRetryConfiguration);
353
+ if (this.logger)
354
+ retrier.logger = this.logger;
341
355
  const request = yield oci_common_1.composeRequest({
342
356
  baseEndpoint: this._endpoint,
343
357
  defaultHeaders: this._defaultHeaders,
@@ -382,11 +396,12 @@ class ClusterClient {
382
396
  * @param ListClustersRequest
383
397
  * @return ListClustersResponse
384
398
  * @throws OciError when an error occurs
385
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ListClusters.ts.html |here} to see how to use ListClusters API.
399
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ListClusters.ts.html |here} to see how to use ListClusters API.
386
400
  */
387
401
  listClusters(listClustersRequest) {
388
402
  return __awaiter(this, void 0, void 0, function* () {
389
- oci_common_1.logger.debug("Calling operation ClusterClient#listClusters.");
403
+ if (this.logger)
404
+ this.logger.debug("Calling operation ClusterClient#listClusters.");
390
405
  const operationName = "listClusters";
391
406
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/ClusterSummary/ListClusters";
392
407
  const pathParams = {};
@@ -406,6 +421,8 @@ class ClusterClient {
406
421
  };
407
422
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
408
423
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listClustersRequest.retryConfiguration, specRetryConfiguration);
424
+ if (this.logger)
425
+ retrier.logger = this.logger;
409
426
  const request = yield oci_common_1.composeRequest({
410
427
  baseEndpoint: this._endpoint,
411
428
  defaultHeaders: this._defaultHeaders,
@@ -454,11 +471,12 @@ class ClusterClient {
454
471
  * @param UpdateClusterRequest
455
472
  * @return UpdateClusterResponse
456
473
  * @throws OciError when an error occurs
457
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/UpdateCluster.ts.html |here} to see how to use UpdateCluster API.
474
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/UpdateCluster.ts.html |here} to see how to use UpdateCluster API.
458
475
  */
459
476
  updateCluster(updateClusterRequest) {
460
477
  return __awaiter(this, void 0, void 0, function* () {
461
- oci_common_1.logger.debug("Calling operation ClusterClient#updateCluster.");
478
+ if (this.logger)
479
+ this.logger.debug("Calling operation ClusterClient#updateCluster.");
462
480
  const operationName = "updateCluster";
463
481
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/UpdateCluster";
464
482
  const pathParams = {
@@ -472,6 +490,8 @@ class ClusterClient {
472
490
  };
473
491
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
474
492
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateClusterRequest.retryConfiguration, specRetryConfiguration);
493
+ if (this.logger)
494
+ retrier.logger = this.logger;
475
495
  const request = yield oci_common_1.composeRequest({
476
496
  baseEndpoint: this._endpoint,
477
497
  defaultHeaders: this._defaultHeaders,
@@ -522,7 +542,7 @@ var EsxiHostApiKeys;
522
542
  */
523
543
  class EsxiHostClient {
524
544
  constructor(params, clientConfiguration) {
525
- this["_realmSpecificEndpointTemplateEnabled"] = false;
545
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
526
546
  this["_endpoint"] = "";
527
547
  this["_defaultHeaders"] = {};
528
548
  this._circuitBreaker = null;
@@ -581,7 +601,11 @@ class EsxiHostClient {
581
601
  set endpoint(endpoint) {
582
602
  this._endpoint = endpoint;
583
603
  this._endpoint = this._endpoint + "/20230701";
584
- oci_common_1.logger.info(`EsxiHostClient endpoint set to ${this._endpoint}`);
604
+ if (this.logger)
605
+ this.logger.info(`EsxiHostClient endpoint set to ${this._endpoint}`);
606
+ }
607
+ get logger() {
608
+ return common.LOG.logger;
585
609
  }
586
610
  /**
587
611
  * Determines whether realm specific endpoint should be used or not.
@@ -590,7 +614,8 @@ class EsxiHostClient {
590
614
  */
591
615
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
592
616
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
593
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
617
+ if (this.logger)
618
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
594
619
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
595
620
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(EsxiHostClient.serviceEndpointTemplate, this._region, EsxiHostClient.endpointServiceName);
596
621
  }
@@ -662,11 +687,12 @@ class EsxiHostClient {
662
687
  * @param CreateEsxiHostRequest
663
688
  * @return CreateEsxiHostResponse
664
689
  * @throws OciError when an error occurs
665
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/CreateEsxiHost.ts.html |here} to see how to use CreateEsxiHost API.
690
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/CreateEsxiHost.ts.html |here} to see how to use CreateEsxiHost API.
666
691
  */
667
692
  createEsxiHost(createEsxiHostRequest) {
668
693
  return __awaiter(this, void 0, void 0, function* () {
669
- oci_common_1.logger.debug("Calling operation EsxiHostClient#createEsxiHost.");
694
+ if (this.logger)
695
+ this.logger.debug("Calling operation EsxiHostClient#createEsxiHost.");
670
696
  const operationName = "createEsxiHost";
671
697
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/CreateEsxiHost";
672
698
  const pathParams = {};
@@ -678,6 +704,8 @@ class EsxiHostClient {
678
704
  };
679
705
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
680
706
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createEsxiHostRequest.retryConfiguration, specRetryConfiguration);
707
+ if (this.logger)
708
+ retrier.logger = this.logger;
681
709
  const request = yield oci_common_1.composeRequest({
682
710
  baseEndpoint: this._endpoint,
683
711
  defaultHeaders: this._defaultHeaders,
@@ -732,11 +760,12 @@ class EsxiHostClient {
732
760
  * @param DeleteEsxiHostRequest
733
761
  * @return DeleteEsxiHostResponse
734
762
  * @throws OciError when an error occurs
735
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/DeleteEsxiHost.ts.html |here} to see how to use DeleteEsxiHost API.
763
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/DeleteEsxiHost.ts.html |here} to see how to use DeleteEsxiHost API.
736
764
  */
737
765
  deleteEsxiHost(deleteEsxiHostRequest) {
738
766
  return __awaiter(this, void 0, void 0, function* () {
739
- oci_common_1.logger.debug("Calling operation EsxiHostClient#deleteEsxiHost.");
767
+ if (this.logger)
768
+ this.logger.debug("Calling operation EsxiHostClient#deleteEsxiHost.");
740
769
  const operationName = "deleteEsxiHost";
741
770
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/DeleteEsxiHost";
742
771
  const pathParams = {
@@ -750,6 +779,8 @@ class EsxiHostClient {
750
779
  };
751
780
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
752
781
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteEsxiHostRequest.retryConfiguration, specRetryConfiguration);
782
+ if (this.logger)
783
+ retrier.logger = this.logger;
753
784
  const request = yield oci_common_1.composeRequest({
754
785
  baseEndpoint: this._endpoint,
755
786
  defaultHeaders: this._defaultHeaders,
@@ -789,11 +820,12 @@ class EsxiHostClient {
789
820
  * @param GetEsxiHostRequest
790
821
  * @return GetEsxiHostResponse
791
822
  * @throws OciError when an error occurs
792
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/GetEsxiHost.ts.html |here} to see how to use GetEsxiHost API.
823
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/GetEsxiHost.ts.html |here} to see how to use GetEsxiHost API.
793
824
  */
794
825
  getEsxiHost(getEsxiHostRequest) {
795
826
  return __awaiter(this, void 0, void 0, function* () {
796
- oci_common_1.logger.debug("Calling operation EsxiHostClient#getEsxiHost.");
827
+ if (this.logger)
828
+ this.logger.debug("Calling operation EsxiHostClient#getEsxiHost.");
797
829
  const operationName = "getEsxiHost";
798
830
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/GetEsxiHost";
799
831
  const pathParams = {
@@ -806,6 +838,8 @@ class EsxiHostClient {
806
838
  };
807
839
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
808
840
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEsxiHostRequest.retryConfiguration, specRetryConfiguration);
841
+ if (this.logger)
842
+ retrier.logger = this.logger;
809
843
  const request = yield oci_common_1.composeRequest({
810
844
  baseEndpoint: this._endpoint,
811
845
  defaultHeaders: this._defaultHeaders,
@@ -850,11 +884,12 @@ class EsxiHostClient {
850
884
  * @param InplaceUpgradeRequest
851
885
  * @return InplaceUpgradeResponse
852
886
  * @throws OciError when an error occurs
853
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/InplaceUpgrade.ts.html |here} to see how to use InplaceUpgrade API.
887
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/InplaceUpgrade.ts.html |here} to see how to use InplaceUpgrade API.
854
888
  */
855
889
  inplaceUpgrade(inplaceUpgradeRequest) {
856
890
  return __awaiter(this, void 0, void 0, function* () {
857
- oci_common_1.logger.debug("Calling operation EsxiHostClient#inplaceUpgrade.");
891
+ if (this.logger)
892
+ this.logger.debug("Calling operation EsxiHostClient#inplaceUpgrade.");
858
893
  const operationName = "inplaceUpgrade";
859
894
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/InplaceUpgrade";
860
895
  const pathParams = {
@@ -869,6 +904,8 @@ class EsxiHostClient {
869
904
  };
870
905
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
871
906
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, inplaceUpgradeRequest.retryConfiguration, specRetryConfiguration);
907
+ if (this.logger)
908
+ retrier.logger = this.logger;
872
909
  const request = yield oci_common_1.composeRequest({
873
910
  baseEndpoint: this._endpoint,
874
911
  defaultHeaders: this._defaultHeaders,
@@ -917,11 +954,12 @@ class EsxiHostClient {
917
954
  * @param ListEsxiHostsRequest
918
955
  * @return ListEsxiHostsResponse
919
956
  * @throws OciError when an error occurs
920
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ListEsxiHosts.ts.html |here} to see how to use ListEsxiHosts API.
957
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ListEsxiHosts.ts.html |here} to see how to use ListEsxiHosts API.
921
958
  */
922
959
  listEsxiHosts(listEsxiHostsRequest) {
923
960
  return __awaiter(this, void 0, void 0, function* () {
924
- oci_common_1.logger.debug("Calling operation EsxiHostClient#listEsxiHosts.");
961
+ if (this.logger)
962
+ this.logger.debug("Calling operation EsxiHostClient#listEsxiHosts.");
925
963
  const operationName = "listEsxiHosts";
926
964
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHostSummary/ListEsxiHosts";
927
965
  const pathParams = {};
@@ -945,6 +983,8 @@ class EsxiHostClient {
945
983
  };
946
984
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
947
985
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEsxiHostsRequest.retryConfiguration, specRetryConfiguration);
986
+ if (this.logger)
987
+ retrier.logger = this.logger;
948
988
  const request = yield oci_common_1.composeRequest({
949
989
  baseEndpoint: this._endpoint,
950
990
  defaultHeaders: this._defaultHeaders,
@@ -989,11 +1029,12 @@ class EsxiHostClient {
989
1029
  * @param ReplaceHostRequest
990
1030
  * @return ReplaceHostResponse
991
1031
  * @throws OciError when an error occurs
992
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ReplaceHost.ts.html |here} to see how to use ReplaceHost API.
1032
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ReplaceHost.ts.html |here} to see how to use ReplaceHost API.
993
1033
  */
994
1034
  replaceHost(replaceHostRequest) {
995
1035
  return __awaiter(this, void 0, void 0, function* () {
996
- oci_common_1.logger.debug("Calling operation EsxiHostClient#replaceHost.");
1036
+ if (this.logger)
1037
+ this.logger.debug("Calling operation EsxiHostClient#replaceHost.");
997
1038
  const operationName = "replaceHost";
998
1039
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/ReplaceHost";
999
1040
  const pathParams = {
@@ -1008,6 +1049,8 @@ class EsxiHostClient {
1008
1049
  };
1009
1050
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1010
1051
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, replaceHostRequest.retryConfiguration, specRetryConfiguration);
1052
+ if (this.logger)
1053
+ retrier.logger = this.logger;
1011
1054
  const request = yield oci_common_1.composeRequest({
1012
1055
  baseEndpoint: this._endpoint,
1013
1056
  defaultHeaders: this._defaultHeaders,
@@ -1049,11 +1092,12 @@ class EsxiHostClient {
1049
1092
  * @param SwapBillingRequest
1050
1093
  * @return SwapBillingResponse
1051
1094
  * @throws OciError when an error occurs
1052
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/SwapBilling.ts.html |here} to see how to use SwapBilling API.
1095
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/SwapBilling.ts.html |here} to see how to use SwapBilling API.
1053
1096
  */
1054
1097
  swapBilling(swapBillingRequest) {
1055
1098
  return __awaiter(this, void 0, void 0, function* () {
1056
- oci_common_1.logger.debug("Calling operation EsxiHostClient#swapBilling.");
1099
+ if (this.logger)
1100
+ this.logger.debug("Calling operation EsxiHostClient#swapBilling.");
1057
1101
  const operationName = "swapBilling";
1058
1102
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/SwapBilling";
1059
1103
  const pathParams = {
@@ -1070,6 +1114,8 @@ class EsxiHostClient {
1070
1114
  };
1071
1115
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1072
1116
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, swapBillingRequest.retryConfiguration, specRetryConfiguration);
1117
+ if (this.logger)
1118
+ retrier.logger = this.logger;
1073
1119
  const request = yield oci_common_1.composeRequest({
1074
1120
  baseEndpoint: this._endpoint,
1075
1121
  defaultHeaders: this._defaultHeaders,
@@ -1109,11 +1155,12 @@ class EsxiHostClient {
1109
1155
  * @param UpdateEsxiHostRequest
1110
1156
  * @return UpdateEsxiHostResponse
1111
1157
  * @throws OciError when an error occurs
1112
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/UpdateEsxiHost.ts.html |here} to see how to use UpdateEsxiHost API.
1158
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/UpdateEsxiHost.ts.html |here} to see how to use UpdateEsxiHost API.
1113
1159
  */
1114
1160
  updateEsxiHost(updateEsxiHostRequest) {
1115
1161
  return __awaiter(this, void 0, void 0, function* () {
1116
- oci_common_1.logger.debug("Calling operation EsxiHostClient#updateEsxiHost.");
1162
+ if (this.logger)
1163
+ this.logger.debug("Calling operation EsxiHostClient#updateEsxiHost.");
1117
1164
  const operationName = "updateEsxiHost";
1118
1165
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/UpdateEsxiHost";
1119
1166
  const pathParams = {
@@ -1127,6 +1174,8 @@ class EsxiHostClient {
1127
1174
  };
1128
1175
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1129
1176
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEsxiHostRequest.retryConfiguration, specRetryConfiguration);
1177
+ if (this.logger)
1178
+ retrier.logger = this.logger;
1130
1179
  const request = yield oci_common_1.composeRequest({
1131
1180
  baseEndpoint: this._endpoint,
1132
1181
  defaultHeaders: this._defaultHeaders,
@@ -1177,7 +1226,7 @@ var SddcApiKeys;
1177
1226
  */
1178
1227
  class SddcClient {
1179
1228
  constructor(params, clientConfiguration) {
1180
- this["_realmSpecificEndpointTemplateEnabled"] = false;
1229
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
1181
1230
  this["_endpoint"] = "";
1182
1231
  this["_defaultHeaders"] = {};
1183
1232
  this._circuitBreaker = null;
@@ -1236,7 +1285,11 @@ class SddcClient {
1236
1285
  set endpoint(endpoint) {
1237
1286
  this._endpoint = endpoint;
1238
1287
  this._endpoint = this._endpoint + "/20230701";
1239
- oci_common_1.logger.info(`SddcClient endpoint set to ${this._endpoint}`);
1288
+ if (this.logger)
1289
+ this.logger.info(`SddcClient endpoint set to ${this._endpoint}`);
1290
+ }
1291
+ get logger() {
1292
+ return common.LOG.logger;
1240
1293
  }
1241
1294
  /**
1242
1295
  * Determines whether realm specific endpoint should be used or not.
@@ -1245,7 +1298,8 @@ class SddcClient {
1245
1298
  */
1246
1299
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1247
1300
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1248
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1301
+ if (this.logger)
1302
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1249
1303
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1250
1304
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SddcClient.serviceEndpointTemplate, this._region, SddcClient.endpointServiceName);
1251
1305
  }
@@ -1312,11 +1366,12 @@ class SddcClient {
1312
1366
  * @param CancelDowngradeHcxRequest
1313
1367
  * @return CancelDowngradeHcxResponse
1314
1368
  * @throws OciError when an error occurs
1315
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/CancelDowngradeHcx.ts.html |here} to see how to use CancelDowngradeHcx API.
1369
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/CancelDowngradeHcx.ts.html |here} to see how to use CancelDowngradeHcx API.
1316
1370
  */
1317
1371
  cancelDowngradeHcx(cancelDowngradeHcxRequest) {
1318
1372
  return __awaiter(this, void 0, void 0, function* () {
1319
- oci_common_1.logger.debug("Calling operation SddcClient#cancelDowngradeHcx.");
1373
+ if (this.logger)
1374
+ this.logger.debug("Calling operation SddcClient#cancelDowngradeHcx.");
1320
1375
  const operationName = "cancelDowngradeHcx";
1321
1376
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/CancelDowngradeHcx";
1322
1377
  const pathParams = {
@@ -1331,6 +1386,8 @@ class SddcClient {
1331
1386
  };
1332
1387
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1333
1388
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelDowngradeHcxRequest.retryConfiguration, specRetryConfiguration);
1389
+ if (this.logger)
1390
+ retrier.logger = this.logger;
1334
1391
  const request = yield oci_common_1.composeRequest({
1335
1392
  baseEndpoint: this._endpoint,
1336
1393
  defaultHeaders: this._defaultHeaders,
@@ -1373,11 +1430,12 @@ class SddcClient {
1373
1430
  * @param ChangeSddcCompartmentRequest
1374
1431
  * @return ChangeSddcCompartmentResponse
1375
1432
  * @throws OciError when an error occurs
1376
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ChangeSddcCompartment.ts.html |here} to see how to use ChangeSddcCompartment API.
1433
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ChangeSddcCompartment.ts.html |here} to see how to use ChangeSddcCompartment API.
1377
1434
  */
1378
1435
  changeSddcCompartment(changeSddcCompartmentRequest) {
1379
1436
  return __awaiter(this, void 0, void 0, function* () {
1380
- oci_common_1.logger.debug("Calling operation SddcClient#changeSddcCompartment.");
1437
+ if (this.logger)
1438
+ this.logger.debug("Calling operation SddcClient#changeSddcCompartment.");
1381
1439
  const operationName = "changeSddcCompartment";
1382
1440
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/ChangeSddcCompartment";
1383
1441
  const pathParams = {
@@ -1392,6 +1450,8 @@ class SddcClient {
1392
1450
  };
1393
1451
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1394
1452
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeSddcCompartmentRequest.retryConfiguration, specRetryConfiguration);
1453
+ if (this.logger)
1454
+ retrier.logger = this.logger;
1395
1455
  const request = yield oci_common_1.composeRequest({
1396
1456
  baseEndpoint: this._endpoint,
1397
1457
  defaultHeaders: this._defaultHeaders,
@@ -1433,11 +1493,12 @@ class SddcClient {
1433
1493
  * @param CreateSddcRequest
1434
1494
  * @return CreateSddcResponse
1435
1495
  * @throws OciError when an error occurs
1436
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/CreateSddc.ts.html |here} to see how to use CreateSddc API.
1496
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/CreateSddc.ts.html |here} to see how to use CreateSddc API.
1437
1497
  */
1438
1498
  createSddc(createSddcRequest) {
1439
1499
  return __awaiter(this, void 0, void 0, function* () {
1440
- oci_common_1.logger.debug("Calling operation SddcClient#createSddc.");
1500
+ if (this.logger)
1501
+ this.logger.debug("Calling operation SddcClient#createSddc.");
1441
1502
  const operationName = "createSddc";
1442
1503
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/CreateSddc";
1443
1504
  const pathParams = {};
@@ -1449,6 +1510,8 @@ class SddcClient {
1449
1510
  };
1450
1511
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1451
1512
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSddcRequest.retryConfiguration, specRetryConfiguration);
1513
+ if (this.logger)
1514
+ retrier.logger = this.logger;
1452
1515
  const request = yield oci_common_1.composeRequest({
1453
1516
  baseEndpoint: this._endpoint,
1454
1517
  defaultHeaders: this._defaultHeaders,
@@ -1495,11 +1558,12 @@ class SddcClient {
1495
1558
  * @param DeleteSddcRequest
1496
1559
  * @return DeleteSddcResponse
1497
1560
  * @throws OciError when an error occurs
1498
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/DeleteSddc.ts.html |here} to see how to use DeleteSddc API.
1561
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/DeleteSddc.ts.html |here} to see how to use DeleteSddc API.
1499
1562
  */
1500
1563
  deleteSddc(deleteSddcRequest) {
1501
1564
  return __awaiter(this, void 0, void 0, function* () {
1502
- oci_common_1.logger.debug("Calling operation SddcClient#deleteSddc.");
1565
+ if (this.logger)
1566
+ this.logger.debug("Calling operation SddcClient#deleteSddc.");
1503
1567
  const operationName = "deleteSddc";
1504
1568
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/DeleteSddc";
1505
1569
  const pathParams = {
@@ -1513,6 +1577,8 @@ class SddcClient {
1513
1577
  };
1514
1578
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1515
1579
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSddcRequest.retryConfiguration, specRetryConfiguration);
1580
+ if (this.logger)
1581
+ retrier.logger = this.logger;
1516
1582
  const request = yield oci_common_1.composeRequest({
1517
1583
  baseEndpoint: this._endpoint,
1518
1584
  defaultHeaders: this._defaultHeaders,
@@ -1557,11 +1623,12 @@ class SddcClient {
1557
1623
  * @param DowngradeHcxRequest
1558
1624
  * @return DowngradeHcxResponse
1559
1625
  * @throws OciError when an error occurs
1560
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/DowngradeHcx.ts.html |here} to see how to use DowngradeHcx API.
1626
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/DowngradeHcx.ts.html |here} to see how to use DowngradeHcx API.
1561
1627
  */
1562
1628
  downgradeHcx(downgradeHcxRequest) {
1563
1629
  return __awaiter(this, void 0, void 0, function* () {
1564
- oci_common_1.logger.debug("Calling operation SddcClient#downgradeHcx.");
1630
+ if (this.logger)
1631
+ this.logger.debug("Calling operation SddcClient#downgradeHcx.");
1565
1632
  const operationName = "downgradeHcx";
1566
1633
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/DowngradeHcx";
1567
1634
  const pathParams = {
@@ -1576,6 +1643,8 @@ class SddcClient {
1576
1643
  };
1577
1644
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1578
1645
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downgradeHcxRequest.retryConfiguration, specRetryConfiguration);
1646
+ if (this.logger)
1647
+ retrier.logger = this.logger;
1579
1648
  const request = yield oci_common_1.composeRequest({
1580
1649
  baseEndpoint: this._endpoint,
1581
1650
  defaultHeaders: this._defaultHeaders,
@@ -1616,11 +1685,12 @@ class SddcClient {
1616
1685
  * @param GetSddcRequest
1617
1686
  * @return GetSddcResponse
1618
1687
  * @throws OciError when an error occurs
1619
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/GetSddc.ts.html |here} to see how to use GetSddc API.
1688
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/GetSddc.ts.html |here} to see how to use GetSddc API.
1620
1689
  */
1621
1690
  getSddc(getSddcRequest) {
1622
1691
  return __awaiter(this, void 0, void 0, function* () {
1623
- oci_common_1.logger.debug("Calling operation SddcClient#getSddc.");
1692
+ if (this.logger)
1693
+ this.logger.debug("Calling operation SddcClient#getSddc.");
1624
1694
  const operationName = "getSddc";
1625
1695
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/GetSddc";
1626
1696
  const pathParams = {
@@ -1633,6 +1703,8 @@ class SddcClient {
1633
1703
  };
1634
1704
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1635
1705
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSddcRequest.retryConfiguration, specRetryConfiguration);
1706
+ if (this.logger)
1707
+ retrier.logger = this.logger;
1636
1708
  const request = yield oci_common_1.composeRequest({
1637
1709
  baseEndpoint: this._endpoint,
1638
1710
  defaultHeaders: this._defaultHeaders,
@@ -1678,11 +1750,12 @@ class SddcClient {
1678
1750
  * @param ListSddcsRequest
1679
1751
  * @return ListSddcsResponse
1680
1752
  * @throws OciError when an error occurs
1681
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ListSddcs.ts.html |here} to see how to use ListSddcs API.
1753
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ListSddcs.ts.html |here} to see how to use ListSddcs API.
1682
1754
  */
1683
1755
  listSddcs(listSddcsRequest) {
1684
1756
  return __awaiter(this, void 0, void 0, function* () {
1685
- oci_common_1.logger.debug("Calling operation SddcClient#listSddcs.");
1757
+ if (this.logger)
1758
+ this.logger.debug("Calling operation SddcClient#listSddcs.");
1686
1759
  const operationName = "listSddcs";
1687
1760
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/SddcSummary/ListSddcs";
1688
1761
  const pathParams = {};
@@ -1702,6 +1775,8 @@ class SddcClient {
1702
1775
  };
1703
1776
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1704
1777
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSddcsRequest.retryConfiguration, specRetryConfiguration);
1778
+ if (this.logger)
1779
+ retrier.logger = this.logger;
1705
1780
  const request = yield oci_common_1.composeRequest({
1706
1781
  baseEndpoint: this._endpoint,
1707
1782
  defaultHeaders: this._defaultHeaders,
@@ -1746,11 +1821,12 @@ class SddcClient {
1746
1821
  * @param ListSupportedCommitmentsRequest
1747
1822
  * @return ListSupportedCommitmentsResponse
1748
1823
  * @throws OciError when an error occurs
1749
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ListSupportedCommitments.ts.html |here} to see how to use ListSupportedCommitments API.
1824
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ListSupportedCommitments.ts.html |here} to see how to use ListSupportedCommitments API.
1750
1825
  */
1751
1826
  listSupportedCommitments(listSupportedCommitmentsRequest) {
1752
1827
  return __awaiter(this, void 0, void 0, function* () {
1753
- oci_common_1.logger.debug("Calling operation SddcClient#listSupportedCommitments.");
1828
+ if (this.logger)
1829
+ this.logger.debug("Calling operation SddcClient#listSupportedCommitments.");
1754
1830
  const operationName = "listSupportedCommitments";
1755
1831
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/SupportedCommitmentSummary/ListSupportedCommitments";
1756
1832
  const pathParams = {};
@@ -1766,6 +1842,8 @@ class SddcClient {
1766
1842
  };
1767
1843
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1768
1844
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSupportedCommitmentsRequest.retryConfiguration, specRetryConfiguration);
1845
+ if (this.logger)
1846
+ retrier.logger = this.logger;
1769
1847
  const request = yield oci_common_1.composeRequest({
1770
1848
  baseEndpoint: this._endpoint,
1771
1849
  defaultHeaders: this._defaultHeaders,
@@ -1810,11 +1888,12 @@ class SddcClient {
1810
1888
  * @param ListSupportedHostShapesRequest
1811
1889
  * @return ListSupportedHostShapesResponse
1812
1890
  * @throws OciError when an error occurs
1813
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ListSupportedHostShapes.ts.html |here} to see how to use ListSupportedHostShapes API.
1891
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ListSupportedHostShapes.ts.html |here} to see how to use ListSupportedHostShapes API.
1814
1892
  */
1815
1893
  listSupportedHostShapes(listSupportedHostShapesRequest) {
1816
1894
  return __awaiter(this, void 0, void 0, function* () {
1817
- oci_common_1.logger.debug("Calling operation SddcClient#listSupportedHostShapes.");
1895
+ if (this.logger)
1896
+ this.logger.debug("Calling operation SddcClient#listSupportedHostShapes.");
1818
1897
  const operationName = "listSupportedHostShapes";
1819
1898
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/SupportedHostShapeSummary/ListSupportedHostShapes";
1820
1899
  const pathParams = {};
@@ -1832,6 +1911,8 @@ class SddcClient {
1832
1911
  };
1833
1912
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1834
1913
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSupportedHostShapesRequest.retryConfiguration, specRetryConfiguration);
1914
+ if (this.logger)
1915
+ retrier.logger = this.logger;
1835
1916
  const request = yield oci_common_1.composeRequest({
1836
1917
  baseEndpoint: this._endpoint,
1837
1918
  defaultHeaders: this._defaultHeaders,
@@ -1877,11 +1958,12 @@ class SddcClient {
1877
1958
  * @param ListSupportedVmwareSoftwareVersionsRequest
1878
1959
  * @return ListSupportedVmwareSoftwareVersionsResponse
1879
1960
  * @throws OciError when an error occurs
1880
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ListSupportedVmwareSoftwareVersions.ts.html |here} to see how to use ListSupportedVmwareSoftwareVersions API.
1961
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ListSupportedVmwareSoftwareVersions.ts.html |here} to see how to use ListSupportedVmwareSoftwareVersions API.
1881
1962
  */
1882
1963
  listSupportedVmwareSoftwareVersions(listSupportedVmwareSoftwareVersionsRequest) {
1883
1964
  return __awaiter(this, void 0, void 0, function* () {
1884
- oci_common_1.logger.debug("Calling operation SddcClient#listSupportedVmwareSoftwareVersions.");
1965
+ if (this.logger)
1966
+ this.logger.debug("Calling operation SddcClient#listSupportedVmwareSoftwareVersions.");
1885
1967
  const operationName = "listSupportedVmwareSoftwareVersions";
1886
1968
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/SupportedVmwareSoftwareVersionSummary/ListSupportedVmwareSoftwareVersions";
1887
1969
  const pathParams = {};
@@ -1898,6 +1980,8 @@ class SddcClient {
1898
1980
  };
1899
1981
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1900
1982
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSupportedVmwareSoftwareVersionsRequest.retryConfiguration, specRetryConfiguration);
1983
+ if (this.logger)
1984
+ retrier.logger = this.logger;
1901
1985
  const request = yield oci_common_1.composeRequest({
1902
1986
  baseEndpoint: this._endpoint,
1903
1987
  defaultHeaders: this._defaultHeaders,
@@ -1941,11 +2025,12 @@ class SddcClient {
1941
2025
  * @param RefreshHcxLicenseStatusRequest
1942
2026
  * @return RefreshHcxLicenseStatusResponse
1943
2027
  * @throws OciError when an error occurs
1944
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/RefreshHcxLicenseStatus.ts.html |here} to see how to use RefreshHcxLicenseStatus API.
2028
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/RefreshHcxLicenseStatus.ts.html |here} to see how to use RefreshHcxLicenseStatus API.
1945
2029
  */
1946
2030
  refreshHcxLicenseStatus(refreshHcxLicenseStatusRequest) {
1947
2031
  return __awaiter(this, void 0, void 0, function* () {
1948
- oci_common_1.logger.debug("Calling operation SddcClient#refreshHcxLicenseStatus.");
2032
+ if (this.logger)
2033
+ this.logger.debug("Calling operation SddcClient#refreshHcxLicenseStatus.");
1949
2034
  const operationName = "refreshHcxLicenseStatus";
1950
2035
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RefreshHcxLicenseStatus";
1951
2036
  const pathParams = {
@@ -1960,6 +2045,8 @@ class SddcClient {
1960
2045
  };
1961
2046
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1962
2047
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, refreshHcxLicenseStatusRequest.retryConfiguration, specRetryConfiguration);
2048
+ if (this.logger)
2049
+ retrier.logger = this.logger;
1963
2050
  const request = yield oci_common_1.composeRequest({
1964
2051
  baseEndpoint: this._endpoint,
1965
2052
  defaultHeaders: this._defaultHeaders,
@@ -2000,11 +2087,12 @@ class SddcClient {
2000
2087
  * @param RetrievePasswordRequest
2001
2088
  * @return RetrievePasswordResponse
2002
2089
  * @throws OciError when an error occurs
2003
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/RetrievePassword.ts.html |here} to see how to use RetrievePassword API.
2090
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/RetrievePassword.ts.html |here} to see how to use RetrievePassword API.
2004
2091
  */
2005
2092
  retrievePassword(retrievePasswordRequest) {
2006
2093
  return __awaiter(this, void 0, void 0, function* () {
2007
- oci_common_1.logger.debug("Calling operation SddcClient#retrievePassword.");
2094
+ if (this.logger)
2095
+ this.logger.debug("Calling operation SddcClient#retrievePassword.");
2008
2096
  const operationName = "retrievePassword";
2009
2097
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RetrievePassword";
2010
2098
  const pathParams = {
@@ -2021,6 +2109,8 @@ class SddcClient {
2021
2109
  };
2022
2110
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2023
2111
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retrievePasswordRequest.retryConfiguration, specRetryConfiguration);
2112
+ if (this.logger)
2113
+ retrier.logger = this.logger;
2024
2114
  const request = yield oci_common_1.composeRequest({
2025
2115
  baseEndpoint: this._endpoint,
2026
2116
  defaultHeaders: this._defaultHeaders,
@@ -2070,11 +2160,12 @@ class SddcClient {
2070
2160
  * @param UpdateSddcRequest
2071
2161
  * @return UpdateSddcResponse
2072
2162
  * @throws OciError when an error occurs
2073
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/UpdateSddc.ts.html |here} to see how to use UpdateSddc API.
2163
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/UpdateSddc.ts.html |here} to see how to use UpdateSddc API.
2074
2164
  */
2075
2165
  updateSddc(updateSddcRequest) {
2076
2166
  return __awaiter(this, void 0, void 0, function* () {
2077
- oci_common_1.logger.debug("Calling operation SddcClient#updateSddc.");
2167
+ if (this.logger)
2168
+ this.logger.debug("Calling operation SddcClient#updateSddc.");
2078
2169
  const operationName = "updateSddc";
2079
2170
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/UpdateSddc";
2080
2171
  const pathParams = {
@@ -2088,6 +2179,8 @@ class SddcClient {
2088
2179
  };
2089
2180
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2090
2181
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSddcRequest.retryConfiguration, specRetryConfiguration);
2182
+ if (this.logger)
2183
+ retrier.logger = this.logger;
2091
2184
  const request = yield oci_common_1.composeRequest({
2092
2185
  baseEndpoint: this._endpoint,
2093
2186
  defaultHeaders: this._defaultHeaders,
@@ -2133,11 +2226,12 @@ class SddcClient {
2133
2226
  * @param UpgradeHcxRequest
2134
2227
  * @return UpgradeHcxResponse
2135
2228
  * @throws OciError when an error occurs
2136
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/UpgradeHcx.ts.html |here} to see how to use UpgradeHcx API.
2229
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/UpgradeHcx.ts.html |here} to see how to use UpgradeHcx API.
2137
2230
  */
2138
2231
  upgradeHcx(upgradeHcxRequest) {
2139
2232
  return __awaiter(this, void 0, void 0, function* () {
2140
- oci_common_1.logger.debug("Calling operation SddcClient#upgradeHcx.");
2233
+ if (this.logger)
2234
+ this.logger.debug("Calling operation SddcClient#upgradeHcx.");
2141
2235
  const operationName = "upgradeHcx";
2142
2236
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/UpgradeHcx";
2143
2237
  const pathParams = {
@@ -2152,6 +2246,8 @@ class SddcClient {
2152
2246
  };
2153
2247
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2154
2248
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, upgradeHcxRequest.retryConfiguration, specRetryConfiguration);
2249
+ if (this.logger)
2250
+ retrier.logger = this.logger;
2155
2251
  const request = yield oci_common_1.composeRequest({
2156
2252
  baseEndpoint: this._endpoint,
2157
2253
  defaultHeaders: this._defaultHeaders,
@@ -2197,7 +2293,7 @@ var WorkRequestApiKeys;
2197
2293
  */
2198
2294
  class WorkRequestClient {
2199
2295
  constructor(params, clientConfiguration) {
2200
- this["_realmSpecificEndpointTemplateEnabled"] = false;
2296
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
2201
2297
  this["_endpoint"] = "";
2202
2298
  this["_defaultHeaders"] = {};
2203
2299
  this._circuitBreaker = null;
@@ -2256,7 +2352,11 @@ class WorkRequestClient {
2256
2352
  set endpoint(endpoint) {
2257
2353
  this._endpoint = endpoint;
2258
2354
  this._endpoint = this._endpoint + "/20230701";
2259
- oci_common_1.logger.info(`WorkRequestClient endpoint set to ${this._endpoint}`);
2355
+ if (this.logger)
2356
+ this.logger.info(`WorkRequestClient endpoint set to ${this._endpoint}`);
2357
+ }
2358
+ get logger() {
2359
+ return common.LOG.logger;
2260
2360
  }
2261
2361
  /**
2262
2362
  * Determines whether realm specific endpoint should be used or not.
@@ -2265,7 +2365,8 @@ class WorkRequestClient {
2265
2365
  */
2266
2366
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
2267
2367
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
2268
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2368
+ if (this.logger)
2369
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2269
2370
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
2270
2371
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, this._region, WorkRequestClient.endpointServiceName);
2271
2372
  }
@@ -2331,11 +2432,12 @@ class WorkRequestClient {
2331
2432
  * @param GetWorkRequestRequest
2332
2433
  * @return GetWorkRequestResponse
2333
2434
  * @throws OciError when an error occurs
2334
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
2435
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
2335
2436
  */
2336
2437
  getWorkRequest(getWorkRequestRequest) {
2337
2438
  return __awaiter(this, void 0, void 0, function* () {
2338
- oci_common_1.logger.debug("Calling operation WorkRequestClient#getWorkRequest.");
2439
+ if (this.logger)
2440
+ this.logger.debug("Calling operation WorkRequestClient#getWorkRequest.");
2339
2441
  const operationName = "getWorkRequest";
2340
2442
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/WorkRequest/GetWorkRequest";
2341
2443
  const pathParams = {
@@ -2348,6 +2450,8 @@ class WorkRequestClient {
2348
2450
  };
2349
2451
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2350
2452
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
2453
+ if (this.logger)
2454
+ retrier.logger = this.logger;
2351
2455
  const request = yield oci_common_1.composeRequest({
2352
2456
  baseEndpoint: this._endpoint,
2353
2457
  defaultHeaders: this._defaultHeaders,
@@ -2392,11 +2496,12 @@ class WorkRequestClient {
2392
2496
  * @param ListWorkRequestErrorsRequest
2393
2497
  * @return ListWorkRequestErrorsResponse
2394
2498
  * @throws OciError when an error occurs
2395
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2499
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2396
2500
  */
2397
2501
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
2398
2502
  return __awaiter(this, void 0, void 0, function* () {
2399
- oci_common_1.logger.debug("Calling operation WorkRequestClient#listWorkRequestErrors.");
2503
+ if (this.logger)
2504
+ this.logger.debug("Calling operation WorkRequestClient#listWorkRequestErrors.");
2400
2505
  const operationName = "listWorkRequestErrors";
2401
2506
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/WorkRequestError/ListWorkRequestErrors";
2402
2507
  const pathParams = {
@@ -2412,6 +2517,8 @@ class WorkRequestClient {
2412
2517
  };
2413
2518
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2414
2519
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
2520
+ if (this.logger)
2521
+ retrier.logger = this.logger;
2415
2522
  const request = yield oci_common_1.composeRequest({
2416
2523
  baseEndpoint: this._endpoint,
2417
2524
  defaultHeaders: this._defaultHeaders,
@@ -2456,11 +2563,12 @@ class WorkRequestClient {
2456
2563
  * @param ListWorkRequestLogsRequest
2457
2564
  * @return ListWorkRequestLogsResponse
2458
2565
  * @throws OciError when an error occurs
2459
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2566
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2460
2567
  */
2461
2568
  listWorkRequestLogs(listWorkRequestLogsRequest) {
2462
2569
  return __awaiter(this, void 0, void 0, function* () {
2463
- oci_common_1.logger.debug("Calling operation WorkRequestClient#listWorkRequestLogs.");
2570
+ if (this.logger)
2571
+ this.logger.debug("Calling operation WorkRequestClient#listWorkRequestLogs.");
2464
2572
  const operationName = "listWorkRequestLogs";
2465
2573
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/WorkRequestLogEntry/ListWorkRequestLogs";
2466
2574
  const pathParams = {
@@ -2476,6 +2584,8 @@ class WorkRequestClient {
2476
2584
  };
2477
2585
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2478
2586
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
2587
+ if (this.logger)
2588
+ retrier.logger = this.logger;
2479
2589
  const request = yield oci_common_1.composeRequest({
2480
2590
  baseEndpoint: this._endpoint,
2481
2591
  defaultHeaders: this._defaultHeaders,
@@ -2520,11 +2630,12 @@ class WorkRequestClient {
2520
2630
  * @param ListWorkRequestsRequest
2521
2631
  * @return ListWorkRequestsResponse
2522
2632
  * @throws OciError when an error occurs
2523
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/ocvp/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2633
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ocvp/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2524
2634
  */
2525
2635
  listWorkRequests(listWorkRequestsRequest) {
2526
2636
  return __awaiter(this, void 0, void 0, function* () {
2527
- oci_common_1.logger.debug("Calling operation WorkRequestClient#listWorkRequests.");
2637
+ if (this.logger)
2638
+ this.logger.debug("Calling operation WorkRequestClient#listWorkRequests.");
2528
2639
  const operationName = "listWorkRequests";
2529
2640
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/WorkRequest/ListWorkRequests";
2530
2641
  const pathParams = {};
@@ -2540,6 +2651,8 @@ class WorkRequestClient {
2540
2651
  };
2541
2652
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2542
2653
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
2654
+ if (this.logger)
2655
+ retrier.logger = this.logger;
2543
2656
  const request = yield oci_common_1.composeRequest({
2544
2657
  baseEndpoint: this._endpoint,
2545
2658
  defaultHeaders: this._defaultHeaders,