@openshift-migration-advisor/planner-sdk 0.6.0 → 0.7.0
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 +8 -0
- package/README.md +7 -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/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 +60 -0
- package/dist/esm/models/MigrationComplexityResponse.js +57 -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 +4 -0
- package/dist/esm/models/index.js +4 -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/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 +60 -0
- package/dist/models/MigrationComplexityResponse.js +64 -0
- package/dist/models/VMs.d.ts +8 -0
- package/dist/models/VMs.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/AssessmentApi.md +76 -0
- package/docs/ClusterRequirementsRequest.md +2 -0
- package/docs/ComplexityDiskScoreEntry.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 +41 -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/ComplexityOSScoreEntry.ts +76 -0
- package/src/models/Info.ts +16 -0
- package/src/models/MigrationComplexityRequest.ts +66 -0
- package/src/models/MigrationComplexityResponse.ts +112 -0
- package/src/models/VMs.ts +8 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -11,6 +11,8 @@ docs/AssessmentUpdate.md
|
|
|
11
11
|
docs/ClusterRequirementsRequest.md
|
|
12
12
|
docs/ClusterRequirementsResponse.md
|
|
13
13
|
docs/ClusterSizing.md
|
|
14
|
+
docs/ComplexityDiskScoreEntry.md
|
|
15
|
+
docs/ComplexityOSScoreEntry.md
|
|
14
16
|
docs/Datastore.md
|
|
15
17
|
docs/DiskSizeTierSummary.md
|
|
16
18
|
docs/DiskTypeSummary.md
|
|
@@ -30,6 +32,8 @@ docs/Job.md
|
|
|
30
32
|
docs/JobApi.md
|
|
31
33
|
docs/JobStatus.md
|
|
32
34
|
docs/Label.md
|
|
35
|
+
docs/MigrationComplexityRequest.md
|
|
36
|
+
docs/MigrationComplexityResponse.md
|
|
33
37
|
docs/MigrationEstimationRequest.md
|
|
34
38
|
docs/MigrationEstimationResponse.md
|
|
35
39
|
docs/MigrationIssue.md
|
|
@@ -69,6 +73,8 @@ src/models/AssessmentUpdate.ts
|
|
|
69
73
|
src/models/ClusterRequirementsRequest.ts
|
|
70
74
|
src/models/ClusterRequirementsResponse.ts
|
|
71
75
|
src/models/ClusterSizing.ts
|
|
76
|
+
src/models/ComplexityDiskScoreEntry.ts
|
|
77
|
+
src/models/ComplexityOSScoreEntry.ts
|
|
72
78
|
src/models/Datastore.ts
|
|
73
79
|
src/models/DiskSizeTierSummary.ts
|
|
74
80
|
src/models/DiskTypeSummary.ts
|
|
@@ -84,6 +90,8 @@ src/models/Ipv4Config.ts
|
|
|
84
90
|
src/models/Job.ts
|
|
85
91
|
src/models/JobStatus.ts
|
|
86
92
|
src/models/Label.ts
|
|
93
|
+
src/models/MigrationComplexityRequest.ts
|
|
94
|
+
src/models/MigrationComplexityResponse.ts
|
|
87
95
|
src/models/MigrationEstimationRequest.ts
|
|
88
96
|
src/models/MigrationEstimationResponse.ts
|
|
89
97
|
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
|
|
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,8 @@ 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
|
+
- [ComplexityOSScoreEntry](docs/ComplexityOSScoreEntry.md)
|
|
88
91
|
- [Datastore](docs/Datastore.md)
|
|
89
92
|
- [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
|
|
90
93
|
- [DiskTypeSummary](docs/DiskTypeSummary.md)
|
|
@@ -100,6 +103,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
100
103
|
- [Job](docs/Job.md)
|
|
101
104
|
- [JobStatus](docs/JobStatus.md)
|
|
102
105
|
- [Label](docs/Label.md)
|
|
106
|
+
- [MigrationComplexityRequest](docs/MigrationComplexityRequest.md)
|
|
107
|
+
- [MigrationComplexityResponse](docs/MigrationComplexityResponse.md)
|
|
103
108
|
- [MigrationEstimationRequest](docs/MigrationEstimationRequest.md)
|
|
104
109
|
- [MigrationEstimationResponse](docs/MigrationEstimationResponse.md)
|
|
105
110
|
- [MigrationIssue](docs/MigrationIssue.md)
|
|
@@ -134,7 +139,7 @@ and is automatically generated by the
|
|
|
134
139
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
135
140
|
|
|
136
141
|
- API version: `undefined`
|
|
137
|
-
- Package version: `0.
|
|
142
|
+
- Package version: `0.7.0`
|
|
138
143
|
- Generator version: `7.21.0-SNAPSHOT`
|
|
139
144
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
140
145
|
|
|
@@ -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,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
|
+
}
|
|
@@ -27,6 +27,18 @@ export interface Info {
|
|
|
27
27
|
* @memberof Info
|
|
28
28
|
*/
|
|
29
29
|
versionName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Agent git commit hash
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Info
|
|
34
|
+
*/
|
|
35
|
+
agentGitCommit?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Agent version name, based on git tag
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Info
|
|
40
|
+
*/
|
|
41
|
+
agentVersionName?: string | null;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Check if a given object implements the Info interface.
|
package/dist/esm/models/Info.js
CHANGED
|
@@ -31,6 +31,8 @@ export function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return {
|
|
32
32
|
'gitCommit': json['gitCommit'],
|
|
33
33
|
'versionName': json['versionName'],
|
|
34
|
+
'agentGitCommit': json['agentGitCommit'] == null ? undefined : json['agentGitCommit'],
|
|
35
|
+
'agentVersionName': json['agentVersionName'] == null ? undefined : json['agentVersionName'],
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
export function InfoToJSON(json) {
|
|
@@ -43,5 +45,7 @@ export function InfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
43
45
|
return {
|
|
44
46
|
'gitCommit': value['gitCommit'],
|
|
45
47
|
'versionName': value['versionName'],
|
|
48
|
+
'agentGitCommit': value['agentGitCommit'],
|
|
49
|
+
'agentVersionName': value['agentVersionName'],
|
|
46
50
|
};
|
|
47
51
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Request payload for calculating migration complexity estimation
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MigrationComplexityRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface MigrationComplexityRequest {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the cluster to calculate complexity estimation for
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MigrationComplexityRequest
|
|
22
|
+
*/
|
|
23
|
+
clusterId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the MigrationComplexityRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfMigrationComplexityRequest(value: object): value is MigrationComplexityRequest;
|
|
29
|
+
export declare function MigrationComplexityRequestFromJSON(json: any): MigrationComplexityRequest;
|
|
30
|
+
export declare function MigrationComplexityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationComplexityRequest;
|
|
31
|
+
export declare function MigrationComplexityRequestToJSON(json: any): MigrationComplexityRequest;
|
|
32
|
+
export declare function MigrationComplexityRequestToJSONTyped(value?: MigrationComplexityRequest | null, ignoreDiscriminator?: boolean): any;
|