oci-core 2.105.0 → 2.106.1
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 +151 -0
- package/lib/client.js +1108 -101
- package/lib/client.js.map +1 -1
- package/lib/compute-waiter.d.ts +74 -0
- package/lib/compute-waiter.js +135 -0
- package/lib/compute-waiter.js.map +1 -1
- package/lib/model/change-compute-gpu-memory-cluster-compartment-details.d.ts +34 -0
- package/lib/model/change-compute-gpu-memory-cluster-compartment-details.js +36 -0
- package/lib/model/change-compute-gpu-memory-cluster-compartment-details.js.map +1 -0
- package/lib/model/change-compute-gpu-memory-fabric-compartment-details.d.ts +34 -0
- package/lib/model/change-compute-gpu-memory-fabric-compartment-details.js +36 -0
- package/lib/model/change-compute-gpu-memory-fabric-compartment-details.js.map +1 -0
- package/lib/model/change-compute-host-compartment-details.d.ts +34 -0
- package/lib/model/change-compute-host-compartment-details.js +36 -0
- package/lib/model/change-compute-host-compartment-details.js.map +1 -0
- package/lib/model/compute-gpu-memory-cluster-collection.d.ts +34 -0
- package/lib/model/compute-gpu-memory-cluster-collection.js +68 -0
- package/lib/model/compute-gpu-memory-cluster-collection.js.map +1 -0
- package/lib/model/compute-gpu-memory-cluster-instance-collection.d.ts +34 -0
- package/lib/model/compute-gpu-memory-cluster-instance-collection.js +68 -0
- package/lib/model/compute-gpu-memory-cluster-instance-collection.js.map +1 -0
- package/lib/model/compute-gpu-memory-cluster-instance-summary.d.ts +102 -0
- package/lib/model/compute-gpu-memory-cluster-instance-summary.js +55 -0
- package/lib/model/compute-gpu-memory-cluster-instance-summary.js.map +1 -0
- package/lib/model/compute-gpu-memory-cluster-summary.d.ts +95 -0
- package/lib/model/compute-gpu-memory-cluster-summary.js +36 -0
- package/lib/model/compute-gpu-memory-cluster-summary.js.map +1 -0
- package/lib/model/compute-gpu-memory-cluster.d.ts +126 -0
- package/lib/model/compute-gpu-memory-cluster.js +49 -0
- package/lib/model/compute-gpu-memory-cluster.js.map +1 -0
- package/lib/model/compute-gpu-memory-fabric-collection.d.ts +34 -0
- package/lib/model/compute-gpu-memory-fabric-collection.js +68 -0
- package/lib/model/compute-gpu-memory-fabric-collection.js.map +1 -0
- package/lib/model/compute-gpu-memory-fabric-summary.d.ts +115 -0
- package/lib/model/compute-gpu-memory-fabric-summary.js +36 -0
- package/lib/model/compute-gpu-memory-fabric-summary.js.map +1 -0
- package/lib/model/compute-gpu-memory-fabric.d.ts +147 -0
- package/lib/model/compute-gpu-memory-fabric.js +59 -0
- package/lib/model/compute-gpu-memory-fabric.js.map +1 -0
- package/lib/model/compute-host-collection.d.ts +34 -0
- package/lib/model/compute-host-collection.js +68 -0
- package/lib/model/compute-host-collection.js.map +1 -0
- package/lib/model/compute-host-summary.d.ts +152 -0
- package/lib/model/compute-host-summary.js +36 -0
- package/lib/model/compute-host-summary.js.map +1 -0
- package/lib/model/compute-host.d.ts +189 -0
- package/lib/model/compute-host.js +59 -0
- package/lib/model/compute-host.js.map +1 -0
- package/lib/model/create-byoip-range-details.d.ts +0 -8
- package/lib/model/create-byoip-range-details.js.map +1 -1
- package/lib/model/create-compute-gpu-memory-cluster-details.d.ts +88 -0
- package/lib/model/create-compute-gpu-memory-cluster-details.js +36 -0
- package/lib/model/create-compute-gpu-memory-cluster-details.js.map +1 -0
- package/lib/model/index.d.ts +36 -0
- package/lib/model/index.js +48 -12
- package/lib/model/index.js.map +1 -1
- package/lib/model/update-byoip-range-details.d.ts +0 -8
- package/lib/model/update-byoip-range-details.js.map +1 -1
- package/lib/model/update-compute-gpu-memory-cluster-details.d.ts +67 -0
- package/lib/model/update-compute-gpu-memory-cluster-details.js +36 -0
- package/lib/model/update-compute-gpu-memory-cluster-details.js.map +1 -0
- package/lib/model/update-compute-gpu-memory-fabric-details.d.ts +57 -0
- package/lib/model/update-compute-gpu-memory-fabric-details.js +36 -0
- package/lib/model/update-compute-gpu-memory-fabric-details.js.map +1 -0
- package/lib/model/update-compute-host-details.d.ts +57 -0
- package/lib/model/update-compute-host-details.js +36 -0
- package/lib/model/update-compute-host-details.js.map +1 -0
- package/lib/request/change-compute-gpu-memory-cluster-compartment-request.d.ts +49 -0
- package/lib/request/change-compute-gpu-memory-cluster-compartment-request.js +15 -0
- package/lib/request/change-compute-gpu-memory-cluster-compartment-request.js.map +1 -0
- package/lib/request/change-compute-gpu-memory-fabric-compartment-request.d.ts +49 -0
- package/lib/request/change-compute-gpu-memory-fabric-compartment-request.js +15 -0
- package/lib/request/change-compute-gpu-memory-fabric-compartment-request.js.map +1 -0
- package/lib/request/change-compute-host-compartment-request.d.ts +50 -0
- package/lib/request/change-compute-host-compartment-request.js +15 -0
- package/lib/request/change-compute-host-compartment-request.js.map +1 -0
- package/lib/request/create-compute-gpu-memory-cluster-request.d.ts +38 -0
- package/lib/request/create-compute-gpu-memory-cluster-request.js +15 -0
- package/lib/request/create-compute-gpu-memory-cluster-request.js.map +1 -0
- package/lib/request/delete-compute-gpu-memory-cluster-request.d.ts +35 -0
- package/lib/request/delete-compute-gpu-memory-cluster-request.js +15 -0
- package/lib/request/delete-compute-gpu-memory-cluster-request.js.map +1 -0
- package/lib/request/get-compute-gpu-memory-cluster-request.d.ts +28 -0
- package/lib/request/get-compute-gpu-memory-cluster-request.js +15 -0
- package/lib/request/get-compute-gpu-memory-cluster-request.js.map +1 -0
- package/lib/request/get-compute-gpu-memory-fabric-request.d.ts +28 -0
- package/lib/request/get-compute-gpu-memory-fabric-request.js +15 -0
- package/lib/request/get-compute-gpu-memory-fabric-request.js.map +1 -0
- package/lib/request/get-compute-host-request.d.ts +29 -0
- package/lib/request/get-compute-host-request.js +15 -0
- package/lib/request/get-compute-host-request.js.map +1 -0
- package/lib/request/index.d.ts +30 -0
- package/lib/request/index.js +10 -2
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-compute-gpu-memory-cluster-instances-request.d.ts +72 -0
- package/lib/request/list-compute-gpu-memory-cluster-instances-request.js +29 -0
- package/lib/request/list-compute-gpu-memory-cluster-instances-request.js.map +1 -0
- package/lib/request/list-compute-gpu-memory-clusters-request.d.ts +96 -0
- package/lib/request/list-compute-gpu-memory-clusters-request.js +29 -0
- package/lib/request/list-compute-gpu-memory-clusters-request.js.map +1 -0
- package/lib/request/list-compute-gpu-memory-fabrics-request.d.ts +107 -0
- package/lib/request/list-compute-gpu-memory-fabrics-request.js +29 -0
- package/lib/request/list-compute-gpu-memory-fabrics-request.js.map +1 -0
- package/lib/request/list-compute-hosts-request.d.ts +102 -0
- package/lib/request/list-compute-hosts-request.js +29 -0
- package/lib/request/list-compute-hosts-request.js.map +1 -0
- package/lib/request/update-compute-gpu-memory-cluster-request.d.ts +49 -0
- package/lib/request/update-compute-gpu-memory-cluster-request.js +15 -0
- package/lib/request/update-compute-gpu-memory-cluster-request.js.map +1 -0
- package/lib/request/update-compute-gpu-memory-fabric-request.d.ts +49 -0
- package/lib/request/update-compute-gpu-memory-fabric-request.js +15 -0
- package/lib/request/update-compute-gpu-memory-fabric-request.js.map +1 -0
- package/lib/request/update-compute-host-request.d.ts +41 -0
- package/lib/request/update-compute-host-request.js +15 -0
- package/lib/request/update-compute-host-request.js.map +1 -0
- package/lib/response/change-compute-gpu-memory-cluster-compartment-response.d.ts +20 -0
- package/lib/response/change-compute-gpu-memory-cluster-compartment-response.js +15 -0
- package/lib/response/change-compute-gpu-memory-cluster-compartment-response.js.map +1 -0
- package/lib/response/change-compute-gpu-memory-fabric-compartment-response.d.ts +20 -0
- package/lib/response/change-compute-gpu-memory-fabric-compartment-response.js +15 -0
- package/lib/response/change-compute-gpu-memory-fabric-compartment-response.js.map +1 -0
- package/lib/response/change-compute-host-compartment-response.d.ts +27 -0
- package/lib/response/change-compute-host-compartment-response.js +15 -0
- package/lib/response/change-compute-host-compartment-response.js.map +1 -0
- package/lib/response/create-compute-gpu-memory-cluster-response.d.ts +37 -0
- package/lib/response/create-compute-gpu-memory-cluster-response.js +15 -0
- package/lib/response/create-compute-gpu-memory-cluster-response.js.map +1 -0
- package/lib/response/delete-compute-gpu-memory-cluster-response.d.ts +27 -0
- package/lib/response/delete-compute-gpu-memory-cluster-response.js +15 -0
- package/lib/response/delete-compute-gpu-memory-cluster-response.js.map +1 -0
- package/lib/response/get-compute-gpu-memory-cluster-response.d.ts +30 -0
- package/lib/response/get-compute-gpu-memory-cluster-response.js +15 -0
- package/lib/response/get-compute-gpu-memory-cluster-response.js.map +1 -0
- package/lib/response/get-compute-gpu-memory-fabric-response.d.ts +30 -0
- package/lib/response/get-compute-gpu-memory-fabric-response.js +15 -0
- package/lib/response/get-compute-gpu-memory-fabric-response.js.map +1 -0
- package/lib/response/get-compute-host-response.d.ts +30 -0
- package/lib/response/get-compute-host-response.js +15 -0
- package/lib/response/get-compute-host-response.js.map +1 -0
- package/lib/response/index.d.ts +30 -0
- package/lib/response/list-compute-gpu-memory-cluster-instances-response.d.ts +37 -0
- package/lib/response/list-compute-gpu-memory-cluster-instances-response.js +15 -0
- package/lib/response/list-compute-gpu-memory-cluster-instances-response.js.map +1 -0
- package/lib/response/list-compute-gpu-memory-clusters-response.d.ts +37 -0
- package/lib/response/list-compute-gpu-memory-clusters-response.js +15 -0
- package/lib/response/list-compute-gpu-memory-clusters-response.js.map +1 -0
- package/lib/response/list-compute-gpu-memory-fabrics-response.d.ts +32 -0
- package/lib/response/list-compute-gpu-memory-fabrics-response.js +15 -0
- package/lib/response/list-compute-gpu-memory-fabrics-response.js.map +1 -0
- package/lib/response/list-compute-hosts-response.d.ts +32 -0
- package/lib/response/list-compute-hosts-response.js +15 -0
- package/lib/response/list-compute-hosts-response.js.map +1 -0
- package/lib/response/update-compute-gpu-memory-cluster-response.d.ts +37 -0
- package/lib/response/update-compute-gpu-memory-cluster-response.js +15 -0
- package/lib/response/update-compute-gpu-memory-cluster-response.js.map +1 -0
- package/lib/response/update-compute-gpu-memory-fabric-response.d.ts +30 -0
- package/lib/response/update-compute-gpu-memory-fabric-response.js +15 -0
- package/lib/response/update-compute-gpu-memory-fabric-response.js.map +1 -0
- package/lib/response/update-compute-host-response.d.ts +32 -0
- package/lib/response/update-compute-host-response.js +15 -0
- package/lib/response/update-compute-host-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -5273,6 +5273,188 @@ class ComputeClient {
|
|
|
5273
5273
|
}
|
|
5274
5274
|
});
|
|
5275
5275
|
}
|
|
5276
|
+
/**
|
|
5277
|
+
* Moves a compute GPU memory cluster into a different compartment. For information about moving resources between
|
|
5278
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
5279
|
+
*
|
|
5280
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5281
|
+
* @param ChangeComputeGpuMemoryClusterCompartmentRequest
|
|
5282
|
+
* @return ChangeComputeGpuMemoryClusterCompartmentResponse
|
|
5283
|
+
* @throws OciError when an error occurs
|
|
5284
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ChangeComputeGpuMemoryClusterCompartment.ts.html |here} to see how to use ChangeComputeGpuMemoryClusterCompartment API.
|
|
5285
|
+
*/
|
|
5286
|
+
changeComputeGpuMemoryClusterCompartment(changeComputeGpuMemoryClusterCompartmentRequest) {
|
|
5287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5288
|
+
if (this.logger)
|
|
5289
|
+
this.logger.debug("Calling operation ComputeClient#changeComputeGpuMemoryClusterCompartment.");
|
|
5290
|
+
const operationName = "changeComputeGpuMemoryClusterCompartment";
|
|
5291
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryCluster/ChangeComputeGpuMemoryClusterCompartment";
|
|
5292
|
+
const pathParams = {
|
|
5293
|
+
"{computeGpuMemoryClusterId}": changeComputeGpuMemoryClusterCompartmentRequest.computeGpuMemoryClusterId
|
|
5294
|
+
};
|
|
5295
|
+
const queryParams = {};
|
|
5296
|
+
let headerParams = {
|
|
5297
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5298
|
+
"if-match": changeComputeGpuMemoryClusterCompartmentRequest.ifMatch,
|
|
5299
|
+
"opc-request-id": changeComputeGpuMemoryClusterCompartmentRequest.opcRequestId,
|
|
5300
|
+
"opc-retry-token": changeComputeGpuMemoryClusterCompartmentRequest.opcRetryToken
|
|
5301
|
+
};
|
|
5302
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5303
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeComputeGpuMemoryClusterCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
5304
|
+
if (this.logger)
|
|
5305
|
+
retrier.logger = this.logger;
|
|
5306
|
+
const request = yield oci_common_2.composeRequest({
|
|
5307
|
+
baseEndpoint: this._endpoint,
|
|
5308
|
+
defaultHeaders: this._defaultHeaders,
|
|
5309
|
+
path: "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}/actions/changeCompartment",
|
|
5310
|
+
method: "POST",
|
|
5311
|
+
bodyContent: common.ObjectSerializer.serialize(changeComputeGpuMemoryClusterCompartmentRequest.changeComputeGpuMemoryClusterCompartmentDetails, "ChangeComputeGpuMemoryClusterCompartmentDetails", model.ChangeComputeGpuMemoryClusterCompartmentDetails.getJsonObj),
|
|
5312
|
+
pathParams: pathParams,
|
|
5313
|
+
headerParams: headerParams,
|
|
5314
|
+
queryParams: queryParams
|
|
5315
|
+
});
|
|
5316
|
+
try {
|
|
5317
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5318
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
5319
|
+
responseObject: {},
|
|
5320
|
+
responseHeaders: [
|
|
5321
|
+
{
|
|
5322
|
+
value: response.headers.get("opc-request-id"),
|
|
5323
|
+
key: "opcRequestId",
|
|
5324
|
+
dataType: "string"
|
|
5325
|
+
}
|
|
5326
|
+
]
|
|
5327
|
+
});
|
|
5328
|
+
return sdkResponse;
|
|
5329
|
+
}
|
|
5330
|
+
catch (err) {
|
|
5331
|
+
throw err;
|
|
5332
|
+
}
|
|
5333
|
+
});
|
|
5334
|
+
}
|
|
5335
|
+
/**
|
|
5336
|
+
* Moves a compute GPU memory fabric into a different compartment. For information about moving resources between
|
|
5337
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
5338
|
+
*
|
|
5339
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5340
|
+
* @param ChangeComputeGpuMemoryFabricCompartmentRequest
|
|
5341
|
+
* @return ChangeComputeGpuMemoryFabricCompartmentResponse
|
|
5342
|
+
* @throws OciError when an error occurs
|
|
5343
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ChangeComputeGpuMemoryFabricCompartment.ts.html |here} to see how to use ChangeComputeGpuMemoryFabricCompartment API.
|
|
5344
|
+
*/
|
|
5345
|
+
changeComputeGpuMemoryFabricCompartment(changeComputeGpuMemoryFabricCompartmentRequest) {
|
|
5346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5347
|
+
if (this.logger)
|
|
5348
|
+
this.logger.debug("Calling operation ComputeClient#changeComputeGpuMemoryFabricCompartment.");
|
|
5349
|
+
const operationName = "changeComputeGpuMemoryFabricCompartment";
|
|
5350
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryFabric/ChangeComputeGpuMemoryFabricCompartment";
|
|
5351
|
+
const pathParams = {
|
|
5352
|
+
"{computeGpuMemoryFabricId}": changeComputeGpuMemoryFabricCompartmentRequest.computeGpuMemoryFabricId
|
|
5353
|
+
};
|
|
5354
|
+
const queryParams = {};
|
|
5355
|
+
let headerParams = {
|
|
5356
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5357
|
+
"if-match": changeComputeGpuMemoryFabricCompartmentRequest.ifMatch,
|
|
5358
|
+
"opc-request-id": changeComputeGpuMemoryFabricCompartmentRequest.opcRequestId,
|
|
5359
|
+
"opc-retry-token": changeComputeGpuMemoryFabricCompartmentRequest.opcRetryToken
|
|
5360
|
+
};
|
|
5361
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5362
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeComputeGpuMemoryFabricCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
5363
|
+
if (this.logger)
|
|
5364
|
+
retrier.logger = this.logger;
|
|
5365
|
+
const request = yield oci_common_2.composeRequest({
|
|
5366
|
+
baseEndpoint: this._endpoint,
|
|
5367
|
+
defaultHeaders: this._defaultHeaders,
|
|
5368
|
+
path: "/computeGpuMemoryFabrics/{computeGpuMemoryFabricId}/actions/changeCompartment",
|
|
5369
|
+
method: "POST",
|
|
5370
|
+
bodyContent: common.ObjectSerializer.serialize(changeComputeGpuMemoryFabricCompartmentRequest.changeComputeGpuMemoryFabricCompartmentDetails, "ChangeComputeGpuMemoryFabricCompartmentDetails", model.ChangeComputeGpuMemoryFabricCompartmentDetails.getJsonObj),
|
|
5371
|
+
pathParams: pathParams,
|
|
5372
|
+
headerParams: headerParams,
|
|
5373
|
+
queryParams: queryParams
|
|
5374
|
+
});
|
|
5375
|
+
try {
|
|
5376
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5377
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
5378
|
+
responseObject: {},
|
|
5379
|
+
responseHeaders: [
|
|
5380
|
+
{
|
|
5381
|
+
value: response.headers.get("opc-request-id"),
|
|
5382
|
+
key: "opcRequestId",
|
|
5383
|
+
dataType: "string"
|
|
5384
|
+
}
|
|
5385
|
+
]
|
|
5386
|
+
});
|
|
5387
|
+
return sdkResponse;
|
|
5388
|
+
}
|
|
5389
|
+
catch (err) {
|
|
5390
|
+
throw err;
|
|
5391
|
+
}
|
|
5392
|
+
});
|
|
5393
|
+
}
|
|
5394
|
+
/**
|
|
5395
|
+
* Moves a compute host into a different compartment. For information about moving resources between
|
|
5396
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
5397
|
+
*
|
|
5398
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5399
|
+
* @param ChangeComputeHostCompartmentRequest
|
|
5400
|
+
* @return ChangeComputeHostCompartmentResponse
|
|
5401
|
+
* @throws OciError when an error occurs
|
|
5402
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ChangeComputeHostCompartment.ts.html |here} to see how to use ChangeComputeHostCompartment API.
|
|
5403
|
+
*/
|
|
5404
|
+
changeComputeHostCompartment(changeComputeHostCompartmentRequest) {
|
|
5405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5406
|
+
if (this.logger)
|
|
5407
|
+
this.logger.debug("Calling operation ComputeClient#changeComputeHostCompartment.");
|
|
5408
|
+
const operationName = "changeComputeHostCompartment";
|
|
5409
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/ChangeComputeHostCompartment";
|
|
5410
|
+
const pathParams = {
|
|
5411
|
+
"{computeHostId}": changeComputeHostCompartmentRequest.computeHostId
|
|
5412
|
+
};
|
|
5413
|
+
const queryParams = {};
|
|
5414
|
+
let headerParams = {
|
|
5415
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5416
|
+
"if-match": changeComputeHostCompartmentRequest.ifMatch,
|
|
5417
|
+
"opc-request-id": changeComputeHostCompartmentRequest.opcRequestId,
|
|
5418
|
+
"opc-retry-token": changeComputeHostCompartmentRequest.opcRetryToken
|
|
5419
|
+
};
|
|
5420
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5421
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeComputeHostCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
5422
|
+
if (this.logger)
|
|
5423
|
+
retrier.logger = this.logger;
|
|
5424
|
+
const request = yield oci_common_2.composeRequest({
|
|
5425
|
+
baseEndpoint: this._endpoint,
|
|
5426
|
+
defaultHeaders: this._defaultHeaders,
|
|
5427
|
+
path: "/computeHosts/{computeHostId}/actions/changeCompartment",
|
|
5428
|
+
method: "POST",
|
|
5429
|
+
bodyContent: common.ObjectSerializer.serialize(changeComputeHostCompartmentRequest.changeComputeHostCompartmentDetails, "ChangeComputeHostCompartmentDetails", model.ChangeComputeHostCompartmentDetails.getJsonObj),
|
|
5430
|
+
pathParams: pathParams,
|
|
5431
|
+
headerParams: headerParams,
|
|
5432
|
+
queryParams: queryParams
|
|
5433
|
+
});
|
|
5434
|
+
try {
|
|
5435
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5436
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
5437
|
+
responseObject: {},
|
|
5438
|
+
responseHeaders: [
|
|
5439
|
+
{
|
|
5440
|
+
value: response.headers.get("opc-request-id"),
|
|
5441
|
+
key: "opcRequestId",
|
|
5442
|
+
dataType: "string"
|
|
5443
|
+
},
|
|
5444
|
+
{
|
|
5445
|
+
value: response.headers.get("opc-work-request-id"),
|
|
5446
|
+
key: "opcWorkRequestId",
|
|
5447
|
+
dataType: "string"
|
|
5448
|
+
}
|
|
5449
|
+
]
|
|
5450
|
+
});
|
|
5451
|
+
return sdkResponse;
|
|
5452
|
+
}
|
|
5453
|
+
catch (err) {
|
|
5454
|
+
throw err;
|
|
5455
|
+
}
|
|
5456
|
+
});
|
|
5457
|
+
}
|
|
5276
5458
|
/**
|
|
5277
5459
|
* Moves a compute image capability schema into a different compartment within the same tenancy.
|
|
5278
5460
|
* For information about moving resources between compartments, see
|
|
@@ -5897,6 +6079,75 @@ class ComputeClient {
|
|
|
5897
6079
|
}
|
|
5898
6080
|
});
|
|
5899
6081
|
}
|
|
6082
|
+
/**
|
|
6083
|
+
* Create a compute GPU memory cluster instance on a specific compute GPU memory fabric
|
|
6084
|
+
*
|
|
6085
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
6086
|
+
* @param CreateComputeGpuMemoryClusterRequest
|
|
6087
|
+
* @return CreateComputeGpuMemoryClusterResponse
|
|
6088
|
+
* @throws OciError when an error occurs
|
|
6089
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/CreateComputeGpuMemoryCluster.ts.html |here} to see how to use CreateComputeGpuMemoryCluster API.
|
|
6090
|
+
*/
|
|
6091
|
+
createComputeGpuMemoryCluster(createComputeGpuMemoryClusterRequest) {
|
|
6092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6093
|
+
if (this.logger)
|
|
6094
|
+
this.logger.debug("Calling operation ComputeClient#createComputeGpuMemoryCluster.");
|
|
6095
|
+
const operationName = "createComputeGpuMemoryCluster";
|
|
6096
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryCluster/CreateComputeGpuMemoryCluster";
|
|
6097
|
+
const pathParams = {};
|
|
6098
|
+
const queryParams = {};
|
|
6099
|
+
let headerParams = {
|
|
6100
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
6101
|
+
"opc-retry-token": createComputeGpuMemoryClusterRequest.opcRetryToken,
|
|
6102
|
+
"opc-request-id": createComputeGpuMemoryClusterRequest.opcRequestId
|
|
6103
|
+
};
|
|
6104
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
6105
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createComputeGpuMemoryClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
6106
|
+
if (this.logger)
|
|
6107
|
+
retrier.logger = this.logger;
|
|
6108
|
+
const request = yield oci_common_2.composeRequest({
|
|
6109
|
+
baseEndpoint: this._endpoint,
|
|
6110
|
+
defaultHeaders: this._defaultHeaders,
|
|
6111
|
+
path: "/computeGpuMemoryClusters",
|
|
6112
|
+
method: "POST",
|
|
6113
|
+
bodyContent: common.ObjectSerializer.serialize(createComputeGpuMemoryClusterRequest.createComputeGpuMemoryClusterDetails, "CreateComputeGpuMemoryClusterDetails", model.CreateComputeGpuMemoryClusterDetails.getJsonObj),
|
|
6114
|
+
pathParams: pathParams,
|
|
6115
|
+
headerParams: headerParams,
|
|
6116
|
+
queryParams: queryParams
|
|
6117
|
+
});
|
|
6118
|
+
try {
|
|
6119
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
6120
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
6121
|
+
responseObject: {},
|
|
6122
|
+
body: yield response.json(),
|
|
6123
|
+
bodyKey: "computeGpuMemoryCluster",
|
|
6124
|
+
bodyModel: model.ComputeGpuMemoryCluster,
|
|
6125
|
+
type: "model.ComputeGpuMemoryCluster",
|
|
6126
|
+
responseHeaders: [
|
|
6127
|
+
{
|
|
6128
|
+
value: response.headers.get("etag"),
|
|
6129
|
+
key: "etag",
|
|
6130
|
+
dataType: "string"
|
|
6131
|
+
},
|
|
6132
|
+
{
|
|
6133
|
+
value: response.headers.get("opc-request-id"),
|
|
6134
|
+
key: "opcRequestId",
|
|
6135
|
+
dataType: "string"
|
|
6136
|
+
},
|
|
6137
|
+
{
|
|
6138
|
+
value: response.headers.get("opc-work-request-id"),
|
|
6139
|
+
key: "opcWorkRequestId",
|
|
6140
|
+
dataType: "string"
|
|
6141
|
+
}
|
|
6142
|
+
]
|
|
6143
|
+
});
|
|
6144
|
+
return sdkResponse;
|
|
6145
|
+
}
|
|
6146
|
+
catch (err) {
|
|
6147
|
+
throw err;
|
|
6148
|
+
}
|
|
6149
|
+
});
|
|
6150
|
+
}
|
|
5900
6151
|
/**
|
|
5901
6152
|
* Creates compute image capability schema.
|
|
5902
6153
|
*
|
|
@@ -6424,6 +6675,66 @@ class ComputeClient {
|
|
|
6424
6675
|
}
|
|
6425
6676
|
});
|
|
6426
6677
|
}
|
|
6678
|
+
/**
|
|
6679
|
+
* Terminates and deletes the specified compute GPU memory cluster and underlying instances.
|
|
6680
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
6681
|
+
* @param DeleteComputeGpuMemoryClusterRequest
|
|
6682
|
+
* @return DeleteComputeGpuMemoryClusterResponse
|
|
6683
|
+
* @throws OciError when an error occurs
|
|
6684
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/DeleteComputeGpuMemoryCluster.ts.html |here} to see how to use DeleteComputeGpuMemoryCluster API.
|
|
6685
|
+
*/
|
|
6686
|
+
deleteComputeGpuMemoryCluster(deleteComputeGpuMemoryClusterRequest) {
|
|
6687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6688
|
+
if (this.logger)
|
|
6689
|
+
this.logger.debug("Calling operation ComputeClient#deleteComputeGpuMemoryCluster.");
|
|
6690
|
+
const operationName = "deleteComputeGpuMemoryCluster";
|
|
6691
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryCluster/DeleteComputeGpuMemoryCluster";
|
|
6692
|
+
const pathParams = {
|
|
6693
|
+
"{computeGpuMemoryClusterId}": deleteComputeGpuMemoryClusterRequest.computeGpuMemoryClusterId
|
|
6694
|
+
};
|
|
6695
|
+
const queryParams = {};
|
|
6696
|
+
let headerParams = {
|
|
6697
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
6698
|
+
"if-match": deleteComputeGpuMemoryClusterRequest.ifMatch,
|
|
6699
|
+
"opc-request-id": deleteComputeGpuMemoryClusterRequest.opcRequestId
|
|
6700
|
+
};
|
|
6701
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
6702
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteComputeGpuMemoryClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
6703
|
+
if (this.logger)
|
|
6704
|
+
retrier.logger = this.logger;
|
|
6705
|
+
const request = yield oci_common_2.composeRequest({
|
|
6706
|
+
baseEndpoint: this._endpoint,
|
|
6707
|
+
defaultHeaders: this._defaultHeaders,
|
|
6708
|
+
path: "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}",
|
|
6709
|
+
method: "DELETE",
|
|
6710
|
+
pathParams: pathParams,
|
|
6711
|
+
headerParams: headerParams,
|
|
6712
|
+
queryParams: queryParams
|
|
6713
|
+
});
|
|
6714
|
+
try {
|
|
6715
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
6716
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
6717
|
+
responseObject: {},
|
|
6718
|
+
responseHeaders: [
|
|
6719
|
+
{
|
|
6720
|
+
value: response.headers.get("opc-request-id"),
|
|
6721
|
+
key: "opcRequestId",
|
|
6722
|
+
dataType: "string"
|
|
6723
|
+
},
|
|
6724
|
+
{
|
|
6725
|
+
value: response.headers.get("opc-work-request-id"),
|
|
6726
|
+
key: "opcWorkRequestId",
|
|
6727
|
+
dataType: "string"
|
|
6728
|
+
}
|
|
6729
|
+
]
|
|
6730
|
+
});
|
|
6731
|
+
return sdkResponse;
|
|
6732
|
+
}
|
|
6733
|
+
catch (err) {
|
|
6734
|
+
throw err;
|
|
6735
|
+
}
|
|
6736
|
+
});
|
|
6737
|
+
}
|
|
6427
6738
|
/**
|
|
6428
6739
|
* Deletes the specified Compute Image Capability Schema
|
|
6429
6740
|
*
|
|
@@ -7532,31 +7843,223 @@ class ComputeClient {
|
|
|
7532
7843
|
});
|
|
7533
7844
|
}
|
|
7534
7845
|
/**
|
|
7535
|
-
* Gets the specified
|
|
7846
|
+
* Gets information about the specified compute GPU memory cluster
|
|
7536
7847
|
*
|
|
7537
|
-
* This operation
|
|
7538
|
-
* @param
|
|
7539
|
-
* @return
|
|
7848
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
7849
|
+
* @param GetComputeGpuMemoryClusterRequest
|
|
7850
|
+
* @return GetComputeGpuMemoryClusterResponse
|
|
7540
7851
|
* @throws OciError when an error occurs
|
|
7541
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/
|
|
7852
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetComputeGpuMemoryCluster.ts.html |here} to see how to use GetComputeGpuMemoryCluster API.
|
|
7542
7853
|
*/
|
|
7543
|
-
|
|
7854
|
+
getComputeGpuMemoryCluster(getComputeGpuMemoryClusterRequest) {
|
|
7544
7855
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7545
7856
|
if (this.logger)
|
|
7546
|
-
this.logger.debug("Calling operation ComputeClient#
|
|
7547
|
-
const operationName = "
|
|
7548
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/
|
|
7857
|
+
this.logger.debug("Calling operation ComputeClient#getComputeGpuMemoryCluster.");
|
|
7858
|
+
const operationName = "getComputeGpuMemoryCluster";
|
|
7859
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryCluster/GetComputeGpuMemoryCluster";
|
|
7549
7860
|
const pathParams = {
|
|
7550
|
-
"{
|
|
7551
|
-
};
|
|
7552
|
-
const queryParams = {
|
|
7553
|
-
"isMergeEnabled": getComputeImageCapabilitySchemaRequest.isMergeEnabled
|
|
7861
|
+
"{computeGpuMemoryClusterId}": getComputeGpuMemoryClusterRequest.computeGpuMemoryClusterId
|
|
7554
7862
|
};
|
|
7863
|
+
const queryParams = {};
|
|
7555
7864
|
let headerParams = {
|
|
7556
|
-
"Content-Type": common.Constants.APPLICATION_JSON
|
|
7865
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7866
|
+
"opc-request-id": getComputeGpuMemoryClusterRequest.opcRequestId
|
|
7557
7867
|
};
|
|
7558
|
-
const specRetryConfiguration = common.
|
|
7559
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
7868
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
7869
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getComputeGpuMemoryClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
7870
|
+
if (this.logger)
|
|
7871
|
+
retrier.logger = this.logger;
|
|
7872
|
+
const request = yield oci_common_2.composeRequest({
|
|
7873
|
+
baseEndpoint: this._endpoint,
|
|
7874
|
+
defaultHeaders: this._defaultHeaders,
|
|
7875
|
+
path: "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}",
|
|
7876
|
+
method: "GET",
|
|
7877
|
+
pathParams: pathParams,
|
|
7878
|
+
headerParams: headerParams,
|
|
7879
|
+
queryParams: queryParams
|
|
7880
|
+
});
|
|
7881
|
+
try {
|
|
7882
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
7883
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
7884
|
+
responseObject: {},
|
|
7885
|
+
body: yield response.json(),
|
|
7886
|
+
bodyKey: "computeGpuMemoryCluster",
|
|
7887
|
+
bodyModel: model.ComputeGpuMemoryCluster,
|
|
7888
|
+
type: "model.ComputeGpuMemoryCluster",
|
|
7889
|
+
responseHeaders: [
|
|
7890
|
+
{
|
|
7891
|
+
value: response.headers.get("etag"),
|
|
7892
|
+
key: "etag",
|
|
7893
|
+
dataType: "string"
|
|
7894
|
+
},
|
|
7895
|
+
{
|
|
7896
|
+
value: response.headers.get("opc-request-id"),
|
|
7897
|
+
key: "opcRequestId",
|
|
7898
|
+
dataType: "string"
|
|
7899
|
+
}
|
|
7900
|
+
]
|
|
7901
|
+
});
|
|
7902
|
+
return sdkResponse;
|
|
7903
|
+
}
|
|
7904
|
+
catch (err) {
|
|
7905
|
+
throw err;
|
|
7906
|
+
}
|
|
7907
|
+
});
|
|
7908
|
+
}
|
|
7909
|
+
/**
|
|
7910
|
+
* Gets information about the specified compute GPU memory fabric
|
|
7911
|
+
*
|
|
7912
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7913
|
+
* @param GetComputeGpuMemoryFabricRequest
|
|
7914
|
+
* @return GetComputeGpuMemoryFabricResponse
|
|
7915
|
+
* @throws OciError when an error occurs
|
|
7916
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetComputeGpuMemoryFabric.ts.html |here} to see how to use GetComputeGpuMemoryFabric API.
|
|
7917
|
+
*/
|
|
7918
|
+
getComputeGpuMemoryFabric(getComputeGpuMemoryFabricRequest) {
|
|
7919
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7920
|
+
if (this.logger)
|
|
7921
|
+
this.logger.debug("Calling operation ComputeClient#getComputeGpuMemoryFabric.");
|
|
7922
|
+
const operationName = "getComputeGpuMemoryFabric";
|
|
7923
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryFabric/GetComputeGpuMemoryFabric";
|
|
7924
|
+
const pathParams = {
|
|
7925
|
+
"{computeGpuMemoryFabricId}": getComputeGpuMemoryFabricRequest.computeGpuMemoryFabricId
|
|
7926
|
+
};
|
|
7927
|
+
const queryParams = {};
|
|
7928
|
+
let headerParams = {
|
|
7929
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7930
|
+
"opc-request-id": getComputeGpuMemoryFabricRequest.opcRequestId
|
|
7931
|
+
};
|
|
7932
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7933
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getComputeGpuMemoryFabricRequest.retryConfiguration, specRetryConfiguration);
|
|
7934
|
+
if (this.logger)
|
|
7935
|
+
retrier.logger = this.logger;
|
|
7936
|
+
const request = yield oci_common_2.composeRequest({
|
|
7937
|
+
baseEndpoint: this._endpoint,
|
|
7938
|
+
defaultHeaders: this._defaultHeaders,
|
|
7939
|
+
path: "/computeGpuMemoryFabrics/{computeGpuMemoryFabricId}",
|
|
7940
|
+
method: "GET",
|
|
7941
|
+
pathParams: pathParams,
|
|
7942
|
+
headerParams: headerParams,
|
|
7943
|
+
queryParams: queryParams
|
|
7944
|
+
});
|
|
7945
|
+
try {
|
|
7946
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
7947
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
7948
|
+
responseObject: {},
|
|
7949
|
+
body: yield response.json(),
|
|
7950
|
+
bodyKey: "computeGpuMemoryFabric",
|
|
7951
|
+
bodyModel: model.ComputeGpuMemoryFabric,
|
|
7952
|
+
type: "model.ComputeGpuMemoryFabric",
|
|
7953
|
+
responseHeaders: [
|
|
7954
|
+
{
|
|
7955
|
+
value: response.headers.get("etag"),
|
|
7956
|
+
key: "etag",
|
|
7957
|
+
dataType: "string"
|
|
7958
|
+
},
|
|
7959
|
+
{
|
|
7960
|
+
value: response.headers.get("opc-request-id"),
|
|
7961
|
+
key: "opcRequestId",
|
|
7962
|
+
dataType: "string"
|
|
7963
|
+
}
|
|
7964
|
+
]
|
|
7965
|
+
});
|
|
7966
|
+
return sdkResponse;
|
|
7967
|
+
}
|
|
7968
|
+
catch (err) {
|
|
7969
|
+
throw err;
|
|
7970
|
+
}
|
|
7971
|
+
});
|
|
7972
|
+
}
|
|
7973
|
+
/**
|
|
7974
|
+
* Gets information about the specified compute host
|
|
7975
|
+
*
|
|
7976
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7977
|
+
* @param GetComputeHostRequest
|
|
7978
|
+
* @return GetComputeHostResponse
|
|
7979
|
+
* @throws OciError when an error occurs
|
|
7980
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetComputeHost.ts.html |here} to see how to use GetComputeHost API.
|
|
7981
|
+
*/
|
|
7982
|
+
getComputeHost(getComputeHostRequest) {
|
|
7983
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7984
|
+
if (this.logger)
|
|
7985
|
+
this.logger.debug("Calling operation ComputeClient#getComputeHost.");
|
|
7986
|
+
const operationName = "getComputeHost";
|
|
7987
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/GetComputeHost";
|
|
7988
|
+
const pathParams = {
|
|
7989
|
+
"{computeHostId}": getComputeHostRequest.computeHostId
|
|
7990
|
+
};
|
|
7991
|
+
const queryParams = {};
|
|
7992
|
+
let headerParams = {
|
|
7993
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7994
|
+
"opc-request-id": getComputeHostRequest.opcRequestId
|
|
7995
|
+
};
|
|
7996
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7997
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getComputeHostRequest.retryConfiguration, specRetryConfiguration);
|
|
7998
|
+
if (this.logger)
|
|
7999
|
+
retrier.logger = this.logger;
|
|
8000
|
+
const request = yield oci_common_2.composeRequest({
|
|
8001
|
+
baseEndpoint: this._endpoint,
|
|
8002
|
+
defaultHeaders: this._defaultHeaders,
|
|
8003
|
+
path: "/computeHosts/{computeHostId}",
|
|
8004
|
+
method: "GET",
|
|
8005
|
+
pathParams: pathParams,
|
|
8006
|
+
headerParams: headerParams,
|
|
8007
|
+
queryParams: queryParams
|
|
8008
|
+
});
|
|
8009
|
+
try {
|
|
8010
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
8011
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
8012
|
+
responseObject: {},
|
|
8013
|
+
body: yield response.json(),
|
|
8014
|
+
bodyKey: "computeHost",
|
|
8015
|
+
bodyModel: model.ComputeHost,
|
|
8016
|
+
type: "model.ComputeHost",
|
|
8017
|
+
responseHeaders: [
|
|
8018
|
+
{
|
|
8019
|
+
value: response.headers.get("etag"),
|
|
8020
|
+
key: "etag",
|
|
8021
|
+
dataType: "string"
|
|
8022
|
+
},
|
|
8023
|
+
{
|
|
8024
|
+
value: response.headers.get("opc-request-id"),
|
|
8025
|
+
key: "opcRequestId",
|
|
8026
|
+
dataType: "string"
|
|
8027
|
+
}
|
|
8028
|
+
]
|
|
8029
|
+
});
|
|
8030
|
+
return sdkResponse;
|
|
8031
|
+
}
|
|
8032
|
+
catch (err) {
|
|
8033
|
+
throw err;
|
|
8034
|
+
}
|
|
8035
|
+
});
|
|
8036
|
+
}
|
|
8037
|
+
/**
|
|
8038
|
+
* Gets the specified Compute Image Capability Schema
|
|
8039
|
+
*
|
|
8040
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
8041
|
+
* @param GetComputeImageCapabilitySchemaRequest
|
|
8042
|
+
* @return GetComputeImageCapabilitySchemaResponse
|
|
8043
|
+
* @throws OciError when an error occurs
|
|
8044
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetComputeImageCapabilitySchema.ts.html |here} to see how to use GetComputeImageCapabilitySchema API.
|
|
8045
|
+
*/
|
|
8046
|
+
getComputeImageCapabilitySchema(getComputeImageCapabilitySchemaRequest) {
|
|
8047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8048
|
+
if (this.logger)
|
|
8049
|
+
this.logger.debug("Calling operation ComputeClient#getComputeImageCapabilitySchema.");
|
|
8050
|
+
const operationName = "getComputeImageCapabilitySchema";
|
|
8051
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeImageCapabilitySchema/GetComputeImageCapabilitySchema";
|
|
8052
|
+
const pathParams = {
|
|
8053
|
+
"{computeImageCapabilitySchemaId}": getComputeImageCapabilitySchemaRequest.computeImageCapabilitySchemaId
|
|
8054
|
+
};
|
|
8055
|
+
const queryParams = {
|
|
8056
|
+
"isMergeEnabled": getComputeImageCapabilitySchemaRequest.isMergeEnabled
|
|
8057
|
+
};
|
|
8058
|
+
let headerParams = {
|
|
8059
|
+
"Content-Type": common.Constants.APPLICATION_JSON
|
|
8060
|
+
};
|
|
8061
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
8062
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getComputeImageCapabilitySchemaRequest.retryConfiguration, specRetryConfiguration);
|
|
7560
8063
|
if (this.logger)
|
|
7561
8064
|
retrier.logger = this.logger;
|
|
7562
8065
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -9969,41 +10472,41 @@ class ComputeClient {
|
|
|
9969
10472
|
return oci_common_1.paginateResponses(request, req => this.listComputeGlobalImageCapabilitySchemas(req));
|
|
9970
10473
|
}
|
|
9971
10474
|
/**
|
|
9972
|
-
*
|
|
10475
|
+
* List all of the GPU memory cluster instances.
|
|
9973
10476
|
*
|
|
9974
10477
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
9975
|
-
* @param
|
|
9976
|
-
* @return
|
|
10478
|
+
* @param ListComputeGpuMemoryClusterInstancesRequest
|
|
10479
|
+
* @return ListComputeGpuMemoryClusterInstancesResponse
|
|
9977
10480
|
* @throws OciError when an error occurs
|
|
9978
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/
|
|
10481
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListComputeGpuMemoryClusterInstances.ts.html |here} to see how to use ListComputeGpuMemoryClusterInstances API.
|
|
9979
10482
|
*/
|
|
9980
|
-
|
|
10483
|
+
listComputeGpuMemoryClusterInstances(listComputeGpuMemoryClusterInstancesRequest) {
|
|
9981
10484
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9982
10485
|
if (this.logger)
|
|
9983
|
-
this.logger.debug("Calling operation ComputeClient#
|
|
9984
|
-
const operationName = "
|
|
9985
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/
|
|
9986
|
-
const pathParams = {
|
|
10486
|
+
this.logger.debug("Calling operation ComputeClient#listComputeGpuMemoryClusterInstances.");
|
|
10487
|
+
const operationName = "listComputeGpuMemoryClusterInstances";
|
|
10488
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryClusterInstanceSummary/ListComputeGpuMemoryClusterInstances";
|
|
10489
|
+
const pathParams = {
|
|
10490
|
+
"{computeGpuMemoryClusterId}": listComputeGpuMemoryClusterInstancesRequest.computeGpuMemoryClusterId
|
|
10491
|
+
};
|
|
9987
10492
|
const queryParams = {
|
|
9988
|
-
"
|
|
9989
|
-
"
|
|
9990
|
-
"
|
|
9991
|
-
"limit":
|
|
9992
|
-
"page": listComputeImageCapabilitySchemasRequest.page,
|
|
9993
|
-
"sortBy": listComputeImageCapabilitySchemasRequest.sortBy,
|
|
9994
|
-
"sortOrder": listComputeImageCapabilitySchemasRequest.sortOrder
|
|
10493
|
+
"page": listComputeGpuMemoryClusterInstancesRequest.page,
|
|
10494
|
+
"sortBy": listComputeGpuMemoryClusterInstancesRequest.sortBy,
|
|
10495
|
+
"sortOrder": listComputeGpuMemoryClusterInstancesRequest.sortOrder,
|
|
10496
|
+
"limit": listComputeGpuMemoryClusterInstancesRequest.limit
|
|
9995
10497
|
};
|
|
9996
10498
|
let headerParams = {
|
|
9997
|
-
"Content-Type": common.Constants.APPLICATION_JSON
|
|
10499
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10500
|
+
"opc-request-id": listComputeGpuMemoryClusterInstancesRequest.opcRequestId
|
|
9998
10501
|
};
|
|
9999
10502
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
10000
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
10503
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listComputeGpuMemoryClusterInstancesRequest.retryConfiguration, specRetryConfiguration);
|
|
10001
10504
|
if (this.logger)
|
|
10002
10505
|
retrier.logger = this.logger;
|
|
10003
10506
|
const request = yield oci_common_2.composeRequest({
|
|
10004
10507
|
baseEndpoint: this._endpoint,
|
|
10005
10508
|
defaultHeaders: this._defaultHeaders,
|
|
10006
|
-
path: "/
|
|
10509
|
+
path: "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}/instances",
|
|
10007
10510
|
method: "GET",
|
|
10008
10511
|
pathParams: pathParams,
|
|
10009
10512
|
headerParams: headerParams,
|
|
@@ -10014,10 +10517,15 @@ class ComputeClient {
|
|
|
10014
10517
|
const sdkResponse = oci_common_2.composeResponse({
|
|
10015
10518
|
responseObject: {},
|
|
10016
10519
|
body: yield response.json(),
|
|
10017
|
-
bodyKey: "
|
|
10018
|
-
bodyModel: model.
|
|
10019
|
-
type: "
|
|
10520
|
+
bodyKey: "computeGpuMemoryClusterInstanceCollection",
|
|
10521
|
+
bodyModel: model.ComputeGpuMemoryClusterInstanceCollection,
|
|
10522
|
+
type: "model.ComputeGpuMemoryClusterInstanceCollection",
|
|
10020
10523
|
responseHeaders: [
|
|
10524
|
+
{
|
|
10525
|
+
value: response.headers.get("etag"),
|
|
10526
|
+
key: "etag",
|
|
10527
|
+
dataType: "string"
|
|
10528
|
+
},
|
|
10021
10529
|
{
|
|
10022
10530
|
value: response.headers.get("opc-next-page"),
|
|
10023
10531
|
key: "opcNextPage",
|
|
@@ -10038,82 +10546,44 @@ class ComputeClient {
|
|
|
10038
10546
|
});
|
|
10039
10547
|
}
|
|
10040
10548
|
/**
|
|
10041
|
-
*
|
|
10042
|
-
* Creates a new async iterator which will iterate over the models.ComputeImageCapabilitySchemaSummary objects
|
|
10043
|
-
* contained in responses from the listComputeImageCapabilitySchemas operation. This iterator will fetch more data from the
|
|
10044
|
-
* server as needed.
|
|
10045
|
-
*
|
|
10046
|
-
* @param request a request which can be sent to the service operation
|
|
10047
|
-
*/
|
|
10048
|
-
listAllComputeImageCapabilitySchemas(request) {
|
|
10049
|
-
return oci_common_1.paginateRecords(request, req => this.listComputeImageCapabilitySchemas(req));
|
|
10050
|
-
}
|
|
10051
|
-
/**
|
|
10052
|
-
* NOTE: This function is deprecated in favor of listComputeImageCapabilitySchemasResponseIterator function.
|
|
10053
|
-
* Creates a new async iterator which will iterate over the responses received from the listComputeImageCapabilitySchemas operation. This iterator
|
|
10054
|
-
* will fetch more data from the server as needed.
|
|
10055
|
-
*
|
|
10056
|
-
* @param request a request which can be sent to the service operation
|
|
10057
|
-
*/
|
|
10058
|
-
listAllComputeImageCapabilitySchemasResponses(request) {
|
|
10059
|
-
return oci_common_1.paginateResponses(request, req => this.listComputeImageCapabilitySchemas(req));
|
|
10060
|
-
}
|
|
10061
|
-
/**
|
|
10062
|
-
* Creates a new async iterator which will iterate over the models.ComputeImageCapabilitySchemaSummary objects
|
|
10063
|
-
* contained in responses from the listComputeImageCapabilitySchemas operation. This iterator will fetch more data from the
|
|
10064
|
-
* server as needed.
|
|
10065
|
-
*
|
|
10066
|
-
* @param request a request which can be sent to the service operation
|
|
10067
|
-
*/
|
|
10068
|
-
listComputeImageCapabilitySchemasRecordIterator(request) {
|
|
10069
|
-
return oci_common_1.paginateRecords(request, req => this.listComputeImageCapabilitySchemas(req));
|
|
10070
|
-
}
|
|
10071
|
-
/**
|
|
10072
|
-
* Creates a new async iterator which will iterate over the responses received from the listComputeImageCapabilitySchemas operation. This iterator
|
|
10073
|
-
* will fetch more data from the server as needed.
|
|
10074
|
-
*
|
|
10075
|
-
* @param request a request which can be sent to the service operation
|
|
10076
|
-
*/
|
|
10077
|
-
listComputeImageCapabilitySchemasResponseIterator(request) {
|
|
10078
|
-
return oci_common_1.paginateResponses(request, req => this.listComputeImageCapabilitySchemas(req));
|
|
10079
|
-
}
|
|
10080
|
-
/**
|
|
10081
|
-
* Lists the console history metadata for the specified compartment or instance.
|
|
10549
|
+
* List all of the compute GPU memory clusters.
|
|
10082
10550
|
*
|
|
10083
|
-
* This operation
|
|
10084
|
-
* @param
|
|
10085
|
-
* @return
|
|
10551
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
10552
|
+
* @param ListComputeGpuMemoryClustersRequest
|
|
10553
|
+
* @return ListComputeGpuMemoryClustersResponse
|
|
10086
10554
|
* @throws OciError when an error occurs
|
|
10087
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/
|
|
10555
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListComputeGpuMemoryClusters.ts.html |here} to see how to use ListComputeGpuMemoryClusters API.
|
|
10088
10556
|
*/
|
|
10089
|
-
|
|
10557
|
+
listComputeGpuMemoryClusters(listComputeGpuMemoryClustersRequest) {
|
|
10090
10558
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10091
10559
|
if (this.logger)
|
|
10092
|
-
this.logger.debug("Calling operation ComputeClient#
|
|
10093
|
-
const operationName = "
|
|
10094
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/
|
|
10560
|
+
this.logger.debug("Calling operation ComputeClient#listComputeGpuMemoryClusters.");
|
|
10561
|
+
const operationName = "listComputeGpuMemoryClusters";
|
|
10562
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryClusterCollection/ListComputeGpuMemoryClusters";
|
|
10095
10563
|
const pathParams = {};
|
|
10096
10564
|
const queryParams = {
|
|
10097
|
-
"
|
|
10098
|
-
"
|
|
10099
|
-
"
|
|
10100
|
-
"
|
|
10101
|
-
"
|
|
10102
|
-
"
|
|
10103
|
-
"
|
|
10104
|
-
"
|
|
10565
|
+
"computeGpuMemoryClusterId": listComputeGpuMemoryClustersRequest.computeGpuMemoryClusterId,
|
|
10566
|
+
"availabilityDomain": listComputeGpuMemoryClustersRequest.availabilityDomain,
|
|
10567
|
+
"compartmentId": listComputeGpuMemoryClustersRequest.compartmentId,
|
|
10568
|
+
"displayName": listComputeGpuMemoryClustersRequest.displayName,
|
|
10569
|
+
"computeClusterId": listComputeGpuMemoryClustersRequest.computeClusterId,
|
|
10570
|
+
"page": listComputeGpuMemoryClustersRequest.page,
|
|
10571
|
+
"sortBy": listComputeGpuMemoryClustersRequest.sortBy,
|
|
10572
|
+
"sortOrder": listComputeGpuMemoryClustersRequest.sortOrder,
|
|
10573
|
+
"limit": listComputeGpuMemoryClustersRequest.limit
|
|
10105
10574
|
};
|
|
10106
10575
|
let headerParams = {
|
|
10107
|
-
"Content-Type": common.Constants.APPLICATION_JSON
|
|
10576
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10577
|
+
"opc-request-id": listComputeGpuMemoryClustersRequest.opcRequestId
|
|
10108
10578
|
};
|
|
10109
|
-
const specRetryConfiguration = common.
|
|
10110
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
10579
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
10580
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listComputeGpuMemoryClustersRequest.retryConfiguration, specRetryConfiguration);
|
|
10111
10581
|
if (this.logger)
|
|
10112
10582
|
retrier.logger = this.logger;
|
|
10113
10583
|
const request = yield oci_common_2.composeRequest({
|
|
10114
10584
|
baseEndpoint: this._endpoint,
|
|
10115
10585
|
defaultHeaders: this._defaultHeaders,
|
|
10116
|
-
path: "/
|
|
10586
|
+
path: "/computeGpuMemoryClusters",
|
|
10117
10587
|
method: "GET",
|
|
10118
10588
|
pathParams: pathParams,
|
|
10119
10589
|
headerParams: headerParams,
|
|
@@ -10124,8 +10594,339 @@ class ComputeClient {
|
|
|
10124
10594
|
const sdkResponse = oci_common_2.composeResponse({
|
|
10125
10595
|
responseObject: {},
|
|
10126
10596
|
body: yield response.json(),
|
|
10127
|
-
bodyKey: "
|
|
10128
|
-
bodyModel: model.
|
|
10597
|
+
bodyKey: "computeGpuMemoryClusterCollection",
|
|
10598
|
+
bodyModel: model.ComputeGpuMemoryClusterCollection,
|
|
10599
|
+
type: "model.ComputeGpuMemoryClusterCollection",
|
|
10600
|
+
responseHeaders: [
|
|
10601
|
+
{
|
|
10602
|
+
value: response.headers.get("etag"),
|
|
10603
|
+
key: "etag",
|
|
10604
|
+
dataType: "string"
|
|
10605
|
+
},
|
|
10606
|
+
{
|
|
10607
|
+
value: response.headers.get("opc-next-page"),
|
|
10608
|
+
key: "opcNextPage",
|
|
10609
|
+
dataType: "string"
|
|
10610
|
+
},
|
|
10611
|
+
{
|
|
10612
|
+
value: response.headers.get("opc-request-id"),
|
|
10613
|
+
key: "opcRequestId",
|
|
10614
|
+
dataType: "string"
|
|
10615
|
+
}
|
|
10616
|
+
]
|
|
10617
|
+
});
|
|
10618
|
+
return sdkResponse;
|
|
10619
|
+
}
|
|
10620
|
+
catch (err) {
|
|
10621
|
+
throw err;
|
|
10622
|
+
}
|
|
10623
|
+
});
|
|
10624
|
+
}
|
|
10625
|
+
/**
|
|
10626
|
+
* Lists the compute GPU memory fabrics that match the specified criteria and compartmentId.
|
|
10627
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
10628
|
+
* @param ListComputeGpuMemoryFabricsRequest
|
|
10629
|
+
* @return ListComputeGpuMemoryFabricsResponse
|
|
10630
|
+
* @throws OciError when an error occurs
|
|
10631
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListComputeGpuMemoryFabrics.ts.html |here} to see how to use ListComputeGpuMemoryFabrics API.
|
|
10632
|
+
*/
|
|
10633
|
+
listComputeGpuMemoryFabrics(listComputeGpuMemoryFabricsRequest) {
|
|
10634
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10635
|
+
if (this.logger)
|
|
10636
|
+
this.logger.debug("Calling operation ComputeClient#listComputeGpuMemoryFabrics.");
|
|
10637
|
+
const operationName = "listComputeGpuMemoryFabrics";
|
|
10638
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryFabric/ListComputeGpuMemoryFabrics";
|
|
10639
|
+
const pathParams = {};
|
|
10640
|
+
const queryParams = {
|
|
10641
|
+
"computeGpuMemoryFabricId": listComputeGpuMemoryFabricsRequest.computeGpuMemoryFabricId,
|
|
10642
|
+
"availabilityDomain": listComputeGpuMemoryFabricsRequest.availabilityDomain,
|
|
10643
|
+
"compartmentId": listComputeGpuMemoryFabricsRequest.compartmentId,
|
|
10644
|
+
"displayName": listComputeGpuMemoryFabricsRequest.displayName,
|
|
10645
|
+
"computeHpcIslandId": listComputeGpuMemoryFabricsRequest.computeHpcIslandId,
|
|
10646
|
+
"computeNetworkBlockId": listComputeGpuMemoryFabricsRequest.computeNetworkBlockId,
|
|
10647
|
+
"computeGpuMemoryFabricLifecycleState": listComputeGpuMemoryFabricsRequest.computeGpuMemoryFabricLifecycleState,
|
|
10648
|
+
"computeGpuMemoryFabricHealth": listComputeGpuMemoryFabricsRequest.computeGpuMemoryFabricHealth,
|
|
10649
|
+
"limit": listComputeGpuMemoryFabricsRequest.limit,
|
|
10650
|
+
"page": listComputeGpuMemoryFabricsRequest.page,
|
|
10651
|
+
"sortBy": listComputeGpuMemoryFabricsRequest.sortBy,
|
|
10652
|
+
"sortOrder": listComputeGpuMemoryFabricsRequest.sortOrder
|
|
10653
|
+
};
|
|
10654
|
+
let headerParams = {
|
|
10655
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10656
|
+
"opc-request-id": listComputeGpuMemoryFabricsRequest.opcRequestId
|
|
10657
|
+
};
|
|
10658
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
10659
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listComputeGpuMemoryFabricsRequest.retryConfiguration, specRetryConfiguration);
|
|
10660
|
+
if (this.logger)
|
|
10661
|
+
retrier.logger = this.logger;
|
|
10662
|
+
const request = yield oci_common_2.composeRequest({
|
|
10663
|
+
baseEndpoint: this._endpoint,
|
|
10664
|
+
defaultHeaders: this._defaultHeaders,
|
|
10665
|
+
path: "/computeGpuMemoryFabrics",
|
|
10666
|
+
method: "GET",
|
|
10667
|
+
pathParams: pathParams,
|
|
10668
|
+
headerParams: headerParams,
|
|
10669
|
+
queryParams: queryParams
|
|
10670
|
+
});
|
|
10671
|
+
try {
|
|
10672
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
10673
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
10674
|
+
responseObject: {},
|
|
10675
|
+
body: yield response.json(),
|
|
10676
|
+
bodyKey: "computeGpuMemoryFabricCollection",
|
|
10677
|
+
bodyModel: model.ComputeGpuMemoryFabricCollection,
|
|
10678
|
+
type: "model.ComputeGpuMemoryFabricCollection",
|
|
10679
|
+
responseHeaders: [
|
|
10680
|
+
{
|
|
10681
|
+
value: response.headers.get("opc-next-page"),
|
|
10682
|
+
key: "opcNextPage",
|
|
10683
|
+
dataType: "string"
|
|
10684
|
+
},
|
|
10685
|
+
{
|
|
10686
|
+
value: response.headers.get("opc-request-id"),
|
|
10687
|
+
key: "opcRequestId",
|
|
10688
|
+
dataType: "string"
|
|
10689
|
+
}
|
|
10690
|
+
]
|
|
10691
|
+
});
|
|
10692
|
+
return sdkResponse;
|
|
10693
|
+
}
|
|
10694
|
+
catch (err) {
|
|
10695
|
+
throw err;
|
|
10696
|
+
}
|
|
10697
|
+
});
|
|
10698
|
+
}
|
|
10699
|
+
/**
|
|
10700
|
+
* Generates a list of summary host details
|
|
10701
|
+
*
|
|
10702
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
10703
|
+
* @param ListComputeHostsRequest
|
|
10704
|
+
* @return ListComputeHostsResponse
|
|
10705
|
+
* @throws OciError when an error occurs
|
|
10706
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListComputeHosts.ts.html |here} to see how to use ListComputeHosts API.
|
|
10707
|
+
*/
|
|
10708
|
+
listComputeHosts(listComputeHostsRequest) {
|
|
10709
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10710
|
+
if (this.logger)
|
|
10711
|
+
this.logger.debug("Calling operation ComputeClient#listComputeHosts.");
|
|
10712
|
+
const operationName = "listComputeHosts";
|
|
10713
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/ListComputeHosts";
|
|
10714
|
+
const pathParams = {};
|
|
10715
|
+
const queryParams = {
|
|
10716
|
+
"availabilityDomain": listComputeHostsRequest.availabilityDomain,
|
|
10717
|
+
"compartmentId": listComputeHostsRequest.compartmentId,
|
|
10718
|
+
"displayName": listComputeHostsRequest.displayName,
|
|
10719
|
+
"networkResourceId": listComputeHostsRequest.networkResourceId,
|
|
10720
|
+
"limit": listComputeHostsRequest.limit,
|
|
10721
|
+
"page": listComputeHostsRequest.page,
|
|
10722
|
+
"sortBy": listComputeHostsRequest.sortBy,
|
|
10723
|
+
"sortOrder": listComputeHostsRequest.sortOrder,
|
|
10724
|
+
"computeHostLifecycleState": listComputeHostsRequest.computeHostLifecycleState,
|
|
10725
|
+
"computeHostHealth": listComputeHostsRequest.computeHostHealth
|
|
10726
|
+
};
|
|
10727
|
+
let headerParams = {
|
|
10728
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10729
|
+
"opc-request-id": listComputeHostsRequest.opcRequestId
|
|
10730
|
+
};
|
|
10731
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
10732
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listComputeHostsRequest.retryConfiguration, specRetryConfiguration);
|
|
10733
|
+
if (this.logger)
|
|
10734
|
+
retrier.logger = this.logger;
|
|
10735
|
+
const request = yield oci_common_2.composeRequest({
|
|
10736
|
+
baseEndpoint: this._endpoint,
|
|
10737
|
+
defaultHeaders: this._defaultHeaders,
|
|
10738
|
+
path: "/computeHosts",
|
|
10739
|
+
method: "GET",
|
|
10740
|
+
pathParams: pathParams,
|
|
10741
|
+
headerParams: headerParams,
|
|
10742
|
+
queryParams: queryParams
|
|
10743
|
+
});
|
|
10744
|
+
try {
|
|
10745
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
10746
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
10747
|
+
responseObject: {},
|
|
10748
|
+
body: yield response.json(),
|
|
10749
|
+
bodyKey: "computeHostCollection",
|
|
10750
|
+
bodyModel: model.ComputeHostCollection,
|
|
10751
|
+
type: "model.ComputeHostCollection",
|
|
10752
|
+
responseHeaders: [
|
|
10753
|
+
{
|
|
10754
|
+
value: response.headers.get("opc-next-page"),
|
|
10755
|
+
key: "opcNextPage",
|
|
10756
|
+
dataType: "string"
|
|
10757
|
+
},
|
|
10758
|
+
{
|
|
10759
|
+
value: response.headers.get("opc-request-id"),
|
|
10760
|
+
key: "opcRequestId",
|
|
10761
|
+
dataType: "string"
|
|
10762
|
+
}
|
|
10763
|
+
]
|
|
10764
|
+
});
|
|
10765
|
+
return sdkResponse;
|
|
10766
|
+
}
|
|
10767
|
+
catch (err) {
|
|
10768
|
+
throw err;
|
|
10769
|
+
}
|
|
10770
|
+
});
|
|
10771
|
+
}
|
|
10772
|
+
/**
|
|
10773
|
+
* Lists Compute Image Capability Schema in the specified compartment. You can also query by a specific imageId.
|
|
10774
|
+
*
|
|
10775
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
10776
|
+
* @param ListComputeImageCapabilitySchemasRequest
|
|
10777
|
+
* @return ListComputeImageCapabilitySchemasResponse
|
|
10778
|
+
* @throws OciError when an error occurs
|
|
10779
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListComputeImageCapabilitySchemas.ts.html |here} to see how to use ListComputeImageCapabilitySchemas API.
|
|
10780
|
+
*/
|
|
10781
|
+
listComputeImageCapabilitySchemas(listComputeImageCapabilitySchemasRequest) {
|
|
10782
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10783
|
+
if (this.logger)
|
|
10784
|
+
this.logger.debug("Calling operation ComputeClient#listComputeImageCapabilitySchemas.");
|
|
10785
|
+
const operationName = "listComputeImageCapabilitySchemas";
|
|
10786
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeImageCapabilitySchemaSummary/ListComputeImageCapabilitySchemas";
|
|
10787
|
+
const pathParams = {};
|
|
10788
|
+
const queryParams = {
|
|
10789
|
+
"compartmentId": listComputeImageCapabilitySchemasRequest.compartmentId,
|
|
10790
|
+
"imageId": listComputeImageCapabilitySchemasRequest.imageId,
|
|
10791
|
+
"displayName": listComputeImageCapabilitySchemasRequest.displayName,
|
|
10792
|
+
"limit": listComputeImageCapabilitySchemasRequest.limit,
|
|
10793
|
+
"page": listComputeImageCapabilitySchemasRequest.page,
|
|
10794
|
+
"sortBy": listComputeImageCapabilitySchemasRequest.sortBy,
|
|
10795
|
+
"sortOrder": listComputeImageCapabilitySchemasRequest.sortOrder
|
|
10796
|
+
};
|
|
10797
|
+
let headerParams = {
|
|
10798
|
+
"Content-Type": common.Constants.APPLICATION_JSON
|
|
10799
|
+
};
|
|
10800
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
10801
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listComputeImageCapabilitySchemasRequest.retryConfiguration, specRetryConfiguration);
|
|
10802
|
+
if (this.logger)
|
|
10803
|
+
retrier.logger = this.logger;
|
|
10804
|
+
const request = yield oci_common_2.composeRequest({
|
|
10805
|
+
baseEndpoint: this._endpoint,
|
|
10806
|
+
defaultHeaders: this._defaultHeaders,
|
|
10807
|
+
path: "/computeImageCapabilitySchemas",
|
|
10808
|
+
method: "GET",
|
|
10809
|
+
pathParams: pathParams,
|
|
10810
|
+
headerParams: headerParams,
|
|
10811
|
+
queryParams: queryParams
|
|
10812
|
+
});
|
|
10813
|
+
try {
|
|
10814
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
10815
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
10816
|
+
responseObject: {},
|
|
10817
|
+
body: yield response.json(),
|
|
10818
|
+
bodyKey: "items",
|
|
10819
|
+
bodyModel: model.ComputeImageCapabilitySchemaSummary,
|
|
10820
|
+
type: "Array<model.ComputeImageCapabilitySchemaSummary>",
|
|
10821
|
+
responseHeaders: [
|
|
10822
|
+
{
|
|
10823
|
+
value: response.headers.get("opc-next-page"),
|
|
10824
|
+
key: "opcNextPage",
|
|
10825
|
+
dataType: "string"
|
|
10826
|
+
},
|
|
10827
|
+
{
|
|
10828
|
+
value: response.headers.get("opc-request-id"),
|
|
10829
|
+
key: "opcRequestId",
|
|
10830
|
+
dataType: "string"
|
|
10831
|
+
}
|
|
10832
|
+
]
|
|
10833
|
+
});
|
|
10834
|
+
return sdkResponse;
|
|
10835
|
+
}
|
|
10836
|
+
catch (err) {
|
|
10837
|
+
throw err;
|
|
10838
|
+
}
|
|
10839
|
+
});
|
|
10840
|
+
}
|
|
10841
|
+
/**
|
|
10842
|
+
* NOTE: This function is deprecated in favor of listComputeImageCapabilitySchemasRecordIterator function.
|
|
10843
|
+
* Creates a new async iterator which will iterate over the models.ComputeImageCapabilitySchemaSummary objects
|
|
10844
|
+
* contained in responses from the listComputeImageCapabilitySchemas operation. This iterator will fetch more data from the
|
|
10845
|
+
* server as needed.
|
|
10846
|
+
*
|
|
10847
|
+
* @param request a request which can be sent to the service operation
|
|
10848
|
+
*/
|
|
10849
|
+
listAllComputeImageCapabilitySchemas(request) {
|
|
10850
|
+
return oci_common_1.paginateRecords(request, req => this.listComputeImageCapabilitySchemas(req));
|
|
10851
|
+
}
|
|
10852
|
+
/**
|
|
10853
|
+
* NOTE: This function is deprecated in favor of listComputeImageCapabilitySchemasResponseIterator function.
|
|
10854
|
+
* Creates a new async iterator which will iterate over the responses received from the listComputeImageCapabilitySchemas operation. This iterator
|
|
10855
|
+
* will fetch more data from the server as needed.
|
|
10856
|
+
*
|
|
10857
|
+
* @param request a request which can be sent to the service operation
|
|
10858
|
+
*/
|
|
10859
|
+
listAllComputeImageCapabilitySchemasResponses(request) {
|
|
10860
|
+
return oci_common_1.paginateResponses(request, req => this.listComputeImageCapabilitySchemas(req));
|
|
10861
|
+
}
|
|
10862
|
+
/**
|
|
10863
|
+
* Creates a new async iterator which will iterate over the models.ComputeImageCapabilitySchemaSummary objects
|
|
10864
|
+
* contained in responses from the listComputeImageCapabilitySchemas operation. This iterator will fetch more data from the
|
|
10865
|
+
* server as needed.
|
|
10866
|
+
*
|
|
10867
|
+
* @param request a request which can be sent to the service operation
|
|
10868
|
+
*/
|
|
10869
|
+
listComputeImageCapabilitySchemasRecordIterator(request) {
|
|
10870
|
+
return oci_common_1.paginateRecords(request, req => this.listComputeImageCapabilitySchemas(req));
|
|
10871
|
+
}
|
|
10872
|
+
/**
|
|
10873
|
+
* Creates a new async iterator which will iterate over the responses received from the listComputeImageCapabilitySchemas operation. This iterator
|
|
10874
|
+
* will fetch more data from the server as needed.
|
|
10875
|
+
*
|
|
10876
|
+
* @param request a request which can be sent to the service operation
|
|
10877
|
+
*/
|
|
10878
|
+
listComputeImageCapabilitySchemasResponseIterator(request) {
|
|
10879
|
+
return oci_common_1.paginateResponses(request, req => this.listComputeImageCapabilitySchemas(req));
|
|
10880
|
+
}
|
|
10881
|
+
/**
|
|
10882
|
+
* Lists the console history metadata for the specified compartment or instance.
|
|
10883
|
+
*
|
|
10884
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
10885
|
+
* @param ListConsoleHistoriesRequest
|
|
10886
|
+
* @return ListConsoleHistoriesResponse
|
|
10887
|
+
* @throws OciError when an error occurs
|
|
10888
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListConsoleHistories.ts.html |here} to see how to use ListConsoleHistories API.
|
|
10889
|
+
*/
|
|
10890
|
+
listConsoleHistories(listConsoleHistoriesRequest) {
|
|
10891
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10892
|
+
if (this.logger)
|
|
10893
|
+
this.logger.debug("Calling operation ComputeClient#listConsoleHistories.");
|
|
10894
|
+
const operationName = "listConsoleHistories";
|
|
10895
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ConsoleHistory/ListConsoleHistories";
|
|
10896
|
+
const pathParams = {};
|
|
10897
|
+
const queryParams = {
|
|
10898
|
+
"availabilityDomain": listConsoleHistoriesRequest.availabilityDomain,
|
|
10899
|
+
"compartmentId": listConsoleHistoriesRequest.compartmentId,
|
|
10900
|
+
"limit": listConsoleHistoriesRequest.limit,
|
|
10901
|
+
"page": listConsoleHistoriesRequest.page,
|
|
10902
|
+
"instanceId": listConsoleHistoriesRequest.instanceId,
|
|
10903
|
+
"sortBy": listConsoleHistoriesRequest.sortBy,
|
|
10904
|
+
"sortOrder": listConsoleHistoriesRequest.sortOrder,
|
|
10905
|
+
"lifecycleState": listConsoleHistoriesRequest.lifecycleState
|
|
10906
|
+
};
|
|
10907
|
+
let headerParams = {
|
|
10908
|
+
"Content-Type": common.Constants.APPLICATION_JSON
|
|
10909
|
+
};
|
|
10910
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
10911
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listConsoleHistoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
10912
|
+
if (this.logger)
|
|
10913
|
+
retrier.logger = this.logger;
|
|
10914
|
+
const request = yield oci_common_2.composeRequest({
|
|
10915
|
+
baseEndpoint: this._endpoint,
|
|
10916
|
+
defaultHeaders: this._defaultHeaders,
|
|
10917
|
+
path: "/instanceConsoleHistories",
|
|
10918
|
+
method: "GET",
|
|
10919
|
+
pathParams: pathParams,
|
|
10920
|
+
headerParams: headerParams,
|
|
10921
|
+
queryParams: queryParams
|
|
10922
|
+
});
|
|
10923
|
+
try {
|
|
10924
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
10925
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
10926
|
+
responseObject: {},
|
|
10927
|
+
body: yield response.json(),
|
|
10928
|
+
bodyKey: "items",
|
|
10929
|
+
bodyModel: model.ConsoleHistory,
|
|
10129
10930
|
type: "Array<model.ConsoleHistory>",
|
|
10130
10931
|
responseHeaders: [
|
|
10131
10932
|
{
|
|
@@ -11962,6 +12763,212 @@ class ComputeClient {
|
|
|
11962
12763
|
}
|
|
11963
12764
|
});
|
|
11964
12765
|
}
|
|
12766
|
+
/**
|
|
12767
|
+
* Updates a compute gpu memory cluster resource.
|
|
12768
|
+
*
|
|
12769
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
12770
|
+
* @param UpdateComputeGpuMemoryClusterRequest
|
|
12771
|
+
* @return UpdateComputeGpuMemoryClusterResponse
|
|
12772
|
+
* @throws OciError when an error occurs
|
|
12773
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/UpdateComputeGpuMemoryCluster.ts.html |here} to see how to use UpdateComputeGpuMemoryCluster API.
|
|
12774
|
+
*/
|
|
12775
|
+
updateComputeGpuMemoryCluster(updateComputeGpuMemoryClusterRequest) {
|
|
12776
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12777
|
+
if (this.logger)
|
|
12778
|
+
this.logger.debug("Calling operation ComputeClient#updateComputeGpuMemoryCluster.");
|
|
12779
|
+
const operationName = "updateComputeGpuMemoryCluster";
|
|
12780
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryCluster/UpdateComputeGpuMemoryCluster";
|
|
12781
|
+
const pathParams = {
|
|
12782
|
+
"{computeGpuMemoryClusterId}": updateComputeGpuMemoryClusterRequest.computeGpuMemoryClusterId
|
|
12783
|
+
};
|
|
12784
|
+
const queryParams = {};
|
|
12785
|
+
let headerParams = {
|
|
12786
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
12787
|
+
"if-match": updateComputeGpuMemoryClusterRequest.ifMatch,
|
|
12788
|
+
"opc-request-id": updateComputeGpuMemoryClusterRequest.opcRequestId,
|
|
12789
|
+
"opc-retry-token": updateComputeGpuMemoryClusterRequest.opcRetryToken
|
|
12790
|
+
};
|
|
12791
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
12792
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateComputeGpuMemoryClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
12793
|
+
if (this.logger)
|
|
12794
|
+
retrier.logger = this.logger;
|
|
12795
|
+
const request = yield oci_common_2.composeRequest({
|
|
12796
|
+
baseEndpoint: this._endpoint,
|
|
12797
|
+
defaultHeaders: this._defaultHeaders,
|
|
12798
|
+
path: "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}",
|
|
12799
|
+
method: "PUT",
|
|
12800
|
+
bodyContent: common.ObjectSerializer.serialize(updateComputeGpuMemoryClusterRequest.updateComputeGpuMemoryClusterDetails, "UpdateComputeGpuMemoryClusterDetails", model.UpdateComputeGpuMemoryClusterDetails.getJsonObj),
|
|
12801
|
+
pathParams: pathParams,
|
|
12802
|
+
headerParams: headerParams,
|
|
12803
|
+
queryParams: queryParams
|
|
12804
|
+
});
|
|
12805
|
+
try {
|
|
12806
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
12807
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
12808
|
+
responseObject: {},
|
|
12809
|
+
body: yield response.json(),
|
|
12810
|
+
bodyKey: "computeGpuMemoryCluster",
|
|
12811
|
+
bodyModel: model.ComputeGpuMemoryCluster,
|
|
12812
|
+
type: "model.ComputeGpuMemoryCluster",
|
|
12813
|
+
responseHeaders: [
|
|
12814
|
+
{
|
|
12815
|
+
value: response.headers.get("etag"),
|
|
12816
|
+
key: "etag",
|
|
12817
|
+
dataType: "string"
|
|
12818
|
+
},
|
|
12819
|
+
{
|
|
12820
|
+
value: response.headers.get("opc-request-id"),
|
|
12821
|
+
key: "opcRequestId",
|
|
12822
|
+
dataType: "string"
|
|
12823
|
+
},
|
|
12824
|
+
{
|
|
12825
|
+
value: response.headers.get("opc-work-request-id"),
|
|
12826
|
+
key: "opcWorkRequestId",
|
|
12827
|
+
dataType: "string"
|
|
12828
|
+
}
|
|
12829
|
+
]
|
|
12830
|
+
});
|
|
12831
|
+
return sdkResponse;
|
|
12832
|
+
}
|
|
12833
|
+
catch (err) {
|
|
12834
|
+
throw err;
|
|
12835
|
+
}
|
|
12836
|
+
});
|
|
12837
|
+
}
|
|
12838
|
+
/**
|
|
12839
|
+
* Customer can update displayName and tags for compute GPU memory fabric record
|
|
12840
|
+
*
|
|
12841
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
12842
|
+
* @param UpdateComputeGpuMemoryFabricRequest
|
|
12843
|
+
* @return UpdateComputeGpuMemoryFabricResponse
|
|
12844
|
+
* @throws OciError when an error occurs
|
|
12845
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/UpdateComputeGpuMemoryFabric.ts.html |here} to see how to use UpdateComputeGpuMemoryFabric API.
|
|
12846
|
+
*/
|
|
12847
|
+
updateComputeGpuMemoryFabric(updateComputeGpuMemoryFabricRequest) {
|
|
12848
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12849
|
+
if (this.logger)
|
|
12850
|
+
this.logger.debug("Calling operation ComputeClient#updateComputeGpuMemoryFabric.");
|
|
12851
|
+
const operationName = "updateComputeGpuMemoryFabric";
|
|
12852
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryFabric/UpdateComputeGpuMemoryFabric";
|
|
12853
|
+
const pathParams = {
|
|
12854
|
+
"{computeGpuMemoryFabricId}": updateComputeGpuMemoryFabricRequest.computeGpuMemoryFabricId
|
|
12855
|
+
};
|
|
12856
|
+
const queryParams = {};
|
|
12857
|
+
let headerParams = {
|
|
12858
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
12859
|
+
"if-match": updateComputeGpuMemoryFabricRequest.ifMatch,
|
|
12860
|
+
"opc-request-id": updateComputeGpuMemoryFabricRequest.opcRequestId,
|
|
12861
|
+
"opc-retry-token": updateComputeGpuMemoryFabricRequest.opcRetryToken
|
|
12862
|
+
};
|
|
12863
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
12864
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateComputeGpuMemoryFabricRequest.retryConfiguration, specRetryConfiguration);
|
|
12865
|
+
if (this.logger)
|
|
12866
|
+
retrier.logger = this.logger;
|
|
12867
|
+
const request = yield oci_common_2.composeRequest({
|
|
12868
|
+
baseEndpoint: this._endpoint,
|
|
12869
|
+
defaultHeaders: this._defaultHeaders,
|
|
12870
|
+
path: "/computeGpuMemoryFabrics/{computeGpuMemoryFabricId}",
|
|
12871
|
+
method: "PUT",
|
|
12872
|
+
bodyContent: common.ObjectSerializer.serialize(updateComputeGpuMemoryFabricRequest.updateComputeGpuMemoryFabricDetails, "UpdateComputeGpuMemoryFabricDetails", model.UpdateComputeGpuMemoryFabricDetails.getJsonObj),
|
|
12873
|
+
pathParams: pathParams,
|
|
12874
|
+
headerParams: headerParams,
|
|
12875
|
+
queryParams: queryParams
|
|
12876
|
+
});
|
|
12877
|
+
try {
|
|
12878
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
12879
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
12880
|
+
responseObject: {},
|
|
12881
|
+
body: yield response.json(),
|
|
12882
|
+
bodyKey: "computeGpuMemoryFabric",
|
|
12883
|
+
bodyModel: model.ComputeGpuMemoryFabric,
|
|
12884
|
+
type: "model.ComputeGpuMemoryFabric",
|
|
12885
|
+
responseHeaders: [
|
|
12886
|
+
{
|
|
12887
|
+
value: response.headers.get("etag"),
|
|
12888
|
+
key: "etag",
|
|
12889
|
+
dataType: "string"
|
|
12890
|
+
},
|
|
12891
|
+
{
|
|
12892
|
+
value: response.headers.get("opc-request-id"),
|
|
12893
|
+
key: "opcRequestId",
|
|
12894
|
+
dataType: "string"
|
|
12895
|
+
}
|
|
12896
|
+
]
|
|
12897
|
+
});
|
|
12898
|
+
return sdkResponse;
|
|
12899
|
+
}
|
|
12900
|
+
catch (err) {
|
|
12901
|
+
throw err;
|
|
12902
|
+
}
|
|
12903
|
+
});
|
|
12904
|
+
}
|
|
12905
|
+
/**
|
|
12906
|
+
* Customer can update the some fields for ComputeHost record
|
|
12907
|
+
*
|
|
12908
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
12909
|
+
* @param UpdateComputeHostRequest
|
|
12910
|
+
* @return UpdateComputeHostResponse
|
|
12911
|
+
* @throws OciError when an error occurs
|
|
12912
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/UpdateComputeHost.ts.html |here} to see how to use UpdateComputeHost API.
|
|
12913
|
+
*/
|
|
12914
|
+
updateComputeHost(updateComputeHostRequest) {
|
|
12915
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12916
|
+
if (this.logger)
|
|
12917
|
+
this.logger.debug("Calling operation ComputeClient#updateComputeHost.");
|
|
12918
|
+
const operationName = "updateComputeHost";
|
|
12919
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/UpdateComputeHost";
|
|
12920
|
+
const pathParams = {
|
|
12921
|
+
"{computeHostId}": updateComputeHostRequest.computeHostId
|
|
12922
|
+
};
|
|
12923
|
+
const queryParams = {};
|
|
12924
|
+
let headerParams = {
|
|
12925
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
12926
|
+
"if-match": updateComputeHostRequest.ifMatch,
|
|
12927
|
+
"opc-request-id": updateComputeHostRequest.opcRequestId
|
|
12928
|
+
};
|
|
12929
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
12930
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateComputeHostRequest.retryConfiguration, specRetryConfiguration);
|
|
12931
|
+
if (this.logger)
|
|
12932
|
+
retrier.logger = this.logger;
|
|
12933
|
+
const request = yield oci_common_2.composeRequest({
|
|
12934
|
+
baseEndpoint: this._endpoint,
|
|
12935
|
+
defaultHeaders: this._defaultHeaders,
|
|
12936
|
+
path: "/computeHosts/{computeHostId}",
|
|
12937
|
+
method: "PUT",
|
|
12938
|
+
bodyContent: common.ObjectSerializer.serialize(updateComputeHostRequest.updateComputeHostDetails, "UpdateComputeHostDetails", model.UpdateComputeHostDetails.getJsonObj),
|
|
12939
|
+
pathParams: pathParams,
|
|
12940
|
+
headerParams: headerParams,
|
|
12941
|
+
queryParams: queryParams
|
|
12942
|
+
});
|
|
12943
|
+
try {
|
|
12944
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
12945
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
12946
|
+
responseObject: {},
|
|
12947
|
+
responseHeaders: [
|
|
12948
|
+
{
|
|
12949
|
+
value: response.headers.get("etag"),
|
|
12950
|
+
key: "etag",
|
|
12951
|
+
dataType: "string"
|
|
12952
|
+
},
|
|
12953
|
+
{
|
|
12954
|
+
value: response.headers.get("opc-request-id"),
|
|
12955
|
+
key: "opcRequestId",
|
|
12956
|
+
dataType: "string"
|
|
12957
|
+
},
|
|
12958
|
+
{
|
|
12959
|
+
value: response.headers.get("opc-work-request-id"),
|
|
12960
|
+
key: "opcWorkRequestId",
|
|
12961
|
+
dataType: "string"
|
|
12962
|
+
}
|
|
12963
|
+
]
|
|
12964
|
+
});
|
|
12965
|
+
return sdkResponse;
|
|
12966
|
+
}
|
|
12967
|
+
catch (err) {
|
|
12968
|
+
throw err;
|
|
12969
|
+
}
|
|
12970
|
+
});
|
|
12971
|
+
}
|
|
11965
12972
|
/**
|
|
11966
12973
|
* Updates the specified Compute Image Capability Schema
|
|
11967
12974
|
*
|