oci-filestorage 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 +138 -25
- package/lib/client.js +215 -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 does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
|
|
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 = false;
|
|
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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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({
|
|
@@ -1118,6 +1160,7 @@ class FileStorageClient {
|
|
|
1118
1160
|
});
|
|
1119
1161
|
}
|
|
1120
1162
|
/**
|
|
1163
|
+
* NOTE: This function is deprecated in favor of listExportSetsRecordIterator function.
|
|
1121
1164
|
* Creates a new async iterator which will iterate over the models.ExportSetSummary objects
|
|
1122
1165
|
* contained in responses from the listExportSets operation. This iterator will fetch more data from the
|
|
1123
1166
|
* server as needed.
|
|
@@ -1128,6 +1171,7 @@ class FileStorageClient {
|
|
|
1128
1171
|
return oci_common_1.paginateRecords(request, req => this.listExportSets(req));
|
|
1129
1172
|
}
|
|
1130
1173
|
/**
|
|
1174
|
+
* NOTE: This function is deprecated in favor of listExportSetsResponseIterator function.
|
|
1131
1175
|
* Creates a new async iterator which will iterate over the responses received from the listExportSets operation. This iterator
|
|
1132
1176
|
* will fetch more data from the server as needed.
|
|
1133
1177
|
*
|
|
@@ -1136,15 +1180,35 @@ class FileStorageClient {
|
|
|
1136
1180
|
listAllExportSetsResponses(request) {
|
|
1137
1181
|
return oci_common_1.paginateResponses(request, req => this.listExportSets(req));
|
|
1138
1182
|
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Creates a new async iterator which will iterate over the models.ExportSetSummary objects
|
|
1185
|
+
* contained in responses from the listExportSets operation. This iterator will fetch more data from the
|
|
1186
|
+
* server as needed.
|
|
1187
|
+
*
|
|
1188
|
+
* @param request a request which can be sent to the service operation
|
|
1189
|
+
*/
|
|
1190
|
+
listExportSetsRecordIterator(request) {
|
|
1191
|
+
return oci_common_1.paginateRecords(request, req => this.listExportSets(req));
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* Creates a new async iterator which will iterate over the responses received from the listExportSets operation. This iterator
|
|
1195
|
+
* will fetch more data from the server as needed.
|
|
1196
|
+
*
|
|
1197
|
+
* @param request a request which can be sent to the service operation
|
|
1198
|
+
*/
|
|
1199
|
+
listExportSetsResponseIterator(request) {
|
|
1200
|
+
return oci_common_1.paginateResponses(request, req => this.listExportSets(req));
|
|
1201
|
+
}
|
|
1139
1202
|
/**
|
|
1140
1203
|
* Lists export resources by compartment, file system, or export
|
|
1141
1204
|
* set. You must specify an export set ID, a file system ID, and
|
|
1142
1205
|
* / or a compartment ID.
|
|
1143
1206
|
*
|
|
1207
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1144
1208
|
* @param ListExportsRequest
|
|
1145
1209
|
* @return ListExportsResponse
|
|
1146
1210
|
* @throws OciError when an error occurs
|
|
1147
|
-
* @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.6.0/filestorage/ListExports.ts.html |here} to see how to use ListExports API.
|
|
1148
1212
|
*/
|
|
1149
1213
|
listExports(listExportsRequest) {
|
|
1150
1214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1166,7 +1230,8 @@ class FileStorageClient {
|
|
|
1166
1230
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1167
1231
|
"opc-request-id": listExportsRequest.opcRequestId
|
|
1168
1232
|
};
|
|
1169
|
-
const
|
|
1233
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1234
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listExportsRequest.retryConfiguration, specRetryConfiguration);
|
|
1170
1235
|
if (this.logger)
|
|
1171
1236
|
retrier.logger = this.logger;
|
|
1172
1237
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1207,6 +1272,7 @@ class FileStorageClient {
|
|
|
1207
1272
|
});
|
|
1208
1273
|
}
|
|
1209
1274
|
/**
|
|
1275
|
+
* NOTE: This function is deprecated in favor of listExportsRecordIterator function.
|
|
1210
1276
|
* Creates a new async iterator which will iterate over the models.ExportSummary objects
|
|
1211
1277
|
* contained in responses from the listExports operation. This iterator will fetch more data from the
|
|
1212
1278
|
* server as needed.
|
|
@@ -1217,6 +1283,7 @@ class FileStorageClient {
|
|
|
1217
1283
|
return oci_common_1.paginateRecords(request, req => this.listExports(req));
|
|
1218
1284
|
}
|
|
1219
1285
|
/**
|
|
1286
|
+
* NOTE: This function is deprecated in favor of listExportsResponseIterator function.
|
|
1220
1287
|
* Creates a new async iterator which will iterate over the responses received from the listExports operation. This iterator
|
|
1221
1288
|
* will fetch more data from the server as needed.
|
|
1222
1289
|
*
|
|
@@ -1225,13 +1292,33 @@ class FileStorageClient {
|
|
|
1225
1292
|
listAllExportsResponses(request) {
|
|
1226
1293
|
return oci_common_1.paginateResponses(request, req => this.listExports(req));
|
|
1227
1294
|
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Creates a new async iterator which will iterate over the models.ExportSummary objects
|
|
1297
|
+
* contained in responses from the listExports operation. This iterator will fetch more data from the
|
|
1298
|
+
* server as needed.
|
|
1299
|
+
*
|
|
1300
|
+
* @param request a request which can be sent to the service operation
|
|
1301
|
+
*/
|
|
1302
|
+
listExportsRecordIterator(request) {
|
|
1303
|
+
return oci_common_1.paginateRecords(request, req => this.listExports(req));
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Creates a new async iterator which will iterate over the responses received from the listExports operation. This iterator
|
|
1307
|
+
* will fetch more data from the server as needed.
|
|
1308
|
+
*
|
|
1309
|
+
* @param request a request which can be sent to the service operation
|
|
1310
|
+
*/
|
|
1311
|
+
listExportsResponseIterator(request) {
|
|
1312
|
+
return oci_common_1.paginateResponses(request, req => this.listExports(req));
|
|
1313
|
+
}
|
|
1228
1314
|
/**
|
|
1229
1315
|
* Lists the file system resources in the specified compartment.
|
|
1230
1316
|
*
|
|
1317
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1231
1318
|
* @param ListFileSystemsRequest
|
|
1232
1319
|
* @return ListFileSystemsResponse
|
|
1233
1320
|
* @throws OciError when an error occurs
|
|
1234
|
-
* @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.6.0/filestorage/ListFileSystems.ts.html |here} to see how to use ListFileSystems API.
|
|
1235
1322
|
*/
|
|
1236
1323
|
listFileSystems(listFileSystemsRequest) {
|
|
1237
1324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1255,7 +1342,8 @@ class FileStorageClient {
|
|
|
1255
1342
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1256
1343
|
"opc-request-id": listFileSystemsRequest.opcRequestId
|
|
1257
1344
|
};
|
|
1258
|
-
const
|
|
1345
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1346
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listFileSystemsRequest.retryConfiguration, specRetryConfiguration);
|
|
1259
1347
|
if (this.logger)
|
|
1260
1348
|
retrier.logger = this.logger;
|
|
1261
1349
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1296,6 +1384,7 @@ class FileStorageClient {
|
|
|
1296
1384
|
});
|
|
1297
1385
|
}
|
|
1298
1386
|
/**
|
|
1387
|
+
* NOTE: This function is deprecated in favor of listFileSystemsRecordIterator function.
|
|
1299
1388
|
* Creates a new async iterator which will iterate over the models.FileSystemSummary objects
|
|
1300
1389
|
* contained in responses from the listFileSystems operation. This iterator will fetch more data from the
|
|
1301
1390
|
* server as needed.
|
|
@@ -1306,6 +1395,7 @@ class FileStorageClient {
|
|
|
1306
1395
|
return oci_common_1.paginateRecords(request, req => this.listFileSystems(req));
|
|
1307
1396
|
}
|
|
1308
1397
|
/**
|
|
1398
|
+
* NOTE: This function is deprecated in favor of listFileSystemsResponseIterator function.
|
|
1309
1399
|
* Creates a new async iterator which will iterate over the responses received from the listFileSystems operation. This iterator
|
|
1310
1400
|
* will fetch more data from the server as needed.
|
|
1311
1401
|
*
|
|
@@ -1314,13 +1404,33 @@ class FileStorageClient {
|
|
|
1314
1404
|
listAllFileSystemsResponses(request) {
|
|
1315
1405
|
return oci_common_1.paginateResponses(request, req => this.listFileSystems(req));
|
|
1316
1406
|
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Creates a new async iterator which will iterate over the models.FileSystemSummary objects
|
|
1409
|
+
* contained in responses from the listFileSystems operation. This iterator will fetch more data from the
|
|
1410
|
+
* server as needed.
|
|
1411
|
+
*
|
|
1412
|
+
* @param request a request which can be sent to the service operation
|
|
1413
|
+
*/
|
|
1414
|
+
listFileSystemsRecordIterator(request) {
|
|
1415
|
+
return oci_common_1.paginateRecords(request, req => this.listFileSystems(req));
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Creates a new async iterator which will iterate over the responses received from the listFileSystems operation. This iterator
|
|
1419
|
+
* will fetch more data from the server as needed.
|
|
1420
|
+
*
|
|
1421
|
+
* @param request a request which can be sent to the service operation
|
|
1422
|
+
*/
|
|
1423
|
+
listFileSystemsResponseIterator(request) {
|
|
1424
|
+
return oci_common_1.paginateResponses(request, req => this.listFileSystems(req));
|
|
1425
|
+
}
|
|
1317
1426
|
/**
|
|
1318
1427
|
* Lists the mount target resources in the specified compartment.
|
|
1319
1428
|
*
|
|
1429
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1320
1430
|
* @param ListMountTargetsRequest
|
|
1321
1431
|
* @return ListMountTargetsResponse
|
|
1322
1432
|
* @throws OciError when an error occurs
|
|
1323
|
-
* @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.6.0/filestorage/ListMountTargets.ts.html |here} to see how to use ListMountTargets API.
|
|
1324
1434
|
*/
|
|
1325
1435
|
listMountTargets(listMountTargetsRequest) {
|
|
1326
1436
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1343,7 +1453,8 @@ class FileStorageClient {
|
|
|
1343
1453
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1344
1454
|
"opc-request-id": listMountTargetsRequest.opcRequestId
|
|
1345
1455
|
};
|
|
1346
|
-
const
|
|
1456
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1457
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMountTargetsRequest.retryConfiguration, specRetryConfiguration);
|
|
1347
1458
|
if (this.logger)
|
|
1348
1459
|
retrier.logger = this.logger;
|
|
1349
1460
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1384,6 +1495,7 @@ class FileStorageClient {
|
|
|
1384
1495
|
});
|
|
1385
1496
|
}
|
|
1386
1497
|
/**
|
|
1498
|
+
* NOTE: This function is deprecated in favor of listMountTargetsRecordIterator function.
|
|
1387
1499
|
* Creates a new async iterator which will iterate over the models.MountTargetSummary objects
|
|
1388
1500
|
* contained in responses from the listMountTargets operation. This iterator will fetch more data from the
|
|
1389
1501
|
* server as needed.
|
|
@@ -1394,6 +1506,7 @@ class FileStorageClient {
|
|
|
1394
1506
|
return oci_common_1.paginateRecords(request, req => this.listMountTargets(req));
|
|
1395
1507
|
}
|
|
1396
1508
|
/**
|
|
1509
|
+
* NOTE: This function is deprecated in favor of listMountTargetsResponseIterator function.
|
|
1397
1510
|
* Creates a new async iterator which will iterate over the responses received from the listMountTargets operation. This iterator
|
|
1398
1511
|
* will fetch more data from the server as needed.
|
|
1399
1512
|
*
|
|
@@ -1402,13 +1515,33 @@ class FileStorageClient {
|
|
|
1402
1515
|
listAllMountTargetsResponses(request) {
|
|
1403
1516
|
return oci_common_1.paginateResponses(request, req => this.listMountTargets(req));
|
|
1404
1517
|
}
|
|
1518
|
+
/**
|
|
1519
|
+
* Creates a new async iterator which will iterate over the models.MountTargetSummary objects
|
|
1520
|
+
* contained in responses from the listMountTargets operation. This iterator will fetch more data from the
|
|
1521
|
+
* server as needed.
|
|
1522
|
+
*
|
|
1523
|
+
* @param request a request which can be sent to the service operation
|
|
1524
|
+
*/
|
|
1525
|
+
listMountTargetsRecordIterator(request) {
|
|
1526
|
+
return oci_common_1.paginateRecords(request, req => this.listMountTargets(req));
|
|
1527
|
+
}
|
|
1528
|
+
/**
|
|
1529
|
+
* Creates a new async iterator which will iterate over the responses received from the listMountTargets operation. This iterator
|
|
1530
|
+
* will fetch more data from the server as needed.
|
|
1531
|
+
*
|
|
1532
|
+
* @param request a request which can be sent to the service operation
|
|
1533
|
+
*/
|
|
1534
|
+
listMountTargetsResponseIterator(request) {
|
|
1535
|
+
return oci_common_1.paginateResponses(request, req => this.listMountTargets(req));
|
|
1536
|
+
}
|
|
1405
1537
|
/**
|
|
1406
1538
|
* Lists snapshots of the specified file system.
|
|
1407
1539
|
*
|
|
1540
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1408
1541
|
* @param ListSnapshotsRequest
|
|
1409
1542
|
* @return ListSnapshotsResponse
|
|
1410
1543
|
* @throws OciError when an error occurs
|
|
1411
|
-
* @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.6.0/filestorage/ListSnapshots.ts.html |here} to see how to use ListSnapshots API.
|
|
1412
1545
|
*/
|
|
1413
1546
|
listSnapshots(listSnapshotsRequest) {
|
|
1414
1547
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1427,7 +1560,8 @@ class FileStorageClient {
|
|
|
1427
1560
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1428
1561
|
"opc-request-id": listSnapshotsRequest.opcRequestId
|
|
1429
1562
|
};
|
|
1430
|
-
const
|
|
1563
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1564
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSnapshotsRequest.retryConfiguration, specRetryConfiguration);
|
|
1431
1565
|
if (this.logger)
|
|
1432
1566
|
retrier.logger = this.logger;
|
|
1433
1567
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1468,6 +1602,7 @@ class FileStorageClient {
|
|
|
1468
1602
|
});
|
|
1469
1603
|
}
|
|
1470
1604
|
/**
|
|
1605
|
+
* NOTE: This function is deprecated in favor of listSnapshotsRecordIterator function.
|
|
1471
1606
|
* Creates a new async iterator which will iterate over the models.SnapshotSummary objects
|
|
1472
1607
|
* contained in responses from the listSnapshots operation. This iterator will fetch more data from the
|
|
1473
1608
|
* server as needed.
|
|
@@ -1478,6 +1613,7 @@ class FileStorageClient {
|
|
|
1478
1613
|
return oci_common_1.paginateRecords(request, req => this.listSnapshots(req));
|
|
1479
1614
|
}
|
|
1480
1615
|
/**
|
|
1616
|
+
* NOTE: This function is deprecated in favor of listSnapshotsResponseIterator function.
|
|
1481
1617
|
* Creates a new async iterator which will iterate over the responses received from the listSnapshots operation. This iterator
|
|
1482
1618
|
* will fetch more data from the server as needed.
|
|
1483
1619
|
*
|
|
@@ -1486,12 +1622,32 @@ class FileStorageClient {
|
|
|
1486
1622
|
listAllSnapshotsResponses(request) {
|
|
1487
1623
|
return oci_common_1.paginateResponses(request, req => this.listSnapshots(req));
|
|
1488
1624
|
}
|
|
1625
|
+
/**
|
|
1626
|
+
* Creates a new async iterator which will iterate over the models.SnapshotSummary objects
|
|
1627
|
+
* contained in responses from the listSnapshots operation. This iterator will fetch more data from the
|
|
1628
|
+
* server as needed.
|
|
1629
|
+
*
|
|
1630
|
+
* @param request a request which can be sent to the service operation
|
|
1631
|
+
*/
|
|
1632
|
+
listSnapshotsRecordIterator(request) {
|
|
1633
|
+
return oci_common_1.paginateRecords(request, req => this.listSnapshots(req));
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Creates a new async iterator which will iterate over the responses received from the listSnapshots operation. This iterator
|
|
1637
|
+
* will fetch more data from the server as needed.
|
|
1638
|
+
*
|
|
1639
|
+
* @param request a request which can be sent to the service operation
|
|
1640
|
+
*/
|
|
1641
|
+
listSnapshotsResponseIterator(request) {
|
|
1642
|
+
return oci_common_1.paginateResponses(request, req => this.listSnapshots(req));
|
|
1643
|
+
}
|
|
1489
1644
|
/**
|
|
1490
1645
|
* Updates the specified export's information.
|
|
1646
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1491
1647
|
* @param UpdateExportRequest
|
|
1492
1648
|
* @return UpdateExportResponse
|
|
1493
1649
|
* @throws OciError when an error occurs
|
|
1494
|
-
* @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.6.0/filestorage/UpdateExport.ts.html |here} to see how to use UpdateExport API.
|
|
1495
1651
|
*/
|
|
1496
1652
|
updateExport(updateExportRequest) {
|
|
1497
1653
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1506,7 +1662,8 @@ class FileStorageClient {
|
|
|
1506
1662
|
"if-match": updateExportRequest.ifMatch,
|
|
1507
1663
|
"opc-request-id": updateExportRequest.opcRequestId
|
|
1508
1664
|
};
|
|
1509
|
-
const
|
|
1665
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1666
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateExportRequest.retryConfiguration, specRetryConfiguration);
|
|
1510
1667
|
if (this.logger)
|
|
1511
1668
|
retrier.logger = this.logger;
|
|
1512
1669
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1549,10 +1706,11 @@ class FileStorageClient {
|
|
|
1549
1706
|
}
|
|
1550
1707
|
/**
|
|
1551
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.
|
|
1552
1710
|
* @param UpdateExportSetRequest
|
|
1553
1711
|
* @return UpdateExportSetResponse
|
|
1554
1712
|
* @throws OciError when an error occurs
|
|
1555
|
-
* @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.6.0/filestorage/UpdateExportSet.ts.html |here} to see how to use UpdateExportSet API.
|
|
1556
1714
|
*/
|
|
1557
1715
|
updateExportSet(updateExportSetRequest) {
|
|
1558
1716
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1567,7 +1725,8 @@ class FileStorageClient {
|
|
|
1567
1725
|
"if-match": updateExportSetRequest.ifMatch,
|
|
1568
1726
|
"opc-request-id": updateExportSetRequest.opcRequestId
|
|
1569
1727
|
};
|
|
1570
|
-
const
|
|
1728
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1729
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateExportSetRequest.retryConfiguration, specRetryConfiguration);
|
|
1571
1730
|
if (this.logger)
|
|
1572
1731
|
retrier.logger = this.logger;
|
|
1573
1732
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1612,10 +1771,11 @@ class FileStorageClient {
|
|
|
1612
1771
|
* Updates the specified file system's information.
|
|
1613
1772
|
* You can use this operation to rename a file system.
|
|
1614
1773
|
*
|
|
1774
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1615
1775
|
* @param UpdateFileSystemRequest
|
|
1616
1776
|
* @return UpdateFileSystemResponse
|
|
1617
1777
|
* @throws OciError when an error occurs
|
|
1618
|
-
* @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.6.0/filestorage/UpdateFileSystem.ts.html |here} to see how to use UpdateFileSystem API.
|
|
1619
1779
|
*/
|
|
1620
1780
|
updateFileSystem(updateFileSystemRequest) {
|
|
1621
1781
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1630,7 +1790,8 @@ class FileStorageClient {
|
|
|
1630
1790
|
"if-match": updateFileSystemRequest.ifMatch,
|
|
1631
1791
|
"opc-request-id": updateFileSystemRequest.opcRequestId
|
|
1632
1792
|
};
|
|
1633
|
-
const
|
|
1793
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1794
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateFileSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
1634
1795
|
if (this.logger)
|
|
1635
1796
|
retrier.logger = this.logger;
|
|
1636
1797
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1673,10 +1834,11 @@ class FileStorageClient {
|
|
|
1673
1834
|
}
|
|
1674
1835
|
/**
|
|
1675
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.
|
|
1676
1838
|
* @param UpdateMountTargetRequest
|
|
1677
1839
|
* @return UpdateMountTargetResponse
|
|
1678
1840
|
* @throws OciError when an error occurs
|
|
1679
|
-
* @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.6.0/filestorage/UpdateMountTarget.ts.html |here} to see how to use UpdateMountTarget API.
|
|
1680
1842
|
*/
|
|
1681
1843
|
updateMountTarget(updateMountTargetRequest) {
|
|
1682
1844
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1691,7 +1853,8 @@ class FileStorageClient {
|
|
|
1691
1853
|
"if-match": updateMountTargetRequest.ifMatch,
|
|
1692
1854
|
"opc-request-id": updateMountTargetRequest.opcRequestId
|
|
1693
1855
|
};
|
|
1694
|
-
const
|
|
1856
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1857
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMountTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
1695
1858
|
if (this.logger)
|
|
1696
1859
|
retrier.logger = this.logger;
|
|
1697
1860
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1734,10 +1897,11 @@ class FileStorageClient {
|
|
|
1734
1897
|
}
|
|
1735
1898
|
/**
|
|
1736
1899
|
* Updates the specified snapshot's information.
|
|
1900
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1737
1901
|
* @param UpdateSnapshotRequest
|
|
1738
1902
|
* @return UpdateSnapshotResponse
|
|
1739
1903
|
* @throws OciError when an error occurs
|
|
1740
|
-
* @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.6.0/filestorage/UpdateSnapshot.ts.html |here} to see how to use UpdateSnapshot API.
|
|
1741
1905
|
*/
|
|
1742
1906
|
updateSnapshot(updateSnapshotRequest) {
|
|
1743
1907
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1752,7 +1916,8 @@ class FileStorageClient {
|
|
|
1752
1916
|
"if-match": updateSnapshotRequest.ifMatch,
|
|
1753
1917
|
"opc-request-id": updateSnapshotRequest.opcRequestId
|
|
1754
1918
|
};
|
|
1755
|
-
const
|
|
1919
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1920
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSnapshotRequest.retryConfiguration, specRetryConfiguration);
|
|
1756
1921
|
if (this.logger)
|
|
1757
1922
|
retrier.logger = this.logger;
|
|
1758
1923
|
const request = yield oci_common_2.composeRequest({
|