@openshift-migration-advisor/agent-sdk 0.30.0-d689d7b6eb5f → 0.31.0-8fbde84d9594

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 (61) hide show
  1. package/.openapi-generator/FILES +6 -2
  2. package/README.md +5 -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/HostStorageAdapter.d.ts +58 -0
  14. package/dist/esm/models/HostStorageAdapter.js +55 -0
  15. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  16. package/dist/esm/models/HostStorageLun.js +51 -0
  17. package/dist/esm/models/Inventory.d.ts +24 -2
  18. package/dist/esm/models/Inventory.js +17 -4
  19. package/dist/esm/models/UpdateInventory.d.ts +2 -2
  20. package/dist/esm/models/UpdateInventory.js +3 -3
  21. package/dist/esm/models/index.d.ts +3 -1
  22. package/dist/esm/models/index.js +3 -1
  23. package/dist/models/CollectedInventory.d.ts +31 -0
  24. package/dist/models/CollectedInventory.js +51 -0
  25. package/dist/models/GroupResponse.d.ts +2 -2
  26. package/dist/models/GroupResponse.js +3 -3
  27. package/dist/models/Host.d.ts +10 -0
  28. package/dist/models/Host.js +6 -0
  29. package/dist/models/HostStorageAdapter.d.ts +58 -0
  30. package/dist/models/HostStorageAdapter.js +62 -0
  31. package/dist/models/HostStorageLun.d.ts +50 -0
  32. package/dist/models/HostStorageLun.js +58 -0
  33. package/dist/models/Inventory.d.ts +24 -2
  34. package/dist/models/Inventory.js +17 -4
  35. package/dist/models/UpdateInventory.d.ts +2 -2
  36. package/dist/models/UpdateInventory.js +3 -3
  37. package/dist/models/index.d.ts +3 -1
  38. package/dist/models/index.js +3 -1
  39. package/docs/{Inventory1.md → CollectedInventory.md} +6 -16
  40. package/docs/GroupResponse.md +1 -1
  41. package/docs/Host.md +4 -0
  42. package/docs/HostStorageAdapter.md +49 -0
  43. package/docs/HostStorageLun.md +45 -0
  44. package/docs/InventoriesApi.md +4 -4
  45. package/docs/Inventory.md +12 -2
  46. package/docs/UpdateInventory.md +1 -1
  47. package/package.json +1 -1
  48. package/src/apis/InventoriesApi.ts +14 -14
  49. package/src/models/CollectedInventory.ts +72 -0
  50. package/src/models/GroupResponse.ts +9 -9
  51. package/src/models/Host.ts +27 -0
  52. package/src/models/HostStorageAdapter.ts +105 -0
  53. package/src/models/HostStorageLun.ts +93 -0
  54. package/src/models/Inventory.ts +42 -11
  55. package/src/models/UpdateInventory.ts +9 -9
  56. package/src/models/index.ts +3 -1
  57. package/dist/esm/models/Inventory1.d.ts +0 -53
  58. package/dist/esm/models/Inventory1.js +0 -57
  59. package/dist/models/Inventory1.d.ts +0 -53
  60. package/dist/models/Inventory1.js +0 -64
  61. package/src/models/Inventory1.ts +0 -103
@@ -16,6 +16,7 @@ docs/CapabilityStatus.md
16
16
  docs/CapabilityStatusCapabilities.md
17
17
  docs/ClusterFeatures.md
18
18
  docs/ClusterUtilization.md
19
+ docs/CollectedInventory.md
19
20
  docs/Collection.md
20
21
  docs/CollectionAggregate.md
21
22
  docs/CollectionComparisonDiff.md
@@ -48,13 +49,14 @@ docs/GroupsApi.md
48
49
  docs/GuestNetwork.md
49
50
  docs/Histogram.md
50
51
  docs/Host.md
52
+ docs/HostStorageAdapter.md
53
+ docs/HostStorageLun.md
51
54
  docs/Infra.md
52
55
  docs/InspectionStatus.md
53
56
  docs/InspectorApi.md
54
57
  docs/InspectorStatus.md
55
58
  docs/InventoriesApi.md
56
59
  docs/Inventory.md
57
- docs/Inventory1.md
58
60
  docs/InventoryData.md
59
61
  docs/IssuesBreakdown.md
60
62
  docs/MigrationIssue.md
@@ -124,6 +126,7 @@ src/models/CapabilityStatus.ts
124
126
  src/models/CapabilityStatusCapabilities.ts
125
127
  src/models/ClusterFeatures.ts
126
128
  src/models/ClusterUtilization.ts
129
+ src/models/CollectedInventory.ts
127
130
  src/models/Collection.ts
128
131
  src/models/CollectionAggregate.ts
129
132
  src/models/CollectionComparisonDiff.ts
@@ -151,11 +154,12 @@ src/models/GroupResponse.ts
151
154
  src/models/GuestNetwork.ts
152
155
  src/models/Histogram.ts
153
156
  src/models/Host.ts
157
+ src/models/HostStorageAdapter.ts
158
+ src/models/HostStorageLun.ts
154
159
  src/models/Infra.ts
155
160
  src/models/InspectionStatus.ts
156
161
  src/models/InspectorStatus.ts
157
162
  src/models/Inventory.ts
158
- src/models/Inventory1.ts
159
163
  src/models/InventoryData.ts
160
164
  src/models/IssuesBreakdown.ts
161
165
  src/models/MigrationIssue.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.30.0-d689d7b6eb5f
1
+ # @openshift-migration-advisor/agent-sdk@0.31.0-8fbde84d9594
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -118,6 +118,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
118
118
  - [CapabilityStatusCapabilities](docs/CapabilityStatusCapabilities.md)
119
119
  - [ClusterFeatures](docs/ClusterFeatures.md)
120
120
  - [ClusterUtilization](docs/ClusterUtilization.md)
121
+ - [CollectedInventory](docs/CollectedInventory.md)
121
122
  - [Collection](docs/Collection.md)
122
123
  - [CollectionAggregate](docs/CollectionAggregate.md)
123
124
  - [CollectionComparisonDiff](docs/CollectionComparisonDiff.md)
@@ -145,11 +146,12 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
145
146
  - [GuestNetwork](docs/GuestNetwork.md)
146
147
  - [Histogram](docs/Histogram.md)
147
148
  - [Host](docs/Host.md)
149
+ - [HostStorageAdapter](docs/HostStorageAdapter.md)
150
+ - [HostStorageLun](docs/HostStorageLun.md)
148
151
  - [Infra](docs/Infra.md)
149
152
  - [InspectionStatus](docs/InspectionStatus.md)
150
153
  - [InspectorStatus](docs/InspectorStatus.md)
151
154
  - [Inventory](docs/Inventory.md)
152
- - [Inventory1](docs/Inventory1.md)
153
155
  - [InventoryData](docs/InventoryData.md)
154
156
  - [IssuesBreakdown](docs/IssuesBreakdown.md)
155
157
  - [MigrationIssue](docs/MigrationIssue.md)
@@ -202,7 +204,7 @@ and is automatically generated by the
202
204
  [OpenAPI Generator](https://openapi-generator.tech) project:
203
205
 
204
206
  - API version: `v2`
205
- - Package version: `0.30.0-d689d7b6eb5f`
207
+ - Package version: `0.31.0-8fbde84d9594`
206
208
  - Generator version: `7.28.0-SNAPSHOT`
207
209
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
208
210
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import { type Inventory } from '../models/Inventory.js';
13
+ import { type CollectedInventory } from '../models/CollectedInventory.js';
14
14
  export interface GetInventoryRequest {
15
15
  /**
16
16
  * Collection ID
@@ -45,11 +45,11 @@ export interface InventoriesApiInterface {
45
45
  * @throws {RequiredError}
46
46
  * @memberof InventoriesApiInterface
47
47
  */
48
- getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
48
+ getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
49
49
  /**
50
50
  * Get collected inventory for a collection
51
51
  */
52
- getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
52
+ getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
53
53
  /**
54
54
  * Creates request options for getLatestInventory without sending the request
55
55
  * @param {'main' | 'all'} [scope] Selects which inventories to return. \&quot;main\&quot; (default) returns only the main inventory as JSON. \&quot;all\&quot; returns a ZIP bundle containing the main inventory (inventory.json) and every group subset inventory (subsets/&lt;groupId&gt;.json), for manual upload in disconnected environments.
@@ -65,11 +65,11 @@ export interface InventoriesApiInterface {
65
65
  * @throws {RequiredError}
66
66
  * @memberof InventoriesApiInterface
67
67
  */
68
- getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
68
+ getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
69
69
  /**
70
70
  * Get inventory from the latest collection
71
71
  */
72
- getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
72
+ getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
73
73
  }
74
74
  /**
75
75
  *
@@ -82,11 +82,11 @@ export declare class InventoriesApi extends runtime.BaseAPI implements Inventori
82
82
  /**
83
83
  * Get collected inventory for a collection
84
84
  */
85
- getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
85
+ getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
86
86
  /**
87
87
  * Get collected inventory for a collection
88
88
  */
89
- getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
89
+ getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
90
90
  /**
91
91
  * Creates request options for getLatestInventory without sending the request
92
92
  */
@@ -94,11 +94,11 @@ export declare class InventoriesApi extends runtime.BaseAPI implements Inventori
94
94
  /**
95
95
  * Get inventory from the latest collection
96
96
  */
97
- getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
97
+ getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
98
98
  /**
99
99
  * Get inventory from the latest collection
100
100
  */
101
- getLatestInventory(requestParameters?: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
101
+ getLatestInventory(requestParameters?: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
102
102
  }
103
103
  /**
104
104
  * @export
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.GetLatestInventoryScopeEnum = exports.InventoriesApi = void 0;
26
26
  const runtime = require("../runtime.js");
27
- const Inventory_js_1 = require("../models/Inventory.js");
27
+ const CollectedInventory_js_1 = require("../models/CollectedInventory.js");
28
28
  /**
29
29
  *
30
30
  */
@@ -56,7 +56,7 @@ class InventoriesApi extends runtime.BaseAPI {
56
56
  return __awaiter(this, void 0, void 0, function* () {
57
57
  const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
58
58
  const response = yield this.request(requestOptions, initOverrides);
59
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, Inventory_js_1.InventoryFromJSON)(jsonValue));
59
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectedInventory_js_1.CollectedInventoryFromJSON)(jsonValue));
60
60
  });
61
61
  }
62
62
  /**
@@ -94,7 +94,7 @@ class InventoriesApi extends runtime.BaseAPI {
94
94
  return __awaiter(this, void 0, void 0, function* () {
95
95
  const requestOptions = yield this.getLatestInventoryRequestOpts(requestParameters);
96
96
  const response = yield this.request(requestOptions, initOverrides);
97
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, Inventory_js_1.InventoryFromJSON)(jsonValue));
97
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectedInventory_js_1.CollectedInventoryFromJSON)(jsonValue));
98
98
  });
99
99
  }
100
100
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import { type Inventory } from '../models/Inventory.js';
13
+ import { type CollectedInventory } from '../models/CollectedInventory.js';
14
14
  export interface GetInventoryRequest {
15
15
  /**
16
16
  * Collection ID
@@ -45,11 +45,11 @@ export interface InventoriesApiInterface {
45
45
  * @throws {RequiredError}
46
46
  * @memberof InventoriesApiInterface
47
47
  */
48
- getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
48
+ getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
49
49
  /**
50
50
  * Get collected inventory for a collection
51
51
  */
52
- getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
52
+ getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
53
53
  /**
54
54
  * Creates request options for getLatestInventory without sending the request
55
55
  * @param {'main' | 'all'} [scope] Selects which inventories to return. \&quot;main\&quot; (default) returns only the main inventory as JSON. \&quot;all\&quot; returns a ZIP bundle containing the main inventory (inventory.json) and every group subset inventory (subsets/&lt;groupId&gt;.json), for manual upload in disconnected environments.
@@ -65,11 +65,11 @@ export interface InventoriesApiInterface {
65
65
  * @throws {RequiredError}
66
66
  * @memberof InventoriesApiInterface
67
67
  */
68
- getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
68
+ getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
69
69
  /**
70
70
  * Get inventory from the latest collection
71
71
  */
72
- getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
72
+ getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
73
73
  }
74
74
  /**
75
75
  *
@@ -82,11 +82,11 @@ export declare class InventoriesApi extends runtime.BaseAPI implements Inventori
82
82
  /**
83
83
  * Get collected inventory for a collection
84
84
  */
85
- getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
85
+ getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
86
86
  /**
87
87
  * Get collected inventory for a collection
88
88
  */
89
- getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
89
+ getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
90
90
  /**
91
91
  * Creates request options for getLatestInventory without sending the request
92
92
  */
@@ -94,11 +94,11 @@ export declare class InventoriesApi extends runtime.BaseAPI implements Inventori
94
94
  /**
95
95
  * Get inventory from the latest collection
96
96
  */
97
- getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
97
+ getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
98
98
  /**
99
99
  * Get inventory from the latest collection
100
100
  */
101
- getLatestInventory(requestParameters?: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
101
+ getLatestInventory(requestParameters?: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
102
102
  }
103
103
  /**
104
104
  * @export
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { InventoryFromJSON, } from '../models/Inventory.js';
24
+ import { CollectedInventoryFromJSON, } from '../models/CollectedInventory.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -53,7 +53,7 @@ export class InventoriesApi extends runtime.BaseAPI {
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
54
  const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
55
55
  const response = yield this.request(requestOptions, initOverrides);
56
- return new runtime.JSONApiResponse(response, (jsonValue) => InventoryFromJSON(jsonValue));
56
+ return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
57
57
  });
58
58
  }
59
59
  /**
@@ -91,7 +91,7 @@ export class InventoriesApi extends runtime.BaseAPI {
91
91
  return __awaiter(this, void 0, void 0, function* () {
92
92
  const requestOptions = yield this.getLatestInventoryRequestOpts(requestParameters);
93
93
  const response = yield this.request(requestOptions, initOverrides);
94
- return new runtime.JSONApiResponse(response, (jsonValue) => InventoryFromJSON(jsonValue));
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
95
95
  });
96
96
  }
97
97
  /**
@@ -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,44 @@
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
+ import { UpdateInventoryFromJSON, UpdateInventoryToJSON, } from './UpdateInventory.js';
15
+ /**
16
+ * Check if a given object implements the CollectedInventory interface.
17
+ */
18
+ export function instanceOfCollectedInventory(value) {
19
+ if (!('inventory' in value) || value['inventory'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function CollectedInventoryFromJSON(json) {
24
+ return CollectedInventoryFromJSONTyped(json, false);
25
+ }
26
+ export function CollectedInventoryFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'inventory': UpdateInventoryFromJSON(json['inventory']),
32
+ };
33
+ }
34
+ export function CollectedInventoryToJSON(json) {
35
+ return CollectedInventoryToJSONTyped(json, false);
36
+ }
37
+ export function CollectedInventoryToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'inventory': UpdateInventoryToJSON(value['inventory']),
43
+ };
44
+ }
@@ -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
  */
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { GroupFromJSON, GroupToJSON, } from './Group.js';
15
- import { Inventory1FromJSON, Inventory1ToJSON, } from './Inventory1.js';
15
+ import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
16
16
  import { VirtualMachineFromJSON, VirtualMachineToJSON, } from './VirtualMachine.js';
17
17
  /**
18
18
  * Check if a given object implements the GroupResponse interface.
@@ -39,7 +39,7 @@ export function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
39
39
  }
40
40
  return {
41
41
  'group': GroupFromJSON(json['group']),
42
- 'inventory': json['inventory'] == null ? undefined : Inventory1FromJSON(json['inventory']),
42
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
43
43
  'vms': (json['vms'].map(VirtualMachineFromJSON)),
44
44
  'total': json['total'],
45
45
  'page': json['page'],
@@ -55,7 +55,7 @@ export function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
55
  }
56
56
  return {
57
57
  'group': GroupToJSON(value['group']),
58
- 'inventory': Inventory1ToJSON(value['inventory']),
58
+ 'inventory': InventoryToJSON(value['inventory']),
59
59
  'vms': (value['vms'].map(VirtualMachineToJSON)),
60
60
  'total': value['total'],
61
61
  '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.
@@ -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
+ * 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
+ * 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
+ * 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 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
+ * 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
+ }