@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,49 @@
1
+
2
+ # HostStorageAdapter
3
+
4
+ Source-provided adapter facts. Missing or conflicting values are omitted.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `device` | string
11
+ `key` | string
12
+ `type` | string
13
+ `protocol` | string
14
+ `model` | string
15
+ `driver` | string
16
+ `nodeWwn` | string
17
+ `portWwn` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { HostStorageAdapter } from '@openshift-migration-advisor/agent-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "device": null,
27
+ "key": null,
28
+ "type": null,
29
+ "protocol": null,
30
+ "model": null,
31
+ "driver": null,
32
+ "nodeWwn": null,
33
+ "portWwn": null,
34
+ } satisfies HostStorageAdapter
35
+
36
+ console.log(example)
37
+
38
+ // Convert the instance to a JSON string
39
+ const exampleJSON: string = JSON.stringify(example)
40
+ console.log(exampleJSON)
41
+
42
+ // Parse the JSON string back to an object
43
+ const exampleParsed = JSON.parse(exampleJSON) as HostStorageAdapter
44
+ console.log(exampleParsed)
45
+ ```
46
+
47
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
48
+
49
+
@@ -0,0 +1,45 @@
1
+
2
+ # HostStorageLun
3
+
4
+ A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `canonicalName` | string
11
+ `key` | string
12
+ `lunUuid` | string
13
+ `vendor` | string
14
+ `model` | string
15
+ `adapterDevices` | Array<string>
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { HostStorageLun } from '@openshift-migration-advisor/agent-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "canonicalName": null,
25
+ "key": null,
26
+ "lunUuid": null,
27
+ "vendor": null,
28
+ "model": null,
29
+ "adapterDevices": null,
30
+ } satisfies HostStorageLun
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as HostStorageLun
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+
@@ -11,7 +11,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
11
11
 
12
12
  ## getInventory
13
13
 
14
- > Inventory getInventory(id)
14
+ > CollectedInventory getInventory(id)
15
15
 
16
16
  Get collected inventory for a collection
17
17
 
@@ -54,7 +54,7 @@ example().catch(console.error);
54
54
 
55
55
  ### Return type
56
56
 
57
- [**Inventory**](Inventory.md)
57
+ [**CollectedInventory**](CollectedInventory.md)
58
58
 
59
59
  ### Authorization
60
60
 
@@ -78,7 +78,7 @@ No authorization required
78
78
 
79
79
  ## getLatestInventory
80
80
 
81
- > Inventory getLatestInventory(scope)
81
+ > CollectedInventory getLatestInventory(scope)
82
82
 
83
83
  Get inventory from the latest collection
84
84
 
@@ -121,7 +121,7 @@ example().catch(console.error);
121
121
 
122
122
  ### Return type
123
123
 
124
- [**Inventory**](Inventory.md)
124
+ [**CollectedInventory**](CollectedInventory.md)
125
125
 
126
126
  ### Authorization
127
127
 
package/docs/Inventory.md CHANGED
@@ -6,7 +6,12 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `inventory` | [UpdateInventory](UpdateInventory.md)
9
+ `vcenter_id` | string
10
+ `vcenter_version` | string
11
+ `clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
12
+ `vcenter` | [InventoryData](InventoryData.md)
13
+ `created_at` | Date
14
+ `collection_time` | Date
10
15
 
11
16
  ## Example
12
17
 
@@ -15,7 +20,12 @@ import type { Inventory } from '@openshift-migration-advisor/agent-sdk'
15
20
 
16
21
  // TODO: Update the object below with actual values
17
22
  const example = {
18
- "inventory": null,
23
+ "vcenter_id": null,
24
+ "vcenter_version": null,
25
+ "clusters": null,
26
+ "vcenter": null,
27
+ "created_at": null,
28
+ "collection_time": null,
19
29
  } satisfies Inventory
20
30
 
21
31
  console.log(example)
@@ -7,7 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `agentId` | string
10
- `inventory` | [Inventory1](Inventory1.md)
10
+ `inventory` | [Inventory](Inventory.md)
11
11
 
12
12
  ## Example
13
13
 
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
10
  `name` | string
11
+ `annotation` | string
11
12
  `vCenterID` | string
12
13
  `uuid` | string
13
14
  `firmware` | string
@@ -37,6 +38,7 @@ Name | Type
37
38
  `toolsStatus` | string
38
39
  `toolsRunningStatus` | string
39
40
  `disks` | [Array<VirtualMachineDisk>](VirtualMachineDisk.md)
41
+ `hostPhysicalNics` | [Array<HostPhysicalNIC>](HostPhysicalNIC.md)
40
42
  `nicCount` | number
41
43
  `nics` | [Array<VirtualMachineNIC>](VirtualMachineNIC.md)
42
44
  `devices` | [Array<VirtualMachineDevice>](VirtualMachineDevice.md)
@@ -55,6 +57,7 @@ import type { VirtualMachineDetail } from '@openshift-migration-advisor/agent-sd
55
57
  const example = {
56
58
  "id": null,
57
59
  "name": null,
60
+ "annotation": null,
58
61
  "vCenterID": null,
59
62
  "uuid": null,
60
63
  "firmware": null,
@@ -84,6 +87,7 @@ const example = {
84
87
  "toolsStatus": null,
85
88
  "toolsRunningStatus": null,
86
89
  "disks": null,
90
+ "hostPhysicalNics": null,
87
91
  "nicCount": null,
88
92
  "nics": null,
89
93
  "devices": null,
@@ -7,6 +7,9 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `adapter` | string
10
+ `vlanId` | string
11
+ `ipv4Addresses` | Array<string>
12
+ `ipv6Addresses` | Array<string>
10
13
  `mac` | string
11
14
  `network` | string
12
15
  `index` | number
@@ -19,6 +22,9 @@ import type { VirtualMachineNIC } from '@openshift-migration-advisor/agent-sdk'
19
22
  // TODO: Update the object below with actual values
20
23
  const example = {
21
24
  "adapter": null,
25
+ "vlanId": null,
26
+ "ipv4Addresses": null,
27
+ "ipv6Addresses": null,
22
28
  "mac": null,
23
29
  "network": null,
24
30
  "index": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -14,10 +14,10 @@
14
14
 
15
15
  import * as runtime from '../runtime.js';
16
16
  import {
17
- type Inventory,
18
- InventoryFromJSON,
19
- InventoryToJSON,
20
- } from '../models/Inventory.js';
17
+ type CollectedInventory,
18
+ CollectedInventoryFromJSON,
19
+ CollectedInventoryToJSON,
20
+ } from '../models/CollectedInventory.js';
21
21
 
22
22
  export interface GetInventoryRequest {
23
23
  /**
@@ -56,12 +56,12 @@ export interface InventoriesApiInterface {
56
56
  * @throws {RequiredError}
57
57
  * @memberof InventoriesApiInterface
58
58
  */
59
- getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
59
+ getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
60
60
 
61
61
  /**
62
62
  * Get collected inventory for a collection
63
63
  */
64
- getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
64
+ getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
65
65
 
66
66
  /**
67
67
  * Creates request options for getLatestInventory without sending the request
@@ -79,12 +79,12 @@ export interface InventoriesApiInterface {
79
79
  * @throws {RequiredError}
80
80
  * @memberof InventoriesApiInterface
81
81
  */
82
- getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
82
+ getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
83
83
 
84
84
  /**
85
85
  * Get inventory from the latest collection
86
86
  */
87
- getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
87
+ getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
88
88
 
89
89
  }
90
90
 
@@ -123,17 +123,17 @@ export class InventoriesApi extends runtime.BaseAPI implements InventoriesApiInt
123
123
  /**
124
124
  * Get collected inventory for a collection
125
125
  */
126
- async getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>> {
126
+ async getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>> {
127
127
  const requestOptions = await this.getInventoryRequestOpts(requestParameters);
128
128
  const response = await this.request(requestOptions, initOverrides);
129
129
 
130
- return new runtime.JSONApiResponse(response, (jsonValue) => InventoryFromJSON(jsonValue));
130
+ return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
131
131
  }
132
132
 
133
133
  /**
134
134
  * Get collected inventory for a collection
135
135
  */
136
- async getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory> {
136
+ async getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory> {
137
137
  const response = await this.getInventoryRaw(requestParameters, initOverrides);
138
138
  return await response.value();
139
139
  }
@@ -164,17 +164,17 @@ export class InventoriesApi extends runtime.BaseAPI implements InventoriesApiInt
164
164
  /**
165
165
  * Get inventory from the latest collection
166
166
  */
167
- async getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>> {
167
+ async getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>> {
168
168
  const requestOptions = await this.getLatestInventoryRequestOpts(requestParameters);
169
169
  const response = await this.request(requestOptions, initOverrides);
170
170
 
171
- return new runtime.JSONApiResponse(response, (jsonValue) => InventoryFromJSON(jsonValue));
171
+ return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
172
172
  }
173
173
 
174
174
  /**
175
175
  * Get inventory from the latest collection
176
176
  */
177
- async getLatestInventory(requestParameters: GetLatestInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory> {
177
+ async getLatestInventory(requestParameters: GetLatestInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory> {
178
178
  const response = await this.getLatestInventoryRaw(requestParameters, initOverrides);
179
179
  return await response.value();
180
180
  }
@@ -0,0 +1,72 @@
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
+ import type { UpdateInventory } from './UpdateInventory.js';
17
+ import {
18
+ UpdateInventoryFromJSON,
19
+ UpdateInventoryFromJSONTyped,
20
+ UpdateInventoryToJSON,
21
+ UpdateInventoryToJSONTyped,
22
+ } from './UpdateInventory.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CollectedInventory
28
+ */
29
+ export interface CollectedInventory {
30
+ /**
31
+ *
32
+ */
33
+ inventory: UpdateInventory;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CollectedInventory interface.
38
+ */
39
+ export function instanceOfCollectedInventory(value: object): value is CollectedInventory {
40
+ if (!('inventory' in value) || value['inventory'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function CollectedInventoryFromJSON(json: any): CollectedInventory {
45
+ return CollectedInventoryFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function CollectedInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectedInventory {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'inventory': UpdateInventoryFromJSON(json['inventory']),
55
+ };
56
+ }
57
+
58
+ export function CollectedInventoryToJSON(json: any): CollectedInventory {
59
+ return CollectedInventoryToJSONTyped(json, false);
60
+ }
61
+
62
+ export function CollectedInventoryToJSONTyped(value?: CollectedInventory | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'inventory': UpdateInventoryToJSON(value['inventory']),
70
+ };
71
+ }
72
+
@@ -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
+