@openshift-migration-advisor/agent-sdk 0.30.0 → 0.31.0-df1e6c5c13c2

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 (104) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +9 -4
  4. package/dist/apis/InventoriesApi.d.ts +9 -9
  5. package/dist/apis/InventoriesApi.js +3 -3
  6. package/dist/esm/apis/InventoriesApi.d.ts +9 -9
  7. package/dist/esm/apis/InventoriesApi.js +3 -3
  8. package/dist/esm/models/CollectedInventory.d.ts +31 -0
  9. package/dist/esm/models/CollectedInventory.js +44 -0
  10. package/dist/esm/models/Datastore.d.ts +14 -2
  11. package/dist/esm/models/Datastore.js +6 -0
  12. package/dist/esm/models/GroupResponse.d.ts +2 -2
  13. package/dist/esm/models/GroupResponse.js +3 -3
  14. package/dist/esm/models/Host.d.ts +10 -0
  15. package/dist/esm/models/Host.js +6 -0
  16. package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
  17. package/dist/esm/models/HostPhysicalNIC.js +45 -0
  18. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  19. package/dist/esm/models/HostStorageAdapter.js +55 -0
  20. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  21. package/dist/esm/models/HostStorageLun.js +51 -0
  22. package/dist/esm/models/Inventory.d.ts +24 -2
  23. package/dist/esm/models/Inventory.js +17 -4
  24. package/dist/esm/models/RDMBacking.d.ts +30 -0
  25. package/dist/esm/models/RDMBacking.js +41 -0
  26. package/dist/esm/models/UpdateInventory.d.ts +2 -2
  27. package/dist/esm/models/UpdateInventory.js +3 -3
  28. package/dist/esm/models/VirtualMachineDatastore.d.ts +66 -0
  29. package/dist/esm/models/VirtualMachineDatastore.js +59 -0
  30. package/dist/esm/models/VirtualMachineDetail.d.ts +13 -0
  31. package/dist/esm/models/VirtualMachineDetail.js +9 -0
  32. package/dist/esm/models/VirtualMachineDisk.d.ts +10 -0
  33. package/dist/esm/models/VirtualMachineDisk.js +6 -0
  34. package/dist/esm/models/VirtualMachineNIC.d.ts +16 -0
  35. package/dist/esm/models/VirtualMachineNIC.js +8 -0
  36. package/dist/esm/models/index.d.ts +6 -1
  37. package/dist/esm/models/index.js +6 -1
  38. package/dist/models/CollectedInventory.d.ts +31 -0
  39. package/dist/models/CollectedInventory.js +51 -0
  40. package/dist/models/Datastore.d.ts +14 -2
  41. package/dist/models/Datastore.js +6 -0
  42. package/dist/models/GroupResponse.d.ts +2 -2
  43. package/dist/models/GroupResponse.js +3 -3
  44. package/dist/models/Host.d.ts +10 -0
  45. package/dist/models/Host.js +6 -0
  46. package/dist/models/HostPhysicalNIC.d.ts +34 -0
  47. package/dist/models/HostPhysicalNIC.js +52 -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 +24 -2
  53. package/dist/models/Inventory.js +17 -4
  54. package/dist/models/RDMBacking.d.ts +30 -0
  55. package/dist/models/RDMBacking.js +48 -0
  56. package/dist/models/UpdateInventory.d.ts +2 -2
  57. package/dist/models/UpdateInventory.js +3 -3
  58. package/dist/models/VirtualMachineDatastore.d.ts +66 -0
  59. package/dist/models/VirtualMachineDatastore.js +66 -0
  60. package/dist/models/VirtualMachineDetail.d.ts +13 -0
  61. package/dist/models/VirtualMachineDetail.js +9 -0
  62. package/dist/models/VirtualMachineDisk.d.ts +10 -0
  63. package/dist/models/VirtualMachineDisk.js +6 -0
  64. package/dist/models/VirtualMachineNIC.d.ts +16 -0
  65. package/dist/models/VirtualMachineNIC.js +8 -0
  66. package/dist/models/index.d.ts +6 -1
  67. package/dist/models/index.js +6 -1
  68. package/docs/CollectedInventory.md +34 -0
  69. package/docs/Datastore.md +6 -0
  70. package/docs/GroupResponse.md +1 -1
  71. package/docs/Host.md +4 -0
  72. package/docs/HostPhysicalNIC.md +36 -0
  73. package/docs/HostStorageAdapter.md +49 -0
  74. package/docs/HostStorageLun.md +45 -0
  75. package/docs/InventoriesApi.md +4 -4
  76. package/docs/Inventory.md +12 -2
  77. package/docs/{Inventory1.md → RDMBacking.md} +7 -14
  78. package/docs/UpdateInventory.md +1 -1
  79. package/docs/VirtualMachineDatastore.md +53 -0
  80. package/docs/VirtualMachineDetail.md +6 -0
  81. package/docs/VirtualMachineDisk.md +4 -0
  82. package/docs/VirtualMachineNIC.md +8 -0
  83. package/package.json +1 -1
  84. package/src/apis/InventoriesApi.ts +14 -14
  85. package/src/models/CollectedInventory.ts +72 -0
  86. package/src/models/Datastore.ts +20 -2
  87. package/src/models/GroupResponse.ts +9 -9
  88. package/src/models/Host.ts +27 -0
  89. package/src/models/HostPhysicalNIC.ts +70 -0
  90. package/src/models/HostStorageAdapter.ts +105 -0
  91. package/src/models/HostStorageLun.ts +93 -0
  92. package/src/models/Inventory.ts +42 -11
  93. package/src/models/RDMBacking.ts +63 -0
  94. package/src/models/UpdateInventory.ts +9 -9
  95. package/src/models/VirtualMachineDatastore.ts +117 -0
  96. package/src/models/VirtualMachineDetail.ts +26 -0
  97. package/src/models/VirtualMachineDisk.ts +27 -0
  98. package/src/models/VirtualMachineNIC.ts +24 -0
  99. package/src/models/index.ts +6 -1
  100. package/dist/esm/models/Inventory1.d.ts +0 -49
  101. package/dist/esm/models/Inventory1.js +0 -55
  102. package/dist/models/Inventory1.d.ts +0 -49
  103. package/dist/models/Inventory1.js +0 -62
  104. package/src/models/Inventory1.ts +0 -97
@@ -31,6 +31,18 @@ export interface Datastore {
31
31
  *
32
32
  */
33
33
  type: string;
34
+ /**
35
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
36
+ */
37
+ backingDeviceIds?: Array<string>;
38
+ /**
39
+ * Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
40
+ */
41
+ filesystemType?: string;
42
+ /**
43
+ * VMFS major version when reported; omitted when unknown or not applicable
44
+ */
45
+ filesystemMajorVersion?: number;
34
46
  /**
35
47
  * Storage access category derived from Datastore.Type
36
48
  */
@@ -48,7 +60,7 @@ export interface Datastore {
48
60
  */
49
61
  freeCapacityGB: number;
50
62
  /**
51
- *
63
+ * Vendor reported by matching backing devices when available
52
64
  */
53
65
  vendor: string;
54
66
  /**
@@ -64,7 +76,7 @@ export interface Datastore {
64
76
  */
65
77
  protocolType: string;
66
78
  /**
67
- *
79
+ * Model reported by matching backing devices when available
68
80
  */
69
81
  model: string;
70
82
  /**
@@ -115,6 +127,9 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
115
127
  return {
116
128
 
117
129
  'type': json['type'],
130
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
131
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
132
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
118
133
  'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
119
134
  'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
120
135
  'totalCapacityGB': json['totalCapacityGB'],
@@ -141,6 +156,9 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
141
156
  return {
142
157
 
143
158
  'type': value['type'],
159
+ 'backingDeviceIds': value['backingDeviceIds'],
160
+ 'filesystemType': value['filesystemType'],
161
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
144
162
  'storageProtocol': value['storageProtocol'],
145
163
  'vsanSnapshotSupport': value['vsanSnapshotSupport'],
146
164
  'totalCapacityGB': value['totalCapacityGB'],
@@ -20,13 +20,13 @@ import {
20
20
  GroupToJSON,
21
21
  GroupToJSONTyped,
22
22
  } from './Group.js';
23
- import type { Inventory1 } from './Inventory1.js';
23
+ import type { Inventory } from './Inventory.js';
24
24
  import {
25
- Inventory1FromJSON,
26
- Inventory1FromJSONTyped,
27
- Inventory1ToJSON,
28
- Inventory1ToJSONTyped,
29
- } from './Inventory1.js';
25
+ InventoryFromJSON,
26
+ InventoryFromJSONTyped,
27
+ InventoryToJSON,
28
+ InventoryToJSONTyped,
29
+ } from './Inventory.js';
30
30
  import type { VirtualMachine } from './VirtualMachine.js';
31
31
  import {
32
32
  VirtualMachineFromJSON,
@@ -48,7 +48,7 @@ export interface GroupResponse {
48
48
  /**
49
49
  *
50
50
  */
51
- inventory?: Inventory1;
51
+ inventory?: Inventory;
52
52
  /**
53
53
  *
54
54
  */
@@ -90,7 +90,7 @@ export function GroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
90
90
  return {
91
91
 
92
92
  'group': GroupFromJSON(json['group']),
93
- 'inventory': json['inventory'] == null ? undefined : Inventory1FromJSON(json['inventory']),
93
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
94
94
  'vms': ((json['vms'] as Array<any>).map(VirtualMachineFromJSON)),
95
95
  'total': json['total'],
96
96
  'page': json['page'],
@@ -110,7 +110,7 @@ export function GroupResponseToJSONTyped(value?: GroupResponse | null, ignoreDis
110
110
  return {
111
111
 
112
112
  'group': GroupToJSON(value['group']),
113
- 'inventory': Inventory1ToJSON(value['inventory']),
113
+ 'inventory': InventoryToJSON(value['inventory']),
114
114
  'vms': ((value['vms'] as Array<any>).map(VirtualMachineToJSON)),
115
115
  'total': value['total'],
116
116
  'page': value['page'],
@@ -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
@@ -51,6 +66,14 @@ export interface Host {
51
66
  * Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
52
67
  */
53
68
  storageVmotionSupported?: boolean;
69
+ /**
70
+ * Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
71
+ */
72
+ storageAdapters?: Array<HostStorageAdapter>;
73
+ /**
74
+ * Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
75
+ */
76
+ storageLuns?: Array<HostStorageLun>;
54
77
  }
55
78
 
56
79
  /**
@@ -80,6 +103,8 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
80
103
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
81
104
  'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
82
105
  'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
106
+ 'storageAdapters': json['storageAdapters'] == null ? undefined : ((json['storageAdapters'] as Array<any>).map(HostStorageAdapterFromJSON)),
107
+ 'storageLuns': json['storageLuns'] == null ? undefined : ((json['storageLuns'] as Array<any>).map(HostStorageLunFromJSON)),
83
108
  };
84
109
  }
85
110
 
@@ -102,6 +127,8 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
102
127
  'memoryMB': value['memoryMB'],
103
128
  'vmotionSupported': value['vmotionSupported'],
104
129
  'storageVmotionSupported': value['storageVmotionSupported'],
130
+ 'storageAdapters': value['storageAdapters'] == null ? undefined : ((value['storageAdapters'] as Array<any>).map(HostStorageAdapterToJSON)),
131
+ 'storageLuns': value['storageLuns'] == null ? undefined : ((value['storageLuns'] as Array<any>).map(HostStorageLunToJSON)),
105
132
  };
106
133
  }
107
134
 
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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
+ *
18
+ * @export
19
+ * @interface HostPhysicalNIC
20
+ */
21
+ export interface HostPhysicalNIC {
22
+ /**
23
+ * Source physical NIC identity, scoped to the VM's host and collection.
24
+ */
25
+ id: string;
26
+ /**
27
+ * Reported link speed in Mbps; omitted when unknown. This is not measured throughput.
28
+ */
29
+ linkSpeedMbps?: number;
30
+ }
31
+
32
+ /**
33
+ * Check if a given object implements the HostPhysicalNIC interface.
34
+ */
35
+ export function instanceOfHostPhysicalNIC(value: object): value is HostPhysicalNIC {
36
+ if (!('id' in value) || value['id'] === undefined) return false;
37
+ return true;
38
+ }
39
+
40
+ export function HostPhysicalNICFromJSON(json: any): HostPhysicalNIC {
41
+ return HostPhysicalNICFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function HostPhysicalNICFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostPhysicalNIC {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'id': json['id'],
51
+ 'linkSpeedMbps': json['linkSpeedMbps'] == null ? undefined : json['linkSpeedMbps'],
52
+ };
53
+ }
54
+
55
+ export function HostPhysicalNICToJSON(json: any): HostPhysicalNIC {
56
+ return HostPhysicalNICToJSONTyped(json, false);
57
+ }
58
+
59
+ export function HostPhysicalNICToJSONTyped(value?: HostPhysicalNIC | null, ignoreDiscriminator: boolean = false): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+
64
+ return {
65
+
66
+ 'id': value['id'],
67
+ 'linkSpeedMbps': value['linkSpeedMbps'],
68
+ };
69
+ }
70
+
@@ -0,0 +1,105 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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
+
@@ -12,14 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
16
- import type { UpdateInventory } from './UpdateInventory.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
+ import type { InventoryData } from './InventoryData.js';
17
17
  import {
18
- UpdateInventoryFromJSON,
19
- UpdateInventoryFromJSONTyped,
20
- UpdateInventoryToJSON,
21
- UpdateInventoryToJSONTyped,
22
- } from './UpdateInventory.js';
18
+ InventoryDataFromJSON,
19
+ InventoryDataFromJSONTyped,
20
+ InventoryDataToJSON,
21
+ InventoryDataToJSONTyped,
22
+ } from './InventoryData.js';
23
23
 
24
24
  /**
25
25
  *
@@ -27,17 +27,38 @@ import {
27
27
  * @interface Inventory
28
28
  */
29
29
  export interface Inventory {
30
+ /**
31
+ * ID of the vCenter
32
+ */
33
+ vcenter_id: string;
34
+ /**
35
+ * Version of the vCenter api. For example "8.0.3.0"
36
+ */
37
+ vcenter_version?: string;
38
+ /**
39
+ * Map of cluster names to their inventory data
40
+ */
41
+ clusters: { [key: string]: InventoryData; };
30
42
  /**
31
43
  *
32
44
  */
33
- inventory: UpdateInventory;
45
+ vcenter?: InventoryData;
46
+ /**
47
+ * Timestamp when the inventory document was built
48
+ */
49
+ created_at?: Date;
50
+ /**
51
+ * 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.
52
+ */
53
+ collection_time?: Date | null;
34
54
  }
35
55
 
36
56
  /**
37
57
  * Check if a given object implements the Inventory interface.
38
58
  */
39
59
  export function instanceOfInventory(value: object): value is Inventory {
40
- if (!('inventory' in value) || value['inventory'] === undefined) return false;
60
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
61
+ if (!('clusters' in value) || value['clusters'] === undefined) return false;
41
62
  return true;
42
63
  }
43
64
 
@@ -51,7 +72,12 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
51
72
  }
52
73
  return {
53
74
 
54
- 'inventory': UpdateInventoryFromJSON(json['inventory']),
75
+ 'vcenter_id': json['vcenter_id'],
76
+ 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
77
+ 'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
78
+ 'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
79
+ 'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
80
+ 'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
55
81
  };
56
82
  }
57
83
 
@@ -66,7 +92,12 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
66
92
 
67
93
  return {
68
94
 
69
- 'inventory': UpdateInventoryToJSON(value['inventory']),
95
+ 'vcenter_id': value['vcenter_id'],
96
+ 'vcenter_version': value['vcenter_version'],
97
+ 'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
98
+ 'vcenter': InventoryDataToJSON(value['vcenter']),
99
+ 'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
100
+ 'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
70
101
  };
71
102
  }
72
103
 
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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 backing identity for an RDM disk; omitted when unavailable
18
+ * @export
19
+ * @interface RDMBacking
20
+ */
21
+ export interface RDMBacking {
22
+ /**
23
+ * LUN UUID reported directly by the RDM disk backing, when available
24
+ */
25
+ lunUuid?: string;
26
+ }
27
+
28
+ /**
29
+ * Check if a given object implements the RDMBacking interface.
30
+ */
31
+ export function instanceOfRDMBacking(value: object): value is RDMBacking {
32
+ return true;
33
+ }
34
+
35
+ export function RDMBackingFromJSON(json: any): RDMBacking {
36
+ return RDMBackingFromJSONTyped(json, false);
37
+ }
38
+
39
+ export function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMBacking {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+
45
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
46
+ };
47
+ }
48
+
49
+ export function RDMBackingToJSON(json: any): RDMBacking {
50
+ return RDMBackingToJSONTyped(json, false);
51
+ }
52
+
53
+ export function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscriminator: boolean = false): any {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+
58
+ return {
59
+
60
+ 'lunUuid': value['lunUuid'],
61
+ };
62
+ }
63
+
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
- import type { Inventory1 } from './Inventory1.js';
16
+ import type { Inventory } from './Inventory.js';
17
17
  import {
18
- Inventory1FromJSON,
19
- Inventory1FromJSONTyped,
20
- Inventory1ToJSON,
21
- Inventory1ToJSONTyped,
22
- } from './Inventory1.js';
18
+ InventoryFromJSON,
19
+ InventoryFromJSONTyped,
20
+ InventoryToJSON,
21
+ InventoryToJSONTyped,
22
+ } from './Inventory.js';
23
23
 
24
24
  /**
25
25
  *
@@ -34,7 +34,7 @@ export interface UpdateInventory {
34
34
  /**
35
35
  *
36
36
  */
37
- inventory: Inventory1;
37
+ inventory: Inventory;
38
38
  }
39
39
 
40
40
  /**
@@ -57,7 +57,7 @@ export function UpdateInventoryFromJSONTyped(json: any, ignoreDiscriminator: boo
57
57
  return {
58
58
 
59
59
  'agentId': json['agentId'],
60
- 'inventory': Inventory1FromJSON(json['inventory']),
60
+ 'inventory': InventoryFromJSON(json['inventory']),
61
61
  };
62
62
  }
63
63
 
@@ -73,7 +73,7 @@ export function UpdateInventoryToJSONTyped(value?: UpdateInventory | null, ignor
73
73
  return {
74
74
 
75
75
  'agentId': value['agentId'],
76
- 'inventory': Inventory1ToJSON(value['inventory']),
76
+ 'inventory': InventoryToJSON(value['inventory']),
77
77
  };
78
78
  }
79
79