@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0-647363bdd997

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 (71) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +8 -2
  3. package/dist/apis/AssessmentApi.d.ts +101 -6
  4. package/dist/apis/AssessmentApi.js +95 -6
  5. package/dist/apis/ImageApi.d.ts +14 -0
  6. package/dist/apis/ImageApi.js +11 -1
  7. package/dist/esm/apis/AssessmentApi.d.ts +101 -6
  8. package/dist/esm/apis/AssessmentApi.js +95 -6
  9. package/dist/esm/apis/ImageApi.d.ts +14 -0
  10. package/dist/esm/apis/ImageApi.js +10 -0
  11. package/dist/esm/models/Datastore.d.ts +9 -0
  12. package/dist/esm/models/Datastore.js +5 -0
  13. package/dist/esm/models/Host.d.ts +26 -0
  14. package/dist/esm/models/Host.js +14 -0
  15. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  16. package/dist/esm/models/HostStorageAdapter.js +55 -0
  17. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  18. package/dist/esm/models/HostStorageLun.js +51 -0
  19. package/dist/esm/models/Info.d.ts +4 -0
  20. package/dist/esm/models/Info.js +2 -0
  21. package/dist/esm/models/OsInfo.d.ts +12 -0
  22. package/dist/esm/models/OsInfo.js +9 -0
  23. package/dist/esm/models/SourceType.d.ts +26 -0
  24. package/dist/esm/models/SourceType.js +44 -0
  25. package/dist/esm/models/StorageArray.d.ts +42 -0
  26. package/dist/esm/models/StorageArray.js +47 -0
  27. package/dist/esm/models/index.d.ts +4 -0
  28. package/dist/esm/models/index.js +4 -0
  29. package/dist/esm/runtime.js +4 -3
  30. package/dist/models/Datastore.d.ts +9 -0
  31. package/dist/models/Datastore.js +5 -0
  32. package/dist/models/Host.d.ts +26 -0
  33. package/dist/models/Host.js +14 -0
  34. package/dist/models/HostStorageAdapter.d.ts +58 -0
  35. package/dist/models/HostStorageAdapter.js +62 -0
  36. package/dist/models/HostStorageLun.d.ts +50 -0
  37. package/dist/models/HostStorageLun.js +58 -0
  38. package/dist/models/Info.d.ts +4 -0
  39. package/dist/models/Info.js +2 -0
  40. package/dist/models/OsInfo.d.ts +12 -0
  41. package/dist/models/OsInfo.js +10 -1
  42. package/dist/models/SourceType.d.ts +26 -0
  43. package/dist/models/SourceType.js +52 -0
  44. package/dist/models/StorageArray.d.ts +42 -0
  45. package/dist/models/StorageArray.js +54 -0
  46. package/dist/models/index.d.ts +4 -0
  47. package/dist/models/index.js +4 -0
  48. package/dist/runtime.js +4 -3
  49. package/docs/AssessmentApi.md +163 -3
  50. package/docs/Datastore.md +4 -0
  51. package/docs/Host.md +12 -0
  52. package/docs/HostStorageAdapter.md +49 -0
  53. package/docs/HostStorageLun.md +45 -0
  54. package/docs/ImageApi.md +5 -2
  55. package/docs/Info.md +2 -0
  56. package/docs/OsInfo.md +2 -0
  57. package/docs/SourceType.md +32 -0
  58. package/docs/StorageArray.md +41 -0
  59. package/package.json +1 -1
  60. package/src/apis/AssessmentApi.ts +203 -8
  61. package/src/apis/ImageApi.ts +19 -0
  62. package/src/models/Datastore.ts +19 -0
  63. package/src/models/Host.ts +51 -0
  64. package/src/models/HostStorageAdapter.ts +105 -0
  65. package/src/models/HostStorageLun.ts +93 -0
  66. package/src/models/Info.ts +6 -0
  67. package/src/models/OsInfo.ts +15 -0
  68. package/src/models/SourceType.ts +54 -0
  69. package/src/models/StorageArray.ts +81 -0
  70. package/src/models/index.ts +4 -0
  71. package/src/runtime.ts +3 -3
@@ -26,6 +26,7 @@ import { type MigrationComplexityResponse } from '../models/MigrationComplexityR
26
26
  import { type MigrationEstimationByComplexityResponse } from '../models/MigrationEstimationByComplexityResponse.js';
27
27
  import { type MigrationEstimationRequest } from '../models/MigrationEstimationRequest.js';
28
28
  import { type MigrationEstimationResponse } from '../models/MigrationEstimationResponse.js';
29
+ import { type SourceType } from '../models/SourceType.js';
29
30
  import { type Status } from '../models/Status.js';
30
31
  export interface CalculateAssessmentClusterRequirementsRequest {
31
32
  /**
@@ -79,6 +80,16 @@ export interface DeleteAssessmentRequest {
79
80
  */
80
81
  id: string;
81
82
  }
83
+ export interface DeleteVCenterRequest {
84
+ /**
85
+ * ID of the assessment
86
+ */
87
+ id: string;
88
+ /**
89
+ * ID of the vcenter
90
+ */
91
+ vid: string;
92
+ }
82
93
  export interface GetAssessmentRequest {
83
94
  /**
84
95
  * ID of the assessment
@@ -131,6 +142,12 @@ export interface GetVcenterClusterRequest {
131
142
  */
132
143
  cid: string;
133
144
  }
145
+ export interface ListAssessmentsV2Request {
146
+ /**
147
+ * Filter assessments by their source type
148
+ */
149
+ sourceType?: SourceType;
150
+ }
134
151
  export interface SaveAssessmentEnhancementDataRequest {
135
152
  /**
136
153
  * ID of the assessment
@@ -163,6 +180,16 @@ export interface UpdateAssessmentRequest {
163
180
  */
164
181
  assessmentUpdate: AssessmentUpdate;
165
182
  }
183
+ export interface UpdateAssessmentV2Request {
184
+ /**
185
+ * ID of the assessment
186
+ */
187
+ id: string;
188
+ /**
189
+ *
190
+ */
191
+ assessmentUpdate: AssessmentUpdate;
192
+ }
166
193
  /**
167
194
  * AssessmentApi - interface
168
195
  *
@@ -292,6 +319,27 @@ export interface AssessmentApiInterface {
292
319
  * Delete an assessment
293
320
  */
294
321
  deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
322
+ /**
323
+ * Creates request options for deleteVCenter without sending the request
324
+ * @param {string} id ID of the assessment
325
+ * @param {string} vid ID of the vcenter
326
+ * @throws {RequiredError}
327
+ * @memberof AssessmentApiInterface
328
+ */
329
+ deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
330
+ /**
331
+ * Delete the specified vcenter inventory
332
+ * @param {string} id ID of the assessment
333
+ * @param {string} vid ID of the vcenter
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ * @memberof AssessmentApiInterface
337
+ */
338
+ deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
339
+ /**
340
+ * Delete the specified vcenter inventory
341
+ */
342
+ deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
295
343
  /**
296
344
  * Creates request options for getAssessment without sending the request
297
345
  * @param {string} id ID of the assessment
@@ -433,21 +481,23 @@ export interface AssessmentApiInterface {
433
481
  listAssessments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
434
482
  /**
435
483
  * Creates request options for listAssessmentsV2 without sending the request
484
+ * @param {SourceType} [sourceType] Filter assessments by their source type
436
485
  * @throws {RequiredError}
437
486
  * @memberof AssessmentApiInterface
438
487
  */
439
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
488
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
440
489
  /**
441
490
  * List assessments
491
+ * @param {SourceType} [sourceType] Filter assessments by their source type
442
492
  * @param {*} [options] Override http request option.
443
493
  * @throws {RequiredError}
444
494
  * @memberof AssessmentApiInterface
445
495
  */
446
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
496
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
447
497
  /**
448
498
  * List assessments
449
499
  */
450
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
500
+ listAssessmentsV2(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
451
501
  /**
452
502
  * Creates request options for saveAssessmentEnhancementData without sending the request
453
503
  * @param {string} id ID of the assessment
@@ -528,6 +578,27 @@ export interface AssessmentApiInterface {
528
578
  * Update an assessment
529
579
  */
530
580
  updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
581
+ /**
582
+ * Creates request options for updateAssessmentV2 without sending the request
583
+ * @param {string} id ID of the assessment
584
+ * @param {AssessmentUpdate} assessmentUpdate
585
+ * @throws {RequiredError}
586
+ * @memberof AssessmentApiInterface
587
+ */
588
+ updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
589
+ /**
590
+ * Update the assessment name
591
+ * @param {string} id ID of the assessment
592
+ * @param {AssessmentUpdate} assessmentUpdate
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ * @memberof AssessmentApiInterface
596
+ */
597
+ updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
598
+ /**
599
+ * Update the assessment name
600
+ */
601
+ updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
531
602
  }
532
603
  /**
533
604
  *
@@ -605,6 +676,18 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
605
676
  * Delete an assessment
606
677
  */
607
678
  deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
679
+ /**
680
+ * Creates request options for deleteVCenter without sending the request
681
+ */
682
+ deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
683
+ /**
684
+ * Delete the specified vcenter inventory
685
+ */
686
+ deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
687
+ /**
688
+ * Delete the specified vcenter inventory
689
+ */
690
+ deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
608
691
  /**
609
692
  * Creates request options for getAssessment without sending the request
610
693
  */
@@ -692,15 +775,15 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
692
775
  /**
693
776
  * Creates request options for listAssessmentsV2 without sending the request
694
777
  */
695
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
778
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
696
779
  /**
697
780
  * List assessments
698
781
  */
699
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
782
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
700
783
  /**
701
784
  * List assessments
702
785
  */
703
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
786
+ listAssessmentsV2(requestParameters?: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
704
787
  /**
705
788
  * Creates request options for saveAssessmentEnhancementData without sending the request
706
789
  */
@@ -749,4 +832,16 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
749
832
  * Update an assessment
750
833
  */
751
834
  updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
835
+ /**
836
+ * Creates request options for updateAssessmentV2 without sending the request
837
+ */
838
+ updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
839
+ /**
840
+ * Update the assessment name
841
+ */
842
+ updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
843
+ /**
844
+ * Update the assessment name
845
+ */
846
+ updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
752
847
  }
@@ -297,6 +297,48 @@ export class AssessmentApi extends runtime.BaseAPI {
297
297
  return yield response.value();
298
298
  });
299
299
  }
300
+ /**
301
+ * Creates request options for deleteVCenter without sending the request
302
+ */
303
+ deleteVCenterRequestOpts(requestParameters) {
304
+ return __awaiter(this, void 0, void 0, function* () {
305
+ if (requestParameters['id'] == null) {
306
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteVCenter().');
307
+ }
308
+ if (requestParameters['vid'] == null) {
309
+ throw new runtime.RequiredError('vid', 'Required parameter "vid" was null or undefined when calling deleteVCenter().');
310
+ }
311
+ const queryParameters = {};
312
+ const headerParameters = {};
313
+ let urlPath = `/api/v2/assessments/{id}/vcenters/{vid}`;
314
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
315
+ urlPath = urlPath.replace('{vid}', encodeURIComponent(String(requestParameters['vid'])));
316
+ return {
317
+ path: urlPath,
318
+ method: 'DELETE',
319
+ headers: headerParameters,
320
+ query: queryParameters,
321
+ };
322
+ });
323
+ }
324
+ /**
325
+ * Delete the specified vcenter inventory
326
+ */
327
+ deleteVCenterRaw(requestParameters, initOverrides) {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ const requestOptions = yield this.deleteVCenterRequestOpts(requestParameters);
330
+ const response = yield this.request(requestOptions, initOverrides);
331
+ return new runtime.VoidApiResponse(response);
332
+ });
333
+ }
334
+ /**
335
+ * Delete the specified vcenter inventory
336
+ */
337
+ deleteVCenter(requestParameters, initOverrides) {
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ yield this.deleteVCenterRaw(requestParameters, initOverrides);
340
+ });
341
+ }
300
342
  /**
301
343
  * Creates request options for getAssessment without sending the request
302
344
  */
@@ -587,9 +629,12 @@ export class AssessmentApi extends runtime.BaseAPI {
587
629
  /**
588
630
  * Creates request options for listAssessmentsV2 without sending the request
589
631
  */
590
- listAssessmentsV2RequestOpts() {
632
+ listAssessmentsV2RequestOpts(requestParameters) {
591
633
  return __awaiter(this, void 0, void 0, function* () {
592
634
  const queryParameters = {};
635
+ if (requestParameters['sourceType'] != null) {
636
+ queryParameters['sourceType'] = requestParameters['sourceType'];
637
+ }
593
638
  const headerParameters = {};
594
639
  let urlPath = `/api/v2/assessments`;
595
640
  return {
@@ -603,9 +648,9 @@ export class AssessmentApi extends runtime.BaseAPI {
603
648
  /**
604
649
  * List assessments
605
650
  */
606
- listAssessmentsV2Raw(initOverrides) {
651
+ listAssessmentsV2Raw(requestParameters, initOverrides) {
607
652
  return __awaiter(this, void 0, void 0, function* () {
608
- const requestOptions = yield this.listAssessmentsV2RequestOpts();
653
+ const requestOptions = yield this.listAssessmentsV2RequestOpts(requestParameters);
609
654
  const response = yield this.request(requestOptions, initOverrides);
610
655
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssessmentV2SummaryFromJSON));
611
656
  });
@@ -613,9 +658,9 @@ export class AssessmentApi extends runtime.BaseAPI {
613
658
  /**
614
659
  * List assessments
615
660
  */
616
- listAssessmentsV2(initOverrides) {
617
- return __awaiter(this, void 0, void 0, function* () {
618
- const response = yield this.listAssessmentsV2Raw(initOverrides);
661
+ listAssessmentsV2() {
662
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
663
+ const response = yield this.listAssessmentsV2Raw(requestParameters, initOverrides);
619
664
  return yield response.value();
620
665
  });
621
666
  }
@@ -785,4 +830,48 @@ export class AssessmentApi extends runtime.BaseAPI {
785
830
  return yield response.value();
786
831
  });
787
832
  }
833
+ /**
834
+ * Creates request options for updateAssessmentV2 without sending the request
835
+ */
836
+ updateAssessmentV2RequestOpts(requestParameters) {
837
+ return __awaiter(this, void 0, void 0, function* () {
838
+ if (requestParameters['id'] == null) {
839
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAssessmentV2().');
840
+ }
841
+ if (requestParameters['assessmentUpdate'] == null) {
842
+ throw new runtime.RequiredError('assessmentUpdate', 'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessmentV2().');
843
+ }
844
+ const queryParameters = {};
845
+ const headerParameters = {};
846
+ headerParameters['Content-Type'] = 'application/json';
847
+ let urlPath = `/api/v2/assessments/{id}`;
848
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
849
+ return {
850
+ path: urlPath,
851
+ method: 'PATCH',
852
+ headers: headerParameters,
853
+ query: queryParameters,
854
+ body: AssessmentUpdateToJSON(requestParameters['assessmentUpdate']),
855
+ };
856
+ });
857
+ }
858
+ /**
859
+ * Update the assessment name
860
+ */
861
+ updateAssessmentV2Raw(requestParameters, initOverrides) {
862
+ return __awaiter(this, void 0, void 0, function* () {
863
+ const requestOptions = yield this.updateAssessmentV2RequestOpts(requestParameters);
864
+ const response = yield this.request(requestOptions, initOverrides);
865
+ return new runtime.JSONApiResponse(response, (jsonValue) => AssessmentV2FromJSON(jsonValue));
866
+ });
867
+ }
868
+ /**
869
+ * Update the assessment name
870
+ */
871
+ updateAssessmentV2(requestParameters, initOverrides) {
872
+ return __awaiter(this, void 0, void 0, function* () {
873
+ const response = yield this.updateAssessmentV2Raw(requestParameters, initOverrides);
874
+ return yield response.value();
875
+ });
876
+ }
788
877
  }
@@ -16,6 +16,10 @@ export interface GetSourceDownloadURLRequest {
16
16
  * Source id
17
17
  */
18
18
  id: string;
19
+ /**
20
+ * Which image to link; the OVA or the appliance image tar for a disconnected update
21
+ */
22
+ image?: GetSourceDownloadURLImageEnum;
19
23
  }
20
24
  export interface HeadImageRequest {
21
25
  /**
@@ -33,6 +37,7 @@ export interface ImageApiInterface {
33
37
  /**
34
38
  * Creates request options for getSourceDownloadURL without sending the request
35
39
  * @param {string} id Source id
40
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
36
41
  * @throws {RequiredError}
37
42
  * @memberof ImageApiInterface
38
43
  */
@@ -40,6 +45,7 @@ export interface ImageApiInterface {
40
45
  /**
41
46
  * Get the OVA image via URL
42
47
  * @param {string} id Source id
48
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
43
49
  * @param {*} [options] Override http request option.
44
50
  * @throws {RequiredError}
45
51
  * @memberof ImageApiInterface
@@ -98,3 +104,11 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
98
104
  */
99
105
  headImage(requestParameters: HeadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
100
106
  }
107
+ /**
108
+ * @export
109
+ */
110
+ export declare const GetSourceDownloadURLImageEnum: {
111
+ readonly Ova: "ova";
112
+ readonly Appliance: "appliance";
113
+ };
114
+ export type GetSourceDownloadURLImageEnum = typeof GetSourceDownloadURLImageEnum[keyof typeof GetSourceDownloadURLImageEnum];
@@ -35,6 +35,9 @@ export class ImageApi extends runtime.BaseAPI {
35
35
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSourceDownloadURL().');
36
36
  }
37
37
  const queryParameters = {};
38
+ if (requestParameters['image'] != null) {
39
+ queryParameters['image'] = requestParameters['image'];
40
+ }
38
41
  const headerParameters = {};
39
42
  let urlPath = `/api/v1/sources/{id}/image-url`;
40
43
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
@@ -104,3 +107,10 @@ export class ImageApi extends runtime.BaseAPI {
104
107
  });
105
108
  }
106
109
  }
110
+ /**
111
+ * @export
112
+ */
113
+ export const GetSourceDownloadURLImageEnum = {
114
+ Ova: 'ova',
115
+ Appliance: 'appliance',
116
+ };
@@ -10,12 +10,21 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
13
+ import type { StorageArray } from './StorageArray.js';
13
14
  /**
14
15
  *
15
16
  * @export
16
17
  * @interface Datastore
17
18
  */
18
19
  export interface Datastore {
20
+ /**
21
+ * Source-reported VASA arrays; absence does not establish that the datastore has no array
22
+ */
23
+ storageArrays?: Array<StorageArray>;
24
+ /**
25
+ * Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
26
+ */
27
+ storageContainerId?: string;
19
28
  /**
20
29
  *
21
30
  */
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { StorageIoConfigurationFromJSON, StorageIoConfigurationToJSON, } from './StorageIoConfiguration.js';
15
+ import { StorageArrayFromJSON, StorageArrayToJSON, } from './StorageArray.js';
15
16
  /**
16
17
  * @export
17
18
  */
@@ -50,6 +51,8 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
50
51
  return json;
51
52
  }
52
53
  return {
54
+ 'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArrayFromJSON)),
55
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
53
56
  'type': json['type'],
54
57
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
55
58
  'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
@@ -75,6 +78,8 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
75
78
  return value;
76
79
  }
77
80
  return {
81
+ 'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArrayToJSON)),
82
+ 'storageContainerId': value['storageContainerId'],
78
83
  'type': value['type'],
79
84
  'backingDeviceIds': value['backingDeviceIds'],
80
85
  'filesystemType': value['filesystemType'],
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { HostStorageAdapter } from './HostStorageAdapter.js';
13
+ import type { HostStorageLun } from './HostStorageLun.js';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -27,6 +29,22 @@ export interface Host {
27
29
  *
28
30
  */
29
31
  model: string;
32
+ /**
33
+ * Source datacenter name, when available.
34
+ */
35
+ datacenter?: string;
36
+ /**
37
+ * Source cluster name; omitted for standalone hosts.
38
+ */
39
+ cluster?: string;
40
+ /**
41
+ * Source-reported CPU model, when available.
42
+ */
43
+ cpuModel?: string;
44
+ /**
45
+ * Source-reported host hardware serial or service tag, when available.
46
+ */
47
+ serialNumber?: string;
30
48
  /**
31
49
  * Number of CPU cores
32
50
  */
@@ -47,6 +65,14 @@ export interface Host {
47
65
  * Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
48
66
  */
49
67
  storageVmotionSupported?: boolean;
68
+ /**
69
+ * Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
70
+ */
71
+ storageAdapters?: Array<HostStorageAdapter>;
72
+ /**
73
+ * Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
74
+ */
75
+ storageLuns?: Array<HostStorageLun>;
50
76
  }
51
77
  /**
52
78
  * Check if a given object implements the Host interface.
@@ -11,6 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { HostStorageAdapterFromJSON, HostStorageAdapterToJSON, } from './HostStorageAdapter.js';
15
+ import { HostStorageLunFromJSON, HostStorageLunToJSON, } from './HostStorageLun.js';
14
16
  /**
15
17
  * Check if a given object implements the Host interface.
16
18
  */
@@ -32,11 +34,17 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
32
34
  'id': json['id'] == null ? undefined : json['id'],
33
35
  'vendor': json['vendor'],
34
36
  'model': json['model'],
37
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
38
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
39
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
40
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
35
41
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
36
42
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
37
43
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
38
44
  'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
39
45
  'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
46
+ 'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapterFromJSON)),
47
+ 'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLunFromJSON)),
40
48
  };
41
49
  }
42
50
  export function HostToJSON(json) {
@@ -50,10 +58,16 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
50
58
  'id': value['id'],
51
59
  'vendor': value['vendor'],
52
60
  'model': value['model'],
61
+ 'datacenter': value['datacenter'],
62
+ 'cluster': value['cluster'],
63
+ 'cpuModel': value['cpuModel'],
64
+ 'serialNumber': value['serialNumber'],
53
65
  'cpuCores': value['cpuCores'],
54
66
  'cpuSockets': value['cpuSockets'],
55
67
  'memoryMB': value['memoryMB'],
56
68
  'vmotionSupported': value['vmotionSupported'],
57
69
  'storageVmotionSupported': value['storageVmotionSupported'],
70
+ 'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapterToJSON)),
71
+ 'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLunToJSON)),
58
72
  };
59
73
  }
@@ -0,0 +1,58 @@
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: v1alpha1
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
+ * Source-provided adapter facts. Missing or conflicting values are omitted.
14
+ * @export
15
+ * @interface HostStorageAdapter
16
+ */
17
+ export interface HostStorageAdapter {
18
+ /**
19
+ * Host-local adapter device name.
20
+ */
21
+ device?: string;
22
+ /**
23
+ * Source adapter key; distinct from device name.
24
+ */
25
+ key?: string;
26
+ /**
27
+ * Adapter type as supplied by the source.
28
+ */
29
+ type?: string;
30
+ /**
31
+ * Adapter protocol as supplied by the source.
32
+ */
33
+ protocol?: string;
34
+ /**
35
+ * Adapter model.
36
+ */
37
+ model?: string;
38
+ /**
39
+ * Adapter driver.
40
+ */
41
+ driver?: string;
42
+ /**
43
+ * Node WWN as identifier text, preserving leading zeros.
44
+ */
45
+ nodeWwn?: string;
46
+ /**
47
+ * Port WWN as identifier text, preserving leading zeros.
48
+ */
49
+ portWwn?: string;
50
+ }
51
+ /**
52
+ * Check if a given object implements the HostStorageAdapter interface.
53
+ */
54
+ export declare function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter;
55
+ export declare function HostStorageAdapterFromJSON(json: any): HostStorageAdapter;
56
+ export declare function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter;
57
+ export declare function HostStorageAdapterToJSON(json: any): HostStorageAdapter;
58
+ export declare function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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
+ * Check if a given object implements the HostStorageAdapter interface.
16
+ */
17
+ export function instanceOfHostStorageAdapter(value) {
18
+ return true;
19
+ }
20
+ export function HostStorageAdapterFromJSON(json) {
21
+ return HostStorageAdapterFromJSONTyped(json, false);
22
+ }
23
+ export function HostStorageAdapterFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'device': json['device'] == null ? undefined : json['device'],
29
+ 'key': json['key'] == null ? undefined : json['key'],
30
+ 'type': json['type'] == null ? undefined : json['type'],
31
+ 'protocol': json['protocol'] == null ? undefined : json['protocol'],
32
+ 'model': json['model'] == null ? undefined : json['model'],
33
+ 'driver': json['driver'] == null ? undefined : json['driver'],
34
+ 'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
35
+ 'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
36
+ };
37
+ }
38
+ export function HostStorageAdapterToJSON(json) {
39
+ return HostStorageAdapterToJSONTyped(json, false);
40
+ }
41
+ export function HostStorageAdapterToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'device': value['device'],
47
+ 'key': value['key'],
48
+ 'type': value['type'],
49
+ 'protocol': value['protocol'],
50
+ 'model': value['model'],
51
+ 'driver': value['driver'],
52
+ 'nodeWwn': value['nodeWwn'],
53
+ 'portWwn': value['portWwn'],
54
+ };
55
+ }