@openshift-migration-advisor/planner-sdk 0.27.0 → 0.28.0-2a5826fe0340

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 (94) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +17 -3
  4. package/dist/apis/AssessmentApi.d.ts +205 -0
  5. package/dist/apis/AssessmentApi.js +210 -0
  6. package/dist/apis/JobApi.d.ts +86 -0
  7. package/dist/apis/JobApi.js +124 -0
  8. package/dist/esm/apis/AssessmentApi.d.ts +205 -0
  9. package/dist/esm/apis/AssessmentApi.js +210 -0
  10. package/dist/esm/apis/JobApi.d.ts +86 -0
  11. package/dist/esm/apis/JobApi.js +124 -0
  12. package/dist/esm/models/AssessmentV2.d.ts +36 -0
  13. package/dist/esm/models/AssessmentV2.js +49 -0
  14. package/dist/esm/models/AssessmentV2Summary.d.ts +97 -0
  15. package/dist/esm/models/AssessmentV2Summary.js +99 -0
  16. package/dist/esm/models/AssessmentVCenterV2.d.ts +36 -0
  17. package/dist/esm/models/AssessmentVCenterV2.js +49 -0
  18. package/dist/esm/models/Datastore.d.ts +18 -2
  19. package/dist/esm/models/Datastore.js +8 -0
  20. package/dist/esm/models/Host.d.ts +10 -0
  21. package/dist/esm/models/Host.js +6 -0
  22. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  23. package/dist/esm/models/HostStorageAdapter.js +55 -0
  24. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  25. package/dist/esm/models/HostStorageLun.js +51 -0
  26. package/dist/esm/models/Inventory.d.ts +5 -1
  27. package/dist/esm/models/Inventory.js +2 -0
  28. package/dist/esm/models/InventoryV2.d.ts +47 -0
  29. package/dist/esm/models/InventoryV2.js +55 -0
  30. package/dist/esm/models/OsInfo.d.ts +12 -0
  31. package/dist/esm/models/OsInfo.js +9 -0
  32. package/dist/esm/models/SubResource.d.ts +30 -0
  33. package/dist/esm/models/SubResource.js +43 -0
  34. package/dist/esm/models/VsphereCoreInput.d.ts +8 -0
  35. package/dist/esm/models/VsphereCoreInput.js +4 -0
  36. package/dist/esm/models/index.d.ts +7 -0
  37. package/dist/esm/models/index.js +7 -0
  38. package/dist/models/AssessmentV2.d.ts +36 -0
  39. package/dist/models/AssessmentV2.js +56 -0
  40. package/dist/models/AssessmentV2Summary.d.ts +97 -0
  41. package/dist/models/AssessmentV2Summary.js +107 -0
  42. package/dist/models/AssessmentVCenterV2.d.ts +36 -0
  43. package/dist/models/AssessmentVCenterV2.js +56 -0
  44. package/dist/models/Datastore.d.ts +18 -2
  45. package/dist/models/Datastore.js +8 -0
  46. package/dist/models/Host.d.ts +10 -0
  47. package/dist/models/Host.js +6 -0
  48. package/dist/models/HostStorageAdapter.d.ts +58 -0
  49. package/dist/models/HostStorageAdapter.js +62 -0
  50. package/dist/models/HostStorageLun.d.ts +50 -0
  51. package/dist/models/HostStorageLun.js +58 -0
  52. package/dist/models/Inventory.d.ts +5 -1
  53. package/dist/models/Inventory.js +2 -0
  54. package/dist/models/InventoryV2.d.ts +47 -0
  55. package/dist/models/InventoryV2.js +62 -0
  56. package/dist/models/OsInfo.d.ts +12 -0
  57. package/dist/models/OsInfo.js +10 -1
  58. package/dist/models/SubResource.d.ts +30 -0
  59. package/dist/models/SubResource.js +50 -0
  60. package/dist/models/VsphereCoreInput.d.ts +8 -0
  61. package/dist/models/VsphereCoreInput.js +4 -0
  62. package/dist/models/index.d.ts +7 -0
  63. package/dist/models/index.js +7 -0
  64. package/docs/AssessmentApi.md +362 -0
  65. package/docs/AssessmentV2.md +36 -0
  66. package/docs/AssessmentV2Summary.md +58 -0
  67. package/docs/AssessmentVCenterV2.md +36 -0
  68. package/docs/Datastore.md +8 -0
  69. package/docs/Host.md +4 -0
  70. package/docs/HostStorageAdapter.md +49 -0
  71. package/docs/HostStorageLun.md +45 -0
  72. package/docs/Inventory.md +2 -0
  73. package/docs/InventoryV2.md +42 -0
  74. package/docs/JobApi.md +152 -0
  75. package/docs/OsInfo.md +2 -0
  76. package/docs/SubResource.md +34 -0
  77. package/docs/VsphereCoreInput.md +4 -0
  78. package/package.json +1 -1
  79. package/src/apis/AssessmentApi.ts +428 -0
  80. package/src/apis/JobApi.ts +219 -0
  81. package/src/models/AssessmentV2.ts +86 -0
  82. package/src/models/AssessmentV2Summary.ts +173 -0
  83. package/src/models/AssessmentVCenterV2.ts +86 -0
  84. package/src/models/Datastore.ts +26 -2
  85. package/src/models/Host.ts +27 -0
  86. package/src/models/HostStorageAdapter.ts +105 -0
  87. package/src/models/HostStorageLun.ts +93 -0
  88. package/src/models/Inventory.ts +7 -1
  89. package/src/models/InventoryV2.ts +97 -0
  90. package/src/models/OsInfo.ts +15 -0
  91. package/src/models/SubResource.ts +64 -0
  92. package/src/models/VsphereCoreInput.ts +12 -0
  93. package/src/models/index.ts +7 -0
  94. package/src/runtime.ts +8 -8
@@ -0,0 +1,99 @@
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
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AssessmentSharingFromJSON, AssessmentSharingToJSON, } from './AssessmentSharing.js';
16
+ /**
17
+ * @export
18
+ */
19
+ export const AssessmentV2SummarySourceTypeEnum = {
20
+ Inventory: 'inventory',
21
+ Rvtools: 'rvtools',
22
+ Source: 'source',
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ export const AssessmentV2SummaryPermissionsEnum = {
28
+ Read: 'read',
29
+ Share: 'share',
30
+ Delete: 'delete',
31
+ };
32
+ /**
33
+ * Check if a given object implements the AssessmentV2Summary interface.
34
+ */
35
+ export function instanceOfAssessmentV2Summary(value) {
36
+ if (!('id' in value) || value['id'] === undefined)
37
+ return false;
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ if (!('sourceType' in value) || value['sourceType'] === undefined)
41
+ return false;
42
+ if (!('datastoresCount' in value) || value['datastoresCount'] === undefined)
43
+ return false;
44
+ if (!('hostsCount' in value) || value['hostsCount'] === undefined)
45
+ return false;
46
+ if (!('vmsCount' in value) || value['vmsCount'] === undefined)
47
+ return false;
48
+ if (!('networksCount' in value) || value['networksCount'] === undefined)
49
+ return false;
50
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ export function AssessmentV2SummaryFromJSON(json) {
55
+ return AssessmentV2SummaryFromJSONTyped(json, false);
56
+ }
57
+ export function AssessmentV2SummaryFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'id': json['id'],
63
+ 'name': json['name'],
64
+ 'ownerFirstName': json['ownerFirstName'] == null ? undefined : json['ownerFirstName'],
65
+ 'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
66
+ 'sourceType': json['sourceType'],
67
+ 'datastoresCount': json['datastoresCount'],
68
+ 'hostsCount': json['hostsCount'],
69
+ 'vmsCount': json['vmsCount'],
70
+ 'networksCount': json['networksCount'],
71
+ 'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
72
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
73
+ 'permissions': json['permissions'] == null ? undefined : json['permissions'],
74
+ 'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
75
+ };
76
+ }
77
+ export function AssessmentV2SummaryToJSON(json) {
78
+ return AssessmentV2SummaryToJSONTyped(json, false);
79
+ }
80
+ export function AssessmentV2SummaryToJSONTyped(value, ignoreDiscriminator = false) {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'id': value['id'],
86
+ 'name': value['name'],
87
+ 'ownerFirstName': value['ownerFirstName'],
88
+ 'ownerLastName': value['ownerLastName'],
89
+ 'sourceType': value['sourceType'],
90
+ 'datastoresCount': value['datastoresCount'],
91
+ 'hostsCount': value['hostsCount'],
92
+ 'vmsCount': value['vmsCount'],
93
+ 'networksCount': value['networksCount'],
94
+ 'sourceId': value['sourceId'],
95
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
96
+ 'permissions': value['permissions'],
97
+ 'sharing': AssessmentSharingToJSON(value['sharing']),
98
+ };
99
+ }
@@ -0,0 +1,36 @@
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
+ import type { InventoryV2 } from './InventoryV2.js';
13
+ import type { SubResource } from './SubResource.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AssessmentVCenterV2
18
+ */
19
+ export interface AssessmentVCenterV2 {
20
+ /**
21
+ *
22
+ */
23
+ data: InventoryV2;
24
+ /**
25
+ *
26
+ */
27
+ clusters: Array<SubResource>;
28
+ }
29
+ /**
30
+ * Check if a given object implements the AssessmentVCenterV2 interface.
31
+ */
32
+ export declare function instanceOfAssessmentVCenterV2(value: object): value is AssessmentVCenterV2;
33
+ export declare function AssessmentVCenterV2FromJSON(json: any): AssessmentVCenterV2;
34
+ export declare function AssessmentVCenterV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentVCenterV2;
35
+ export declare function AssessmentVCenterV2ToJSON(json: any): AssessmentVCenterV2;
36
+ export declare function AssessmentVCenterV2ToJSONTyped(value?: AssessmentVCenterV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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
+ import { InventoryV2FromJSON, InventoryV2ToJSON, } from './InventoryV2.js';
15
+ import { SubResourceFromJSON, SubResourceToJSON, } from './SubResource.js';
16
+ /**
17
+ * Check if a given object implements the AssessmentVCenterV2 interface.
18
+ */
19
+ export function instanceOfAssessmentVCenterV2(value) {
20
+ if (!('data' in value) || value['data'] === undefined)
21
+ return false;
22
+ if (!('clusters' in value) || value['clusters'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function AssessmentVCenterV2FromJSON(json) {
27
+ return AssessmentVCenterV2FromJSONTyped(json, false);
28
+ }
29
+ export function AssessmentVCenterV2FromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'data': InventoryV2FromJSON(json['data']),
35
+ 'clusters': (json['clusters'].map(SubResourceFromJSON)),
36
+ };
37
+ }
38
+ export function AssessmentVCenterV2ToJSON(json) {
39
+ return AssessmentVCenterV2ToJSONTyped(json, false);
40
+ }
41
+ export function AssessmentVCenterV2ToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'data': InventoryV2ToJSON(value['data']),
47
+ 'clusters': (value['clusters'].map(SubResourceToJSON)),
48
+ };
49
+ }
@@ -20,10 +20,26 @@ export interface Datastore {
20
20
  *
21
21
  */
22
22
  type: string;
23
+ /**
24
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
25
+ */
26
+ backingDeviceIds?: Array<string>;
27
+ /**
28
+ * Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
29
+ */
30
+ filesystemType?: string;
31
+ /**
32
+ * VMFS major version when reported; omitted when unknown or not applicable
33
+ */
34
+ filesystemMajorVersion?: number;
23
35
  /**
24
36
  * Storage access category derived from Datastore.Type
25
37
  */
26
38
  storageProtocol?: DatastoreStorageProtocolEnum;
39
+ /**
40
+ * Whether this datastore supports vSAN point-in-time snapshots
41
+ */
42
+ vsanSnapshotSupport?: boolean;
27
43
  /**
28
44
  *
29
45
  */
@@ -33,7 +49,7 @@ export interface Datastore {
33
49
  */
34
50
  freeCapacityGB: number;
35
51
  /**
36
- *
52
+ * Vendor reported by matching backing devices when available
37
53
  */
38
54
  vendor: string;
39
55
  /**
@@ -49,7 +65,7 @@ export interface Datastore {
49
65
  */
50
66
  protocolType: string;
51
67
  /**
52
- *
68
+ * Model reported by matching backing devices when available
53
69
  */
54
70
  model: string;
55
71
  /**
@@ -51,7 +51,11 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
51
51
  }
52
52
  return {
53
53
  'type': json['type'],
54
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
55
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
56
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
54
57
  'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
58
+ 'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
55
59
  'totalCapacityGB': json['totalCapacityGB'],
56
60
  'freeCapacityGB': json['freeCapacityGB'],
57
61
  'vendor': json['vendor'],
@@ -72,7 +76,11 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
72
76
  }
73
77
  return {
74
78
  'type': value['type'],
79
+ 'backingDeviceIds': value['backingDeviceIds'],
80
+ 'filesystemType': value['filesystemType'],
81
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
75
82
  'storageProtocol': value['storageProtocol'],
83
+ 'vsanSnapshotSupport': value['vsanSnapshotSupport'],
76
84
  'totalCapacityGB': value['totalCapacityGB'],
77
85
  'freeCapacityGB': value['freeCapacityGB'],
78
86
  'vendor': value['vendor'],
@@ -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
@@ -47,6 +49,14 @@ export interface Host {
47
49
  * Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
48
50
  */
49
51
  storageVmotionSupported?: boolean;
52
+ /**
53
+ * Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
54
+ */
55
+ storageAdapters?: Array<HostStorageAdapter>;
56
+ /**
57
+ * Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
58
+ */
59
+ storageLuns?: Array<HostStorageLun>;
50
60
  }
51
61
  /**
52
62
  * 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
  */
@@ -37,6 +39,8 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
37
39
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
38
40
  'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
39
41
  'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
42
+ 'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapterFromJSON)),
43
+ 'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLunFromJSON)),
40
44
  };
41
45
  }
42
46
  export function HostToJSON(json) {
@@ -55,5 +59,7 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
55
59
  'memoryMB': value['memoryMB'],
56
60
  'vmotionSupported': value['vmotionSupported'],
57
61
  'storageVmotionSupported': value['storageVmotionSupported'],
62
+ 'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapterToJSON)),
63
+ 'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLunToJSON)),
58
64
  };
59
65
  }
@@ -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
+ }
@@ -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
+ }
@@ -35,9 +35,13 @@ export interface Inventory {
35
35
  */
36
36
  vcenter?: InventoryData;
37
37
  /**
38
- * Timestamp when the inventory data was created or collected
38
+ * Timestamp when the inventory document was built
39
39
  */
40
40
  createdAt?: Date;
41
+ /**
42
+ * Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
43
+ */
44
+ collectionTime?: Date | null;
41
45
  }
42
46
  /**
43
47
  * Check if a given object implements the Inventory interface.
@@ -36,6 +36,7 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
37
37
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
38
38
  'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
39
+ 'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
39
40
  };
40
41
  }
41
42
  export function InventoryToJSON(json) {
@@ -51,5 +52,6 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
51
52
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
52
53
  'vcenter': InventoryDataToJSON(value['vcenter']),
53
54
  'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
55
+ 'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
54
56
  };
55
57
  }
@@ -0,0 +1,47 @@
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
+ import type { InventoryData } from './InventoryData.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface InventoryV2
17
+ */
18
+ export interface InventoryV2 {
19
+ /**
20
+ *
21
+ */
22
+ id: string;
23
+ /**
24
+ *
25
+ */
26
+ data: InventoryData;
27
+ /**
28
+ * Version of the vCenter api. For example "8.0.3.0"
29
+ */
30
+ vcenterVersion?: string;
31
+ /**
32
+ * Timestamp when the inventory data was created or collected
33
+ */
34
+ createdAt?: Date;
35
+ /**
36
+ * Oldest known source collection time. Null when unknown.
37
+ */
38
+ collectionTime?: Date | null;
39
+ }
40
+ /**
41
+ * Check if a given object implements the InventoryV2 interface.
42
+ */
43
+ export declare function instanceOfInventoryV2(value: object): value is InventoryV2;
44
+ export declare function InventoryV2FromJSON(json: any): InventoryV2;
45
+ export declare function InventoryV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): InventoryV2;
46
+ export declare function InventoryV2ToJSON(json: any): InventoryV2;
47
+ export declare function InventoryV2ToJSONTyped(value?: InventoryV2 | 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
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
16
+ /**
17
+ * Check if a given object implements the InventoryV2 interface.
18
+ */
19
+ export function instanceOfInventoryV2(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function InventoryV2FromJSON(json) {
27
+ return InventoryV2FromJSONTyped(json, false);
28
+ }
29
+ export function InventoryV2FromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'data': InventoryDataFromJSON(json['data']),
36
+ 'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
37
+ 'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
38
+ 'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
39
+ };
40
+ }
41
+ export function InventoryV2ToJSON(json) {
42
+ return InventoryV2ToJSONTyped(json, false);
43
+ }
44
+ export function InventoryV2ToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'id': value['id'],
50
+ 'data': InventoryDataToJSON(value['data']),
51
+ 'vcenter_version': value['vcenterVersion'],
52
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
53
+ 'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
54
+ };
55
+ }