@openshift-migration-advisor/planner-sdk 0.8.0 → 0.9.0-a26ff9932eeb

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.
Files changed (79) hide show
  1. package/.openapi-generator/FILES +8 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +8 -4
  4. package/dist/apis/AssessmentApi.d.ts +50 -5
  5. package/dist/apis/AssessmentApi.js +45 -1
  6. package/dist/esm/apis/AssessmentApi.d.ts +50 -5
  7. package/dist/esm/apis/AssessmentApi.js +46 -2
  8. package/dist/esm/models/ClusterRequirementsRequest.d.ts +9 -3
  9. package/dist/esm/models/ClusterRequirementsRequest.js +2 -0
  10. package/dist/esm/models/ComplexityOSNameEntry.d.ts +1 -1
  11. package/dist/esm/models/ComplexityOSScoreEntry.d.ts +1 -1
  12. package/dist/esm/models/EstimationContext.d.ts +40 -0
  13. package/dist/esm/models/EstimationContext.js +43 -0
  14. package/dist/esm/models/EstimationDetail.d.ts +14 -2
  15. package/dist/esm/models/EstimationDetail.js +5 -3
  16. package/dist/esm/models/MigrationComplexityResponse.d.ts +2 -2
  17. package/dist/esm/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  18. package/dist/esm/models/MigrationEstimationByComplexityResponse.js +51 -0
  19. package/dist/esm/models/MigrationEstimationRequest.d.ts +16 -0
  20. package/dist/esm/models/MigrationEstimationRequest.js +4 -0
  21. package/dist/esm/models/OsDiskEstimationEntry.d.ts +53 -0
  22. package/dist/esm/models/OsDiskEstimationEntry.js +55 -0
  23. package/dist/esm/models/SchemaEstimationResult.d.ts +47 -0
  24. package/dist/esm/models/{MigrationEstimationResponse.js → SchemaEstimationResult.js} +15 -11
  25. package/dist/esm/models/VMs.d.ts +9 -0
  26. package/dist/esm/models/VMs.js +2 -0
  27. package/dist/esm/models/index.d.ts +4 -1
  28. package/dist/esm/models/index.js +4 -1
  29. package/dist/esm/runtime.js +1 -1
  30. package/dist/models/ClusterRequirementsRequest.d.ts +9 -3
  31. package/dist/models/ClusterRequirementsRequest.js +2 -0
  32. package/dist/models/ComplexityOSNameEntry.d.ts +1 -1
  33. package/dist/models/ComplexityOSScoreEntry.d.ts +1 -1
  34. package/dist/models/EstimationContext.d.ts +40 -0
  35. package/dist/models/EstimationContext.js +50 -0
  36. package/dist/models/EstimationDetail.d.ts +14 -2
  37. package/dist/models/EstimationDetail.js +5 -3
  38. package/dist/models/MigrationComplexityResponse.d.ts +2 -2
  39. package/dist/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  40. package/dist/models/MigrationEstimationByComplexityResponse.js +58 -0
  41. package/dist/models/MigrationEstimationRequest.d.ts +16 -0
  42. package/dist/models/MigrationEstimationRequest.js +4 -0
  43. package/dist/models/OsDiskEstimationEntry.d.ts +53 -0
  44. package/dist/models/OsDiskEstimationEntry.js +62 -0
  45. package/dist/models/SchemaEstimationResult.d.ts +47 -0
  46. package/dist/models/SchemaEstimationResult.js +60 -0
  47. package/dist/models/VMs.d.ts +9 -0
  48. package/dist/models/VMs.js +2 -0
  49. package/dist/models/index.d.ts +4 -1
  50. package/dist/models/index.js +4 -1
  51. package/dist/runtime.js +1 -1
  52. package/docs/AssessmentApi.md +79 -3
  53. package/docs/ClusterRequirementsRequest.md +2 -0
  54. package/docs/EstimationContext.md +36 -0
  55. package/docs/EstimationDetail.md +5 -1
  56. package/docs/MigrationEstimationByComplexityResponse.md +38 -0
  57. package/docs/MigrationEstimationRequest.md +4 -0
  58. package/docs/OsDiskEstimationEntry.md +40 -0
  59. package/docs/{MigrationEstimationResponse.md → SchemaEstimationResult.md} +9 -7
  60. package/docs/VMs.md +2 -0
  61. package/package.json +1 -1
  62. package/src/apis/AssessmentApi.ts +95 -8
  63. package/src/models/ClusterRequirementsRequest.ts +11 -3
  64. package/src/models/ComplexityOSNameEntry.ts +1 -1
  65. package/src/models/ComplexityOSScoreEntry.ts +1 -1
  66. package/src/models/EstimationContext.ts +73 -0
  67. package/src/models/EstimationDetail.ts +19 -4
  68. package/src/models/MigrationComplexityResponse.ts +2 -2
  69. package/src/models/MigrationEstimationByComplexityResponse.ts +98 -0
  70. package/src/models/MigrationEstimationRequest.ts +18 -0
  71. package/src/models/OsDiskEstimationEntry.ts +100 -0
  72. package/src/models/SchemaEstimationResult.ts +92 -0
  73. package/src/models/VMs.ts +9 -0
  74. package/src/models/index.ts +4 -1
  75. package/src/runtime.ts +1 -1
  76. package/dist/esm/models/MigrationEstimationResponse.d.ts +0 -41
  77. package/dist/models/MigrationEstimationResponse.d.ts +0 -41
  78. package/dist/models/MigrationEstimationResponse.js +0 -56
  79. package/src/models/MigrationEstimationResponse.ts +0 -83
@@ -17,6 +17,7 @@ docs/ComplexityOSScoreEntry.md
17
17
  docs/Datastore.md
18
18
  docs/DiskSizeTierSummary.md
19
19
  docs/DiskTypeSummary.md
20
+ docs/EstimationContext.md
20
21
  docs/EstimationDetail.md
21
22
  docs/HealthApi.md
22
23
  docs/Histogram.md
@@ -35,13 +36,15 @@ docs/JobStatus.md
35
36
  docs/Label.md
36
37
  docs/MigrationComplexityRequest.md
37
38
  docs/MigrationComplexityResponse.md
39
+ docs/MigrationEstimationByComplexityResponse.md
38
40
  docs/MigrationEstimationRequest.md
39
- docs/MigrationEstimationResponse.md
40
41
  docs/MigrationIssue.md
41
42
  docs/ModelError.md
42
43
  docs/Network.md
44
+ docs/OsDiskEstimationEntry.md
43
45
  docs/OsInfo.md
44
46
  docs/PresignedUrl.md
47
+ docs/SchemaEstimationResult.md
45
48
  docs/SizingOverCommitRatio.md
46
49
  docs/SizingResourceConsumption.md
47
50
  docs/SizingResourceLimits.md
@@ -80,6 +83,7 @@ src/models/ComplexityOSScoreEntry.ts
80
83
  src/models/Datastore.ts
81
84
  src/models/DiskSizeTierSummary.ts
82
85
  src/models/DiskTypeSummary.ts
86
+ src/models/EstimationContext.ts
83
87
  src/models/EstimationDetail.ts
84
88
  src/models/Histogram.ts
85
89
  src/models/Host.ts
@@ -94,13 +98,15 @@ src/models/JobStatus.ts
94
98
  src/models/Label.ts
95
99
  src/models/MigrationComplexityRequest.ts
96
100
  src/models/MigrationComplexityResponse.ts
101
+ src/models/MigrationEstimationByComplexityResponse.ts
97
102
  src/models/MigrationEstimationRequest.ts
98
- src/models/MigrationEstimationResponse.ts
99
103
  src/models/MigrationIssue.ts
100
104
  src/models/ModelError.ts
101
105
  src/models/Network.ts
106
+ src/models/OsDiskEstimationEntry.ts
102
107
  src/models/OsInfo.ts
103
108
  src/models/PresignedUrl.ts
109
+ src/models/SchemaEstimationResult.ts
104
110
  src/models/SizingOverCommitRatio.ts
105
111
  src/models/SizingResourceConsumption.ts
106
112
  src/models/SizingResourceLimits.ts
@@ -1 +1 @@
1
- 7.21.0-SNAPSHOT
1
+ 7.22.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.8.0
1
+ # @openshift-migration-advisor/planner-sdk@0.9.0-a26ff9932eeb
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -55,6 +55,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
55
55
  *AssessmentApi* | [**calculateAssessmentClusterRequirements**](docs/AssessmentApi.md#calculateassessmentclusterrequirements) | **POST** /api/v1/assessments/{id}/cluster-requirements |
56
56
  *AssessmentApi* | [**calculateMigrationComplexity**](docs/AssessmentApi.md#calculatemigrationcomplexity) | **POST** /api/v1/assessments/{id}/complexity-estimation |
57
57
  *AssessmentApi* | [**calculateMigrationEstimation**](docs/AssessmentApi.md#calculatemigrationestimation) | **POST** /api/v1/assessments/{id}/migration-estimation |
58
+ *AssessmentApi* | [**calculateMigrationEstimationByComplexity**](docs/AssessmentApi.md#calculatemigrationestimationbycomplexity) | **POST** /api/v1/assessments/{id}/migration-estimation/by-complexity |
58
59
  *AssessmentApi* | [**createAssessment**](docs/AssessmentApi.md#createassessment) | **POST** /api/v1/assessments |
59
60
  *AssessmentApi* | [**deleteAssessment**](docs/AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} |
60
61
  *AssessmentApi* | [**getAssessment**](docs/AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} |
@@ -92,6 +93,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
92
93
  - [Datastore](docs/Datastore.md)
93
94
  - [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
94
95
  - [DiskTypeSummary](docs/DiskTypeSummary.md)
96
+ - [EstimationContext](docs/EstimationContext.md)
95
97
  - [EstimationDetail](docs/EstimationDetail.md)
96
98
  - [Histogram](docs/Histogram.md)
97
99
  - [Host](docs/Host.md)
@@ -106,13 +108,15 @@ All URIs are relative to *https://raw.githubusercontent.com*
106
108
  - [Label](docs/Label.md)
107
109
  - [MigrationComplexityRequest](docs/MigrationComplexityRequest.md)
108
110
  - [MigrationComplexityResponse](docs/MigrationComplexityResponse.md)
111
+ - [MigrationEstimationByComplexityResponse](docs/MigrationEstimationByComplexityResponse.md)
109
112
  - [MigrationEstimationRequest](docs/MigrationEstimationRequest.md)
110
- - [MigrationEstimationResponse](docs/MigrationEstimationResponse.md)
111
113
  - [MigrationIssue](docs/MigrationIssue.md)
112
114
  - [ModelError](docs/ModelError.md)
113
115
  - [Network](docs/Network.md)
116
+ - [OsDiskEstimationEntry](docs/OsDiskEstimationEntry.md)
114
117
  - [OsInfo](docs/OsInfo.md)
115
118
  - [PresignedUrl](docs/PresignedUrl.md)
119
+ - [SchemaEstimationResult](docs/SchemaEstimationResult.md)
116
120
  - [SizingOverCommitRatio](docs/SizingOverCommitRatio.md)
117
121
  - [SizingResourceConsumption](docs/SizingResourceConsumption.md)
118
122
  - [SizingResourceLimits](docs/SizingResourceLimits.md)
@@ -140,8 +144,8 @@ and is automatically generated by the
140
144
  [OpenAPI Generator](https://openapi-generator.tech) project:
141
145
 
142
146
  - API version: `undefined`
143
- - Package version: `0.8.0`
144
- - Generator version: `7.21.0-SNAPSHOT`
147
+ - Package version: `0.9.0-a26ff9932eeb`
148
+ - Generator version: `7.22.0-SNAPSHOT`
145
149
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
146
150
 
147
151
  The generated npm module supports the following:
@@ -10,7 +10,7 @@
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, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
13
+ import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, SchemaEstimationResult } from '../models/index.js';
14
14
  export interface CalculateAssessmentClusterRequirementsRequest {
15
15
  id: string;
16
16
  clusterRequirementsRequest: ClusterRequirementsRequest;
@@ -23,6 +23,10 @@ export interface CalculateMigrationEstimationRequest {
23
23
  id: string;
24
24
  migrationEstimationRequest: MigrationEstimationRequest;
25
25
  }
26
+ export interface CalculateMigrationEstimationByComplexityRequest {
27
+ id: string;
28
+ migrationEstimationRequest: MigrationEstimationRequest;
29
+ }
26
30
  export interface CreateAssessmentRequest {
27
31
  assessmentForm: AssessmentForm;
28
32
  }
@@ -104,11 +108,36 @@ export interface AssessmentApiInterface {
104
108
  * @throws {RequiredError}
105
109
  * @memberof AssessmentApiInterface
106
110
  */
107
- calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
111
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
112
+ [key: string]: SchemaEstimationResult;
113
+ }>>;
108
114
  /**
109
115
  * Calculate migration time estimation for an assessment
110
116
  */
111
- calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
117
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
118
+ [key: string]: SchemaEstimationResult;
119
+ }>;
120
+ /**
121
+ * Creates request options for calculateMigrationEstimationByComplexity without sending the request
122
+ * @param {string} id ID of the assessment
123
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
124
+ * @throws {RequiredError}
125
+ * @memberof AssessmentApiInterface
126
+ */
127
+ calculateMigrationEstimationByComplexityRequestOpts(requestParameters: CalculateMigrationEstimationByComplexityRequest): Promise<runtime.RequestOpts>;
128
+ /**
129
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
130
+ * @param {string} id ID of the assessment
131
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ * @memberof AssessmentApiInterface
135
+ */
136
+ calculateMigrationEstimationByComplexityRaw(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationByComplexityResponse>>;
137
+ /**
138
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
139
+ */
140
+ calculateMigrationEstimationByComplexity(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationByComplexityResponse>;
112
141
  /**
113
142
  * Creates request options for createAssessment without sending the request
114
143
  * @param {AssessmentForm} assessmentForm
@@ -242,11 +271,27 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
242
271
  /**
243
272
  * Calculate migration time estimation for an assessment
244
273
  */
245
- calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
274
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
275
+ [key: string]: SchemaEstimationResult;
276
+ }>>;
246
277
  /**
247
278
  * Calculate migration time estimation for an assessment
248
279
  */
249
- calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
280
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
281
+ [key: string]: SchemaEstimationResult;
282
+ }>;
283
+ /**
284
+ * Creates request options for calculateMigrationEstimationByComplexity without sending the request
285
+ */
286
+ calculateMigrationEstimationByComplexityRequestOpts(requestParameters: CalculateMigrationEstimationByComplexityRequest): Promise<runtime.RequestOpts>;
287
+ /**
288
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
289
+ */
290
+ calculateMigrationEstimationByComplexityRaw(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationByComplexityResponse>>;
291
+ /**
292
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
293
+ */
294
+ calculateMigrationEstimationByComplexity(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationByComplexityResponse>;
250
295
  /**
251
296
  * Creates request options for createAssessment without sending the request
252
297
  */
@@ -149,7 +149,7 @@ class AssessmentApi extends runtime.BaseAPI {
149
149
  return __awaiter(this, void 0, void 0, function* () {
150
150
  const requestOptions = yield this.calculateMigrationEstimationRequestOpts(requestParameters);
151
151
  const response = yield this.request(requestOptions, initOverrides);
152
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MigrationEstimationResponseFromJSON)(jsonValue));
152
+ return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, index_js_1.SchemaEstimationResultFromJSON));
153
153
  });
154
154
  }
155
155
  /**
@@ -161,6 +161,50 @@ class AssessmentApi extends runtime.BaseAPI {
161
161
  return yield response.value();
162
162
  });
163
163
  }
164
+ /**
165
+ * Creates request options for calculateMigrationEstimationByComplexity without sending the request
166
+ */
167
+ calculateMigrationEstimationByComplexityRequestOpts(requestParameters) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ if (requestParameters['id'] == null) {
170
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling calculateMigrationEstimationByComplexity().');
171
+ }
172
+ if (requestParameters['migrationEstimationRequest'] == null) {
173
+ throw new runtime.RequiredError('migrationEstimationRequest', 'Required parameter "migrationEstimationRequest" was null or undefined when calling calculateMigrationEstimationByComplexity().');
174
+ }
175
+ const queryParameters = {};
176
+ const headerParameters = {};
177
+ headerParameters['Content-Type'] = 'application/json';
178
+ let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
179
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
180
+ return {
181
+ path: urlPath,
182
+ method: 'POST',
183
+ headers: headerParameters,
184
+ query: queryParameters,
185
+ body: (0, index_js_1.MigrationEstimationRequestToJSON)(requestParameters['migrationEstimationRequest']),
186
+ };
187
+ });
188
+ }
189
+ /**
190
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
191
+ */
192
+ calculateMigrationEstimationByComplexityRaw(requestParameters, initOverrides) {
193
+ return __awaiter(this, void 0, void 0, function* () {
194
+ const requestOptions = yield this.calculateMigrationEstimationByComplexityRequestOpts(requestParameters);
195
+ const response = yield this.request(requestOptions, initOverrides);
196
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MigrationEstimationByComplexityResponseFromJSON)(jsonValue));
197
+ });
198
+ }
199
+ /**
200
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
201
+ */
202
+ calculateMigrationEstimationByComplexity(requestParameters, initOverrides) {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ const response = yield this.calculateMigrationEstimationByComplexityRaw(requestParameters, initOverrides);
205
+ return yield response.value();
206
+ });
207
+ }
164
208
  /**
165
209
  * Creates request options for createAssessment without sending the request
166
210
  */
@@ -10,7 +10,7 @@
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, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
13
+ import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, SchemaEstimationResult } from '../models/index.js';
14
14
  export interface CalculateAssessmentClusterRequirementsRequest {
15
15
  id: string;
16
16
  clusterRequirementsRequest: ClusterRequirementsRequest;
@@ -23,6 +23,10 @@ export interface CalculateMigrationEstimationRequest {
23
23
  id: string;
24
24
  migrationEstimationRequest: MigrationEstimationRequest;
25
25
  }
26
+ export interface CalculateMigrationEstimationByComplexityRequest {
27
+ id: string;
28
+ migrationEstimationRequest: MigrationEstimationRequest;
29
+ }
26
30
  export interface CreateAssessmentRequest {
27
31
  assessmentForm: AssessmentForm;
28
32
  }
@@ -104,11 +108,36 @@ export interface AssessmentApiInterface {
104
108
  * @throws {RequiredError}
105
109
  * @memberof AssessmentApiInterface
106
110
  */
107
- calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
111
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
112
+ [key: string]: SchemaEstimationResult;
113
+ }>>;
108
114
  /**
109
115
  * Calculate migration time estimation for an assessment
110
116
  */
111
- calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
117
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
118
+ [key: string]: SchemaEstimationResult;
119
+ }>;
120
+ /**
121
+ * Creates request options for calculateMigrationEstimationByComplexity without sending the request
122
+ * @param {string} id ID of the assessment
123
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
124
+ * @throws {RequiredError}
125
+ * @memberof AssessmentApiInterface
126
+ */
127
+ calculateMigrationEstimationByComplexityRequestOpts(requestParameters: CalculateMigrationEstimationByComplexityRequest): Promise<runtime.RequestOpts>;
128
+ /**
129
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
130
+ * @param {string} id ID of the assessment
131
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ * @memberof AssessmentApiInterface
135
+ */
136
+ calculateMigrationEstimationByComplexityRaw(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationByComplexityResponse>>;
137
+ /**
138
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
139
+ */
140
+ calculateMigrationEstimationByComplexity(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationByComplexityResponse>;
112
141
  /**
113
142
  * Creates request options for createAssessment without sending the request
114
143
  * @param {AssessmentForm} assessmentForm
@@ -242,11 +271,27 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
242
271
  /**
243
272
  * Calculate migration time estimation for an assessment
244
273
  */
245
- calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
274
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
275
+ [key: string]: SchemaEstimationResult;
276
+ }>>;
246
277
  /**
247
278
  * Calculate migration time estimation for an assessment
248
279
  */
249
- calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
280
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
281
+ [key: string]: SchemaEstimationResult;
282
+ }>;
283
+ /**
284
+ * Creates request options for calculateMigrationEstimationByComplexity without sending the request
285
+ */
286
+ calculateMigrationEstimationByComplexityRequestOpts(requestParameters: CalculateMigrationEstimationByComplexityRequest): Promise<runtime.RequestOpts>;
287
+ /**
288
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
289
+ */
290
+ calculateMigrationEstimationByComplexityRaw(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationByComplexityResponse>>;
291
+ /**
292
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
293
+ */
294
+ calculateMigrationEstimationByComplexity(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationByComplexityResponse>;
250
295
  /**
251
296
  * Creates request options for createAssessment without sending the request
252
297
  */
@@ -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, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, } from '../models/index.js';
24
+ import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON, SchemaEstimationResultFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -146,7 +146,7 @@ export class AssessmentApi extends runtime.BaseAPI {
146
146
  return __awaiter(this, void 0, void 0, function* () {
147
147
  const requestOptions = yield this.calculateMigrationEstimationRequestOpts(requestParameters);
148
148
  const response = yield this.request(requestOptions, initOverrides);
149
- return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationResponseFromJSON(jsonValue));
149
+ return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, SchemaEstimationResultFromJSON));
150
150
  });
151
151
  }
152
152
  /**
@@ -158,6 +158,50 @@ export class AssessmentApi extends runtime.BaseAPI {
158
158
  return yield response.value();
159
159
  });
160
160
  }
161
+ /**
162
+ * Creates request options for calculateMigrationEstimationByComplexity without sending the request
163
+ */
164
+ calculateMigrationEstimationByComplexityRequestOpts(requestParameters) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ if (requestParameters['id'] == null) {
167
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling calculateMigrationEstimationByComplexity().');
168
+ }
169
+ if (requestParameters['migrationEstimationRequest'] == null) {
170
+ throw new runtime.RequiredError('migrationEstimationRequest', 'Required parameter "migrationEstimationRequest" was null or undefined when calling calculateMigrationEstimationByComplexity().');
171
+ }
172
+ const queryParameters = {};
173
+ const headerParameters = {};
174
+ headerParameters['Content-Type'] = 'application/json';
175
+ let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
176
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
177
+ return {
178
+ path: urlPath,
179
+ method: 'POST',
180
+ headers: headerParameters,
181
+ query: queryParameters,
182
+ body: MigrationEstimationRequestToJSON(requestParameters['migrationEstimationRequest']),
183
+ };
184
+ });
185
+ }
186
+ /**
187
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
188
+ */
189
+ calculateMigrationEstimationByComplexityRaw(requestParameters, initOverrides) {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ const requestOptions = yield this.calculateMigrationEstimationByComplexityRequestOpts(requestParameters);
192
+ const response = yield this.request(requestOptions, initOverrides);
193
+ return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationByComplexityResponseFromJSON(jsonValue));
194
+ });
195
+ }
196
+ /**
197
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
198
+ */
199
+ calculateMigrationEstimationByComplexity(requestParameters, initOverrides) {
200
+ return __awaiter(this, void 0, void 0, function* () {
201
+ const response = yield this.calculateMigrationEstimationByComplexityRaw(requestParameters, initOverrides);
202
+ return yield response.value();
203
+ });
204
+ }
161
205
  /**
162
206
  * Creates request options for createAssessment without sending the request
163
207
  */
@@ -52,7 +52,7 @@ export interface ClusterRequirementsRequest {
52
52
  */
53
53
  workerNodeThreads?: number;
54
54
  /**
55
- * Allow workload scheduling on control plane nodes
55
+ * Allow workload scheduling on control plane nodes (default: false)
56
56
  * @type {boolean}
57
57
  * @memberof ClusterRequirementsRequest
58
58
  */
@@ -64,17 +64,23 @@ export interface ClusterRequirementsRequest {
64
64
  */
65
65
  controlPlaneCPU?: number;
66
66
  /**
67
- * Memory (GB) per control plane node (default: 16)
67
+ * Memory in GB per control plane node (default: 16)
68
68
  * @type {number}
69
69
  * @memberof ClusterRequirementsRequest
70
70
  */
71
71
  controlPlaneMemory?: number;
72
72
  /**
73
- * Number of control plane nodes (1 for single node, 3 for HA)
73
+ * Number of control plane nodes: 1 or 3 (default: 3)
74
74
  * @type {ClusterRequirementsRequestControlPlaneNodeCountEnum}
75
75
  * @memberof ClusterRequirementsRequest
76
76
  */
77
77
  controlPlaneNodeCount?: ClusterRequirementsRequestControlPlaneNodeCountEnum;
78
+ /**
79
+ * If true, control plane is hosted externally. Incompatible with control plane fields (default: false)
80
+ * @type {boolean}
81
+ * @memberof ClusterRequirementsRequest
82
+ */
83
+ hostedControlPlane?: boolean;
78
84
  }
79
85
  /**
80
86
  * @export
@@ -69,6 +69,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminato
69
69
  'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
70
70
  'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
71
71
  'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
72
+ 'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
72
73
  };
73
74
  }
74
75
  export function ClusterRequirementsRequestToJSON(json) {
@@ -89,5 +90,6 @@ export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator
89
90
  'controlPlaneCPU': value['controlPlaneCPU'],
90
91
  'controlPlaneMemory': value['controlPlaneMemory'],
91
92
  'controlPlaneNodeCount': value['controlPlaneNodeCount'],
93
+ 'hostedControlPlane': value['hostedControlPlane'],
92
94
  };
93
95
  }
@@ -23,7 +23,7 @@ export interface ComplexityOSNameEntry {
23
23
  */
24
24
  osName: string;
25
25
  /**
26
- * Complexity score assigned by ClassifyOS. 0 = unclassified, 1 = least complex, 4 = most complex.
26
+ * Complexity score assigned by ClassifyOS. 0 = unknown, 1 = least complex, 4 = most complex.
27
27
  *
28
28
  * @type {number}
29
29
  * @memberof ComplexityOSNameEntry
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface ComplexityOSScoreEntry {
18
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.
19
+ * Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS with unknown complexity.
20
20
  *
21
21
  * @type {number}
22
22
  * @memberof ComplexityOSScoreEntry
@@ -0,0 +1,40 @@
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
+ *
14
+ * @export
15
+ * @interface EstimationContext
16
+ */
17
+ export interface EstimationContext {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof EstimationContext
22
+ */
23
+ schemas?: Array<string>;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: number; }}
27
+ * @memberof EstimationContext
28
+ */
29
+ params?: {
30
+ [key: string]: number;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the EstimationContext interface.
35
+ */
36
+ export declare function instanceOfEstimationContext(value: object): value is EstimationContext;
37
+ export declare function EstimationContextFromJSON(json: any): EstimationContext;
38
+ export declare function EstimationContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): EstimationContext;
39
+ export declare function EstimationContextToJSON(json: any): EstimationContext;
40
+ export declare function EstimationContextToJSONTyped(value?: EstimationContext | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 EstimationContext interface.
16
+ */
17
+ export function instanceOfEstimationContext(value) {
18
+ return true;
19
+ }
20
+ export function EstimationContextFromJSON(json) {
21
+ return EstimationContextFromJSONTyped(json, false);
22
+ }
23
+ export function EstimationContextFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'schemas': json['schemas'] == null ? undefined : json['schemas'],
29
+ 'params': json['params'] == null ? undefined : json['params'],
30
+ };
31
+ }
32
+ export function EstimationContextToJSON(json) {
33
+ return EstimationContextToJSONTyped(json, false);
34
+ }
35
+ export function EstimationContextToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'schemas': value['schemas'],
41
+ 'params': value['params'],
42
+ };
43
+ }
@@ -16,11 +16,23 @@
16
16
  */
17
17
  export interface EstimationDetail {
18
18
  /**
19
- * Estimated duration for this component (formatted as duration string)
19
+ * Estimated duration for this component (point calculators only)
20
20
  * @type {string}
21
21
  * @memberof EstimationDetail
22
22
  */
23
- duration: string;
23
+ duration?: string;
24
+ /**
25
+ * Minimum estimated duration (ranged calculators only)
26
+ * @type {string}
27
+ * @memberof EstimationDetail
28
+ */
29
+ minDuration?: string;
30
+ /**
31
+ * Maximum estimated duration (ranged calculators only)
32
+ * @type {string}
33
+ * @memberof EstimationDetail
34
+ */
35
+ maxDuration?: string;
24
36
  /**
25
37
  * Explanation of how the estimation was calculated
26
38
  * @type {string}
@@ -15,8 +15,6 @@
15
15
  * Check if a given object implements the EstimationDetail interface.
16
16
  */
17
17
  export function instanceOfEstimationDetail(value) {
18
- if (!('duration' in value) || value['duration'] === undefined)
19
- return false;
20
18
  if (!('reason' in value) || value['reason'] === undefined)
21
19
  return false;
22
20
  return true;
@@ -29,7 +27,9 @@ export function EstimationDetailFromJSONTyped(json, ignoreDiscriminator) {
29
27
  return json;
30
28
  }
31
29
  return {
32
- 'duration': json['duration'],
30
+ 'duration': json['duration'] == null ? undefined : json['duration'],
31
+ 'minDuration': json['minDuration'] == null ? undefined : json['minDuration'],
32
+ 'maxDuration': json['maxDuration'] == null ? undefined : json['maxDuration'],
33
33
  'reason': json['reason'],
34
34
  };
35
35
  }
@@ -42,6 +42,8 @@ export function EstimationDetailToJSONTyped(value, ignoreDiscriminator = false)
42
42
  }
43
43
  return {
44
44
  'duration': value['duration'],
45
+ 'minDuration': value['minDuration'],
46
+ 'maxDuration': value['maxDuration'],
45
47
  'reason': value['reason'],
46
48
  };
47
49
  }
@@ -26,7 +26,7 @@ export interface MigrationComplexityResponse {
26
26
  */
27
27
  complexityByDisk: Array<ComplexityDiskScoreEntry>;
28
28
  /**
29
- * OS complexity scores, one entry per score level (0-4). Score 1 indicates the least complex OS to migrate; score 0 indicates an OS that could not be classified. All five score levels are always present.
29
+ * OS complexity scores, one entry per score level (0-4). Score 1 indicates the least complex OS to migrate; score 0 indicates an OS with unknown complexity. All five score levels are always present.
30
30
  *
31
31
  * @type {Array<ComplexityOSScoreEntry>}
32
32
  * @memberof MigrationComplexityResponse
@@ -42,7 +42,7 @@ export interface MigrationComplexityResponse {
42
42
  [key: string]: number;
43
43
  };
44
44
  /**
45
- * Per-OS-name score for every OS found in this cluster's inventory. Keys are the OS name strings exactly as they appear in vms.osInfo; values are the numeric complexity score assigned by ClassifyOS (0 = unclassified, 1-4 = increasing complexity). The map contains one entry per distinct OS name in the cluster, regardless of how many VMs run it.
45
+ * Per-OS-name score for every OS found in this cluster's inventory. Keys are the OS name strings exactly as they appear in vms.osInfo; values are the numeric complexity score assigned by ClassifyOS (0 = unknown, 1-4 = increasing complexity). The map contains one entry per distinct OS name in the cluster, regardless of how many VMs run it.
46
46
  *
47
47
  * @type {{ [key: string]: number; }}
48
48
  * @memberof MigrationComplexityResponse