@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
@@ -0,0 +1,50 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 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
+ * A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
14
+ * @export
15
+ * @interface HostStorageLun
16
+ */
17
+ export interface HostStorageLun {
18
+ /**
19
+ * Canonical device name, distinct from the LUN UUID.
20
+ */
21
+ canonicalName?: string;
22
+ /**
23
+ * Source SCSI disk key.
24
+ */
25
+ key?: string;
26
+ /**
27
+ * Source-provided LUN UUID; never inferred from the device name or key.
28
+ */
29
+ lunUuid?: string;
30
+ /**
31
+ * LUN vendor.
32
+ */
33
+ vendor?: string;
34
+ /**
35
+ * LUN model.
36
+ */
37
+ model?: string;
38
+ /**
39
+ * Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
40
+ */
41
+ adapterDevices?: Array<string>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the HostStorageLun interface.
45
+ */
46
+ export declare function instanceOfHostStorageLun(value: object): value is HostStorageLun;
47
+ export declare function HostStorageLunFromJSON(json: any): HostStorageLun;
48
+ export declare function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun;
49
+ export declare function HostStorageLunToJSON(json: any): HostStorageLun;
50
+ export declare function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 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 HostStorageLun interface.
16
+ */
17
+ export function instanceOfHostStorageLun(value) {
18
+ return true;
19
+ }
20
+ export function HostStorageLunFromJSON(json) {
21
+ return HostStorageLunFromJSONTyped(json, false);
22
+ }
23
+ export function HostStorageLunFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
29
+ 'key': json['key'] == null ? undefined : json['key'],
30
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
31
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
32
+ 'model': json['model'] == null ? undefined : json['model'],
33
+ 'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
34
+ };
35
+ }
36
+ export function HostStorageLunToJSON(json) {
37
+ return HostStorageLunToJSONTyped(json, false);
38
+ }
39
+ export function HostStorageLunToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'canonicalName': value['canonicalName'],
45
+ 'key': value['key'],
46
+ 'lunUuid': value['lunUuid'],
47
+ 'vendor': value['vendor'],
48
+ 'model': value['model'],
49
+ 'adapterDevices': value['adapterDevices'],
50
+ };
51
+ }
@@ -31,6 +31,10 @@ export interface Info {
31
31
  * Agent version name, based on git tag
32
32
  */
33
33
  agentVersionName?: string | null;
34
+ /**
35
+ * The oldest appliance version the served image supports in-place updates from; empty when no minimum is set
36
+ */
37
+ minApplianceVersion?: string | null;
34
38
  }
35
39
  /**
36
40
  * Check if a given object implements the Info interface.
@@ -33,6 +33,7 @@ export function InfoFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'versionName': json['versionName'],
34
34
  'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
35
35
  'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
36
+ 'minApplianceVersion': json['minApplianceVersion'] === undefined ? undefined : json['minApplianceVersion'] === null ? null : json['minApplianceVersion'],
36
37
  };
37
38
  }
38
39
  export function InfoToJSON(json) {
@@ -47,5 +48,6 @@ export function InfoToJSONTyped(value, ignoreDiscriminator = false) {
47
48
  'versionName': value['versionName'],
48
49
  'agentGitCommit': value['agentGitCommit'],
49
50
  'agentVersionName': value['agentVersionName'],
51
+ 'minApplianceVersion': value['minApplianceVersion'],
50
52
  };
51
53
  }
@@ -27,6 +27,10 @@ export interface OsInfo {
27
27
  * OS support tier per Red Hat KCS article 4234591
28
28
  */
29
29
  supportTier?: OsInfoSupportTierEnum;
30
+ /**
31
+ * MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
32
+ */
33
+ mtvStatus?: OsInfoMtvStatusEnum;
30
34
  /**
31
35
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
32
36
  */
@@ -42,6 +46,14 @@ export declare const OsInfoSupportTierEnum: {
42
46
  readonly SpecialHandling: "special_handling";
43
47
  };
44
48
  export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const OsInfoMtvStatusEnum: {
53
+ readonly Green: "green";
54
+ readonly Blue: "blue";
55
+ };
56
+ export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
45
57
  /**
46
58
  * Check if a given object implements the OsInfo interface.
47
59
  */
@@ -20,6 +20,13 @@ export const OsInfoSupportTierEnum = {
20
20
  CommunitySupported: 'community_supported',
21
21
  SpecialHandling: 'special_handling',
22
22
  };
23
+ /**
24
+ * @export
25
+ */
26
+ export const OsInfoMtvStatusEnum = {
27
+ Green: 'green',
28
+ Blue: 'blue',
29
+ };
23
30
  /**
24
31
  * Check if a given object implements the OsInfo interface.
25
32
  */
@@ -41,6 +48,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
41
48
  'count': json['count'],
42
49
  'supported': json['supported'],
43
50
  'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
51
+ 'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
44
52
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
45
53
  };
46
54
  }
@@ -55,6 +63,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
55
63
  'count': value['count'],
56
64
  'supported': value['supported'],
57
65
  'supportTier': value['supportTier'],
66
+ 'mtvStatus': value['mtvStatus'],
58
67
  'upgradeRecommendation': value['upgradeRecommendation'],
59
68
  };
60
69
  }
@@ -0,0 +1,26 @@
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
+ *
14
+ * @export
15
+ */
16
+ export declare const SourceType: {
17
+ readonly Inventory: "inventory";
18
+ readonly Rvtools: "rvtools";
19
+ readonly Source: "source";
20
+ };
21
+ export type SourceType = typeof SourceType[keyof typeof SourceType];
22
+ export declare function instanceOfSourceType(value: any): boolean;
23
+ export declare function SourceTypeFromJSON(json: any): SourceType;
24
+ export declare function SourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceType;
25
+ export declare function SourceTypeToJSON(value?: SourceType | null): any;
26
+ export declare function SourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceType;
@@ -0,0 +1,44 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const SourceType = {
19
+ Inventory: 'inventory',
20
+ Rvtools: 'rvtools',
21
+ Source: 'source',
22
+ };
23
+ export function instanceOfSourceType(value) {
24
+ for (const key in SourceType) {
25
+ if (Object.prototype.hasOwnProperty.call(SourceType, key)) {
26
+ if (SourceType[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function SourceTypeFromJSON(json) {
34
+ return SourceTypeFromJSONTyped(json, false);
35
+ }
36
+ export function SourceTypeFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function SourceTypeToJSON(value) {
40
+ return value;
41
+ }
42
+ export function SourceTypeToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -0,0 +1,42 @@
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
+ * Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
14
+ * @export
15
+ * @interface StorageArray
16
+ */
17
+ export interface StorageArray {
18
+ /**
19
+ * Array UUID reported by the source, when available
20
+ */
21
+ uuid?: string;
22
+ /**
23
+ *
24
+ */
25
+ name?: string;
26
+ /**
27
+ * VASA vendor ID, not a SCSI inquiry vendor
28
+ */
29
+ vendorId?: string;
30
+ /**
31
+ * VASA model ID, not a SCSI inquiry model
32
+ */
33
+ modelId?: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the StorageArray interface.
37
+ */
38
+ export declare function instanceOfStorageArray(value: object): value is StorageArray;
39
+ export declare function StorageArrayFromJSON(json: any): StorageArray;
40
+ export declare function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray;
41
+ export declare function StorageArrayToJSON(json: any): StorageArray;
42
+ export declare function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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 StorageArray interface.
16
+ */
17
+ export function instanceOfStorageArray(value) {
18
+ return true;
19
+ }
20
+ export function StorageArrayFromJSON(json) {
21
+ return StorageArrayFromJSONTyped(json, false);
22
+ }
23
+ export function StorageArrayFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
29
+ 'name': json['name'] == null ? undefined : json['name'],
30
+ 'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
31
+ 'modelId': json['modelId'] == null ? undefined : json['modelId'],
32
+ };
33
+ }
34
+ export function StorageArrayToJSON(json) {
35
+ return StorageArrayToJSONTyped(json, false);
36
+ }
37
+ export function StorageArrayToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'uuid': value['uuid'],
43
+ 'name': value['name'],
44
+ 'vendorId': value['vendorId'],
45
+ 'modelId': value['modelId'],
46
+ };
47
+ }
@@ -36,6 +36,8 @@ export * from './GroupCreate.js';
36
36
  export * from './GroupUpdate.js';
37
37
  export * from './Histogram.js';
38
38
  export * from './Host.js';
39
+ export * from './HostStorageAdapter.js';
40
+ export * from './HostStorageLun.js';
39
41
  export * from './Identity.js';
40
42
  export * from './Info.js';
41
43
  export * from './Infra.js';
@@ -80,10 +82,12 @@ export * from './Snapshot.js';
80
82
  export * from './Source.js';
81
83
  export * from './SourceCreate.js';
82
84
  export * from './SourceInfra.js';
85
+ export * from './SourceType.js';
83
86
  export * from './SourceUpdate.js';
84
87
  export * from './StandaloneClusterRequirementsRequest.js';
85
88
  export * from './StandaloneClusterRequirementsResponse.js';
86
89
  export * from './Status.js';
90
+ export * from './StorageArray.js';
87
91
  export * from './StorageIoConfiguration.js';
88
92
  export * from './SubResource.js';
89
93
  export * from './UpdateInventory.js';
@@ -38,6 +38,8 @@ export * from './GroupCreate.js';
38
38
  export * from './GroupUpdate.js';
39
39
  export * from './Histogram.js';
40
40
  export * from './Host.js';
41
+ export * from './HostStorageAdapter.js';
42
+ export * from './HostStorageLun.js';
41
43
  export * from './Identity.js';
42
44
  export * from './Info.js';
43
45
  export * from './Infra.js';
@@ -82,10 +84,12 @@ export * from './Snapshot.js';
82
84
  export * from './Source.js';
83
85
  export * from './SourceCreate.js';
84
86
  export * from './SourceInfra.js';
87
+ export * from './SourceType.js';
85
88
  export * from './SourceUpdate.js';
86
89
  export * from './StandaloneClusterRequirementsRequest.js';
87
90
  export * from './StandaloneClusterRequirementsResponse.js';
88
91
  export * from './Status.js';
92
+ export * from './StorageArray.js';
89
93
  export * from './StorageIoConfiguration.js';
90
94
  export * from './SubResource.js';
91
95
  export * from './UpdateInventory.js';
@@ -419,7 +419,7 @@ export function parseContentDispositionFilename(headers) {
419
419
  function decodeExtValue(value) {
420
420
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
421
421
  try {
422
- return match ? decodeURIComponent(match[1]) : undefined;
422
+ return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
423
423
  }
424
424
  catch (_a) {
425
425
  return undefined;
@@ -431,13 +431,14 @@ function decodeExtValue(value) {
431
431
  * backslash escapes resolved, and the first occurrence of a name wins.
432
432
  */
433
433
  function parseHeaderParameters(value) {
434
+ var _a, _b;
434
435
  const params = new Map();
435
436
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
436
437
  let match;
437
438
  while ((match = parameter.exec(value)) !== null) {
438
- const name = match[1].toLowerCase();
439
+ const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
439
440
  if (!params.has(name)) {
440
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
441
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
441
442
  }
442
443
  }
443
444
  return params;
@@ -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
  */
@@ -20,6 +20,7 @@ exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
20
20
  exports.DatastoreToJSON = DatastoreToJSON;
21
21
  exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
22
22
  const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
23
+ const StorageArray_js_1 = require("./StorageArray.js");
23
24
  /**
24
25
  * @export
25
26
  */
@@ -58,6 +59,8 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
58
59
  return json;
59
60
  }
60
61
  return {
62
+ 'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArray_js_1.StorageArrayFromJSON)),
63
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
61
64
  'type': json['type'],
62
65
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
63
66
  'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
@@ -83,6 +86,8 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
83
86
  return value;
84
87
  }
85
88
  return {
89
+ 'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArray_js_1.StorageArrayToJSON)),
90
+ 'storageContainerId': value['storageContainerId'],
86
91
  'type': value['type'],
87
92
  'backingDeviceIds': value['backingDeviceIds'],
88
93
  '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.
@@ -18,6 +18,8 @@ exports.HostFromJSON = HostFromJSON;
18
18
  exports.HostFromJSONTyped = HostFromJSONTyped;
19
19
  exports.HostToJSON = HostToJSON;
20
20
  exports.HostToJSONTyped = HostToJSONTyped;
21
+ const HostStorageAdapter_js_1 = require("./HostStorageAdapter.js");
22
+ const HostStorageLun_js_1 = require("./HostStorageLun.js");
21
23
  /**
22
24
  * Check if a given object implements the Host interface.
23
25
  */
@@ -39,11 +41,17 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
39
41
  'id': json['id'] == null ? undefined : json['id'],
40
42
  'vendor': json['vendor'],
41
43
  'model': json['model'],
44
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
45
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
46
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
47
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
42
48
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
43
49
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
44
50
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
45
51
  'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
46
52
  'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
53
+ 'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterFromJSON)),
54
+ 'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLun_js_1.HostStorageLunFromJSON)),
47
55
  };
48
56
  }
49
57
  function HostToJSON(json) {
@@ -57,10 +65,16 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
57
65
  'id': value['id'],
58
66
  'vendor': value['vendor'],
59
67
  'model': value['model'],
68
+ 'datacenter': value['datacenter'],
69
+ 'cluster': value['cluster'],
70
+ 'cpuModel': value['cpuModel'],
71
+ 'serialNumber': value['serialNumber'],
60
72
  'cpuCores': value['cpuCores'],
61
73
  'cpuSockets': value['cpuSockets'],
62
74
  'memoryMB': value['memoryMB'],
63
75
  'vmotionSupported': value['vmotionSupported'],
64
76
  'storageVmotionSupported': value['storageVmotionSupported'],
77
+ 'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterToJSON)),
78
+ 'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLun_js_1.HostStorageLunToJSON)),
65
79
  };
66
80
  }
@@ -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;