oci-lustrefilestorage 2.119.1 → 2.120.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 +122 -0
- package/lib/client.js +930 -140
- package/lib/client.js.map +1 -1
- package/lib/lustrefilestorage-waiter.d.ts +16 -0
- package/lib/lustrefilestorage-waiter.js +24 -0
- package/lib/lustrefilestorage-waiter.js.map +1 -1
- package/lib/model/change-object-storage-link-compartment-details.d.ts +26 -0
- package/lib/model/change-object-storage-link-compartment-details.js +29 -0
- package/lib/model/change-object-storage-link-compartment-details.js.map +1 -0
- package/lib/model/cluster-placement-group.d.ts +25 -0
- package/lib/model/cluster-placement-group.js +29 -0
- package/lib/model/cluster-placement-group.js.map +1 -0
- package/lib/model/create-object-storage-link-details.d.ts +89 -0
- package/lib/model/create-object-storage-link-details.js +29 -0
- package/lib/model/create-object-storage-link-details.js.map +1 -0
- package/lib/model/index.d.ts +24 -0
- package/lib/model/index.js +25 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/network-security-group.d.ts +29 -0
- package/lib/model/network-security-group.js +29 -0
- package/lib/model/network-security-group.js.map +1 -0
- package/lib/model/object-storage-link-collection.d.ts +26 -0
- package/lib/model/object-storage-link-collection.js +61 -0
- package/lib/model/object-storage-link-collection.js.map +1 -0
- package/lib/model/object-storage-link-summary.d.ts +137 -0
- package/lib/model/object-storage-link-summary.js +29 -0
- package/lib/model/object-storage-link-summary.js.map +1 -0
- package/lib/model/object-storage-link.d.ts +156 -0
- package/lib/model/object-storage-link.js +42 -0
- package/lib/model/object-storage-link.js.map +1 -0
- package/lib/model/operation-type.d.ts +1 -0
- package/lib/model/operation-type.js +1 -0
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/subnet.d.ts +25 -0
- package/lib/model/subnet.js +29 -0
- package/lib/model/subnet.js.map +1 -0
- package/lib/model/sync-job-collection.d.ts +26 -0
- package/lib/model/sync-job-collection.js +61 -0
- package/lib/model/sync-job-collection.js.map +1 -0
- package/lib/model/sync-job-summary.d.ts +140 -0
- package/lib/model/sync-job-summary.js +39 -0
- package/lib/model/sync-job-summary.js.map +1 -0
- package/lib/model/sync-job.d.ts +157 -0
- package/lib/model/sync-job.js +53 -0
- package/lib/model/sync-job.js.map +1 -0
- package/lib/model/update-object-storage-link-details.d.ts +58 -0
- package/lib/model/update-object-storage-link-details.js +29 -0
- package/lib/model/update-object-storage-link-details.js.map +1 -0
- package/lib/request/change-object-storage-link-compartment-request.d.ts +52 -0
- package/lib/request/change-object-storage-link-compartment-request.js +15 -0
- package/lib/request/change-object-storage-link-compartment-request.js.map +1 -0
- package/lib/request/create-object-storage-link-request.d.ts +40 -0
- package/lib/request/create-object-storage-link-request.js +15 -0
- package/lib/request/create-object-storage-link-request.js.map +1 -0
- package/lib/request/delete-object-storage-link-request.d.ts +38 -0
- package/lib/request/delete-object-storage-link-request.js +15 -0
- package/lib/request/delete-object-storage-link-request.js.map +1 -0
- package/lib/request/get-object-storage-link-request.d.ts +30 -0
- package/lib/request/get-object-storage-link-request.js +15 -0
- package/lib/request/get-object-storage-link-request.js.map +1 -0
- package/lib/request/get-sync-job-request.d.ts +42 -0
- package/lib/request/get-sync-job-request.js +15 -0
- package/lib/request/get-sync-job-request.js.map +1 -0
- package/lib/request/index.d.ts +24 -0
- package/lib/request/index.js +5 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-object-storage-links-request.d.ts +86 -0
- package/lib/request/list-object-storage-links-request.js +24 -0
- package/lib/request/list-object-storage-links-request.js.map +1 -0
- package/lib/request/list-sync-jobs-request.d.ts +74 -0
- package/lib/request/list-sync-jobs-request.js +23 -0
- package/lib/request/list-sync-jobs-request.js.map +1 -0
- package/lib/request/start-export-to-object-request.d.ts +47 -0
- package/lib/request/start-export-to-object-request.js +15 -0
- package/lib/request/start-export-to-object-request.js.map +1 -0
- package/lib/request/start-import-from-object-request.d.ts +47 -0
- package/lib/request/start-import-from-object-request.js +15 -0
- package/lib/request/start-import-from-object-request.js.map +1 -0
- package/lib/request/stop-export-to-object-request.d.ts +47 -0
- package/lib/request/stop-export-to-object-request.js +15 -0
- package/lib/request/stop-export-to-object-request.js.map +1 -0
- package/lib/request/stop-import-from-object-request.d.ts +47 -0
- package/lib/request/stop-import-from-object-request.js +15 -0
- package/lib/request/stop-import-from-object-request.js.map +1 -0
- package/lib/request/update-object-storage-link-request.d.ts +43 -0
- package/lib/request/update-object-storage-link-request.js +15 -0
- package/lib/request/update-object-storage-link-request.js.map +1 -0
- package/lib/response/change-object-storage-link-compartment-response.d.ts +30 -0
- package/lib/response/change-object-storage-link-compartment-response.js +15 -0
- package/lib/response/change-object-storage-link-compartment-response.js.map +1 -0
- package/lib/response/create-object-storage-link-response.d.ts +38 -0
- package/lib/response/create-object-storage-link-response.js +15 -0
- package/lib/response/create-object-storage-link-response.js.map +1 -0
- package/lib/response/delete-object-storage-link-response.d.ts +26 -0
- package/lib/response/delete-object-storage-link-response.js +15 -0
- package/lib/response/delete-object-storage-link-response.js.map +1 -0
- package/lib/response/get-object-storage-link-response.d.ts +30 -0
- package/lib/response/get-object-storage-link-response.js +15 -0
- package/lib/response/get-object-storage-link-response.js.map +1 -0
- package/lib/response/get-sync-job-response.d.ts +30 -0
- package/lib/response/get-sync-job-response.js +15 -0
- package/lib/response/get-sync-job-response.js.map +1 -0
- package/lib/response/index.d.ts +24 -0
- package/lib/response/list-object-storage-links-response.d.ts +31 -0
- package/lib/response/list-object-storage-links-response.js +15 -0
- package/lib/response/list-object-storage-links-response.js.map +1 -0
- package/lib/response/list-sync-jobs-response.d.ts +31 -0
- package/lib/response/list-sync-jobs-response.js +15 -0
- package/lib/response/list-sync-jobs-response.js.map +1 -0
- package/lib/response/start-export-to-object-response.d.ts +30 -0
- package/lib/response/start-export-to-object-response.js +15 -0
- package/lib/response/start-export-to-object-response.js.map +1 -0
- package/lib/response/start-import-from-object-response.d.ts +30 -0
- package/lib/response/start-import-from-object-response.js +15 -0
- package/lib/response/start-import-from-object-response.js.map +1 -0
- package/lib/response/stop-export-to-object-response.d.ts +20 -0
- package/lib/response/stop-export-to-object-response.js +15 -0
- package/lib/response/stop-export-to-object-response.js.map +1 -0
- package/lib/response/stop-import-from-object-response.d.ts +20 -0
- package/lib/response/stop-import-from-object-response.js +15 -0
- package/lib/response/stop-import-from-object-response.js.map +1 -0
- package/lib/response/update-object-storage-link-response.d.ts +30 -0
- package/lib/response/update-object-storage-link-response.js +15 -0
- package/lib/response/update-object-storage-link-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -325,6 +325,74 @@ class LustreFileStorageClient {
|
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* Moves an Object Storage link into a different compartment within the same tenancy. For information about moving resources between
|
|
330
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
331
|
+
*
|
|
332
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
333
|
+
* @param ChangeObjectStorageLinkCompartmentRequest
|
|
334
|
+
* @return ChangeObjectStorageLinkCompartmentResponse
|
|
335
|
+
* @throws OciError when an error occurs
|
|
336
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ChangeObjectStorageLinkCompartment.ts.html |here} to see how to use ChangeObjectStorageLinkCompartment API.
|
|
337
|
+
*/
|
|
338
|
+
changeObjectStorageLinkCompartment(changeObjectStorageLinkCompartmentRequest) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
if (this.logger)
|
|
341
|
+
this.logger.debug("Calling operation LustreFileStorageClient#changeObjectStorageLinkCompartment.");
|
|
342
|
+
const operationName = "changeObjectStorageLinkCompartment";
|
|
343
|
+
const apiReferenceLink = "";
|
|
344
|
+
const pathParams = {
|
|
345
|
+
"{objectStorageLinkId}": changeObjectStorageLinkCompartmentRequest.objectStorageLinkId
|
|
346
|
+
};
|
|
347
|
+
const queryParams = {};
|
|
348
|
+
let headerParams = {
|
|
349
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
350
|
+
"if-match": changeObjectStorageLinkCompartmentRequest.ifMatch,
|
|
351
|
+
"opc-request-id": changeObjectStorageLinkCompartmentRequest.opcRequestId,
|
|
352
|
+
"opc-retry-token": changeObjectStorageLinkCompartmentRequest.opcRetryToken
|
|
353
|
+
};
|
|
354
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
355
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeObjectStorageLinkCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
356
|
+
if (this.logger)
|
|
357
|
+
retrier.logger = this.logger;
|
|
358
|
+
const request = yield oci_common_1.composeRequest({
|
|
359
|
+
baseEndpoint: this._endpoint,
|
|
360
|
+
defaultHeaders: this._defaultHeaders,
|
|
361
|
+
path: "/objectStorageLinks/{objectStorageLinkId}/actions/changeCompartment",
|
|
362
|
+
method: "POST",
|
|
363
|
+
bodyContent: common.ObjectSerializer.serialize(changeObjectStorageLinkCompartmentRequest.changeObjectStorageLinkCompartmentDetails, "ChangeObjectStorageLinkCompartmentDetails", model.ChangeObjectStorageLinkCompartmentDetails.getJsonObj),
|
|
364
|
+
pathParams: pathParams,
|
|
365
|
+
headerParams: headerParams,
|
|
366
|
+
queryParams: queryParams
|
|
367
|
+
});
|
|
368
|
+
try {
|
|
369
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
370
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
371
|
+
responseObject: {},
|
|
372
|
+
body: yield response.json(),
|
|
373
|
+
bodyKey: "objectStorageLink",
|
|
374
|
+
bodyModel: model.ObjectStorageLink,
|
|
375
|
+
type: "model.ObjectStorageLink",
|
|
376
|
+
responseHeaders: [
|
|
377
|
+
{
|
|
378
|
+
value: response.headers.get("etag"),
|
|
379
|
+
key: "etag",
|
|
380
|
+
dataType: "string"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
value: response.headers.get("opc-request-id"),
|
|
384
|
+
key: "opcRequestId",
|
|
385
|
+
dataType: "string"
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
});
|
|
389
|
+
return sdkResponse;
|
|
390
|
+
}
|
|
391
|
+
catch (err) {
|
|
392
|
+
throw err;
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
}
|
|
328
396
|
/**
|
|
329
397
|
* Creates a Lustre file system.
|
|
330
398
|
*
|
|
@@ -405,37 +473,37 @@ class LustreFileStorageClient {
|
|
|
405
473
|
});
|
|
406
474
|
}
|
|
407
475
|
/**
|
|
408
|
-
*
|
|
476
|
+
* Creates an Object Storage link.
|
|
477
|
+
*
|
|
409
478
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
410
|
-
* @param
|
|
411
|
-
* @return
|
|
479
|
+
* @param CreateObjectStorageLinkRequest
|
|
480
|
+
* @return CreateObjectStorageLinkResponse
|
|
412
481
|
* @throws OciError when an error occurs
|
|
413
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/
|
|
482
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/CreateObjectStorageLink.ts.html |here} to see how to use CreateObjectStorageLink API.
|
|
414
483
|
*/
|
|
415
|
-
|
|
484
|
+
createObjectStorageLink(createObjectStorageLinkRequest) {
|
|
416
485
|
return __awaiter(this, void 0, void 0, function* () {
|
|
417
486
|
if (this.logger)
|
|
418
|
-
this.logger.debug("Calling operation LustreFileStorageClient#
|
|
419
|
-
const operationName = "
|
|
487
|
+
this.logger.debug("Calling operation LustreFileStorageClient#createObjectStorageLink.");
|
|
488
|
+
const operationName = "createObjectStorageLink";
|
|
420
489
|
const apiReferenceLink = "";
|
|
421
|
-
const pathParams = {
|
|
422
|
-
"{lustreFileSystemId}": deleteLustreFileSystemRequest.lustreFileSystemId
|
|
423
|
-
};
|
|
490
|
+
const pathParams = {};
|
|
424
491
|
const queryParams = {};
|
|
425
492
|
let headerParams = {
|
|
426
493
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
427
|
-
"
|
|
428
|
-
"opc-request-id":
|
|
494
|
+
"opc-retry-token": createObjectStorageLinkRequest.opcRetryToken,
|
|
495
|
+
"opc-request-id": createObjectStorageLinkRequest.opcRequestId
|
|
429
496
|
};
|
|
430
497
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
431
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
498
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createObjectStorageLinkRequest.retryConfiguration, specRetryConfiguration);
|
|
432
499
|
if (this.logger)
|
|
433
500
|
retrier.logger = this.logger;
|
|
434
501
|
const request = yield oci_common_1.composeRequest({
|
|
435
502
|
baseEndpoint: this._endpoint,
|
|
436
503
|
defaultHeaders: this._defaultHeaders,
|
|
437
|
-
path: "/
|
|
438
|
-
method: "
|
|
504
|
+
path: "/objectStorageLinks",
|
|
505
|
+
method: "POST",
|
|
506
|
+
bodyContent: common.ObjectSerializer.serialize(createObjectStorageLinkRequest.createObjectStorageLinkDetails, "CreateObjectStorageLinkDetails", model.CreateObjectStorageLinkDetails.getJsonObj),
|
|
439
507
|
pathParams: pathParams,
|
|
440
508
|
headerParams: headerParams,
|
|
441
509
|
queryParams: queryParams
|
|
@@ -444,10 +512,24 @@ class LustreFileStorageClient {
|
|
|
444
512
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
445
513
|
const sdkResponse = oci_common_1.composeResponse({
|
|
446
514
|
responseObject: {},
|
|
515
|
+
body: yield response.json(),
|
|
516
|
+
bodyKey: "objectStorageLink",
|
|
517
|
+
bodyModel: model.ObjectStorageLink,
|
|
518
|
+
type: "model.ObjectStorageLink",
|
|
447
519
|
responseHeaders: [
|
|
448
520
|
{
|
|
449
|
-
value: response.headers.get("
|
|
450
|
-
key: "
|
|
521
|
+
value: response.headers.get("location"),
|
|
522
|
+
key: "location",
|
|
523
|
+
dataType: "string"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
value: response.headers.get("content-location"),
|
|
527
|
+
key: "contentLocation",
|
|
528
|
+
dataType: "string"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
value: response.headers.get("etag"),
|
|
532
|
+
key: "etag",
|
|
451
533
|
dataType: "string"
|
|
452
534
|
},
|
|
453
535
|
{
|
|
@@ -465,36 +547,37 @@ class LustreFileStorageClient {
|
|
|
465
547
|
});
|
|
466
548
|
}
|
|
467
549
|
/**
|
|
468
|
-
*
|
|
550
|
+
* Deletes a Lustre file system.
|
|
469
551
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
470
|
-
* @param
|
|
471
|
-
* @return
|
|
552
|
+
* @param DeleteLustreFileSystemRequest
|
|
553
|
+
* @return DeleteLustreFileSystemResponse
|
|
472
554
|
* @throws OciError when an error occurs
|
|
473
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/
|
|
555
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/DeleteLustreFileSystem.ts.html |here} to see how to use DeleteLustreFileSystem API.
|
|
474
556
|
*/
|
|
475
|
-
|
|
557
|
+
deleteLustreFileSystem(deleteLustreFileSystemRequest) {
|
|
476
558
|
return __awaiter(this, void 0, void 0, function* () {
|
|
477
559
|
if (this.logger)
|
|
478
|
-
this.logger.debug("Calling operation LustreFileStorageClient#
|
|
479
|
-
const operationName = "
|
|
560
|
+
this.logger.debug("Calling operation LustreFileStorageClient#deleteLustreFileSystem.");
|
|
561
|
+
const operationName = "deleteLustreFileSystem";
|
|
480
562
|
const apiReferenceLink = "";
|
|
481
563
|
const pathParams = {
|
|
482
|
-
"{lustreFileSystemId}":
|
|
564
|
+
"{lustreFileSystemId}": deleteLustreFileSystemRequest.lustreFileSystemId
|
|
483
565
|
};
|
|
484
566
|
const queryParams = {};
|
|
485
567
|
let headerParams = {
|
|
486
568
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
487
|
-
"
|
|
569
|
+
"if-match": deleteLustreFileSystemRequest.ifMatch,
|
|
570
|
+
"opc-request-id": deleteLustreFileSystemRequest.opcRequestId
|
|
488
571
|
};
|
|
489
572
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
490
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
573
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteLustreFileSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
491
574
|
if (this.logger)
|
|
492
575
|
retrier.logger = this.logger;
|
|
493
576
|
const request = yield oci_common_1.composeRequest({
|
|
494
577
|
baseEndpoint: this._endpoint,
|
|
495
578
|
defaultHeaders: this._defaultHeaders,
|
|
496
579
|
path: "/lustreFileSystems/{lustreFileSystemId}",
|
|
497
|
-
method: "
|
|
580
|
+
method: "DELETE",
|
|
498
581
|
pathParams: pathParams,
|
|
499
582
|
headerParams: headerParams,
|
|
500
583
|
queryParams: queryParams
|
|
@@ -503,14 +586,10 @@ class LustreFileStorageClient {
|
|
|
503
586
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
504
587
|
const sdkResponse = oci_common_1.composeResponse({
|
|
505
588
|
responseObject: {},
|
|
506
|
-
body: yield response.json(),
|
|
507
|
-
bodyKey: "lustreFileSystem",
|
|
508
|
-
bodyModel: model.LustreFileSystem,
|
|
509
|
-
type: "model.LustreFileSystem",
|
|
510
589
|
responseHeaders: [
|
|
511
590
|
{
|
|
512
|
-
value: response.headers.get("
|
|
513
|
-
key: "
|
|
591
|
+
value: response.headers.get("opc-work-request-id"),
|
|
592
|
+
key: "opcWorkRequestId",
|
|
514
593
|
dataType: "string"
|
|
515
594
|
},
|
|
516
595
|
{
|
|
@@ -528,36 +607,37 @@ class LustreFileStorageClient {
|
|
|
528
607
|
});
|
|
529
608
|
}
|
|
530
609
|
/**
|
|
531
|
-
*
|
|
610
|
+
* Deletes an Object Storage link.
|
|
532
611
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
533
|
-
* @param
|
|
534
|
-
* @return
|
|
612
|
+
* @param DeleteObjectStorageLinkRequest
|
|
613
|
+
* @return DeleteObjectStorageLinkResponse
|
|
535
614
|
* @throws OciError when an error occurs
|
|
536
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/
|
|
615
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/DeleteObjectStorageLink.ts.html |here} to see how to use DeleteObjectStorageLink API.
|
|
537
616
|
*/
|
|
538
|
-
|
|
617
|
+
deleteObjectStorageLink(deleteObjectStorageLinkRequest) {
|
|
539
618
|
return __awaiter(this, void 0, void 0, function* () {
|
|
540
619
|
if (this.logger)
|
|
541
|
-
this.logger.debug("Calling operation LustreFileStorageClient#
|
|
542
|
-
const operationName = "
|
|
620
|
+
this.logger.debug("Calling operation LustreFileStorageClient#deleteObjectStorageLink.");
|
|
621
|
+
const operationName = "deleteObjectStorageLink";
|
|
543
622
|
const apiReferenceLink = "";
|
|
544
623
|
const pathParams = {
|
|
545
|
-
"{
|
|
624
|
+
"{objectStorageLinkId}": deleteObjectStorageLinkRequest.objectStorageLinkId
|
|
546
625
|
};
|
|
547
626
|
const queryParams = {};
|
|
548
627
|
let headerParams = {
|
|
549
628
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
550
|
-
"
|
|
629
|
+
"if-match": deleteObjectStorageLinkRequest.ifMatch,
|
|
630
|
+
"opc-request-id": deleteObjectStorageLinkRequest.opcRequestId
|
|
551
631
|
};
|
|
552
632
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
553
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
633
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteObjectStorageLinkRequest.retryConfiguration, specRetryConfiguration);
|
|
554
634
|
if (this.logger)
|
|
555
635
|
retrier.logger = this.logger;
|
|
556
636
|
const request = yield oci_common_1.composeRequest({
|
|
557
637
|
baseEndpoint: this._endpoint,
|
|
558
638
|
defaultHeaders: this._defaultHeaders,
|
|
559
|
-
path: "/
|
|
560
|
-
method: "
|
|
639
|
+
path: "/objectStorageLinks/{objectStorageLinkId}",
|
|
640
|
+
method: "DELETE",
|
|
561
641
|
pathParams: pathParams,
|
|
562
642
|
headerParams: headerParams,
|
|
563
643
|
queryParams: queryParams
|
|
@@ -566,25 +646,16 @@ class LustreFileStorageClient {
|
|
|
566
646
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
567
647
|
const sdkResponse = oci_common_1.composeResponse({
|
|
568
648
|
responseObject: {},
|
|
569
|
-
body: yield response.json(),
|
|
570
|
-
bodyKey: "workRequest",
|
|
571
|
-
bodyModel: model.WorkRequest,
|
|
572
|
-
type: "model.WorkRequest",
|
|
573
649
|
responseHeaders: [
|
|
574
|
-
{
|
|
575
|
-
value: response.headers.get("etag"),
|
|
576
|
-
key: "etag",
|
|
577
|
-
dataType: "string"
|
|
578
|
-
},
|
|
579
650
|
{
|
|
580
651
|
value: response.headers.get("opc-request-id"),
|
|
581
652
|
key: "opcRequestId",
|
|
582
653
|
dataType: "string"
|
|
583
654
|
},
|
|
584
655
|
{
|
|
585
|
-
value: response.headers.get("
|
|
586
|
-
key: "
|
|
587
|
-
dataType: "
|
|
656
|
+
value: response.headers.get("opc-work-request-id"),
|
|
657
|
+
key: "opcWorkRequestId",
|
|
658
|
+
dataType: "string"
|
|
588
659
|
}
|
|
589
660
|
]
|
|
590
661
|
});
|
|
@@ -596,44 +667,35 @@ class LustreFileStorageClient {
|
|
|
596
667
|
});
|
|
597
668
|
}
|
|
598
669
|
/**
|
|
599
|
-
* Gets
|
|
600
|
-
*
|
|
670
|
+
* Gets information about a Lustre file system.
|
|
601
671
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
602
|
-
* @param
|
|
603
|
-
* @return
|
|
672
|
+
* @param GetLustreFileSystemRequest
|
|
673
|
+
* @return GetLustreFileSystemResponse
|
|
604
674
|
* @throws OciError when an error occurs
|
|
605
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/
|
|
675
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/GetLustreFileSystem.ts.html |here} to see how to use GetLustreFileSystem API.
|
|
606
676
|
*/
|
|
607
|
-
|
|
677
|
+
getLustreFileSystem(getLustreFileSystemRequest) {
|
|
608
678
|
return __awaiter(this, void 0, void 0, function* () {
|
|
609
679
|
if (this.logger)
|
|
610
|
-
this.logger.debug("Calling operation LustreFileStorageClient#
|
|
611
|
-
const operationName = "
|
|
680
|
+
this.logger.debug("Calling operation LustreFileStorageClient#getLustreFileSystem.");
|
|
681
|
+
const operationName = "getLustreFileSystem";
|
|
612
682
|
const apiReferenceLink = "";
|
|
613
|
-
const pathParams = {
|
|
614
|
-
|
|
615
|
-
"compartmentId": listLustreFileSystemsRequest.compartmentId,
|
|
616
|
-
"availabilityDomain": listLustreFileSystemsRequest.availabilityDomain,
|
|
617
|
-
"lifecycleState": listLustreFileSystemsRequest.lifecycleState,
|
|
618
|
-
"displayName": listLustreFileSystemsRequest.displayName,
|
|
619
|
-
"id": listLustreFileSystemsRequest.id,
|
|
620
|
-
"limit": listLustreFileSystemsRequest.limit,
|
|
621
|
-
"page": listLustreFileSystemsRequest.page,
|
|
622
|
-
"sortOrder": listLustreFileSystemsRequest.sortOrder,
|
|
623
|
-
"sortBy": listLustreFileSystemsRequest.sortBy
|
|
683
|
+
const pathParams = {
|
|
684
|
+
"{lustreFileSystemId}": getLustreFileSystemRequest.lustreFileSystemId
|
|
624
685
|
};
|
|
686
|
+
const queryParams = {};
|
|
625
687
|
let headerParams = {
|
|
626
688
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
627
|
-
"opc-request-id":
|
|
689
|
+
"opc-request-id": getLustreFileSystemRequest.opcRequestId
|
|
628
690
|
};
|
|
629
691
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
630
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
692
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getLustreFileSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
631
693
|
if (this.logger)
|
|
632
694
|
retrier.logger = this.logger;
|
|
633
695
|
const request = yield oci_common_1.composeRequest({
|
|
634
696
|
baseEndpoint: this._endpoint,
|
|
635
697
|
defaultHeaders: this._defaultHeaders,
|
|
636
|
-
path: "/lustreFileSystems",
|
|
698
|
+
path: "/lustreFileSystems/{lustreFileSystemId}",
|
|
637
699
|
method: "GET",
|
|
638
700
|
pathParams: pathParams,
|
|
639
701
|
headerParams: headerParams,
|
|
@@ -644,18 +706,18 @@ class LustreFileStorageClient {
|
|
|
644
706
|
const sdkResponse = oci_common_1.composeResponse({
|
|
645
707
|
responseObject: {},
|
|
646
708
|
body: yield response.json(),
|
|
647
|
-
bodyKey: "
|
|
648
|
-
bodyModel: model.
|
|
649
|
-
type: "model.
|
|
709
|
+
bodyKey: "lustreFileSystem",
|
|
710
|
+
bodyModel: model.LustreFileSystem,
|
|
711
|
+
type: "model.LustreFileSystem",
|
|
650
712
|
responseHeaders: [
|
|
651
713
|
{
|
|
652
|
-
value: response.headers.get("
|
|
653
|
-
key: "
|
|
714
|
+
value: response.headers.get("etag"),
|
|
715
|
+
key: "etag",
|
|
654
716
|
dataType: "string"
|
|
655
717
|
},
|
|
656
718
|
{
|
|
657
|
-
value: response.headers.get("opc-
|
|
658
|
-
key: "
|
|
719
|
+
value: response.headers.get("opc-request-id"),
|
|
720
|
+
key: "opcRequestId",
|
|
659
721
|
dataType: "string"
|
|
660
722
|
}
|
|
661
723
|
]
|
|
@@ -668,41 +730,35 @@ class LustreFileStorageClient {
|
|
|
668
730
|
});
|
|
669
731
|
}
|
|
670
732
|
/**
|
|
671
|
-
*
|
|
672
|
-
*
|
|
733
|
+
* Gets information about an Object Storage link.
|
|
673
734
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
674
|
-
* @param
|
|
675
|
-
* @return
|
|
735
|
+
* @param GetObjectStorageLinkRequest
|
|
736
|
+
* @return GetObjectStorageLinkResponse
|
|
676
737
|
* @throws OciError when an error occurs
|
|
677
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/
|
|
738
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/GetObjectStorageLink.ts.html |here} to see how to use GetObjectStorageLink API.
|
|
678
739
|
*/
|
|
679
|
-
|
|
740
|
+
getObjectStorageLink(getObjectStorageLinkRequest) {
|
|
680
741
|
return __awaiter(this, void 0, void 0, function* () {
|
|
681
742
|
if (this.logger)
|
|
682
|
-
this.logger.debug("Calling operation LustreFileStorageClient#
|
|
683
|
-
const operationName = "
|
|
743
|
+
this.logger.debug("Calling operation LustreFileStorageClient#getObjectStorageLink.");
|
|
744
|
+
const operationName = "getObjectStorageLink";
|
|
684
745
|
const apiReferenceLink = "";
|
|
685
746
|
const pathParams = {
|
|
686
|
-
"{
|
|
687
|
-
};
|
|
688
|
-
const queryParams = {
|
|
689
|
-
"page": listWorkRequestErrorsRequest.page,
|
|
690
|
-
"limit": listWorkRequestErrorsRequest.limit,
|
|
691
|
-
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
692
|
-
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
747
|
+
"{objectStorageLinkId}": getObjectStorageLinkRequest.objectStorageLinkId
|
|
693
748
|
};
|
|
749
|
+
const queryParams = {};
|
|
694
750
|
let headerParams = {
|
|
695
751
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
696
|
-
"opc-request-id":
|
|
752
|
+
"opc-request-id": getObjectStorageLinkRequest.opcRequestId
|
|
697
753
|
};
|
|
698
754
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
699
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
755
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getObjectStorageLinkRequest.retryConfiguration, specRetryConfiguration);
|
|
700
756
|
if (this.logger)
|
|
701
757
|
retrier.logger = this.logger;
|
|
702
758
|
const request = yield oci_common_1.composeRequest({
|
|
703
759
|
baseEndpoint: this._endpoint,
|
|
704
760
|
defaultHeaders: this._defaultHeaders,
|
|
705
|
-
path: "/
|
|
761
|
+
path: "/objectStorageLinks/{objectStorageLinkId}",
|
|
706
762
|
method: "GET",
|
|
707
763
|
pathParams: pathParams,
|
|
708
764
|
headerParams: headerParams,
|
|
@@ -713,13 +769,13 @@ class LustreFileStorageClient {
|
|
|
713
769
|
const sdkResponse = oci_common_1.composeResponse({
|
|
714
770
|
responseObject: {},
|
|
715
771
|
body: yield response.json(),
|
|
716
|
-
bodyKey: "
|
|
717
|
-
bodyModel: model.
|
|
718
|
-
type: "model.
|
|
772
|
+
bodyKey: "objectStorageLink",
|
|
773
|
+
bodyModel: model.ObjectStorageLink,
|
|
774
|
+
type: "model.ObjectStorageLink",
|
|
719
775
|
responseHeaders: [
|
|
720
776
|
{
|
|
721
|
-
value: response.headers.get("
|
|
722
|
-
key: "
|
|
777
|
+
value: response.headers.get("etag"),
|
|
778
|
+
key: "etag",
|
|
723
779
|
dataType: "string"
|
|
724
780
|
},
|
|
725
781
|
{
|
|
@@ -737,41 +793,38 @@ class LustreFileStorageClient {
|
|
|
737
793
|
});
|
|
738
794
|
}
|
|
739
795
|
/**
|
|
740
|
-
*
|
|
796
|
+
* Gets details of a sync job associated with an Object Storage link when `objectStorageLink` and a unique ID are provided.
|
|
741
797
|
*
|
|
742
798
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
743
|
-
* @param
|
|
744
|
-
* @return
|
|
799
|
+
* @param GetSyncJobRequest
|
|
800
|
+
* @return GetSyncJobResponse
|
|
745
801
|
* @throws OciError when an error occurs
|
|
746
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/
|
|
802
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/GetSyncJob.ts.html |here} to see how to use GetSyncJob API.
|
|
747
803
|
*/
|
|
748
|
-
|
|
804
|
+
getSyncJob(getSyncJobRequest) {
|
|
749
805
|
return __awaiter(this, void 0, void 0, function* () {
|
|
750
806
|
if (this.logger)
|
|
751
|
-
this.logger.debug("Calling operation LustreFileStorageClient#
|
|
752
|
-
const operationName = "
|
|
807
|
+
this.logger.debug("Calling operation LustreFileStorageClient#getSyncJob.");
|
|
808
|
+
const operationName = "getSyncJob";
|
|
753
809
|
const apiReferenceLink = "";
|
|
754
810
|
const pathParams = {
|
|
755
|
-
"{
|
|
756
|
-
|
|
757
|
-
const queryParams = {
|
|
758
|
-
"page": listWorkRequestLogsRequest.page,
|
|
759
|
-
"limit": listWorkRequestLogsRequest.limit,
|
|
760
|
-
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
761
|
-
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
811
|
+
"{objectStorageLinkId}": getSyncJobRequest.objectStorageLinkId,
|
|
812
|
+
"{syncJobId}": getSyncJobRequest.syncJobId
|
|
762
813
|
};
|
|
814
|
+
const queryParams = {};
|
|
763
815
|
let headerParams = {
|
|
764
816
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
765
|
-
"
|
|
817
|
+
"if-match": getSyncJobRequest.ifMatch,
|
|
818
|
+
"opc-request-id": getSyncJobRequest.opcRequestId
|
|
766
819
|
};
|
|
767
820
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
768
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
821
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSyncJobRequest.retryConfiguration, specRetryConfiguration);
|
|
769
822
|
if (this.logger)
|
|
770
823
|
retrier.logger = this.logger;
|
|
771
824
|
const request = yield oci_common_1.composeRequest({
|
|
772
825
|
baseEndpoint: this._endpoint,
|
|
773
826
|
defaultHeaders: this._defaultHeaders,
|
|
774
|
-
path: "/
|
|
827
|
+
path: "/objectStorageLinks/{objectStorageLinkId}/syncJobs/{syncJobId}",
|
|
775
828
|
method: "GET",
|
|
776
829
|
pathParams: pathParams,
|
|
777
830
|
headerParams: headerParams,
|
|
@@ -782,13 +835,13 @@ class LustreFileStorageClient {
|
|
|
782
835
|
const sdkResponse = oci_common_1.composeResponse({
|
|
783
836
|
responseObject: {},
|
|
784
837
|
body: yield response.json(),
|
|
785
|
-
bodyKey: "
|
|
786
|
-
bodyModel: model.
|
|
787
|
-
type: "model.
|
|
838
|
+
bodyKey: "syncJob",
|
|
839
|
+
bodyModel: model.SyncJob,
|
|
840
|
+
type: "model.SyncJob",
|
|
788
841
|
responseHeaders: [
|
|
789
842
|
{
|
|
790
|
-
value: response.headers.get("
|
|
791
|
-
key: "
|
|
843
|
+
value: response.headers.get("etag"),
|
|
844
|
+
key: "etag",
|
|
792
845
|
dataType: "string"
|
|
793
846
|
},
|
|
794
847
|
{
|
|
@@ -806,19 +859,441 @@ class LustreFileStorageClient {
|
|
|
806
859
|
});
|
|
807
860
|
}
|
|
808
861
|
/**
|
|
809
|
-
*
|
|
810
|
-
*
|
|
862
|
+
* Gets the details of a work request.
|
|
811
863
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
812
|
-
* @param
|
|
813
|
-
* @return
|
|
864
|
+
* @param GetWorkRequestRequest
|
|
865
|
+
* @return GetWorkRequestResponse
|
|
814
866
|
* @throws OciError when an error occurs
|
|
815
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/
|
|
867
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
816
868
|
*/
|
|
817
|
-
|
|
869
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
818
870
|
return __awaiter(this, void 0, void 0, function* () {
|
|
819
871
|
if (this.logger)
|
|
820
|
-
this.logger.debug("Calling operation LustreFileStorageClient#
|
|
821
|
-
const operationName = "
|
|
872
|
+
this.logger.debug("Calling operation LustreFileStorageClient#getWorkRequest.");
|
|
873
|
+
const operationName = "getWorkRequest";
|
|
874
|
+
const apiReferenceLink = "";
|
|
875
|
+
const pathParams = {
|
|
876
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
877
|
+
};
|
|
878
|
+
const queryParams = {};
|
|
879
|
+
let headerParams = {
|
|
880
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
881
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
882
|
+
};
|
|
883
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
884
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
885
|
+
if (this.logger)
|
|
886
|
+
retrier.logger = this.logger;
|
|
887
|
+
const request = yield oci_common_1.composeRequest({
|
|
888
|
+
baseEndpoint: this._endpoint,
|
|
889
|
+
defaultHeaders: this._defaultHeaders,
|
|
890
|
+
path: "/workRequests/{workRequestId}",
|
|
891
|
+
method: "GET",
|
|
892
|
+
pathParams: pathParams,
|
|
893
|
+
headerParams: headerParams,
|
|
894
|
+
queryParams: queryParams
|
|
895
|
+
});
|
|
896
|
+
try {
|
|
897
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
898
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
899
|
+
responseObject: {},
|
|
900
|
+
body: yield response.json(),
|
|
901
|
+
bodyKey: "workRequest",
|
|
902
|
+
bodyModel: model.WorkRequest,
|
|
903
|
+
type: "model.WorkRequest",
|
|
904
|
+
responseHeaders: [
|
|
905
|
+
{
|
|
906
|
+
value: response.headers.get("etag"),
|
|
907
|
+
key: "etag",
|
|
908
|
+
dataType: "string"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
value: response.headers.get("opc-request-id"),
|
|
912
|
+
key: "opcRequestId",
|
|
913
|
+
dataType: "string"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
value: response.headers.get("retry-after"),
|
|
917
|
+
key: "retryAfter",
|
|
918
|
+
dataType: "number"
|
|
919
|
+
}
|
|
920
|
+
]
|
|
921
|
+
});
|
|
922
|
+
return sdkResponse;
|
|
923
|
+
}
|
|
924
|
+
catch (err) {
|
|
925
|
+
throw err;
|
|
926
|
+
}
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
* Gets a list of Lustre file systems.
|
|
931
|
+
*
|
|
932
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
933
|
+
* @param ListLustreFileSystemsRequest
|
|
934
|
+
* @return ListLustreFileSystemsResponse
|
|
935
|
+
* @throws OciError when an error occurs
|
|
936
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListLustreFileSystems.ts.html |here} to see how to use ListLustreFileSystems API.
|
|
937
|
+
*/
|
|
938
|
+
listLustreFileSystems(listLustreFileSystemsRequest) {
|
|
939
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
940
|
+
if (this.logger)
|
|
941
|
+
this.logger.debug("Calling operation LustreFileStorageClient#listLustreFileSystems.");
|
|
942
|
+
const operationName = "listLustreFileSystems";
|
|
943
|
+
const apiReferenceLink = "";
|
|
944
|
+
const pathParams = {};
|
|
945
|
+
const queryParams = {
|
|
946
|
+
"compartmentId": listLustreFileSystemsRequest.compartmentId,
|
|
947
|
+
"availabilityDomain": listLustreFileSystemsRequest.availabilityDomain,
|
|
948
|
+
"lifecycleState": listLustreFileSystemsRequest.lifecycleState,
|
|
949
|
+
"displayName": listLustreFileSystemsRequest.displayName,
|
|
950
|
+
"id": listLustreFileSystemsRequest.id,
|
|
951
|
+
"limit": listLustreFileSystemsRequest.limit,
|
|
952
|
+
"page": listLustreFileSystemsRequest.page,
|
|
953
|
+
"sortOrder": listLustreFileSystemsRequest.sortOrder,
|
|
954
|
+
"sortBy": listLustreFileSystemsRequest.sortBy
|
|
955
|
+
};
|
|
956
|
+
let headerParams = {
|
|
957
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
958
|
+
"opc-request-id": listLustreFileSystemsRequest.opcRequestId
|
|
959
|
+
};
|
|
960
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
961
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listLustreFileSystemsRequest.retryConfiguration, specRetryConfiguration);
|
|
962
|
+
if (this.logger)
|
|
963
|
+
retrier.logger = this.logger;
|
|
964
|
+
const request = yield oci_common_1.composeRequest({
|
|
965
|
+
baseEndpoint: this._endpoint,
|
|
966
|
+
defaultHeaders: this._defaultHeaders,
|
|
967
|
+
path: "/lustreFileSystems",
|
|
968
|
+
method: "GET",
|
|
969
|
+
pathParams: pathParams,
|
|
970
|
+
headerParams: headerParams,
|
|
971
|
+
queryParams: queryParams
|
|
972
|
+
});
|
|
973
|
+
try {
|
|
974
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
975
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
976
|
+
responseObject: {},
|
|
977
|
+
body: yield response.json(),
|
|
978
|
+
bodyKey: "lustreFileSystemCollection",
|
|
979
|
+
bodyModel: model.LustreFileSystemCollection,
|
|
980
|
+
type: "model.LustreFileSystemCollection",
|
|
981
|
+
responseHeaders: [
|
|
982
|
+
{
|
|
983
|
+
value: response.headers.get("opc-request-id"),
|
|
984
|
+
key: "opcRequestId",
|
|
985
|
+
dataType: "string"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
value: response.headers.get("opc-next-page"),
|
|
989
|
+
key: "opcNextPage",
|
|
990
|
+
dataType: "string"
|
|
991
|
+
}
|
|
992
|
+
]
|
|
993
|
+
});
|
|
994
|
+
return sdkResponse;
|
|
995
|
+
}
|
|
996
|
+
catch (err) {
|
|
997
|
+
throw err;
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Gets a list of Object Storage links.
|
|
1003
|
+
*
|
|
1004
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1005
|
+
* @param ListObjectStorageLinksRequest
|
|
1006
|
+
* @return ListObjectStorageLinksResponse
|
|
1007
|
+
* @throws OciError when an error occurs
|
|
1008
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListObjectStorageLinks.ts.html |here} to see how to use ListObjectStorageLinks API.
|
|
1009
|
+
*/
|
|
1010
|
+
listObjectStorageLinks(listObjectStorageLinksRequest) {
|
|
1011
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1012
|
+
if (this.logger)
|
|
1013
|
+
this.logger.debug("Calling operation LustreFileStorageClient#listObjectStorageLinks.");
|
|
1014
|
+
const operationName = "listObjectStorageLinks";
|
|
1015
|
+
const apiReferenceLink = "";
|
|
1016
|
+
const pathParams = {};
|
|
1017
|
+
const queryParams = {
|
|
1018
|
+
"compartmentId": listObjectStorageLinksRequest.compartmentId,
|
|
1019
|
+
"availabilityDomain": listObjectStorageLinksRequest.availabilityDomain,
|
|
1020
|
+
"lifecycleState": listObjectStorageLinksRequest.lifecycleState,
|
|
1021
|
+
"displayName": listObjectStorageLinksRequest.displayName,
|
|
1022
|
+
"id": listObjectStorageLinksRequest.id,
|
|
1023
|
+
"limit": listObjectStorageLinksRequest.limit,
|
|
1024
|
+
"page": listObjectStorageLinksRequest.page,
|
|
1025
|
+
"sortOrder": listObjectStorageLinksRequest.sortOrder,
|
|
1026
|
+
"sortBy": listObjectStorageLinksRequest.sortBy,
|
|
1027
|
+
"lustreFileSystemId": listObjectStorageLinksRequest.lustreFileSystemId
|
|
1028
|
+
};
|
|
1029
|
+
let headerParams = {
|
|
1030
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1031
|
+
"opc-request-id": listObjectStorageLinksRequest.opcRequestId
|
|
1032
|
+
};
|
|
1033
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1034
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listObjectStorageLinksRequest.retryConfiguration, specRetryConfiguration);
|
|
1035
|
+
if (this.logger)
|
|
1036
|
+
retrier.logger = this.logger;
|
|
1037
|
+
const request = yield oci_common_1.composeRequest({
|
|
1038
|
+
baseEndpoint: this._endpoint,
|
|
1039
|
+
defaultHeaders: this._defaultHeaders,
|
|
1040
|
+
path: "/objectStorageLinks",
|
|
1041
|
+
method: "GET",
|
|
1042
|
+
pathParams: pathParams,
|
|
1043
|
+
headerParams: headerParams,
|
|
1044
|
+
queryParams: queryParams
|
|
1045
|
+
});
|
|
1046
|
+
try {
|
|
1047
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1048
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1049
|
+
responseObject: {},
|
|
1050
|
+
body: yield response.json(),
|
|
1051
|
+
bodyKey: "objectStorageLinkCollection",
|
|
1052
|
+
bodyModel: model.ObjectStorageLinkCollection,
|
|
1053
|
+
type: "model.ObjectStorageLinkCollection",
|
|
1054
|
+
responseHeaders: [
|
|
1055
|
+
{
|
|
1056
|
+
value: response.headers.get("opc-request-id"),
|
|
1057
|
+
key: "opcRequestId",
|
|
1058
|
+
dataType: "string"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
value: response.headers.get("opc-next-page"),
|
|
1062
|
+
key: "opcNextPage",
|
|
1063
|
+
dataType: "string"
|
|
1064
|
+
}
|
|
1065
|
+
]
|
|
1066
|
+
});
|
|
1067
|
+
return sdkResponse;
|
|
1068
|
+
}
|
|
1069
|
+
catch (err) {
|
|
1070
|
+
throw err;
|
|
1071
|
+
}
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Lists all sync jobs associated with the Object Storage link. Contains a unique ID for each sync job.
|
|
1076
|
+
*
|
|
1077
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1078
|
+
* @param ListSyncJobsRequest
|
|
1079
|
+
* @return ListSyncJobsResponse
|
|
1080
|
+
* @throws OciError when an error occurs
|
|
1081
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListSyncJobs.ts.html |here} to see how to use ListSyncJobs API.
|
|
1082
|
+
*/
|
|
1083
|
+
listSyncJobs(listSyncJobsRequest) {
|
|
1084
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1085
|
+
if (this.logger)
|
|
1086
|
+
this.logger.debug("Calling operation LustreFileStorageClient#listSyncJobs.");
|
|
1087
|
+
const operationName = "listSyncJobs";
|
|
1088
|
+
const apiReferenceLink = "";
|
|
1089
|
+
const pathParams = {
|
|
1090
|
+
"{objectStorageLinkId}": listSyncJobsRequest.objectStorageLinkId
|
|
1091
|
+
};
|
|
1092
|
+
const queryParams = {
|
|
1093
|
+
"limit": listSyncJobsRequest.limit,
|
|
1094
|
+
"page": listSyncJobsRequest.page,
|
|
1095
|
+
"sortOrder": listSyncJobsRequest.sortOrder,
|
|
1096
|
+
"lifecycleState": listSyncJobsRequest.lifecycleState,
|
|
1097
|
+
"sortBy": listSyncJobsRequest.sortBy
|
|
1098
|
+
};
|
|
1099
|
+
let headerParams = {
|
|
1100
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1101
|
+
"if-match": listSyncJobsRequest.ifMatch,
|
|
1102
|
+
"opc-request-id": listSyncJobsRequest.opcRequestId
|
|
1103
|
+
};
|
|
1104
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1105
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSyncJobsRequest.retryConfiguration, specRetryConfiguration);
|
|
1106
|
+
if (this.logger)
|
|
1107
|
+
retrier.logger = this.logger;
|
|
1108
|
+
const request = yield oci_common_1.composeRequest({
|
|
1109
|
+
baseEndpoint: this._endpoint,
|
|
1110
|
+
defaultHeaders: this._defaultHeaders,
|
|
1111
|
+
path: "/objectStorageLinks/{objectStorageLinkId}/syncJobs",
|
|
1112
|
+
method: "GET",
|
|
1113
|
+
pathParams: pathParams,
|
|
1114
|
+
headerParams: headerParams,
|
|
1115
|
+
queryParams: queryParams
|
|
1116
|
+
});
|
|
1117
|
+
try {
|
|
1118
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1119
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1120
|
+
responseObject: {},
|
|
1121
|
+
body: yield response.json(),
|
|
1122
|
+
bodyKey: "syncJobCollection",
|
|
1123
|
+
bodyModel: model.SyncJobCollection,
|
|
1124
|
+
type: "model.SyncJobCollection",
|
|
1125
|
+
responseHeaders: [
|
|
1126
|
+
{
|
|
1127
|
+
value: response.headers.get("opc-next-page"),
|
|
1128
|
+
key: "opcNextPage",
|
|
1129
|
+
dataType: "string"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
value: response.headers.get("opc-request-id"),
|
|
1133
|
+
key: "opcRequestId",
|
|
1134
|
+
dataType: "string"
|
|
1135
|
+
}
|
|
1136
|
+
]
|
|
1137
|
+
});
|
|
1138
|
+
return sdkResponse;
|
|
1139
|
+
}
|
|
1140
|
+
catch (err) {
|
|
1141
|
+
throw err;
|
|
1142
|
+
}
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Lists the errors for a work request.
|
|
1147
|
+
*
|
|
1148
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1149
|
+
* @param ListWorkRequestErrorsRequest
|
|
1150
|
+
* @return ListWorkRequestErrorsResponse
|
|
1151
|
+
* @throws OciError when an error occurs
|
|
1152
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1153
|
+
*/
|
|
1154
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1156
|
+
if (this.logger)
|
|
1157
|
+
this.logger.debug("Calling operation LustreFileStorageClient#listWorkRequestErrors.");
|
|
1158
|
+
const operationName = "listWorkRequestErrors";
|
|
1159
|
+
const apiReferenceLink = "";
|
|
1160
|
+
const pathParams = {
|
|
1161
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1162
|
+
};
|
|
1163
|
+
const queryParams = {
|
|
1164
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1165
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
1166
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1167
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
1168
|
+
};
|
|
1169
|
+
let headerParams = {
|
|
1170
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1171
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1172
|
+
};
|
|
1173
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1174
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1175
|
+
if (this.logger)
|
|
1176
|
+
retrier.logger = this.logger;
|
|
1177
|
+
const request = yield oci_common_1.composeRequest({
|
|
1178
|
+
baseEndpoint: this._endpoint,
|
|
1179
|
+
defaultHeaders: this._defaultHeaders,
|
|
1180
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1181
|
+
method: "GET",
|
|
1182
|
+
pathParams: pathParams,
|
|
1183
|
+
headerParams: headerParams,
|
|
1184
|
+
queryParams: queryParams
|
|
1185
|
+
});
|
|
1186
|
+
try {
|
|
1187
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1188
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1189
|
+
responseObject: {},
|
|
1190
|
+
body: yield response.json(),
|
|
1191
|
+
bodyKey: "workRequestErrorCollection",
|
|
1192
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1193
|
+
type: "model.WorkRequestErrorCollection",
|
|
1194
|
+
responseHeaders: [
|
|
1195
|
+
{
|
|
1196
|
+
value: response.headers.get("opc-next-page"),
|
|
1197
|
+
key: "opcNextPage",
|
|
1198
|
+
dataType: "string"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
value: response.headers.get("opc-request-id"),
|
|
1202
|
+
key: "opcRequestId",
|
|
1203
|
+
dataType: "string"
|
|
1204
|
+
}
|
|
1205
|
+
]
|
|
1206
|
+
});
|
|
1207
|
+
return sdkResponse;
|
|
1208
|
+
}
|
|
1209
|
+
catch (err) {
|
|
1210
|
+
throw err;
|
|
1211
|
+
}
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
* Lists the logs for a work request.
|
|
1216
|
+
*
|
|
1217
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1218
|
+
* @param ListWorkRequestLogsRequest
|
|
1219
|
+
* @return ListWorkRequestLogsResponse
|
|
1220
|
+
* @throws OciError when an error occurs
|
|
1221
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1222
|
+
*/
|
|
1223
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1225
|
+
if (this.logger)
|
|
1226
|
+
this.logger.debug("Calling operation LustreFileStorageClient#listWorkRequestLogs.");
|
|
1227
|
+
const operationName = "listWorkRequestLogs";
|
|
1228
|
+
const apiReferenceLink = "";
|
|
1229
|
+
const pathParams = {
|
|
1230
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1231
|
+
};
|
|
1232
|
+
const queryParams = {
|
|
1233
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1234
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
1235
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1236
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
1237
|
+
};
|
|
1238
|
+
let headerParams = {
|
|
1239
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1240
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1241
|
+
};
|
|
1242
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1243
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1244
|
+
if (this.logger)
|
|
1245
|
+
retrier.logger = this.logger;
|
|
1246
|
+
const request = yield oci_common_1.composeRequest({
|
|
1247
|
+
baseEndpoint: this._endpoint,
|
|
1248
|
+
defaultHeaders: this._defaultHeaders,
|
|
1249
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1250
|
+
method: "GET",
|
|
1251
|
+
pathParams: pathParams,
|
|
1252
|
+
headerParams: headerParams,
|
|
1253
|
+
queryParams: queryParams
|
|
1254
|
+
});
|
|
1255
|
+
try {
|
|
1256
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1257
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1258
|
+
responseObject: {},
|
|
1259
|
+
body: yield response.json(),
|
|
1260
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1261
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1262
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1263
|
+
responseHeaders: [
|
|
1264
|
+
{
|
|
1265
|
+
value: response.headers.get("opc-next-page"),
|
|
1266
|
+
key: "opcNextPage",
|
|
1267
|
+
dataType: "string"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
value: response.headers.get("opc-request-id"),
|
|
1271
|
+
key: "opcRequestId",
|
|
1272
|
+
dataType: "string"
|
|
1273
|
+
}
|
|
1274
|
+
]
|
|
1275
|
+
});
|
|
1276
|
+
return sdkResponse;
|
|
1277
|
+
}
|
|
1278
|
+
catch (err) {
|
|
1279
|
+
throw err;
|
|
1280
|
+
}
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Lists the work requests in a compartment.
|
|
1285
|
+
*
|
|
1286
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1287
|
+
* @param ListWorkRequestsRequest
|
|
1288
|
+
* @return ListWorkRequestsResponse
|
|
1289
|
+
* @throws OciError when an error occurs
|
|
1290
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1291
|
+
*/
|
|
1292
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1294
|
+
if (this.logger)
|
|
1295
|
+
this.logger.debug("Calling operation LustreFileStorageClient#listWorkRequests.");
|
|
1296
|
+
const operationName = "listWorkRequests";
|
|
822
1297
|
const apiReferenceLink = "";
|
|
823
1298
|
const pathParams = {};
|
|
824
1299
|
const queryParams = {
|
|
@@ -876,6 +1351,256 @@ class LustreFileStorageClient {
|
|
|
876
1351
|
}
|
|
877
1352
|
});
|
|
878
1353
|
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Starts the export of data from the Lustre file system to Object Storage.
|
|
1356
|
+
* The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource.
|
|
1357
|
+
*
|
|
1358
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1359
|
+
* @param StartExportToObjectRequest
|
|
1360
|
+
* @return StartExportToObjectResponse
|
|
1361
|
+
* @throws OciError when an error occurs
|
|
1362
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/StartExportToObject.ts.html |here} to see how to use StartExportToObject API.
|
|
1363
|
+
*/
|
|
1364
|
+
startExportToObject(startExportToObjectRequest) {
|
|
1365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1366
|
+
if (this.logger)
|
|
1367
|
+
this.logger.debug("Calling operation LustreFileStorageClient#startExportToObject.");
|
|
1368
|
+
const operationName = "startExportToObject";
|
|
1369
|
+
const apiReferenceLink = "";
|
|
1370
|
+
const pathParams = {
|
|
1371
|
+
"{objectStorageLinkId}": startExportToObjectRequest.objectStorageLinkId
|
|
1372
|
+
};
|
|
1373
|
+
const queryParams = {};
|
|
1374
|
+
let headerParams = {
|
|
1375
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1376
|
+
"if-match": startExportToObjectRequest.ifMatch,
|
|
1377
|
+
"opc-request-id": startExportToObjectRequest.opcRequestId,
|
|
1378
|
+
"opc-retry-token": startExportToObjectRequest.opcRetryToken
|
|
1379
|
+
};
|
|
1380
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1381
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startExportToObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1382
|
+
if (this.logger)
|
|
1383
|
+
retrier.logger = this.logger;
|
|
1384
|
+
const request = yield oci_common_1.composeRequest({
|
|
1385
|
+
baseEndpoint: this._endpoint,
|
|
1386
|
+
defaultHeaders: this._defaultHeaders,
|
|
1387
|
+
path: "/objectStorageLinks/{objectStorageLinkId}/actions/startExportToObject",
|
|
1388
|
+
method: "POST",
|
|
1389
|
+
pathParams: pathParams,
|
|
1390
|
+
headerParams: headerParams,
|
|
1391
|
+
queryParams: queryParams
|
|
1392
|
+
});
|
|
1393
|
+
try {
|
|
1394
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1395
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1396
|
+
responseObject: {},
|
|
1397
|
+
body: yield response.json(),
|
|
1398
|
+
bodyKey: "syncJob",
|
|
1399
|
+
bodyModel: model.SyncJob,
|
|
1400
|
+
type: "model.SyncJob",
|
|
1401
|
+
responseHeaders: [
|
|
1402
|
+
{
|
|
1403
|
+
value: response.headers.get("etag"),
|
|
1404
|
+
key: "etag",
|
|
1405
|
+
dataType: "string"
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
value: response.headers.get("opc-request-id"),
|
|
1409
|
+
key: "opcRequestId",
|
|
1410
|
+
dataType: "string"
|
|
1411
|
+
}
|
|
1412
|
+
]
|
|
1413
|
+
});
|
|
1414
|
+
return sdkResponse;
|
|
1415
|
+
}
|
|
1416
|
+
catch (err) {
|
|
1417
|
+
throw err;
|
|
1418
|
+
}
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Starts the import of data from Object Storage to the Lustre file system.
|
|
1423
|
+
* The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource.
|
|
1424
|
+
*
|
|
1425
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1426
|
+
* @param StartImportFromObjectRequest
|
|
1427
|
+
* @return StartImportFromObjectResponse
|
|
1428
|
+
* @throws OciError when an error occurs
|
|
1429
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/StartImportFromObject.ts.html |here} to see how to use StartImportFromObject API.
|
|
1430
|
+
*/
|
|
1431
|
+
startImportFromObject(startImportFromObjectRequest) {
|
|
1432
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1433
|
+
if (this.logger)
|
|
1434
|
+
this.logger.debug("Calling operation LustreFileStorageClient#startImportFromObject.");
|
|
1435
|
+
const operationName = "startImportFromObject";
|
|
1436
|
+
const apiReferenceLink = "";
|
|
1437
|
+
const pathParams = {
|
|
1438
|
+
"{objectStorageLinkId}": startImportFromObjectRequest.objectStorageLinkId
|
|
1439
|
+
};
|
|
1440
|
+
const queryParams = {};
|
|
1441
|
+
let headerParams = {
|
|
1442
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1443
|
+
"if-match": startImportFromObjectRequest.ifMatch,
|
|
1444
|
+
"opc-request-id": startImportFromObjectRequest.opcRequestId,
|
|
1445
|
+
"opc-retry-token": startImportFromObjectRequest.opcRetryToken
|
|
1446
|
+
};
|
|
1447
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1448
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startImportFromObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1449
|
+
if (this.logger)
|
|
1450
|
+
retrier.logger = this.logger;
|
|
1451
|
+
const request = yield oci_common_1.composeRequest({
|
|
1452
|
+
baseEndpoint: this._endpoint,
|
|
1453
|
+
defaultHeaders: this._defaultHeaders,
|
|
1454
|
+
path: "/objectStorageLinks/{objectStorageLinkId}/actions/startImportFromObject",
|
|
1455
|
+
method: "POST",
|
|
1456
|
+
pathParams: pathParams,
|
|
1457
|
+
headerParams: headerParams,
|
|
1458
|
+
queryParams: queryParams
|
|
1459
|
+
});
|
|
1460
|
+
try {
|
|
1461
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1462
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1463
|
+
responseObject: {},
|
|
1464
|
+
body: yield response.json(),
|
|
1465
|
+
bodyKey: "syncJob",
|
|
1466
|
+
bodyModel: model.SyncJob,
|
|
1467
|
+
type: "model.SyncJob",
|
|
1468
|
+
responseHeaders: [
|
|
1469
|
+
{
|
|
1470
|
+
value: response.headers.get("etag"),
|
|
1471
|
+
key: "etag",
|
|
1472
|
+
dataType: "string"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
value: response.headers.get("opc-request-id"),
|
|
1476
|
+
key: "opcRequestId",
|
|
1477
|
+
dataType: "string"
|
|
1478
|
+
}
|
|
1479
|
+
]
|
|
1480
|
+
});
|
|
1481
|
+
return sdkResponse;
|
|
1482
|
+
}
|
|
1483
|
+
catch (err) {
|
|
1484
|
+
throw err;
|
|
1485
|
+
}
|
|
1486
|
+
});
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* Stops the export of data from the Lustre file system to Object Storage.
|
|
1490
|
+
* The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource.
|
|
1491
|
+
*
|
|
1492
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1493
|
+
* @param StopExportToObjectRequest
|
|
1494
|
+
* @return StopExportToObjectResponse
|
|
1495
|
+
* @throws OciError when an error occurs
|
|
1496
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/StopExportToObject.ts.html |here} to see how to use StopExportToObject API.
|
|
1497
|
+
*/
|
|
1498
|
+
stopExportToObject(stopExportToObjectRequest) {
|
|
1499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1500
|
+
if (this.logger)
|
|
1501
|
+
this.logger.debug("Calling operation LustreFileStorageClient#stopExportToObject.");
|
|
1502
|
+
const operationName = "stopExportToObject";
|
|
1503
|
+
const apiReferenceLink = "";
|
|
1504
|
+
const pathParams = {
|
|
1505
|
+
"{objectStorageLinkId}": stopExportToObjectRequest.objectStorageLinkId
|
|
1506
|
+
};
|
|
1507
|
+
const queryParams = {};
|
|
1508
|
+
let headerParams = {
|
|
1509
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1510
|
+
"if-match": stopExportToObjectRequest.ifMatch,
|
|
1511
|
+
"opc-request-id": stopExportToObjectRequest.opcRequestId,
|
|
1512
|
+
"opc-retry-token": stopExportToObjectRequest.opcRetryToken
|
|
1513
|
+
};
|
|
1514
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1515
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopExportToObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1516
|
+
if (this.logger)
|
|
1517
|
+
retrier.logger = this.logger;
|
|
1518
|
+
const request = yield oci_common_1.composeRequest({
|
|
1519
|
+
baseEndpoint: this._endpoint,
|
|
1520
|
+
defaultHeaders: this._defaultHeaders,
|
|
1521
|
+
path: "/objectStorageLinks/{objectStorageLinkId}/actions/stopExportToObject",
|
|
1522
|
+
method: "POST",
|
|
1523
|
+
pathParams: pathParams,
|
|
1524
|
+
headerParams: headerParams,
|
|
1525
|
+
queryParams: queryParams
|
|
1526
|
+
});
|
|
1527
|
+
try {
|
|
1528
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1529
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1530
|
+
responseObject: {},
|
|
1531
|
+
responseHeaders: [
|
|
1532
|
+
{
|
|
1533
|
+
value: response.headers.get("opc-request-id"),
|
|
1534
|
+
key: "opcRequestId",
|
|
1535
|
+
dataType: "string"
|
|
1536
|
+
}
|
|
1537
|
+
]
|
|
1538
|
+
});
|
|
1539
|
+
return sdkResponse;
|
|
1540
|
+
}
|
|
1541
|
+
catch (err) {
|
|
1542
|
+
throw err;
|
|
1543
|
+
}
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Stops the import of data from Object Storage to the Lustre file system.
|
|
1548
|
+
* The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource.
|
|
1549
|
+
*
|
|
1550
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1551
|
+
* @param StopImportFromObjectRequest
|
|
1552
|
+
* @return StopImportFromObjectResponse
|
|
1553
|
+
* @throws OciError when an error occurs
|
|
1554
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/StopImportFromObject.ts.html |here} to see how to use StopImportFromObject API.
|
|
1555
|
+
*/
|
|
1556
|
+
stopImportFromObject(stopImportFromObjectRequest) {
|
|
1557
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1558
|
+
if (this.logger)
|
|
1559
|
+
this.logger.debug("Calling operation LustreFileStorageClient#stopImportFromObject.");
|
|
1560
|
+
const operationName = "stopImportFromObject";
|
|
1561
|
+
const apiReferenceLink = "";
|
|
1562
|
+
const pathParams = {
|
|
1563
|
+
"{objectStorageLinkId}": stopImportFromObjectRequest.objectStorageLinkId
|
|
1564
|
+
};
|
|
1565
|
+
const queryParams = {};
|
|
1566
|
+
let headerParams = {
|
|
1567
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1568
|
+
"if-match": stopImportFromObjectRequest.ifMatch,
|
|
1569
|
+
"opc-request-id": stopImportFromObjectRequest.opcRequestId,
|
|
1570
|
+
"opc-retry-token": stopImportFromObjectRequest.opcRetryToken
|
|
1571
|
+
};
|
|
1572
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1573
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopImportFromObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1574
|
+
if (this.logger)
|
|
1575
|
+
retrier.logger = this.logger;
|
|
1576
|
+
const request = yield oci_common_1.composeRequest({
|
|
1577
|
+
baseEndpoint: this._endpoint,
|
|
1578
|
+
defaultHeaders: this._defaultHeaders,
|
|
1579
|
+
path: "/objectStorageLinks/{objectStorageLinkId}/actions/stopImportFromObject",
|
|
1580
|
+
method: "POST",
|
|
1581
|
+
pathParams: pathParams,
|
|
1582
|
+
headerParams: headerParams,
|
|
1583
|
+
queryParams: queryParams
|
|
1584
|
+
});
|
|
1585
|
+
try {
|
|
1586
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1587
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1588
|
+
responseObject: {},
|
|
1589
|
+
responseHeaders: [
|
|
1590
|
+
{
|
|
1591
|
+
value: response.headers.get("opc-request-id"),
|
|
1592
|
+
key: "opcRequestId",
|
|
1593
|
+
dataType: "string"
|
|
1594
|
+
}
|
|
1595
|
+
]
|
|
1596
|
+
});
|
|
1597
|
+
return sdkResponse;
|
|
1598
|
+
}
|
|
1599
|
+
catch (err) {
|
|
1600
|
+
throw err;
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
879
1604
|
/**
|
|
880
1605
|
* Updates a Lustre file system.
|
|
881
1606
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -937,6 +1662,71 @@ class LustreFileStorageClient {
|
|
|
937
1662
|
}
|
|
938
1663
|
});
|
|
939
1664
|
}
|
|
1665
|
+
/**
|
|
1666
|
+
* Updates an Object Storage link.
|
|
1667
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1668
|
+
* @param UpdateObjectStorageLinkRequest
|
|
1669
|
+
* @return UpdateObjectStorageLinkResponse
|
|
1670
|
+
* @throws OciError when an error occurs
|
|
1671
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/UpdateObjectStorageLink.ts.html |here} to see how to use UpdateObjectStorageLink API.
|
|
1672
|
+
*/
|
|
1673
|
+
updateObjectStorageLink(updateObjectStorageLinkRequest) {
|
|
1674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1675
|
+
if (this.logger)
|
|
1676
|
+
this.logger.debug("Calling operation LustreFileStorageClient#updateObjectStorageLink.");
|
|
1677
|
+
const operationName = "updateObjectStorageLink";
|
|
1678
|
+
const apiReferenceLink = "";
|
|
1679
|
+
const pathParams = {
|
|
1680
|
+
"{objectStorageLinkId}": updateObjectStorageLinkRequest.objectStorageLinkId
|
|
1681
|
+
};
|
|
1682
|
+
const queryParams = {};
|
|
1683
|
+
let headerParams = {
|
|
1684
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1685
|
+
"if-match": updateObjectStorageLinkRequest.ifMatch,
|
|
1686
|
+
"opc-request-id": updateObjectStorageLinkRequest.opcRequestId
|
|
1687
|
+
};
|
|
1688
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1689
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateObjectStorageLinkRequest.retryConfiguration, specRetryConfiguration);
|
|
1690
|
+
if (this.logger)
|
|
1691
|
+
retrier.logger = this.logger;
|
|
1692
|
+
const request = yield oci_common_1.composeRequest({
|
|
1693
|
+
baseEndpoint: this._endpoint,
|
|
1694
|
+
defaultHeaders: this._defaultHeaders,
|
|
1695
|
+
path: "/objectStorageLinks/{objectStorageLinkId}",
|
|
1696
|
+
method: "PUT",
|
|
1697
|
+
bodyContent: common.ObjectSerializer.serialize(updateObjectStorageLinkRequest.updateObjectStorageLinkDetails, "UpdateObjectStorageLinkDetails", model.UpdateObjectStorageLinkDetails.getJsonObj),
|
|
1698
|
+
pathParams: pathParams,
|
|
1699
|
+
headerParams: headerParams,
|
|
1700
|
+
queryParams: queryParams
|
|
1701
|
+
});
|
|
1702
|
+
try {
|
|
1703
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1704
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1705
|
+
responseObject: {},
|
|
1706
|
+
body: yield response.json(),
|
|
1707
|
+
bodyKey: "objectStorageLink",
|
|
1708
|
+
bodyModel: model.ObjectStorageLink,
|
|
1709
|
+
type: "model.ObjectStorageLink",
|
|
1710
|
+
responseHeaders: [
|
|
1711
|
+
{
|
|
1712
|
+
value: response.headers.get("etag"),
|
|
1713
|
+
key: "etag",
|
|
1714
|
+
dataType: "string"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
value: response.headers.get("opc-request-id"),
|
|
1718
|
+
key: "opcRequestId",
|
|
1719
|
+
dataType: "string"
|
|
1720
|
+
}
|
|
1721
|
+
]
|
|
1722
|
+
});
|
|
1723
|
+
return sdkResponse;
|
|
1724
|
+
}
|
|
1725
|
+
catch (err) {
|
|
1726
|
+
throw err;
|
|
1727
|
+
}
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
940
1730
|
}
|
|
941
1731
|
exports.LustreFileStorageClient = LustreFileStorageClient;
|
|
942
1732
|
LustreFileStorageClient.serviceEndpointTemplate = "https://lustre-file-storage.{region}.oci.{secondLevelDomain}";
|