oci-objectstorage 2.4.0 → 2.6.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.
- package/LICENSE.txt +6 -0
- package/lib/client.d.ts +273 -50
- package/lib/client.js +422 -102
- package/lib/client.js.map +1 -1
- package/lib/request/abort-multipart-upload-request.d.ts +1 -1
- package/lib/request/cancel-work-request-request.d.ts +1 -1
- package/lib/request/commit-multipart-upload-request.d.ts +1 -1
- package/lib/request/copy-object-request.d.ts +1 -1
- package/lib/request/create-bucket-request.d.ts +1 -1
- package/lib/request/create-multipart-upload-request.d.ts +1 -1
- package/lib/request/create-preauthenticated-request-request.d.ts +1 -1
- package/lib/request/create-replication-policy-request.d.ts +1 -1
- package/lib/request/create-retention-rule-request.d.ts +1 -1
- package/lib/request/delete-bucket-request.d.ts +1 -1
- package/lib/request/delete-object-lifecycle-policy-request.d.ts +1 -1
- package/lib/request/delete-object-request.d.ts +1 -1
- package/lib/request/delete-preauthenticated-request-request.d.ts +1 -1
- package/lib/request/delete-replication-policy-request.d.ts +1 -1
- package/lib/request/delete-retention-rule-request.d.ts +1 -1
- package/lib/request/get-bucket-request.d.ts +1 -1
- package/lib/request/get-namespace-metadata-request.d.ts +1 -1
- package/lib/request/get-namespace-request.d.ts +1 -1
- package/lib/request/get-object-lifecycle-policy-request.d.ts +1 -1
- package/lib/request/get-object-request.d.ts +1 -1
- package/lib/request/get-preauthenticated-request-request.d.ts +1 -1
- package/lib/request/get-replication-policy-request.d.ts +1 -1
- package/lib/request/get-retention-rule-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/head-bucket-request.d.ts +1 -1
- package/lib/request/head-object-request.d.ts +1 -1
- package/lib/request/list-buckets-request.d.ts +1 -1
- package/lib/request/list-multipart-upload-parts-request.d.ts +1 -1
- package/lib/request/list-multipart-uploads-request.d.ts +1 -1
- package/lib/request/list-object-versions-request.d.ts +1 -1
- package/lib/request/list-objects-request.d.ts +1 -1
- package/lib/request/list-preauthenticated-requests-request.d.ts +1 -1
- package/lib/request/list-replication-policies-request.d.ts +1 -1
- package/lib/request/list-replication-sources-request.d.ts +1 -1
- package/lib/request/list-retention-rules-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/make-bucket-writable-request.d.ts +1 -1
- package/lib/request/put-object-lifecycle-policy-request.d.ts +1 -1
- package/lib/request/put-object-request.d.ts +1 -1
- package/lib/request/reencrypt-bucket-request.d.ts +1 -1
- package/lib/request/reencrypt-object-request.d.ts +1 -1
- package/lib/request/rename-object-request.d.ts +1 -1
- package/lib/request/restore-objects-request.d.ts +1 -1
- package/lib/request/update-bucket-request.d.ts +1 -1
- package/lib/request/update-namespace-metadata-request.d.ts +1 -1
- package/lib/request/update-object-storage-tier-request.d.ts +1 -1
- package/lib/request/update-retention-rule-request.d.ts +1 -1
- package/lib/request/upload-part-request.d.ts +1 -1
- package/lib/upload-manager/node-fs-blob.js +2 -1
- package/lib/upload-manager/node-fs-blob.js.map +1 -1
- package/lib/upload-manager/upload-manager.js +52 -10
- package/lib/upload-manager/upload-manager.js.map +1 -1
- package/lib/upload-manager/upload-options.d.ts +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -55,6 +55,9 @@ const oci_common_2 = require("oci-common");
|
|
|
55
55
|
var ObjectStorageApiKeys;
|
|
56
56
|
(function (ObjectStorageApiKeys) {
|
|
57
57
|
})(ObjectStorageApiKeys = exports.ObjectStorageApiKeys || (exports.ObjectStorageApiKeys = {}));
|
|
58
|
+
/**
|
|
59
|
+
* This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
|
|
60
|
+
*/
|
|
58
61
|
class ObjectStorageClient {
|
|
59
62
|
constructor(params, clientConfiguration) {
|
|
60
63
|
this["_endpoint"] = "";
|
|
@@ -69,6 +72,13 @@ class ObjectStorageClient {
|
|
|
69
72
|
? clientConfiguration.circuitBreaker.circuit
|
|
70
73
|
: null;
|
|
71
74
|
}
|
|
75
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
76
|
+
const specCircuitBreakerEnabled = false;
|
|
77
|
+
if (!this._circuitBreaker &&
|
|
78
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
79
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
80
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
81
|
+
}
|
|
72
82
|
this._httpClient =
|
|
73
83
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
74
84
|
if (params.authenticationDetailsProvider &&
|
|
@@ -140,10 +150,11 @@ class ObjectStorageClient {
|
|
|
140
150
|
/**
|
|
141
151
|
* Aborts an in-progress multipart upload and deletes all parts that have been uploaded.
|
|
142
152
|
*
|
|
153
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
143
154
|
* @param AbortMultipartUploadRequest
|
|
144
155
|
* @return AbortMultipartUploadResponse
|
|
145
156
|
* @throws OciError when an error occurs
|
|
146
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
157
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/AbortMultipartUpload.ts.html |here} to see how to use AbortMultipartUpload API.
|
|
147
158
|
*/
|
|
148
159
|
abortMultipartUpload(abortMultipartUploadRequest) {
|
|
149
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -161,7 +172,8 @@ class ObjectStorageClient {
|
|
|
161
172
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
162
173
|
"opc-client-request-id": abortMultipartUploadRequest.opcClientRequestId
|
|
163
174
|
};
|
|
164
|
-
const
|
|
175
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
176
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, abortMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
|
|
165
177
|
if (this.logger)
|
|
166
178
|
retrier.logger = this.logger;
|
|
167
179
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -200,10 +212,11 @@ class ObjectStorageClient {
|
|
|
200
212
|
/**
|
|
201
213
|
* Cancels a work request.
|
|
202
214
|
*
|
|
215
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
203
216
|
* @param CancelWorkRequestRequest
|
|
204
217
|
* @return CancelWorkRequestResponse
|
|
205
218
|
* @throws OciError when an error occurs
|
|
206
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
219
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
207
220
|
*/
|
|
208
221
|
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
209
222
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -217,7 +230,8 @@ class ObjectStorageClient {
|
|
|
217
230
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
218
231
|
"opc-client-request-id": cancelWorkRequestRequest.opcClientRequestId
|
|
219
232
|
};
|
|
220
|
-
const
|
|
233
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
234
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
221
235
|
if (this.logger)
|
|
222
236
|
retrier.logger = this.logger;
|
|
223
237
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -256,10 +270,11 @@ class ObjectStorageClient {
|
|
|
256
270
|
/**
|
|
257
271
|
* Commits a multipart upload, which involves checking part numbers and entity tags (ETags) of the parts, to create an aggregate object.
|
|
258
272
|
*
|
|
273
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
259
274
|
* @param CommitMultipartUploadRequest
|
|
260
275
|
* @return CommitMultipartUploadResponse
|
|
261
276
|
* @throws OciError when an error occurs
|
|
262
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
277
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/CommitMultipartUpload.ts.html |here} to see how to use CommitMultipartUpload API.
|
|
263
278
|
*/
|
|
264
279
|
commitMultipartUpload(commitMultipartUploadRequest) {
|
|
265
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -279,7 +294,8 @@ class ObjectStorageClient {
|
|
|
279
294
|
"if-none-match": commitMultipartUploadRequest.ifNoneMatch,
|
|
280
295
|
"opc-client-request-id": commitMultipartUploadRequest.opcClientRequestId
|
|
281
296
|
};
|
|
282
|
-
const
|
|
297
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
298
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, commitMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
|
|
283
299
|
if (this.logger)
|
|
284
300
|
retrier.logger = this.logger;
|
|
285
301
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -339,10 +355,11 @@ class ObjectStorageClient {
|
|
|
339
355
|
/**
|
|
340
356
|
* Creates a request to copy an object within a region or to another region.
|
|
341
357
|
*
|
|
358
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
342
359
|
* @param CopyObjectRequest
|
|
343
360
|
* @return CopyObjectResponse
|
|
344
361
|
* @throws OciError when an error occurs
|
|
345
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
362
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/CopyObject.ts.html |here} to see how to use CopyObject API.
|
|
346
363
|
*/
|
|
347
364
|
copyObject(copyObjectRequest) {
|
|
348
365
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -364,7 +381,8 @@ class ObjectStorageClient {
|
|
|
364
381
|
"opc-source-sse-customer-key-sha256": copyObjectRequest.opcSourceSseCustomerKeySha256,
|
|
365
382
|
"opc-sse-kms-key-id": copyObjectRequest.opcSseKmsKeyId
|
|
366
383
|
};
|
|
367
|
-
const
|
|
384
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
385
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, copyObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
368
386
|
if (this.logger)
|
|
369
387
|
retrier.logger = this.logger;
|
|
370
388
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -410,10 +428,11 @@ class ObjectStorageClient {
|
|
|
410
428
|
* Creates a bucket in the given namespace with a bucket name and optional user-defined metadata. Avoid entering
|
|
411
429
|
* confidential information in bucket names.
|
|
412
430
|
*
|
|
431
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
413
432
|
* @param CreateBucketRequest
|
|
414
433
|
* @return CreateBucketResponse
|
|
415
434
|
* @throws OciError when an error occurs
|
|
416
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
435
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/CreateBucket.ts.html |here} to see how to use CreateBucket API.
|
|
417
436
|
*/
|
|
418
437
|
createBucket(createBucketRequest) {
|
|
419
438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -427,7 +446,8 @@ class ObjectStorageClient {
|
|
|
427
446
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
428
447
|
"opc-client-request-id": createBucketRequest.opcClientRequestId
|
|
429
448
|
};
|
|
430
|
-
const
|
|
449
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
450
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
431
451
|
if (this.logger)
|
|
432
452
|
retrier.logger = this.logger;
|
|
433
453
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -481,10 +501,11 @@ class ObjectStorageClient {
|
|
|
481
501
|
/**
|
|
482
502
|
* Starts a new multipart upload to a specific object in the given bucket in the given namespace.
|
|
483
503
|
*
|
|
504
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
484
505
|
* @param CreateMultipartUploadRequest
|
|
485
506
|
* @return CreateMultipartUploadResponse
|
|
486
507
|
* @throws OciError when an error occurs
|
|
487
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
508
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/CreateMultipartUpload.ts.html |here} to see how to use CreateMultipartUpload API.
|
|
488
509
|
*/
|
|
489
510
|
createMultipartUpload(createMultipartUploadRequest) {
|
|
490
511
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -505,7 +526,8 @@ class ObjectStorageClient {
|
|
|
505
526
|
"opc-sse-customer-key-sha256": createMultipartUploadRequest.opcSseCustomerKeySha256,
|
|
506
527
|
"opc-sse-kms-key-id": createMultipartUploadRequest.opcSseKmsKeyId
|
|
507
528
|
};
|
|
508
|
-
const
|
|
529
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
530
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
|
|
509
531
|
if (this.logger)
|
|
510
532
|
retrier.logger = this.logger;
|
|
511
533
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -554,10 +576,11 @@ class ObjectStorageClient {
|
|
|
554
576
|
/**
|
|
555
577
|
* Creates a pre-authenticated request specific to the bucket.
|
|
556
578
|
*
|
|
579
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
557
580
|
* @param CreatePreauthenticatedRequestRequest
|
|
558
581
|
* @return CreatePreauthenticatedRequestResponse
|
|
559
582
|
* @throws OciError when an error occurs
|
|
560
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
583
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/CreatePreauthenticatedRequest.ts.html |here} to see how to use CreatePreauthenticatedRequest API.
|
|
561
584
|
*/
|
|
562
585
|
createPreauthenticatedRequest(createPreauthenticatedRequestRequest) {
|
|
563
586
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -572,7 +595,8 @@ class ObjectStorageClient {
|
|
|
572
595
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
573
596
|
"opc-client-request-id": createPreauthenticatedRequestRequest.opcClientRequestId
|
|
574
597
|
};
|
|
575
|
-
const
|
|
598
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
599
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
576
600
|
if (this.logger)
|
|
577
601
|
retrier.logger = this.logger;
|
|
578
602
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -616,10 +640,11 @@ class ObjectStorageClient {
|
|
|
616
640
|
/**
|
|
617
641
|
* Creates a replication policy for the specified bucket.
|
|
618
642
|
*
|
|
643
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
619
644
|
* @param CreateReplicationPolicyRequest
|
|
620
645
|
* @return CreateReplicationPolicyResponse
|
|
621
646
|
* @throws OciError when an error occurs
|
|
622
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
647
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/CreateReplicationPolicy.ts.html |here} to see how to use CreateReplicationPolicy API.
|
|
623
648
|
*/
|
|
624
649
|
createReplicationPolicy(createReplicationPolicyRequest) {
|
|
625
650
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -634,7 +659,8 @@ class ObjectStorageClient {
|
|
|
634
659
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
635
660
|
"opc-client-request-id": createReplicationPolicyRequest.opcClientRequestId
|
|
636
661
|
};
|
|
637
|
-
const
|
|
662
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
663
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
638
664
|
if (this.logger)
|
|
639
665
|
retrier.logger = this.logger;
|
|
640
666
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -679,10 +705,11 @@ class ObjectStorageClient {
|
|
|
679
705
|
* Creates a new retention rule in the specified bucket. The new rule will take effect typically within 30 seconds.
|
|
680
706
|
* Note that a maximum of 100 rules are supported on a bucket.
|
|
681
707
|
*
|
|
708
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
682
709
|
* @param CreateRetentionRuleRequest
|
|
683
710
|
* @return CreateRetentionRuleResponse
|
|
684
711
|
* @throws OciError when an error occurs
|
|
685
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
712
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/CreateRetentionRule.ts.html |here} to see how to use CreateRetentionRule API.
|
|
686
713
|
*/
|
|
687
714
|
createRetentionRule(createRetentionRuleRequest) {
|
|
688
715
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -697,7 +724,8 @@ class ObjectStorageClient {
|
|
|
697
724
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
698
725
|
"opc-client-request-id": createRetentionRuleRequest.opcClientRequestId
|
|
699
726
|
};
|
|
700
|
-
const
|
|
727
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
728
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
701
729
|
if (this.logger)
|
|
702
730
|
retrier.logger = this.logger;
|
|
703
731
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -749,10 +777,11 @@ class ObjectStorageClient {
|
|
|
749
777
|
* you cannot delete a bucket that has a multipart upload in progress or a pre-authenticated
|
|
750
778
|
* request associated with that bucket.
|
|
751
779
|
*
|
|
780
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
752
781
|
* @param DeleteBucketRequest
|
|
753
782
|
* @return DeleteBucketResponse
|
|
754
783
|
* @throws OciError when an error occurs
|
|
755
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
784
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/DeleteBucket.ts.html |here} to see how to use DeleteBucket API.
|
|
756
785
|
*/
|
|
757
786
|
deleteBucket(deleteBucketRequest) {
|
|
758
787
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -768,7 +797,8 @@ class ObjectStorageClient {
|
|
|
768
797
|
"if-match": deleteBucketRequest.ifMatch,
|
|
769
798
|
"opc-client-request-id": deleteBucketRequest.opcClientRequestId
|
|
770
799
|
};
|
|
771
|
-
const
|
|
800
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
801
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
772
802
|
if (this.logger)
|
|
773
803
|
retrier.logger = this.logger;
|
|
774
804
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -807,10 +837,11 @@ class ObjectStorageClient {
|
|
|
807
837
|
/**
|
|
808
838
|
* Deletes an object.
|
|
809
839
|
*
|
|
840
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
810
841
|
* @param DeleteObjectRequest
|
|
811
842
|
* @return DeleteObjectResponse
|
|
812
843
|
* @throws OciError when an error occurs
|
|
813
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
844
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/DeleteObject.ts.html |here} to see how to use DeleteObject API.
|
|
814
845
|
*/
|
|
815
846
|
deleteObject(deleteObjectRequest) {
|
|
816
847
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -829,7 +860,8 @@ class ObjectStorageClient {
|
|
|
829
860
|
"if-match": deleteObjectRequest.ifMatch,
|
|
830
861
|
"opc-client-request-id": deleteObjectRequest.opcClientRequestId
|
|
831
862
|
};
|
|
832
|
-
const
|
|
863
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
864
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
833
865
|
if (this.logger)
|
|
834
866
|
retrier.logger = this.logger;
|
|
835
867
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -883,10 +915,11 @@ class ObjectStorageClient {
|
|
|
883
915
|
/**
|
|
884
916
|
* Deletes the object lifecycle policy for the bucket.
|
|
885
917
|
*
|
|
918
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
886
919
|
* @param DeleteObjectLifecyclePolicyRequest
|
|
887
920
|
* @return DeleteObjectLifecyclePolicyResponse
|
|
888
921
|
* @throws OciError when an error occurs
|
|
889
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
922
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/DeleteObjectLifecyclePolicy.ts.html |here} to see how to use DeleteObjectLifecyclePolicy API.
|
|
890
923
|
*/
|
|
891
924
|
deleteObjectLifecyclePolicy(deleteObjectLifecyclePolicyRequest) {
|
|
892
925
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -902,7 +935,8 @@ class ObjectStorageClient {
|
|
|
902
935
|
"opc-client-request-id": deleteObjectLifecyclePolicyRequest.opcClientRequestId,
|
|
903
936
|
"if-match": deleteObjectLifecyclePolicyRequest.ifMatch
|
|
904
937
|
};
|
|
905
|
-
const
|
|
938
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
939
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
906
940
|
if (this.logger)
|
|
907
941
|
retrier.logger = this.logger;
|
|
908
942
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -940,10 +974,11 @@ class ObjectStorageClient {
|
|
|
940
974
|
}
|
|
941
975
|
/**
|
|
942
976
|
* Deletes the pre-authenticated request for the bucket.
|
|
977
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
943
978
|
* @param DeletePreauthenticatedRequestRequest
|
|
944
979
|
* @return DeletePreauthenticatedRequestResponse
|
|
945
980
|
* @throws OciError when an error occurs
|
|
946
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
981
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/DeletePreauthenticatedRequest.ts.html |here} to see how to use DeletePreauthenticatedRequest API.
|
|
947
982
|
*/
|
|
948
983
|
deletePreauthenticatedRequest(deletePreauthenticatedRequestRequest) {
|
|
949
984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -959,7 +994,8 @@ class ObjectStorageClient {
|
|
|
959
994
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
960
995
|
"opc-client-request-id": deletePreauthenticatedRequestRequest.opcClientRequestId
|
|
961
996
|
};
|
|
962
|
-
const
|
|
997
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
998
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
963
999
|
if (this.logger)
|
|
964
1000
|
retrier.logger = this.logger;
|
|
965
1001
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -998,10 +1034,11 @@ class ObjectStorageClient {
|
|
|
998
1034
|
/**
|
|
999
1035
|
* Deletes the replication policy associated with the source bucket.
|
|
1000
1036
|
*
|
|
1037
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1001
1038
|
* @param DeleteReplicationPolicyRequest
|
|
1002
1039
|
* @return DeleteReplicationPolicyResponse
|
|
1003
1040
|
* @throws OciError when an error occurs
|
|
1004
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1041
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/DeleteReplicationPolicy.ts.html |here} to see how to use DeleteReplicationPolicy API.
|
|
1005
1042
|
*/
|
|
1006
1043
|
deleteReplicationPolicy(deleteReplicationPolicyRequest) {
|
|
1007
1044
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1017,7 +1054,8 @@ class ObjectStorageClient {
|
|
|
1017
1054
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1018
1055
|
"opc-client-request-id": deleteReplicationPolicyRequest.opcClientRequestId
|
|
1019
1056
|
};
|
|
1020
|
-
const
|
|
1057
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1058
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1021
1059
|
if (this.logger)
|
|
1022
1060
|
retrier.logger = this.logger;
|
|
1023
1061
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1055,10 +1093,11 @@ class ObjectStorageClient {
|
|
|
1055
1093
|
}
|
|
1056
1094
|
/**
|
|
1057
1095
|
* Deletes the specified rule. The deletion takes effect typically within 30 seconds.
|
|
1096
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1058
1097
|
* @param DeleteRetentionRuleRequest
|
|
1059
1098
|
* @return DeleteRetentionRuleResponse
|
|
1060
1099
|
* @throws OciError when an error occurs
|
|
1061
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1100
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/DeleteRetentionRule.ts.html |here} to see how to use DeleteRetentionRule API.
|
|
1062
1101
|
*/
|
|
1063
1102
|
deleteRetentionRule(deleteRetentionRuleRequest) {
|
|
1064
1103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1075,7 +1114,8 @@ class ObjectStorageClient {
|
|
|
1075
1114
|
"if-match": deleteRetentionRuleRequest.ifMatch,
|
|
1076
1115
|
"opc-client-request-id": deleteRetentionRuleRequest.opcClientRequestId
|
|
1077
1116
|
};
|
|
1078
|
-
const
|
|
1117
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1118
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
1079
1119
|
if (this.logger)
|
|
1080
1120
|
retrier.logger = this.logger;
|
|
1081
1121
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1114,10 +1154,11 @@ class ObjectStorageClient {
|
|
|
1114
1154
|
/**
|
|
1115
1155
|
* Gets the current representation of the given bucket in the given Object Storage namespace.
|
|
1116
1156
|
*
|
|
1157
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1117
1158
|
* @param GetBucketRequest
|
|
1118
1159
|
* @return GetBucketResponse
|
|
1119
1160
|
* @throws OciError when an error occurs
|
|
1120
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1161
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/GetBucket.ts.html |here} to see how to use GetBucket API.
|
|
1121
1162
|
*/
|
|
1122
1163
|
getBucket(getBucketRequest) {
|
|
1123
1164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1136,7 +1177,8 @@ class ObjectStorageClient {
|
|
|
1136
1177
|
"if-none-match": getBucketRequest.ifNoneMatch,
|
|
1137
1178
|
"opc-client-request-id": getBucketRequest.opcClientRequestId
|
|
1138
1179
|
};
|
|
1139
|
-
const
|
|
1180
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1181
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
1140
1182
|
if (this.logger)
|
|
1141
1183
|
retrier.logger = this.logger;
|
|
1142
1184
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1190,10 +1232,11 @@ class ObjectStorageClient {
|
|
|
1190
1232
|
* If an optional compartmentId query parameter is provided, GetNamespace returns the namespace name of the corresponding
|
|
1191
1233
|
* tenancy, provided the user has access to it.
|
|
1192
1234
|
*
|
|
1235
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1193
1236
|
* @param GetNamespaceRequest
|
|
1194
1237
|
* @return GetNamespaceResponse
|
|
1195
1238
|
* @throws OciError when an error occurs
|
|
1196
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1239
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/GetNamespace.ts.html |here} to see how to use GetNamespace API.
|
|
1197
1240
|
*/
|
|
1198
1241
|
getNamespace(getNamespaceRequest) {
|
|
1199
1242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1207,7 +1250,8 @@ class ObjectStorageClient {
|
|
|
1207
1250
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1208
1251
|
"opc-client-request-id": getNamespaceRequest.opcClientRequestId
|
|
1209
1252
|
};
|
|
1210
|
-
const
|
|
1253
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1254
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamespaceRequest.retryConfiguration, specRetryConfiguration);
|
|
1211
1255
|
if (this.logger)
|
|
1212
1256
|
retrier.logger = this.logger;
|
|
1213
1257
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1245,10 +1289,11 @@ class ObjectStorageClient {
|
|
|
1245
1289
|
* to give users access, see
|
|
1246
1290
|
* [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
1247
1291
|
*
|
|
1292
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1248
1293
|
* @param GetNamespaceMetadataRequest
|
|
1249
1294
|
* @return GetNamespaceMetadataResponse
|
|
1250
1295
|
* @throws OciError when an error occurs
|
|
1251
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1296
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/GetNamespaceMetadata.ts.html |here} to see how to use GetNamespaceMetadata API.
|
|
1252
1297
|
*/
|
|
1253
1298
|
getNamespaceMetadata(getNamespaceMetadataRequest) {
|
|
1254
1299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1262,7 +1307,8 @@ class ObjectStorageClient {
|
|
|
1262
1307
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1263
1308
|
"opc-client-request-id": getNamespaceMetadataRequest.opcClientRequestId
|
|
1264
1309
|
};
|
|
1265
|
-
const
|
|
1310
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1311
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamespaceMetadataRequest.retryConfiguration, specRetryConfiguration);
|
|
1266
1312
|
if (this.logger)
|
|
1267
1313
|
retrier.logger = this.logger;
|
|
1268
1314
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1305,10 +1351,11 @@ class ObjectStorageClient {
|
|
|
1305
1351
|
/**
|
|
1306
1352
|
* Gets the metadata and body of an object.
|
|
1307
1353
|
*
|
|
1354
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1308
1355
|
* @param GetObjectRequest
|
|
1309
1356
|
* @return GetObjectResponse
|
|
1310
1357
|
* @throws OciError when an error occurs
|
|
1311
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1358
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/GetObject.ts.html |here} to see how to use GetObject API.
|
|
1312
1359
|
*/
|
|
1313
1360
|
getObject(getObjectRequest) {
|
|
1314
1361
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1338,7 +1385,8 @@ class ObjectStorageClient {
|
|
|
1338
1385
|
"opc-sse-customer-key": getObjectRequest.opcSseCustomerKey,
|
|
1339
1386
|
"opc-sse-customer-key-sha256": getObjectRequest.opcSseCustomerKeySha256
|
|
1340
1387
|
};
|
|
1341
|
-
const
|
|
1388
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1389
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1342
1390
|
if (this.logger)
|
|
1343
1391
|
retrier.logger = this.logger;
|
|
1344
1392
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1454,7 +1502,7 @@ class ObjectStorageClient {
|
|
|
1454
1502
|
const pattern = "opc-meta-";
|
|
1455
1503
|
response.headers.forEach((v, k) => {
|
|
1456
1504
|
if (k.startsWith(pattern)) {
|
|
1457
|
-
Object.assign(opcMeta, { k: v });
|
|
1505
|
+
Object.assign(opcMeta, { [k]: v });
|
|
1458
1506
|
}
|
|
1459
1507
|
});
|
|
1460
1508
|
sdkResponse.opcMeta = opcMeta;
|
|
@@ -1468,10 +1516,11 @@ class ObjectStorageClient {
|
|
|
1468
1516
|
/**
|
|
1469
1517
|
* Gets the object lifecycle policy for the bucket.
|
|
1470
1518
|
*
|
|
1519
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1471
1520
|
* @param GetObjectLifecyclePolicyRequest
|
|
1472
1521
|
* @return GetObjectLifecyclePolicyResponse
|
|
1473
1522
|
* @throws OciError when an error occurs
|
|
1474
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1523
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/GetObjectLifecyclePolicy.ts.html |here} to see how to use GetObjectLifecyclePolicy API.
|
|
1475
1524
|
*/
|
|
1476
1525
|
getObjectLifecyclePolicy(getObjectLifecyclePolicyRequest) {
|
|
1477
1526
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1486,7 +1535,8 @@ class ObjectStorageClient {
|
|
|
1486
1535
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1487
1536
|
"opc-client-request-id": getObjectLifecyclePolicyRequest.opcClientRequestId
|
|
1488
1537
|
};
|
|
1489
|
-
const
|
|
1538
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1539
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1490
1540
|
if (this.logger)
|
|
1491
1541
|
retrier.logger = this.logger;
|
|
1492
1542
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1533,10 +1583,11 @@ class ObjectStorageClient {
|
|
|
1533
1583
|
}
|
|
1534
1584
|
/**
|
|
1535
1585
|
* Gets the pre-authenticated request for the bucket.
|
|
1586
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1536
1587
|
* @param GetPreauthenticatedRequestRequest
|
|
1537
1588
|
* @return GetPreauthenticatedRequestResponse
|
|
1538
1589
|
* @throws OciError when an error occurs
|
|
1539
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1590
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/GetPreauthenticatedRequest.ts.html |here} to see how to use GetPreauthenticatedRequest API.
|
|
1540
1591
|
*/
|
|
1541
1592
|
getPreauthenticatedRequest(getPreauthenticatedRequestRequest) {
|
|
1542
1593
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1552,7 +1603,8 @@ class ObjectStorageClient {
|
|
|
1552
1603
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1553
1604
|
"opc-client-request-id": getPreauthenticatedRequestRequest.opcClientRequestId
|
|
1554
1605
|
};
|
|
1555
|
-
const
|
|
1606
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1607
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1556
1608
|
if (this.logger)
|
|
1557
1609
|
retrier.logger = this.logger;
|
|
1558
1610
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1595,10 +1647,11 @@ class ObjectStorageClient {
|
|
|
1595
1647
|
/**
|
|
1596
1648
|
* Get the replication policy.
|
|
1597
1649
|
*
|
|
1650
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1598
1651
|
* @param GetReplicationPolicyRequest
|
|
1599
1652
|
* @return GetReplicationPolicyResponse
|
|
1600
1653
|
* @throws OciError when an error occurs
|
|
1601
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1654
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/GetReplicationPolicy.ts.html |here} to see how to use GetReplicationPolicy API.
|
|
1602
1655
|
*/
|
|
1603
1656
|
getReplicationPolicy(getReplicationPolicyRequest) {
|
|
1604
1657
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1614,7 +1667,8 @@ class ObjectStorageClient {
|
|
|
1614
1667
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1615
1668
|
"opc-client-request-id": getReplicationPolicyRequest.opcClientRequestId
|
|
1616
1669
|
};
|
|
1617
|
-
const
|
|
1670
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1671
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1618
1672
|
if (this.logger)
|
|
1619
1673
|
retrier.logger = this.logger;
|
|
1620
1674
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1656,10 +1710,11 @@ class ObjectStorageClient {
|
|
|
1656
1710
|
}
|
|
1657
1711
|
/**
|
|
1658
1712
|
* Get the specified retention rule.
|
|
1713
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1659
1714
|
* @param GetRetentionRuleRequest
|
|
1660
1715
|
* @return GetRetentionRuleResponse
|
|
1661
1716
|
* @throws OciError when an error occurs
|
|
1662
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1717
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/GetRetentionRule.ts.html |here} to see how to use GetRetentionRule API.
|
|
1663
1718
|
*/
|
|
1664
1719
|
getRetentionRule(getRetentionRuleRequest) {
|
|
1665
1720
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1675,7 +1730,8 @@ class ObjectStorageClient {
|
|
|
1675
1730
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1676
1731
|
"opc-client-request-id": getRetentionRuleRequest.opcClientRequestId
|
|
1677
1732
|
};
|
|
1678
|
-
const
|
|
1733
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1734
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
1679
1735
|
if (this.logger)
|
|
1680
1736
|
retrier.logger = this.logger;
|
|
1681
1737
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1727,10 +1783,11 @@ class ObjectStorageClient {
|
|
|
1727
1783
|
}
|
|
1728
1784
|
/**
|
|
1729
1785
|
* Gets the status of the work request for the given ID.
|
|
1786
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1730
1787
|
* @param GetWorkRequestRequest
|
|
1731
1788
|
* @return GetWorkRequestResponse
|
|
1732
1789
|
* @throws OciError when an error occurs
|
|
1733
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1790
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1734
1791
|
*/
|
|
1735
1792
|
getWorkRequest(getWorkRequestRequest) {
|
|
1736
1793
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1744,7 +1801,8 @@ class ObjectStorageClient {
|
|
|
1744
1801
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1745
1802
|
"opc-client-request-id": getWorkRequestRequest.opcClientRequestId
|
|
1746
1803
|
};
|
|
1747
|
-
const
|
|
1804
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1805
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1748
1806
|
if (this.logger)
|
|
1749
1807
|
retrier.logger = this.logger;
|
|
1750
1808
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1792,10 +1850,11 @@ class ObjectStorageClient {
|
|
|
1792
1850
|
/**
|
|
1793
1851
|
* Efficiently checks to see if a bucket exists and gets the current entity tag (ETag) for the bucket.
|
|
1794
1852
|
*
|
|
1853
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1795
1854
|
* @param HeadBucketRequest
|
|
1796
1855
|
* @return HeadBucketResponse
|
|
1797
1856
|
* @throws OciError when an error occurs
|
|
1798
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1857
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/HeadBucket.ts.html |here} to see how to use HeadBucket API.
|
|
1799
1858
|
*/
|
|
1800
1859
|
headBucket(headBucketRequest) {
|
|
1801
1860
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1812,7 +1871,8 @@ class ObjectStorageClient {
|
|
|
1812
1871
|
"if-none-match": headBucketRequest.ifNoneMatch,
|
|
1813
1872
|
"opc-client-request-id": headBucketRequest.opcClientRequestId
|
|
1814
1873
|
};
|
|
1815
|
-
const
|
|
1874
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1875
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
1816
1876
|
if (this.logger)
|
|
1817
1877
|
retrier.logger = this.logger;
|
|
1818
1878
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1856,10 +1916,11 @@ class ObjectStorageClient {
|
|
|
1856
1916
|
/**
|
|
1857
1917
|
* Gets the user-defined metadata and entity tag (ETag) for an object.
|
|
1858
1918
|
*
|
|
1919
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1859
1920
|
* @param HeadObjectRequest
|
|
1860
1921
|
* @return HeadObjectResponse
|
|
1861
1922
|
* @throws OciError when an error occurs
|
|
1862
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1923
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/HeadObject.ts.html |here} to see how to use HeadObject API.
|
|
1863
1924
|
*/
|
|
1864
1925
|
headObject(headObjectRequest) {
|
|
1865
1926
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1882,7 +1943,8 @@ class ObjectStorageClient {
|
|
|
1882
1943
|
"opc-sse-customer-key": headObjectRequest.opcSseCustomerKey,
|
|
1883
1944
|
"opc-sse-customer-key-sha256": headObjectRequest.opcSseCustomerKeySha256
|
|
1884
1945
|
};
|
|
1885
|
-
const
|
|
1946
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1947
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1886
1948
|
if (this.logger)
|
|
1887
1949
|
retrier.logger = this.logger;
|
|
1888
1950
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1985,7 +2047,7 @@ class ObjectStorageClient {
|
|
|
1985
2047
|
const pattern = "opc-meta-";
|
|
1986
2048
|
response.headers.forEach((v, k) => {
|
|
1987
2049
|
if (k.startsWith(pattern)) {
|
|
1988
|
-
Object.assign(opcMeta, { k: v });
|
|
2050
|
+
Object.assign(opcMeta, { [k]: v });
|
|
1989
2051
|
}
|
|
1990
2052
|
});
|
|
1991
2053
|
sdkResponse.opcMeta = opcMeta;
|
|
@@ -2007,10 +2069,11 @@ class ObjectStorageClient {
|
|
|
2007
2069
|
* talk to an administrator. If you are an administrator who needs to write policies to give users access, see
|
|
2008
2070
|
* [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
2009
2071
|
*
|
|
2072
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2010
2073
|
* @param ListBucketsRequest
|
|
2011
2074
|
* @return ListBucketsResponse
|
|
2012
2075
|
* @throws OciError when an error occurs
|
|
2013
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2076
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListBuckets.ts.html |here} to see how to use ListBuckets API.
|
|
2014
2077
|
*/
|
|
2015
2078
|
listBuckets(listBucketsRequest) {
|
|
2016
2079
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2029,7 +2092,8 @@ class ObjectStorageClient {
|
|
|
2029
2092
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2030
2093
|
"opc-client-request-id": listBucketsRequest.opcClientRequestId
|
|
2031
2094
|
};
|
|
2032
|
-
const
|
|
2095
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2096
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBucketsRequest.retryConfiguration, specRetryConfiguration);
|
|
2033
2097
|
if (this.logger)
|
|
2034
2098
|
retrier.logger = this.logger;
|
|
2035
2099
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2075,6 +2139,7 @@ class ObjectStorageClient {
|
|
|
2075
2139
|
});
|
|
2076
2140
|
}
|
|
2077
2141
|
/**
|
|
2142
|
+
* NOTE: This function is deprecated in favor of listBucketsRecordIterator function.
|
|
2078
2143
|
* Creates a new async iterator which will iterate over the models.BucketSummary objects
|
|
2079
2144
|
* contained in responses from the listBuckets operation. This iterator will fetch more data from the
|
|
2080
2145
|
* server as needed.
|
|
@@ -2085,6 +2150,7 @@ class ObjectStorageClient {
|
|
|
2085
2150
|
return oci_common_1.paginateRecords(request, req => this.listBuckets(req));
|
|
2086
2151
|
}
|
|
2087
2152
|
/**
|
|
2153
|
+
* NOTE: This function is deprecated in favor of listBucketsResponseIterator function.
|
|
2088
2154
|
* Creates a new async iterator which will iterate over the responses received from the listBuckets operation. This iterator
|
|
2089
2155
|
* will fetch more data from the server as needed.
|
|
2090
2156
|
*
|
|
@@ -2093,13 +2159,33 @@ class ObjectStorageClient {
|
|
|
2093
2159
|
listAllBucketsResponses(request) {
|
|
2094
2160
|
return oci_common_1.paginateResponses(request, req => this.listBuckets(req));
|
|
2095
2161
|
}
|
|
2162
|
+
/**
|
|
2163
|
+
* Creates a new async iterator which will iterate over the models.BucketSummary objects
|
|
2164
|
+
* contained in responses from the listBuckets operation. This iterator will fetch more data from the
|
|
2165
|
+
* server as needed.
|
|
2166
|
+
*
|
|
2167
|
+
* @param request a request which can be sent to the service operation
|
|
2168
|
+
*/
|
|
2169
|
+
listBucketsRecordIterator(request) {
|
|
2170
|
+
return oci_common_1.paginateRecords(request, req => this.listBuckets(req));
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
* Creates a new async iterator which will iterate over the responses received from the listBuckets operation. This iterator
|
|
2174
|
+
* will fetch more data from the server as needed.
|
|
2175
|
+
*
|
|
2176
|
+
* @param request a request which can be sent to the service operation
|
|
2177
|
+
*/
|
|
2178
|
+
listBucketsResponseIterator(request) {
|
|
2179
|
+
return oci_common_1.paginateResponses(request, req => this.listBuckets(req));
|
|
2180
|
+
}
|
|
2096
2181
|
/**
|
|
2097
2182
|
* Lists the parts of an in-progress multipart upload.
|
|
2098
2183
|
*
|
|
2184
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2099
2185
|
* @param ListMultipartUploadPartsRequest
|
|
2100
2186
|
* @return ListMultipartUploadPartsResponse
|
|
2101
2187
|
* @throws OciError when an error occurs
|
|
2102
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2188
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListMultipartUploadParts.ts.html |here} to see how to use ListMultipartUploadParts API.
|
|
2103
2189
|
*/
|
|
2104
2190
|
listMultipartUploadParts(listMultipartUploadPartsRequest) {
|
|
2105
2191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2119,7 +2205,8 @@ class ObjectStorageClient {
|
|
|
2119
2205
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2120
2206
|
"opc-client-request-id": listMultipartUploadPartsRequest.opcClientRequestId
|
|
2121
2207
|
};
|
|
2122
|
-
const
|
|
2208
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2209
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMultipartUploadPartsRequest.retryConfiguration, specRetryConfiguration);
|
|
2123
2210
|
if (this.logger)
|
|
2124
2211
|
retrier.logger = this.logger;
|
|
2125
2212
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2165,6 +2252,7 @@ class ObjectStorageClient {
|
|
|
2165
2252
|
});
|
|
2166
2253
|
}
|
|
2167
2254
|
/**
|
|
2255
|
+
* NOTE: This function is deprecated in favor of listMultipartUploadPartsRecordIterator function.
|
|
2168
2256
|
* Creates a new async iterator which will iterate over the models.MultipartUploadPartSummary objects
|
|
2169
2257
|
* contained in responses from the listMultipartUploadParts operation. This iterator will fetch more data from the
|
|
2170
2258
|
* server as needed.
|
|
@@ -2175,6 +2263,7 @@ class ObjectStorageClient {
|
|
|
2175
2263
|
return oci_common_1.paginateRecords(request, req => this.listMultipartUploadParts(req));
|
|
2176
2264
|
}
|
|
2177
2265
|
/**
|
|
2266
|
+
* NOTE: This function is deprecated in favor of listMultipartUploadPartsResponseIterator function.
|
|
2178
2267
|
* Creates a new async iterator which will iterate over the responses received from the listMultipartUploadParts operation. This iterator
|
|
2179
2268
|
* will fetch more data from the server as needed.
|
|
2180
2269
|
*
|
|
@@ -2183,13 +2272,33 @@ class ObjectStorageClient {
|
|
|
2183
2272
|
listAllMultipartUploadPartsResponses(request) {
|
|
2184
2273
|
return oci_common_1.paginateResponses(request, req => this.listMultipartUploadParts(req));
|
|
2185
2274
|
}
|
|
2275
|
+
/**
|
|
2276
|
+
* Creates a new async iterator which will iterate over the models.MultipartUploadPartSummary objects
|
|
2277
|
+
* contained in responses from the listMultipartUploadParts operation. This iterator will fetch more data from the
|
|
2278
|
+
* server as needed.
|
|
2279
|
+
*
|
|
2280
|
+
* @param request a request which can be sent to the service operation
|
|
2281
|
+
*/
|
|
2282
|
+
listMultipartUploadPartsRecordIterator(request) {
|
|
2283
|
+
return oci_common_1.paginateRecords(request, req => this.listMultipartUploadParts(req));
|
|
2284
|
+
}
|
|
2285
|
+
/**
|
|
2286
|
+
* Creates a new async iterator which will iterate over the responses received from the listMultipartUploadParts operation. This iterator
|
|
2287
|
+
* will fetch more data from the server as needed.
|
|
2288
|
+
*
|
|
2289
|
+
* @param request a request which can be sent to the service operation
|
|
2290
|
+
*/
|
|
2291
|
+
listMultipartUploadPartsResponseIterator(request) {
|
|
2292
|
+
return oci_common_1.paginateResponses(request, req => this.listMultipartUploadParts(req));
|
|
2293
|
+
}
|
|
2186
2294
|
/**
|
|
2187
2295
|
* Lists all of the in-progress multipart uploads for the given bucket in the given Object Storage namespace.
|
|
2188
2296
|
*
|
|
2297
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2189
2298
|
* @param ListMultipartUploadsRequest
|
|
2190
2299
|
* @return ListMultipartUploadsResponse
|
|
2191
2300
|
* @throws OciError when an error occurs
|
|
2192
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2301
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListMultipartUploads.ts.html |here} to see how to use ListMultipartUploads API.
|
|
2193
2302
|
*/
|
|
2194
2303
|
listMultipartUploads(listMultipartUploadsRequest) {
|
|
2195
2304
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2207,7 +2316,8 @@ class ObjectStorageClient {
|
|
|
2207
2316
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2208
2317
|
"opc-client-request-id": listMultipartUploadsRequest.opcClientRequestId
|
|
2209
2318
|
};
|
|
2210
|
-
const
|
|
2319
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2320
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMultipartUploadsRequest.retryConfiguration, specRetryConfiguration);
|
|
2211
2321
|
if (this.logger)
|
|
2212
2322
|
retrier.logger = this.logger;
|
|
2213
2323
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2253,6 +2363,7 @@ class ObjectStorageClient {
|
|
|
2253
2363
|
});
|
|
2254
2364
|
}
|
|
2255
2365
|
/**
|
|
2366
|
+
* NOTE: This function is deprecated in favor of listMultipartUploadsRecordIterator function.
|
|
2256
2367
|
* Creates a new async iterator which will iterate over the models.MultipartUpload objects
|
|
2257
2368
|
* contained in responses from the listMultipartUploads operation. This iterator will fetch more data from the
|
|
2258
2369
|
* server as needed.
|
|
@@ -2263,6 +2374,7 @@ class ObjectStorageClient {
|
|
|
2263
2374
|
return oci_common_1.paginateRecords(request, req => this.listMultipartUploads(req));
|
|
2264
2375
|
}
|
|
2265
2376
|
/**
|
|
2377
|
+
* NOTE: This function is deprecated in favor of listMultipartUploadsResponseIterator function.
|
|
2266
2378
|
* Creates a new async iterator which will iterate over the responses received from the listMultipartUploads operation. This iterator
|
|
2267
2379
|
* will fetch more data from the server as needed.
|
|
2268
2380
|
*
|
|
@@ -2271,6 +2383,25 @@ class ObjectStorageClient {
|
|
|
2271
2383
|
listAllMultipartUploadsResponses(request) {
|
|
2272
2384
|
return oci_common_1.paginateResponses(request, req => this.listMultipartUploads(req));
|
|
2273
2385
|
}
|
|
2386
|
+
/**
|
|
2387
|
+
* Creates a new async iterator which will iterate over the models.MultipartUpload objects
|
|
2388
|
+
* contained in responses from the listMultipartUploads operation. This iterator will fetch more data from the
|
|
2389
|
+
* server as needed.
|
|
2390
|
+
*
|
|
2391
|
+
* @param request a request which can be sent to the service operation
|
|
2392
|
+
*/
|
|
2393
|
+
listMultipartUploadsRecordIterator(request) {
|
|
2394
|
+
return oci_common_1.paginateRecords(request, req => this.listMultipartUploads(req));
|
|
2395
|
+
}
|
|
2396
|
+
/**
|
|
2397
|
+
* Creates a new async iterator which will iterate over the responses received from the listMultipartUploads operation. This iterator
|
|
2398
|
+
* will fetch more data from the server as needed.
|
|
2399
|
+
*
|
|
2400
|
+
* @param request a request which can be sent to the service operation
|
|
2401
|
+
*/
|
|
2402
|
+
listMultipartUploadsResponseIterator(request) {
|
|
2403
|
+
return oci_common_1.paginateResponses(request, req => this.listMultipartUploads(req));
|
|
2404
|
+
}
|
|
2274
2405
|
/**
|
|
2275
2406
|
* Lists the object versions in a bucket.
|
|
2276
2407
|
* <p>
|
|
@@ -2281,10 +2412,11 @@ class ObjectStorageClient {
|
|
|
2281
2412
|
* talk to an administrator. If you are an administrator who needs to write policies to give users access, see
|
|
2282
2413
|
* [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
2283
2414
|
*
|
|
2415
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2284
2416
|
* @param ListObjectVersionsRequest
|
|
2285
2417
|
* @return ListObjectVersionsResponse
|
|
2286
2418
|
* @throws OciError when an error occurs
|
|
2287
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2419
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListObjectVersions.ts.html |here} to see how to use ListObjectVersions API.
|
|
2288
2420
|
*/
|
|
2289
2421
|
listObjectVersions(listObjectVersionsRequest) {
|
|
2290
2422
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2308,7 +2440,8 @@ class ObjectStorageClient {
|
|
|
2308
2440
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2309
2441
|
"opc-client-request-id": listObjectVersionsRequest.opcClientRequestId
|
|
2310
2442
|
};
|
|
2311
|
-
const
|
|
2443
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2444
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listObjectVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
2312
2445
|
if (this.logger)
|
|
2313
2446
|
retrier.logger = this.logger;
|
|
2314
2447
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2365,10 +2498,11 @@ class ObjectStorageClient {
|
|
|
2365
2498
|
* talk to an administrator. If you are an administrator who needs to write policies to give users access, see
|
|
2366
2499
|
* [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
2367
2500
|
*
|
|
2501
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2368
2502
|
* @param ListObjectsRequest
|
|
2369
2503
|
* @return ListObjectsResponse
|
|
2370
2504
|
* @throws OciError when an error occurs
|
|
2371
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2505
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListObjects.ts.html |here} to see how to use ListObjects API.
|
|
2372
2506
|
*/
|
|
2373
2507
|
listObjects(listObjectsRequest) {
|
|
2374
2508
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2391,7 +2525,8 @@ class ObjectStorageClient {
|
|
|
2391
2525
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2392
2526
|
"opc-client-request-id": listObjectsRequest.opcClientRequestId
|
|
2393
2527
|
};
|
|
2394
|
-
const
|
|
2528
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2529
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listObjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
2395
2530
|
if (this.logger)
|
|
2396
2531
|
retrier.logger = this.logger;
|
|
2397
2532
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2432,6 +2567,7 @@ class ObjectStorageClient {
|
|
|
2432
2567
|
});
|
|
2433
2568
|
}
|
|
2434
2569
|
/**
|
|
2570
|
+
* NOTE: This function is deprecated in favor of listObjectsRecordIterator function.
|
|
2435
2571
|
* Creates a new async iterator which will iterate over the models.ObjectSummary objects
|
|
2436
2572
|
* contained in responses from the listObjects operation. This iterator will fetch more data from the
|
|
2437
2573
|
* server as needed.
|
|
@@ -2442,6 +2578,7 @@ class ObjectStorageClient {
|
|
|
2442
2578
|
return oci_common_1.genericPaginateRecords(request, req => this.listObjects(req), res => res.listObjects.nextStartWith, (req, nextPageToken) => (req.start = nextPageToken), res => res.listObjects.objects);
|
|
2443
2579
|
}
|
|
2444
2580
|
/**
|
|
2581
|
+
* NOTE: This function is deprecated in favor of listObjectsResponseIterator function.
|
|
2445
2582
|
* Creates a new async iterator which will iterate over the responses received from the listObjects operation. This iterator
|
|
2446
2583
|
* will fetch more data from the server as needed.
|
|
2447
2584
|
*
|
|
@@ -2450,13 +2587,33 @@ class ObjectStorageClient {
|
|
|
2450
2587
|
listAllObjectsResponses(request) {
|
|
2451
2588
|
return oci_common_1.genericPaginateResponses(request, req => this.listObjects(req), res => res.listObjects.nextStartWith, (req, nextPageToken) => (req.start = nextPageToken));
|
|
2452
2589
|
}
|
|
2590
|
+
/**
|
|
2591
|
+
* Creates a new async iterator which will iterate over the models.ObjectSummary objects
|
|
2592
|
+
* contained in responses from the listObjects operation. This iterator will fetch more data from the
|
|
2593
|
+
* server as needed.
|
|
2594
|
+
*
|
|
2595
|
+
* @param request a request which can be sent to the service operation
|
|
2596
|
+
*/
|
|
2597
|
+
listObjectsRecordIterator(request) {
|
|
2598
|
+
return oci_common_1.genericPaginateRecords(request, req => this.listObjects(req), res => res.listObjects.nextStartWith, (req, nextPageToken) => (req.start = nextPageToken), res => res.listObjects.objects);
|
|
2599
|
+
}
|
|
2600
|
+
/**
|
|
2601
|
+
* Creates a new async iterator which will iterate over the responses received from the listObjects operation. This iterator
|
|
2602
|
+
* will fetch more data from the server as needed.
|
|
2603
|
+
*
|
|
2604
|
+
* @param request a request which can be sent to the service operation
|
|
2605
|
+
*/
|
|
2606
|
+
listObjectsResponseIterator(request) {
|
|
2607
|
+
return oci_common_1.genericPaginateResponses(request, req => this.listObjects(req), res => res.listObjects.nextStartWith, (req, nextPageToken) => (req.start = nextPageToken));
|
|
2608
|
+
}
|
|
2453
2609
|
/**
|
|
2454
2610
|
* Lists pre-authenticated requests for the bucket.
|
|
2455
2611
|
*
|
|
2612
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2456
2613
|
* @param ListPreauthenticatedRequestsRequest
|
|
2457
2614
|
* @return ListPreauthenticatedRequestsResponse
|
|
2458
2615
|
* @throws OciError when an error occurs
|
|
2459
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2616
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListPreauthenticatedRequests.ts.html |here} to see how to use ListPreauthenticatedRequests API.
|
|
2460
2617
|
*/
|
|
2461
2618
|
listPreauthenticatedRequests(listPreauthenticatedRequestsRequest) {
|
|
2462
2619
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2475,7 +2632,8 @@ class ObjectStorageClient {
|
|
|
2475
2632
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2476
2633
|
"opc-client-request-id": listPreauthenticatedRequestsRequest.opcClientRequestId
|
|
2477
2634
|
};
|
|
2478
|
-
const
|
|
2635
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2636
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPreauthenticatedRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
2479
2637
|
if (this.logger)
|
|
2480
2638
|
retrier.logger = this.logger;
|
|
2481
2639
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2521,6 +2679,7 @@ class ObjectStorageClient {
|
|
|
2521
2679
|
});
|
|
2522
2680
|
}
|
|
2523
2681
|
/**
|
|
2682
|
+
* NOTE: This function is deprecated in favor of listPreauthenticatedRequestsRecordIterator function.
|
|
2524
2683
|
* Creates a new async iterator which will iterate over the models.PreauthenticatedRequestSummary objects
|
|
2525
2684
|
* contained in responses from the listPreauthenticatedRequests operation. This iterator will fetch more data from the
|
|
2526
2685
|
* server as needed.
|
|
@@ -2531,6 +2690,7 @@ class ObjectStorageClient {
|
|
|
2531
2690
|
return oci_common_1.paginateRecords(request, req => this.listPreauthenticatedRequests(req));
|
|
2532
2691
|
}
|
|
2533
2692
|
/**
|
|
2693
|
+
* NOTE: This function is deprecated in favor of listPreauthenticatedRequestsResponseIterator function.
|
|
2534
2694
|
* Creates a new async iterator which will iterate over the responses received from the listPreauthenticatedRequests operation. This iterator
|
|
2535
2695
|
* will fetch more data from the server as needed.
|
|
2536
2696
|
*
|
|
@@ -2539,13 +2699,33 @@ class ObjectStorageClient {
|
|
|
2539
2699
|
listAllPreauthenticatedRequestsResponses(request) {
|
|
2540
2700
|
return oci_common_1.paginateResponses(request, req => this.listPreauthenticatedRequests(req));
|
|
2541
2701
|
}
|
|
2702
|
+
/**
|
|
2703
|
+
* Creates a new async iterator which will iterate over the models.PreauthenticatedRequestSummary objects
|
|
2704
|
+
* contained in responses from the listPreauthenticatedRequests operation. This iterator will fetch more data from the
|
|
2705
|
+
* server as needed.
|
|
2706
|
+
*
|
|
2707
|
+
* @param request a request which can be sent to the service operation
|
|
2708
|
+
*/
|
|
2709
|
+
listPreauthenticatedRequestsRecordIterator(request) {
|
|
2710
|
+
return oci_common_1.paginateRecords(request, req => this.listPreauthenticatedRequests(req));
|
|
2711
|
+
}
|
|
2712
|
+
/**
|
|
2713
|
+
* Creates a new async iterator which will iterate over the responses received from the listPreauthenticatedRequests operation. This iterator
|
|
2714
|
+
* will fetch more data from the server as needed.
|
|
2715
|
+
*
|
|
2716
|
+
* @param request a request which can be sent to the service operation
|
|
2717
|
+
*/
|
|
2718
|
+
listPreauthenticatedRequestsResponseIterator(request) {
|
|
2719
|
+
return oci_common_1.paginateResponses(request, req => this.listPreauthenticatedRequests(req));
|
|
2720
|
+
}
|
|
2542
2721
|
/**
|
|
2543
2722
|
* List the replication policies associated with a bucket.
|
|
2544
2723
|
*
|
|
2724
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2545
2725
|
* @param ListReplicationPoliciesRequest
|
|
2546
2726
|
* @return ListReplicationPoliciesResponse
|
|
2547
2727
|
* @throws OciError when an error occurs
|
|
2548
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2728
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListReplicationPolicies.ts.html |here} to see how to use ListReplicationPolicies API.
|
|
2549
2729
|
*/
|
|
2550
2730
|
listReplicationPolicies(listReplicationPoliciesRequest) {
|
|
2551
2731
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2563,7 +2743,8 @@ class ObjectStorageClient {
|
|
|
2563
2743
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2564
2744
|
"opc-client-request-id": listReplicationPoliciesRequest.opcClientRequestId
|
|
2565
2745
|
};
|
|
2566
|
-
const
|
|
2746
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2747
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationPoliciesRequest.retryConfiguration, specRetryConfiguration);
|
|
2567
2748
|
if (this.logger)
|
|
2568
2749
|
retrier.logger = this.logger;
|
|
2569
2750
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2609,6 +2790,7 @@ class ObjectStorageClient {
|
|
|
2609
2790
|
});
|
|
2610
2791
|
}
|
|
2611
2792
|
/**
|
|
2793
|
+
* NOTE: This function is deprecated in favor of listReplicationPoliciesRecordIterator function.
|
|
2612
2794
|
* Creates a new async iterator which will iterate over the models.ReplicationPolicySummary objects
|
|
2613
2795
|
* contained in responses from the listReplicationPolicies operation. This iterator will fetch more data from the
|
|
2614
2796
|
* server as needed.
|
|
@@ -2619,6 +2801,7 @@ class ObjectStorageClient {
|
|
|
2619
2801
|
return oci_common_1.paginateRecords(request, req => this.listReplicationPolicies(req));
|
|
2620
2802
|
}
|
|
2621
2803
|
/**
|
|
2804
|
+
* NOTE: This function is deprecated in favor of listReplicationPoliciesResponseIterator function.
|
|
2622
2805
|
* Creates a new async iterator which will iterate over the responses received from the listReplicationPolicies operation. This iterator
|
|
2623
2806
|
* will fetch more data from the server as needed.
|
|
2624
2807
|
*
|
|
@@ -2627,13 +2810,33 @@ class ObjectStorageClient {
|
|
|
2627
2810
|
listAllReplicationPoliciesResponses(request) {
|
|
2628
2811
|
return oci_common_1.paginateResponses(request, req => this.listReplicationPolicies(req));
|
|
2629
2812
|
}
|
|
2813
|
+
/**
|
|
2814
|
+
* Creates a new async iterator which will iterate over the models.ReplicationPolicySummary objects
|
|
2815
|
+
* contained in responses from the listReplicationPolicies operation. This iterator will fetch more data from the
|
|
2816
|
+
* server as needed.
|
|
2817
|
+
*
|
|
2818
|
+
* @param request a request which can be sent to the service operation
|
|
2819
|
+
*/
|
|
2820
|
+
listReplicationPoliciesRecordIterator(request) {
|
|
2821
|
+
return oci_common_1.paginateRecords(request, req => this.listReplicationPolicies(req));
|
|
2822
|
+
}
|
|
2823
|
+
/**
|
|
2824
|
+
* Creates a new async iterator which will iterate over the responses received from the listReplicationPolicies operation. This iterator
|
|
2825
|
+
* will fetch more data from the server as needed.
|
|
2826
|
+
*
|
|
2827
|
+
* @param request a request which can be sent to the service operation
|
|
2828
|
+
*/
|
|
2829
|
+
listReplicationPoliciesResponseIterator(request) {
|
|
2830
|
+
return oci_common_1.paginateResponses(request, req => this.listReplicationPolicies(req));
|
|
2831
|
+
}
|
|
2630
2832
|
/**
|
|
2631
2833
|
* List the replication sources of a destination bucket.
|
|
2632
2834
|
*
|
|
2835
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2633
2836
|
* @param ListReplicationSourcesRequest
|
|
2634
2837
|
* @return ListReplicationSourcesResponse
|
|
2635
2838
|
* @throws OciError when an error occurs
|
|
2636
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2839
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListReplicationSources.ts.html |here} to see how to use ListReplicationSources API.
|
|
2637
2840
|
*/
|
|
2638
2841
|
listReplicationSources(listReplicationSourcesRequest) {
|
|
2639
2842
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2651,7 +2854,8 @@ class ObjectStorageClient {
|
|
|
2651
2854
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2652
2855
|
"opc-client-request-id": listReplicationSourcesRequest.opcClientRequestId
|
|
2653
2856
|
};
|
|
2654
|
-
const
|
|
2857
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2858
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationSourcesRequest.retryConfiguration, specRetryConfiguration);
|
|
2655
2859
|
if (this.logger)
|
|
2656
2860
|
retrier.logger = this.logger;
|
|
2657
2861
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2697,6 +2901,7 @@ class ObjectStorageClient {
|
|
|
2697
2901
|
});
|
|
2698
2902
|
}
|
|
2699
2903
|
/**
|
|
2904
|
+
* NOTE: This function is deprecated in favor of listReplicationSourcesRecordIterator function.
|
|
2700
2905
|
* Creates a new async iterator which will iterate over the models.ReplicationSource objects
|
|
2701
2906
|
* contained in responses from the listReplicationSources operation. This iterator will fetch more data from the
|
|
2702
2907
|
* server as needed.
|
|
@@ -2707,6 +2912,7 @@ class ObjectStorageClient {
|
|
|
2707
2912
|
return oci_common_1.paginateRecords(request, req => this.listReplicationSources(req));
|
|
2708
2913
|
}
|
|
2709
2914
|
/**
|
|
2915
|
+
* NOTE: This function is deprecated in favor of listReplicationSourcesResponseIterator function.
|
|
2710
2916
|
* Creates a new async iterator which will iterate over the responses received from the listReplicationSources operation. This iterator
|
|
2711
2917
|
* will fetch more data from the server as needed.
|
|
2712
2918
|
*
|
|
@@ -2715,14 +2921,34 @@ class ObjectStorageClient {
|
|
|
2715
2921
|
listAllReplicationSourcesResponses(request) {
|
|
2716
2922
|
return oci_common_1.paginateResponses(request, req => this.listReplicationSources(req));
|
|
2717
2923
|
}
|
|
2924
|
+
/**
|
|
2925
|
+
* Creates a new async iterator which will iterate over the models.ReplicationSource objects
|
|
2926
|
+
* contained in responses from the listReplicationSources operation. This iterator will fetch more data from the
|
|
2927
|
+
* server as needed.
|
|
2928
|
+
*
|
|
2929
|
+
* @param request a request which can be sent to the service operation
|
|
2930
|
+
*/
|
|
2931
|
+
listReplicationSourcesRecordIterator(request) {
|
|
2932
|
+
return oci_common_1.paginateRecords(request, req => this.listReplicationSources(req));
|
|
2933
|
+
}
|
|
2934
|
+
/**
|
|
2935
|
+
* Creates a new async iterator which will iterate over the responses received from the listReplicationSources operation. This iterator
|
|
2936
|
+
* will fetch more data from the server as needed.
|
|
2937
|
+
*
|
|
2938
|
+
* @param request a request which can be sent to the service operation
|
|
2939
|
+
*/
|
|
2940
|
+
listReplicationSourcesResponseIterator(request) {
|
|
2941
|
+
return oci_common_1.paginateResponses(request, req => this.listReplicationSources(req));
|
|
2942
|
+
}
|
|
2718
2943
|
/**
|
|
2719
2944
|
* List the retention rules for a bucket. The retention rules are sorted based on creation time,
|
|
2720
2945
|
* with the most recently created retention rule returned first.
|
|
2721
2946
|
*
|
|
2947
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2722
2948
|
* @param ListRetentionRulesRequest
|
|
2723
2949
|
* @return ListRetentionRulesResponse
|
|
2724
2950
|
* @throws OciError when an error occurs
|
|
2725
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2951
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListRetentionRules.ts.html |here} to see how to use ListRetentionRules API.
|
|
2726
2952
|
*/
|
|
2727
2953
|
listRetentionRules(listRetentionRulesRequest) {
|
|
2728
2954
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2738,7 +2964,8 @@ class ObjectStorageClient {
|
|
|
2738
2964
|
let headerParams = {
|
|
2739
2965
|
"Content-Type": common.Constants.APPLICATION_JSON
|
|
2740
2966
|
};
|
|
2741
|
-
const
|
|
2967
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2968
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRetentionRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
2742
2969
|
if (this.logger)
|
|
2743
2970
|
retrier.logger = this.logger;
|
|
2744
2971
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2785,10 +3012,11 @@ class ObjectStorageClient {
|
|
|
2785
3012
|
}
|
|
2786
3013
|
/**
|
|
2787
3014
|
* Lists the errors of the work request with the given ID.
|
|
3015
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2788
3016
|
* @param ListWorkRequestErrorsRequest
|
|
2789
3017
|
* @return ListWorkRequestErrorsResponse
|
|
2790
3018
|
* @throws OciError when an error occurs
|
|
2791
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3019
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2792
3020
|
*/
|
|
2793
3021
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2794
3022
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2805,7 +3033,8 @@ class ObjectStorageClient {
|
|
|
2805
3033
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2806
3034
|
"opc-client-request-id": listWorkRequestErrorsRequest.opcClientRequestId
|
|
2807
3035
|
};
|
|
2808
|
-
const
|
|
3036
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3037
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
2809
3038
|
if (this.logger)
|
|
2810
3039
|
retrier.logger = this.logger;
|
|
2811
3040
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2851,6 +3080,7 @@ class ObjectStorageClient {
|
|
|
2851
3080
|
});
|
|
2852
3081
|
}
|
|
2853
3082
|
/**
|
|
3083
|
+
* NOTE: This function is deprecated in favor of listWorkRequestErrorsRecordIterator function.
|
|
2854
3084
|
* Creates a new async iterator which will iterate over the models.WorkRequestError objects
|
|
2855
3085
|
* contained in responses from the listWorkRequestErrors operation. This iterator will fetch more data from the
|
|
2856
3086
|
* server as needed.
|
|
@@ -2861,6 +3091,7 @@ class ObjectStorageClient {
|
|
|
2861
3091
|
return oci_common_1.paginateRecords(request, req => this.listWorkRequestErrors(req));
|
|
2862
3092
|
}
|
|
2863
3093
|
/**
|
|
3094
|
+
* NOTE: This function is deprecated in favor of listWorkRequestErrorsResponseIterator function.
|
|
2864
3095
|
* Creates a new async iterator which will iterate over the responses received from the listWorkRequestErrors operation. This iterator
|
|
2865
3096
|
* will fetch more data from the server as needed.
|
|
2866
3097
|
*
|
|
@@ -2869,12 +3100,32 @@ class ObjectStorageClient {
|
|
|
2869
3100
|
listAllWorkRequestErrorsResponses(request) {
|
|
2870
3101
|
return oci_common_1.paginateResponses(request, req => this.listWorkRequestErrors(req));
|
|
2871
3102
|
}
|
|
3103
|
+
/**
|
|
3104
|
+
* Creates a new async iterator which will iterate over the models.WorkRequestError objects
|
|
3105
|
+
* contained in responses from the listWorkRequestErrors operation. This iterator will fetch more data from the
|
|
3106
|
+
* server as needed.
|
|
3107
|
+
*
|
|
3108
|
+
* @param request a request which can be sent to the service operation
|
|
3109
|
+
*/
|
|
3110
|
+
listWorkRequestErrorsRecordIterator(request) {
|
|
3111
|
+
return oci_common_1.paginateRecords(request, req => this.listWorkRequestErrors(req));
|
|
3112
|
+
}
|
|
3113
|
+
/**
|
|
3114
|
+
* Creates a new async iterator which will iterate over the responses received from the listWorkRequestErrors operation. This iterator
|
|
3115
|
+
* will fetch more data from the server as needed.
|
|
3116
|
+
*
|
|
3117
|
+
* @param request a request which can be sent to the service operation
|
|
3118
|
+
*/
|
|
3119
|
+
listWorkRequestErrorsResponseIterator(request) {
|
|
3120
|
+
return oci_common_1.paginateResponses(request, req => this.listWorkRequestErrors(req));
|
|
3121
|
+
}
|
|
2872
3122
|
/**
|
|
2873
3123
|
* Lists the logs of the work request with the given ID.
|
|
3124
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2874
3125
|
* @param ListWorkRequestLogsRequest
|
|
2875
3126
|
* @return ListWorkRequestLogsResponse
|
|
2876
3127
|
* @throws OciError when an error occurs
|
|
2877
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3128
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2878
3129
|
*/
|
|
2879
3130
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2880
3131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2891,7 +3142,8 @@ class ObjectStorageClient {
|
|
|
2891
3142
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2892
3143
|
"opc-client-request-id": listWorkRequestLogsRequest.opcClientRequestId
|
|
2893
3144
|
};
|
|
2894
|
-
const
|
|
3145
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3146
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
2895
3147
|
if (this.logger)
|
|
2896
3148
|
retrier.logger = this.logger;
|
|
2897
3149
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2937,6 +3189,7 @@ class ObjectStorageClient {
|
|
|
2937
3189
|
});
|
|
2938
3190
|
}
|
|
2939
3191
|
/**
|
|
3192
|
+
* NOTE: This function is deprecated in favor of listWorkRequestLogsRecordIterator function.
|
|
2940
3193
|
* Creates a new async iterator which will iterate over the models.WorkRequestLogEntry objects
|
|
2941
3194
|
* contained in responses from the listWorkRequestLogs operation. This iterator will fetch more data from the
|
|
2942
3195
|
* server as needed.
|
|
@@ -2947,6 +3200,7 @@ class ObjectStorageClient {
|
|
|
2947
3200
|
return oci_common_1.paginateRecords(request, req => this.listWorkRequestLogs(req));
|
|
2948
3201
|
}
|
|
2949
3202
|
/**
|
|
3203
|
+
* NOTE: This function is deprecated in favor of listWorkRequestLogsResponseIterator function.
|
|
2950
3204
|
* Creates a new async iterator which will iterate over the responses received from the listWorkRequestLogs operation. This iterator
|
|
2951
3205
|
* will fetch more data from the server as needed.
|
|
2952
3206
|
*
|
|
@@ -2955,13 +3209,33 @@ class ObjectStorageClient {
|
|
|
2955
3209
|
listAllWorkRequestLogsResponses(request) {
|
|
2956
3210
|
return oci_common_1.paginateResponses(request, req => this.listWorkRequestLogs(req));
|
|
2957
3211
|
}
|
|
3212
|
+
/**
|
|
3213
|
+
* Creates a new async iterator which will iterate over the models.WorkRequestLogEntry objects
|
|
3214
|
+
* contained in responses from the listWorkRequestLogs operation. This iterator will fetch more data from the
|
|
3215
|
+
* server as needed.
|
|
3216
|
+
*
|
|
3217
|
+
* @param request a request which can be sent to the service operation
|
|
3218
|
+
*/
|
|
3219
|
+
listWorkRequestLogsRecordIterator(request) {
|
|
3220
|
+
return oci_common_1.paginateRecords(request, req => this.listWorkRequestLogs(req));
|
|
3221
|
+
}
|
|
3222
|
+
/**
|
|
3223
|
+
* Creates a new async iterator which will iterate over the responses received from the listWorkRequestLogs operation. This iterator
|
|
3224
|
+
* will fetch more data from the server as needed.
|
|
3225
|
+
*
|
|
3226
|
+
* @param request a request which can be sent to the service operation
|
|
3227
|
+
*/
|
|
3228
|
+
listWorkRequestLogsResponseIterator(request) {
|
|
3229
|
+
return oci_common_1.paginateResponses(request, req => this.listWorkRequestLogs(req));
|
|
3230
|
+
}
|
|
2958
3231
|
/**
|
|
2959
3232
|
* Lists the work requests in a compartment.
|
|
2960
3233
|
*
|
|
3234
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2961
3235
|
* @param ListWorkRequestsRequest
|
|
2962
3236
|
* @return ListWorkRequestsResponse
|
|
2963
3237
|
* @throws OciError when an error occurs
|
|
2964
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3238
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2965
3239
|
*/
|
|
2966
3240
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2967
3241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2977,7 +3251,8 @@ class ObjectStorageClient {
|
|
|
2977
3251
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2978
3252
|
"opc-client-request-id": listWorkRequestsRequest.opcClientRequestId
|
|
2979
3253
|
};
|
|
2980
|
-
const
|
|
3254
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3255
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
2981
3256
|
if (this.logger)
|
|
2982
3257
|
retrier.logger = this.logger;
|
|
2983
3258
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3023,6 +3298,7 @@ class ObjectStorageClient {
|
|
|
3023
3298
|
});
|
|
3024
3299
|
}
|
|
3025
3300
|
/**
|
|
3301
|
+
* NOTE: This function is deprecated in favor of listWorkRequestsRecordIterator function.
|
|
3026
3302
|
* Creates a new async iterator which will iterate over the models.WorkRequestSummary objects
|
|
3027
3303
|
* contained in responses from the listWorkRequests operation. This iterator will fetch more data from the
|
|
3028
3304
|
* server as needed.
|
|
@@ -3033,6 +3309,7 @@ class ObjectStorageClient {
|
|
|
3033
3309
|
return oci_common_1.paginateRecords(request, req => this.listWorkRequests(req));
|
|
3034
3310
|
}
|
|
3035
3311
|
/**
|
|
3312
|
+
* NOTE: This function is deprecated in favor of listWorkRequestsResponseIterator function.
|
|
3036
3313
|
* Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator
|
|
3037
3314
|
* will fetch more data from the server as needed.
|
|
3038
3315
|
*
|
|
@@ -3041,16 +3318,36 @@ class ObjectStorageClient {
|
|
|
3041
3318
|
listAllWorkRequestsResponses(request) {
|
|
3042
3319
|
return oci_common_1.paginateResponses(request, req => this.listWorkRequests(req));
|
|
3043
3320
|
}
|
|
3321
|
+
/**
|
|
3322
|
+
* Creates a new async iterator which will iterate over the models.WorkRequestSummary objects
|
|
3323
|
+
* contained in responses from the listWorkRequests operation. This iterator will fetch more data from the
|
|
3324
|
+
* server as needed.
|
|
3325
|
+
*
|
|
3326
|
+
* @param request a request which can be sent to the service operation
|
|
3327
|
+
*/
|
|
3328
|
+
listWorkRequestsRecordIterator(request) {
|
|
3329
|
+
return oci_common_1.paginateRecords(request, req => this.listWorkRequests(req));
|
|
3330
|
+
}
|
|
3331
|
+
/**
|
|
3332
|
+
* Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator
|
|
3333
|
+
* will fetch more data from the server as needed.
|
|
3334
|
+
*
|
|
3335
|
+
* @param request a request which can be sent to the service operation
|
|
3336
|
+
*/
|
|
3337
|
+
listWorkRequestsResponseIterator(request) {
|
|
3338
|
+
return oci_common_1.paginateResponses(request, req => this.listWorkRequests(req));
|
|
3339
|
+
}
|
|
3044
3340
|
/**
|
|
3045
3341
|
* Stops replication to the destination bucket and removes the replication policy. When the replication
|
|
3046
3342
|
* policy was created, this destination bucket became read-only except for new and changed objects replicated
|
|
3047
3343
|
* automatically from the source bucket. MakeBucketWritable removes the replication policy. This bucket is no
|
|
3048
3344
|
* longer the target for replication and is now writable, allowing users to make changes to bucket contents.
|
|
3049
3345
|
*
|
|
3346
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3050
3347
|
* @param MakeBucketWritableRequest
|
|
3051
3348
|
* @return MakeBucketWritableResponse
|
|
3052
3349
|
* @throws OciError when an error occurs
|
|
3053
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3350
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/MakeBucketWritable.ts.html |here} to see how to use MakeBucketWritable API.
|
|
3054
3351
|
*/
|
|
3055
3352
|
makeBucketWritable(makeBucketWritableRequest) {
|
|
3056
3353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3065,7 +3362,8 @@ class ObjectStorageClient {
|
|
|
3065
3362
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3066
3363
|
"opc-client-request-id": makeBucketWritableRequest.opcClientRequestId
|
|
3067
3364
|
};
|
|
3068
|
-
const
|
|
3365
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3366
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, makeBucketWritableRequest.retryConfiguration, specRetryConfiguration);
|
|
3069
3367
|
if (this.logger)
|
|
3070
3368
|
retrier.logger = this.logger;
|
|
3071
3369
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3111,10 +3409,11 @@ class ObjectStorageClient {
|
|
|
3111
3409
|
See [Special Instructions for Object Storage PUT](https://docs.cloud.oracle.com/Content/API/Concepts/signingrequests.htm#ObjectStoragePut)
|
|
3112
3410
|
* for request signature requirements.
|
|
3113
3411
|
*
|
|
3412
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3114
3413
|
* @param PutObjectRequest
|
|
3115
3414
|
* @return PutObjectResponse
|
|
3116
3415
|
* @throws OciError when an error occurs
|
|
3117
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3416
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/PutObject.ts.html |here} to see how to use PutObject API.
|
|
3118
3417
|
*/
|
|
3119
3418
|
putObject(putObjectRequest) {
|
|
3120
3419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3149,7 +3448,8 @@ class ObjectStorageClient {
|
|
|
3149
3448
|
Object.assign(headerParams, { ["opc-meta-" + key]: value });
|
|
3150
3449
|
});
|
|
3151
3450
|
}
|
|
3152
|
-
const
|
|
3451
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3452
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
3153
3453
|
if (this.logger)
|
|
3154
3454
|
retrier.logger = this.logger;
|
|
3155
3455
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3210,10 +3510,11 @@ class ObjectStorageClient {
|
|
|
3210
3510
|
/**
|
|
3211
3511
|
* Creates or replaces the object lifecycle policy for the bucket.
|
|
3212
3512
|
*
|
|
3513
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3213
3514
|
* @param PutObjectLifecyclePolicyRequest
|
|
3214
3515
|
* @return PutObjectLifecyclePolicyResponse
|
|
3215
3516
|
* @throws OciError when an error occurs
|
|
3216
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3517
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/PutObjectLifecyclePolicy.ts.html |here} to see how to use PutObjectLifecyclePolicy API.
|
|
3217
3518
|
*/
|
|
3218
3519
|
putObjectLifecyclePolicy(putObjectLifecyclePolicyRequest) {
|
|
3219
3520
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3230,7 +3531,8 @@ class ObjectStorageClient {
|
|
|
3230
3531
|
"if-match": putObjectLifecyclePolicyRequest.ifMatch,
|
|
3231
3532
|
"if-none-match": putObjectLifecyclePolicyRequest.ifNoneMatch
|
|
3232
3533
|
};
|
|
3233
|
-
const
|
|
3534
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3535
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
3234
3536
|
if (this.logger)
|
|
3235
3537
|
retrier.logger = this.logger;
|
|
3236
3538
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3293,10 +3595,11 @@ class ObjectStorageClient {
|
|
|
3293
3595
|
* of the work request task.
|
|
3294
3596
|
* All the versions of objects will be re-encrypted whether versioning is enabled or suspended at the bucket.
|
|
3295
3597
|
*
|
|
3598
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3296
3599
|
* @param ReencryptBucketRequest
|
|
3297
3600
|
* @return ReencryptBucketResponse
|
|
3298
3601
|
* @throws OciError when an error occurs
|
|
3299
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3602
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ReencryptBucket.ts.html |here} to see how to use ReencryptBucket API.
|
|
3300
3603
|
*/
|
|
3301
3604
|
reencryptBucket(reencryptBucketRequest) {
|
|
3302
3605
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3311,7 +3614,8 @@ class ObjectStorageClient {
|
|
|
3311
3614
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3312
3615
|
"opc-client-request-id": reencryptBucketRequest.opcClientRequestId
|
|
3313
3616
|
};
|
|
3314
|
-
const
|
|
3617
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3618
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reencryptBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
3315
3619
|
if (this.logger)
|
|
3316
3620
|
retrier.logger = this.logger;
|
|
3317
3621
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3363,10 +3667,11 @@ class ObjectStorageClient {
|
|
|
3363
3667
|
* <p>
|
|
3364
3668
|
- You can encrypt an object using your own encryption key. The key you supply is known as a customer-provided encryption key (SSE-C).
|
|
3365
3669
|
*
|
|
3670
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3366
3671
|
* @param ReencryptObjectRequest
|
|
3367
3672
|
* @return ReencryptObjectResponse
|
|
3368
3673
|
* @throws OciError when an error occurs
|
|
3369
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3674
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/ReencryptObject.ts.html |here} to see how to use ReencryptObject API.
|
|
3370
3675
|
*/
|
|
3371
3676
|
reencryptObject(reencryptObjectRequest) {
|
|
3372
3677
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3384,7 +3689,8 @@ class ObjectStorageClient {
|
|
|
3384
3689
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3385
3690
|
"opc-client-request-id": reencryptObjectRequest.opcClientRequestId
|
|
3386
3691
|
};
|
|
3387
|
-
const
|
|
3692
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3693
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reencryptObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
3388
3694
|
if (this.logger)
|
|
3389
3695
|
retrier.logger = this.logger;
|
|
3390
3696
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3427,10 +3733,11 @@ class ObjectStorageClient {
|
|
|
3427
3733
|
See [Object Names](https://docs.cloud.oracle.com/Content/Object/Tasks/managingobjects.htm#namerequirements)
|
|
3428
3734
|
* for object naming requirements.
|
|
3429
3735
|
*
|
|
3736
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3430
3737
|
* @param RenameObjectRequest
|
|
3431
3738
|
* @return RenameObjectResponse
|
|
3432
3739
|
* @throws OciError when an error occurs
|
|
3433
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3740
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/RenameObject.ts.html |here} to see how to use RenameObject API.
|
|
3434
3741
|
*/
|
|
3435
3742
|
renameObject(renameObjectRequest) {
|
|
3436
3743
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3445,7 +3752,8 @@ class ObjectStorageClient {
|
|
|
3445
3752
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3446
3753
|
"opc-client-request-id": renameObjectRequest.opcClientRequestId
|
|
3447
3754
|
};
|
|
3448
|
-
const
|
|
3755
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3756
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, renameObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
3449
3757
|
if (this.logger)
|
|
3450
3758
|
retrier.logger = this.logger;
|
|
3451
3759
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3501,10 +3809,11 @@ class ObjectStorageClient {
|
|
|
3501
3809
|
* Restores one or more objects specified by the objectName parameter.
|
|
3502
3810
|
* By default objects will be restored for 24 hours. Duration can be configured using the hours parameter.
|
|
3503
3811
|
*
|
|
3812
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3504
3813
|
* @param RestoreObjectsRequest
|
|
3505
3814
|
* @return RestoreObjectsResponse
|
|
3506
3815
|
* @throws OciError when an error occurs
|
|
3507
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3816
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/RestoreObjects.ts.html |here} to see how to use RestoreObjects API.
|
|
3508
3817
|
*/
|
|
3509
3818
|
restoreObjects(restoreObjectsRequest) {
|
|
3510
3819
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3519,7 +3828,8 @@ class ObjectStorageClient {
|
|
|
3519
3828
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3520
3829
|
"opc-client-request-id": restoreObjectsRequest.opcClientRequestId
|
|
3521
3830
|
};
|
|
3522
|
-
const
|
|
3831
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3832
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreObjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
3523
3833
|
if (this.logger)
|
|
3524
3834
|
retrier.logger = this.logger;
|
|
3525
3835
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3563,10 +3873,11 @@ class ObjectStorageClient {
|
|
|
3563
3873
|
* of the compartment that you want to move the bucket to. For more information about moving resources between compartments,
|
|
3564
3874
|
* see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
3565
3875
|
*
|
|
3876
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3566
3877
|
* @param UpdateBucketRequest
|
|
3567
3878
|
* @return UpdateBucketResponse
|
|
3568
3879
|
* @throws OciError when an error occurs
|
|
3569
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3880
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/UpdateBucket.ts.html |here} to see how to use UpdateBucket API.
|
|
3570
3881
|
*/
|
|
3571
3882
|
updateBucket(updateBucketRequest) {
|
|
3572
3883
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3582,7 +3893,8 @@ class ObjectStorageClient {
|
|
|
3582
3893
|
"if-match": updateBucketRequest.ifMatch,
|
|
3583
3894
|
"opc-client-request-id": updateBucketRequest.opcClientRequestId
|
|
3584
3895
|
};
|
|
3585
|
-
const
|
|
3896
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3897
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
3586
3898
|
if (this.logger)
|
|
3587
3899
|
retrier.logger = this.logger;
|
|
3588
3900
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3637,10 +3949,11 @@ class ObjectStorageClient {
|
|
|
3637
3949
|
* buckets will be modified. A user must have OBJECTSTORAGE_NAMESPACE_UPDATE permission to make changes to the default
|
|
3638
3950
|
* compartments for Amazon S3 and Swift.
|
|
3639
3951
|
*
|
|
3952
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3640
3953
|
* @param UpdateNamespaceMetadataRequest
|
|
3641
3954
|
* @return UpdateNamespaceMetadataResponse
|
|
3642
3955
|
* @throws OciError when an error occurs
|
|
3643
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3956
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/UpdateNamespaceMetadata.ts.html |here} to see how to use UpdateNamespaceMetadata API.
|
|
3644
3957
|
*/
|
|
3645
3958
|
updateNamespaceMetadata(updateNamespaceMetadataRequest) {
|
|
3646
3959
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3654,7 +3967,8 @@ class ObjectStorageClient {
|
|
|
3654
3967
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3655
3968
|
"opc-client-request-id": updateNamespaceMetadataRequest.opcClientRequestId
|
|
3656
3969
|
};
|
|
3657
|
-
const
|
|
3970
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3971
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateNamespaceMetadataRequest.retryConfiguration, specRetryConfiguration);
|
|
3658
3972
|
if (this.logger)
|
|
3659
3973
|
retrier.logger = this.logger;
|
|
3660
3974
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3698,10 +4012,11 @@ class ObjectStorageClient {
|
|
|
3698
4012
|
/**
|
|
3699
4013
|
* Changes the storage tier of the object specified by the objectName parameter.
|
|
3700
4014
|
*
|
|
4015
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3701
4016
|
* @param UpdateObjectStorageTierRequest
|
|
3702
4017
|
* @return UpdateObjectStorageTierResponse
|
|
3703
4018
|
* @throws OciError when an error occurs
|
|
3704
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4019
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/UpdateObjectStorageTier.ts.html |here} to see how to use UpdateObjectStorageTier API.
|
|
3705
4020
|
*/
|
|
3706
4021
|
updateObjectStorageTier(updateObjectStorageTierRequest) {
|
|
3707
4022
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3716,7 +4031,8 @@ class ObjectStorageClient {
|
|
|
3716
4031
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3717
4032
|
"opc-client-request-id": updateObjectStorageTierRequest.opcClientRequestId
|
|
3718
4033
|
};
|
|
3719
|
-
const
|
|
4034
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4035
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateObjectStorageTierRequest.retryConfiguration, specRetryConfiguration);
|
|
3720
4036
|
if (this.logger)
|
|
3721
4037
|
retrier.logger = this.logger;
|
|
3722
4038
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3756,10 +4072,11 @@ class ObjectStorageClient {
|
|
|
3756
4072
|
/**
|
|
3757
4073
|
* Updates the specified retention rule. Rule changes take effect typically within 30 seconds.
|
|
3758
4074
|
*
|
|
4075
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3759
4076
|
* @param UpdateRetentionRuleRequest
|
|
3760
4077
|
* @return UpdateRetentionRuleResponse
|
|
3761
4078
|
* @throws OciError when an error occurs
|
|
3762
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4079
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/UpdateRetentionRule.ts.html |here} to see how to use UpdateRetentionRule API.
|
|
3763
4080
|
*/
|
|
3764
4081
|
updateRetentionRule(updateRetentionRuleRequest) {
|
|
3765
4082
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3776,7 +4093,8 @@ class ObjectStorageClient {
|
|
|
3776
4093
|
"if-match": updateRetentionRuleRequest.ifMatch,
|
|
3777
4094
|
"opc-client-request-id": updateRetentionRuleRequest.opcClientRequestId
|
|
3778
4095
|
};
|
|
3779
|
-
const
|
|
4096
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4097
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
3780
4098
|
if (this.logger)
|
|
3781
4099
|
retrier.logger = this.logger;
|
|
3782
4100
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3825,10 +4143,11 @@ class ObjectStorageClient {
|
|
|
3825
4143
|
/**
|
|
3826
4144
|
* Uploads a single part of a multipart upload.
|
|
3827
4145
|
*
|
|
4146
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3828
4147
|
* @param UploadPartRequest
|
|
3829
4148
|
* @return UploadPartResponse
|
|
3830
4149
|
* @throws OciError when an error occurs
|
|
3831
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4150
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/objectstorage/UploadPart.ts.html |here} to see how to use UploadPart API.
|
|
3832
4151
|
*/
|
|
3833
4152
|
uploadPart(uploadPartRequest) {
|
|
3834
4153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3855,7 +4174,8 @@ class ObjectStorageClient {
|
|
|
3855
4174
|
"opc-sse-customer-key-sha256": uploadPartRequest.opcSseCustomerKeySha256,
|
|
3856
4175
|
"opc-sse-kms-key-id": uploadPartRequest.opcSseKmsKeyId
|
|
3857
4176
|
};
|
|
3858
|
-
const
|
|
4177
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4178
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadPartRequest.retryConfiguration, specRetryConfiguration);
|
|
3859
4179
|
if (this.logger)
|
|
3860
4180
|
retrier.logger = this.logger;
|
|
3861
4181
|
const request = yield oci_common_2.composeRequest({
|