@openshift-migration-advisor/planner-sdk 0.10.0-fa4e0ff47672 → 0.11.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 +2 -0
- package/README.md +3 -2
- package/dist/apis/AccountApi.js +9 -9
- package/dist/apis/AssessmentApi.d.ts +5 -13
- package/dist/apis/AssessmentApi.js +8 -8
- package/dist/apis/ImageApi.js +2 -2
- package/dist/apis/JobApi.js +2 -2
- package/dist/apis/SourceApi.js +4 -4
- package/dist/esm/apis/AccountApi.js +9 -9
- package/dist/esm/apis/AssessmentApi.d.ts +5 -13
- package/dist/esm/apis/AssessmentApi.js +9 -9
- package/dist/esm/apis/ImageApi.js +2 -2
- package/dist/esm/apis/JobApi.js +2 -2
- package/dist/esm/apis/SourceApi.js +4 -4
- package/dist/esm/models/MigrationEstimationRequest.d.ts +1 -1
- package/dist/esm/models/MigrationEstimationResponse.d.ts +43 -0
- package/dist/esm/models/MigrationEstimationResponse.js +50 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/MigrationEstimationRequest.d.ts +1 -1
- package/dist/models/MigrationEstimationResponse.d.ts +43 -0
- package/dist/models/MigrationEstimationResponse.js +57 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/AssessmentApi.md +2 -2
- package/docs/MigrationEstimationResponse.md +37 -0
- package/package.json +1 -1
- package/src/apis/AccountApi.ts +9 -9
- package/src/apis/AssessmentApi.ts +15 -15
- package/src/apis/ImageApi.ts +2 -2
- package/src/apis/JobApi.ts +2 -2
- package/src/apis/SourceApi.ts +4 -4
- package/src/models/MigrationEstimationRequest.ts +1 -1
- package/src/models/MigrationEstimationResponse.ts +91 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -46,6 +46,7 @@ docs/MigrationComplexityRequest.md
|
|
|
46
46
|
docs/MigrationComplexityResponse.md
|
|
47
47
|
docs/MigrationEstimationByComplexityResponse.md
|
|
48
48
|
docs/MigrationEstimationRequest.md
|
|
49
|
+
docs/MigrationEstimationResponse.md
|
|
49
50
|
docs/MigrationIssue.md
|
|
50
51
|
docs/ModelError.md
|
|
51
52
|
docs/Network.md
|
|
@@ -116,6 +117,7 @@ src/models/MigrationComplexityRequest.ts
|
|
|
116
117
|
src/models/MigrationComplexityResponse.ts
|
|
117
118
|
src/models/MigrationEstimationByComplexityResponse.ts
|
|
118
119
|
src/models/MigrationEstimationRequest.ts
|
|
120
|
+
src/models/MigrationEstimationResponse.ts
|
|
119
121
|
src/models/MigrationIssue.ts
|
|
120
122
|
src/models/ModelError.ts
|
|
121
123
|
src/models/Network.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.11.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -125,6 +125,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
125
125
|
- [MigrationComplexityResponse](docs/MigrationComplexityResponse.md)
|
|
126
126
|
- [MigrationEstimationByComplexityResponse](docs/MigrationEstimationByComplexityResponse.md)
|
|
127
127
|
- [MigrationEstimationRequest](docs/MigrationEstimationRequest.md)
|
|
128
|
+
- [MigrationEstimationResponse](docs/MigrationEstimationResponse.md)
|
|
128
129
|
- [MigrationIssue](docs/MigrationIssue.md)
|
|
129
130
|
- [ModelError](docs/ModelError.md)
|
|
130
131
|
- [Network](docs/Network.md)
|
|
@@ -159,7 +160,7 @@ and is automatically generated by the
|
|
|
159
160
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
160
161
|
|
|
161
162
|
- API version: `undefined`
|
|
162
|
-
- Package version: `0.
|
|
163
|
+
- Package version: `0.11.0`
|
|
163
164
|
- Generator version: `7.22.0-SNAPSHOT`
|
|
164
165
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
165
166
|
|
package/dist/apis/AccountApi.js
CHANGED
|
@@ -84,7 +84,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
84
84
|
const headerParameters = {};
|
|
85
85
|
headerParameters['Content-Type'] = 'application/json';
|
|
86
86
|
let urlPath = `/api/v1/groups/{id}/members`;
|
|
87
|
-
urlPath = urlPath.replace(
|
|
87
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
88
88
|
return {
|
|
89
89
|
path: urlPath,
|
|
90
90
|
method: 'POST',
|
|
@@ -124,7 +124,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
124
124
|
const queryParameters = {};
|
|
125
125
|
const headerParameters = {};
|
|
126
126
|
let urlPath = `/api/v1/groups/{id}`;
|
|
127
|
-
urlPath = urlPath.replace(
|
|
127
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
128
128
|
return {
|
|
129
129
|
path: urlPath,
|
|
130
130
|
method: 'DELETE',
|
|
@@ -163,7 +163,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
163
163
|
const queryParameters = {};
|
|
164
164
|
const headerParameters = {};
|
|
165
165
|
let urlPath = `/api/v1/groups/{id}`;
|
|
166
|
-
urlPath = urlPath.replace(
|
|
166
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
167
167
|
return {
|
|
168
168
|
path: urlPath,
|
|
169
169
|
method: 'GET',
|
|
@@ -237,7 +237,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
237
237
|
const queryParameters = {};
|
|
238
238
|
const headerParameters = {};
|
|
239
239
|
let urlPath = `/api/v1/groups/{id}/members`;
|
|
240
|
-
urlPath = urlPath.replace(
|
|
240
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
241
241
|
return {
|
|
242
242
|
path: urlPath,
|
|
243
243
|
method: 'GET',
|
|
@@ -323,8 +323,8 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
323
323
|
const queryParameters = {};
|
|
324
324
|
const headerParameters = {};
|
|
325
325
|
let urlPath = `/api/v1/groups/{id}/members/{username}`;
|
|
326
|
-
urlPath = urlPath.replace(
|
|
327
|
-
urlPath = urlPath.replace(
|
|
326
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
327
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
328
328
|
return {
|
|
329
329
|
path: urlPath,
|
|
330
330
|
method: 'DELETE',
|
|
@@ -366,7 +366,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
366
366
|
const headerParameters = {};
|
|
367
367
|
headerParameters['Content-Type'] = 'application/json';
|
|
368
368
|
let urlPath = `/api/v1/groups/{id}`;
|
|
369
|
-
urlPath = urlPath.replace(
|
|
369
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
370
370
|
return {
|
|
371
371
|
path: urlPath,
|
|
372
372
|
method: 'PUT',
|
|
@@ -413,8 +413,8 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
413
413
|
const headerParameters = {};
|
|
414
414
|
headerParameters['Content-Type'] = 'application/json';
|
|
415
415
|
let urlPath = `/api/v1/groups/{id}/members/{username}`;
|
|
416
|
-
urlPath = urlPath.replace(
|
|
417
|
-
urlPath = urlPath.replace(
|
|
416
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
417
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
418
418
|
return {
|
|
419
419
|
path: urlPath,
|
|
420
420
|
method: 'PUT',
|
|
@@ -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, MigrationEstimationByComplexityResponse, MigrationEstimationRequest,
|
|
13
|
+
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
|
|
14
14
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
clusterRequirementsRequest: ClusterRequirementsRequest;
|
|
@@ -108,15 +108,11 @@ export interface AssessmentApiInterface {
|
|
|
108
108
|
* @throws {RequiredError}
|
|
109
109
|
* @memberof AssessmentApiInterface
|
|
110
110
|
*/
|
|
111
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
112
|
-
[key: string]: SchemaEstimationResult;
|
|
113
|
-
}>>;
|
|
111
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
114
112
|
/**
|
|
115
113
|
* Calculate migration time estimation for an assessment
|
|
116
114
|
*/
|
|
117
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
118
|
-
[key: string]: SchemaEstimationResult;
|
|
119
|
-
}>;
|
|
115
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
120
116
|
/**
|
|
121
117
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
122
118
|
* @param {string} id ID of the assessment
|
|
@@ -271,15 +267,11 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
271
267
|
/**
|
|
272
268
|
* Calculate migration time estimation for an assessment
|
|
273
269
|
*/
|
|
274
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
275
|
-
[key: string]: SchemaEstimationResult;
|
|
276
|
-
}>>;
|
|
270
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
277
271
|
/**
|
|
278
272
|
* Calculate migration time estimation for an assessment
|
|
279
273
|
*/
|
|
280
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
281
|
-
[key: string]: SchemaEstimationResult;
|
|
282
|
-
}>;
|
|
274
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
283
275
|
/**
|
|
284
276
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
285
277
|
*/
|
|
@@ -44,7 +44,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
44
44
|
const headerParameters = {};
|
|
45
45
|
headerParameters['Content-Type'] = 'application/json';
|
|
46
46
|
let urlPath = `/api/v1/assessments/{id}/cluster-requirements`;
|
|
47
|
-
urlPath = urlPath.replace(
|
|
47
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
48
48
|
return {
|
|
49
49
|
path: urlPath,
|
|
50
50
|
method: 'POST',
|
|
@@ -88,7 +88,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
88
88
|
const headerParameters = {};
|
|
89
89
|
headerParameters['Content-Type'] = 'application/json';
|
|
90
90
|
let urlPath = `/api/v1/assessments/{id}/complexity-estimation`;
|
|
91
|
-
urlPath = urlPath.replace(
|
|
91
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
92
92
|
return {
|
|
93
93
|
path: urlPath,
|
|
94
94
|
method: 'POST',
|
|
@@ -132,7 +132,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
132
132
|
const headerParameters = {};
|
|
133
133
|
headerParameters['Content-Type'] = 'application/json';
|
|
134
134
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation`;
|
|
135
|
-
urlPath = urlPath.replace(
|
|
135
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
136
136
|
return {
|
|
137
137
|
path: urlPath,
|
|
138
138
|
method: 'POST',
|
|
@@ -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) =>
|
|
152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MigrationEstimationResponseFromJSON)(jsonValue));
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
@@ -176,7 +176,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
176
176
|
const headerParameters = {};
|
|
177
177
|
headerParameters['Content-Type'] = 'application/json';
|
|
178
178
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
|
|
179
|
-
urlPath = urlPath.replace(
|
|
179
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
180
180
|
return {
|
|
181
181
|
path: urlPath,
|
|
182
182
|
method: 'POST',
|
|
@@ -256,7 +256,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
256
256
|
const queryParameters = {};
|
|
257
257
|
const headerParameters = {};
|
|
258
258
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
259
|
-
urlPath = urlPath.replace(
|
|
259
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
260
260
|
return {
|
|
261
261
|
path: urlPath,
|
|
262
262
|
method: 'DELETE',
|
|
@@ -295,7 +295,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
295
295
|
const queryParameters = {};
|
|
296
296
|
const headerParameters = {};
|
|
297
297
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
298
|
-
urlPath = urlPath.replace(
|
|
298
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
299
299
|
return {
|
|
300
300
|
path: urlPath,
|
|
301
301
|
method: 'GET',
|
|
@@ -376,7 +376,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
376
376
|
const headerParameters = {};
|
|
377
377
|
headerParameters['Content-Type'] = 'application/json';
|
|
378
378
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
379
|
-
urlPath = urlPath.replace(
|
|
379
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
380
380
|
return {
|
|
381
381
|
path: urlPath,
|
|
382
382
|
method: 'PUT',
|
package/dist/apis/ImageApi.js
CHANGED
|
@@ -40,7 +40,7 @@ class ImageApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
let urlPath = `/api/v1/sources/{id}/image-url`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
43
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
44
44
|
return {
|
|
45
45
|
path: urlPath,
|
|
46
46
|
method: 'GET',
|
|
@@ -79,7 +79,7 @@ class ImageApi extends runtime.BaseAPI {
|
|
|
79
79
|
const queryParameters = {};
|
|
80
80
|
const headerParameters = {};
|
|
81
81
|
let urlPath = `/api/v1/sources/{id}/image`;
|
|
82
|
-
urlPath = urlPath.replace(
|
|
82
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
83
83
|
return {
|
|
84
84
|
path: urlPath,
|
|
85
85
|
method: 'HEAD',
|
package/dist/apis/JobApi.js
CHANGED
|
@@ -40,7 +40,7 @@ class JobApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
43
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
44
44
|
return {
|
|
45
45
|
path: urlPath,
|
|
46
46
|
method: 'DELETE',
|
|
@@ -142,7 +142,7 @@ class JobApi extends runtime.BaseAPI {
|
|
|
142
142
|
const queryParameters = {};
|
|
143
143
|
const headerParameters = {};
|
|
144
144
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
145
|
-
urlPath = urlPath.replace(
|
|
145
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
146
146
|
return {
|
|
147
147
|
path: urlPath,
|
|
148
148
|
method: 'GET',
|
package/dist/apis/SourceApi.js
CHANGED
|
@@ -80,7 +80,7 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
80
80
|
const queryParameters = {};
|
|
81
81
|
const headerParameters = {};
|
|
82
82
|
let urlPath = `/api/v1/sources/{id}`;
|
|
83
|
-
urlPath = urlPath.replace(
|
|
83
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
84
84
|
return {
|
|
85
85
|
path: urlPath,
|
|
86
86
|
method: 'DELETE',
|
|
@@ -154,7 +154,7 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
154
154
|
const queryParameters = {};
|
|
155
155
|
const headerParameters = {};
|
|
156
156
|
let urlPath = `/api/v1/sources/{id}`;
|
|
157
|
-
urlPath = urlPath.replace(
|
|
157
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
158
158
|
return {
|
|
159
159
|
path: urlPath,
|
|
160
160
|
method: 'GET',
|
|
@@ -232,7 +232,7 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
232
232
|
const headerParameters = {};
|
|
233
233
|
headerParameters['Content-Type'] = 'application/json';
|
|
234
234
|
let urlPath = `/api/v1/sources/{id}/inventory`;
|
|
235
|
-
urlPath = urlPath.replace(
|
|
235
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
236
236
|
return {
|
|
237
237
|
path: urlPath,
|
|
238
238
|
method: 'PUT',
|
|
@@ -276,7 +276,7 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
276
276
|
const headerParameters = {};
|
|
277
277
|
headerParameters['Content-Type'] = 'application/json';
|
|
278
278
|
let urlPath = `/api/v1/sources/{id}`;
|
|
279
|
-
urlPath = urlPath.replace(
|
|
279
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
280
280
|
return {
|
|
281
281
|
path: urlPath,
|
|
282
282
|
method: 'PUT',
|
|
@@ -81,7 +81,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
81
81
|
const headerParameters = {};
|
|
82
82
|
headerParameters['Content-Type'] = 'application/json';
|
|
83
83
|
let urlPath = `/api/v1/groups/{id}/members`;
|
|
84
|
-
urlPath = urlPath.replace(
|
|
84
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
85
85
|
return {
|
|
86
86
|
path: urlPath,
|
|
87
87
|
method: 'POST',
|
|
@@ -121,7 +121,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
121
121
|
const queryParameters = {};
|
|
122
122
|
const headerParameters = {};
|
|
123
123
|
let urlPath = `/api/v1/groups/{id}`;
|
|
124
|
-
urlPath = urlPath.replace(
|
|
124
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
125
125
|
return {
|
|
126
126
|
path: urlPath,
|
|
127
127
|
method: 'DELETE',
|
|
@@ -160,7 +160,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
160
160
|
const queryParameters = {};
|
|
161
161
|
const headerParameters = {};
|
|
162
162
|
let urlPath = `/api/v1/groups/{id}`;
|
|
163
|
-
urlPath = urlPath.replace(
|
|
163
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
164
164
|
return {
|
|
165
165
|
path: urlPath,
|
|
166
166
|
method: 'GET',
|
|
@@ -234,7 +234,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
234
234
|
const queryParameters = {};
|
|
235
235
|
const headerParameters = {};
|
|
236
236
|
let urlPath = `/api/v1/groups/{id}/members`;
|
|
237
|
-
urlPath = urlPath.replace(
|
|
237
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
238
238
|
return {
|
|
239
239
|
path: urlPath,
|
|
240
240
|
method: 'GET',
|
|
@@ -320,8 +320,8 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
320
320
|
const queryParameters = {};
|
|
321
321
|
const headerParameters = {};
|
|
322
322
|
let urlPath = `/api/v1/groups/{id}/members/{username}`;
|
|
323
|
-
urlPath = urlPath.replace(
|
|
324
|
-
urlPath = urlPath.replace(
|
|
323
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
324
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
325
325
|
return {
|
|
326
326
|
path: urlPath,
|
|
327
327
|
method: 'DELETE',
|
|
@@ -363,7 +363,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
363
363
|
const headerParameters = {};
|
|
364
364
|
headerParameters['Content-Type'] = 'application/json';
|
|
365
365
|
let urlPath = `/api/v1/groups/{id}`;
|
|
366
|
-
urlPath = urlPath.replace(
|
|
366
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
367
367
|
return {
|
|
368
368
|
path: urlPath,
|
|
369
369
|
method: 'PUT',
|
|
@@ -410,8 +410,8 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
410
410
|
const headerParameters = {};
|
|
411
411
|
headerParameters['Content-Type'] = 'application/json';
|
|
412
412
|
let urlPath = `/api/v1/groups/{id}/members/{username}`;
|
|
413
|
-
urlPath = urlPath.replace(
|
|
414
|
-
urlPath = urlPath.replace(
|
|
413
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
414
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
415
415
|
return {
|
|
416
416
|
path: urlPath,
|
|
417
417
|
method: 'PUT',
|
|
@@ -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, MigrationEstimationByComplexityResponse, MigrationEstimationRequest,
|
|
13
|
+
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
|
|
14
14
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
clusterRequirementsRequest: ClusterRequirementsRequest;
|
|
@@ -108,15 +108,11 @@ export interface AssessmentApiInterface {
|
|
|
108
108
|
* @throws {RequiredError}
|
|
109
109
|
* @memberof AssessmentApiInterface
|
|
110
110
|
*/
|
|
111
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
112
|
-
[key: string]: SchemaEstimationResult;
|
|
113
|
-
}>>;
|
|
111
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
114
112
|
/**
|
|
115
113
|
* Calculate migration time estimation for an assessment
|
|
116
114
|
*/
|
|
117
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
118
|
-
[key: string]: SchemaEstimationResult;
|
|
119
|
-
}>;
|
|
115
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
120
116
|
/**
|
|
121
117
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
122
118
|
* @param {string} id ID of the assessment
|
|
@@ -271,15 +267,11 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
271
267
|
/**
|
|
272
268
|
* Calculate migration time estimation for an assessment
|
|
273
269
|
*/
|
|
274
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
275
|
-
[key: string]: SchemaEstimationResult;
|
|
276
|
-
}>>;
|
|
270
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
277
271
|
/**
|
|
278
272
|
* Calculate migration time estimation for an assessment
|
|
279
273
|
*/
|
|
280
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
281
|
-
[key: string]: SchemaEstimationResult;
|
|
282
|
-
}>;
|
|
274
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
283
275
|
/**
|
|
284
276
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
285
277
|
*/
|
|
@@ -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, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON,
|
|
24
|
+
import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -41,7 +41,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
43
|
let urlPath = `/api/v1/assessments/{id}/cluster-requirements`;
|
|
44
|
-
urlPath = urlPath.replace(
|
|
44
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
45
45
|
return {
|
|
46
46
|
path: urlPath,
|
|
47
47
|
method: 'POST',
|
|
@@ -85,7 +85,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
85
85
|
const headerParameters = {};
|
|
86
86
|
headerParameters['Content-Type'] = 'application/json';
|
|
87
87
|
let urlPath = `/api/v1/assessments/{id}/complexity-estimation`;
|
|
88
|
-
urlPath = urlPath.replace(
|
|
88
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
89
89
|
return {
|
|
90
90
|
path: urlPath,
|
|
91
91
|
method: 'POST',
|
|
@@ -129,7 +129,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
129
129
|
const headerParameters = {};
|
|
130
130
|
headerParameters['Content-Type'] = 'application/json';
|
|
131
131
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation`;
|
|
132
|
-
urlPath = urlPath.replace(
|
|
132
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
133
133
|
return {
|
|
134
134
|
path: urlPath,
|
|
135
135
|
method: 'POST',
|
|
@@ -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) =>
|
|
149
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationResponseFromJSON(jsonValue));
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
@@ -173,7 +173,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
173
173
|
const headerParameters = {};
|
|
174
174
|
headerParameters['Content-Type'] = 'application/json';
|
|
175
175
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
|
|
176
|
-
urlPath = urlPath.replace(
|
|
176
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
177
177
|
return {
|
|
178
178
|
path: urlPath,
|
|
179
179
|
method: 'POST',
|
|
@@ -253,7 +253,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
253
253
|
const queryParameters = {};
|
|
254
254
|
const headerParameters = {};
|
|
255
255
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
256
|
-
urlPath = urlPath.replace(
|
|
256
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
257
257
|
return {
|
|
258
258
|
path: urlPath,
|
|
259
259
|
method: 'DELETE',
|
|
@@ -292,7 +292,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
292
292
|
const queryParameters = {};
|
|
293
293
|
const headerParameters = {};
|
|
294
294
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
295
|
-
urlPath = urlPath.replace(
|
|
295
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
296
296
|
return {
|
|
297
297
|
path: urlPath,
|
|
298
298
|
method: 'GET',
|
|
@@ -373,7 +373,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
373
373
|
const headerParameters = {};
|
|
374
374
|
headerParameters['Content-Type'] = 'application/json';
|
|
375
375
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
376
|
-
urlPath = urlPath.replace(
|
|
376
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
377
377
|
return {
|
|
378
378
|
path: urlPath,
|
|
379
379
|
method: 'PUT',
|
|
@@ -37,7 +37,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
let urlPath = `/api/v1/sources/{id}/image-url`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
41
|
return {
|
|
42
42
|
path: urlPath,
|
|
43
43
|
method: 'GET',
|
|
@@ -76,7 +76,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
76
76
|
const queryParameters = {};
|
|
77
77
|
const headerParameters = {};
|
|
78
78
|
let urlPath = `/api/v1/sources/{id}/image`;
|
|
79
|
-
urlPath = urlPath.replace(
|
|
79
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
80
80
|
return {
|
|
81
81
|
path: urlPath,
|
|
82
82
|
method: 'HEAD',
|
package/dist/esm/apis/JobApi.js
CHANGED
|
@@ -37,7 +37,7 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
41
|
return {
|
|
42
42
|
path: urlPath,
|
|
43
43
|
method: 'DELETE',
|
|
@@ -139,7 +139,7 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
139
139
|
const queryParameters = {};
|
|
140
140
|
const headerParameters = {};
|
|
141
141
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
142
|
-
urlPath = urlPath.replace(
|
|
142
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
143
143
|
return {
|
|
144
144
|
path: urlPath,
|
|
145
145
|
method: 'GET',
|
|
@@ -77,7 +77,7 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
77
77
|
const queryParameters = {};
|
|
78
78
|
const headerParameters = {};
|
|
79
79
|
let urlPath = `/api/v1/sources/{id}`;
|
|
80
|
-
urlPath = urlPath.replace(
|
|
80
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
81
81
|
return {
|
|
82
82
|
path: urlPath,
|
|
83
83
|
method: 'DELETE',
|
|
@@ -151,7 +151,7 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
151
151
|
const queryParameters = {};
|
|
152
152
|
const headerParameters = {};
|
|
153
153
|
let urlPath = `/api/v1/sources/{id}`;
|
|
154
|
-
urlPath = urlPath.replace(
|
|
154
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
155
155
|
return {
|
|
156
156
|
path: urlPath,
|
|
157
157
|
method: 'GET',
|
|
@@ -229,7 +229,7 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
229
229
|
const headerParameters = {};
|
|
230
230
|
headerParameters['Content-Type'] = 'application/json';
|
|
231
231
|
let urlPath = `/api/v1/sources/{id}/inventory`;
|
|
232
|
-
urlPath = urlPath.replace(
|
|
232
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
233
233
|
return {
|
|
234
234
|
path: urlPath,
|
|
235
235
|
method: 'PUT',
|
|
@@ -273,7 +273,7 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
273
273
|
const headerParameters = {};
|
|
274
274
|
headerParameters['Content-Type'] = 'application/json';
|
|
275
275
|
let urlPath = `/api/v1/sources/{id}`;
|
|
276
|
-
urlPath = urlPath.replace(
|
|
276
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
277
277
|
return {
|
|
278
278
|
path: urlPath,
|
|
279
279
|
method: 'PUT',
|
|
@@ -29,7 +29,7 @@ export interface MigrationEstimationRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
estimationSchema?: Array<string>;
|
|
31
31
|
/**
|
|
32
|
-
* Optional calculator parameter overrides. Keys must match known calculator param names (e.g. "transfer_rate_mbps", "work_hours_per_day", "troubleshoot_mins_per_vm", "post_migration_engineers"). User-supplied values take precedence over both defaults and inventory-derived values. Unknown keys are
|
|
32
|
+
* Optional calculator parameter overrides. Keys must match known calculator param names (e.g. "transfer_rate_mbps", "work_hours_per_day", "troubleshoot_mins_per_vm", "post_migration_engineers"). User-supplied values take precedence over both defaults and inventory-derived values. Unknown keys are rejected with HTTP 400.
|
|
33
33
|
*
|
|
34
34
|
* @type {{ [key: string]: any; }}
|
|
35
35
|
* @memberof MigrationEstimationRequest
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
import type { EstimationContext } from './EstimationContext.js';
|
|
14
|
+
/**
|
|
15
|
+
* Migration estimation result, including per-schema results and the parameters used.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface MigrationEstimationResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface MigrationEstimationResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Estimation results keyed by schema name (e.g. "network-based", "storage-offload").
|
|
23
|
+
* @type {{ [key: string]: SchemaEstimationResult; }}
|
|
24
|
+
* @memberof MigrationEstimationResponse
|
|
25
|
+
*/
|
|
26
|
+
estimation: {
|
|
27
|
+
[key: string]: SchemaEstimationResult;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {EstimationContext}
|
|
32
|
+
* @memberof MigrationEstimationResponse
|
|
33
|
+
*/
|
|
34
|
+
estimationContext: EstimationContext;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the MigrationEstimationResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export declare function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse;
|
|
40
|
+
export declare function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse;
|
|
41
|
+
export declare function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse;
|
|
42
|
+
export declare function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse;
|
|
43
|
+
export declare function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator?: boolean): any;
|