@openshift-migration-advisor/planner-sdk 0.8.0-c0804255c486 → 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 (41) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +6 -2
  3. package/dist/apis/AssessmentApi.d.ts +38 -1
  4. package/dist/apis/AssessmentApi.js +44 -0
  5. package/dist/esm/apis/AssessmentApi.d.ts +38 -1
  6. package/dist/esm/apis/AssessmentApi.js +45 -1
  7. package/dist/esm/models/ComplexityOSNameEntry.d.ts +1 -1
  8. package/dist/esm/models/ComplexityOSScoreEntry.d.ts +1 -1
  9. package/dist/esm/models/EstimationContext.d.ts +40 -0
  10. package/dist/esm/models/EstimationContext.js +43 -0
  11. package/dist/esm/models/MigrationComplexityResponse.d.ts +2 -2
  12. package/dist/esm/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  13. package/dist/esm/models/MigrationEstimationByComplexityResponse.js +51 -0
  14. package/dist/esm/models/OsDiskEstimationEntry.d.ts +53 -0
  15. package/dist/esm/models/OsDiskEstimationEntry.js +55 -0
  16. package/dist/esm/models/index.d.ts +3 -0
  17. package/dist/esm/models/index.js +3 -0
  18. package/dist/models/ComplexityOSNameEntry.d.ts +1 -1
  19. package/dist/models/ComplexityOSScoreEntry.d.ts +1 -1
  20. package/dist/models/EstimationContext.d.ts +40 -0
  21. package/dist/models/EstimationContext.js +50 -0
  22. package/dist/models/MigrationComplexityResponse.d.ts +2 -2
  23. package/dist/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  24. package/dist/models/MigrationEstimationByComplexityResponse.js +58 -0
  25. package/dist/models/OsDiskEstimationEntry.d.ts +53 -0
  26. package/dist/models/OsDiskEstimationEntry.js +62 -0
  27. package/dist/models/index.d.ts +3 -0
  28. package/dist/models/index.js +3 -0
  29. package/docs/AssessmentApi.md +76 -0
  30. package/docs/EstimationContext.md +36 -0
  31. package/docs/MigrationEstimationByComplexityResponse.md +38 -0
  32. package/docs/OsDiskEstimationEntry.md +40 -0
  33. package/package.json +1 -1
  34. package/src/apis/AssessmentApi.ts +87 -0
  35. package/src/models/ComplexityOSNameEntry.ts +1 -1
  36. package/src/models/ComplexityOSScoreEntry.ts +1 -1
  37. package/src/models/EstimationContext.ts +73 -0
  38. package/src/models/MigrationComplexityResponse.ts +2 -2
  39. package/src/models/MigrationEstimationByComplexityResponse.ts +98 -0
  40. package/src/models/OsDiskEstimationEntry.ts +100 -0
  41. package/src/models/index.ts +3 -0
@@ -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,10 +36,12 @@ 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
41
  docs/MigrationIssue.md
40
42
  docs/ModelError.md
41
43
  docs/Network.md
44
+ docs/OsDiskEstimationEntry.md
42
45
  docs/OsInfo.md
43
46
  docs/PresignedUrl.md
44
47
  docs/SchemaEstimationResult.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,10 +98,12 @@ 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
103
  src/models/MigrationIssue.ts
99
104
  src/models/ModelError.ts
100
105
  src/models/Network.ts
106
+ src/models/OsDiskEstimationEntry.ts
101
107
  src/models/OsInfo.ts
102
108
  src/models/PresignedUrl.ts
103
109
  src/models/SchemaEstimationResult.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.8.0-c0804255c486
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,10 +108,12 @@ 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
113
  - [MigrationIssue](docs/MigrationIssue.md)
111
114
  - [ModelError](docs/ModelError.md)
112
115
  - [Network](docs/Network.md)
116
+ - [OsDiskEstimationEntry](docs/OsDiskEstimationEntry.md)
113
117
  - [OsInfo](docs/OsInfo.md)
114
118
  - [PresignedUrl](docs/PresignedUrl.md)
115
119
  - [SchemaEstimationResult](docs/SchemaEstimationResult.md)
@@ -140,7 +144,7 @@ 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-c0804255c486`
147
+ - Package version: `0.9.0-a26ff9932eeb`
144
148
  - Generator version: `7.22.0-SNAPSHOT`
145
149
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
146
150
 
@@ -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, SchemaEstimationResult } 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
  }
@@ -113,6 +117,27 @@ export interface AssessmentApiInterface {
113
117
  calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
114
118
  [key: string]: SchemaEstimationResult;
115
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>;
116
141
  /**
117
142
  * Creates request options for createAssessment without sending the request
118
143
  * @param {AssessmentForm} assessmentForm
@@ -255,6 +280,18 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
255
280
  calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
256
281
  [key: string]: SchemaEstimationResult;
257
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>;
258
295
  /**
259
296
  * Creates request options for createAssessment without sending the request
260
297
  */
@@ -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, SchemaEstimationResult } 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
  }
@@ -113,6 +117,27 @@ export interface AssessmentApiInterface {
113
117
  calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
114
118
  [key: string]: SchemaEstimationResult;
115
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>;
116
141
  /**
117
142
  * Creates request options for createAssessment without sending the request
118
143
  * @param {AssessmentForm} assessmentForm
@@ -255,6 +280,18 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
255
280
  calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
256
281
  [key: string]: SchemaEstimationResult;
257
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>;
258
295
  /**
259
296
  * Creates request options for createAssessment without sending the request
260
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, SchemaEstimationResultFromJSON, } 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
  */
@@ -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
  */
@@ -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
+ }
@@ -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
@@ -0,0 +1,50 @@
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
+ import type { OsDiskEstimationEntry } from './OsDiskEstimationEntry.js';
13
+ import type { EstimationContext } from './EstimationContext.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MigrationEstimationByComplexityResponse
18
+ */
19
+ export interface MigrationEstimationByComplexityResponse {
20
+ /**
21
+ * Combined OS+Disk complexity distribution with per-bucket estimation. All 5 score levels (0-4) always present.
22
+ * @type {Array<OsDiskEstimationEntry>}
23
+ * @memberof MigrationEstimationByComplexityResponse
24
+ */
25
+ complexityByOsDisk: Array<OsDiskEstimationEntry>;
26
+ /**
27
+ * Decision matrix: outer keys are OS scores (0-4), inner keys are disk scores (1-4), values are combined scores.
28
+ * @type {{ [key: string]: { [key: string]: number; }; }}
29
+ * @memberof MigrationEstimationByComplexityResponse
30
+ */
31
+ complexityMatrix: {
32
+ [key: string]: {
33
+ [key: string]: number;
34
+ };
35
+ };
36
+ /**
37
+ *
38
+ * @type {EstimationContext}
39
+ * @memberof MigrationEstimationByComplexityResponse
40
+ */
41
+ estimationContext?: EstimationContext;
42
+ }
43
+ /**
44
+ * Check if a given object implements the MigrationEstimationByComplexityResponse interface.
45
+ */
46
+ export declare function instanceOfMigrationEstimationByComplexityResponse(value: object): value is MigrationEstimationByComplexityResponse;
47
+ export declare function MigrationEstimationByComplexityResponseFromJSON(json: any): MigrationEstimationByComplexityResponse;
48
+ export declare function MigrationEstimationByComplexityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationByComplexityResponse;
49
+ export declare function MigrationEstimationByComplexityResponseToJSON(json: any): MigrationEstimationByComplexityResponse;
50
+ export declare function MigrationEstimationByComplexityResponseToJSONTyped(value?: MigrationEstimationByComplexityResponse | 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
+ import { OsDiskEstimationEntryFromJSON, OsDiskEstimationEntryToJSON, } from './OsDiskEstimationEntry.js';
15
+ import { EstimationContextFromJSON, EstimationContextToJSON, } from './EstimationContext.js';
16
+ /**
17
+ * Check if a given object implements the MigrationEstimationByComplexityResponse interface.
18
+ */
19
+ export function instanceOfMigrationEstimationByComplexityResponse(value) {
20
+ if (!('complexityByOsDisk' in value) || value['complexityByOsDisk'] === undefined)
21
+ return false;
22
+ if (!('complexityMatrix' in value) || value['complexityMatrix'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function MigrationEstimationByComplexityResponseFromJSON(json) {
27
+ return MigrationEstimationByComplexityResponseFromJSONTyped(json, false);
28
+ }
29
+ export function MigrationEstimationByComplexityResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'complexityByOsDisk': (json['complexityByOsDisk'].map(OsDiskEstimationEntryFromJSON)),
35
+ 'complexityMatrix': json['complexityMatrix'],
36
+ 'estimationContext': json['estimationContext'] == null ? undefined : EstimationContextFromJSON(json['estimationContext']),
37
+ };
38
+ }
39
+ export function MigrationEstimationByComplexityResponseToJSON(json) {
40
+ return MigrationEstimationByComplexityResponseToJSONTyped(json, false);
41
+ }
42
+ export function MigrationEstimationByComplexityResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'complexityByOsDisk': (value['complexityByOsDisk'].map(OsDiskEstimationEntryToJSON)),
48
+ 'complexityMatrix': value['complexityMatrix'],
49
+ 'estimationContext': EstimationContextToJSON(value['estimationContext']),
50
+ };
51
+ }
@@ -0,0 +1,53 @@
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
+ import type { SchemaEstimationResult } from './SchemaEstimationResult.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface OsDiskEstimationEntry
17
+ */
18
+ export interface OsDiskEstimationEntry {
19
+ /**
20
+ * Combined OS+Disk complexity score (0-4).
21
+ * @type {number}
22
+ * @memberof OsDiskEstimationEntry
23
+ */
24
+ score: number;
25
+ /**
26
+ * Number of VMs at this complexity level.
27
+ * @type {number}
28
+ * @memberof OsDiskEstimationEntry
29
+ */
30
+ vmCount: number;
31
+ /**
32
+ * Total provisioned disk across VMs in this bucket (decimal TB). 0.0 when ComplexityDistribution is absent from the inventory.
33
+ * @type {number}
34
+ * @memberof OsDiskEstimationEntry
35
+ */
36
+ totalDiskSizeTB: number;
37
+ /**
38
+ * Full estimation breakdown keyed by schema name. Absent for empty buckets (vmCount == 0).
39
+ * @type {{ [key: string]: SchemaEstimationResult; }}
40
+ * @memberof OsDiskEstimationEntry
41
+ */
42
+ estimation?: {
43
+ [key: string]: SchemaEstimationResult;
44
+ };
45
+ }
46
+ /**
47
+ * Check if a given object implements the OsDiskEstimationEntry interface.
48
+ */
49
+ export declare function instanceOfOsDiskEstimationEntry(value: object): value is OsDiskEstimationEntry;
50
+ export declare function OsDiskEstimationEntryFromJSON(json: any): OsDiskEstimationEntry;
51
+ export declare function OsDiskEstimationEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsDiskEstimationEntry;
52
+ export declare function OsDiskEstimationEntryToJSON(json: any): OsDiskEstimationEntry;
53
+ export declare function OsDiskEstimationEntryToJSONTyped(value?: OsDiskEstimationEntry | null, ignoreDiscriminator?: boolean): any;