oci-objectstorage 2.79.1 → 2.80.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 (57) hide show
  1. package/lib/client.d.ts +52 -51
  2. package/lib/client.js +258 -103
  3. package/lib/client.js.map +1 -1
  4. package/lib/request/abort-multipart-upload-request.d.ts +1 -1
  5. package/lib/request/cancel-work-request-request.d.ts +1 -1
  6. package/lib/request/commit-multipart-upload-request.d.ts +1 -1
  7. package/lib/request/copy-object-request.d.ts +1 -1
  8. package/lib/request/create-bucket-request.d.ts +1 -1
  9. package/lib/request/create-multipart-upload-request.d.ts +1 -1
  10. package/lib/request/create-preauthenticated-request-request.d.ts +1 -1
  11. package/lib/request/create-replication-policy-request.d.ts +1 -1
  12. package/lib/request/create-retention-rule-request.d.ts +1 -1
  13. package/lib/request/delete-bucket-request.d.ts +1 -1
  14. package/lib/request/delete-object-lifecycle-policy-request.d.ts +1 -1
  15. package/lib/request/delete-object-request.d.ts +1 -1
  16. package/lib/request/delete-preauthenticated-request-request.d.ts +1 -1
  17. package/lib/request/delete-replication-policy-request.d.ts +1 -1
  18. package/lib/request/delete-retention-rule-request.d.ts +1 -1
  19. package/lib/request/get-bucket-request.d.ts +1 -1
  20. package/lib/request/get-namespace-metadata-request.d.ts +1 -1
  21. package/lib/request/get-namespace-request.d.ts +1 -1
  22. package/lib/request/get-object-lifecycle-policy-request.d.ts +1 -1
  23. package/lib/request/get-object-request.d.ts +1 -1
  24. package/lib/request/get-preauthenticated-request-request.d.ts +1 -1
  25. package/lib/request/get-replication-policy-request.d.ts +1 -1
  26. package/lib/request/get-retention-rule-request.d.ts +1 -1
  27. package/lib/request/get-work-request-request.d.ts +1 -1
  28. package/lib/request/head-bucket-request.d.ts +1 -1
  29. package/lib/request/head-object-request.d.ts +1 -1
  30. package/lib/request/list-buckets-request.d.ts +1 -1
  31. package/lib/request/list-multipart-upload-parts-request.d.ts +1 -1
  32. package/lib/request/list-multipart-uploads-request.d.ts +1 -1
  33. package/lib/request/list-object-versions-request.d.ts +1 -1
  34. package/lib/request/list-objects-request.d.ts +1 -1
  35. package/lib/request/list-preauthenticated-requests-request.d.ts +1 -1
  36. package/lib/request/list-replication-policies-request.d.ts +1 -1
  37. package/lib/request/list-replication-sources-request.d.ts +1 -1
  38. package/lib/request/list-retention-rules-request.d.ts +1 -1
  39. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  40. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  41. package/lib/request/list-work-requests-request.d.ts +1 -1
  42. package/lib/request/make-bucket-writable-request.d.ts +1 -1
  43. package/lib/request/put-object-lifecycle-policy-request.d.ts +1 -1
  44. package/lib/request/put-object-request.d.ts +1 -1
  45. package/lib/request/reencrypt-bucket-request.d.ts +1 -1
  46. package/lib/request/reencrypt-object-request.d.ts +1 -1
  47. package/lib/request/rename-object-request.d.ts +1 -1
  48. package/lib/request/restore-objects-request.d.ts +1 -1
  49. package/lib/request/update-bucket-request.d.ts +1 -1
  50. package/lib/request/update-namespace-metadata-request.d.ts +1 -1
  51. package/lib/request/update-object-storage-tier-request.d.ts +1 -1
  52. package/lib/request/update-retention-rule-request.d.ts +1 -1
  53. package/lib/request/upload-part-request.d.ts +1 -1
  54. package/lib/upload-manager/upload-manager.d.ts +1 -0
  55. package/lib/upload-manager/upload-manager.js +11 -4
  56. package/lib/upload-manager/upload-manager.js.map +1 -1
  57. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -61,7 +61,7 @@ var ObjectStorageApiKeys;
61
61
  */
62
62
  class ObjectStorageClient {
63
63
  constructor(params, clientConfiguration) {
64
- this["_realmSpecificEndpointTemplateEnabled"] = false;
64
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
65
65
  this["_endpoint"] = "";
66
66
  this["_defaultHeaders"] = {};
67
67
  this._circuitBreaker = null;
@@ -119,7 +119,11 @@ class ObjectStorageClient {
119
119
  */
120
120
  set endpoint(endpoint) {
121
121
  this._endpoint = endpoint;
122
- oci_common_2.logger.info(`ObjectStorageClient endpoint set to ${this._endpoint}`);
122
+ if (this.logger)
123
+ this.logger.info(`ObjectStorageClient endpoint set to ${this._endpoint}`);
124
+ }
125
+ get logger() {
126
+ return common.LOG.logger;
123
127
  }
124
128
  /**
125
129
  * Determines whether realm specific endpoint should be used or not.
@@ -128,7 +132,8 @@ class ObjectStorageClient {
128
132
  */
129
133
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
130
134
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
131
- oci_common_2.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
135
+ if (this.logger)
136
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
132
137
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
133
138
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ObjectStorageClient.serviceEndpointTemplate, this._region, ObjectStorageClient.endpointServiceName, ObjectStorageClient.serviceEndpointTemplatePerRealm, this._realmSpecificEndpointTemplateEnabled);
134
139
  }
@@ -195,11 +200,12 @@ class ObjectStorageClient {
195
200
  * @param AbortMultipartUploadRequest
196
201
  * @return AbortMultipartUploadResponse
197
202
  * @throws OciError when an error occurs
198
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/AbortMultipartUpload.ts.html |here} to see how to use AbortMultipartUpload API.
203
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/AbortMultipartUpload.ts.html |here} to see how to use AbortMultipartUpload API.
199
204
  */
200
205
  abortMultipartUpload(abortMultipartUploadRequest) {
201
206
  return __awaiter(this, void 0, void 0, function* () {
202
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#abortMultipartUpload.");
207
+ if (this.logger)
208
+ this.logger.debug("Calling operation ObjectStorageClient#abortMultipartUpload.");
203
209
  const operationName = "abortMultipartUpload";
204
210
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/AbortMultipartUpload";
205
211
  const pathParams = {
@@ -223,6 +229,8 @@ class ObjectStorageClient {
223
229
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
224
230
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
225
231
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, abortMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
232
+ if (this.logger)
233
+ retrier.logger = this.logger;
226
234
  const request = yield oci_common_2.composeRequest({
227
235
  baseEndpoint: endpoint,
228
236
  defaultHeaders: this._defaultHeaders,
@@ -263,11 +271,12 @@ class ObjectStorageClient {
263
271
  * @param CancelWorkRequestRequest
264
272
  * @return CancelWorkRequestResponse
265
273
  * @throws OciError when an error occurs
266
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
274
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
267
275
  */
268
276
  cancelWorkRequest(cancelWorkRequestRequest) {
269
277
  return __awaiter(this, void 0, void 0, function* () {
270
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#cancelWorkRequest.");
278
+ if (this.logger)
279
+ this.logger.debug("Calling operation ObjectStorageClient#cancelWorkRequest.");
271
280
  const operationName = "cancelWorkRequest";
272
281
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequest/CancelWorkRequest";
273
282
  const pathParams = {
@@ -282,6 +291,8 @@ class ObjectStorageClient {
282
291
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
283
292
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
284
293
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
294
+ if (this.logger)
295
+ retrier.logger = this.logger;
285
296
  const request = yield oci_common_2.composeRequest({
286
297
  baseEndpoint: endpoint,
287
298
  defaultHeaders: this._defaultHeaders,
@@ -322,11 +333,12 @@ class ObjectStorageClient {
322
333
  * @param CommitMultipartUploadRequest
323
334
  * @return CommitMultipartUploadResponse
324
335
  * @throws OciError when an error occurs
325
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/CommitMultipartUpload.ts.html |here} to see how to use CommitMultipartUpload API.
336
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/CommitMultipartUpload.ts.html |here} to see how to use CommitMultipartUpload API.
326
337
  */
327
338
  commitMultipartUpload(commitMultipartUploadRequest) {
328
339
  return __awaiter(this, void 0, void 0, function* () {
329
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#commitMultipartUpload.");
340
+ if (this.logger)
341
+ this.logger.debug("Calling operation ObjectStorageClient#commitMultipartUpload.");
330
342
  const operationName = "commitMultipartUpload";
331
343
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/CommitMultipartUpload";
332
344
  const pathParams = {
@@ -352,6 +364,8 @@ class ObjectStorageClient {
352
364
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
353
365
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
354
366
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, commitMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
367
+ if (this.logger)
368
+ retrier.logger = this.logger;
355
369
  const request = yield oci_common_2.composeRequest({
356
370
  baseEndpoint: endpoint,
357
371
  defaultHeaders: this._defaultHeaders,
@@ -416,11 +430,12 @@ class ObjectStorageClient {
416
430
  * @param CopyObjectRequest
417
431
  * @return CopyObjectResponse
418
432
  * @throws OciError when an error occurs
419
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/CopyObject.ts.html |here} to see how to use CopyObject API.
433
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/CopyObject.ts.html |here} to see how to use CopyObject API.
420
434
  */
421
435
  copyObject(copyObjectRequest) {
422
436
  return __awaiter(this, void 0, void 0, function* () {
423
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#copyObject.");
437
+ if (this.logger)
438
+ this.logger.debug("Calling operation ObjectStorageClient#copyObject.");
424
439
  const operationName = "copyObject";
425
440
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/CopyObject";
426
441
  const pathParams = {
@@ -443,6 +458,8 @@ class ObjectStorageClient {
443
458
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
444
459
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
445
460
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, copyObjectRequest.retryConfiguration, specRetryConfiguration);
461
+ if (this.logger)
462
+ retrier.logger = this.logger;
446
463
  const request = yield oci_common_2.composeRequest({
447
464
  baseEndpoint: endpoint,
448
465
  defaultHeaders: this._defaultHeaders,
@@ -490,11 +507,12 @@ class ObjectStorageClient {
490
507
  * @param CreateBucketRequest
491
508
  * @return CreateBucketResponse
492
509
  * @throws OciError when an error occurs
493
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/CreateBucket.ts.html |here} to see how to use CreateBucket API.
510
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/CreateBucket.ts.html |here} to see how to use CreateBucket API.
494
511
  */
495
512
  createBucket(createBucketRequest) {
496
513
  return __awaiter(this, void 0, void 0, function* () {
497
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#createBucket.");
514
+ if (this.logger)
515
+ this.logger.debug("Calling operation ObjectStorageClient#createBucket.");
498
516
  const operationName = "createBucket";
499
517
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/CreateBucket";
500
518
  const pathParams = {
@@ -509,6 +527,8 @@ class ObjectStorageClient {
509
527
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
510
528
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
511
529
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBucketRequest.retryConfiguration, specRetryConfiguration);
530
+ if (this.logger)
531
+ retrier.logger = this.logger;
512
532
  const request = yield oci_common_2.composeRequest({
513
533
  baseEndpoint: endpoint,
514
534
  defaultHeaders: this._defaultHeaders,
@@ -567,11 +587,12 @@ class ObjectStorageClient {
567
587
  * @param CreateMultipartUploadRequest
568
588
  * @return CreateMultipartUploadResponse
569
589
  * @throws OciError when an error occurs
570
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/CreateMultipartUpload.ts.html |here} to see how to use CreateMultipartUpload API.
590
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/CreateMultipartUpload.ts.html |here} to see how to use CreateMultipartUpload API.
571
591
  */
572
592
  createMultipartUpload(createMultipartUploadRequest) {
573
593
  return __awaiter(this, void 0, void 0, function* () {
574
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#createMultipartUpload.");
594
+ if (this.logger)
595
+ this.logger.debug("Calling operation ObjectStorageClient#createMultipartUpload.");
575
596
  const operationName = "createMultipartUpload";
576
597
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/CreateMultipartUpload";
577
598
  const pathParams = {
@@ -593,6 +614,8 @@ class ObjectStorageClient {
593
614
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
594
615
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
595
616
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
617
+ if (this.logger)
618
+ retrier.logger = this.logger;
596
619
  const request = yield oci_common_2.composeRequest({
597
620
  baseEndpoint: endpoint,
598
621
  defaultHeaders: this._defaultHeaders,
@@ -643,11 +666,12 @@ class ObjectStorageClient {
643
666
  * @param CreatePreauthenticatedRequestRequest
644
667
  * @return CreatePreauthenticatedRequestResponse
645
668
  * @throws OciError when an error occurs
646
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/CreatePreauthenticatedRequest.ts.html |here} to see how to use CreatePreauthenticatedRequest API.
669
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/CreatePreauthenticatedRequest.ts.html |here} to see how to use CreatePreauthenticatedRequest API.
647
670
  */
648
671
  createPreauthenticatedRequest(createPreauthenticatedRequestRequest) {
649
672
  return __awaiter(this, void 0, void 0, function* () {
650
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#createPreauthenticatedRequest.");
673
+ if (this.logger)
674
+ this.logger.debug("Calling operation ObjectStorageClient#createPreauthenticatedRequest.");
651
675
  const operationName = "createPreauthenticatedRequest";
652
676
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PreauthenticatedRequest/CreatePreauthenticatedRequest";
653
677
  const pathParams = {
@@ -663,6 +687,8 @@ class ObjectStorageClient {
663
687
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
664
688
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
665
689
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
690
+ if (this.logger)
691
+ retrier.logger = this.logger;
666
692
  const request = yield oci_common_2.composeRequest({
667
693
  baseEndpoint: endpoint,
668
694
  defaultHeaders: this._defaultHeaders,
@@ -708,11 +734,12 @@ class ObjectStorageClient {
708
734
  * @param CreateReplicationPolicyRequest
709
735
  * @return CreateReplicationPolicyResponse
710
736
  * @throws OciError when an error occurs
711
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/CreateReplicationPolicy.ts.html |here} to see how to use CreateReplicationPolicy API.
737
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/CreateReplicationPolicy.ts.html |here} to see how to use CreateReplicationPolicy API.
712
738
  */
713
739
  createReplicationPolicy(createReplicationPolicyRequest) {
714
740
  return __awaiter(this, void 0, void 0, function* () {
715
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#createReplicationPolicy.");
741
+ if (this.logger)
742
+ this.logger.debug("Calling operation ObjectStorageClient#createReplicationPolicy.");
716
743
  const operationName = "createReplicationPolicy";
717
744
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/CreateReplicationPolicy";
718
745
  const pathParams = {
@@ -728,6 +755,8 @@ class ObjectStorageClient {
728
755
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
729
756
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
730
757
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
758
+ if (this.logger)
759
+ retrier.logger = this.logger;
731
760
  const request = yield oci_common_2.composeRequest({
732
761
  baseEndpoint: endpoint,
733
762
  defaultHeaders: this._defaultHeaders,
@@ -774,11 +803,12 @@ class ObjectStorageClient {
774
803
  * @param CreateRetentionRuleRequest
775
804
  * @return CreateRetentionRuleResponse
776
805
  * @throws OciError when an error occurs
777
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/CreateRetentionRule.ts.html |here} to see how to use CreateRetentionRule API.
806
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/CreateRetentionRule.ts.html |here} to see how to use CreateRetentionRule API.
778
807
  */
779
808
  createRetentionRule(createRetentionRuleRequest) {
780
809
  return __awaiter(this, void 0, void 0, function* () {
781
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#createRetentionRule.");
810
+ if (this.logger)
811
+ this.logger.debug("Calling operation ObjectStorageClient#createRetentionRule.");
782
812
  const operationName = "createRetentionRule";
783
813
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/CreateRetentionRule";
784
814
  const pathParams = {
@@ -794,6 +824,8 @@ class ObjectStorageClient {
794
824
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
795
825
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
796
826
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
827
+ if (this.logger)
828
+ retrier.logger = this.logger;
797
829
  const request = yield oci_common_2.composeRequest({
798
830
  baseEndpoint: endpoint,
799
831
  defaultHeaders: this._defaultHeaders,
@@ -847,11 +879,12 @@ class ObjectStorageClient {
847
879
  * @param DeleteBucketRequest
848
880
  * @return DeleteBucketResponse
849
881
  * @throws OciError when an error occurs
850
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/DeleteBucket.ts.html |here} to see how to use DeleteBucket API.
882
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/DeleteBucket.ts.html |here} to see how to use DeleteBucket API.
851
883
  */
852
884
  deleteBucket(deleteBucketRequest) {
853
885
  return __awaiter(this, void 0, void 0, function* () {
854
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#deleteBucket.");
886
+ if (this.logger)
887
+ this.logger.debug("Calling operation ObjectStorageClient#deleteBucket.");
855
888
  const operationName = "deleteBucket";
856
889
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/DeleteBucket";
857
890
  const pathParams = {
@@ -868,6 +901,8 @@ class ObjectStorageClient {
868
901
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
869
902
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
870
903
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBucketRequest.retryConfiguration, specRetryConfiguration);
904
+ if (this.logger)
905
+ retrier.logger = this.logger;
871
906
  const request = yield oci_common_2.composeRequest({
872
907
  baseEndpoint: endpoint,
873
908
  defaultHeaders: this._defaultHeaders,
@@ -908,11 +943,12 @@ class ObjectStorageClient {
908
943
  * @param DeleteObjectRequest
909
944
  * @return DeleteObjectResponse
910
945
  * @throws OciError when an error occurs
911
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/DeleteObject.ts.html |here} to see how to use DeleteObject API.
946
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/DeleteObject.ts.html |here} to see how to use DeleteObject API.
912
947
  */
913
948
  deleteObject(deleteObjectRequest) {
914
949
  return __awaiter(this, void 0, void 0, function* () {
915
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#deleteObject.");
950
+ if (this.logger)
951
+ this.logger.debug("Calling operation ObjectStorageClient#deleteObject.");
916
952
  const operationName = "deleteObject";
917
953
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/DeleteObject";
918
954
  const pathParams = {
@@ -932,6 +968,8 @@ class ObjectStorageClient {
932
968
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
933
969
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
934
970
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteObjectRequest.retryConfiguration, specRetryConfiguration);
971
+ if (this.logger)
972
+ retrier.logger = this.logger;
935
973
  const request = yield oci_common_2.composeRequest({
936
974
  baseEndpoint: endpoint,
937
975
  defaultHeaders: this._defaultHeaders,
@@ -987,11 +1025,12 @@ class ObjectStorageClient {
987
1025
  * @param DeleteObjectLifecyclePolicyRequest
988
1026
  * @return DeleteObjectLifecyclePolicyResponse
989
1027
  * @throws OciError when an error occurs
990
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/DeleteObjectLifecyclePolicy.ts.html |here} to see how to use DeleteObjectLifecyclePolicy API.
1028
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/DeleteObjectLifecyclePolicy.ts.html |here} to see how to use DeleteObjectLifecyclePolicy API.
991
1029
  */
992
1030
  deleteObjectLifecyclePolicy(deleteObjectLifecyclePolicyRequest) {
993
1031
  return __awaiter(this, void 0, void 0, function* () {
994
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#deleteObjectLifecyclePolicy.");
1032
+ if (this.logger)
1033
+ this.logger.debug("Calling operation ObjectStorageClient#deleteObjectLifecyclePolicy.");
995
1034
  const operationName = "deleteObjectLifecyclePolicy";
996
1035
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/ObjectLifecyclePolicy/DeleteObjectLifecyclePolicy";
997
1036
  const pathParams = {
@@ -1008,6 +1047,8 @@ class ObjectStorageClient {
1008
1047
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1009
1048
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1010
1049
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
1050
+ if (this.logger)
1051
+ retrier.logger = this.logger;
1011
1052
  const request = yield oci_common_2.composeRequest({
1012
1053
  baseEndpoint: endpoint,
1013
1054
  defaultHeaders: this._defaultHeaders,
@@ -1047,11 +1088,12 @@ class ObjectStorageClient {
1047
1088
  * @param DeletePreauthenticatedRequestRequest
1048
1089
  * @return DeletePreauthenticatedRequestResponse
1049
1090
  * @throws OciError when an error occurs
1050
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/DeletePreauthenticatedRequest.ts.html |here} to see how to use DeletePreauthenticatedRequest API.
1091
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/DeletePreauthenticatedRequest.ts.html |here} to see how to use DeletePreauthenticatedRequest API.
1051
1092
  */
1052
1093
  deletePreauthenticatedRequest(deletePreauthenticatedRequestRequest) {
1053
1094
  return __awaiter(this, void 0, void 0, function* () {
1054
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#deletePreauthenticatedRequest.");
1095
+ if (this.logger)
1096
+ this.logger.debug("Calling operation ObjectStorageClient#deletePreauthenticatedRequest.");
1055
1097
  const operationName = "deletePreauthenticatedRequest";
1056
1098
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PreauthenticatedRequest/DeletePreauthenticatedRequest";
1057
1099
  const pathParams = {
@@ -1068,6 +1110,8 @@ class ObjectStorageClient {
1068
1110
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1069
1111
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1070
1112
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
1113
+ if (this.logger)
1114
+ retrier.logger = this.logger;
1071
1115
  const request = yield oci_common_2.composeRequest({
1072
1116
  baseEndpoint: endpoint,
1073
1117
  defaultHeaders: this._defaultHeaders,
@@ -1108,11 +1152,12 @@ class ObjectStorageClient {
1108
1152
  * @param DeleteReplicationPolicyRequest
1109
1153
  * @return DeleteReplicationPolicyResponse
1110
1154
  * @throws OciError when an error occurs
1111
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/DeleteReplicationPolicy.ts.html |here} to see how to use DeleteReplicationPolicy API.
1155
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/DeleteReplicationPolicy.ts.html |here} to see how to use DeleteReplicationPolicy API.
1112
1156
  */
1113
1157
  deleteReplicationPolicy(deleteReplicationPolicyRequest) {
1114
1158
  return __awaiter(this, void 0, void 0, function* () {
1115
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#deleteReplicationPolicy.");
1159
+ if (this.logger)
1160
+ this.logger.debug("Calling operation ObjectStorageClient#deleteReplicationPolicy.");
1116
1161
  const operationName = "deleteReplicationPolicy";
1117
1162
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/DeleteReplicationPolicy";
1118
1163
  const pathParams = {
@@ -1129,6 +1174,8 @@ class ObjectStorageClient {
1129
1174
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1130
1175
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1131
1176
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
1177
+ if (this.logger)
1178
+ retrier.logger = this.logger;
1132
1179
  const request = yield oci_common_2.composeRequest({
1133
1180
  baseEndpoint: endpoint,
1134
1181
  defaultHeaders: this._defaultHeaders,
@@ -1168,11 +1215,12 @@ class ObjectStorageClient {
1168
1215
  * @param DeleteRetentionRuleRequest
1169
1216
  * @return DeleteRetentionRuleResponse
1170
1217
  * @throws OciError when an error occurs
1171
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/DeleteRetentionRule.ts.html |here} to see how to use DeleteRetentionRule API.
1218
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/DeleteRetentionRule.ts.html |here} to see how to use DeleteRetentionRule API.
1172
1219
  */
1173
1220
  deleteRetentionRule(deleteRetentionRuleRequest) {
1174
1221
  return __awaiter(this, void 0, void 0, function* () {
1175
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#deleteRetentionRule.");
1222
+ if (this.logger)
1223
+ this.logger.debug("Calling operation ObjectStorageClient#deleteRetentionRule.");
1176
1224
  const operationName = "deleteRetentionRule";
1177
1225
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/DeleteRetentionRule";
1178
1226
  const pathParams = {
@@ -1190,6 +1238,8 @@ class ObjectStorageClient {
1190
1238
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1191
1239
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1192
1240
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
1241
+ if (this.logger)
1242
+ retrier.logger = this.logger;
1193
1243
  const request = yield oci_common_2.composeRequest({
1194
1244
  baseEndpoint: endpoint,
1195
1245
  defaultHeaders: this._defaultHeaders,
@@ -1230,11 +1280,12 @@ class ObjectStorageClient {
1230
1280
  * @param GetBucketRequest
1231
1281
  * @return GetBucketResponse
1232
1282
  * @throws OciError when an error occurs
1233
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/GetBucket.ts.html |here} to see how to use GetBucket API.
1283
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/GetBucket.ts.html |here} to see how to use GetBucket API.
1234
1284
  */
1235
1285
  getBucket(getBucketRequest) {
1236
1286
  return __awaiter(this, void 0, void 0, function* () {
1237
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#getBucket.");
1287
+ if (this.logger)
1288
+ this.logger.debug("Calling operation ObjectStorageClient#getBucket.");
1238
1289
  const operationName = "getBucket";
1239
1290
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/GetBucket";
1240
1291
  const pathParams = {
@@ -1254,6 +1305,8 @@ class ObjectStorageClient {
1254
1305
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1255
1306
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1256
1307
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBucketRequest.retryConfiguration, specRetryConfiguration);
1308
+ if (this.logger)
1309
+ retrier.logger = this.logger;
1257
1310
  const request = yield oci_common_2.composeRequest({
1258
1311
  baseEndpoint: endpoint,
1259
1312
  defaultHeaders: this._defaultHeaders,
@@ -1309,11 +1362,12 @@ class ObjectStorageClient {
1309
1362
  * @param GetNamespaceRequest
1310
1363
  * @return GetNamespaceResponse
1311
1364
  * @throws OciError when an error occurs
1312
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/GetNamespace.ts.html |here} to see how to use GetNamespace API.
1365
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/GetNamespace.ts.html |here} to see how to use GetNamespace API.
1313
1366
  */
1314
1367
  getNamespace(getNamespaceRequest) {
1315
1368
  return __awaiter(this, void 0, void 0, function* () {
1316
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#getNamespace.");
1369
+ if (this.logger)
1370
+ this.logger.debug("Calling operation ObjectStorageClient#getNamespace.");
1317
1371
  const operationName = "getNamespace";
1318
1372
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Namespace/GetNamespace";
1319
1373
  const pathParams = {};
@@ -1328,6 +1382,8 @@ class ObjectStorageClient {
1328
1382
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1329
1383
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1330
1384
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamespaceRequest.retryConfiguration, specRetryConfiguration);
1385
+ if (this.logger)
1386
+ retrier.logger = this.logger;
1331
1387
  const request = yield oci_common_2.composeRequest({
1332
1388
  baseEndpoint: endpoint,
1333
1389
  defaultHeaders: this._defaultHeaders,
@@ -1367,11 +1423,12 @@ class ObjectStorageClient {
1367
1423
  * @param GetNamespaceMetadataRequest
1368
1424
  * @return GetNamespaceMetadataResponse
1369
1425
  * @throws OciError when an error occurs
1370
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/GetNamespaceMetadata.ts.html |here} to see how to use GetNamespaceMetadata API.
1426
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/GetNamespaceMetadata.ts.html |here} to see how to use GetNamespaceMetadata API.
1371
1427
  */
1372
1428
  getNamespaceMetadata(getNamespaceMetadataRequest) {
1373
1429
  return __awaiter(this, void 0, void 0, function* () {
1374
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#getNamespaceMetadata.");
1430
+ if (this.logger)
1431
+ this.logger.debug("Calling operation ObjectStorageClient#getNamespaceMetadata.");
1375
1432
  const operationName = "getNamespaceMetadata";
1376
1433
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Namespace/GetNamespaceMetadata";
1377
1434
  const pathParams = {
@@ -1386,6 +1443,8 @@ class ObjectStorageClient {
1386
1443
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1387
1444
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1388
1445
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamespaceMetadataRequest.retryConfiguration, specRetryConfiguration);
1446
+ if (this.logger)
1447
+ retrier.logger = this.logger;
1389
1448
  const request = yield oci_common_2.composeRequest({
1390
1449
  baseEndpoint: endpoint,
1391
1450
  defaultHeaders: this._defaultHeaders,
@@ -1430,11 +1489,12 @@ class ObjectStorageClient {
1430
1489
  * @param GetObjectRequest
1431
1490
  * @return GetObjectResponse
1432
1491
  * @throws OciError when an error occurs
1433
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/GetObject.ts.html |here} to see how to use GetObject API.
1492
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/GetObject.ts.html |here} to see how to use GetObject API.
1434
1493
  */
1435
1494
  getObject(getObjectRequest) {
1436
1495
  return __awaiter(this, void 0, void 0, function* () {
1437
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#getObject.");
1496
+ if (this.logger)
1497
+ this.logger.debug("Calling operation ObjectStorageClient#getObject.");
1438
1498
  const operationName = "getObject";
1439
1499
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/GetObject";
1440
1500
  const pathParams = {
@@ -1465,6 +1525,8 @@ class ObjectStorageClient {
1465
1525
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1466
1526
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1467
1527
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getObjectRequest.retryConfiguration, specRetryConfiguration);
1528
+ if (this.logger)
1529
+ retrier.logger = this.logger;
1468
1530
  const request = yield oci_common_2.composeRequest({
1469
1531
  baseEndpoint: endpoint,
1470
1532
  defaultHeaders: this._defaultHeaders,
@@ -1596,11 +1658,12 @@ class ObjectStorageClient {
1596
1658
  * @param GetObjectLifecyclePolicyRequest
1597
1659
  * @return GetObjectLifecyclePolicyResponse
1598
1660
  * @throws OciError when an error occurs
1599
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/GetObjectLifecyclePolicy.ts.html |here} to see how to use GetObjectLifecyclePolicy API.
1661
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/GetObjectLifecyclePolicy.ts.html |here} to see how to use GetObjectLifecyclePolicy API.
1600
1662
  */
1601
1663
  getObjectLifecyclePolicy(getObjectLifecyclePolicyRequest) {
1602
1664
  return __awaiter(this, void 0, void 0, function* () {
1603
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#getObjectLifecyclePolicy.");
1665
+ if (this.logger)
1666
+ this.logger.debug("Calling operation ObjectStorageClient#getObjectLifecyclePolicy.");
1604
1667
  const operationName = "getObjectLifecyclePolicy";
1605
1668
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/ObjectLifecyclePolicy/GetObjectLifecyclePolicy";
1606
1669
  const pathParams = {
@@ -1616,6 +1679,8 @@ class ObjectStorageClient {
1616
1679
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1617
1680
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1618
1681
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
1682
+ if (this.logger)
1683
+ retrier.logger = this.logger;
1619
1684
  const request = yield oci_common_2.composeRequest({
1620
1685
  baseEndpoint: endpoint,
1621
1686
  defaultHeaders: this._defaultHeaders,
@@ -1664,11 +1729,12 @@ class ObjectStorageClient {
1664
1729
  * @param GetPreauthenticatedRequestRequest
1665
1730
  * @return GetPreauthenticatedRequestResponse
1666
1731
  * @throws OciError when an error occurs
1667
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/GetPreauthenticatedRequest.ts.html |here} to see how to use GetPreauthenticatedRequest API.
1732
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/GetPreauthenticatedRequest.ts.html |here} to see how to use GetPreauthenticatedRequest API.
1668
1733
  */
1669
1734
  getPreauthenticatedRequest(getPreauthenticatedRequestRequest) {
1670
1735
  return __awaiter(this, void 0, void 0, function* () {
1671
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#getPreauthenticatedRequest.");
1736
+ if (this.logger)
1737
+ this.logger.debug("Calling operation ObjectStorageClient#getPreauthenticatedRequest.");
1672
1738
  const operationName = "getPreauthenticatedRequest";
1673
1739
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PreauthenticatedRequest/GetPreauthenticatedRequest";
1674
1740
  const pathParams = {
@@ -1685,6 +1751,8 @@ class ObjectStorageClient {
1685
1751
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1686
1752
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1687
1753
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
1754
+ if (this.logger)
1755
+ retrier.logger = this.logger;
1688
1756
  const request = yield oci_common_2.composeRequest({
1689
1757
  baseEndpoint: endpoint,
1690
1758
  defaultHeaders: this._defaultHeaders,
@@ -1729,11 +1797,12 @@ class ObjectStorageClient {
1729
1797
  * @param GetReplicationPolicyRequest
1730
1798
  * @return GetReplicationPolicyResponse
1731
1799
  * @throws OciError when an error occurs
1732
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/GetReplicationPolicy.ts.html |here} to see how to use GetReplicationPolicy API.
1800
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/GetReplicationPolicy.ts.html |here} to see how to use GetReplicationPolicy API.
1733
1801
  */
1734
1802
  getReplicationPolicy(getReplicationPolicyRequest) {
1735
1803
  return __awaiter(this, void 0, void 0, function* () {
1736
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#getReplicationPolicy.");
1804
+ if (this.logger)
1805
+ this.logger.debug("Calling operation ObjectStorageClient#getReplicationPolicy.");
1737
1806
  const operationName = "getReplicationPolicy";
1738
1807
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/GetReplicationPolicy";
1739
1808
  const pathParams = {
@@ -1750,6 +1819,8 @@ class ObjectStorageClient {
1750
1819
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1751
1820
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1752
1821
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
1822
+ if (this.logger)
1823
+ retrier.logger = this.logger;
1753
1824
  const request = yield oci_common_2.composeRequest({
1754
1825
  baseEndpoint: endpoint,
1755
1826
  defaultHeaders: this._defaultHeaders,
@@ -1793,11 +1864,12 @@ class ObjectStorageClient {
1793
1864
  * @param GetRetentionRuleRequest
1794
1865
  * @return GetRetentionRuleResponse
1795
1866
  * @throws OciError when an error occurs
1796
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/GetRetentionRule.ts.html |here} to see how to use GetRetentionRule API.
1867
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/GetRetentionRule.ts.html |here} to see how to use GetRetentionRule API.
1797
1868
  */
1798
1869
  getRetentionRule(getRetentionRuleRequest) {
1799
1870
  return __awaiter(this, void 0, void 0, function* () {
1800
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#getRetentionRule.");
1871
+ if (this.logger)
1872
+ this.logger.debug("Calling operation ObjectStorageClient#getRetentionRule.");
1801
1873
  const operationName = "getRetentionRule";
1802
1874
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/GetRetentionRule";
1803
1875
  const pathParams = {
@@ -1814,6 +1886,8 @@ class ObjectStorageClient {
1814
1886
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1815
1887
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1816
1888
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
1889
+ if (this.logger)
1890
+ retrier.logger = this.logger;
1817
1891
  const request = yield oci_common_2.composeRequest({
1818
1892
  baseEndpoint: endpoint,
1819
1893
  defaultHeaders: this._defaultHeaders,
@@ -1867,11 +1941,12 @@ class ObjectStorageClient {
1867
1941
  * @param GetWorkRequestRequest
1868
1942
  * @return GetWorkRequestResponse
1869
1943
  * @throws OciError when an error occurs
1870
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1944
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1871
1945
  */
1872
1946
  getWorkRequest(getWorkRequestRequest) {
1873
1947
  return __awaiter(this, void 0, void 0, function* () {
1874
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#getWorkRequest.");
1948
+ if (this.logger)
1949
+ this.logger.debug("Calling operation ObjectStorageClient#getWorkRequest.");
1875
1950
  const operationName = "getWorkRequest";
1876
1951
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequest/GetWorkRequest";
1877
1952
  const pathParams = {
@@ -1886,6 +1961,8 @@ class ObjectStorageClient {
1886
1961
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1887
1962
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1888
1963
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
1964
+ if (this.logger)
1965
+ retrier.logger = this.logger;
1889
1966
  const request = yield oci_common_2.composeRequest({
1890
1967
  baseEndpoint: endpoint,
1891
1968
  defaultHeaders: this._defaultHeaders,
@@ -1935,11 +2012,12 @@ class ObjectStorageClient {
1935
2012
  * @param HeadBucketRequest
1936
2013
  * @return HeadBucketResponse
1937
2014
  * @throws OciError when an error occurs
1938
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/HeadBucket.ts.html |here} to see how to use HeadBucket API.
2015
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/HeadBucket.ts.html |here} to see how to use HeadBucket API.
1939
2016
  */
1940
2017
  headBucket(headBucketRequest) {
1941
2018
  return __awaiter(this, void 0, void 0, function* () {
1942
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#headBucket.");
2019
+ if (this.logger)
2020
+ this.logger.debug("Calling operation ObjectStorageClient#headBucket.");
1943
2021
  const operationName = "headBucket";
1944
2022
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/HeadBucket";
1945
2023
  const pathParams = {
@@ -1957,6 +2035,8 @@ class ObjectStorageClient {
1957
2035
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1958
2036
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1959
2037
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headBucketRequest.retryConfiguration, specRetryConfiguration);
2038
+ if (this.logger)
2039
+ retrier.logger = this.logger;
1960
2040
  const request = yield oci_common_2.composeRequest({
1961
2041
  baseEndpoint: endpoint,
1962
2042
  defaultHeaders: this._defaultHeaders,
@@ -2002,11 +2082,12 @@ class ObjectStorageClient {
2002
2082
  * @param HeadObjectRequest
2003
2083
  * @return HeadObjectResponse
2004
2084
  * @throws OciError when an error occurs
2005
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/HeadObject.ts.html |here} to see how to use HeadObject API.
2085
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/HeadObject.ts.html |here} to see how to use HeadObject API.
2006
2086
  */
2007
2087
  headObject(headObjectRequest) {
2008
2088
  return __awaiter(this, void 0, void 0, function* () {
2009
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#headObject.");
2089
+ if (this.logger)
2090
+ this.logger.debug("Calling operation ObjectStorageClient#headObject.");
2010
2091
  const operationName = "headObject";
2011
2092
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/HeadObject";
2012
2093
  const pathParams = {
@@ -2030,6 +2111,8 @@ class ObjectStorageClient {
2030
2111
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
2031
2112
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2032
2113
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headObjectRequest.retryConfiguration, specRetryConfiguration);
2114
+ if (this.logger)
2115
+ retrier.logger = this.logger;
2033
2116
  const request = yield oci_common_2.composeRequest({
2034
2117
  baseEndpoint: endpoint,
2035
2118
  defaultHeaders: this._defaultHeaders,
@@ -2156,11 +2239,12 @@ class ObjectStorageClient {
2156
2239
  * @param ListBucketsRequest
2157
2240
  * @return ListBucketsResponse
2158
2241
  * @throws OciError when an error occurs
2159
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListBuckets.ts.html |here} to see how to use ListBuckets API.
2242
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListBuckets.ts.html |here} to see how to use ListBuckets API.
2160
2243
  */
2161
2244
  listBuckets(listBucketsRequest) {
2162
2245
  return __awaiter(this, void 0, void 0, function* () {
2163
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listBuckets.");
2246
+ if (this.logger)
2247
+ this.logger.debug("Calling operation ObjectStorageClient#listBuckets.");
2164
2248
  const operationName = "listBuckets";
2165
2249
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/ListBuckets";
2166
2250
  const pathParams = {
@@ -2180,6 +2264,8 @@ class ObjectStorageClient {
2180
2264
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
2181
2265
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2182
2266
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBucketsRequest.retryConfiguration, specRetryConfiguration);
2267
+ if (this.logger)
2268
+ retrier.logger = this.logger;
2183
2269
  const request = yield oci_common_2.composeRequest({
2184
2270
  baseEndpoint: endpoint,
2185
2271
  defaultHeaders: this._defaultHeaders,
@@ -2269,11 +2355,12 @@ class ObjectStorageClient {
2269
2355
  * @param ListMultipartUploadPartsRequest
2270
2356
  * @return ListMultipartUploadPartsResponse
2271
2357
  * @throws OciError when an error occurs
2272
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListMultipartUploadParts.ts.html |here} to see how to use ListMultipartUploadParts API.
2358
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListMultipartUploadParts.ts.html |here} to see how to use ListMultipartUploadParts API.
2273
2359
  */
2274
2360
  listMultipartUploadParts(listMultipartUploadPartsRequest) {
2275
2361
  return __awaiter(this, void 0, void 0, function* () {
2276
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listMultipartUploadParts.");
2362
+ if (this.logger)
2363
+ this.logger.debug("Calling operation ObjectStorageClient#listMultipartUploadParts.");
2277
2364
  const operationName = "listMultipartUploadParts";
2278
2365
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/ListMultipartUploadParts";
2279
2366
  const pathParams = {
@@ -2299,6 +2386,8 @@ class ObjectStorageClient {
2299
2386
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
2300
2387
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2301
2388
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMultipartUploadPartsRequest.retryConfiguration, specRetryConfiguration);
2389
+ if (this.logger)
2390
+ retrier.logger = this.logger;
2302
2391
  const request = yield oci_common_2.composeRequest({
2303
2392
  baseEndpoint: endpoint,
2304
2393
  defaultHeaders: this._defaultHeaders,
@@ -2388,11 +2477,12 @@ class ObjectStorageClient {
2388
2477
  * @param ListMultipartUploadsRequest
2389
2478
  * @return ListMultipartUploadsResponse
2390
2479
  * @throws OciError when an error occurs
2391
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListMultipartUploads.ts.html |here} to see how to use ListMultipartUploads API.
2480
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListMultipartUploads.ts.html |here} to see how to use ListMultipartUploads API.
2392
2481
  */
2393
2482
  listMultipartUploads(listMultipartUploadsRequest) {
2394
2483
  return __awaiter(this, void 0, void 0, function* () {
2395
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listMultipartUploads.");
2484
+ if (this.logger)
2485
+ this.logger.debug("Calling operation ObjectStorageClient#listMultipartUploads.");
2396
2486
  const operationName = "listMultipartUploads";
2397
2487
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/ListMultipartUploads";
2398
2488
  const pathParams = {
@@ -2411,6 +2501,8 @@ class ObjectStorageClient {
2411
2501
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
2412
2502
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2413
2503
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMultipartUploadsRequest.retryConfiguration, specRetryConfiguration);
2504
+ if (this.logger)
2505
+ retrier.logger = this.logger;
2414
2506
  const request = yield oci_common_2.composeRequest({
2415
2507
  baseEndpoint: endpoint,
2416
2508
  defaultHeaders: this._defaultHeaders,
@@ -2507,11 +2599,12 @@ class ObjectStorageClient {
2507
2599
  * @param ListObjectVersionsRequest
2508
2600
  * @return ListObjectVersionsResponse
2509
2601
  * @throws OciError when an error occurs
2510
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListObjectVersions.ts.html |here} to see how to use ListObjectVersions API.
2602
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListObjectVersions.ts.html |here} to see how to use ListObjectVersions API.
2511
2603
  */
2512
2604
  listObjectVersions(listObjectVersionsRequest) {
2513
2605
  return __awaiter(this, void 0, void 0, function* () {
2514
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listObjectVersions.");
2606
+ if (this.logger)
2607
+ this.logger.debug("Calling operation ObjectStorageClient#listObjectVersions.");
2515
2608
  const operationName = "listObjectVersions";
2516
2609
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/ListObjectVersions";
2517
2610
  const pathParams = {
@@ -2536,6 +2629,8 @@ class ObjectStorageClient {
2536
2629
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
2537
2630
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2538
2631
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listObjectVersionsRequest.retryConfiguration, specRetryConfiguration);
2632
+ if (this.logger)
2633
+ retrier.logger = this.logger;
2539
2634
  const request = yield oci_common_2.composeRequest({
2540
2635
  baseEndpoint: endpoint,
2541
2636
  defaultHeaders: this._defaultHeaders,
@@ -2594,11 +2689,12 @@ class ObjectStorageClient {
2594
2689
  * @param ListObjectsRequest
2595
2690
  * @return ListObjectsResponse
2596
2691
  * @throws OciError when an error occurs
2597
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListObjects.ts.html |here} to see how to use ListObjects API.
2692
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListObjects.ts.html |here} to see how to use ListObjects API.
2598
2693
  */
2599
2694
  listObjects(listObjectsRequest) {
2600
2695
  return __awaiter(this, void 0, void 0, function* () {
2601
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listObjects.");
2696
+ if (this.logger)
2697
+ this.logger.debug("Calling operation ObjectStorageClient#listObjects.");
2602
2698
  const operationName = "listObjects";
2603
2699
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/ListObjects";
2604
2700
  const pathParams = {
@@ -2622,6 +2718,8 @@ class ObjectStorageClient {
2622
2718
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
2623
2719
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2624
2720
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listObjectsRequest.retryConfiguration, specRetryConfiguration);
2721
+ if (this.logger)
2722
+ retrier.logger = this.logger;
2625
2723
  const request = yield oci_common_2.composeRequest({
2626
2724
  baseEndpoint: endpoint,
2627
2725
  defaultHeaders: this._defaultHeaders,
@@ -2706,11 +2804,12 @@ class ObjectStorageClient {
2706
2804
  * @param ListPreauthenticatedRequestsRequest
2707
2805
  * @return ListPreauthenticatedRequestsResponse
2708
2806
  * @throws OciError when an error occurs
2709
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListPreauthenticatedRequests.ts.html |here} to see how to use ListPreauthenticatedRequests API.
2807
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListPreauthenticatedRequests.ts.html |here} to see how to use ListPreauthenticatedRequests API.
2710
2808
  */
2711
2809
  listPreauthenticatedRequests(listPreauthenticatedRequestsRequest) {
2712
2810
  return __awaiter(this, void 0, void 0, function* () {
2713
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listPreauthenticatedRequests.");
2811
+ if (this.logger)
2812
+ this.logger.debug("Calling operation ObjectStorageClient#listPreauthenticatedRequests.");
2714
2813
  const operationName = "listPreauthenticatedRequests";
2715
2814
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PreauthenticatedRequest/ListPreauthenticatedRequests";
2716
2815
  const pathParams = {
@@ -2730,6 +2829,8 @@ class ObjectStorageClient {
2730
2829
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
2731
2830
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2732
2831
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPreauthenticatedRequestsRequest.retryConfiguration, specRetryConfiguration);
2832
+ if (this.logger)
2833
+ retrier.logger = this.logger;
2733
2834
  const request = yield oci_common_2.composeRequest({
2734
2835
  baseEndpoint: endpoint,
2735
2836
  defaultHeaders: this._defaultHeaders,
@@ -2819,11 +2920,12 @@ class ObjectStorageClient {
2819
2920
  * @param ListReplicationPoliciesRequest
2820
2921
  * @return ListReplicationPoliciesResponse
2821
2922
  * @throws OciError when an error occurs
2822
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListReplicationPolicies.ts.html |here} to see how to use ListReplicationPolicies API.
2923
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListReplicationPolicies.ts.html |here} to see how to use ListReplicationPolicies API.
2823
2924
  */
2824
2925
  listReplicationPolicies(listReplicationPoliciesRequest) {
2825
2926
  return __awaiter(this, void 0, void 0, function* () {
2826
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listReplicationPolicies.");
2927
+ if (this.logger)
2928
+ this.logger.debug("Calling operation ObjectStorageClient#listReplicationPolicies.");
2827
2929
  const operationName = "listReplicationPolicies";
2828
2930
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/ListReplicationPolicies";
2829
2931
  const pathParams = {
@@ -2842,6 +2944,8 @@ class ObjectStorageClient {
2842
2944
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
2843
2945
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2844
2946
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationPoliciesRequest.retryConfiguration, specRetryConfiguration);
2947
+ if (this.logger)
2948
+ retrier.logger = this.logger;
2845
2949
  const request = yield oci_common_2.composeRequest({
2846
2950
  baseEndpoint: endpoint,
2847
2951
  defaultHeaders: this._defaultHeaders,
@@ -2931,11 +3035,12 @@ class ObjectStorageClient {
2931
3035
  * @param ListReplicationSourcesRequest
2932
3036
  * @return ListReplicationSourcesResponse
2933
3037
  * @throws OciError when an error occurs
2934
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListReplicationSources.ts.html |here} to see how to use ListReplicationSources API.
3038
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListReplicationSources.ts.html |here} to see how to use ListReplicationSources API.
2935
3039
  */
2936
3040
  listReplicationSources(listReplicationSourcesRequest) {
2937
3041
  return __awaiter(this, void 0, void 0, function* () {
2938
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listReplicationSources.");
3042
+ if (this.logger)
3043
+ this.logger.debug("Calling operation ObjectStorageClient#listReplicationSources.");
2939
3044
  const operationName = "listReplicationSources";
2940
3045
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/ListReplicationSources";
2941
3046
  const pathParams = {
@@ -2954,6 +3059,8 @@ class ObjectStorageClient {
2954
3059
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
2955
3060
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2956
3061
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationSourcesRequest.retryConfiguration, specRetryConfiguration);
3062
+ if (this.logger)
3063
+ retrier.logger = this.logger;
2957
3064
  const request = yield oci_common_2.composeRequest({
2958
3065
  baseEndpoint: endpoint,
2959
3066
  defaultHeaders: this._defaultHeaders,
@@ -3044,11 +3151,12 @@ class ObjectStorageClient {
3044
3151
  * @param ListRetentionRulesRequest
3045
3152
  * @return ListRetentionRulesResponse
3046
3153
  * @throws OciError when an error occurs
3047
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListRetentionRules.ts.html |here} to see how to use ListRetentionRules API.
3154
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListRetentionRules.ts.html |here} to see how to use ListRetentionRules API.
3048
3155
  */
3049
3156
  listRetentionRules(listRetentionRulesRequest) {
3050
3157
  return __awaiter(this, void 0, void 0, function* () {
3051
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listRetentionRules.");
3158
+ if (this.logger)
3159
+ this.logger.debug("Calling operation ObjectStorageClient#listRetentionRules.");
3052
3160
  const operationName = "listRetentionRules";
3053
3161
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/ListRetentionRules";
3054
3162
  const pathParams = {
@@ -3065,6 +3173,8 @@ class ObjectStorageClient {
3065
3173
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3066
3174
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3067
3175
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRetentionRulesRequest.retryConfiguration, specRetryConfiguration);
3176
+ if (this.logger)
3177
+ retrier.logger = this.logger;
3068
3178
  const request = yield oci_common_2.composeRequest({
3069
3179
  baseEndpoint: endpoint,
3070
3180
  defaultHeaders: this._defaultHeaders,
@@ -3113,11 +3223,12 @@ class ObjectStorageClient {
3113
3223
  * @param ListWorkRequestErrorsRequest
3114
3224
  * @return ListWorkRequestErrorsResponse
3115
3225
  * @throws OciError when an error occurs
3116
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3226
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3117
3227
  */
3118
3228
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
3119
3229
  return __awaiter(this, void 0, void 0, function* () {
3120
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listWorkRequestErrors.");
3230
+ if (this.logger)
3231
+ this.logger.debug("Calling operation ObjectStorageClient#listWorkRequestErrors.");
3121
3232
  const operationName = "listWorkRequestErrors";
3122
3233
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequestError/ListWorkRequestErrors";
3123
3234
  const pathParams = {
@@ -3135,6 +3246,8 @@ class ObjectStorageClient {
3135
3246
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3136
3247
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3137
3248
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
3249
+ if (this.logger)
3250
+ retrier.logger = this.logger;
3138
3251
  const request = yield oci_common_2.composeRequest({
3139
3252
  baseEndpoint: endpoint,
3140
3253
  defaultHeaders: this._defaultHeaders,
@@ -3223,11 +3336,12 @@ class ObjectStorageClient {
3223
3336
  * @param ListWorkRequestLogsRequest
3224
3337
  * @return ListWorkRequestLogsResponse
3225
3338
  * @throws OciError when an error occurs
3226
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3339
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3227
3340
  */
3228
3341
  listWorkRequestLogs(listWorkRequestLogsRequest) {
3229
3342
  return __awaiter(this, void 0, void 0, function* () {
3230
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listWorkRequestLogs.");
3343
+ if (this.logger)
3344
+ this.logger.debug("Calling operation ObjectStorageClient#listWorkRequestLogs.");
3231
3345
  const operationName = "listWorkRequestLogs";
3232
3346
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequestLogEntry/ListWorkRequestLogs";
3233
3347
  const pathParams = {
@@ -3245,6 +3359,8 @@ class ObjectStorageClient {
3245
3359
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3246
3360
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3247
3361
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
3362
+ if (this.logger)
3363
+ retrier.logger = this.logger;
3248
3364
  const request = yield oci_common_2.composeRequest({
3249
3365
  baseEndpoint: endpoint,
3250
3366
  defaultHeaders: this._defaultHeaders,
@@ -3334,11 +3450,12 @@ class ObjectStorageClient {
3334
3450
  * @param ListWorkRequestsRequest
3335
3451
  * @return ListWorkRequestsResponse
3336
3452
  * @throws OciError when an error occurs
3337
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
3453
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
3338
3454
  */
3339
3455
  listWorkRequests(listWorkRequestsRequest) {
3340
3456
  return __awaiter(this, void 0, void 0, function* () {
3341
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#listWorkRequests.");
3457
+ if (this.logger)
3458
+ this.logger.debug("Calling operation ObjectStorageClient#listWorkRequests.");
3342
3459
  const operationName = "listWorkRequests";
3343
3460
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequest/ListWorkRequests";
3344
3461
  const pathParams = {};
@@ -3355,6 +3472,8 @@ class ObjectStorageClient {
3355
3472
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3356
3473
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3357
3474
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
3475
+ if (this.logger)
3476
+ retrier.logger = this.logger;
3358
3477
  const request = yield oci_common_2.composeRequest({
3359
3478
  baseEndpoint: endpoint,
3360
3479
  defaultHeaders: this._defaultHeaders,
@@ -3447,11 +3566,12 @@ class ObjectStorageClient {
3447
3566
  * @param MakeBucketWritableRequest
3448
3567
  * @return MakeBucketWritableResponse
3449
3568
  * @throws OciError when an error occurs
3450
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/MakeBucketWritable.ts.html |here} to see how to use MakeBucketWritable API.
3569
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/MakeBucketWritable.ts.html |here} to see how to use MakeBucketWritable API.
3451
3570
  */
3452
3571
  makeBucketWritable(makeBucketWritableRequest) {
3453
3572
  return __awaiter(this, void 0, void 0, function* () {
3454
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#makeBucketWritable.");
3573
+ if (this.logger)
3574
+ this.logger.debug("Calling operation ObjectStorageClient#makeBucketWritable.");
3455
3575
  const operationName = "makeBucketWritable";
3456
3576
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/MakeBucketWritable";
3457
3577
  const pathParams = {
@@ -3467,6 +3587,8 @@ class ObjectStorageClient {
3467
3587
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3468
3588
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3469
3589
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, makeBucketWritableRequest.retryConfiguration, specRetryConfiguration);
3590
+ if (this.logger)
3591
+ retrier.logger = this.logger;
3470
3592
  const request = yield oci_common_2.composeRequest({
3471
3593
  baseEndpoint: endpoint,
3472
3594
  defaultHeaders: this._defaultHeaders,
@@ -3514,11 +3636,12 @@ class ObjectStorageClient {
3514
3636
  * @param PutObjectRequest
3515
3637
  * @return PutObjectResponse
3516
3638
  * @throws OciError when an error occurs
3517
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/PutObject.ts.html |here} to see how to use PutObject API.
3639
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/PutObject.ts.html |here} to see how to use PutObject API.
3518
3640
  */
3519
3641
  putObject(putObjectRequest) {
3520
3642
  return __awaiter(this, void 0, void 0, function* () {
3521
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#putObject.");
3643
+ if (this.logger)
3644
+ this.logger.debug("Calling operation ObjectStorageClient#putObject.");
3522
3645
  const operationName = "putObject";
3523
3646
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/PutObject";
3524
3647
  const pathParams = {
@@ -3554,6 +3677,8 @@ class ObjectStorageClient {
3554
3677
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3555
3678
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3556
3679
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putObjectRequest.retryConfiguration, specRetryConfiguration);
3680
+ if (this.logger)
3681
+ retrier.logger = this.logger;
3557
3682
  const request = yield oci_common_2.composeRequest({
3558
3683
  baseEndpoint: endpoint,
3559
3684
  defaultHeaders: this._defaultHeaders,
@@ -3616,11 +3741,12 @@ class ObjectStorageClient {
3616
3741
  * @param PutObjectLifecyclePolicyRequest
3617
3742
  * @return PutObjectLifecyclePolicyResponse
3618
3743
  * @throws OciError when an error occurs
3619
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/PutObjectLifecyclePolicy.ts.html |here} to see how to use PutObjectLifecyclePolicy API.
3744
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/PutObjectLifecyclePolicy.ts.html |here} to see how to use PutObjectLifecyclePolicy API.
3620
3745
  */
3621
3746
  putObjectLifecyclePolicy(putObjectLifecyclePolicyRequest) {
3622
3747
  return __awaiter(this, void 0, void 0, function* () {
3623
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#putObjectLifecyclePolicy.");
3748
+ if (this.logger)
3749
+ this.logger.debug("Calling operation ObjectStorageClient#putObjectLifecyclePolicy.");
3624
3750
  const operationName = "putObjectLifecyclePolicy";
3625
3751
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/ObjectLifecyclePolicy/PutObjectLifecyclePolicy";
3626
3752
  const pathParams = {
@@ -3638,6 +3764,8 @@ class ObjectStorageClient {
3638
3764
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3639
3765
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3640
3766
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
3767
+ if (this.logger)
3768
+ retrier.logger = this.logger;
3641
3769
  const request = yield oci_common_2.composeRequest({
3642
3770
  baseEndpoint: endpoint,
3643
3771
  defaultHeaders: this._defaultHeaders,
@@ -3702,11 +3830,12 @@ class ObjectStorageClient {
3702
3830
  * @param ReencryptBucketRequest
3703
3831
  * @return ReencryptBucketResponse
3704
3832
  * @throws OciError when an error occurs
3705
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ReencryptBucket.ts.html |here} to see how to use ReencryptBucket API.
3833
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ReencryptBucket.ts.html |here} to see how to use ReencryptBucket API.
3706
3834
  */
3707
3835
  reencryptBucket(reencryptBucketRequest) {
3708
3836
  return __awaiter(this, void 0, void 0, function* () {
3709
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#reencryptBucket.");
3837
+ if (this.logger)
3838
+ this.logger.debug("Calling operation ObjectStorageClient#reencryptBucket.");
3710
3839
  const operationName = "reencryptBucket";
3711
3840
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/ReencryptBucket";
3712
3841
  const pathParams = {
@@ -3722,6 +3851,8 @@ class ObjectStorageClient {
3722
3851
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3723
3852
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3724
3853
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reencryptBucketRequest.retryConfiguration, specRetryConfiguration);
3854
+ if (this.logger)
3855
+ retrier.logger = this.logger;
3725
3856
  const request = yield oci_common_2.composeRequest({
3726
3857
  baseEndpoint: endpoint,
3727
3858
  defaultHeaders: this._defaultHeaders,
@@ -3775,11 +3906,12 @@ class ObjectStorageClient {
3775
3906
  * @param ReencryptObjectRequest
3776
3907
  * @return ReencryptObjectResponse
3777
3908
  * @throws OciError when an error occurs
3778
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/ReencryptObject.ts.html |here} to see how to use ReencryptObject API.
3909
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/ReencryptObject.ts.html |here} to see how to use ReencryptObject API.
3779
3910
  */
3780
3911
  reencryptObject(reencryptObjectRequest) {
3781
3912
  return __awaiter(this, void 0, void 0, function* () {
3782
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#reencryptObject.");
3913
+ if (this.logger)
3914
+ this.logger.debug("Calling operation ObjectStorageClient#reencryptObject.");
3783
3915
  const operationName = "reencryptObject";
3784
3916
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/ReencryptObject";
3785
3917
  const pathParams = {
@@ -3798,6 +3930,8 @@ class ObjectStorageClient {
3798
3930
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3799
3931
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3800
3932
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reencryptObjectRequest.retryConfiguration, specRetryConfiguration);
3933
+ if (this.logger)
3934
+ retrier.logger = this.logger;
3801
3935
  const request = yield oci_common_2.composeRequest({
3802
3936
  baseEndpoint: endpoint,
3803
3937
  defaultHeaders: this._defaultHeaders,
@@ -3842,11 +3976,12 @@ class ObjectStorageClient {
3842
3976
  * @param RenameObjectRequest
3843
3977
  * @return RenameObjectResponse
3844
3978
  * @throws OciError when an error occurs
3845
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/RenameObject.ts.html |here} to see how to use RenameObject API.
3979
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/RenameObject.ts.html |here} to see how to use RenameObject API.
3846
3980
  */
3847
3981
  renameObject(renameObjectRequest) {
3848
3982
  return __awaiter(this, void 0, void 0, function* () {
3849
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#renameObject.");
3983
+ if (this.logger)
3984
+ this.logger.debug("Calling operation ObjectStorageClient#renameObject.");
3850
3985
  const operationName = "renameObject";
3851
3986
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/RenameObject";
3852
3987
  const pathParams = {
@@ -3862,6 +3997,8 @@ class ObjectStorageClient {
3862
3997
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3863
3998
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3864
3999
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, renameObjectRequest.retryConfiguration, specRetryConfiguration);
4000
+ if (this.logger)
4001
+ retrier.logger = this.logger;
3865
4002
  const request = yield oci_common_2.composeRequest({
3866
4003
  baseEndpoint: endpoint,
3867
4004
  defaultHeaders: this._defaultHeaders,
@@ -3919,11 +4056,12 @@ class ObjectStorageClient {
3919
4056
  * @param RestoreObjectsRequest
3920
4057
  * @return RestoreObjectsResponse
3921
4058
  * @throws OciError when an error occurs
3922
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/RestoreObjects.ts.html |here} to see how to use RestoreObjects API.
4059
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/RestoreObjects.ts.html |here} to see how to use RestoreObjects API.
3923
4060
  */
3924
4061
  restoreObjects(restoreObjectsRequest) {
3925
4062
  return __awaiter(this, void 0, void 0, function* () {
3926
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#restoreObjects.");
4063
+ if (this.logger)
4064
+ this.logger.debug("Calling operation ObjectStorageClient#restoreObjects.");
3927
4065
  const operationName = "restoreObjects";
3928
4066
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/RestoreObjects";
3929
4067
  const pathParams = {
@@ -3939,6 +4077,8 @@ class ObjectStorageClient {
3939
4077
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3940
4078
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3941
4079
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreObjectsRequest.retryConfiguration, specRetryConfiguration);
4080
+ if (this.logger)
4081
+ retrier.logger = this.logger;
3942
4082
  const request = yield oci_common_2.composeRequest({
3943
4083
  baseEndpoint: endpoint,
3944
4084
  defaultHeaders: this._defaultHeaders,
@@ -3984,11 +4124,12 @@ class ObjectStorageClient {
3984
4124
  * @param UpdateBucketRequest
3985
4125
  * @return UpdateBucketResponse
3986
4126
  * @throws OciError when an error occurs
3987
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/UpdateBucket.ts.html |here} to see how to use UpdateBucket API.
4127
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/UpdateBucket.ts.html |here} to see how to use UpdateBucket API.
3988
4128
  */
3989
4129
  updateBucket(updateBucketRequest) {
3990
4130
  return __awaiter(this, void 0, void 0, function* () {
3991
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#updateBucket.");
4131
+ if (this.logger)
4132
+ this.logger.debug("Calling operation ObjectStorageClient#updateBucket.");
3992
4133
  const operationName = "updateBucket";
3993
4134
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/UpdateBucket";
3994
4135
  const pathParams = {
@@ -4005,6 +4146,8 @@ class ObjectStorageClient {
4005
4146
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
4006
4147
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
4007
4148
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBucketRequest.retryConfiguration, specRetryConfiguration);
4149
+ if (this.logger)
4150
+ retrier.logger = this.logger;
4008
4151
  const request = yield oci_common_2.composeRequest({
4009
4152
  baseEndpoint: endpoint,
4010
4153
  defaultHeaders: this._defaultHeaders,
@@ -4061,11 +4204,12 @@ class ObjectStorageClient {
4061
4204
  * @param UpdateNamespaceMetadataRequest
4062
4205
  * @return UpdateNamespaceMetadataResponse
4063
4206
  * @throws OciError when an error occurs
4064
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/UpdateNamespaceMetadata.ts.html |here} to see how to use UpdateNamespaceMetadata API.
4207
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/UpdateNamespaceMetadata.ts.html |here} to see how to use UpdateNamespaceMetadata API.
4065
4208
  */
4066
4209
  updateNamespaceMetadata(updateNamespaceMetadataRequest) {
4067
4210
  return __awaiter(this, void 0, void 0, function* () {
4068
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#updateNamespaceMetadata.");
4211
+ if (this.logger)
4212
+ this.logger.debug("Calling operation ObjectStorageClient#updateNamespaceMetadata.");
4069
4213
  const operationName = "updateNamespaceMetadata";
4070
4214
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Namespace/UpdateNamespaceMetadata";
4071
4215
  const pathParams = {
@@ -4080,6 +4224,8 @@ class ObjectStorageClient {
4080
4224
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
4081
4225
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
4082
4226
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateNamespaceMetadataRequest.retryConfiguration, specRetryConfiguration);
4227
+ if (this.logger)
4228
+ retrier.logger = this.logger;
4083
4229
  const request = yield oci_common_2.composeRequest({
4084
4230
  baseEndpoint: endpoint,
4085
4231
  defaultHeaders: this._defaultHeaders,
@@ -4125,11 +4271,12 @@ class ObjectStorageClient {
4125
4271
  * @param UpdateObjectStorageTierRequest
4126
4272
  * @return UpdateObjectStorageTierResponse
4127
4273
  * @throws OciError when an error occurs
4128
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/UpdateObjectStorageTier.ts.html |here} to see how to use UpdateObjectStorageTier API.
4274
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/UpdateObjectStorageTier.ts.html |here} to see how to use UpdateObjectStorageTier API.
4129
4275
  */
4130
4276
  updateObjectStorageTier(updateObjectStorageTierRequest) {
4131
4277
  return __awaiter(this, void 0, void 0, function* () {
4132
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#updateObjectStorageTier.");
4278
+ if (this.logger)
4279
+ this.logger.debug("Calling operation ObjectStorageClient#updateObjectStorageTier.");
4133
4280
  const operationName = "updateObjectStorageTier";
4134
4281
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/UpdateObjectStorageTier";
4135
4282
  const pathParams = {
@@ -4145,6 +4292,8 @@ class ObjectStorageClient {
4145
4292
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
4146
4293
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
4147
4294
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateObjectStorageTierRequest.retryConfiguration, specRetryConfiguration);
4295
+ if (this.logger)
4296
+ retrier.logger = this.logger;
4148
4297
  const request = yield oci_common_2.composeRequest({
4149
4298
  baseEndpoint: endpoint,
4150
4299
  defaultHeaders: this._defaultHeaders,
@@ -4186,11 +4335,12 @@ class ObjectStorageClient {
4186
4335
  * @param UpdateRetentionRuleRequest
4187
4336
  * @return UpdateRetentionRuleResponse
4188
4337
  * @throws OciError when an error occurs
4189
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/UpdateRetentionRule.ts.html |here} to see how to use UpdateRetentionRule API.
4338
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/UpdateRetentionRule.ts.html |here} to see how to use UpdateRetentionRule API.
4190
4339
  */
4191
4340
  updateRetentionRule(updateRetentionRuleRequest) {
4192
4341
  return __awaiter(this, void 0, void 0, function* () {
4193
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#updateRetentionRule.");
4342
+ if (this.logger)
4343
+ this.logger.debug("Calling operation ObjectStorageClient#updateRetentionRule.");
4194
4344
  const operationName = "updateRetentionRule";
4195
4345
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/UpdateRetentionRule";
4196
4346
  const pathParams = {
@@ -4208,6 +4358,8 @@ class ObjectStorageClient {
4208
4358
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
4209
4359
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
4210
4360
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
4361
+ if (this.logger)
4362
+ retrier.logger = this.logger;
4211
4363
  const request = yield oci_common_2.composeRequest({
4212
4364
  baseEndpoint: endpoint,
4213
4365
  defaultHeaders: this._defaultHeaders,
@@ -4258,11 +4410,12 @@ class ObjectStorageClient {
4258
4410
  * @param UploadPartRequest
4259
4411
  * @return UploadPartResponse
4260
4412
  * @throws OciError when an error occurs
4261
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/objectstorage/UploadPart.ts.html |here} to see how to use UploadPart API.
4413
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/objectstorage/UploadPart.ts.html |here} to see how to use UploadPart API.
4262
4414
  */
4263
4415
  uploadPart(uploadPartRequest) {
4264
4416
  return __awaiter(this, void 0, void 0, function* () {
4265
- oci_common_2.logger.debug("Calling operation ObjectStorageClient#uploadPart.");
4417
+ if (this.logger)
4418
+ this.logger.debug("Calling operation ObjectStorageClient#uploadPart.");
4266
4419
  const operationName = "uploadPart";
4267
4420
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/UploadPart";
4268
4421
  const pathParams = {
@@ -4296,6 +4449,8 @@ class ObjectStorageClient {
4296
4449
  let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
4297
4450
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
4298
4451
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadPartRequest.retryConfiguration, specRetryConfiguration);
4452
+ if (this.logger)
4453
+ retrier.logger = this.logger;
4299
4454
  const request = yield oci_common_2.composeRequest({
4300
4455
  baseEndpoint: endpoint,
4301
4456
  defaultHeaders: this._defaultHeaders,