@openshift-migration-advisor/planner-sdk 0.13.3-391ade47acd8 → 0.13.3-a0b90cb3da5f
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/.openapi-generator/FILES +12 -0
- package/README.md +8 -2
- package/dist/apis/SizingApi.d.ts +61 -0
- package/dist/apis/SizingApi.js +74 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/SizingApi.d.ts +61 -0
- package/dist/esm/apis/SizingApi.js +70 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +6 -23
- package/dist/esm/models/ClusterRequirementsRequest.js +6 -21
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CpuOverCommitRatio.d.ts +27 -0
- package/dist/esm/models/CpuOverCommitRatio.js +45 -0
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/MemoryOverCommitRatio.d.ts +26 -0
- package/dist/esm/models/MemoryOverCommitRatio.js +44 -0
- package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
- package/dist/esm/models/StandaloneClusterRequirementsRequest.js +88 -0
- package/dist/esm/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
- package/dist/esm/models/StandaloneClusterRequirementsResponse.js +49 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +6 -23
- package/dist/models/ClusterRequirementsRequest.js +7 -22
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CpuOverCommitRatio.d.ts +27 -0
- package/dist/models/CpuOverCommitRatio.js +53 -0
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/MemoryOverCommitRatio.d.ts +26 -0
- package/dist/models/MemoryOverCommitRatio.js +52 -0
- package/dist/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
- package/dist/models/StandaloneClusterRequirementsRequest.js +96 -0
- package/dist/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
- package/dist/models/StandaloneClusterRequirementsResponse.js +56 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/ClusterRequirementsRequest.md +2 -2
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CpuOverCommitRatio.md +33 -0
- package/docs/InventoryData.md +2 -0
- package/docs/MemoryOverCommitRatio.md +33 -0
- package/docs/SizingApi.md +80 -0
- package/docs/StandaloneClusterRequirementsRequest.md +59 -0
- package/docs/StandaloneClusterRequirementsResponse.md +37 -0
- package/package.json +1 -1
- package/src/apis/SizingApi.ts +114 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ClusterRequirementsRequest.ts +23 -29
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CpuOverCommitRatio.ts +55 -0
- package/src/models/InventoryData.ts +15 -0
- package/src/models/MemoryOverCommitRatio.ts +54 -0
- package/src/models/StandaloneClusterRequirementsRequest.ts +194 -0
- package/src/models/StandaloneClusterRequirementsResponse.ts +90 -0
- package/src/models/index.ts +5 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -15,9 +15,11 @@ docs/ClusterRequirementsRequest.md
|
|
|
15
15
|
docs/ClusterRequirementsResponse.md
|
|
16
16
|
docs/ClusterRequirementsStoredInput.md
|
|
17
17
|
docs/ClusterSizing.md
|
|
18
|
+
docs/ClusterUtilization.md
|
|
18
19
|
docs/ComplexityDiskScoreEntry.md
|
|
19
20
|
docs/ComplexityOSNameEntry.md
|
|
20
21
|
docs/ComplexityOSScoreEntry.md
|
|
22
|
+
docs/CpuOverCommitRatio.md
|
|
21
23
|
docs/Customer.md
|
|
22
24
|
docs/Datastore.md
|
|
23
25
|
docs/DiskSizeTierSummary.md
|
|
@@ -46,6 +48,7 @@ docs/Label.md
|
|
|
46
48
|
docs/Member.md
|
|
47
49
|
docs/MemberCreate.md
|
|
48
50
|
docs/MemberUpdate.md
|
|
51
|
+
docs/MemoryOverCommitRatio.md
|
|
49
52
|
docs/MigrationComplexityRequest.md
|
|
50
53
|
docs/MigrationComplexityResponse.md
|
|
51
54
|
docs/MigrationEstimationByComplexityResponse.md
|
|
@@ -65,6 +68,7 @@ docs/PartnerSummary.md
|
|
|
65
68
|
docs/PresignedUrl.md
|
|
66
69
|
docs/SchemaEstimationResult.md
|
|
67
70
|
docs/SharingSubject.md
|
|
71
|
+
docs/SizingApi.md
|
|
68
72
|
docs/SizingOverCommitRatio.md
|
|
69
73
|
docs/SizingResourceConsumption.md
|
|
70
74
|
docs/SizingResourceLimits.md
|
|
@@ -74,6 +78,8 @@ docs/SourceApi.md
|
|
|
74
78
|
docs/SourceCreate.md
|
|
75
79
|
docs/SourceInfra.md
|
|
76
80
|
docs/SourceUpdate.md
|
|
81
|
+
docs/StandaloneClusterRequirementsRequest.md
|
|
82
|
+
docs/StandaloneClusterRequirementsResponse.md
|
|
77
83
|
docs/Status.md
|
|
78
84
|
docs/UpdateInventory.md
|
|
79
85
|
docs/VCenter.md
|
|
@@ -88,6 +94,7 @@ src/apis/ImageApi.ts
|
|
|
88
94
|
src/apis/InfoApi.ts
|
|
89
95
|
src/apis/JobApi.ts
|
|
90
96
|
src/apis/PartnerApi.ts
|
|
97
|
+
src/apis/SizingApi.ts
|
|
91
98
|
src/apis/SourceApi.ts
|
|
92
99
|
src/apis/index.ts
|
|
93
100
|
src/index.ts
|
|
@@ -102,9 +109,11 @@ src/models/ClusterRequirementsRequest.ts
|
|
|
102
109
|
src/models/ClusterRequirementsResponse.ts
|
|
103
110
|
src/models/ClusterRequirementsStoredInput.ts
|
|
104
111
|
src/models/ClusterSizing.ts
|
|
112
|
+
src/models/ClusterUtilization.ts
|
|
105
113
|
src/models/ComplexityDiskScoreEntry.ts
|
|
106
114
|
src/models/ComplexityOSNameEntry.ts
|
|
107
115
|
src/models/ComplexityOSScoreEntry.ts
|
|
116
|
+
src/models/CpuOverCommitRatio.ts
|
|
108
117
|
src/models/Customer.ts
|
|
109
118
|
src/models/Datastore.ts
|
|
110
119
|
src/models/DiskSizeTierSummary.ts
|
|
@@ -129,6 +138,7 @@ src/models/Label.ts
|
|
|
129
138
|
src/models/Member.ts
|
|
130
139
|
src/models/MemberCreate.ts
|
|
131
140
|
src/models/MemberUpdate.ts
|
|
141
|
+
src/models/MemoryOverCommitRatio.ts
|
|
132
142
|
src/models/MigrationComplexityRequest.ts
|
|
133
143
|
src/models/MigrationComplexityResponse.ts
|
|
134
144
|
src/models/MigrationEstimationByComplexityResponse.ts
|
|
@@ -155,6 +165,8 @@ src/models/Source.ts
|
|
|
155
165
|
src/models/SourceCreate.ts
|
|
156
166
|
src/models/SourceInfra.ts
|
|
157
167
|
src/models/SourceUpdate.ts
|
|
168
|
+
src/models/StandaloneClusterRequirementsRequest.ts
|
|
169
|
+
src/models/StandaloneClusterRequirementsResponse.ts
|
|
158
170
|
src/models/Status.ts
|
|
159
171
|
src/models/UpdateInventory.ts
|
|
160
172
|
src/models/VCenter.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.13.3-
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.13.3-a0b90cb3da5f
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -88,6 +88,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
88
88
|
*PartnerApi* | [**listPartners**](docs/PartnerApi.md#listpartners) | **GET** /api/v1/partners |
|
|
89
89
|
*PartnerApi* | [**removeCustomer**](docs/PartnerApi.md#removecustomer) | **DELETE** /api/v1/customers/{username} |
|
|
90
90
|
*PartnerApi* | [**updatePartnerRequest**](docs/PartnerApi.md#updatepartnerrequest) | **PUT** /api/v1/partners/requests/{id} |
|
|
91
|
+
*SizingApi* | [**calculateClusterRequirements**](docs/SizingApi.md#calculateclusterrequirements) | **POST** /api/v1/cluster-requirements |
|
|
91
92
|
*SourceApi* | [**createSource**](docs/SourceApi.md#createsource) | **POST** /api/v1/sources |
|
|
92
93
|
*SourceApi* | [**deleteSource**](docs/SourceApi.md#deletesource) | **DELETE** /api/v1/sources/{id} |
|
|
93
94
|
*SourceApi* | [**deleteSources**](docs/SourceApi.md#deletesources) | **DELETE** /api/v1/sources |
|
|
@@ -110,9 +111,11 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
110
111
|
- [ClusterRequirementsResponse](docs/ClusterRequirementsResponse.md)
|
|
111
112
|
- [ClusterRequirementsStoredInput](docs/ClusterRequirementsStoredInput.md)
|
|
112
113
|
- [ClusterSizing](docs/ClusterSizing.md)
|
|
114
|
+
- [ClusterUtilization](docs/ClusterUtilization.md)
|
|
113
115
|
- [ComplexityDiskScoreEntry](docs/ComplexityDiskScoreEntry.md)
|
|
114
116
|
- [ComplexityOSNameEntry](docs/ComplexityOSNameEntry.md)
|
|
115
117
|
- [ComplexityOSScoreEntry](docs/ComplexityOSScoreEntry.md)
|
|
118
|
+
- [CpuOverCommitRatio](docs/CpuOverCommitRatio.md)
|
|
116
119
|
- [Customer](docs/Customer.md)
|
|
117
120
|
- [Datastore](docs/Datastore.md)
|
|
118
121
|
- [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
|
|
@@ -137,6 +140,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
137
140
|
- [Member](docs/Member.md)
|
|
138
141
|
- [MemberCreate](docs/MemberCreate.md)
|
|
139
142
|
- [MemberUpdate](docs/MemberUpdate.md)
|
|
143
|
+
- [MemoryOverCommitRatio](docs/MemoryOverCommitRatio.md)
|
|
140
144
|
- [MigrationComplexityRequest](docs/MigrationComplexityRequest.md)
|
|
141
145
|
- [MigrationComplexityResponse](docs/MigrationComplexityResponse.md)
|
|
142
146
|
- [MigrationEstimationByComplexityResponse](docs/MigrationEstimationByComplexityResponse.md)
|
|
@@ -163,6 +167,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
163
167
|
- [SourceCreate](docs/SourceCreate.md)
|
|
164
168
|
- [SourceInfra](docs/SourceInfra.md)
|
|
165
169
|
- [SourceUpdate](docs/SourceUpdate.md)
|
|
170
|
+
- [StandaloneClusterRequirementsRequest](docs/StandaloneClusterRequirementsRequest.md)
|
|
171
|
+
- [StandaloneClusterRequirementsResponse](docs/StandaloneClusterRequirementsResponse.md)
|
|
166
172
|
- [Status](docs/Status.md)
|
|
167
173
|
- [UpdateInventory](docs/UpdateInventory.md)
|
|
168
174
|
- [VCenter](docs/VCenter.md)
|
|
@@ -182,7 +188,7 @@ and is automatically generated by the
|
|
|
182
188
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
183
189
|
|
|
184
190
|
- API version: `v1alpha1`
|
|
185
|
-
- Package version: `0.13.3-
|
|
191
|
+
- Package version: `0.13.3-a0b90cb3da5f`
|
|
186
192
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
187
193
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
188
194
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type StandaloneClusterRequirementsRequest } from '../models/StandaloneClusterRequirementsRequest.js';
|
|
14
|
+
import { type StandaloneClusterRequirementsResponse } from '../models/StandaloneClusterRequirementsResponse.js';
|
|
15
|
+
export interface CalculateClusterRequirementsRequest {
|
|
16
|
+
standaloneClusterRequirementsRequest: StandaloneClusterRequirementsRequest;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* SizingApi - interface
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface SizingApiInterface
|
|
23
|
+
*/
|
|
24
|
+
export interface SizingApiInterface {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
27
|
+
* @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
* @memberof SizingApiInterface
|
|
30
|
+
*/
|
|
31
|
+
calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts>;
|
|
32
|
+
/**
|
|
33
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
34
|
+
* @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
* @memberof SizingApiInterface
|
|
38
|
+
*/
|
|
39
|
+
calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>>;
|
|
40
|
+
/**
|
|
41
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
42
|
+
*/
|
|
43
|
+
calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export declare class SizingApi extends runtime.BaseAPI implements SizingApiInterface {
|
|
49
|
+
/**
|
|
50
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
51
|
+
*/
|
|
52
|
+
calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts>;
|
|
53
|
+
/**
|
|
54
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
55
|
+
*/
|
|
56
|
+
calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
59
|
+
*/
|
|
60
|
+
calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.SizingApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
const StandaloneClusterRequirementsRequest_js_1 = require("../models/StandaloneClusterRequirementsRequest.js");
|
|
28
|
+
const StandaloneClusterRequirementsResponse_js_1 = require("../models/StandaloneClusterRequirementsResponse.js");
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
class SizingApi extends runtime.BaseAPI {
|
|
33
|
+
/**
|
|
34
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
35
|
+
*/
|
|
36
|
+
calculateClusterRequirementsRequestOpts(requestParameters) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['standaloneClusterRequirementsRequest'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('standaloneClusterRequirementsRequest', 'Required parameter "standaloneClusterRequirementsRequest" was null or undefined when calling calculateClusterRequirements().');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
+
let urlPath = `/api/v1/cluster-requirements`;
|
|
45
|
+
return {
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
body: (0, StandaloneClusterRequirementsRequest_js_1.StandaloneClusterRequirementsRequestToJSON)(requestParameters['standaloneClusterRequirementsRequest']),
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
56
|
+
*/
|
|
57
|
+
calculateClusterRequirementsRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.calculateClusterRequirementsRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, StandaloneClusterRequirementsResponse_js_1.StandaloneClusterRequirementsResponseFromJSON)(jsonValue));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
66
|
+
*/
|
|
67
|
+
calculateClusterRequirements(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const response = yield this.calculateClusterRequirementsRaw(requestParameters, initOverrides);
|
|
70
|
+
return yield response.value();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.SizingApi = SizingApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -23,4 +23,5 @@ __exportStar(require("./ImageApi.js"), exports);
|
|
|
23
23
|
__exportStar(require("./InfoApi.js"), exports);
|
|
24
24
|
__exportStar(require("./JobApi.js"), exports);
|
|
25
25
|
__exportStar(require("./PartnerApi.js"), exports);
|
|
26
|
+
__exportStar(require("./SizingApi.js"), exports);
|
|
26
27
|
__exportStar(require("./SourceApi.js"), exports);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type StandaloneClusterRequirementsRequest } from '../models/StandaloneClusterRequirementsRequest.js';
|
|
14
|
+
import { type StandaloneClusterRequirementsResponse } from '../models/StandaloneClusterRequirementsResponse.js';
|
|
15
|
+
export interface CalculateClusterRequirementsRequest {
|
|
16
|
+
standaloneClusterRequirementsRequest: StandaloneClusterRequirementsRequest;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* SizingApi - interface
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface SizingApiInterface
|
|
23
|
+
*/
|
|
24
|
+
export interface SizingApiInterface {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
27
|
+
* @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
* @memberof SizingApiInterface
|
|
30
|
+
*/
|
|
31
|
+
calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts>;
|
|
32
|
+
/**
|
|
33
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
34
|
+
* @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
* @memberof SizingApiInterface
|
|
38
|
+
*/
|
|
39
|
+
calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>>;
|
|
40
|
+
/**
|
|
41
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
42
|
+
*/
|
|
43
|
+
calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export declare class SizingApi extends runtime.BaseAPI implements SizingApiInterface {
|
|
49
|
+
/**
|
|
50
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
51
|
+
*/
|
|
52
|
+
calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts>;
|
|
53
|
+
/**
|
|
54
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
55
|
+
*/
|
|
56
|
+
calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
59
|
+
*/
|
|
60
|
+
calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
import { StandaloneClusterRequirementsRequestToJSON, } from '../models/StandaloneClusterRequirementsRequest.js';
|
|
25
|
+
import { StandaloneClusterRequirementsResponseFromJSON, } from '../models/StandaloneClusterRequirementsResponse.js';
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export class SizingApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
32
|
+
*/
|
|
33
|
+
calculateClusterRequirementsRequestOpts(requestParameters) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['standaloneClusterRequirementsRequest'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('standaloneClusterRequirementsRequest', 'Required parameter "standaloneClusterRequirementsRequest" was null or undefined when calling calculateClusterRequirements().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
+
let urlPath = `/api/v1/cluster-requirements`;
|
|
42
|
+
return {
|
|
43
|
+
path: urlPath,
|
|
44
|
+
method: 'POST',
|
|
45
|
+
headers: headerParameters,
|
|
46
|
+
query: queryParameters,
|
|
47
|
+
body: StandaloneClusterRequirementsRequestToJSON(requestParameters['standaloneClusterRequirementsRequest']),
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
53
|
+
*/
|
|
54
|
+
calculateClusterRequirementsRaw(requestParameters, initOverrides) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const requestOptions = yield this.calculateClusterRequirementsRequestOpts(requestParameters);
|
|
57
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StandaloneClusterRequirementsResponseFromJSON(jsonValue));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
63
|
+
*/
|
|
64
|
+
calculateClusterRequirements(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const response = yield this.calculateClusterRequirementsRaw(requestParameters, initOverrides);
|
|
67
|
+
return yield response.value();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CpuOverCommitRatio } from './CpuOverCommitRatio.js';
|
|
13
|
+
import type { MemoryOverCommitRatio } from './MemoryOverCommitRatio.js';
|
|
12
14
|
/**
|
|
13
15
|
* Request payload for calculating cluster requirements
|
|
14
16
|
* @export
|
|
@@ -23,16 +25,16 @@ export interface ClusterRequirementsRequest {
|
|
|
23
25
|
clusterId: string;
|
|
24
26
|
/**
|
|
25
27
|
* CPU over-commit ratio (e.g., "1:4")
|
|
26
|
-
* @type {
|
|
28
|
+
* @type {CpuOverCommitRatio}
|
|
27
29
|
* @memberof ClusterRequirementsRequest
|
|
28
30
|
*/
|
|
29
|
-
cpuOverCommitRatio:
|
|
31
|
+
cpuOverCommitRatio: CpuOverCommitRatio;
|
|
30
32
|
/**
|
|
31
33
|
* Memory over-commit ratio (e.g., "1:2")
|
|
32
|
-
* @type {
|
|
34
|
+
* @type {MemoryOverCommitRatio}
|
|
33
35
|
* @memberof ClusterRequirementsRequest
|
|
34
36
|
*/
|
|
35
|
-
memoryOverCommitRatio:
|
|
37
|
+
memoryOverCommitRatio: MemoryOverCommitRatio;
|
|
36
38
|
/**
|
|
37
39
|
* CPU cores per worker node
|
|
38
40
|
* @type {number}
|
|
@@ -82,25 +84,6 @@ export interface ClusterRequirementsRequest {
|
|
|
82
84
|
*/
|
|
83
85
|
hostedControlPlane?: boolean;
|
|
84
86
|
}
|
|
85
|
-
/**
|
|
86
|
-
* @export
|
|
87
|
-
*/
|
|
88
|
-
export declare const ClusterRequirementsRequestCpuOverCommitRatioEnum: {
|
|
89
|
-
readonly CpuOneToOne: "1:1";
|
|
90
|
-
readonly CpuOneToTwo: "1:2";
|
|
91
|
-
readonly CpuOneToFour: "1:4";
|
|
92
|
-
readonly CpuOneToSix: "1:6";
|
|
93
|
-
};
|
|
94
|
-
export type ClusterRequirementsRequestCpuOverCommitRatioEnum = typeof ClusterRequirementsRequestCpuOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestCpuOverCommitRatioEnum];
|
|
95
|
-
/**
|
|
96
|
-
* @export
|
|
97
|
-
*/
|
|
98
|
-
export declare const ClusterRequirementsRequestMemoryOverCommitRatioEnum: {
|
|
99
|
-
readonly MemoryOneToOne: "1:1";
|
|
100
|
-
readonly MemoryOneToTwo: "1:2";
|
|
101
|
-
readonly MemoryOneToFour: "1:4";
|
|
102
|
-
};
|
|
103
|
-
export type ClusterRequirementsRequestMemoryOverCommitRatioEnum = typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum];
|
|
104
87
|
/**
|
|
105
88
|
* @export
|
|
106
89
|
*/
|
|
@@ -11,23 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
17
|
-
export const ClusterRequirementsRequestCpuOverCommitRatioEnum = {
|
|
18
|
-
CpuOneToOne: '1:1',
|
|
19
|
-
CpuOneToTwo: '1:2',
|
|
20
|
-
CpuOneToFour: '1:4',
|
|
21
|
-
CpuOneToSix: '1:6'
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
export const ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
27
|
-
MemoryOneToOne: '1:1',
|
|
28
|
-
MemoryOneToTwo: '1:2',
|
|
29
|
-
MemoryOneToFour: '1:4'
|
|
30
|
-
};
|
|
14
|
+
import { CpuOverCommitRatioFromJSON, CpuOverCommitRatioToJSON, } from './CpuOverCommitRatio.js';
|
|
15
|
+
import { MemoryOverCommitRatioFromJSON, MemoryOverCommitRatioToJSON, } from './MemoryOverCommitRatio.js';
|
|
31
16
|
/**
|
|
32
17
|
* @export
|
|
33
18
|
*/
|
|
@@ -60,8 +45,8 @@ export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
60
45
|
}
|
|
61
46
|
return {
|
|
62
47
|
'clusterId': json['clusterId'],
|
|
63
|
-
'cpuOverCommitRatio': json['cpuOverCommitRatio'],
|
|
64
|
-
'memoryOverCommitRatio': json['memoryOverCommitRatio'],
|
|
48
|
+
'cpuOverCommitRatio': CpuOverCommitRatioFromJSON(json['cpuOverCommitRatio']),
|
|
49
|
+
'memoryOverCommitRatio': MemoryOverCommitRatioFromJSON(json['memoryOverCommitRatio']),
|
|
65
50
|
'workerNodeCPU': json['workerNodeCPU'],
|
|
66
51
|
'workerNodeMemory': json['workerNodeMemory'],
|
|
67
52
|
'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
|
|
@@ -81,8 +66,8 @@ export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
81
66
|
}
|
|
82
67
|
return {
|
|
83
68
|
'clusterId': value['clusterId'],
|
|
84
|
-
'cpuOverCommitRatio': value['cpuOverCommitRatio'],
|
|
85
|
-
'memoryOverCommitRatio': value['memoryOverCommitRatio'],
|
|
69
|
+
'cpuOverCommitRatio': CpuOverCommitRatioToJSON(value['cpuOverCommitRatio']),
|
|
70
|
+
'memoryOverCommitRatio': MemoryOverCommitRatioToJSON(value['memoryOverCommitRatio']),
|
|
86
71
|
'workerNodeCPU': value['workerNodeCPU'],
|
|
87
72
|
'workerNodeMemory': value['workerNodeMemory'],
|
|
88
73
|
'workerNodeThreads': value['workerNodeThreads'],
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ClusterUtilization
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterUtilization {
|
|
18
|
+
/**
|
|
19
|
+
* Average CPU utilization percentage (0-100)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ClusterUtilization
|
|
22
|
+
*/
|
|
23
|
+
cpuAvg: number;
|
|
24
|
+
/**
|
|
25
|
+
* 95th percentile CPU utilization percentage (0-100)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ClusterUtilization
|
|
28
|
+
*/
|
|
29
|
+
cpuP95: number;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum CPU utilization percentage (0-100)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ClusterUtilization
|
|
34
|
+
*/
|
|
35
|
+
cpuMax: number;
|
|
36
|
+
/**
|
|
37
|
+
* Average memory utilization percentage (0-100)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ClusterUtilization
|
|
40
|
+
*/
|
|
41
|
+
memAvg: number;
|
|
42
|
+
/**
|
|
43
|
+
* 95th percentile memory utilization percentage (0-100)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ClusterUtilization
|
|
46
|
+
*/
|
|
47
|
+
memP95: number;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum memory utilization percentage (0-100)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ClusterUtilization
|
|
52
|
+
*/
|
|
53
|
+
memMax: number;
|
|
54
|
+
/**
|
|
55
|
+
* Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ClusterUtilization
|
|
58
|
+
*/
|
|
59
|
+
confidence: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
|
|
65
|
+
export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
|
|
66
|
+
export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
|
|
67
|
+
export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
|
|
68
|
+
export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfClusterUtilization(value) {
|
|
18
|
+
if ((!('cpuAvg' in value) && !('cpu_avg' in value)) || (value['cpuAvg'] === undefined && value['cpu_avg'] === undefined))
|
|
19
|
+
return false;
|
|
20
|
+
if ((!('cpuP95' in value) && !('cpu_p95' in value)) || (value['cpuP95'] === undefined && value['cpu_p95'] === undefined))
|
|
21
|
+
return false;
|
|
22
|
+
if ((!('cpuMax' in value) && !('cpu_max' in value)) || (value['cpuMax'] === undefined && value['cpu_max'] === undefined))
|
|
23
|
+
return false;
|
|
24
|
+
if ((!('memAvg' in value) && !('mem_avg' in value)) || (value['memAvg'] === undefined && value['mem_avg'] === undefined))
|
|
25
|
+
return false;
|
|
26
|
+
if ((!('memP95' in value) && !('mem_p95' in value)) || (value['memP95'] === undefined && value['mem_p95'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('memMax' in value) && !('mem_max' in value)) || (value['memMax'] === undefined && value['mem_max'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ClusterUtilizationFromJSON(json) {
|
|
35
|
+
return ClusterUtilizationFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'cpuAvg': json['cpu_avg'],
|
|
43
|
+
'cpuP95': json['cpu_p95'],
|
|
44
|
+
'cpuMax': json['cpu_max'],
|
|
45
|
+
'memAvg': json['mem_avg'],
|
|
46
|
+
'memP95': json['mem_p95'],
|
|
47
|
+
'memMax': json['mem_max'],
|
|
48
|
+
'confidence': json['confidence'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function ClusterUtilizationToJSON(json) {
|
|
52
|
+
return ClusterUtilizationToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'cpu_avg': value['cpuAvg'],
|
|
60
|
+
'cpu_p95': value['cpuP95'],
|
|
61
|
+
'cpu_max': value['cpuMax'],
|
|
62
|
+
'mem_avg': value['memAvg'],
|
|
63
|
+
'mem_p95': value['memP95'],
|
|
64
|
+
'mem_max': value['memMax'],
|
|
65
|
+
'confidence': value['confidence'],
|
|
66
|
+
};
|
|
67
|
+
}
|