oci-ocvp 2.140.1 → 2.140.2
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 +9 -0
- package/lib/client.js +64 -0
- package/lib/client.js.map +1 -1
- package/lib/model/cluster.d.ts +5 -0
- package/lib/model/cluster.js.map +1 -1
- package/lib/model/create-cluster-details.d.ts +5 -0
- package/lib/model/create-cluster-details.js.map +1 -1
- package/lib/model/create-esxi-host-details.d.ts +5 -0
- package/lib/model/create-esxi-host-details.js.map +1 -1
- package/lib/model/esxi-host-summary.d.ts +5 -0
- package/lib/model/esxi-host-summary.js.map +1 -1
- package/lib/model/esxi-host.d.ts +10 -0
- package/lib/model/esxi-host.js.map +1 -1
- package/lib/model/fault-domain-host-distribution-modes.d.ts +30 -0
- package/lib/model/fault-domain-host-distribution-modes.js +41 -0
- package/lib/model/fault-domain-host-distribution-modes.js.map +1 -0
- package/lib/model/fault-domain-host-distribution-state.d.ts +26 -0
- package/lib/model/fault-domain-host-distribution-state.js +37 -0
- package/lib/model/fault-domain-host-distribution-state.js.map +1 -0
- package/lib/model/host-distribution-report-details.d.ts +35 -0
- package/lib/model/host-distribution-report-details.js +42 -0
- package/lib/model/host-distribution-report-details.js.map +1 -0
- package/lib/model/index.d.ts +6 -0
- package/lib/model/index.js +9 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/initial-cluster-configuration.d.ts +5 -0
- package/lib/model/initial-cluster-configuration.js.map +1 -1
- package/lib/model/inplace-upgrade-details.d.ts +6 -0
- package/lib/model/inplace-upgrade-details.js.map +1 -1
- package/lib/model/replace-host-details.d.ts +6 -0
- package/lib/model/replace-host-details.js.map +1 -1
- package/lib/request/generate-host-distribution-report-request.d.ts +38 -0
- package/lib/request/generate-host-distribution-report-request.js +15 -0
- package/lib/request/generate-host-distribution-report-request.js.map +1 -0
- package/lib/request/index.d.ts +2 -0
- package/lib/request/index.js.map +1 -1
- package/lib/response/generate-host-distribution-report-response.d.ts +30 -0
- package/lib/response/generate-host-distribution-report-response.js +15 -0
- package/lib/response/generate-host-distribution-report-response.js.map +1 -0
- package/lib/response/index.d.ts +2 -0
- package/package.json +2 -2
package/lib/client.d.ts
CHANGED
|
@@ -433,6 +433,15 @@ export declare class ClusterClient {
|
|
|
433
433
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ocvp/DeleteCluster.ts.html |here} to see how to use DeleteCluster API.
|
|
434
434
|
*/
|
|
435
435
|
deleteCluster(deleteClusterRequest: requests.DeleteClusterRequest): Promise<responses.DeleteClusterResponse>;
|
|
436
|
+
/**
|
|
437
|
+
* Generates report for how ESXi hosts are distributed across Fault Domains.
|
|
438
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
439
|
+
* @param GenerateHostDistributionReportRequest
|
|
440
|
+
* @return GenerateHostDistributionReportResponse
|
|
441
|
+
* @throws OciError when an error occurs
|
|
442
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ocvp/GenerateHostDistributionReport.ts.html |here} to see how to use GenerateHostDistributionReport API.
|
|
443
|
+
*/
|
|
444
|
+
generateHostDistributionReport(generateHostDistributionReportRequest: requests.GenerateHostDistributionReportRequest): Promise<responses.GenerateHostDistributionReportResponse>;
|
|
436
445
|
/**
|
|
437
446
|
* Gets the specified Cluster's information.
|
|
438
447
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
package/lib/client.js
CHANGED
|
@@ -1505,6 +1505,70 @@ class ClusterClient {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
|
+
/**
|
|
1509
|
+
* Generates report for how ESXi hosts are distributed across Fault Domains.
|
|
1510
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1511
|
+
* @param GenerateHostDistributionReportRequest
|
|
1512
|
+
* @return GenerateHostDistributionReportResponse
|
|
1513
|
+
* @throws OciError when an error occurs
|
|
1514
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ocvp/GenerateHostDistributionReport.ts.html |here} to see how to use GenerateHostDistributionReport API.
|
|
1515
|
+
*/
|
|
1516
|
+
generateHostDistributionReport(generateHostDistributionReportRequest) {
|
|
1517
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1518
|
+
if (this.logger)
|
|
1519
|
+
this.logger.debug("Calling operation ClusterClient#generateHostDistributionReport.");
|
|
1520
|
+
const operationName = "generateHostDistributionReport";
|
|
1521
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/GenerateHostDistributionReport";
|
|
1522
|
+
const pathParams = {
|
|
1523
|
+
"{clusterId}": generateHostDistributionReportRequest.clusterId
|
|
1524
|
+
};
|
|
1525
|
+
const queryParams = {};
|
|
1526
|
+
let headerParams = {
|
|
1527
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1528
|
+
"opc-request-id": generateHostDistributionReportRequest.opcRequestId,
|
|
1529
|
+
"opc-retry-token": generateHostDistributionReportRequest.opcRetryToken
|
|
1530
|
+
};
|
|
1531
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1532
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateHostDistributionReportRequest.retryConfiguration, specRetryConfiguration);
|
|
1533
|
+
if (this.logger)
|
|
1534
|
+
retrier.logger = this.logger;
|
|
1535
|
+
const request = yield oci_common_1.composeRequest({
|
|
1536
|
+
baseEndpoint: this._endpoint,
|
|
1537
|
+
defaultHeaders: this._defaultHeaders,
|
|
1538
|
+
path: "/clusters/{clusterId}/actions/generateHostDistributionReport",
|
|
1539
|
+
method: "POST",
|
|
1540
|
+
pathParams: pathParams,
|
|
1541
|
+
headerParams: headerParams,
|
|
1542
|
+
queryParams: queryParams
|
|
1543
|
+
});
|
|
1544
|
+
try {
|
|
1545
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1546
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1547
|
+
responseObject: {},
|
|
1548
|
+
body: yield response.json(),
|
|
1549
|
+
bodyKey: "hostDistributionReportDetails",
|
|
1550
|
+
bodyModel: model.HostDistributionReportDetails,
|
|
1551
|
+
type: "model.HostDistributionReportDetails",
|
|
1552
|
+
responseHeaders: [
|
|
1553
|
+
{
|
|
1554
|
+
value: response.headers.get("etag"),
|
|
1555
|
+
key: "etag",
|
|
1556
|
+
dataType: "string"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
value: response.headers.get("opc-request-id"),
|
|
1560
|
+
key: "opcRequestId",
|
|
1561
|
+
dataType: "string"
|
|
1562
|
+
}
|
|
1563
|
+
]
|
|
1564
|
+
});
|
|
1565
|
+
return sdkResponse;
|
|
1566
|
+
}
|
|
1567
|
+
catch (err) {
|
|
1568
|
+
throw err;
|
|
1569
|
+
}
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1508
1572
|
/**
|
|
1509
1573
|
* Gets the specified Cluster's information.
|
|
1510
1574
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|