oci-filestorage 2.5.2 → 2.8.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/lib/client.d.ts +53 -25
- package/lib/client.js +110 -50
- package/lib/client.js.map +1 -1
- package/lib/request/change-file-system-compartment-request.d.ts +1 -1
- package/lib/request/change-mount-target-compartment-request.d.ts +1 -1
- package/lib/request/create-export-request.d.ts +1 -1
- package/lib/request/create-file-system-request.d.ts +1 -1
- package/lib/request/create-mount-target-request.d.ts +1 -1
- package/lib/request/create-snapshot-request.d.ts +1 -1
- package/lib/request/delete-export-request.d.ts +1 -1
- package/lib/request/delete-file-system-request.d.ts +1 -1
- package/lib/request/delete-mount-target-request.d.ts +1 -1
- package/lib/request/delete-snapshot-request.d.ts +1 -1
- package/lib/request/get-export-request.d.ts +1 -1
- package/lib/request/get-export-set-request.d.ts +1 -1
- package/lib/request/get-file-system-request.d.ts +1 -1
- package/lib/request/get-mount-target-request.d.ts +1 -1
- package/lib/request/get-snapshot-request.d.ts +1 -1
- package/lib/request/list-export-sets-request.d.ts +1 -1
- package/lib/request/list-exports-request.d.ts +1 -1
- package/lib/request/list-file-systems-request.d.ts +1 -1
- package/lib/request/list-mount-targets-request.d.ts +1 -1
- package/lib/request/list-snapshots-request.d.ts +1 -1
- package/lib/request/update-export-request.d.ts +1 -1
- package/lib/request/update-export-set-request.d.ts +1 -1
- package/lib/request/update-file-system-request.d.ts +1 -1
- package/lib/request/update-mount-target-request.d.ts +1 -1
- package/lib/request/update-snapshot-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -53,6 +53,9 @@ const oci_common_2 = require("oci-common");
|
|
|
53
53
|
var FileStorageApiKeys;
|
|
54
54
|
(function (FileStorageApiKeys) {
|
|
55
55
|
})(FileStorageApiKeys = exports.FileStorageApiKeys || (exports.FileStorageApiKeys = {}));
|
|
56
|
+
/**
|
|
57
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
58
|
+
*/
|
|
56
59
|
class FileStorageClient {
|
|
57
60
|
constructor(params, clientConfiguration) {
|
|
58
61
|
this["_endpoint"] = "";
|
|
@@ -67,6 +70,13 @@ class FileStorageClient {
|
|
|
67
70
|
? clientConfiguration.circuitBreaker.circuit
|
|
68
71
|
: null;
|
|
69
72
|
}
|
|
73
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
74
|
+
const specCircuitBreakerEnabled = true;
|
|
75
|
+
if (!this._circuitBreaker &&
|
|
76
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
77
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
78
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
79
|
+
}
|
|
70
80
|
this._httpClient =
|
|
71
81
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
72
82
|
if (params.authenticationDetailsProvider &&
|
|
@@ -139,10 +149,11 @@ class FileStorageClient {
|
|
|
139
149
|
/**
|
|
140
150
|
* Moves a file system and its associated snapshots into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes)
|
|
141
151
|
*
|
|
152
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
142
153
|
* @param ChangeFileSystemCompartmentRequest
|
|
143
154
|
* @return ChangeFileSystemCompartmentResponse
|
|
144
155
|
* @throws OciError when an error occurs
|
|
145
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
156
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/ChangeFileSystemCompartment.ts.html |here} to see how to use ChangeFileSystemCompartment API.
|
|
146
157
|
*/
|
|
147
158
|
changeFileSystemCompartment(changeFileSystemCompartmentRequest) {
|
|
148
159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -157,7 +168,8 @@ class FileStorageClient {
|
|
|
157
168
|
"if-match": changeFileSystemCompartmentRequest.ifMatch,
|
|
158
169
|
"opc-request-id": changeFileSystemCompartmentRequest.opcRequestId
|
|
159
170
|
};
|
|
160
|
-
const
|
|
171
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
172
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeFileSystemCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
161
173
|
if (this.logger)
|
|
162
174
|
retrier.logger = this.logger;
|
|
163
175
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -192,10 +204,11 @@ class FileStorageClient {
|
|
|
192
204
|
/**
|
|
193
205
|
* Moves a mount target and its associated export set into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes)
|
|
194
206
|
*
|
|
207
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
195
208
|
* @param ChangeMountTargetCompartmentRequest
|
|
196
209
|
* @return ChangeMountTargetCompartmentResponse
|
|
197
210
|
* @throws OciError when an error occurs
|
|
198
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
211
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/ChangeMountTargetCompartment.ts.html |here} to see how to use ChangeMountTargetCompartment API.
|
|
199
212
|
*/
|
|
200
213
|
changeMountTargetCompartment(changeMountTargetCompartmentRequest) {
|
|
201
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -210,7 +223,8 @@ class FileStorageClient {
|
|
|
210
223
|
"if-match": changeMountTargetCompartmentRequest.ifMatch,
|
|
211
224
|
"opc-request-id": changeMountTargetCompartmentRequest.opcRequestId
|
|
212
225
|
};
|
|
213
|
-
const
|
|
226
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
227
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeMountTargetCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
214
228
|
if (this.logger)
|
|
215
229
|
retrier.logger = this.logger;
|
|
216
230
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -246,10 +260,11 @@ class FileStorageClient {
|
|
|
246
260
|
* Creates a new export in the specified export set, path, and
|
|
247
261
|
* file system.
|
|
248
262
|
*
|
|
263
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
249
264
|
* @param CreateExportRequest
|
|
250
265
|
* @return CreateExportResponse
|
|
251
266
|
* @throws OciError when an error occurs
|
|
252
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
267
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/CreateExport.ts.html |here} to see how to use CreateExport API.
|
|
253
268
|
*/
|
|
254
269
|
createExport(createExportRequest) {
|
|
255
270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -262,7 +277,8 @@ class FileStorageClient {
|
|
|
262
277
|
"opc-retry-token": createExportRequest.opcRetryToken,
|
|
263
278
|
"opc-request-id": createExportRequest.opcRequestId
|
|
264
279
|
};
|
|
265
|
-
const
|
|
280
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
281
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createExportRequest.retryConfiguration, specRetryConfiguration);
|
|
266
282
|
if (this.logger)
|
|
267
283
|
retrier.logger = this.logger;
|
|
268
284
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -334,10 +350,11 @@ class FileStorageClient {
|
|
|
334
350
|
* You can also retrieve a resource's OCID by using a List API operation on that resource
|
|
335
351
|
* type or by viewing the resource in the Console.
|
|
336
352
|
*
|
|
353
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
337
354
|
* @param CreateFileSystemRequest
|
|
338
355
|
* @return CreateFileSystemResponse
|
|
339
356
|
* @throws OciError when an error occurs
|
|
340
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
357
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/CreateFileSystem.ts.html |here} to see how to use CreateFileSystem API.
|
|
341
358
|
*/
|
|
342
359
|
createFileSystem(createFileSystemRequest) {
|
|
343
360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -350,7 +367,8 @@ class FileStorageClient {
|
|
|
350
367
|
"opc-retry-token": createFileSystemRequest.opcRetryToken,
|
|
351
368
|
"opc-request-id": createFileSystemRequest.opcRequestId
|
|
352
369
|
};
|
|
353
|
-
const
|
|
370
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
371
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createFileSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
354
372
|
if (this.logger)
|
|
355
373
|
retrier.logger = this.logger;
|
|
356
374
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -425,10 +443,11 @@ class FileStorageClient {
|
|
|
425
443
|
* You can also retrieve a resource's OCID by using a List API operation on that resource
|
|
426
444
|
* type, or by viewing the resource in the Console.
|
|
427
445
|
*
|
|
446
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
428
447
|
* @param CreateMountTargetRequest
|
|
429
448
|
* @return CreateMountTargetResponse
|
|
430
449
|
* @throws OciError when an error occurs
|
|
431
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
450
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/CreateMountTarget.ts.html |here} to see how to use CreateMountTarget API.
|
|
432
451
|
*/
|
|
433
452
|
createMountTarget(createMountTargetRequest) {
|
|
434
453
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -441,7 +460,8 @@ class FileStorageClient {
|
|
|
441
460
|
"opc-retry-token": createMountTargetRequest.opcRetryToken,
|
|
442
461
|
"opc-request-id": createMountTargetRequest.opcRequestId
|
|
443
462
|
};
|
|
444
|
-
const
|
|
463
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
464
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMountTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
445
465
|
if (this.logger)
|
|
446
466
|
retrier.logger = this.logger;
|
|
447
467
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -486,10 +506,11 @@ class FileStorageClient {
|
|
|
486
506
|
* Creates a new snapshot of the specified file system. You
|
|
487
507
|
* can access the snapshot at `.snapshot/<name>`.
|
|
488
508
|
*
|
|
509
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
489
510
|
* @param CreateSnapshotRequest
|
|
490
511
|
* @return CreateSnapshotResponse
|
|
491
512
|
* @throws OciError when an error occurs
|
|
492
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
513
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/CreateSnapshot.ts.html |here} to see how to use CreateSnapshot API.
|
|
493
514
|
*/
|
|
494
515
|
createSnapshot(createSnapshotRequest) {
|
|
495
516
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -502,7 +523,8 @@ class FileStorageClient {
|
|
|
502
523
|
"opc-retry-token": createSnapshotRequest.opcRetryToken,
|
|
503
524
|
"opc-request-id": createSnapshotRequest.opcRequestId
|
|
504
525
|
};
|
|
505
|
-
const
|
|
526
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
527
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSnapshotRequest.retryConfiguration, specRetryConfiguration);
|
|
506
528
|
if (this.logger)
|
|
507
529
|
retrier.logger = this.logger;
|
|
508
530
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -546,10 +568,11 @@ class FileStorageClient {
|
|
|
546
568
|
/**
|
|
547
569
|
* Deletes the specified export.
|
|
548
570
|
*
|
|
571
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
549
572
|
* @param DeleteExportRequest
|
|
550
573
|
* @return DeleteExportResponse
|
|
551
574
|
* @throws OciError when an error occurs
|
|
552
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
575
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/DeleteExport.ts.html |here} to see how to use DeleteExport API.
|
|
553
576
|
*/
|
|
554
577
|
deleteExport(deleteExportRequest) {
|
|
555
578
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -564,7 +587,8 @@ class FileStorageClient {
|
|
|
564
587
|
"if-match": deleteExportRequest.ifMatch,
|
|
565
588
|
"opc-request-id": deleteExportRequest.opcRequestId
|
|
566
589
|
};
|
|
567
|
-
const
|
|
590
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
591
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteExportRequest.retryConfiguration, specRetryConfiguration);
|
|
568
592
|
if (this.logger)
|
|
569
593
|
retrier.logger = this.logger;
|
|
570
594
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -600,10 +624,11 @@ class FileStorageClient {
|
|
|
600
624
|
* verify that no remaining export resources still reference it. Deleting a
|
|
601
625
|
* file system also deletes all of its snapshots.
|
|
602
626
|
*
|
|
627
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
603
628
|
* @param DeleteFileSystemRequest
|
|
604
629
|
* @return DeleteFileSystemResponse
|
|
605
630
|
* @throws OciError when an error occurs
|
|
606
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
631
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/DeleteFileSystem.ts.html |here} to see how to use DeleteFileSystem API.
|
|
607
632
|
*/
|
|
608
633
|
deleteFileSystem(deleteFileSystemRequest) {
|
|
609
634
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -618,7 +643,8 @@ class FileStorageClient {
|
|
|
618
643
|
"if-match": deleteFileSystemRequest.ifMatch,
|
|
619
644
|
"opc-request-id": deleteFileSystemRequest.opcRequestId
|
|
620
645
|
};
|
|
621
|
-
const
|
|
646
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
647
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteFileSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
622
648
|
if (this.logger)
|
|
623
649
|
retrier.logger = this.logger;
|
|
624
650
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -653,10 +679,11 @@ class FileStorageClient {
|
|
|
653
679
|
* Deletes the specified mount target. This operation also deletes the
|
|
654
680
|
* mount target's VNICs.
|
|
655
681
|
*
|
|
682
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
656
683
|
* @param DeleteMountTargetRequest
|
|
657
684
|
* @return DeleteMountTargetResponse
|
|
658
685
|
* @throws OciError when an error occurs
|
|
659
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
686
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/DeleteMountTarget.ts.html |here} to see how to use DeleteMountTarget API.
|
|
660
687
|
*/
|
|
661
688
|
deleteMountTarget(deleteMountTargetRequest) {
|
|
662
689
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -671,7 +698,8 @@ class FileStorageClient {
|
|
|
671
698
|
"if-match": deleteMountTargetRequest.ifMatch,
|
|
672
699
|
"opc-request-id": deleteMountTargetRequest.opcRequestId
|
|
673
700
|
};
|
|
674
|
-
const
|
|
701
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
702
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMountTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
675
703
|
if (this.logger)
|
|
676
704
|
retrier.logger = this.logger;
|
|
677
705
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -705,10 +733,11 @@ class FileStorageClient {
|
|
|
705
733
|
/**
|
|
706
734
|
* Deletes the specified snapshot.
|
|
707
735
|
*
|
|
736
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
708
737
|
* @param DeleteSnapshotRequest
|
|
709
738
|
* @return DeleteSnapshotResponse
|
|
710
739
|
* @throws OciError when an error occurs
|
|
711
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
740
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/DeleteSnapshot.ts.html |here} to see how to use DeleteSnapshot API.
|
|
712
741
|
*/
|
|
713
742
|
deleteSnapshot(deleteSnapshotRequest) {
|
|
714
743
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -723,7 +752,8 @@ class FileStorageClient {
|
|
|
723
752
|
"if-match": deleteSnapshotRequest.ifMatch,
|
|
724
753
|
"opc-request-id": deleteSnapshotRequest.opcRequestId
|
|
725
754
|
};
|
|
726
|
-
const
|
|
755
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
756
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSnapshotRequest.retryConfiguration, specRetryConfiguration);
|
|
727
757
|
if (this.logger)
|
|
728
758
|
retrier.logger = this.logger;
|
|
729
759
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -756,10 +786,11 @@ class FileStorageClient {
|
|
|
756
786
|
}
|
|
757
787
|
/**
|
|
758
788
|
* Gets the specified export's information.
|
|
789
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
759
790
|
* @param GetExportRequest
|
|
760
791
|
* @return GetExportResponse
|
|
761
792
|
* @throws OciError when an error occurs
|
|
762
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
793
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/GetExport.ts.html |here} to see how to use GetExport API.
|
|
763
794
|
*/
|
|
764
795
|
getExport(getExportRequest) {
|
|
765
796
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -773,7 +804,8 @@ class FileStorageClient {
|
|
|
773
804
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
774
805
|
"opc-request-id": getExportRequest.opcRequestId
|
|
775
806
|
};
|
|
776
|
-
const
|
|
807
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
808
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getExportRequest.retryConfiguration, specRetryConfiguration);
|
|
777
809
|
if (this.logger)
|
|
778
810
|
retrier.logger = this.logger;
|
|
779
811
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -815,10 +847,11 @@ class FileStorageClient {
|
|
|
815
847
|
}
|
|
816
848
|
/**
|
|
817
849
|
* Gets the specified export set's information.
|
|
850
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
818
851
|
* @param GetExportSetRequest
|
|
819
852
|
* @return GetExportSetResponse
|
|
820
853
|
* @throws OciError when an error occurs
|
|
821
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
854
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/GetExportSet.ts.html |here} to see how to use GetExportSet API.
|
|
822
855
|
*/
|
|
823
856
|
getExportSet(getExportSetRequest) {
|
|
824
857
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -832,7 +865,8 @@ class FileStorageClient {
|
|
|
832
865
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
833
866
|
"opc-request-id": getExportSetRequest.opcRequestId
|
|
834
867
|
};
|
|
835
|
-
const
|
|
868
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
869
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getExportSetRequest.retryConfiguration, specRetryConfiguration);
|
|
836
870
|
if (this.logger)
|
|
837
871
|
retrier.logger = this.logger;
|
|
838
872
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -874,10 +908,11 @@ class FileStorageClient {
|
|
|
874
908
|
}
|
|
875
909
|
/**
|
|
876
910
|
* Gets the specified file system's information.
|
|
911
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
877
912
|
* @param GetFileSystemRequest
|
|
878
913
|
* @return GetFileSystemResponse
|
|
879
914
|
* @throws OciError when an error occurs
|
|
880
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
915
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/GetFileSystem.ts.html |here} to see how to use GetFileSystem API.
|
|
881
916
|
*/
|
|
882
917
|
getFileSystem(getFileSystemRequest) {
|
|
883
918
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -891,7 +926,8 @@ class FileStorageClient {
|
|
|
891
926
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
892
927
|
"opc-request-id": getFileSystemRequest.opcRequestId
|
|
893
928
|
};
|
|
894
|
-
const
|
|
929
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
930
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFileSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
895
931
|
if (this.logger)
|
|
896
932
|
retrier.logger = this.logger;
|
|
897
933
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -933,10 +969,11 @@ class FileStorageClient {
|
|
|
933
969
|
}
|
|
934
970
|
/**
|
|
935
971
|
* Gets the specified mount target's information.
|
|
972
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
936
973
|
* @param GetMountTargetRequest
|
|
937
974
|
* @return GetMountTargetResponse
|
|
938
975
|
* @throws OciError when an error occurs
|
|
939
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
976
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/GetMountTarget.ts.html |here} to see how to use GetMountTarget API.
|
|
940
977
|
*/
|
|
941
978
|
getMountTarget(getMountTargetRequest) {
|
|
942
979
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -950,7 +987,8 @@ class FileStorageClient {
|
|
|
950
987
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
951
988
|
"opc-request-id": getMountTargetRequest.opcRequestId
|
|
952
989
|
};
|
|
953
|
-
const
|
|
990
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
991
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMountTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
954
992
|
if (this.logger)
|
|
955
993
|
retrier.logger = this.logger;
|
|
956
994
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -992,10 +1030,11 @@ class FileStorageClient {
|
|
|
992
1030
|
}
|
|
993
1031
|
/**
|
|
994
1032
|
* Gets the specified snapshot's information.
|
|
1033
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
995
1034
|
* @param GetSnapshotRequest
|
|
996
1035
|
* @return GetSnapshotResponse
|
|
997
1036
|
* @throws OciError when an error occurs
|
|
998
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1037
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/GetSnapshot.ts.html |here} to see how to use GetSnapshot API.
|
|
999
1038
|
*/
|
|
1000
1039
|
getSnapshot(getSnapshotRequest) {
|
|
1001
1040
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1009,7 +1048,8 @@ class FileStorageClient {
|
|
|
1009
1048
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1010
1049
|
"opc-request-id": getSnapshotRequest.opcRequestId
|
|
1011
1050
|
};
|
|
1012
|
-
const
|
|
1051
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1052
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSnapshotRequest.retryConfiguration, specRetryConfiguration);
|
|
1013
1053
|
if (this.logger)
|
|
1014
1054
|
retrier.logger = this.logger;
|
|
1015
1055
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1052,10 +1092,11 @@ class FileStorageClient {
|
|
|
1052
1092
|
/**
|
|
1053
1093
|
* Lists the export set resources in the specified compartment.
|
|
1054
1094
|
*
|
|
1095
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1055
1096
|
* @param ListExportSetsRequest
|
|
1056
1097
|
* @return ListExportSetsResponse
|
|
1057
1098
|
* @throws OciError when an error occurs
|
|
1058
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1099
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/ListExportSets.ts.html |here} to see how to use ListExportSets API.
|
|
1059
1100
|
*/
|
|
1060
1101
|
listExportSets(listExportSetsRequest) {
|
|
1061
1102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1077,7 +1118,8 @@ class FileStorageClient {
|
|
|
1077
1118
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1078
1119
|
"opc-request-id": listExportSetsRequest.opcRequestId
|
|
1079
1120
|
};
|
|
1080
|
-
const
|
|
1121
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1122
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listExportSetsRequest.retryConfiguration, specRetryConfiguration);
|
|
1081
1123
|
if (this.logger)
|
|
1082
1124
|
retrier.logger = this.logger;
|
|
1083
1125
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1162,10 +1204,11 @@ class FileStorageClient {
|
|
|
1162
1204
|
* set. You must specify an export set ID, a file system ID, and
|
|
1163
1205
|
* / or a compartment ID.
|
|
1164
1206
|
*
|
|
1207
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1165
1208
|
* @param ListExportsRequest
|
|
1166
1209
|
* @return ListExportsResponse
|
|
1167
1210
|
* @throws OciError when an error occurs
|
|
1168
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1211
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/ListExports.ts.html |here} to see how to use ListExports API.
|
|
1169
1212
|
*/
|
|
1170
1213
|
listExports(listExportsRequest) {
|
|
1171
1214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1187,7 +1230,8 @@ class FileStorageClient {
|
|
|
1187
1230
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1188
1231
|
"opc-request-id": listExportsRequest.opcRequestId
|
|
1189
1232
|
};
|
|
1190
|
-
const
|
|
1233
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1234
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listExportsRequest.retryConfiguration, specRetryConfiguration);
|
|
1191
1235
|
if (this.logger)
|
|
1192
1236
|
retrier.logger = this.logger;
|
|
1193
1237
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1270,10 +1314,11 @@ class FileStorageClient {
|
|
|
1270
1314
|
/**
|
|
1271
1315
|
* Lists the file system resources in the specified compartment.
|
|
1272
1316
|
*
|
|
1317
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1273
1318
|
* @param ListFileSystemsRequest
|
|
1274
1319
|
* @return ListFileSystemsResponse
|
|
1275
1320
|
* @throws OciError when an error occurs
|
|
1276
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1321
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/ListFileSystems.ts.html |here} to see how to use ListFileSystems API.
|
|
1277
1322
|
*/
|
|
1278
1323
|
listFileSystems(listFileSystemsRequest) {
|
|
1279
1324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1297,7 +1342,8 @@ class FileStorageClient {
|
|
|
1297
1342
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1298
1343
|
"opc-request-id": listFileSystemsRequest.opcRequestId
|
|
1299
1344
|
};
|
|
1300
|
-
const
|
|
1345
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1346
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listFileSystemsRequest.retryConfiguration, specRetryConfiguration);
|
|
1301
1347
|
if (this.logger)
|
|
1302
1348
|
retrier.logger = this.logger;
|
|
1303
1349
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1380,10 +1426,11 @@ class FileStorageClient {
|
|
|
1380
1426
|
/**
|
|
1381
1427
|
* Lists the mount target resources in the specified compartment.
|
|
1382
1428
|
*
|
|
1429
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1383
1430
|
* @param ListMountTargetsRequest
|
|
1384
1431
|
* @return ListMountTargetsResponse
|
|
1385
1432
|
* @throws OciError when an error occurs
|
|
1386
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1433
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/ListMountTargets.ts.html |here} to see how to use ListMountTargets API.
|
|
1387
1434
|
*/
|
|
1388
1435
|
listMountTargets(listMountTargetsRequest) {
|
|
1389
1436
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1406,7 +1453,8 @@ class FileStorageClient {
|
|
|
1406
1453
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1407
1454
|
"opc-request-id": listMountTargetsRequest.opcRequestId
|
|
1408
1455
|
};
|
|
1409
|
-
const
|
|
1456
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1457
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMountTargetsRequest.retryConfiguration, specRetryConfiguration);
|
|
1410
1458
|
if (this.logger)
|
|
1411
1459
|
retrier.logger = this.logger;
|
|
1412
1460
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1489,10 +1537,11 @@ class FileStorageClient {
|
|
|
1489
1537
|
/**
|
|
1490
1538
|
* Lists snapshots of the specified file system.
|
|
1491
1539
|
*
|
|
1540
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1492
1541
|
* @param ListSnapshotsRequest
|
|
1493
1542
|
* @return ListSnapshotsResponse
|
|
1494
1543
|
* @throws OciError when an error occurs
|
|
1495
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1544
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/ListSnapshots.ts.html |here} to see how to use ListSnapshots API.
|
|
1496
1545
|
*/
|
|
1497
1546
|
listSnapshots(listSnapshotsRequest) {
|
|
1498
1547
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1511,7 +1560,8 @@ class FileStorageClient {
|
|
|
1511
1560
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1512
1561
|
"opc-request-id": listSnapshotsRequest.opcRequestId
|
|
1513
1562
|
};
|
|
1514
|
-
const
|
|
1563
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1564
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSnapshotsRequest.retryConfiguration, specRetryConfiguration);
|
|
1515
1565
|
if (this.logger)
|
|
1516
1566
|
retrier.logger = this.logger;
|
|
1517
1567
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1593,10 +1643,11 @@ class FileStorageClient {
|
|
|
1593
1643
|
}
|
|
1594
1644
|
/**
|
|
1595
1645
|
* Updates the specified export's information.
|
|
1646
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1596
1647
|
* @param UpdateExportRequest
|
|
1597
1648
|
* @return UpdateExportResponse
|
|
1598
1649
|
* @throws OciError when an error occurs
|
|
1599
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1650
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/UpdateExport.ts.html |here} to see how to use UpdateExport API.
|
|
1600
1651
|
*/
|
|
1601
1652
|
updateExport(updateExportRequest) {
|
|
1602
1653
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1611,7 +1662,8 @@ class FileStorageClient {
|
|
|
1611
1662
|
"if-match": updateExportRequest.ifMatch,
|
|
1612
1663
|
"opc-request-id": updateExportRequest.opcRequestId
|
|
1613
1664
|
};
|
|
1614
|
-
const
|
|
1665
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1666
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateExportRequest.retryConfiguration, specRetryConfiguration);
|
|
1615
1667
|
if (this.logger)
|
|
1616
1668
|
retrier.logger = this.logger;
|
|
1617
1669
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1654,10 +1706,11 @@ class FileStorageClient {
|
|
|
1654
1706
|
}
|
|
1655
1707
|
/**
|
|
1656
1708
|
* Updates the specified export set's information.
|
|
1709
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1657
1710
|
* @param UpdateExportSetRequest
|
|
1658
1711
|
* @return UpdateExportSetResponse
|
|
1659
1712
|
* @throws OciError when an error occurs
|
|
1660
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1713
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/UpdateExportSet.ts.html |here} to see how to use UpdateExportSet API.
|
|
1661
1714
|
*/
|
|
1662
1715
|
updateExportSet(updateExportSetRequest) {
|
|
1663
1716
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1672,7 +1725,8 @@ class FileStorageClient {
|
|
|
1672
1725
|
"if-match": updateExportSetRequest.ifMatch,
|
|
1673
1726
|
"opc-request-id": updateExportSetRequest.opcRequestId
|
|
1674
1727
|
};
|
|
1675
|
-
const
|
|
1728
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1729
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateExportSetRequest.retryConfiguration, specRetryConfiguration);
|
|
1676
1730
|
if (this.logger)
|
|
1677
1731
|
retrier.logger = this.logger;
|
|
1678
1732
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1717,10 +1771,11 @@ class FileStorageClient {
|
|
|
1717
1771
|
* Updates the specified file system's information.
|
|
1718
1772
|
* You can use this operation to rename a file system.
|
|
1719
1773
|
*
|
|
1774
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1720
1775
|
* @param UpdateFileSystemRequest
|
|
1721
1776
|
* @return UpdateFileSystemResponse
|
|
1722
1777
|
* @throws OciError when an error occurs
|
|
1723
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1778
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/UpdateFileSystem.ts.html |here} to see how to use UpdateFileSystem API.
|
|
1724
1779
|
*/
|
|
1725
1780
|
updateFileSystem(updateFileSystemRequest) {
|
|
1726
1781
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1735,7 +1790,8 @@ class FileStorageClient {
|
|
|
1735
1790
|
"if-match": updateFileSystemRequest.ifMatch,
|
|
1736
1791
|
"opc-request-id": updateFileSystemRequest.opcRequestId
|
|
1737
1792
|
};
|
|
1738
|
-
const
|
|
1793
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1794
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateFileSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
1739
1795
|
if (this.logger)
|
|
1740
1796
|
retrier.logger = this.logger;
|
|
1741
1797
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1778,10 +1834,11 @@ class FileStorageClient {
|
|
|
1778
1834
|
}
|
|
1779
1835
|
/**
|
|
1780
1836
|
* Updates the specified mount target's information.
|
|
1837
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1781
1838
|
* @param UpdateMountTargetRequest
|
|
1782
1839
|
* @return UpdateMountTargetResponse
|
|
1783
1840
|
* @throws OciError when an error occurs
|
|
1784
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1841
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/UpdateMountTarget.ts.html |here} to see how to use UpdateMountTarget API.
|
|
1785
1842
|
*/
|
|
1786
1843
|
updateMountTarget(updateMountTargetRequest) {
|
|
1787
1844
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1796,7 +1853,8 @@ class FileStorageClient {
|
|
|
1796
1853
|
"if-match": updateMountTargetRequest.ifMatch,
|
|
1797
1854
|
"opc-request-id": updateMountTargetRequest.opcRequestId
|
|
1798
1855
|
};
|
|
1799
|
-
const
|
|
1856
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1857
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMountTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
1800
1858
|
if (this.logger)
|
|
1801
1859
|
retrier.logger = this.logger;
|
|
1802
1860
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1839,10 +1897,11 @@ class FileStorageClient {
|
|
|
1839
1897
|
}
|
|
1840
1898
|
/**
|
|
1841
1899
|
* Updates the specified snapshot's information.
|
|
1900
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1842
1901
|
* @param UpdateSnapshotRequest
|
|
1843
1902
|
* @return UpdateSnapshotResponse
|
|
1844
1903
|
* @throws OciError when an error occurs
|
|
1845
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1904
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/filestorage/UpdateSnapshot.ts.html |here} to see how to use UpdateSnapshot API.
|
|
1846
1905
|
*/
|
|
1847
1906
|
updateSnapshot(updateSnapshotRequest) {
|
|
1848
1907
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1857,7 +1916,8 @@ class FileStorageClient {
|
|
|
1857
1916
|
"if-match": updateSnapshotRequest.ifMatch,
|
|
1858
1917
|
"opc-request-id": updateSnapshotRequest.opcRequestId
|
|
1859
1918
|
};
|
|
1860
|
-
const
|
|
1919
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1920
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSnapshotRequest.retryConfiguration, specRetryConfiguration);
|
|
1861
1921
|
if (this.logger)
|
|
1862
1922
|
retrier.logger = this.logger;
|
|
1863
1923
|
const request = yield oci_common_2.composeRequest({
|