@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0

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 (79) hide show
  1. package/.openapi-generator/FILES +8 -2
  2. package/README.md +6 -3
  3. package/dist/apis/InventoriesApi.d.ts +9 -9
  4. package/dist/apis/InventoriesApi.js +3 -3
  5. package/dist/esm/apis/InventoriesApi.d.ts +9 -9
  6. package/dist/esm/apis/InventoriesApi.js +3 -3
  7. package/dist/esm/models/CollectedInventory.d.ts +31 -0
  8. package/dist/esm/models/CollectedInventory.js +44 -0
  9. package/dist/esm/models/GroupResponse.d.ts +2 -2
  10. package/dist/esm/models/GroupResponse.js +3 -3
  11. package/dist/esm/models/Host.d.ts +10 -0
  12. package/dist/esm/models/Host.js +6 -0
  13. package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
  14. package/dist/esm/models/HostPhysicalNIC.js +45 -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/Inventory.d.ts +24 -2
  20. package/dist/esm/models/Inventory.js +17 -4
  21. package/dist/esm/models/UpdateInventory.d.ts +2 -2
  22. package/dist/esm/models/UpdateInventory.js +3 -3
  23. package/dist/esm/models/VirtualMachineDetail.d.ts +9 -0
  24. package/dist/esm/models/VirtualMachineDetail.js +5 -0
  25. package/dist/esm/models/VirtualMachineNIC.d.ts +12 -0
  26. package/dist/esm/models/VirtualMachineNIC.js +6 -0
  27. package/dist/esm/models/index.d.ts +4 -1
  28. package/dist/esm/models/index.js +4 -1
  29. package/dist/models/CollectedInventory.d.ts +31 -0
  30. package/dist/models/CollectedInventory.js +51 -0
  31. package/dist/models/GroupResponse.d.ts +2 -2
  32. package/dist/models/GroupResponse.js +3 -3
  33. package/dist/models/Host.d.ts +10 -0
  34. package/dist/models/Host.js +6 -0
  35. package/dist/models/HostPhysicalNIC.d.ts +34 -0
  36. package/dist/models/HostPhysicalNIC.js +52 -0
  37. package/dist/models/HostStorageAdapter.d.ts +58 -0
  38. package/dist/models/HostStorageAdapter.js +62 -0
  39. package/dist/models/HostStorageLun.d.ts +50 -0
  40. package/dist/models/HostStorageLun.js +58 -0
  41. package/dist/models/Inventory.d.ts +24 -2
  42. package/dist/models/Inventory.js +17 -4
  43. package/dist/models/UpdateInventory.d.ts +2 -2
  44. package/dist/models/UpdateInventory.js +3 -3
  45. package/dist/models/VirtualMachineDetail.d.ts +9 -0
  46. package/dist/models/VirtualMachineDetail.js +5 -0
  47. package/dist/models/VirtualMachineNIC.d.ts +12 -0
  48. package/dist/models/VirtualMachineNIC.js +6 -0
  49. package/dist/models/index.d.ts +4 -1
  50. package/dist/models/index.js +4 -1
  51. package/docs/{Inventory1.md → CollectedInventory.md} +6 -16
  52. package/docs/GroupResponse.md +1 -1
  53. package/docs/Host.md +4 -0
  54. package/docs/HostPhysicalNIC.md +36 -0
  55. package/docs/HostStorageAdapter.md +49 -0
  56. package/docs/HostStorageLun.md +45 -0
  57. package/docs/InventoriesApi.md +4 -4
  58. package/docs/Inventory.md +12 -2
  59. package/docs/UpdateInventory.md +1 -1
  60. package/docs/VirtualMachineDetail.md +4 -0
  61. package/docs/VirtualMachineNIC.md +6 -0
  62. package/package.json +1 -1
  63. package/src/apis/InventoriesApi.ts +14 -14
  64. package/src/models/CollectedInventory.ts +72 -0
  65. package/src/models/GroupResponse.ts +9 -9
  66. package/src/models/Host.ts +27 -0
  67. package/src/models/HostPhysicalNIC.ts +70 -0
  68. package/src/models/HostStorageAdapter.ts +105 -0
  69. package/src/models/HostStorageLun.ts +93 -0
  70. package/src/models/Inventory.ts +42 -11
  71. package/src/models/UpdateInventory.ts +9 -9
  72. package/src/models/VirtualMachineDetail.ts +19 -0
  73. package/src/models/VirtualMachineNIC.ts +18 -0
  74. package/src/models/index.ts +4 -1
  75. package/dist/esm/models/Inventory1.d.ts +0 -53
  76. package/dist/esm/models/Inventory1.js +0 -57
  77. package/dist/models/Inventory1.d.ts +0 -53
  78. package/dist/models/Inventory1.js +0 -64
  79. package/src/models/Inventory1.ts +0 -103
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
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
+ * 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
+ * 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
+ }
@@ -9,17 +9,39 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { UpdateInventory } from './UpdateInventory.js';
12
+ import type { InventoryData } from './InventoryData.js';
13
13
  /**
14
14
  *
15
15
  * @export
16
16
  * @interface Inventory
17
17
  */
18
18
  export interface Inventory {
19
+ /**
20
+ * ID of the vCenter
21
+ */
22
+ vcenter_id: string;
23
+ /**
24
+ * Version of the vCenter api. For example "8.0.3.0"
25
+ */
26
+ vcenter_version?: string;
27
+ /**
28
+ * Map of cluster names to their inventory data
29
+ */
30
+ clusters: {
31
+ [key: string]: InventoryData;
32
+ };
19
33
  /**
20
34
  *
21
35
  */
22
- inventory: UpdateInventory;
36
+ vcenter?: InventoryData;
37
+ /**
38
+ * Timestamp when the inventory document was built
39
+ */
40
+ created_at?: 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
+ collection_time?: Date | null;
23
45
  }
24
46
  /**
25
47
  * Check if a given object implements the Inventory interface.
@@ -11,12 +11,15 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { UpdateInventoryFromJSON, UpdateInventoryToJSON, } from './UpdateInventory.js';
14
+ import { mapValues, parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
15
16
  /**
16
17
  * Check if a given object implements the Inventory interface.
17
18
  */
18
19
  export function instanceOfInventory(value) {
19
- if (!('inventory' in value) || value['inventory'] === undefined)
20
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
21
+ return false;
22
+ if (!('clusters' in value) || value['clusters'] === undefined)
20
23
  return false;
21
24
  return true;
22
25
  }
@@ -28,7 +31,12 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
28
31
  return json;
29
32
  }
30
33
  return {
31
- 'inventory': UpdateInventoryFromJSON(json['inventory']),
34
+ 'vcenter_id': json['vcenter_id'],
35
+ 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
36
+ 'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
37
+ 'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
38
+ 'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
39
+ 'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
32
40
  };
33
41
  }
34
42
  export function InventoryToJSON(json) {
@@ -39,6 +47,11 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
39
47
  return value;
40
48
  }
41
49
  return {
42
- 'inventory': UpdateInventoryToJSON(value['inventory']),
50
+ 'vcenter_id': value['vcenter_id'],
51
+ 'vcenter_version': value['vcenter_version'],
52
+ 'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
53
+ 'vcenter': InventoryDataToJSON(value['vcenter']),
54
+ 'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
55
+ 'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
43
56
  };
44
57
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Inventory1 } from './Inventory1.js';
12
+ import type { Inventory } from './Inventory.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -23,7 +23,7 @@ export interface UpdateInventory {
23
23
  /**
24
24
  *
25
25
  */
26
- inventory: Inventory1;
26
+ inventory: Inventory;
27
27
  }
28
28
  /**
29
29
  * Check if a given object implements the UpdateInventory interface.
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { Inventory1FromJSON, Inventory1ToJSON, } from './Inventory1.js';
14
+ import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
15
15
  /**
16
16
  * Check if a given object implements the UpdateInventory interface.
17
17
  */
@@ -31,7 +31,7 @@ export function UpdateInventoryFromJSONTyped(json, ignoreDiscriminator) {
31
31
  }
32
32
  return {
33
33
  'agentId': json['agentId'],
34
- 'inventory': Inventory1FromJSON(json['inventory']),
34
+ 'inventory': InventoryFromJSON(json['inventory']),
35
35
  };
36
36
  }
37
37
  export function UpdateInventoryToJSON(json) {
@@ -43,6 +43,6 @@ export function UpdateInventoryToJSONTyped(value, ignoreDiscriminator = false) {
43
43
  }
44
44
  return {
45
45
  'agentId': value['agentId'],
46
- 'inventory': Inventory1ToJSON(value['inventory']),
46
+ 'inventory': InventoryToJSON(value['inventory']),
47
47
  };
48
48
  }
@@ -14,6 +14,7 @@ import type { InspectionStatus } from './InspectionStatus.js';
14
14
  import type { GuestNetwork } from './GuestNetwork.js';
15
15
  import type { VirtualMachineIssue } from './VirtualMachineIssue.js';
16
16
  import type { VirtualMachineDevice } from './VirtualMachineDevice.js';
17
+ import type { HostPhysicalNIC } from './HostPhysicalNIC.js';
17
18
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
18
19
  import type { Process } from './Process.js';
19
20
  import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
@@ -32,6 +33,10 @@ export interface VirtualMachineDetail {
32
33
  * Display name of the VirtualMachine
33
34
  */
34
35
  name: string;
36
+ /**
37
+ * Free-text notes/description for the VirtualMachine in vSphere
38
+ */
39
+ annotation?: string;
35
40
  /**
36
41
  * Identifier of the vCenter this VirtualMachine belongs to
37
42
  */
@@ -150,6 +155,10 @@ export interface VirtualMachineDetail {
150
155
  *
151
156
  */
152
157
  disks: Array<VirtualMachineDisk>;
158
+ /**
159
+ * Physical NICs reported on the VM's host. An empty array means no records were retained.
160
+ */
161
+ hostPhysicalNics?: Array<HostPhysicalNIC>;
153
162
  /**
154
163
  * Adapter count reported by the source; 0 when unavailable
155
164
  */
@@ -16,6 +16,7 @@ import { InspectionStatusFromJSON, InspectionStatusToJSON, } from './InspectionS
16
16
  import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
17
17
  import { VirtualMachineIssueFromJSON, VirtualMachineIssueToJSON, } from './VirtualMachineIssue.js';
18
18
  import { VirtualMachineDeviceFromJSON, VirtualMachineDeviceToJSON, } from './VirtualMachineDevice.js';
19
+ import { HostPhysicalNICFromJSON, HostPhysicalNICToJSON, } from './HostPhysicalNIC.js';
19
20
  import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
20
21
  import { ProcessFromJSON, ProcessToJSON, } from './Process.js';
21
22
  import { VirtualMachineDiskFromJSON, VirtualMachineDiskToJSON, } from './VirtualMachineDisk.js';
@@ -58,6 +59,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
58
59
  return {
59
60
  'id': json['id'],
60
61
  'name': json['name'],
62
+ 'annotation': json['annotation'] == null ? undefined : json['annotation'],
61
63
  'vCenterID': json['vCenterID'],
62
64
  'uuid': json['uuid'] == null ? undefined : json['uuid'],
63
65
  'firmware': json['firmware'] == null ? undefined : json['firmware'],
@@ -87,6 +89,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
87
89
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
88
90
  'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
89
91
  'disks': (json['disks'].map(VirtualMachineDiskFromJSON)),
92
+ 'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : (json['hostPhysicalNics'].map(HostPhysicalNICFromJSON)),
90
93
  'nicCount': json['nicCount'],
91
94
  'nics': (json['nics'].map(VirtualMachineNICFromJSON)),
92
95
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDeviceFromJSON)),
@@ -107,6 +110,7 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
107
110
  return {
108
111
  'id': value['id'],
109
112
  'name': value['name'],
113
+ 'annotation': value['annotation'],
110
114
  'vCenterID': value['vCenterID'],
111
115
  'uuid': value['uuid'],
112
116
  'firmware': value['firmware'],
@@ -135,6 +139,7 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
135
139
  'toolsStatus': value['toolsStatus'],
136
140
  'toolsRunningStatus': value['toolsRunningStatus'],
137
141
  'disks': (value['disks'].map(VirtualMachineDiskToJSON)),
142
+ 'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : (value['hostPhysicalNics'].map(HostPhysicalNICToJSON)),
138
143
  'nicCount': value['nicCount'],
139
144
  'nics': (value['nics'].map(VirtualMachineNICToJSON)),
140
145
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDeviceToJSON)),
@@ -19,6 +19,18 @@ export interface VirtualMachineNIC {
19
19
  * Virtual adapter model, such as Vmxnet3 or E1000
20
20
  */
21
21
  adapter?: string;
22
+ /**
23
+ * Port-group VLAN configuration when supplied; empty when unknown.
24
+ */
25
+ vlanId?: string;
26
+ /**
27
+ * IPv4 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
28
+ */
29
+ ipv4Addresses?: Array<string>;
30
+ /**
31
+ * IPv6 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
32
+ */
33
+ ipv6Addresses?: Array<string>;
22
34
  /**
23
35
  * MAC address
24
36
  */
@@ -26,6 +26,9 @@ export function VirtualMachineNICFromJSONTyped(json, ignoreDiscriminator) {
26
26
  }
27
27
  return {
28
28
  'adapter': json['adapter'] == null ? undefined : json['adapter'],
29
+ 'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
30
+ 'ipv4Addresses': json['ipv4Addresses'] == null ? undefined : json['ipv4Addresses'],
31
+ 'ipv6Addresses': json['ipv6Addresses'] == null ? undefined : json['ipv6Addresses'],
29
32
  'mac': json['mac'] == null ? undefined : json['mac'],
30
33
  'network': json['network'] == null ? undefined : json['network'],
31
34
  'index': json['index'] == null ? undefined : json['index'],
@@ -40,6 +43,9 @@ export function VirtualMachineNICToJSONTyped(value, ignoreDiscriminator = false)
40
43
  }
41
44
  return {
42
45
  'adapter': value['adapter'],
46
+ 'vlanId': value['vlanId'],
47
+ 'ipv4Addresses': value['ipv4Addresses'],
48
+ 'ipv6Addresses': value['ipv6Addresses'],
43
49
  'mac': value['mac'],
44
50
  'network': value['network'],
45
51
  'index': value['index'],
@@ -10,6 +10,7 @@ export * from './CapabilityStatus.js';
10
10
  export * from './CapabilityStatusCapabilities.js';
11
11
  export * from './ClusterFeatures.js';
12
12
  export * from './ClusterUtilization.js';
13
+ export * from './CollectedInventory.js';
13
14
  export * from './Collection.js';
14
15
  export * from './CollectionAggregate.js';
15
16
  export * from './CollectionComparisonDiff.js';
@@ -37,11 +38,13 @@ export * from './GroupResponse.js';
37
38
  export * from './GuestNetwork.js';
38
39
  export * from './Histogram.js';
39
40
  export * from './Host.js';
41
+ export * from './HostPhysicalNIC.js';
42
+ export * from './HostStorageAdapter.js';
43
+ export * from './HostStorageLun.js';
40
44
  export * from './Infra.js';
41
45
  export * from './InspectionStatus.js';
42
46
  export * from './InspectorStatus.js';
43
47
  export * from './Inventory.js';
44
- export * from './Inventory1.js';
45
48
  export * from './InventoryData.js';
46
49
  export * from './IssuesBreakdown.js';
47
50
  export * from './MigrationIssue.js';
@@ -12,6 +12,7 @@ export * from './CapabilityStatus.js';
12
12
  export * from './CapabilityStatusCapabilities.js';
13
13
  export * from './ClusterFeatures.js';
14
14
  export * from './ClusterUtilization.js';
15
+ export * from './CollectedInventory.js';
15
16
  export * from './Collection.js';
16
17
  export * from './CollectionAggregate.js';
17
18
  export * from './CollectionComparisonDiff.js';
@@ -39,11 +40,13 @@ export * from './GroupResponse.js';
39
40
  export * from './GuestNetwork.js';
40
41
  export * from './Histogram.js';
41
42
  export * from './Host.js';
43
+ export * from './HostPhysicalNIC.js';
44
+ export * from './HostStorageAdapter.js';
45
+ export * from './HostStorageLun.js';
42
46
  export * from './Infra.js';
43
47
  export * from './InspectionStatus.js';
44
48
  export * from './InspectorStatus.js';
45
49
  export * from './Inventory.js';
46
- export * from './Inventory1.js';
47
50
  export * from './InventoryData.js';
48
51
  export * from './IssuesBreakdown.js';
49
52
  export * from './MigrationIssue.js';
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
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 { UpdateInventory } from './UpdateInventory.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CollectedInventory
17
+ */
18
+ export interface CollectedInventory {
19
+ /**
20
+ *
21
+ */
22
+ inventory: UpdateInventory;
23
+ }
24
+ /**
25
+ * Check if a given object implements the CollectedInventory interface.
26
+ */
27
+ export declare function instanceOfCollectedInventory(value: object): value is CollectedInventory;
28
+ export declare function CollectedInventoryFromJSON(json: any): CollectedInventory;
29
+ export declare function CollectedInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectedInventory;
30
+ export declare function CollectedInventoryToJSON(json: any): CollectedInventory;
31
+ export declare function CollectedInventoryToJSONTyped(value?: CollectedInventory | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCollectedInventory = instanceOfCollectedInventory;
17
+ exports.CollectedInventoryFromJSON = CollectedInventoryFromJSON;
18
+ exports.CollectedInventoryFromJSONTyped = CollectedInventoryFromJSONTyped;
19
+ exports.CollectedInventoryToJSON = CollectedInventoryToJSON;
20
+ exports.CollectedInventoryToJSONTyped = CollectedInventoryToJSONTyped;
21
+ const UpdateInventory_js_1 = require("./UpdateInventory.js");
22
+ /**
23
+ * Check if a given object implements the CollectedInventory interface.
24
+ */
25
+ function instanceOfCollectedInventory(value) {
26
+ if (!('inventory' in value) || value['inventory'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function CollectedInventoryFromJSON(json) {
31
+ return CollectedInventoryFromJSONTyped(json, false);
32
+ }
33
+ function CollectedInventoryFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'inventory': (0, UpdateInventory_js_1.UpdateInventoryFromJSON)(json['inventory']),
39
+ };
40
+ }
41
+ function CollectedInventoryToJSON(json) {
42
+ return CollectedInventoryToJSONTyped(json, false);
43
+ }
44
+ function CollectedInventoryToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'inventory': (0, UpdateInventory_js_1.UpdateInventoryToJSON)(value['inventory']),
50
+ };
51
+ }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Group } from './Group.js';
13
- import type { Inventory1 } from './Inventory1.js';
13
+ import type { Inventory } from './Inventory.js';
14
14
  import type { VirtualMachine } from './VirtualMachine.js';
15
15
  /**
16
16
  *
@@ -25,7 +25,7 @@ export interface GroupResponse {
25
25
  /**
26
26
  *
27
27
  */
28
- inventory?: Inventory1;
28
+ inventory?: Inventory;
29
29
  /**
30
30
  *
31
31
  */
@@ -19,7 +19,7 @@ exports.GroupResponseFromJSONTyped = GroupResponseFromJSONTyped;
19
19
  exports.GroupResponseToJSON = GroupResponseToJSON;
20
20
  exports.GroupResponseToJSONTyped = GroupResponseToJSONTyped;
21
21
  const Group_js_1 = require("./Group.js");
22
- const Inventory1_js_1 = require("./Inventory1.js");
22
+ const Inventory_js_1 = require("./Inventory.js");
23
23
  const VirtualMachine_js_1 = require("./VirtualMachine.js");
24
24
  /**
25
25
  * Check if a given object implements the GroupResponse interface.
@@ -46,7 +46,7 @@ function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
46
46
  }
47
47
  return {
48
48
  'group': (0, Group_js_1.GroupFromJSON)(json['group']),
49
- 'inventory': json['inventory'] == null ? undefined : (0, Inventory1_js_1.Inventory1FromJSON)(json['inventory']),
49
+ 'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
50
50
  'vms': (json['vms'].map(VirtualMachine_js_1.VirtualMachineFromJSON)),
51
51
  'total': json['total'],
52
52
  'page': json['page'],
@@ -62,7 +62,7 @@ function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
62
62
  }
63
63
  return {
64
64
  'group': (0, Group_js_1.GroupToJSON)(value['group']),
65
- 'inventory': (0, Inventory1_js_1.Inventory1ToJSON)(value['inventory']),
65
+ 'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
66
66
  'vms': (value['vms'].map(VirtualMachine_js_1.VirtualMachineToJSON)),
67
67
  'total': value['total'],
68
68
  'page': value['page'],
@@ -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.
@@ -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
  */
@@ -44,6 +46,8 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
45
47
  'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
46
48
  'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
49
+ 'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterFromJSON)),
50
+ 'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLun_js_1.HostStorageLunFromJSON)),
47
51
  };
48
52
  }
49
53
  function HostToJSON(json) {
@@ -62,5 +66,7 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
62
66
  'memoryMB': value['memoryMB'],
63
67
  'vmotionSupported': value['vmotionSupported'],
64
68
  'storageVmotionSupported': value['storageVmotionSupported'],
69
+ 'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterToJSON)),
70
+ 'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLun_js_1.HostStorageLunToJSON)),
65
71
  };
66
72
  }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
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
+ * @interface HostPhysicalNIC
16
+ */
17
+ export interface HostPhysicalNIC {
18
+ /**
19
+ * Source physical NIC identity, scoped to the VM's host and collection.
20
+ */
21
+ id: string;
22
+ /**
23
+ * Reported link speed in Mbps; omitted when unknown. This is not measured throughput.
24
+ */
25
+ linkSpeedMbps?: number;
26
+ }
27
+ /**
28
+ * Check if a given object implements the HostPhysicalNIC interface.
29
+ */
30
+ export declare function instanceOfHostPhysicalNIC(value: object): value is HostPhysicalNIC;
31
+ export declare function HostPhysicalNICFromJSON(json: any): HostPhysicalNIC;
32
+ export declare function HostPhysicalNICFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostPhysicalNIC;
33
+ export declare function HostPhysicalNICToJSON(json: any): HostPhysicalNIC;
34
+ export declare function HostPhysicalNICToJSONTyped(value?: HostPhysicalNIC | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfHostPhysicalNIC = instanceOfHostPhysicalNIC;
17
+ exports.HostPhysicalNICFromJSON = HostPhysicalNICFromJSON;
18
+ exports.HostPhysicalNICFromJSONTyped = HostPhysicalNICFromJSONTyped;
19
+ exports.HostPhysicalNICToJSON = HostPhysicalNICToJSON;
20
+ exports.HostPhysicalNICToJSONTyped = HostPhysicalNICToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HostPhysicalNIC interface.
23
+ */
24
+ function instanceOfHostPhysicalNIC(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function HostPhysicalNICFromJSON(json) {
30
+ return HostPhysicalNICFromJSONTyped(json, false);
31
+ }
32
+ function HostPhysicalNICFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': json['id'],
38
+ 'linkSpeedMbps': json['linkSpeedMbps'] == null ? undefined : json['linkSpeedMbps'],
39
+ };
40
+ }
41
+ function HostPhysicalNICToJSON(json) {
42
+ return HostPhysicalNICToJSONTyped(json, false);
43
+ }
44
+ function HostPhysicalNICToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'id': value['id'],
50
+ 'linkSpeedMbps': value['linkSpeedMbps'],
51
+ };
52
+ }