oci-filestorage 2.92.0 → 2.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +30 -0
- package/lib/client.js +197 -0
- package/lib/client.js.map +1 -1
- package/lib/model/create-mount-target-details.d.ts +6 -8
- package/lib/model/create-mount-target-details.js.map +1 -1
- package/lib/model/index.d.ts +4 -0
- package/lib/model/index.js +6 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/mount-target-summary.d.ts +27 -0
- package/lib/model/mount-target-summary.js +1 -0
- package/lib/model/mount-target-summary.js.map +1 -1
- package/lib/model/mount-target.d.ts +26 -0
- package/lib/model/mount-target.js +1 -0
- package/lib/model/mount-target.js.map +1 -1
- package/lib/model/schedule-downgrade-shape-mount-target-details.d.ts +30 -0
- package/lib/model/schedule-downgrade-shape-mount-target-details.js +31 -0
- package/lib/model/schedule-downgrade-shape-mount-target-details.js.map +1 -0
- package/lib/model/upgrade-shape-mount-target-details.d.ts +30 -0
- package/lib/model/upgrade-shape-mount-target-details.js +31 -0
- package/lib/model/upgrade-shape-mount-target-details.js.map +1 -0
- package/lib/request/cancel-downgrade-shape-mount-target-request.d.ts +37 -0
- package/lib/request/cancel-downgrade-shape-mount-target-request.js +15 -0
- package/lib/request/cancel-downgrade-shape-mount-target-request.js.map +1 -0
- package/lib/request/index.d.ts +6 -0
- 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 +1 -1
- package/lib/request/list-filesystem-snapshot-policies-request.d.ts +1 -1
- package/lib/request/list-mount-targets-request.d.ts +1 -1
- package/lib/request/list-outbound-connectors-request.d.ts +1 -1
- package/lib/request/list-replication-targets-request.d.ts +1 -1
- package/lib/request/list-replications-request.d.ts +1 -1
- package/lib/request/schedule-downgrade-shape-mount-target-request.d.ts +42 -0
- package/lib/request/schedule-downgrade-shape-mount-target-request.js +15 -0
- package/lib/request/schedule-downgrade-shape-mount-target-request.js.map +1 -0
- package/lib/request/upgrade-shape-mount-target-request.d.ts +42 -0
- package/lib/request/upgrade-shape-mount-target-request.js +15 -0
- package/lib/request/upgrade-shape-mount-target-request.js.map +1 -0
- package/lib/response/cancel-downgrade-shape-mount-target-response.d.ts +30 -0
- package/lib/response/cancel-downgrade-shape-mount-target-response.js +15 -0
- package/lib/response/cancel-downgrade-shape-mount-target-response.js.map +1 -0
- package/lib/response/index.d.ts +6 -0
- package/lib/response/schedule-downgrade-shape-mount-target-response.d.ts +30 -0
- package/lib/response/schedule-downgrade-shape-mount-target-response.js +15 -0
- package/lib/response/schedule-downgrade-shape-mount-target-response.js.map +1 -0
- package/lib/response/upgrade-shape-mount-target-response.d.ts +30 -0
- package/lib/response/upgrade-shape-mount-target-response.js +15 -0
- package/lib/response/upgrade-shape-mount-target-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -92,6 +92,16 @@ export declare class FileStorageClient {
|
|
|
92
92
|
* Close the client once it is no longer needed
|
|
93
93
|
*/
|
|
94
94
|
close(): void;
|
|
95
|
+
/**
|
|
96
|
+
* Cancel scheduled downgrade shape request for mount target.
|
|
97
|
+
*
|
|
98
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
99
|
+
* @param CancelDowngradeShapeMountTargetRequest
|
|
100
|
+
* @return CancelDowngradeShapeMountTargetResponse
|
|
101
|
+
* @throws OciError when an error occurs
|
|
102
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.ts.html |here} to see how to use CancelDowngradeShapeMountTarget API.
|
|
103
|
+
*/
|
|
104
|
+
cancelDowngradeShapeMountTarget(cancelDowngradeShapeMountTargetRequest: requests.CancelDowngradeShapeMountTargetRequest): Promise<responses.CancelDowngradeShapeMountTargetResponse>;
|
|
95
105
|
/**
|
|
96
106
|
* 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)
|
|
97
107
|
*
|
|
@@ -914,6 +924,16 @@ export declare class FileStorageClient {
|
|
|
914
924
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/PauseFilesystemSnapshotPolicy.ts.html |here} to see how to use PauseFilesystemSnapshotPolicy API.
|
|
915
925
|
*/
|
|
916
926
|
pauseFilesystemSnapshotPolicy(pauseFilesystemSnapshotPolicyRequest: requests.PauseFilesystemSnapshotPolicyRequest): Promise<responses.PauseFilesystemSnapshotPolicyResponse>;
|
|
927
|
+
/**
|
|
928
|
+
* Schedule a downgrade shape of the mount target.
|
|
929
|
+
*
|
|
930
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
931
|
+
* @param ScheduleDowngradeShapeMountTargetRequest
|
|
932
|
+
* @return ScheduleDowngradeShapeMountTargetResponse
|
|
933
|
+
* @throws OciError when an error occurs
|
|
934
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ScheduleDowngradeShapeMountTarget.ts.html |here} to see how to use ScheduleDowngradeShapeMountTarget API.
|
|
935
|
+
*/
|
|
936
|
+
scheduleDowngradeShapeMountTarget(scheduleDowngradeShapeMountTargetRequest: requests.ScheduleDowngradeShapeMountTargetRequest): Promise<responses.ScheduleDowngradeShapeMountTargetResponse>;
|
|
917
937
|
/**
|
|
918
938
|
* This operation unpauses a paused file system snapshot policy and updates the lifecycle state of the file system snapshot policy from
|
|
919
939
|
* INACTIVE to ACTIVE. By default, file system snapshot policies are in the ACTIVE state. When a file system snapshot policy is not paused, or in the ACTIVE state, file systems that are associated with the
|
|
@@ -1003,6 +1023,16 @@ export declare class FileStorageClient {
|
|
|
1003
1023
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/UpdateSnapshot.ts.html |here} to see how to use UpdateSnapshot API.
|
|
1004
1024
|
*/
|
|
1005
1025
|
updateSnapshot(updateSnapshotRequest: requests.UpdateSnapshotRequest): Promise<responses.UpdateSnapshotResponse>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Upgrade shape request for mount target.
|
|
1028
|
+
*
|
|
1029
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1030
|
+
* @param UpgradeShapeMountTargetRequest
|
|
1031
|
+
* @return UpgradeShapeMountTargetResponse
|
|
1032
|
+
* @throws OciError when an error occurs
|
|
1033
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/UpgradeShapeMountTarget.ts.html |here} to see how to use UpgradeShapeMountTarget API.
|
|
1034
|
+
*/
|
|
1035
|
+
upgradeShapeMountTarget(upgradeShapeMountTargetRequest: requests.UpgradeShapeMountTargetRequest): Promise<responses.UpgradeShapeMountTargetResponse>;
|
|
1006
1036
|
/**
|
|
1007
1037
|
* Validates keytab contents for the secret details passed on the request or validte keytab contents associated with
|
|
1008
1038
|
* the mount target passed in the request. The keytabs are deserialized, the contents are validated for compatibility
|
package/lib/client.js
CHANGED
|
@@ -199,6 +199,71 @@ class FileStorageClient {
|
|
|
199
199
|
close() {
|
|
200
200
|
this.shutdownCircuitBreaker();
|
|
201
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* Cancel scheduled downgrade shape request for mount target.
|
|
204
|
+
*
|
|
205
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
206
|
+
* @param CancelDowngradeShapeMountTargetRequest
|
|
207
|
+
* @return CancelDowngradeShapeMountTargetResponse
|
|
208
|
+
* @throws OciError when an error occurs
|
|
209
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.ts.html |here} to see how to use CancelDowngradeShapeMountTarget API.
|
|
210
|
+
*/
|
|
211
|
+
cancelDowngradeShapeMountTarget(cancelDowngradeShapeMountTargetRequest) {
|
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
if (this.logger)
|
|
214
|
+
this.logger.debug("Calling operation FileStorageClient#cancelDowngradeShapeMountTarget.");
|
|
215
|
+
const operationName = "cancelDowngradeShapeMountTarget";
|
|
216
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CancelDowngradeShapeMountTarget";
|
|
217
|
+
const pathParams = {
|
|
218
|
+
"{mountTargetId}": cancelDowngradeShapeMountTargetRequest.mountTargetId
|
|
219
|
+
};
|
|
220
|
+
const queryParams = {};
|
|
221
|
+
let headerParams = {
|
|
222
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
223
|
+
"if-match": cancelDowngradeShapeMountTargetRequest.ifMatch,
|
|
224
|
+
"opc-request-id": cancelDowngradeShapeMountTargetRequest.opcRequestId
|
|
225
|
+
};
|
|
226
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
227
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelDowngradeShapeMountTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
228
|
+
if (this.logger)
|
|
229
|
+
retrier.logger = this.logger;
|
|
230
|
+
const request = yield oci_common_2.composeRequest({
|
|
231
|
+
baseEndpoint: this._endpoint,
|
|
232
|
+
defaultHeaders: this._defaultHeaders,
|
|
233
|
+
path: "/mountTargets/{mountTargetId}/actions/cancelShapeDowngrade",
|
|
234
|
+
method: "POST",
|
|
235
|
+
pathParams: pathParams,
|
|
236
|
+
headerParams: headerParams,
|
|
237
|
+
queryParams: queryParams
|
|
238
|
+
});
|
|
239
|
+
try {
|
|
240
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
241
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
242
|
+
responseObject: {},
|
|
243
|
+
body: yield response.json(),
|
|
244
|
+
bodyKey: "mountTarget",
|
|
245
|
+
bodyModel: model.MountTarget,
|
|
246
|
+
type: "model.MountTarget",
|
|
247
|
+
responseHeaders: [
|
|
248
|
+
{
|
|
249
|
+
value: response.headers.get("etag"),
|
|
250
|
+
key: "etag",
|
|
251
|
+
dataType: "string"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
value: response.headers.get("opc-request-id"),
|
|
255
|
+
key: "opcRequestId",
|
|
256
|
+
dataType: "string"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
});
|
|
260
|
+
return sdkResponse;
|
|
261
|
+
}
|
|
262
|
+
catch (err) {
|
|
263
|
+
throw err;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
}
|
|
202
267
|
/**
|
|
203
268
|
* 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)
|
|
204
269
|
*
|
|
@@ -3284,6 +3349,72 @@ class FileStorageClient {
|
|
|
3284
3349
|
}
|
|
3285
3350
|
});
|
|
3286
3351
|
}
|
|
3352
|
+
/**
|
|
3353
|
+
* Schedule a downgrade shape of the mount target.
|
|
3354
|
+
*
|
|
3355
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3356
|
+
* @param ScheduleDowngradeShapeMountTargetRequest
|
|
3357
|
+
* @return ScheduleDowngradeShapeMountTargetResponse
|
|
3358
|
+
* @throws OciError when an error occurs
|
|
3359
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ScheduleDowngradeShapeMountTarget.ts.html |here} to see how to use ScheduleDowngradeShapeMountTarget API.
|
|
3360
|
+
*/
|
|
3361
|
+
scheduleDowngradeShapeMountTarget(scheduleDowngradeShapeMountTargetRequest) {
|
|
3362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3363
|
+
if (this.logger)
|
|
3364
|
+
this.logger.debug("Calling operation FileStorageClient#scheduleDowngradeShapeMountTarget.");
|
|
3365
|
+
const operationName = "scheduleDowngradeShapeMountTarget";
|
|
3366
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/ScheduleDowngradeShapeMountTarget";
|
|
3367
|
+
const pathParams = {
|
|
3368
|
+
"{mountTargetId}": scheduleDowngradeShapeMountTargetRequest.mountTargetId
|
|
3369
|
+
};
|
|
3370
|
+
const queryParams = {};
|
|
3371
|
+
let headerParams = {
|
|
3372
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3373
|
+
"if-match": scheduleDowngradeShapeMountTargetRequest.ifMatch,
|
|
3374
|
+
"opc-request-id": scheduleDowngradeShapeMountTargetRequest.opcRequestId
|
|
3375
|
+
};
|
|
3376
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3377
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleDowngradeShapeMountTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
3378
|
+
if (this.logger)
|
|
3379
|
+
retrier.logger = this.logger;
|
|
3380
|
+
const request = yield oci_common_2.composeRequest({
|
|
3381
|
+
baseEndpoint: this._endpoint,
|
|
3382
|
+
defaultHeaders: this._defaultHeaders,
|
|
3383
|
+
path: "/mountTargets/{mountTargetId}/actions/scheduleShapeDowngrade",
|
|
3384
|
+
method: "POST",
|
|
3385
|
+
bodyContent: common.ObjectSerializer.serialize(scheduleDowngradeShapeMountTargetRequest.scheduleDowngradeShapeMountTargetDetails, "ScheduleDowngradeShapeMountTargetDetails", model.ScheduleDowngradeShapeMountTargetDetails.getJsonObj),
|
|
3386
|
+
pathParams: pathParams,
|
|
3387
|
+
headerParams: headerParams,
|
|
3388
|
+
queryParams: queryParams
|
|
3389
|
+
});
|
|
3390
|
+
try {
|
|
3391
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3392
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
3393
|
+
responseObject: {},
|
|
3394
|
+
body: yield response.json(),
|
|
3395
|
+
bodyKey: "mountTarget",
|
|
3396
|
+
bodyModel: model.MountTarget,
|
|
3397
|
+
type: "model.MountTarget",
|
|
3398
|
+
responseHeaders: [
|
|
3399
|
+
{
|
|
3400
|
+
value: response.headers.get("etag"),
|
|
3401
|
+
key: "etag",
|
|
3402
|
+
dataType: "string"
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
value: response.headers.get("opc-request-id"),
|
|
3406
|
+
key: "opcRequestId",
|
|
3407
|
+
dataType: "string"
|
|
3408
|
+
}
|
|
3409
|
+
]
|
|
3410
|
+
});
|
|
3411
|
+
return sdkResponse;
|
|
3412
|
+
}
|
|
3413
|
+
catch (err) {
|
|
3414
|
+
throw err;
|
|
3415
|
+
}
|
|
3416
|
+
});
|
|
3417
|
+
}
|
|
3287
3418
|
/**
|
|
3288
3419
|
* This operation unpauses a paused file system snapshot policy and updates the lifecycle state of the file system snapshot policy from
|
|
3289
3420
|
* INACTIVE to ACTIVE. By default, file system snapshot policies are in the ACTIVE state. When a file system snapshot policy is not paused, or in the ACTIVE state, file systems that are associated with the
|
|
@@ -3876,6 +4007,72 @@ class FileStorageClient {
|
|
|
3876
4007
|
}
|
|
3877
4008
|
});
|
|
3878
4009
|
}
|
|
4010
|
+
/**
|
|
4011
|
+
* Upgrade shape request for mount target.
|
|
4012
|
+
*
|
|
4013
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4014
|
+
* @param UpgradeShapeMountTargetRequest
|
|
4015
|
+
* @return UpgradeShapeMountTargetResponse
|
|
4016
|
+
* @throws OciError when an error occurs
|
|
4017
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/UpgradeShapeMountTarget.ts.html |here} to see how to use UpgradeShapeMountTarget API.
|
|
4018
|
+
*/
|
|
4019
|
+
upgradeShapeMountTarget(upgradeShapeMountTargetRequest) {
|
|
4020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4021
|
+
if (this.logger)
|
|
4022
|
+
this.logger.debug("Calling operation FileStorageClient#upgradeShapeMountTarget.");
|
|
4023
|
+
const operationName = "upgradeShapeMountTarget";
|
|
4024
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/UpgradeShapeMountTarget";
|
|
4025
|
+
const pathParams = {
|
|
4026
|
+
"{mountTargetId}": upgradeShapeMountTargetRequest.mountTargetId
|
|
4027
|
+
};
|
|
4028
|
+
const queryParams = {};
|
|
4029
|
+
let headerParams = {
|
|
4030
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4031
|
+
"if-match": upgradeShapeMountTargetRequest.ifMatch,
|
|
4032
|
+
"opc-request-id": upgradeShapeMountTargetRequest.opcRequestId
|
|
4033
|
+
};
|
|
4034
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4035
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, upgradeShapeMountTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
4036
|
+
if (this.logger)
|
|
4037
|
+
retrier.logger = this.logger;
|
|
4038
|
+
const request = yield oci_common_2.composeRequest({
|
|
4039
|
+
baseEndpoint: this._endpoint,
|
|
4040
|
+
defaultHeaders: this._defaultHeaders,
|
|
4041
|
+
path: "/mountTargets/{mountTargetId}/actions/upgradeShape",
|
|
4042
|
+
method: "POST",
|
|
4043
|
+
bodyContent: common.ObjectSerializer.serialize(upgradeShapeMountTargetRequest.upgradeShapeMountTargetDetails, "UpgradeShapeMountTargetDetails", model.UpgradeShapeMountTargetDetails.getJsonObj),
|
|
4044
|
+
pathParams: pathParams,
|
|
4045
|
+
headerParams: headerParams,
|
|
4046
|
+
queryParams: queryParams
|
|
4047
|
+
});
|
|
4048
|
+
try {
|
|
4049
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4050
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
4051
|
+
responseObject: {},
|
|
4052
|
+
body: yield response.json(),
|
|
4053
|
+
bodyKey: "mountTarget",
|
|
4054
|
+
bodyModel: model.MountTarget,
|
|
4055
|
+
type: "model.MountTarget",
|
|
4056
|
+
responseHeaders: [
|
|
4057
|
+
{
|
|
4058
|
+
value: response.headers.get("etag"),
|
|
4059
|
+
key: "etag",
|
|
4060
|
+
dataType: "string"
|
|
4061
|
+
},
|
|
4062
|
+
{
|
|
4063
|
+
value: response.headers.get("opc-request-id"),
|
|
4064
|
+
key: "opcRequestId",
|
|
4065
|
+
dataType: "string"
|
|
4066
|
+
}
|
|
4067
|
+
]
|
|
4068
|
+
});
|
|
4069
|
+
return sdkResponse;
|
|
4070
|
+
}
|
|
4071
|
+
catch (err) {
|
|
4072
|
+
throw err;
|
|
4073
|
+
}
|
|
4074
|
+
});
|
|
4075
|
+
}
|
|
3879
4076
|
/**
|
|
3880
4077
|
* Validates keytab contents for the secret details passed on the request or validte keytab contents associated with
|
|
3881
4078
|
* the mount target passed in the request. The keytabs are deserialized, the contents are validated for compatibility
|