oci-filestorage 2.42.0 → 2.44.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/index.d.ts +2 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/lib/client.d.ts +219 -26
- package/lib/client.js +819 -69
- package/lib/client.js.map +1 -1
- package/lib/filestorage-waiter.d.ts +18 -1
- package/lib/filestorage-waiter.js +26 -1
- package/lib/filestorage-waiter.js.map +1 -1
- package/lib/model/change-file-system-compartment-details.d.ts +2 -1
- package/lib/model/change-file-system-compartment-details.js +2 -1
- package/lib/model/change-file-system-compartment-details.js.map +1 -1
- package/lib/model/change-mount-target-compartment-details.d.ts +2 -1
- package/lib/model/change-mount-target-compartment-details.js +2 -1
- package/lib/model/change-mount-target-compartment-details.js.map +1 -1
- package/lib/model/change-replication-compartment-details.d.ts +28 -0
- package/lib/model/change-replication-compartment-details.js +31 -0
- package/lib/model/change-replication-compartment-details.js.map +1 -0
- package/lib/model/client-options.d.ts +2 -1
- package/lib/model/client-options.js +2 -1
- package/lib/model/client-options.js.map +1 -1
- package/lib/model/create-export-details.d.ts +2 -1
- package/lib/model/create-export-details.js +2 -1
- package/lib/model/create-export-details.js.map +1 -1
- package/lib/model/create-file-system-details.d.ts +3 -2
- package/lib/model/create-file-system-details.js +2 -1
- package/lib/model/create-file-system-details.js.map +1 -1
- package/lib/model/create-mount-target-details.d.ts +18 -1
- package/lib/model/create-mount-target-details.js +2 -1
- package/lib/model/create-mount-target-details.js.map +1 -1
- package/lib/model/create-replication-details.d.ts +70 -0
- package/lib/model/create-replication-details.js +31 -0
- package/lib/model/create-replication-details.js.map +1 -0
- package/lib/model/create-snapshot-details.d.ts +2 -1
- package/lib/model/create-snapshot-details.js +2 -1
- package/lib/model/create-snapshot-details.js.map +1 -1
- package/lib/model/export-set-summary.d.ts +2 -1
- package/lib/model/export-set-summary.js +2 -1
- package/lib/model/export-set-summary.js.map +1 -1
- package/lib/model/export-set.d.ts +2 -3
- package/lib/model/export-set.js +2 -1
- package/lib/model/export-set.js.map +1 -1
- package/lib/model/export-summary.d.ts +2 -1
- package/lib/model/export-summary.js +2 -1
- package/lib/model/export-summary.js.map +1 -1
- package/lib/model/export.d.ts +2 -3
- package/lib/model/export.js +2 -1
- package/lib/model/export.js.map +1 -1
- package/lib/model/file-system-summary.d.ts +5 -3
- package/lib/model/file-system-summary.js +3 -1
- package/lib/model/file-system-summary.js.map +1 -1
- package/lib/model/file-system.d.ts +17 -5
- package/lib/model/file-system.js +3 -1
- package/lib/model/file-system.js.map +1 -1
- package/lib/model/index.d.ts +18 -1
- package/lib/model/index.js +19 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/mount-target-summary.d.ts +2 -1
- package/lib/model/mount-target-summary.js +2 -1
- package/lib/model/mount-target-summary.js.map +1 -1
- package/lib/model/mount-target.d.ts +2 -3
- package/lib/model/mount-target.js +2 -1
- package/lib/model/mount-target.js.map +1 -1
- package/lib/model/replication-estimate.d.ts +43 -0
- package/lib/model/replication-estimate.js +31 -0
- package/lib/model/replication-estimate.js.map +1 -0
- package/lib/model/replication-summary.d.ts +106 -0
- package/lib/model/replication-summary.js +44 -0
- package/lib/model/replication-summary.js.map +1 -0
- package/lib/model/replication-target-summary.d.ts +99 -0
- package/lib/model/replication-target-summary.js +44 -0
- package/lib/model/replication-target-summary.js.map +1 -0
- package/lib/model/replication-target.d.ts +150 -0
- package/lib/model/replication-target.js +59 -0
- package/lib/model/replication-target.js.map +1 -0
- package/lib/model/replication.d.ts +155 -0
- package/lib/model/replication.js +59 -0
- package/lib/model/replication.js.map +1 -0
- package/lib/model/snapshot-summary.d.ts +33 -4
- package/lib/model/snapshot-summary.js +13 -1
- package/lib/model/snapshot-summary.js.map +1 -1
- package/lib/model/snapshot.d.ts +33 -6
- package/lib/model/snapshot.js +13 -1
- package/lib/model/snapshot.js.map +1 -1
- package/lib/model/source-details.d.ts +4 -3
- package/lib/model/source-details.js +2 -1
- package/lib/model/source-details.js.map +1 -1
- package/lib/model/update-export-details.d.ts +2 -1
- package/lib/model/update-export-details.js +2 -1
- package/lib/model/update-export-details.js.map +1 -1
- package/lib/model/update-export-set-details.d.ts +2 -1
- package/lib/model/update-export-set-details.js +2 -1
- package/lib/model/update-export-set-details.js.map +1 -1
- package/lib/model/update-file-system-details.d.ts +5 -2
- package/lib/model/update-file-system-details.js +2 -1
- package/lib/model/update-file-system-details.js.map +1 -1
- package/lib/model/update-mount-target-details.d.ts +2 -1
- package/lib/model/update-mount-target-details.js +2 -1
- package/lib/model/update-mount-target-details.js.map +1 -1
- package/lib/model/update-replication-details.d.ts +56 -0
- package/lib/model/update-replication-details.js +31 -0
- package/lib/model/update-replication-details.js.map +1 -0
- package/lib/model/update-snapshot-details.d.ts +2 -1
- package/lib/model/update-snapshot-details.js +2 -1
- package/lib/model/update-snapshot-details.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/change-replication-compartment-request.d.ts +42 -0
- package/lib/request/change-replication-compartment-request.js +15 -0
- package/lib/request/change-replication-compartment-request.js.map +1 -0
- 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-replication-request.d.ts +38 -0
- package/lib/request/create-replication-request.js +15 -0
- package/lib/request/create-replication-request.js.map +1 -0
- 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-replication-request.d.ts +52 -0
- package/lib/request/delete-replication-request.js +25 -0
- package/lib/request/delete-replication-request.js.map +1 -0
- package/lib/request/delete-replication-target-request.d.ts +37 -0
- package/lib/request/delete-replication-target-request.js +15 -0
- package/lib/request/delete-replication-target-request.js.map +1 -0
- package/lib/request/delete-snapshot-request.d.ts +1 -1
- package/lib/request/estimate-replication-request.d.ts +41 -0
- package/lib/request/estimate-replication-request.js +15 -0
- package/lib/request/estimate-replication-request.js.map +1 -0
- 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-replication-request.d.ts +28 -0
- package/lib/request/get-replication-request.js +15 -0
- package/lib/request/get-replication-request.js.map +1 -0
- package/lib/request/get-replication-target-request.d.ts +28 -0
- package/lib/request/get-replication-target-request.js +15 -0
- package/lib/request/get-replication-target-request.js.map +1 -0
- package/lib/request/get-snapshot-request.d.ts +1 -1
- package/lib/request/index.d.ts +22 -1
- package/lib/request/index.js +9 -2
- package/lib/request/index.js.map +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 +3 -3
- package/lib/request/list-mount-targets-request.d.ts +1 -1
- package/lib/request/list-replication-targets-request.d.ts +107 -0
- package/lib/request/list-replication-targets-request.js +37 -0
- package/lib/request/list-replication-targets-request.js.map +1 -0
- package/lib/request/list-replications-request.d.ts +111 -0
- package/lib/request/list-replications-request.js +37 -0
- package/lib/request/list-replications-request.js.map +1 -0
- 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-replication-request.d.ts +42 -0
- package/lib/request/update-replication-request.js +15 -0
- package/lib/request/update-replication-request.js.map +1 -0
- package/lib/request/update-snapshot-request.d.ts +1 -1
- package/lib/response/change-replication-compartment-response.d.ts +18 -0
- package/lib/response/change-replication-compartment-response.js +15 -0
- package/lib/response/change-replication-compartment-response.js.map +1 -0
- package/lib/response/create-replication-response.d.ts +30 -0
- package/lib/response/create-replication-response.js +15 -0
- package/lib/response/create-replication-response.js.map +1 -0
- package/lib/response/delete-replication-response.d.ts +21 -0
- package/lib/response/delete-replication-response.js +15 -0
- package/lib/response/delete-replication-response.js.map +1 -0
- package/lib/response/delete-replication-target-response.d.ts +21 -0
- package/lib/response/delete-replication-target-response.js +15 -0
- package/lib/response/delete-replication-target-response.js.map +1 -0
- package/lib/response/estimate-replication-response.d.ts +30 -0
- package/lib/response/estimate-replication-response.js +15 -0
- package/lib/response/estimate-replication-response.js.map +1 -0
- package/lib/response/get-replication-response.d.ts +30 -0
- package/lib/response/get-replication-response.js +15 -0
- package/lib/response/get-replication-response.js.map +1 -0
- package/lib/response/get-replication-target-response.d.ts +30 -0
- package/lib/response/get-replication-target-response.js +15 -0
- package/lib/response/get-replication-target-response.js.map +1 -0
- package/lib/response/index.d.ts +22 -1
- package/lib/response/index.js +2 -1
- package/lib/response/index.js.map +1 -1
- package/lib/response/list-replication-targets-response.d.ts +35 -0
- package/lib/response/list-replication-targets-response.js +15 -0
- package/lib/response/list-replication-targets-response.js.map +1 -0
- package/lib/response/list-replications-response.d.ts +35 -0
- package/lib/response/list-replications-response.js +15 -0
- package/lib/response/list-replications-response.js.map +1 -0
- package/lib/response/update-replication-response.d.ts +30 -0
- package/lib/response/update-replication-response.js +15 -0
- package/lib/response/update-replication-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* File Storage API
|
|
4
|
-
*
|
|
4
|
+
* Use the File Storage service API to manage file systems, mount targets, and snapshots.
|
|
5
|
+
For more information, see [Overview of File Storage](/iaas/Content/File/Concepts/filestorageoverview.htm).
|
|
5
6
|
|
|
6
7
|
* OpenAPI spec version: 20171215
|
|
7
8
|
*
|
|
@@ -159,7 +160,7 @@ class FileStorageClient {
|
|
|
159
160
|
* @param ChangeFileSystemCompartmentRequest
|
|
160
161
|
* @return ChangeFileSystemCompartmentResponse
|
|
161
162
|
* @throws OciError when an error occurs
|
|
162
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
163
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ChangeFileSystemCompartment.ts.html |here} to see how to use ChangeFileSystemCompartment API.
|
|
163
164
|
*/
|
|
164
165
|
changeFileSystemCompartment(changeFileSystemCompartmentRequest) {
|
|
165
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -216,7 +217,7 @@ class FileStorageClient {
|
|
|
216
217
|
* @param ChangeMountTargetCompartmentRequest
|
|
217
218
|
* @return ChangeMountTargetCompartmentResponse
|
|
218
219
|
* @throws OciError when an error occurs
|
|
219
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
220
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ChangeMountTargetCompartment.ts.html |here} to see how to use ChangeMountTargetCompartment API.
|
|
220
221
|
*/
|
|
221
222
|
changeMountTargetCompartment(changeMountTargetCompartmentRequest) {
|
|
222
223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -266,6 +267,64 @@ class FileStorageClient {
|
|
|
266
267
|
}
|
|
267
268
|
});
|
|
268
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Moves a replication and its replication target into a different compartment within the same tenancy.
|
|
272
|
+
* 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).
|
|
273
|
+
*
|
|
274
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
275
|
+
* @param ChangeReplicationCompartmentRequest
|
|
276
|
+
* @return ChangeReplicationCompartmentResponse
|
|
277
|
+
* @throws OciError when an error occurs
|
|
278
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ChangeReplicationCompartment.ts.html |here} to see how to use ChangeReplicationCompartment API.
|
|
279
|
+
*/
|
|
280
|
+
changeReplicationCompartment(changeReplicationCompartmentRequest) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
282
|
+
if (this.logger)
|
|
283
|
+
this.logger.debug("Calling operation FileStorageClient#changeReplicationCompartment.");
|
|
284
|
+
const operationName = "changeReplicationCompartment";
|
|
285
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/ChangeReplicationCompartment";
|
|
286
|
+
const pathParams = {
|
|
287
|
+
"{replicationId}": changeReplicationCompartmentRequest.replicationId
|
|
288
|
+
};
|
|
289
|
+
const queryParams = {};
|
|
290
|
+
let headerParams = {
|
|
291
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
292
|
+
"if-match": changeReplicationCompartmentRequest.ifMatch,
|
|
293
|
+
"opc-request-id": changeReplicationCompartmentRequest.opcRequestId
|
|
294
|
+
};
|
|
295
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
296
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeReplicationCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
297
|
+
if (this.logger)
|
|
298
|
+
retrier.logger = this.logger;
|
|
299
|
+
const request = yield oci_common_2.composeRequest({
|
|
300
|
+
baseEndpoint: this._endpoint,
|
|
301
|
+
defaultHeaders: this._defaultHeaders,
|
|
302
|
+
path: "/replications/{replicationId}/actions/changeCompartment",
|
|
303
|
+
method: "POST",
|
|
304
|
+
bodyContent: common.ObjectSerializer.serialize(changeReplicationCompartmentRequest.changeReplicationCompartmentDetails, "ChangeReplicationCompartmentDetails", model.ChangeReplicationCompartmentDetails.getJsonObj),
|
|
305
|
+
pathParams: pathParams,
|
|
306
|
+
headerParams: headerParams,
|
|
307
|
+
queryParams: queryParams
|
|
308
|
+
});
|
|
309
|
+
try {
|
|
310
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
311
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
312
|
+
responseObject: {},
|
|
313
|
+
responseHeaders: [
|
|
314
|
+
{
|
|
315
|
+
value: response.headers.get("opc-request-id"),
|
|
316
|
+
key: "opcRequestId",
|
|
317
|
+
dataType: "string"
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
});
|
|
321
|
+
return sdkResponse;
|
|
322
|
+
}
|
|
323
|
+
catch (err) {
|
|
324
|
+
throw err;
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
}
|
|
269
328
|
/**
|
|
270
329
|
* Creates a new export in the specified export set, path, and
|
|
271
330
|
* file system.
|
|
@@ -274,7 +333,7 @@ class FileStorageClient {
|
|
|
274
333
|
* @param CreateExportRequest
|
|
275
334
|
* @return CreateExportResponse
|
|
276
335
|
* @throws OciError when an error occurs
|
|
277
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
336
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/CreateExport.ts.html |here} to see how to use CreateExport API.
|
|
278
337
|
*/
|
|
279
338
|
createExport(createExportRequest) {
|
|
280
339
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -366,7 +425,7 @@ class FileStorageClient {
|
|
|
366
425
|
* @param CreateFileSystemRequest
|
|
367
426
|
* @return CreateFileSystemResponse
|
|
368
427
|
* @throws OciError when an error occurs
|
|
369
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
428
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/CreateFileSystem.ts.html |here} to see how to use CreateFileSystem API.
|
|
370
429
|
*/
|
|
371
430
|
createFileSystem(createFileSystemRequest) {
|
|
372
431
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -461,7 +520,7 @@ class FileStorageClient {
|
|
|
461
520
|
* @param CreateMountTargetRequest
|
|
462
521
|
* @return CreateMountTargetResponse
|
|
463
522
|
* @throws OciError when an error occurs
|
|
464
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
523
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/CreateMountTarget.ts.html |here} to see how to use CreateMountTarget API.
|
|
465
524
|
*/
|
|
466
525
|
createMountTarget(createMountTargetRequest) {
|
|
467
526
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -518,6 +577,96 @@ class FileStorageClient {
|
|
|
518
577
|
}
|
|
519
578
|
});
|
|
520
579
|
}
|
|
580
|
+
/**
|
|
581
|
+
* Creates a new replication in the specified compartment.
|
|
582
|
+
* Replications are the primary resource that governs the policy of cross-region replication between source
|
|
583
|
+
* and target file systems. Replications are associated with a secondary resource called a {@link ReplicationTarget}
|
|
584
|
+
* located in another availability domain.
|
|
585
|
+
* The associated replication target resource is automatically created along with the replication resource.
|
|
586
|
+
* The replication retrieves the delta of data between two snapshots of a source file system
|
|
587
|
+
* and sends it to the associated `ReplicationTarget`, which retrieves the delta and applies it to the target
|
|
588
|
+
* file system.
|
|
589
|
+
* Only unexported file systems can be used as target file systems.
|
|
590
|
+
* For more information, see [Using Replication](https://docs.cloud.oracle.com/iaas/Content/File/Tasks/FSreplication.htm).
|
|
591
|
+
* <p>
|
|
592
|
+
For information about access control and compartments, see
|
|
593
|
+
* [Overview of the IAM
|
|
594
|
+
* Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm).
|
|
595
|
+
* <p>
|
|
596
|
+
For information about availability domains, see [Regions and
|
|
597
|
+
* Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm).
|
|
598
|
+
* To get a list of availability domains, use the
|
|
599
|
+
* `ListAvailabilityDomains` operation in the Identity and Access
|
|
600
|
+
* Management Service API.
|
|
601
|
+
* <p>
|
|
602
|
+
All Oracle Cloud Infrastructure Services resources, including
|
|
603
|
+
* replications, get an Oracle-assigned, unique ID called an
|
|
604
|
+
* Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)).
|
|
605
|
+
* When you create a resource, you can find its OCID in the response.
|
|
606
|
+
* You can also retrieve a resource's OCID by using a List API operation on that resource
|
|
607
|
+
* type, or by viewing the resource in the Console.
|
|
608
|
+
*
|
|
609
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
610
|
+
* @param CreateReplicationRequest
|
|
611
|
+
* @return CreateReplicationResponse
|
|
612
|
+
* @throws OciError when an error occurs
|
|
613
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/CreateReplication.ts.html |here} to see how to use CreateReplication API.
|
|
614
|
+
*/
|
|
615
|
+
createReplication(createReplicationRequest) {
|
|
616
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
617
|
+
if (this.logger)
|
|
618
|
+
this.logger.debug("Calling operation FileStorageClient#createReplication.");
|
|
619
|
+
const operationName = "createReplication";
|
|
620
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/CreateReplication";
|
|
621
|
+
const pathParams = {};
|
|
622
|
+
const queryParams = {};
|
|
623
|
+
let headerParams = {
|
|
624
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
625
|
+
"opc-retry-token": createReplicationRequest.opcRetryToken,
|
|
626
|
+
"opc-request-id": createReplicationRequest.opcRequestId
|
|
627
|
+
};
|
|
628
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
629
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createReplicationRequest.retryConfiguration, specRetryConfiguration);
|
|
630
|
+
if (this.logger)
|
|
631
|
+
retrier.logger = this.logger;
|
|
632
|
+
const request = yield oci_common_2.composeRequest({
|
|
633
|
+
baseEndpoint: this._endpoint,
|
|
634
|
+
defaultHeaders: this._defaultHeaders,
|
|
635
|
+
path: "/replications",
|
|
636
|
+
method: "POST",
|
|
637
|
+
bodyContent: common.ObjectSerializer.serialize(createReplicationRequest.createReplicationDetails, "CreateReplicationDetails", model.CreateReplicationDetails.getJsonObj),
|
|
638
|
+
pathParams: pathParams,
|
|
639
|
+
headerParams: headerParams,
|
|
640
|
+
queryParams: queryParams
|
|
641
|
+
});
|
|
642
|
+
try {
|
|
643
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
644
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
645
|
+
responseObject: {},
|
|
646
|
+
body: yield response.json(),
|
|
647
|
+
bodyKey: "replication",
|
|
648
|
+
bodyModel: model.Replication,
|
|
649
|
+
type: "model.Replication",
|
|
650
|
+
responseHeaders: [
|
|
651
|
+
{
|
|
652
|
+
value: response.headers.get("etag"),
|
|
653
|
+
key: "etag",
|
|
654
|
+
dataType: "string"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
value: response.headers.get("opc-request-id"),
|
|
658
|
+
key: "opcRequestId",
|
|
659
|
+
dataType: "string"
|
|
660
|
+
}
|
|
661
|
+
]
|
|
662
|
+
});
|
|
663
|
+
return sdkResponse;
|
|
664
|
+
}
|
|
665
|
+
catch (err) {
|
|
666
|
+
throw err;
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
}
|
|
521
670
|
/**
|
|
522
671
|
* Creates a new snapshot of the specified file system. You
|
|
523
672
|
* can access the snapshot at `.snapshot/<name>`.
|
|
@@ -526,7 +675,7 @@ class FileStorageClient {
|
|
|
526
675
|
* @param CreateSnapshotRequest
|
|
527
676
|
* @return CreateSnapshotResponse
|
|
528
677
|
* @throws OciError when an error occurs
|
|
529
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
678
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/CreateSnapshot.ts.html |here} to see how to use CreateSnapshot API.
|
|
530
679
|
*/
|
|
531
680
|
createSnapshot(createSnapshotRequest) {
|
|
532
681
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -590,7 +739,7 @@ class FileStorageClient {
|
|
|
590
739
|
* @param DeleteExportRequest
|
|
591
740
|
* @return DeleteExportResponse
|
|
592
741
|
* @throws OciError when an error occurs
|
|
593
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
742
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/DeleteExport.ts.html |here} to see how to use DeleteExport API.
|
|
594
743
|
*/
|
|
595
744
|
deleteExport(deleteExportRequest) {
|
|
596
745
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -648,7 +797,7 @@ class FileStorageClient {
|
|
|
648
797
|
* @param DeleteFileSystemRequest
|
|
649
798
|
* @return DeleteFileSystemResponse
|
|
650
799
|
* @throws OciError when an error occurs
|
|
651
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
800
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/DeleteFileSystem.ts.html |here} to see how to use DeleteFileSystem API.
|
|
652
801
|
*/
|
|
653
802
|
deleteFileSystem(deleteFileSystemRequest) {
|
|
654
803
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -705,7 +854,7 @@ class FileStorageClient {
|
|
|
705
854
|
* @param DeleteMountTargetRequest
|
|
706
855
|
* @return DeleteMountTargetResponse
|
|
707
856
|
* @throws OciError when an error occurs
|
|
708
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
857
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/DeleteMountTarget.ts.html |here} to see how to use DeleteMountTarget API.
|
|
709
858
|
*/
|
|
710
859
|
deleteMountTarget(deleteMountTargetRequest) {
|
|
711
860
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -754,6 +903,123 @@ class FileStorageClient {
|
|
|
754
903
|
}
|
|
755
904
|
});
|
|
756
905
|
}
|
|
906
|
+
/**
|
|
907
|
+
* Deletes the specified replication and the the associated replication target.
|
|
908
|
+
*
|
|
909
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
910
|
+
* @param DeleteReplicationRequest
|
|
911
|
+
* @return DeleteReplicationResponse
|
|
912
|
+
* @throws OciError when an error occurs
|
|
913
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/DeleteReplication.ts.html |here} to see how to use DeleteReplication API.
|
|
914
|
+
*/
|
|
915
|
+
deleteReplication(deleteReplicationRequest) {
|
|
916
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
917
|
+
if (this.logger)
|
|
918
|
+
this.logger.debug("Calling operation FileStorageClient#deleteReplication.");
|
|
919
|
+
const operationName = "deleteReplication";
|
|
920
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/DeleteReplication";
|
|
921
|
+
const pathParams = {
|
|
922
|
+
"{replicationId}": deleteReplicationRequest.replicationId
|
|
923
|
+
};
|
|
924
|
+
const queryParams = {
|
|
925
|
+
"deleteMode": deleteReplicationRequest.deleteMode
|
|
926
|
+
};
|
|
927
|
+
let headerParams = {
|
|
928
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
929
|
+
"if-match": deleteReplicationRequest.ifMatch,
|
|
930
|
+
"opc-request-id": deleteReplicationRequest.opcRequestId
|
|
931
|
+
};
|
|
932
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
933
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteReplicationRequest.retryConfiguration, specRetryConfiguration);
|
|
934
|
+
if (this.logger)
|
|
935
|
+
retrier.logger = this.logger;
|
|
936
|
+
const request = yield oci_common_2.composeRequest({
|
|
937
|
+
baseEndpoint: this._endpoint,
|
|
938
|
+
defaultHeaders: this._defaultHeaders,
|
|
939
|
+
path: "/replications/{replicationId}",
|
|
940
|
+
method: "DELETE",
|
|
941
|
+
pathParams: pathParams,
|
|
942
|
+
headerParams: headerParams,
|
|
943
|
+
queryParams: queryParams
|
|
944
|
+
});
|
|
945
|
+
try {
|
|
946
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
947
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
948
|
+
responseObject: {},
|
|
949
|
+
responseHeaders: [
|
|
950
|
+
{
|
|
951
|
+
value: response.headers.get("opc-request-id"),
|
|
952
|
+
key: "opcRequestId",
|
|
953
|
+
dataType: "string"
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
});
|
|
957
|
+
return sdkResponse;
|
|
958
|
+
}
|
|
959
|
+
catch (err) {
|
|
960
|
+
throw err;
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Deletes the specified replication target.
|
|
966
|
+
* This operation causes the immediate release of the target file system if there are currently no delta application operations.
|
|
967
|
+
* If there is any current delta being applied the delete operation is blocked until the current
|
|
968
|
+
* delta has been completely applied.
|
|
969
|
+
*
|
|
970
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
971
|
+
* @param DeleteReplicationTargetRequest
|
|
972
|
+
* @return DeleteReplicationTargetResponse
|
|
973
|
+
* @throws OciError when an error occurs
|
|
974
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/DeleteReplicationTarget.ts.html |here} to see how to use DeleteReplicationTarget API.
|
|
975
|
+
*/
|
|
976
|
+
deleteReplicationTarget(deleteReplicationTargetRequest) {
|
|
977
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
978
|
+
if (this.logger)
|
|
979
|
+
this.logger.debug("Calling operation FileStorageClient#deleteReplicationTarget.");
|
|
980
|
+
const operationName = "deleteReplicationTarget";
|
|
981
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/DeleteReplicationTarget";
|
|
982
|
+
const pathParams = {
|
|
983
|
+
"{replicationTargetId}": deleteReplicationTargetRequest.replicationTargetId
|
|
984
|
+
};
|
|
985
|
+
const queryParams = {};
|
|
986
|
+
let headerParams = {
|
|
987
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
988
|
+
"if-match": deleteReplicationTargetRequest.ifMatch,
|
|
989
|
+
"opc-request-id": deleteReplicationTargetRequest.opcRequestId
|
|
990
|
+
};
|
|
991
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
992
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteReplicationTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
993
|
+
if (this.logger)
|
|
994
|
+
retrier.logger = this.logger;
|
|
995
|
+
const request = yield oci_common_2.composeRequest({
|
|
996
|
+
baseEndpoint: this._endpoint,
|
|
997
|
+
defaultHeaders: this._defaultHeaders,
|
|
998
|
+
path: "/replicationTargets/{replicationTargetId}",
|
|
999
|
+
method: "DELETE",
|
|
1000
|
+
pathParams: pathParams,
|
|
1001
|
+
headerParams: headerParams,
|
|
1002
|
+
queryParams: queryParams
|
|
1003
|
+
});
|
|
1004
|
+
try {
|
|
1005
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1006
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1007
|
+
responseObject: {},
|
|
1008
|
+
responseHeaders: [
|
|
1009
|
+
{
|
|
1010
|
+
value: response.headers.get("opc-request-id"),
|
|
1011
|
+
key: "opcRequestId",
|
|
1012
|
+
dataType: "string"
|
|
1013
|
+
}
|
|
1014
|
+
]
|
|
1015
|
+
});
|
|
1016
|
+
return sdkResponse;
|
|
1017
|
+
}
|
|
1018
|
+
catch (err) {
|
|
1019
|
+
throw err;
|
|
1020
|
+
}
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
757
1023
|
/**
|
|
758
1024
|
* Deletes the specified snapshot.
|
|
759
1025
|
*
|
|
@@ -761,7 +1027,7 @@ class FileStorageClient {
|
|
|
761
1027
|
* @param DeleteSnapshotRequest
|
|
762
1028
|
* @return DeleteSnapshotResponse
|
|
763
1029
|
* @throws OciError when an error occurs
|
|
764
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1030
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/DeleteSnapshot.ts.html |here} to see how to use DeleteSnapshot API.
|
|
765
1031
|
*/
|
|
766
1032
|
deleteSnapshot(deleteSnapshotRequest) {
|
|
767
1033
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -810,13 +1076,80 @@ class FileStorageClient {
|
|
|
810
1076
|
}
|
|
811
1077
|
});
|
|
812
1078
|
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Provides estimates for replication created using specific file system.
|
|
1081
|
+
*
|
|
1082
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1083
|
+
* @param EstimateReplicationRequest
|
|
1084
|
+
* @return EstimateReplicationResponse
|
|
1085
|
+
* @throws OciError when an error occurs
|
|
1086
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/EstimateReplication.ts.html |here} to see how to use EstimateReplication API.
|
|
1087
|
+
*/
|
|
1088
|
+
estimateReplication(estimateReplicationRequest) {
|
|
1089
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1090
|
+
if (this.logger)
|
|
1091
|
+
this.logger.debug("Calling operation FileStorageClient#estimateReplication.");
|
|
1092
|
+
const operationName = "estimateReplication";
|
|
1093
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/EstimateReplication";
|
|
1094
|
+
const pathParams = {
|
|
1095
|
+
"{fileSystemId}": estimateReplicationRequest.fileSystemId
|
|
1096
|
+
};
|
|
1097
|
+
const queryParams = {
|
|
1098
|
+
"changeRateInMBps": estimateReplicationRequest.changeRateInMBps
|
|
1099
|
+
};
|
|
1100
|
+
let headerParams = {
|
|
1101
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1102
|
+
"if-match": estimateReplicationRequest.ifMatch,
|
|
1103
|
+
"opc-request-id": estimateReplicationRequest.opcRequestId
|
|
1104
|
+
};
|
|
1105
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1106
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, estimateReplicationRequest.retryConfiguration, specRetryConfiguration);
|
|
1107
|
+
if (this.logger)
|
|
1108
|
+
retrier.logger = this.logger;
|
|
1109
|
+
const request = yield oci_common_2.composeRequest({
|
|
1110
|
+
baseEndpoint: this._endpoint,
|
|
1111
|
+
defaultHeaders: this._defaultHeaders,
|
|
1112
|
+
path: "/fileSystems/{fileSystemId}/actions/estimateReplication",
|
|
1113
|
+
method: "POST",
|
|
1114
|
+
pathParams: pathParams,
|
|
1115
|
+
headerParams: headerParams,
|
|
1116
|
+
queryParams: queryParams
|
|
1117
|
+
});
|
|
1118
|
+
try {
|
|
1119
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1120
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1121
|
+
responseObject: {},
|
|
1122
|
+
body: yield response.json(),
|
|
1123
|
+
bodyKey: "replicationEstimate",
|
|
1124
|
+
bodyModel: model.ReplicationEstimate,
|
|
1125
|
+
type: "model.ReplicationEstimate",
|
|
1126
|
+
responseHeaders: [
|
|
1127
|
+
{
|
|
1128
|
+
value: response.headers.get("etag"),
|
|
1129
|
+
key: "etag",
|
|
1130
|
+
dataType: "string"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
value: response.headers.get("opc-request-id"),
|
|
1134
|
+
key: "opcRequestId",
|
|
1135
|
+
dataType: "string"
|
|
1136
|
+
}
|
|
1137
|
+
]
|
|
1138
|
+
});
|
|
1139
|
+
return sdkResponse;
|
|
1140
|
+
}
|
|
1141
|
+
catch (err) {
|
|
1142
|
+
throw err;
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
813
1146
|
/**
|
|
814
1147
|
* Gets the specified export's information.
|
|
815
1148
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
816
1149
|
* @param GetExportRequest
|
|
817
1150
|
* @return GetExportResponse
|
|
818
1151
|
* @throws OciError when an error occurs
|
|
819
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1152
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/GetExport.ts.html |here} to see how to use GetExport API.
|
|
820
1153
|
*/
|
|
821
1154
|
getExport(getExportRequest) {
|
|
822
1155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -874,35 +1207,161 @@ class FileStorageClient {
|
|
|
874
1207
|
});
|
|
875
1208
|
}
|
|
876
1209
|
/**
|
|
877
|
-
* Gets the specified export set's information.
|
|
1210
|
+
* Gets the specified export set's information.
|
|
1211
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1212
|
+
* @param GetExportSetRequest
|
|
1213
|
+
* @return GetExportSetResponse
|
|
1214
|
+
* @throws OciError when an error occurs
|
|
1215
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/GetExportSet.ts.html |here} to see how to use GetExportSet API.
|
|
1216
|
+
*/
|
|
1217
|
+
getExportSet(getExportSetRequest) {
|
|
1218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1219
|
+
if (this.logger)
|
|
1220
|
+
this.logger.debug("Calling operation FileStorageClient#getExportSet.");
|
|
1221
|
+
const operationName = "getExportSet";
|
|
1222
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSet/GetExportSet";
|
|
1223
|
+
const pathParams = {
|
|
1224
|
+
"{exportSetId}": getExportSetRequest.exportSetId
|
|
1225
|
+
};
|
|
1226
|
+
const queryParams = {};
|
|
1227
|
+
let headerParams = {
|
|
1228
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1229
|
+
"opc-request-id": getExportSetRequest.opcRequestId
|
|
1230
|
+
};
|
|
1231
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1232
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getExportSetRequest.retryConfiguration, specRetryConfiguration);
|
|
1233
|
+
if (this.logger)
|
|
1234
|
+
retrier.logger = this.logger;
|
|
1235
|
+
const request = yield oci_common_2.composeRequest({
|
|
1236
|
+
baseEndpoint: this._endpoint,
|
|
1237
|
+
defaultHeaders: this._defaultHeaders,
|
|
1238
|
+
path: "/exportSets/{exportSetId}",
|
|
1239
|
+
method: "GET",
|
|
1240
|
+
pathParams: pathParams,
|
|
1241
|
+
headerParams: headerParams,
|
|
1242
|
+
queryParams: queryParams
|
|
1243
|
+
});
|
|
1244
|
+
try {
|
|
1245
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1246
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1247
|
+
responseObject: {},
|
|
1248
|
+
body: yield response.json(),
|
|
1249
|
+
bodyKey: "exportSet",
|
|
1250
|
+
bodyModel: model.ExportSet,
|
|
1251
|
+
type: "model.ExportSet",
|
|
1252
|
+
responseHeaders: [
|
|
1253
|
+
{
|
|
1254
|
+
value: response.headers.get("etag"),
|
|
1255
|
+
key: "etag",
|
|
1256
|
+
dataType: "string"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
value: response.headers.get("opc-request-id"),
|
|
1260
|
+
key: "opcRequestId",
|
|
1261
|
+
dataType: "string"
|
|
1262
|
+
}
|
|
1263
|
+
]
|
|
1264
|
+
});
|
|
1265
|
+
return sdkResponse;
|
|
1266
|
+
}
|
|
1267
|
+
catch (err) {
|
|
1268
|
+
throw err;
|
|
1269
|
+
}
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Gets the specified file system's information.
|
|
1274
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1275
|
+
* @param GetFileSystemRequest
|
|
1276
|
+
* @return GetFileSystemResponse
|
|
1277
|
+
* @throws OciError when an error occurs
|
|
1278
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/GetFileSystem.ts.html |here} to see how to use GetFileSystem API.
|
|
1279
|
+
*/
|
|
1280
|
+
getFileSystem(getFileSystemRequest) {
|
|
1281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1282
|
+
if (this.logger)
|
|
1283
|
+
this.logger.debug("Calling operation FileStorageClient#getFileSystem.");
|
|
1284
|
+
const operationName = "getFileSystem";
|
|
1285
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/GetFileSystem";
|
|
1286
|
+
const pathParams = {
|
|
1287
|
+
"{fileSystemId}": getFileSystemRequest.fileSystemId
|
|
1288
|
+
};
|
|
1289
|
+
const queryParams = {};
|
|
1290
|
+
let headerParams = {
|
|
1291
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1292
|
+
"opc-request-id": getFileSystemRequest.opcRequestId
|
|
1293
|
+
};
|
|
1294
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1295
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFileSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
1296
|
+
if (this.logger)
|
|
1297
|
+
retrier.logger = this.logger;
|
|
1298
|
+
const request = yield oci_common_2.composeRequest({
|
|
1299
|
+
baseEndpoint: this._endpoint,
|
|
1300
|
+
defaultHeaders: this._defaultHeaders,
|
|
1301
|
+
path: "/fileSystems/{fileSystemId}",
|
|
1302
|
+
method: "GET",
|
|
1303
|
+
pathParams: pathParams,
|
|
1304
|
+
headerParams: headerParams,
|
|
1305
|
+
queryParams: queryParams
|
|
1306
|
+
});
|
|
1307
|
+
try {
|
|
1308
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1309
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1310
|
+
responseObject: {},
|
|
1311
|
+
body: yield response.json(),
|
|
1312
|
+
bodyKey: "fileSystem",
|
|
1313
|
+
bodyModel: model.FileSystem,
|
|
1314
|
+
type: "model.FileSystem",
|
|
1315
|
+
responseHeaders: [
|
|
1316
|
+
{
|
|
1317
|
+
value: response.headers.get("etag"),
|
|
1318
|
+
key: "etag",
|
|
1319
|
+
dataType: "string"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
value: response.headers.get("opc-request-id"),
|
|
1323
|
+
key: "opcRequestId",
|
|
1324
|
+
dataType: "string"
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
1327
|
+
});
|
|
1328
|
+
return sdkResponse;
|
|
1329
|
+
}
|
|
1330
|
+
catch (err) {
|
|
1331
|
+
throw err;
|
|
1332
|
+
}
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Gets the specified mount target's information.
|
|
878
1337
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
879
|
-
* @param
|
|
880
|
-
* @return
|
|
1338
|
+
* @param GetMountTargetRequest
|
|
1339
|
+
* @return GetMountTargetResponse
|
|
881
1340
|
* @throws OciError when an error occurs
|
|
882
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1341
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/GetMountTarget.ts.html |here} to see how to use GetMountTarget API.
|
|
883
1342
|
*/
|
|
884
|
-
|
|
1343
|
+
getMountTarget(getMountTargetRequest) {
|
|
885
1344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
886
1345
|
if (this.logger)
|
|
887
|
-
this.logger.debug("Calling operation FileStorageClient#
|
|
888
|
-
const operationName = "
|
|
889
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/
|
|
1346
|
+
this.logger.debug("Calling operation FileStorageClient#getMountTarget.");
|
|
1347
|
+
const operationName = "getMountTarget";
|
|
1348
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/GetMountTarget";
|
|
890
1349
|
const pathParams = {
|
|
891
|
-
"{
|
|
1350
|
+
"{mountTargetId}": getMountTargetRequest.mountTargetId
|
|
892
1351
|
};
|
|
893
1352
|
const queryParams = {};
|
|
894
1353
|
let headerParams = {
|
|
895
1354
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
896
|
-
"opc-request-id":
|
|
1355
|
+
"opc-request-id": getMountTargetRequest.opcRequestId
|
|
897
1356
|
};
|
|
898
1357
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
899
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1358
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMountTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
900
1359
|
if (this.logger)
|
|
901
1360
|
retrier.logger = this.logger;
|
|
902
1361
|
const request = yield oci_common_2.composeRequest({
|
|
903
1362
|
baseEndpoint: this._endpoint,
|
|
904
1363
|
defaultHeaders: this._defaultHeaders,
|
|
905
|
-
path: "/
|
|
1364
|
+
path: "/mountTargets/{mountTargetId}",
|
|
906
1365
|
method: "GET",
|
|
907
1366
|
pathParams: pathParams,
|
|
908
1367
|
headerParams: headerParams,
|
|
@@ -913,9 +1372,9 @@ class FileStorageClient {
|
|
|
913
1372
|
const sdkResponse = oci_common_2.composeResponse({
|
|
914
1373
|
responseObject: {},
|
|
915
1374
|
body: yield response.json(),
|
|
916
|
-
bodyKey: "
|
|
917
|
-
bodyModel: model.
|
|
918
|
-
type: "model.
|
|
1375
|
+
bodyKey: "mountTarget",
|
|
1376
|
+
bodyModel: model.MountTarget,
|
|
1377
|
+
type: "model.MountTarget",
|
|
919
1378
|
responseHeaders: [
|
|
920
1379
|
{
|
|
921
1380
|
value: response.headers.get("etag"),
|
|
@@ -937,35 +1396,35 @@ class FileStorageClient {
|
|
|
937
1396
|
});
|
|
938
1397
|
}
|
|
939
1398
|
/**
|
|
940
|
-
* Gets the specified
|
|
1399
|
+
* Gets the specified replication's information.
|
|
941
1400
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
942
|
-
* @param
|
|
943
|
-
* @return
|
|
1401
|
+
* @param GetReplicationRequest
|
|
1402
|
+
* @return GetReplicationResponse
|
|
944
1403
|
* @throws OciError when an error occurs
|
|
945
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1404
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/GetReplication.ts.html |here} to see how to use GetReplication API.
|
|
946
1405
|
*/
|
|
947
|
-
|
|
1406
|
+
getReplication(getReplicationRequest) {
|
|
948
1407
|
return __awaiter(this, void 0, void 0, function* () {
|
|
949
1408
|
if (this.logger)
|
|
950
|
-
this.logger.debug("Calling operation FileStorageClient#
|
|
951
|
-
const operationName = "
|
|
952
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/
|
|
1409
|
+
this.logger.debug("Calling operation FileStorageClient#getReplication.");
|
|
1410
|
+
const operationName = "getReplication";
|
|
1411
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/GetReplication";
|
|
953
1412
|
const pathParams = {
|
|
954
|
-
"{
|
|
1413
|
+
"{replicationId}": getReplicationRequest.replicationId
|
|
955
1414
|
};
|
|
956
1415
|
const queryParams = {};
|
|
957
1416
|
let headerParams = {
|
|
958
1417
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
959
|
-
"opc-request-id":
|
|
1418
|
+
"opc-request-id": getReplicationRequest.opcRequestId
|
|
960
1419
|
};
|
|
961
1420
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
962
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1421
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationRequest.retryConfiguration, specRetryConfiguration);
|
|
963
1422
|
if (this.logger)
|
|
964
1423
|
retrier.logger = this.logger;
|
|
965
1424
|
const request = yield oci_common_2.composeRequest({
|
|
966
1425
|
baseEndpoint: this._endpoint,
|
|
967
1426
|
defaultHeaders: this._defaultHeaders,
|
|
968
|
-
path: "/
|
|
1427
|
+
path: "/replications/{replicationId}",
|
|
969
1428
|
method: "GET",
|
|
970
1429
|
pathParams: pathParams,
|
|
971
1430
|
headerParams: headerParams,
|
|
@@ -976,9 +1435,9 @@ class FileStorageClient {
|
|
|
976
1435
|
const sdkResponse = oci_common_2.composeResponse({
|
|
977
1436
|
responseObject: {},
|
|
978
1437
|
body: yield response.json(),
|
|
979
|
-
bodyKey: "
|
|
980
|
-
bodyModel: model.
|
|
981
|
-
type: "model.
|
|
1438
|
+
bodyKey: "replication",
|
|
1439
|
+
bodyModel: model.Replication,
|
|
1440
|
+
type: "model.Replication",
|
|
982
1441
|
responseHeaders: [
|
|
983
1442
|
{
|
|
984
1443
|
value: response.headers.get("etag"),
|
|
@@ -1000,35 +1459,35 @@ class FileStorageClient {
|
|
|
1000
1459
|
});
|
|
1001
1460
|
}
|
|
1002
1461
|
/**
|
|
1003
|
-
* Gets the specified
|
|
1462
|
+
* Gets the specified replication target's information.
|
|
1004
1463
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1005
|
-
* @param
|
|
1006
|
-
* @return
|
|
1464
|
+
* @param GetReplicationTargetRequest
|
|
1465
|
+
* @return GetReplicationTargetResponse
|
|
1007
1466
|
* @throws OciError when an error occurs
|
|
1008
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1467
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/GetReplicationTarget.ts.html |here} to see how to use GetReplicationTarget API.
|
|
1009
1468
|
*/
|
|
1010
|
-
|
|
1469
|
+
getReplicationTarget(getReplicationTargetRequest) {
|
|
1011
1470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1012
1471
|
if (this.logger)
|
|
1013
|
-
this.logger.debug("Calling operation FileStorageClient#
|
|
1014
|
-
const operationName = "
|
|
1015
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/
|
|
1472
|
+
this.logger.debug("Calling operation FileStorageClient#getReplicationTarget.");
|
|
1473
|
+
const operationName = "getReplicationTarget";
|
|
1474
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/GetReplicationTarget";
|
|
1016
1475
|
const pathParams = {
|
|
1017
|
-
"{
|
|
1476
|
+
"{replicationTargetId}": getReplicationTargetRequest.replicationTargetId
|
|
1018
1477
|
};
|
|
1019
1478
|
const queryParams = {};
|
|
1020
1479
|
let headerParams = {
|
|
1021
1480
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1022
|
-
"opc-request-id":
|
|
1481
|
+
"opc-request-id": getReplicationTargetRequest.opcRequestId
|
|
1023
1482
|
};
|
|
1024
1483
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1025
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1484
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
1026
1485
|
if (this.logger)
|
|
1027
1486
|
retrier.logger = this.logger;
|
|
1028
1487
|
const request = yield oci_common_2.composeRequest({
|
|
1029
1488
|
baseEndpoint: this._endpoint,
|
|
1030
1489
|
defaultHeaders: this._defaultHeaders,
|
|
1031
|
-
path: "/
|
|
1490
|
+
path: "/replicationTargets/{replicationTargetId}",
|
|
1032
1491
|
method: "GET",
|
|
1033
1492
|
pathParams: pathParams,
|
|
1034
1493
|
headerParams: headerParams,
|
|
@@ -1039,9 +1498,9 @@ class FileStorageClient {
|
|
|
1039
1498
|
const sdkResponse = oci_common_2.composeResponse({
|
|
1040
1499
|
responseObject: {},
|
|
1041
1500
|
body: yield response.json(),
|
|
1042
|
-
bodyKey: "
|
|
1043
|
-
bodyModel: model.
|
|
1044
|
-
type: "model.
|
|
1501
|
+
bodyKey: "replicationTarget",
|
|
1502
|
+
bodyModel: model.ReplicationTarget,
|
|
1503
|
+
type: "model.ReplicationTarget",
|
|
1045
1504
|
responseHeaders: [
|
|
1046
1505
|
{
|
|
1047
1506
|
value: response.headers.get("etag"),
|
|
@@ -1068,7 +1527,7 @@ class FileStorageClient {
|
|
|
1068
1527
|
* @param GetSnapshotRequest
|
|
1069
1528
|
* @return GetSnapshotResponse
|
|
1070
1529
|
* @throws OciError when an error occurs
|
|
1071
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1530
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/GetSnapshot.ts.html |here} to see how to use GetSnapshot API.
|
|
1072
1531
|
*/
|
|
1073
1532
|
getSnapshot(getSnapshotRequest) {
|
|
1074
1533
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1132,7 +1591,7 @@ class FileStorageClient {
|
|
|
1132
1591
|
* @param ListExportSetsRequest
|
|
1133
1592
|
* @return ListExportSetsResponse
|
|
1134
1593
|
* @throws OciError when an error occurs
|
|
1135
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1594
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ListExportSets.ts.html |here} to see how to use ListExportSets API.
|
|
1136
1595
|
*/
|
|
1137
1596
|
listExportSets(listExportSetsRequest) {
|
|
1138
1597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1246,7 +1705,7 @@ class FileStorageClient {
|
|
|
1246
1705
|
* @param ListExportsRequest
|
|
1247
1706
|
* @return ListExportsResponse
|
|
1248
1707
|
* @throws OciError when an error occurs
|
|
1249
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1708
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ListExports.ts.html |here} to see how to use ListExports API.
|
|
1250
1709
|
*/
|
|
1251
1710
|
listExports(listExportsRequest) {
|
|
1252
1711
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1358,7 +1817,7 @@ class FileStorageClient {
|
|
|
1358
1817
|
* @param ListFileSystemsRequest
|
|
1359
1818
|
* @return ListFileSystemsResponse
|
|
1360
1819
|
* @throws OciError when an error occurs
|
|
1361
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1820
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ListFileSystems.ts.html |here} to see how to use ListFileSystems API.
|
|
1362
1821
|
*/
|
|
1363
1822
|
listFileSystems(listFileSystemsRequest) {
|
|
1364
1823
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1472,7 +1931,7 @@ class FileStorageClient {
|
|
|
1472
1931
|
* @param ListMountTargetsRequest
|
|
1473
1932
|
* @return ListMountTargetsResponse
|
|
1474
1933
|
* @throws OciError when an error occurs
|
|
1475
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1934
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ListMountTargets.ts.html |here} to see how to use ListMountTargets API.
|
|
1476
1935
|
*/
|
|
1477
1936
|
listMountTargets(listMountTargetsRequest) {
|
|
1478
1937
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1578,6 +2037,231 @@ class FileStorageClient {
|
|
|
1578
2037
|
listMountTargetsResponseIterator(request) {
|
|
1579
2038
|
return oci_common_1.paginateResponses(request, req => this.listMountTargets(req));
|
|
1580
2039
|
}
|
|
2040
|
+
/**
|
|
2041
|
+
* Lists the replication target resources in the specified compartment.
|
|
2042
|
+
*
|
|
2043
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2044
|
+
* @param ListReplicationTargetsRequest
|
|
2045
|
+
* @return ListReplicationTargetsResponse
|
|
2046
|
+
* @throws OciError when an error occurs
|
|
2047
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ListReplicationTargets.ts.html |here} to see how to use ListReplicationTargets API.
|
|
2048
|
+
*/
|
|
2049
|
+
listReplicationTargets(listReplicationTargetsRequest) {
|
|
2050
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2051
|
+
if (this.logger)
|
|
2052
|
+
this.logger.debug("Calling operation FileStorageClient#listReplicationTargets.");
|
|
2053
|
+
const operationName = "listReplicationTargets";
|
|
2054
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTargetSummary/ListReplicationTargets";
|
|
2055
|
+
const pathParams = {};
|
|
2056
|
+
const queryParams = {
|
|
2057
|
+
"compartmentId": listReplicationTargetsRequest.compartmentId,
|
|
2058
|
+
"availabilityDomain": listReplicationTargetsRequest.availabilityDomain,
|
|
2059
|
+
"limit": listReplicationTargetsRequest.limit,
|
|
2060
|
+
"page": listReplicationTargetsRequest.page,
|
|
2061
|
+
"lifecycleState": listReplicationTargetsRequest.lifecycleState,
|
|
2062
|
+
"displayName": listReplicationTargetsRequest.displayName,
|
|
2063
|
+
"id": listReplicationTargetsRequest.id,
|
|
2064
|
+
"sortBy": listReplicationTargetsRequest.sortBy,
|
|
2065
|
+
"sortOrder": listReplicationTargetsRequest.sortOrder
|
|
2066
|
+
};
|
|
2067
|
+
let headerParams = {
|
|
2068
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2069
|
+
"opc-request-id": listReplicationTargetsRequest.opcRequestId
|
|
2070
|
+
};
|
|
2071
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2072
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationTargetsRequest.retryConfiguration, specRetryConfiguration);
|
|
2073
|
+
if (this.logger)
|
|
2074
|
+
retrier.logger = this.logger;
|
|
2075
|
+
const request = yield oci_common_2.composeRequest({
|
|
2076
|
+
baseEndpoint: this._endpoint,
|
|
2077
|
+
defaultHeaders: this._defaultHeaders,
|
|
2078
|
+
path: "/replicationTargets",
|
|
2079
|
+
method: "GET",
|
|
2080
|
+
pathParams: pathParams,
|
|
2081
|
+
headerParams: headerParams,
|
|
2082
|
+
queryParams: queryParams
|
|
2083
|
+
});
|
|
2084
|
+
try {
|
|
2085
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2086
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2087
|
+
responseObject: {},
|
|
2088
|
+
body: yield response.json(),
|
|
2089
|
+
bodyKey: "items",
|
|
2090
|
+
bodyModel: model.ReplicationTargetSummary,
|
|
2091
|
+
type: "Array<model.ReplicationTargetSummary>",
|
|
2092
|
+
responseHeaders: [
|
|
2093
|
+
{
|
|
2094
|
+
value: response.headers.get("opc-next-page"),
|
|
2095
|
+
key: "opcNextPage",
|
|
2096
|
+
dataType: "string"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
value: response.headers.get("opc-request-id"),
|
|
2100
|
+
key: "opcRequestId",
|
|
2101
|
+
dataType: "string"
|
|
2102
|
+
}
|
|
2103
|
+
]
|
|
2104
|
+
});
|
|
2105
|
+
return sdkResponse;
|
|
2106
|
+
}
|
|
2107
|
+
catch (err) {
|
|
2108
|
+
throw err;
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
* NOTE: This function is deprecated in favor of listReplicationTargetsRecordIterator function.
|
|
2114
|
+
* Creates a new async iterator which will iterate over the models.ReplicationTargetSummary objects
|
|
2115
|
+
* contained in responses from the listReplicationTargets operation. This iterator will fetch more data from the
|
|
2116
|
+
* server as needed.
|
|
2117
|
+
*
|
|
2118
|
+
* @param request a request which can be sent to the service operation
|
|
2119
|
+
*/
|
|
2120
|
+
listAllReplicationTargets(request) {
|
|
2121
|
+
return oci_common_1.paginateRecords(request, req => this.listReplicationTargets(req));
|
|
2122
|
+
}
|
|
2123
|
+
/**
|
|
2124
|
+
* NOTE: This function is deprecated in favor of listReplicationTargetsResponseIterator function.
|
|
2125
|
+
* Creates a new async iterator which will iterate over the responses received from the listReplicationTargets operation. This iterator
|
|
2126
|
+
* will fetch more data from the server as needed.
|
|
2127
|
+
*
|
|
2128
|
+
* @param request a request which can be sent to the service operation
|
|
2129
|
+
*/
|
|
2130
|
+
listAllReplicationTargetsResponses(request) {
|
|
2131
|
+
return oci_common_1.paginateResponses(request, req => this.listReplicationTargets(req));
|
|
2132
|
+
}
|
|
2133
|
+
/**
|
|
2134
|
+
* Creates a new async iterator which will iterate over the models.ReplicationTargetSummary objects
|
|
2135
|
+
* contained in responses from the listReplicationTargets operation. This iterator will fetch more data from the
|
|
2136
|
+
* server as needed.
|
|
2137
|
+
*
|
|
2138
|
+
* @param request a request which can be sent to the service operation
|
|
2139
|
+
*/
|
|
2140
|
+
listReplicationTargetsRecordIterator(request) {
|
|
2141
|
+
return oci_common_1.paginateRecords(request, req => this.listReplicationTargets(req));
|
|
2142
|
+
}
|
|
2143
|
+
/**
|
|
2144
|
+
* Creates a new async iterator which will iterate over the responses received from the listReplicationTargets operation. This iterator
|
|
2145
|
+
* will fetch more data from the server as needed.
|
|
2146
|
+
*
|
|
2147
|
+
* @param request a request which can be sent to the service operation
|
|
2148
|
+
*/
|
|
2149
|
+
listReplicationTargetsResponseIterator(request) {
|
|
2150
|
+
return oci_common_1.paginateResponses(request, req => this.listReplicationTargets(req));
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Lists the replication resources in the specified compartment.
|
|
2154
|
+
*
|
|
2155
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2156
|
+
* @param ListReplicationsRequest
|
|
2157
|
+
* @return ListReplicationsResponse
|
|
2158
|
+
* @throws OciError when an error occurs
|
|
2159
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ListReplications.ts.html |here} to see how to use ListReplications API.
|
|
2160
|
+
*/
|
|
2161
|
+
listReplications(listReplicationsRequest) {
|
|
2162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2163
|
+
if (this.logger)
|
|
2164
|
+
this.logger.debug("Calling operation FileStorageClient#listReplications.");
|
|
2165
|
+
const operationName = "listReplications";
|
|
2166
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationSummary/ListReplications";
|
|
2167
|
+
const pathParams = {};
|
|
2168
|
+
const queryParams = {
|
|
2169
|
+
"compartmentId": listReplicationsRequest.compartmentId,
|
|
2170
|
+
"availabilityDomain": listReplicationsRequest.availabilityDomain,
|
|
2171
|
+
"limit": listReplicationsRequest.limit,
|
|
2172
|
+
"page": listReplicationsRequest.page,
|
|
2173
|
+
"lifecycleState": listReplicationsRequest.lifecycleState,
|
|
2174
|
+
"displayName": listReplicationsRequest.displayName,
|
|
2175
|
+
"id": listReplicationsRequest.id,
|
|
2176
|
+
"sortBy": listReplicationsRequest.sortBy,
|
|
2177
|
+
"sortOrder": listReplicationsRequest.sortOrder,
|
|
2178
|
+
"fileSystemId": listReplicationsRequest.fileSystemId
|
|
2179
|
+
};
|
|
2180
|
+
let headerParams = {
|
|
2181
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2182
|
+
"opc-request-id": listReplicationsRequest.opcRequestId
|
|
2183
|
+
};
|
|
2184
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2185
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationsRequest.retryConfiguration, specRetryConfiguration);
|
|
2186
|
+
if (this.logger)
|
|
2187
|
+
retrier.logger = this.logger;
|
|
2188
|
+
const request = yield oci_common_2.composeRequest({
|
|
2189
|
+
baseEndpoint: this._endpoint,
|
|
2190
|
+
defaultHeaders: this._defaultHeaders,
|
|
2191
|
+
path: "/replications",
|
|
2192
|
+
method: "GET",
|
|
2193
|
+
pathParams: pathParams,
|
|
2194
|
+
headerParams: headerParams,
|
|
2195
|
+
queryParams: queryParams
|
|
2196
|
+
});
|
|
2197
|
+
try {
|
|
2198
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2199
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2200
|
+
responseObject: {},
|
|
2201
|
+
body: yield response.json(),
|
|
2202
|
+
bodyKey: "items",
|
|
2203
|
+
bodyModel: model.ReplicationSummary,
|
|
2204
|
+
type: "Array<model.ReplicationSummary>",
|
|
2205
|
+
responseHeaders: [
|
|
2206
|
+
{
|
|
2207
|
+
value: response.headers.get("opc-next-page"),
|
|
2208
|
+
key: "opcNextPage",
|
|
2209
|
+
dataType: "string"
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
value: response.headers.get("opc-request-id"),
|
|
2213
|
+
key: "opcRequestId",
|
|
2214
|
+
dataType: "string"
|
|
2215
|
+
}
|
|
2216
|
+
]
|
|
2217
|
+
});
|
|
2218
|
+
return sdkResponse;
|
|
2219
|
+
}
|
|
2220
|
+
catch (err) {
|
|
2221
|
+
throw err;
|
|
2222
|
+
}
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
/**
|
|
2226
|
+
* NOTE: This function is deprecated in favor of listReplicationsRecordIterator function.
|
|
2227
|
+
* Creates a new async iterator which will iterate over the models.ReplicationSummary objects
|
|
2228
|
+
* contained in responses from the listReplications operation. This iterator will fetch more data from the
|
|
2229
|
+
* server as needed.
|
|
2230
|
+
*
|
|
2231
|
+
* @param request a request which can be sent to the service operation
|
|
2232
|
+
*/
|
|
2233
|
+
listAllReplications(request) {
|
|
2234
|
+
return oci_common_1.paginateRecords(request, req => this.listReplications(req));
|
|
2235
|
+
}
|
|
2236
|
+
/**
|
|
2237
|
+
* NOTE: This function is deprecated in favor of listReplicationsResponseIterator function.
|
|
2238
|
+
* Creates a new async iterator which will iterate over the responses received from the listReplications operation. This iterator
|
|
2239
|
+
* will fetch more data from the server as needed.
|
|
2240
|
+
*
|
|
2241
|
+
* @param request a request which can be sent to the service operation
|
|
2242
|
+
*/
|
|
2243
|
+
listAllReplicationsResponses(request) {
|
|
2244
|
+
return oci_common_1.paginateResponses(request, req => this.listReplications(req));
|
|
2245
|
+
}
|
|
2246
|
+
/**
|
|
2247
|
+
* Creates a new async iterator which will iterate over the models.ReplicationSummary objects
|
|
2248
|
+
* contained in responses from the listReplications operation. This iterator will fetch more data from the
|
|
2249
|
+
* server as needed.
|
|
2250
|
+
*
|
|
2251
|
+
* @param request a request which can be sent to the service operation
|
|
2252
|
+
*/
|
|
2253
|
+
listReplicationsRecordIterator(request) {
|
|
2254
|
+
return oci_common_1.paginateRecords(request, req => this.listReplications(req));
|
|
2255
|
+
}
|
|
2256
|
+
/**
|
|
2257
|
+
* Creates a new async iterator which will iterate over the responses received from the listReplications operation. This iterator
|
|
2258
|
+
* will fetch more data from the server as needed.
|
|
2259
|
+
*
|
|
2260
|
+
* @param request a request which can be sent to the service operation
|
|
2261
|
+
*/
|
|
2262
|
+
listReplicationsResponseIterator(request) {
|
|
2263
|
+
return oci_common_1.paginateResponses(request, req => this.listReplications(req));
|
|
2264
|
+
}
|
|
1581
2265
|
/**
|
|
1582
2266
|
* Lists snapshots of the specified file system.
|
|
1583
2267
|
*
|
|
@@ -1585,7 +2269,7 @@ class FileStorageClient {
|
|
|
1585
2269
|
* @param ListSnapshotsRequest
|
|
1586
2270
|
* @return ListSnapshotsResponse
|
|
1587
2271
|
* @throws OciError when an error occurs
|
|
1588
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2272
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/ListSnapshots.ts.html |here} to see how to use ListSnapshots API.
|
|
1589
2273
|
*/
|
|
1590
2274
|
listSnapshots(listSnapshotsRequest) {
|
|
1591
2275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1595,11 +2279,11 @@ class FileStorageClient {
|
|
|
1595
2279
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/SnapshotSummary/ListSnapshots";
|
|
1596
2280
|
const pathParams = {};
|
|
1597
2281
|
const queryParams = {
|
|
1598
|
-
"fileSystemId": listSnapshotsRequest.fileSystemId,
|
|
1599
2282
|
"limit": listSnapshotsRequest.limit,
|
|
1600
2283
|
"page": listSnapshotsRequest.page,
|
|
1601
2284
|
"lifecycleState": listSnapshotsRequest.lifecycleState,
|
|
1602
2285
|
"id": listSnapshotsRequest.id,
|
|
2286
|
+
"fileSystemId": listSnapshotsRequest.fileSystemId,
|
|
1603
2287
|
"sortOrder": listSnapshotsRequest.sortOrder
|
|
1604
2288
|
};
|
|
1605
2289
|
let headerParams = {
|
|
@@ -1693,7 +2377,7 @@ class FileStorageClient {
|
|
|
1693
2377
|
* @param UpdateExportRequest
|
|
1694
2378
|
* @return UpdateExportResponse
|
|
1695
2379
|
* @throws OciError when an error occurs
|
|
1696
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2380
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/UpdateExport.ts.html |here} to see how to use UpdateExport API.
|
|
1697
2381
|
*/
|
|
1698
2382
|
updateExport(updateExportRequest) {
|
|
1699
2383
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1758,7 +2442,7 @@ class FileStorageClient {
|
|
|
1758
2442
|
* @param UpdateExportSetRequest
|
|
1759
2443
|
* @return UpdateExportSetResponse
|
|
1760
2444
|
* @throws OciError when an error occurs
|
|
1761
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2445
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/UpdateExportSet.ts.html |here} to see how to use UpdateExportSet API.
|
|
1762
2446
|
*/
|
|
1763
2447
|
updateExportSet(updateExportSetRequest) {
|
|
1764
2448
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1825,7 +2509,7 @@ class FileStorageClient {
|
|
|
1825
2509
|
* @param UpdateFileSystemRequest
|
|
1826
2510
|
* @return UpdateFileSystemResponse
|
|
1827
2511
|
* @throws OciError when an error occurs
|
|
1828
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2512
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/UpdateFileSystem.ts.html |here} to see how to use UpdateFileSystem API.
|
|
1829
2513
|
*/
|
|
1830
2514
|
updateFileSystem(updateFileSystemRequest) {
|
|
1831
2515
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1890,7 +2574,7 @@ class FileStorageClient {
|
|
|
1890
2574
|
* @param UpdateMountTargetRequest
|
|
1891
2575
|
* @return UpdateMountTargetResponse
|
|
1892
2576
|
* @throws OciError when an error occurs
|
|
1893
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2577
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/UpdateMountTarget.ts.html |here} to see how to use UpdateMountTarget API.
|
|
1894
2578
|
*/
|
|
1895
2579
|
updateMountTarget(updateMountTargetRequest) {
|
|
1896
2580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1949,13 +2633,79 @@ class FileStorageClient {
|
|
|
1949
2633
|
}
|
|
1950
2634
|
});
|
|
1951
2635
|
}
|
|
2636
|
+
/**
|
|
2637
|
+
* Updates the information for the specified replication and its associated replication target.
|
|
2638
|
+
*
|
|
2639
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2640
|
+
* @param UpdateReplicationRequest
|
|
2641
|
+
* @return UpdateReplicationResponse
|
|
2642
|
+
* @throws OciError when an error occurs
|
|
2643
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/UpdateReplication.ts.html |here} to see how to use UpdateReplication API.
|
|
2644
|
+
*/
|
|
2645
|
+
updateReplication(updateReplicationRequest) {
|
|
2646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2647
|
+
if (this.logger)
|
|
2648
|
+
this.logger.debug("Calling operation FileStorageClient#updateReplication.");
|
|
2649
|
+
const operationName = "updateReplication";
|
|
2650
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/UpdateReplication";
|
|
2651
|
+
const pathParams = {
|
|
2652
|
+
"{replicationId}": updateReplicationRequest.replicationId
|
|
2653
|
+
};
|
|
2654
|
+
const queryParams = {};
|
|
2655
|
+
let headerParams = {
|
|
2656
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2657
|
+
"if-match": updateReplicationRequest.ifMatch,
|
|
2658
|
+
"opc-request-id": updateReplicationRequest.opcRequestId
|
|
2659
|
+
};
|
|
2660
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2661
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateReplicationRequest.retryConfiguration, specRetryConfiguration);
|
|
2662
|
+
if (this.logger)
|
|
2663
|
+
retrier.logger = this.logger;
|
|
2664
|
+
const request = yield oci_common_2.composeRequest({
|
|
2665
|
+
baseEndpoint: this._endpoint,
|
|
2666
|
+
defaultHeaders: this._defaultHeaders,
|
|
2667
|
+
path: "/replications/{replicationId}",
|
|
2668
|
+
method: "PUT",
|
|
2669
|
+
bodyContent: common.ObjectSerializer.serialize(updateReplicationRequest.updateReplicationDetails, "UpdateReplicationDetails", model.UpdateReplicationDetails.getJsonObj),
|
|
2670
|
+
pathParams: pathParams,
|
|
2671
|
+
headerParams: headerParams,
|
|
2672
|
+
queryParams: queryParams
|
|
2673
|
+
});
|
|
2674
|
+
try {
|
|
2675
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2676
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2677
|
+
responseObject: {},
|
|
2678
|
+
body: yield response.json(),
|
|
2679
|
+
bodyKey: "replication",
|
|
2680
|
+
bodyModel: model.Replication,
|
|
2681
|
+
type: "model.Replication",
|
|
2682
|
+
responseHeaders: [
|
|
2683
|
+
{
|
|
2684
|
+
value: response.headers.get("etag"),
|
|
2685
|
+
key: "etag",
|
|
2686
|
+
dataType: "string"
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
value: response.headers.get("opc-request-id"),
|
|
2690
|
+
key: "opcRequestId",
|
|
2691
|
+
dataType: "string"
|
|
2692
|
+
}
|
|
2693
|
+
]
|
|
2694
|
+
});
|
|
2695
|
+
return sdkResponse;
|
|
2696
|
+
}
|
|
2697
|
+
catch (err) {
|
|
2698
|
+
throw err;
|
|
2699
|
+
}
|
|
2700
|
+
});
|
|
2701
|
+
}
|
|
1952
2702
|
/**
|
|
1953
2703
|
* Updates the specified snapshot's information.
|
|
1954
2704
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1955
2705
|
* @param UpdateSnapshotRequest
|
|
1956
2706
|
* @return UpdateSnapshotResponse
|
|
1957
2707
|
* @throws OciError when an error occurs
|
|
1958
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2708
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.44.0/filestorage/UpdateSnapshot.ts.html |here} to see how to use UpdateSnapshot API.
|
|
1959
2709
|
*/
|
|
1960
2710
|
updateSnapshot(updateSnapshotRequest) {
|
|
1961
2711
|
return __awaiter(this, void 0, void 0, function* () {
|