@openshift-migration-advisor/planner-sdk 0.13.3-391ade47acd8 → 0.13.3-4f3d8bb515ec
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 +10 -0
- package/README.md +7 -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/CpuOverCommitRatio.d.ts +27 -0
- package/dist/esm/models/CpuOverCommitRatio.js +45 -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 +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +6 -23
- package/dist/models/ClusterRequirementsRequest.js +7 -22
- package/dist/models/CpuOverCommitRatio.d.ts +27 -0
- package/dist/models/CpuOverCommitRatio.js +53 -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 +4 -0
- package/dist/models/index.js +4 -0
- package/docs/ClusterRequirementsRequest.md +2 -2
- package/docs/CpuOverCommitRatio.md +33 -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/CpuOverCommitRatio.ts +55 -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 +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -18,6 +18,7 @@ docs/ClusterSizing.md
|
|
|
18
18
|
docs/ComplexityDiskScoreEntry.md
|
|
19
19
|
docs/ComplexityOSNameEntry.md
|
|
20
20
|
docs/ComplexityOSScoreEntry.md
|
|
21
|
+
docs/CpuOverCommitRatio.md
|
|
21
22
|
docs/Customer.md
|
|
22
23
|
docs/Datastore.md
|
|
23
24
|
docs/DiskSizeTierSummary.md
|
|
@@ -46,6 +47,7 @@ docs/Label.md
|
|
|
46
47
|
docs/Member.md
|
|
47
48
|
docs/MemberCreate.md
|
|
48
49
|
docs/MemberUpdate.md
|
|
50
|
+
docs/MemoryOverCommitRatio.md
|
|
49
51
|
docs/MigrationComplexityRequest.md
|
|
50
52
|
docs/MigrationComplexityResponse.md
|
|
51
53
|
docs/MigrationEstimationByComplexityResponse.md
|
|
@@ -65,6 +67,7 @@ docs/PartnerSummary.md
|
|
|
65
67
|
docs/PresignedUrl.md
|
|
66
68
|
docs/SchemaEstimationResult.md
|
|
67
69
|
docs/SharingSubject.md
|
|
70
|
+
docs/SizingApi.md
|
|
68
71
|
docs/SizingOverCommitRatio.md
|
|
69
72
|
docs/SizingResourceConsumption.md
|
|
70
73
|
docs/SizingResourceLimits.md
|
|
@@ -74,6 +77,8 @@ docs/SourceApi.md
|
|
|
74
77
|
docs/SourceCreate.md
|
|
75
78
|
docs/SourceInfra.md
|
|
76
79
|
docs/SourceUpdate.md
|
|
80
|
+
docs/StandaloneClusterRequirementsRequest.md
|
|
81
|
+
docs/StandaloneClusterRequirementsResponse.md
|
|
77
82
|
docs/Status.md
|
|
78
83
|
docs/UpdateInventory.md
|
|
79
84
|
docs/VCenter.md
|
|
@@ -88,6 +93,7 @@ src/apis/ImageApi.ts
|
|
|
88
93
|
src/apis/InfoApi.ts
|
|
89
94
|
src/apis/JobApi.ts
|
|
90
95
|
src/apis/PartnerApi.ts
|
|
96
|
+
src/apis/SizingApi.ts
|
|
91
97
|
src/apis/SourceApi.ts
|
|
92
98
|
src/apis/index.ts
|
|
93
99
|
src/index.ts
|
|
@@ -105,6 +111,7 @@ src/models/ClusterSizing.ts
|
|
|
105
111
|
src/models/ComplexityDiskScoreEntry.ts
|
|
106
112
|
src/models/ComplexityOSNameEntry.ts
|
|
107
113
|
src/models/ComplexityOSScoreEntry.ts
|
|
114
|
+
src/models/CpuOverCommitRatio.ts
|
|
108
115
|
src/models/Customer.ts
|
|
109
116
|
src/models/Datastore.ts
|
|
110
117
|
src/models/DiskSizeTierSummary.ts
|
|
@@ -129,6 +136,7 @@ src/models/Label.ts
|
|
|
129
136
|
src/models/Member.ts
|
|
130
137
|
src/models/MemberCreate.ts
|
|
131
138
|
src/models/MemberUpdate.ts
|
|
139
|
+
src/models/MemoryOverCommitRatio.ts
|
|
132
140
|
src/models/MigrationComplexityRequest.ts
|
|
133
141
|
src/models/MigrationComplexityResponse.ts
|
|
134
142
|
src/models/MigrationEstimationByComplexityResponse.ts
|
|
@@ -155,6 +163,8 @@ src/models/Source.ts
|
|
|
155
163
|
src/models/SourceCreate.ts
|
|
156
164
|
src/models/SourceInfra.ts
|
|
157
165
|
src/models/SourceUpdate.ts
|
|
166
|
+
src/models/StandaloneClusterRequirementsRequest.ts
|
|
167
|
+
src/models/StandaloneClusterRequirementsResponse.ts
|
|
158
168
|
src/models/Status.ts
|
|
159
169
|
src/models/UpdateInventory.ts
|
|
160
170
|
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-4f3d8bb515ec
|
|
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 |
|
|
@@ -113,6 +114,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
113
114
|
- [ComplexityDiskScoreEntry](docs/ComplexityDiskScoreEntry.md)
|
|
114
115
|
- [ComplexityOSNameEntry](docs/ComplexityOSNameEntry.md)
|
|
115
116
|
- [ComplexityOSScoreEntry](docs/ComplexityOSScoreEntry.md)
|
|
117
|
+
- [CpuOverCommitRatio](docs/CpuOverCommitRatio.md)
|
|
116
118
|
- [Customer](docs/Customer.md)
|
|
117
119
|
- [Datastore](docs/Datastore.md)
|
|
118
120
|
- [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
|
|
@@ -137,6 +139,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
137
139
|
- [Member](docs/Member.md)
|
|
138
140
|
- [MemberCreate](docs/MemberCreate.md)
|
|
139
141
|
- [MemberUpdate](docs/MemberUpdate.md)
|
|
142
|
+
- [MemoryOverCommitRatio](docs/MemoryOverCommitRatio.md)
|
|
140
143
|
- [MigrationComplexityRequest](docs/MigrationComplexityRequest.md)
|
|
141
144
|
- [MigrationComplexityResponse](docs/MigrationComplexityResponse.md)
|
|
142
145
|
- [MigrationEstimationByComplexityResponse](docs/MigrationEstimationByComplexityResponse.md)
|
|
@@ -163,6 +166,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
163
166
|
- [SourceCreate](docs/SourceCreate.md)
|
|
164
167
|
- [SourceInfra](docs/SourceInfra.md)
|
|
165
168
|
- [SourceUpdate](docs/SourceUpdate.md)
|
|
169
|
+
- [StandaloneClusterRequirementsRequest](docs/StandaloneClusterRequirementsRequest.md)
|
|
170
|
+
- [StandaloneClusterRequirementsResponse](docs/StandaloneClusterRequirementsResponse.md)
|
|
166
171
|
- [Status](docs/Status.md)
|
|
167
172
|
- [UpdateInventory](docs/UpdateInventory.md)
|
|
168
173
|
- [VCenter](docs/VCenter.md)
|
|
@@ -182,7 +187,7 @@ and is automatically generated by the
|
|
|
182
187
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
183
188
|
|
|
184
189
|
- API version: `v1alpha1`
|
|
185
|
-
- Package version: `0.13.3-
|
|
190
|
+
- Package version: `0.13.3-4f3d8bb515ec`
|
|
186
191
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
187
192
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
188
193
|
|
|
@@ -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,27 @@
|
|
|
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
|
+
* CPU over-commit ratio
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const CpuOverCommitRatio: {
|
|
17
|
+
readonly CpuOneToOne: "1:1";
|
|
18
|
+
readonly CpuOneToTwo: "1:2";
|
|
19
|
+
readonly CpuOneToFour: "1:4";
|
|
20
|
+
readonly CpuOneToSix: "1:6";
|
|
21
|
+
};
|
|
22
|
+
export type CpuOverCommitRatio = typeof CpuOverCommitRatio[keyof typeof CpuOverCommitRatio];
|
|
23
|
+
export declare function instanceOfCpuOverCommitRatio(value: any): boolean;
|
|
24
|
+
export declare function CpuOverCommitRatioFromJSON(json: any): CpuOverCommitRatio;
|
|
25
|
+
export declare function CpuOverCommitRatioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CpuOverCommitRatio;
|
|
26
|
+
export declare function CpuOverCommitRatioToJSON(value?: CpuOverCommitRatio | null): any;
|
|
27
|
+
export declare function CpuOverCommitRatioToJSONTyped(value: any, ignoreDiscriminator: boolean): CpuOverCommitRatio;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* CPU over-commit ratio
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const CpuOverCommitRatio = {
|
|
19
|
+
CpuOneToOne: '1:1',
|
|
20
|
+
CpuOneToTwo: '1:2',
|
|
21
|
+
CpuOneToFour: '1:4',
|
|
22
|
+
CpuOneToSix: '1:6'
|
|
23
|
+
};
|
|
24
|
+
export function instanceOfCpuOverCommitRatio(value) {
|
|
25
|
+
for (const key in CpuOverCommitRatio) {
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(CpuOverCommitRatio, key)) {
|
|
27
|
+
if (CpuOverCommitRatio[key] === value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
export function CpuOverCommitRatioFromJSON(json) {
|
|
35
|
+
return CpuOverCommitRatioFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function CpuOverCommitRatioFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
export function CpuOverCommitRatioToJSON(value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
export function CpuOverCommitRatioToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* Memory over-commit ratio
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const MemoryOverCommitRatio: {
|
|
17
|
+
readonly MemoryOneToOne: "1:1";
|
|
18
|
+
readonly MemoryOneToTwo: "1:2";
|
|
19
|
+
readonly MemoryOneToFour: "1:4";
|
|
20
|
+
};
|
|
21
|
+
export type MemoryOverCommitRatio = typeof MemoryOverCommitRatio[keyof typeof MemoryOverCommitRatio];
|
|
22
|
+
export declare function instanceOfMemoryOverCommitRatio(value: any): boolean;
|
|
23
|
+
export declare function MemoryOverCommitRatioFromJSON(json: any): MemoryOverCommitRatio;
|
|
24
|
+
export declare function MemoryOverCommitRatioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemoryOverCommitRatio;
|
|
25
|
+
export declare function MemoryOverCommitRatioToJSON(value?: MemoryOverCommitRatio | null): any;
|
|
26
|
+
export declare function MemoryOverCommitRatioToJSONTyped(value: any, ignoreDiscriminator: boolean): MemoryOverCommitRatio;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Memory over-commit ratio
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const MemoryOverCommitRatio = {
|
|
19
|
+
MemoryOneToOne: '1:1',
|
|
20
|
+
MemoryOneToTwo: '1:2',
|
|
21
|
+
MemoryOneToFour: '1:4'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfMemoryOverCommitRatio(value) {
|
|
24
|
+
for (const key in MemoryOverCommitRatio) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(MemoryOverCommitRatio, key)) {
|
|
26
|
+
if (MemoryOverCommitRatio[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function MemoryOverCommitRatioFromJSON(json) {
|
|
34
|
+
return MemoryOverCommitRatioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function MemoryOverCommitRatioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function MemoryOverCommitRatioToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function MemoryOverCommitRatioToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|