@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0-83e8d01d3484
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 +6 -0
- package/README.md +7 -2
- package/dist/apis/AssessmentApi.d.ts +101 -6
- package/dist/apis/AssessmentApi.js +95 -6
- package/dist/apis/ImageApi.d.ts +14 -0
- package/dist/apis/ImageApi.js +11 -1
- package/dist/esm/apis/AssessmentApi.d.ts +101 -6
- package/dist/esm/apis/AssessmentApi.js +95 -6
- package/dist/esm/apis/ImageApi.d.ts +14 -0
- package/dist/esm/apis/ImageApi.js +10 -0
- package/dist/esm/models/Host.d.ts +26 -0
- package/dist/esm/models/Host.js +14 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/Info.d.ts +4 -0
- package/dist/esm/models/Info.js +2 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/SourceType.d.ts +26 -0
- package/dist/esm/models/SourceType.js +44 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/Host.d.ts +26 -0
- package/dist/models/Host.js +14 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/Info.d.ts +4 -0
- package/dist/models/Info.js +2 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/SourceType.d.ts +26 -0
- package/dist/models/SourceType.js +52 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +4 -3
- package/docs/AssessmentApi.md +163 -3
- package/docs/Host.md +12 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/ImageApi.md +5 -2
- package/docs/Info.md +2 -0
- package/docs/OsInfo.md +2 -0
- package/docs/SourceType.md +32 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +203 -8
- package/src/apis/ImageApi.ts +19 -0
- package/src/models/Host.ts +51 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Info.ts +6 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/SourceType.ts +54 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +3 -3
|
@@ -93,6 +93,11 @@ import {
|
|
|
93
93
|
MigrationEstimationResponseFromJSON,
|
|
94
94
|
MigrationEstimationResponseToJSON,
|
|
95
95
|
} from '../models/MigrationEstimationResponse.js';
|
|
96
|
+
import {
|
|
97
|
+
type SourceType,
|
|
98
|
+
SourceTypeFromJSON,
|
|
99
|
+
SourceTypeToJSON,
|
|
100
|
+
} from '../models/SourceType.js';
|
|
96
101
|
import {
|
|
97
102
|
type Status,
|
|
98
103
|
StatusFromJSON,
|
|
@@ -157,6 +162,17 @@ export interface DeleteAssessmentRequest {
|
|
|
157
162
|
id: string;
|
|
158
163
|
}
|
|
159
164
|
|
|
165
|
+
export interface DeleteVCenterRequest {
|
|
166
|
+
/**
|
|
167
|
+
* ID of the assessment
|
|
168
|
+
*/
|
|
169
|
+
id: string;
|
|
170
|
+
/**
|
|
171
|
+
* ID of the vcenter
|
|
172
|
+
*/
|
|
173
|
+
vid: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
160
176
|
export interface GetAssessmentRequest {
|
|
161
177
|
/**
|
|
162
178
|
* ID of the assessment
|
|
@@ -215,6 +231,13 @@ export interface GetVcenterClusterRequest {
|
|
|
215
231
|
cid: string;
|
|
216
232
|
}
|
|
217
233
|
|
|
234
|
+
export interface ListAssessmentsV2Request {
|
|
235
|
+
/**
|
|
236
|
+
* Filter assessments by their source type
|
|
237
|
+
*/
|
|
238
|
+
sourceType?: SourceType;
|
|
239
|
+
}
|
|
240
|
+
|
|
218
241
|
export interface SaveAssessmentEnhancementDataRequest {
|
|
219
242
|
/**
|
|
220
243
|
* ID of the assessment
|
|
@@ -251,6 +274,17 @@ export interface UpdateAssessmentRequest {
|
|
|
251
274
|
assessmentUpdate: AssessmentUpdate;
|
|
252
275
|
}
|
|
253
276
|
|
|
277
|
+
export interface UpdateAssessmentV2Request {
|
|
278
|
+
/**
|
|
279
|
+
* ID of the assessment
|
|
280
|
+
*/
|
|
281
|
+
id: string;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
*/
|
|
285
|
+
assessmentUpdate: AssessmentUpdate;
|
|
286
|
+
}
|
|
287
|
+
|
|
254
288
|
/**
|
|
255
289
|
* AssessmentApi - interface
|
|
256
290
|
*
|
|
@@ -398,6 +432,30 @@ export interface AssessmentApiInterface {
|
|
|
398
432
|
*/
|
|
399
433
|
deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
400
434
|
|
|
435
|
+
/**
|
|
436
|
+
* Creates request options for deleteVCenter without sending the request
|
|
437
|
+
* @param {string} id ID of the assessment
|
|
438
|
+
* @param {string} vid ID of the vcenter
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
* @memberof AssessmentApiInterface
|
|
441
|
+
*/
|
|
442
|
+
deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Delete the specified vcenter inventory
|
|
446
|
+
* @param {string} id ID of the assessment
|
|
447
|
+
* @param {string} vid ID of the vcenter
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
* @memberof AssessmentApiInterface
|
|
451
|
+
*/
|
|
452
|
+
deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Delete the specified vcenter inventory
|
|
456
|
+
*/
|
|
457
|
+
deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
458
|
+
|
|
401
459
|
/**
|
|
402
460
|
* Creates request options for getAssessment without sending the request
|
|
403
461
|
* @param {string} id ID of the assessment
|
|
@@ -560,23 +618,25 @@ export interface AssessmentApiInterface {
|
|
|
560
618
|
|
|
561
619
|
/**
|
|
562
620
|
* Creates request options for listAssessmentsV2 without sending the request
|
|
621
|
+
* @param {SourceType} [sourceType] Filter assessments by their source type
|
|
563
622
|
* @throws {RequiredError}
|
|
564
623
|
* @memberof AssessmentApiInterface
|
|
565
624
|
*/
|
|
566
|
-
listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
|
|
625
|
+
listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
|
|
567
626
|
|
|
568
627
|
/**
|
|
569
628
|
* List assessments
|
|
629
|
+
* @param {SourceType} [sourceType] Filter assessments by their source type
|
|
570
630
|
* @param {*} [options] Override http request option.
|
|
571
631
|
* @throws {RequiredError}
|
|
572
632
|
* @memberof AssessmentApiInterface
|
|
573
633
|
*/
|
|
574
|
-
listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
|
|
634
|
+
listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
|
|
575
635
|
|
|
576
636
|
/**
|
|
577
637
|
* List assessments
|
|
578
638
|
*/
|
|
579
|
-
listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
|
|
639
|
+
listAssessmentsV2(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
|
|
580
640
|
|
|
581
641
|
/**
|
|
582
642
|
* Creates request options for saveAssessmentEnhancementData without sending the request
|
|
@@ -670,6 +730,30 @@ export interface AssessmentApiInterface {
|
|
|
670
730
|
*/
|
|
671
731
|
updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
672
732
|
|
|
733
|
+
/**
|
|
734
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
735
|
+
* @param {string} id ID of the assessment
|
|
736
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
737
|
+
* @throws {RequiredError}
|
|
738
|
+
* @memberof AssessmentApiInterface
|
|
739
|
+
*/
|
|
740
|
+
updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Update the assessment name
|
|
744
|
+
* @param {string} id ID of the assessment
|
|
745
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
* @memberof AssessmentApiInterface
|
|
749
|
+
*/
|
|
750
|
+
updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Update the assessment name
|
|
754
|
+
*/
|
|
755
|
+
updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
|
|
756
|
+
|
|
673
757
|
}
|
|
674
758
|
|
|
675
759
|
/**
|
|
@@ -989,6 +1073,58 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
989
1073
|
return await response.value();
|
|
990
1074
|
}
|
|
991
1075
|
|
|
1076
|
+
/**
|
|
1077
|
+
* Creates request options for deleteVCenter without sending the request
|
|
1078
|
+
*/
|
|
1079
|
+
async deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts> {
|
|
1080
|
+
if (requestParameters['id'] == null) {
|
|
1081
|
+
throw new runtime.RequiredError(
|
|
1082
|
+
'id',
|
|
1083
|
+
'Required parameter "id" was null or undefined when calling deleteVCenter().'
|
|
1084
|
+
);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
if (requestParameters['vid'] == null) {
|
|
1088
|
+
throw new runtime.RequiredError(
|
|
1089
|
+
'vid',
|
|
1090
|
+
'Required parameter "vid" was null or undefined when calling deleteVCenter().'
|
|
1091
|
+
);
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
const queryParameters: any = {};
|
|
1095
|
+
|
|
1096
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
let urlPath = `/api/v2/assessments/{id}/vcenters/{vid}`;
|
|
1100
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1101
|
+
urlPath = urlPath.replace('{vid}', encodeURIComponent(String(requestParameters['vid'])));
|
|
1102
|
+
|
|
1103
|
+
return {
|
|
1104
|
+
path: urlPath,
|
|
1105
|
+
method: 'DELETE',
|
|
1106
|
+
headers: headerParameters,
|
|
1107
|
+
query: queryParameters,
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Delete the specified vcenter inventory
|
|
1113
|
+
*/
|
|
1114
|
+
async deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1115
|
+
const requestOptions = await this.deleteVCenterRequestOpts(requestParameters);
|
|
1116
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1117
|
+
|
|
1118
|
+
return new runtime.VoidApiResponse(response);
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Delete the specified vcenter inventory
|
|
1123
|
+
*/
|
|
1124
|
+
async deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1125
|
+
await this.deleteVCenterRaw(requestParameters, initOverrides);
|
|
1126
|
+
}
|
|
1127
|
+
|
|
992
1128
|
/**
|
|
993
1129
|
* Creates request options for getAssessment without sending the request
|
|
994
1130
|
*/
|
|
@@ -1334,9 +1470,13 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1334
1470
|
/**
|
|
1335
1471
|
* Creates request options for listAssessmentsV2 without sending the request
|
|
1336
1472
|
*/
|
|
1337
|
-
async listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts> {
|
|
1473
|
+
async listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts> {
|
|
1338
1474
|
const queryParameters: any = {};
|
|
1339
1475
|
|
|
1476
|
+
if (requestParameters['sourceType'] != null) {
|
|
1477
|
+
queryParameters['sourceType'] = requestParameters['sourceType'];
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1340
1480
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1341
1481
|
|
|
1342
1482
|
|
|
@@ -1353,8 +1493,8 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1353
1493
|
/**
|
|
1354
1494
|
* List assessments
|
|
1355
1495
|
*/
|
|
1356
|
-
async listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>> {
|
|
1357
|
-
const requestOptions = await this.listAssessmentsV2RequestOpts();
|
|
1496
|
+
async listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>> {
|
|
1497
|
+
const requestOptions = await this.listAssessmentsV2RequestOpts(requestParameters);
|
|
1358
1498
|
const response = await this.request(requestOptions, initOverrides);
|
|
1359
1499
|
|
|
1360
1500
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssessmentV2SummaryFromJSON));
|
|
@@ -1363,8 +1503,8 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1363
1503
|
/**
|
|
1364
1504
|
* List assessments
|
|
1365
1505
|
*/
|
|
1366
|
-
async listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>> {
|
|
1367
|
-
const response = await this.listAssessmentsV2Raw(initOverrides);
|
|
1506
|
+
async listAssessmentsV2(requestParameters: ListAssessmentsV2Request = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>> {
|
|
1507
|
+
const response = await this.listAssessmentsV2Raw(requestParameters, initOverrides);
|
|
1368
1508
|
return await response.value();
|
|
1369
1509
|
}
|
|
1370
1510
|
|
|
@@ -1568,4 +1708,59 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1568
1708
|
return await response.value();
|
|
1569
1709
|
}
|
|
1570
1710
|
|
|
1711
|
+
/**
|
|
1712
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
1713
|
+
*/
|
|
1714
|
+
async updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts> {
|
|
1715
|
+
if (requestParameters['id'] == null) {
|
|
1716
|
+
throw new runtime.RequiredError(
|
|
1717
|
+
'id',
|
|
1718
|
+
'Required parameter "id" was null or undefined when calling updateAssessmentV2().'
|
|
1719
|
+
);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
if (requestParameters['assessmentUpdate'] == null) {
|
|
1723
|
+
throw new runtime.RequiredError(
|
|
1724
|
+
'assessmentUpdate',
|
|
1725
|
+
'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessmentV2().'
|
|
1726
|
+
);
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
const queryParameters: any = {};
|
|
1730
|
+
|
|
1731
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1732
|
+
|
|
1733
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1734
|
+
|
|
1735
|
+
|
|
1736
|
+
let urlPath = `/api/v2/assessments/{id}`;
|
|
1737
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1738
|
+
|
|
1739
|
+
return {
|
|
1740
|
+
path: urlPath,
|
|
1741
|
+
method: 'PATCH',
|
|
1742
|
+
headers: headerParameters,
|
|
1743
|
+
query: queryParameters,
|
|
1744
|
+
body: AssessmentUpdateToJSON(requestParameters['assessmentUpdate']),
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* Update the assessment name
|
|
1750
|
+
*/
|
|
1751
|
+
async updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>> {
|
|
1752
|
+
const requestOptions = await this.updateAssessmentV2RequestOpts(requestParameters);
|
|
1753
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1754
|
+
|
|
1755
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AssessmentV2FromJSON(jsonValue));
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* Update the assessment name
|
|
1760
|
+
*/
|
|
1761
|
+
async updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2> {
|
|
1762
|
+
const response = await this.updateAssessmentV2Raw(requestParameters, initOverrides);
|
|
1763
|
+
return await response.value();
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1571
1766
|
}
|
package/src/apis/ImageApi.ts
CHANGED
|
@@ -24,6 +24,10 @@ export interface GetSourceDownloadURLRequest {
|
|
|
24
24
|
* Source id
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Which image to link; the OVA or the appliance image tar for a disconnected update
|
|
29
|
+
*/
|
|
30
|
+
image?: GetSourceDownloadURLImageEnum;
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
export interface HeadImageRequest {
|
|
@@ -43,6 +47,7 @@ export interface ImageApiInterface {
|
|
|
43
47
|
/**
|
|
44
48
|
* Creates request options for getSourceDownloadURL without sending the request
|
|
45
49
|
* @param {string} id Source id
|
|
50
|
+
* @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
|
|
46
51
|
* @throws {RequiredError}
|
|
47
52
|
* @memberof ImageApiInterface
|
|
48
53
|
*/
|
|
@@ -51,6 +56,7 @@ export interface ImageApiInterface {
|
|
|
51
56
|
/**
|
|
52
57
|
* Get the OVA image via URL
|
|
53
58
|
* @param {string} id Source id
|
|
59
|
+
* @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
|
|
54
60
|
* @param {*} [options] Override http request option.
|
|
55
61
|
* @throws {RequiredError}
|
|
56
62
|
* @memberof ImageApiInterface
|
|
@@ -104,6 +110,10 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
|
104
110
|
|
|
105
111
|
const queryParameters: any = {};
|
|
106
112
|
|
|
113
|
+
if (requestParameters['image'] != null) {
|
|
114
|
+
queryParameters['image'] = requestParameters['image'];
|
|
115
|
+
}
|
|
116
|
+
|
|
107
117
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
108
118
|
|
|
109
119
|
|
|
@@ -181,3 +191,12 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
|
181
191
|
}
|
|
182
192
|
|
|
183
193
|
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @export
|
|
197
|
+
*/
|
|
198
|
+
export const GetSourceDownloadURLImageEnum = {
|
|
199
|
+
Ova: 'ova',
|
|
200
|
+
Appliance: 'appliance',
|
|
201
|
+
} as const;
|
|
202
|
+
export type GetSourceDownloadURLImageEnum = typeof GetSourceDownloadURLImageEnum[keyof typeof GetSourceDownloadURLImageEnum];
|
package/src/models/Host.ts
CHANGED
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
17
|
+
import {
|
|
18
|
+
HostStorageAdapterFromJSON,
|
|
19
|
+
HostStorageAdapterFromJSONTyped,
|
|
20
|
+
HostStorageAdapterToJSON,
|
|
21
|
+
HostStorageAdapterToJSONTyped,
|
|
22
|
+
} from './HostStorageAdapter.js';
|
|
23
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
24
|
+
import {
|
|
25
|
+
HostStorageLunFromJSON,
|
|
26
|
+
HostStorageLunFromJSONTyped,
|
|
27
|
+
HostStorageLunToJSON,
|
|
28
|
+
HostStorageLunToJSONTyped,
|
|
29
|
+
} from './HostStorageLun.js';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
32
|
*
|
|
18
33
|
* @export
|
|
@@ -31,6 +46,22 @@ export interface Host {
|
|
|
31
46
|
*
|
|
32
47
|
*/
|
|
33
48
|
model: string;
|
|
49
|
+
/**
|
|
50
|
+
* Source datacenter name, when available.
|
|
51
|
+
*/
|
|
52
|
+
datacenter?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Source cluster name; omitted for standalone hosts.
|
|
55
|
+
*/
|
|
56
|
+
cluster?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Source-reported CPU model, when available.
|
|
59
|
+
*/
|
|
60
|
+
cpuModel?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Source-reported host hardware serial or service tag, when available.
|
|
63
|
+
*/
|
|
64
|
+
serialNumber?: string;
|
|
34
65
|
/**
|
|
35
66
|
* Number of CPU cores
|
|
36
67
|
*/
|
|
@@ -51,6 +82,14 @@ export interface Host {
|
|
|
51
82
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
52
83
|
*/
|
|
53
84
|
storageVmotionSupported?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
87
|
+
*/
|
|
88
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
89
|
+
/**
|
|
90
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
91
|
+
*/
|
|
92
|
+
storageLuns?: Array<HostStorageLun>;
|
|
54
93
|
}
|
|
55
94
|
|
|
56
95
|
/**
|
|
@@ -75,11 +114,17 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
|
|
|
75
114
|
'id': json['id'] == null ? undefined : json['id'],
|
|
76
115
|
'vendor': json['vendor'],
|
|
77
116
|
'model': json['model'],
|
|
117
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
118
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
119
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
120
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
78
121
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
79
122
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
80
123
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
81
124
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
82
125
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
126
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : ((json['storageAdapters'] as Array<any>).map(HostStorageAdapterFromJSON)),
|
|
127
|
+
'storageLuns': json['storageLuns'] == null ? undefined : ((json['storageLuns'] as Array<any>).map(HostStorageLunFromJSON)),
|
|
83
128
|
};
|
|
84
129
|
}
|
|
85
130
|
|
|
@@ -97,11 +142,17 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
|
|
|
97
142
|
'id': value['id'],
|
|
98
143
|
'vendor': value['vendor'],
|
|
99
144
|
'model': value['model'],
|
|
145
|
+
'datacenter': value['datacenter'],
|
|
146
|
+
'cluster': value['cluster'],
|
|
147
|
+
'cpuModel': value['cpuModel'],
|
|
148
|
+
'serialNumber': value['serialNumber'],
|
|
100
149
|
'cpuCores': value['cpuCores'],
|
|
101
150
|
'cpuSockets': value['cpuSockets'],
|
|
102
151
|
'memoryMB': value['memoryMB'],
|
|
103
152
|
'vmotionSupported': value['vmotionSupported'],
|
|
104
153
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
154
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : ((value['storageAdapters'] as Array<any>).map(HostStorageAdapterToJSON)),
|
|
155
|
+
'storageLuns': value['storageLuns'] == null ? undefined : ((value['storageLuns'] as Array<any>).map(HostStorageLunToJSON)),
|
|
105
156
|
};
|
|
106
157
|
}
|
|
107
158
|
|
|
@@ -0,0 +1,105 @@
|
|
|
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: v1alpha1
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HostStorageAdapter
|
|
20
|
+
*/
|
|
21
|
+
export interface HostStorageAdapter {
|
|
22
|
+
/**
|
|
23
|
+
* Host-local adapter device name.
|
|
24
|
+
*/
|
|
25
|
+
device?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source adapter key; distinct from device name.
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Adapter type as supplied by the source.
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Adapter protocol as supplied by the source.
|
|
36
|
+
*/
|
|
37
|
+
protocol?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Adapter model.
|
|
40
|
+
*/
|
|
41
|
+
model?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Adapter driver.
|
|
44
|
+
*/
|
|
45
|
+
driver?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Node WWN as identifier text, preserving leading zeros.
|
|
48
|
+
*/
|
|
49
|
+
nodeWwn?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Port WWN as identifier text, preserving leading zeros.
|
|
52
|
+
*/
|
|
53
|
+
portWwn?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function HostStorageAdapterFromJSON(json: any): HostStorageAdapter {
|
|
64
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
74
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
75
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
76
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
77
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
78
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
79
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
80
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function HostStorageAdapterToJSON(json: any): HostStorageAdapter {
|
|
85
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'device': value['device'],
|
|
96
|
+
'key': value['key'],
|
|
97
|
+
'type': value['type'],
|
|
98
|
+
'protocol': value['protocol'],
|
|
99
|
+
'model': value['model'],
|
|
100
|
+
'driver': value['driver'],
|
|
101
|
+
'nodeWwn': value['nodeWwn'],
|
|
102
|
+
'portWwn': value['portWwn'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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: v1alpha1
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HostStorageLun
|
|
20
|
+
*/
|
|
21
|
+
export interface HostStorageLun {
|
|
22
|
+
/**
|
|
23
|
+
* Canonical device name, distinct from the LUN UUID.
|
|
24
|
+
*/
|
|
25
|
+
canonicalName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source SCSI disk key.
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Source-provided LUN UUID; never inferred from the device name or key.
|
|
32
|
+
*/
|
|
33
|
+
lunUuid?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN vendor.
|
|
36
|
+
*/
|
|
37
|
+
vendor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* LUN model.
|
|
40
|
+
*/
|
|
41
|
+
model?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
|
|
44
|
+
*/
|
|
45
|
+
adapterDevices?: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfHostStorageLun(value: object): value is HostStorageLun {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function HostStorageLunFromJSON(json: any): HostStorageLun {
|
|
56
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
66
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
67
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
68
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
69
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
70
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function HostStorageLunToJSON(json: any): HostStorageLun {
|
|
75
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'canonicalName': value['canonicalName'],
|
|
86
|
+
'key': value['key'],
|
|
87
|
+
'lunUuid': value['lunUuid'],
|
|
88
|
+
'vendor': value['vendor'],
|
|
89
|
+
'model': value['model'],
|
|
90
|
+
'adapterDevices': value['adapterDevices'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/Info.ts
CHANGED
|
@@ -35,6 +35,10 @@ export interface Info {
|
|
|
35
35
|
* Agent version name, based on git tag
|
|
36
36
|
*/
|
|
37
37
|
agentVersionName?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The oldest appliance version the served image supports in-place updates from; empty when no minimum is set
|
|
40
|
+
*/
|
|
41
|
+
minApplianceVersion?: string | null;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
/**
|
|
@@ -60,6 +64,7 @@ export function InfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Info
|
|
|
60
64
|
'versionName': json['versionName'],
|
|
61
65
|
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
62
66
|
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
67
|
+
'minApplianceVersion': json['minApplianceVersion'] === undefined ? undefined : json['minApplianceVersion'] === null ? null : json['minApplianceVersion'],
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
70
|
|
|
@@ -78,6 +83,7 @@ export function InfoToJSONTyped(value?: Info | null, ignoreDiscriminator: boolea
|
|
|
78
83
|
'versionName': value['versionName'],
|
|
79
84
|
'agentGitCommit': value['agentGitCommit'],
|
|
80
85
|
'agentVersionName': value['agentVersionName'],
|
|
86
|
+
'minApplianceVersion': value['minApplianceVersion'],
|
|
81
87
|
};
|
|
82
88
|
}
|
|
83
89
|
|