@openshift-migration-advisor/planner-sdk 0.6.0 → 0.7.0-4ccf2aa66adf
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 +8 -2
- package/dist/apis/AssessmentApi.d.ts +38 -1
- package/dist/apis/AssessmentApi.js +44 -0
- package/dist/esm/apis/AssessmentApi.d.ts +38 -1
- package/dist/esm/apis/AssessmentApi.js +45 -1
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +14 -0
- package/dist/esm/models/ClusterRequirementsRequest.js +9 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.d.ts +45 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.js +51 -0
- package/dist/esm/models/ComplexityOSNameEntry.d.ts +46 -0
- package/dist/esm/models/ComplexityOSNameEntry.js +51 -0
- package/dist/esm/models/ComplexityOSScoreEntry.d.ts +39 -0
- package/dist/esm/models/ComplexityOSScoreEntry.js +47 -0
- package/dist/esm/models/Info.d.ts +12 -0
- package/dist/esm/models/Info.js +4 -0
- package/dist/esm/models/MigrationComplexityRequest.d.ts +32 -0
- package/dist/esm/models/MigrationComplexityRequest.js +43 -0
- package/dist/esm/models/MigrationComplexityResponse.d.ts +68 -0
- package/dist/esm/models/MigrationComplexityResponse.js +62 -0
- package/dist/esm/models/VMs.d.ts +8 -0
- package/dist/esm/models/VMs.js +2 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +14 -0
- package/dist/models/ClusterRequirementsRequest.js +10 -1
- package/dist/models/ComplexityDiskScoreEntry.d.ts +45 -0
- package/dist/models/ComplexityDiskScoreEntry.js +58 -0
- package/dist/models/ComplexityOSNameEntry.d.ts +46 -0
- package/dist/models/ComplexityOSNameEntry.js +58 -0
- package/dist/models/ComplexityOSScoreEntry.d.ts +39 -0
- package/dist/models/ComplexityOSScoreEntry.js +54 -0
- package/dist/models/Info.d.ts +12 -0
- package/dist/models/Info.js +4 -0
- package/dist/models/MigrationComplexityRequest.d.ts +32 -0
- package/dist/models/MigrationComplexityRequest.js +50 -0
- package/dist/models/MigrationComplexityResponse.d.ts +68 -0
- package/dist/models/MigrationComplexityResponse.js +69 -0
- package/dist/models/VMs.d.ts +8 -0
- package/dist/models/VMs.js +2 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AssessmentApi.md +76 -0
- package/docs/ClusterRequirementsRequest.md +2 -0
- package/docs/ComplexityDiskScoreEntry.md +39 -0
- package/docs/ComplexityOSNameEntry.md +39 -0
- package/docs/ComplexityOSScoreEntry.md +37 -0
- package/docs/Info.md +4 -0
- package/docs/MigrationComplexityRequest.md +35 -0
- package/docs/MigrationComplexityResponse.md +43 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +90 -0
- package/src/models/ClusterRequirementsRequest.ts +17 -0
- package/src/models/ComplexityDiskScoreEntry.ts +85 -0
- package/src/models/ComplexityOSNameEntry.ts +86 -0
- package/src/models/ComplexityOSScoreEntry.ts +76 -0
- package/src/models/Info.ts +16 -0
- package/src/models/MigrationComplexityRequest.ts +66 -0
- package/src/models/MigrationComplexityResponse.ts +129 -0
- package/src/models/VMs.ts +8 -0
- package/src/models/index.ts +5 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -11,6 +11,9 @@ docs/AssessmentUpdate.md
|
|
|
11
11
|
docs/ClusterRequirementsRequest.md
|
|
12
12
|
docs/ClusterRequirementsResponse.md
|
|
13
13
|
docs/ClusterSizing.md
|
|
14
|
+
docs/ComplexityDiskScoreEntry.md
|
|
15
|
+
docs/ComplexityOSNameEntry.md
|
|
16
|
+
docs/ComplexityOSScoreEntry.md
|
|
14
17
|
docs/Datastore.md
|
|
15
18
|
docs/DiskSizeTierSummary.md
|
|
16
19
|
docs/DiskTypeSummary.md
|
|
@@ -30,6 +33,8 @@ docs/Job.md
|
|
|
30
33
|
docs/JobApi.md
|
|
31
34
|
docs/JobStatus.md
|
|
32
35
|
docs/Label.md
|
|
36
|
+
docs/MigrationComplexityRequest.md
|
|
37
|
+
docs/MigrationComplexityResponse.md
|
|
33
38
|
docs/MigrationEstimationRequest.md
|
|
34
39
|
docs/MigrationEstimationResponse.md
|
|
35
40
|
docs/MigrationIssue.md
|
|
@@ -69,6 +74,9 @@ src/models/AssessmentUpdate.ts
|
|
|
69
74
|
src/models/ClusterRequirementsRequest.ts
|
|
70
75
|
src/models/ClusterRequirementsResponse.ts
|
|
71
76
|
src/models/ClusterSizing.ts
|
|
77
|
+
src/models/ComplexityDiskScoreEntry.ts
|
|
78
|
+
src/models/ComplexityOSNameEntry.ts
|
|
79
|
+
src/models/ComplexityOSScoreEntry.ts
|
|
72
80
|
src/models/Datastore.ts
|
|
73
81
|
src/models/DiskSizeTierSummary.ts
|
|
74
82
|
src/models/DiskTypeSummary.ts
|
|
@@ -84,6 +92,8 @@ src/models/Ipv4Config.ts
|
|
|
84
92
|
src/models/Job.ts
|
|
85
93
|
src/models/JobStatus.ts
|
|
86
94
|
src/models/Label.ts
|
|
95
|
+
src/models/MigrationComplexityRequest.ts
|
|
96
|
+
src/models/MigrationComplexityResponse.ts
|
|
87
97
|
src/models/MigrationEstimationRequest.ts
|
|
88
98
|
src/models/MigrationEstimationResponse.ts
|
|
89
99
|
src/models/MigrationIssue.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.7.0-4ccf2aa66adf
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -53,6 +53,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
53
53
|
| Class | Method | HTTP request | Description
|
|
54
54
|
| ----- | ------ | ------------ | -------------
|
|
55
55
|
*AssessmentApi* | [**calculateAssessmentClusterRequirements**](docs/AssessmentApi.md#calculateassessmentclusterrequirements) | **POST** /api/v1/assessments/{id}/cluster-requirements |
|
|
56
|
+
*AssessmentApi* | [**calculateMigrationComplexity**](docs/AssessmentApi.md#calculatemigrationcomplexity) | **POST** /api/v1/assessments/{id}/complexity-estimation |
|
|
56
57
|
*AssessmentApi* | [**calculateMigrationEstimation**](docs/AssessmentApi.md#calculatemigrationestimation) | **POST** /api/v1/assessments/{id}/migration-estimation |
|
|
57
58
|
*AssessmentApi* | [**createAssessment**](docs/AssessmentApi.md#createassessment) | **POST** /api/v1/assessments |
|
|
58
59
|
*AssessmentApi* | [**deleteAssessment**](docs/AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} |
|
|
@@ -85,6 +86,9 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
85
86
|
- [ClusterRequirementsRequest](docs/ClusterRequirementsRequest.md)
|
|
86
87
|
- [ClusterRequirementsResponse](docs/ClusterRequirementsResponse.md)
|
|
87
88
|
- [ClusterSizing](docs/ClusterSizing.md)
|
|
89
|
+
- [ComplexityDiskScoreEntry](docs/ComplexityDiskScoreEntry.md)
|
|
90
|
+
- [ComplexityOSNameEntry](docs/ComplexityOSNameEntry.md)
|
|
91
|
+
- [ComplexityOSScoreEntry](docs/ComplexityOSScoreEntry.md)
|
|
88
92
|
- [Datastore](docs/Datastore.md)
|
|
89
93
|
- [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
|
|
90
94
|
- [DiskTypeSummary](docs/DiskTypeSummary.md)
|
|
@@ -100,6 +104,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
100
104
|
- [Job](docs/Job.md)
|
|
101
105
|
- [JobStatus](docs/JobStatus.md)
|
|
102
106
|
- [Label](docs/Label.md)
|
|
107
|
+
- [MigrationComplexityRequest](docs/MigrationComplexityRequest.md)
|
|
108
|
+
- [MigrationComplexityResponse](docs/MigrationComplexityResponse.md)
|
|
103
109
|
- [MigrationEstimationRequest](docs/MigrationEstimationRequest.md)
|
|
104
110
|
- [MigrationEstimationResponse](docs/MigrationEstimationResponse.md)
|
|
105
111
|
- [MigrationIssue](docs/MigrationIssue.md)
|
|
@@ -134,7 +140,7 @@ and is automatically generated by the
|
|
|
134
140
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
135
141
|
|
|
136
142
|
- API version: `undefined`
|
|
137
|
-
- Package version: `0.
|
|
143
|
+
- Package version: `0.7.0-4ccf2aa66adf`
|
|
138
144
|
- Generator version: `7.21.0-SNAPSHOT`
|
|
139
145
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
140
146
|
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
|
|
13
|
+
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
|
|
14
14
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
clusterRequirementsRequest: ClusterRequirementsRequest;
|
|
17
17
|
}
|
|
18
|
+
export interface CalculateMigrationComplexityRequest {
|
|
19
|
+
id: string;
|
|
20
|
+
migrationComplexityRequest: MigrationComplexityRequest;
|
|
21
|
+
}
|
|
18
22
|
export interface CalculateMigrationEstimationRequest {
|
|
19
23
|
id: string;
|
|
20
24
|
migrationEstimationRequest: MigrationEstimationRequest;
|
|
@@ -63,6 +67,27 @@ export interface AssessmentApiInterface {
|
|
|
63
67
|
* Calculate cluster requirements for an assessment
|
|
64
68
|
*/
|
|
65
69
|
calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for calculateMigrationComplexity without sending the request
|
|
72
|
+
* @param {string} id ID of the assessment
|
|
73
|
+
* @param {MigrationComplexityRequest} migrationComplexityRequest
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
* @memberof AssessmentApiInterface
|
|
76
|
+
*/
|
|
77
|
+
calculateMigrationComplexityRequestOpts(requestParameters: CalculateMigrationComplexityRequest): Promise<runtime.RequestOpts>;
|
|
78
|
+
/**
|
|
79
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
80
|
+
* @param {string} id ID of the assessment
|
|
81
|
+
* @param {MigrationComplexityRequest} migrationComplexityRequest
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
* @memberof AssessmentApiInterface
|
|
85
|
+
*/
|
|
86
|
+
calculateMigrationComplexityRaw(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationComplexityResponse>>;
|
|
87
|
+
/**
|
|
88
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
89
|
+
*/
|
|
90
|
+
calculateMigrationComplexity(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationComplexityResponse>;
|
|
66
91
|
/**
|
|
67
92
|
* Creates request options for calculateMigrationEstimation without sending the request
|
|
68
93
|
* @param {string} id ID of the assessment
|
|
@@ -198,6 +223,18 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
198
223
|
* Calculate cluster requirements for an assessment
|
|
199
224
|
*/
|
|
200
225
|
calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
|
|
226
|
+
/**
|
|
227
|
+
* Creates request options for calculateMigrationComplexity without sending the request
|
|
228
|
+
*/
|
|
229
|
+
calculateMigrationComplexityRequestOpts(requestParameters: CalculateMigrationComplexityRequest): Promise<runtime.RequestOpts>;
|
|
230
|
+
/**
|
|
231
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
232
|
+
*/
|
|
233
|
+
calculateMigrationComplexityRaw(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationComplexityResponse>>;
|
|
234
|
+
/**
|
|
235
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
236
|
+
*/
|
|
237
|
+
calculateMigrationComplexity(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationComplexityResponse>;
|
|
201
238
|
/**
|
|
202
239
|
* Creates request options for calculateMigrationEstimation without sending the request
|
|
203
240
|
*/
|
|
@@ -73,6 +73,50 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
73
73
|
return yield response.value();
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for calculateMigrationComplexity without sending the request
|
|
78
|
+
*/
|
|
79
|
+
calculateMigrationComplexityRequestOpts(requestParameters) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
if (requestParameters['id'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling calculateMigrationComplexity().');
|
|
83
|
+
}
|
|
84
|
+
if (requestParameters['migrationComplexityRequest'] == null) {
|
|
85
|
+
throw new runtime.RequiredError('migrationComplexityRequest', 'Required parameter "migrationComplexityRequest" was null or undefined when calling calculateMigrationComplexity().');
|
|
86
|
+
}
|
|
87
|
+
const queryParameters = {};
|
|
88
|
+
const headerParameters = {};
|
|
89
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
+
let urlPath = `/api/v1/assessments/{id}/complexity-estimation`;
|
|
91
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
92
|
+
return {
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
body: (0, index_js_1.MigrationComplexityRequestToJSON)(requestParameters['migrationComplexityRequest']),
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
103
|
+
*/
|
|
104
|
+
calculateMigrationComplexityRaw(requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const requestOptions = yield this.calculateMigrationComplexityRequestOpts(requestParameters);
|
|
107
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MigrationComplexityResponseFromJSON)(jsonValue));
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
113
|
+
*/
|
|
114
|
+
calculateMigrationComplexity(requestParameters, initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
const response = yield this.calculateMigrationComplexityRaw(requestParameters, initOverrides);
|
|
117
|
+
return yield response.value();
|
|
118
|
+
});
|
|
119
|
+
}
|
|
76
120
|
/**
|
|
77
121
|
* Creates request options for calculateMigrationEstimation without sending the request
|
|
78
122
|
*/
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
|
|
13
|
+
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
|
|
14
14
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
clusterRequirementsRequest: ClusterRequirementsRequest;
|
|
17
17
|
}
|
|
18
|
+
export interface CalculateMigrationComplexityRequest {
|
|
19
|
+
id: string;
|
|
20
|
+
migrationComplexityRequest: MigrationComplexityRequest;
|
|
21
|
+
}
|
|
18
22
|
export interface CalculateMigrationEstimationRequest {
|
|
19
23
|
id: string;
|
|
20
24
|
migrationEstimationRequest: MigrationEstimationRequest;
|
|
@@ -63,6 +67,27 @@ export interface AssessmentApiInterface {
|
|
|
63
67
|
* Calculate cluster requirements for an assessment
|
|
64
68
|
*/
|
|
65
69
|
calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for calculateMigrationComplexity without sending the request
|
|
72
|
+
* @param {string} id ID of the assessment
|
|
73
|
+
* @param {MigrationComplexityRequest} migrationComplexityRequest
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
* @memberof AssessmentApiInterface
|
|
76
|
+
*/
|
|
77
|
+
calculateMigrationComplexityRequestOpts(requestParameters: CalculateMigrationComplexityRequest): Promise<runtime.RequestOpts>;
|
|
78
|
+
/**
|
|
79
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
80
|
+
* @param {string} id ID of the assessment
|
|
81
|
+
* @param {MigrationComplexityRequest} migrationComplexityRequest
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
* @memberof AssessmentApiInterface
|
|
85
|
+
*/
|
|
86
|
+
calculateMigrationComplexityRaw(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationComplexityResponse>>;
|
|
87
|
+
/**
|
|
88
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
89
|
+
*/
|
|
90
|
+
calculateMigrationComplexity(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationComplexityResponse>;
|
|
66
91
|
/**
|
|
67
92
|
* Creates request options for calculateMigrationEstimation without sending the request
|
|
68
93
|
* @param {string} id ID of the assessment
|
|
@@ -198,6 +223,18 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
198
223
|
* Calculate cluster requirements for an assessment
|
|
199
224
|
*/
|
|
200
225
|
calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
|
|
226
|
+
/**
|
|
227
|
+
* Creates request options for calculateMigrationComplexity without sending the request
|
|
228
|
+
*/
|
|
229
|
+
calculateMigrationComplexityRequestOpts(requestParameters: CalculateMigrationComplexityRequest): Promise<runtime.RequestOpts>;
|
|
230
|
+
/**
|
|
231
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
232
|
+
*/
|
|
233
|
+
calculateMigrationComplexityRaw(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationComplexityResponse>>;
|
|
234
|
+
/**
|
|
235
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
236
|
+
*/
|
|
237
|
+
calculateMigrationComplexity(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationComplexityResponse>;
|
|
201
238
|
/**
|
|
202
239
|
* Creates request options for calculateMigrationEstimation without sending the request
|
|
203
240
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, } from '../models/index.js';
|
|
24
|
+
import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -70,6 +70,50 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
70
70
|
return yield response.value();
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates request options for calculateMigrationComplexity without sending the request
|
|
75
|
+
*/
|
|
76
|
+
calculateMigrationComplexityRequestOpts(requestParameters) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
if (requestParameters['id'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling calculateMigrationComplexity().');
|
|
80
|
+
}
|
|
81
|
+
if (requestParameters['migrationComplexityRequest'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('migrationComplexityRequest', 'Required parameter "migrationComplexityRequest" was null or undefined when calling calculateMigrationComplexity().');
|
|
83
|
+
}
|
|
84
|
+
const queryParameters = {};
|
|
85
|
+
const headerParameters = {};
|
|
86
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
87
|
+
let urlPath = `/api/v1/assessments/{id}/complexity-estimation`;
|
|
88
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
89
|
+
return {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: MigrationComplexityRequestToJSON(requestParameters['migrationComplexityRequest']),
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
100
|
+
*/
|
|
101
|
+
calculateMigrationComplexityRaw(requestParameters, initOverrides) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const requestOptions = yield this.calculateMigrationComplexityRequestOpts(requestParameters);
|
|
104
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
105
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MigrationComplexityResponseFromJSON(jsonValue));
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Calculate migration complexity estimation for an assessment cluster
|
|
110
|
+
*/
|
|
111
|
+
calculateMigrationComplexity(requestParameters, initOverrides) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const response = yield this.calculateMigrationComplexityRaw(requestParameters, initOverrides);
|
|
114
|
+
return yield response.value();
|
|
115
|
+
});
|
|
116
|
+
}
|
|
73
117
|
/**
|
|
74
118
|
* Creates request options for calculateMigrationEstimation without sending the request
|
|
75
119
|
*/
|
|
@@ -69,6 +69,12 @@ export interface ClusterRequirementsRequest {
|
|
|
69
69
|
* @memberof ClusterRequirementsRequest
|
|
70
70
|
*/
|
|
71
71
|
controlPlaneMemory?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Number of control plane nodes (1 for single node, 3 for HA)
|
|
74
|
+
* @type {ClusterRequirementsRequestControlPlaneNodeCountEnum}
|
|
75
|
+
* @memberof ClusterRequirementsRequest
|
|
76
|
+
*/
|
|
77
|
+
controlPlaneNodeCount?: ClusterRequirementsRequestControlPlaneNodeCountEnum;
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
74
80
|
* @export
|
|
@@ -89,6 +95,14 @@ export declare const ClusterRequirementsRequestMemoryOverCommitRatioEnum: {
|
|
|
89
95
|
readonly MemoryOneToFour: "1:4";
|
|
90
96
|
};
|
|
91
97
|
export type ClusterRequirementsRequestMemoryOverCommitRatioEnum = typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const ClusterRequirementsRequestControlPlaneNodeCountEnum: {
|
|
102
|
+
readonly NUMBER_1: 1;
|
|
103
|
+
readonly NUMBER_3: 3;
|
|
104
|
+
};
|
|
105
|
+
export type ClusterRequirementsRequestControlPlaneNodeCountEnum = typeof ClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof ClusterRequirementsRequestControlPlaneNodeCountEnum];
|
|
92
106
|
/**
|
|
93
107
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
94
108
|
*/
|
|
@@ -28,6 +28,13 @@ export const ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
|
28
28
|
MemoryOneToTwo: '1:2',
|
|
29
29
|
MemoryOneToFour: '1:4'
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const ClusterRequirementsRequestControlPlaneNodeCountEnum = {
|
|
35
|
+
NUMBER_1: 1,
|
|
36
|
+
NUMBER_3: 3
|
|
37
|
+
};
|
|
31
38
|
/**
|
|
32
39
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
33
40
|
*/
|
|
@@ -61,6 +68,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
61
68
|
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
62
69
|
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
63
70
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
71
|
+
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
export function ClusterRequirementsRequestToJSON(json) {
|
|
@@ -80,5 +88,6 @@ export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
80
88
|
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
81
89
|
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
82
90
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
91
|
+
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
83
92
|
};
|
|
84
93
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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: undefined
|
|
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
|
+
* One entry in the disk complexity breakdown
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ComplexityDiskScoreEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface ComplexityDiskScoreEntry {
|
|
18
|
+
/**
|
|
19
|
+
* Complexity score from 1 to 4, where 1 is the least complex disk footprint and 4 is the most complex. Score 1: <=10 TB provisioned; score 2: <=20 TB; score 3: <=50 TB; score 4: >50 TB.
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ComplexityDiskScoreEntry
|
|
23
|
+
*/
|
|
24
|
+
score: number;
|
|
25
|
+
/**
|
|
26
|
+
* Number of VMs at this complexity score
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ComplexityDiskScoreEntry
|
|
29
|
+
*/
|
|
30
|
+
vmCount: number;
|
|
31
|
+
/**
|
|
32
|
+
* Total provisioned storage in TB for VMs at this score
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ComplexityDiskScoreEntry
|
|
35
|
+
*/
|
|
36
|
+
totalSizeTB: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ComplexityDiskScoreEntry interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfComplexityDiskScoreEntry(value: object): value is ComplexityDiskScoreEntry;
|
|
42
|
+
export declare function ComplexityDiskScoreEntryFromJSON(json: any): ComplexityDiskScoreEntry;
|
|
43
|
+
export declare function ComplexityDiskScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityDiskScoreEntry;
|
|
44
|
+
export declare function ComplexityDiskScoreEntryToJSON(json: any): ComplexityDiskScoreEntry;
|
|
45
|
+
export declare function ComplexityDiskScoreEntryToJSONTyped(value?: ComplexityDiskScoreEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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: undefined
|
|
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 ComplexityDiskScoreEntry interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfComplexityDiskScoreEntry(value) {
|
|
18
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ComplexityDiskScoreEntryFromJSON(json) {
|
|
27
|
+
return ComplexityDiskScoreEntryFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ComplexityDiskScoreEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'score': json['score'],
|
|
35
|
+
'vmCount': json['vmCount'],
|
|
36
|
+
'totalSizeTB': json['totalSizeTB'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ComplexityDiskScoreEntryToJSON(json) {
|
|
40
|
+
return ComplexityDiskScoreEntryToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ComplexityDiskScoreEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'score': value['score'],
|
|
48
|
+
'vmCount': value['vmCount'],
|
|
49
|
+
'totalSizeTB': value['totalSizeTB'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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: undefined
|
|
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
|
+
* One entry in the per-OS-name complexity breakdown.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ComplexityOSNameEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface ComplexityOSNameEntry {
|
|
18
|
+
/**
|
|
19
|
+
* The OS name exactly as it appears in vms.osInfo (e.g. "Red Hat Enterprise Linux 9 (64-bit)").
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ComplexityOSNameEntry
|
|
23
|
+
*/
|
|
24
|
+
osName: string;
|
|
25
|
+
/**
|
|
26
|
+
* Complexity score assigned by ClassifyOS. 0 = unclassified, 1 = least complex, 4 = most complex.
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof ComplexityOSNameEntry
|
|
30
|
+
*/
|
|
31
|
+
score: number;
|
|
32
|
+
/**
|
|
33
|
+
* Number of VMs running this OS.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof ComplexityOSNameEntry
|
|
36
|
+
*/
|
|
37
|
+
vmCount: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ComplexityOSNameEntry interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfComplexityOSNameEntry(value: object): value is ComplexityOSNameEntry;
|
|
43
|
+
export declare function ComplexityOSNameEntryFromJSON(json: any): ComplexityOSNameEntry;
|
|
44
|
+
export declare function ComplexityOSNameEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityOSNameEntry;
|
|
45
|
+
export declare function ComplexityOSNameEntryToJSON(json: any): ComplexityOSNameEntry;
|
|
46
|
+
export declare function ComplexityOSNameEntryToJSONTyped(value?: ComplexityOSNameEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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: undefined
|
|
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 ComplexityOSNameEntry interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfComplexityOSNameEntry(value) {
|
|
18
|
+
if (!('osName' in value) || value['osName'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ComplexityOSNameEntryFromJSON(json) {
|
|
27
|
+
return ComplexityOSNameEntryFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ComplexityOSNameEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'osName': json['osName'],
|
|
35
|
+
'score': json['score'],
|
|
36
|
+
'vmCount': json['vmCount'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ComplexityOSNameEntryToJSON(json) {
|
|
40
|
+
return ComplexityOSNameEntryToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ComplexityOSNameEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'osName': value['osName'],
|
|
48
|
+
'score': value['score'],
|
|
49
|
+
'vmCount': value['vmCount'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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: undefined
|
|
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
|
+
* One entry in the OS complexity breakdown
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ComplexityOSScoreEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface ComplexityOSScoreEntry {
|
|
18
|
+
/**
|
|
19
|
+
* Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS that could not be classified.
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ComplexityOSScoreEntry
|
|
23
|
+
*/
|
|
24
|
+
score: number;
|
|
25
|
+
/**
|
|
26
|
+
* Number of VMs at this complexity score
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ComplexityOSScoreEntry
|
|
29
|
+
*/
|
|
30
|
+
vmCount: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ComplexityOSScoreEntry interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfComplexityOSScoreEntry(value: object): value is ComplexityOSScoreEntry;
|
|
36
|
+
export declare function ComplexityOSScoreEntryFromJSON(json: any): ComplexityOSScoreEntry;
|
|
37
|
+
export declare function ComplexityOSScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityOSScoreEntry;
|
|
38
|
+
export declare function ComplexityOSScoreEntryToJSON(json: any): ComplexityOSScoreEntry;
|
|
39
|
+
export declare function ComplexityOSScoreEntryToJSONTyped(value?: ComplexityOSScoreEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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: undefined
|
|
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 ComplexityOSScoreEntry interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfComplexityOSScoreEntry(value) {
|
|
18
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ComplexityOSScoreEntryFromJSON(json) {
|
|
25
|
+
return ComplexityOSScoreEntryFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ComplexityOSScoreEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'score': json['score'],
|
|
33
|
+
'vmCount': json['vmCount'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ComplexityOSScoreEntryToJSON(json) {
|
|
37
|
+
return ComplexityOSScoreEntryToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ComplexityOSScoreEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'score': value['score'],
|
|
45
|
+
'vmCount': value['vmCount'],
|
|
46
|
+
};
|
|
47
|
+
}
|