@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
@@ -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,15 @@ docs/GroupsApi.md
48
49
  docs/GuestNetwork.md
49
50
  docs/Histogram.md
50
51
  docs/Host.md
52
+ docs/HostPhysicalNIC.md
53
+ docs/HostStorageAdapter.md
54
+ docs/HostStorageLun.md
51
55
  docs/Infra.md
52
56
  docs/InspectionStatus.md
53
57
  docs/InspectorApi.md
54
58
  docs/InspectorStatus.md
55
59
  docs/InventoriesApi.md
56
60
  docs/Inventory.md
57
- docs/Inventory1.md
58
61
  docs/InventoryData.md
59
62
  docs/IssuesBreakdown.md
60
63
  docs/MigrationIssue.md
@@ -124,6 +127,7 @@ src/models/CapabilityStatus.ts
124
127
  src/models/CapabilityStatusCapabilities.ts
125
128
  src/models/ClusterFeatures.ts
126
129
  src/models/ClusterUtilization.ts
130
+ src/models/CollectedInventory.ts
127
131
  src/models/Collection.ts
128
132
  src/models/CollectionAggregate.ts
129
133
  src/models/CollectionComparisonDiff.ts
@@ -151,11 +155,13 @@ src/models/GroupResponse.ts
151
155
  src/models/GuestNetwork.ts
152
156
  src/models/Histogram.ts
153
157
  src/models/Host.ts
158
+ src/models/HostPhysicalNIC.ts
159
+ src/models/HostStorageAdapter.ts
160
+ src/models/HostStorageLun.ts
154
161
  src/models/Infra.ts
155
162
  src/models/InspectionStatus.ts
156
163
  src/models/InspectorStatus.ts
157
164
  src/models/Inventory.ts
158
- src/models/Inventory1.ts
159
165
  src/models/InventoryData.ts
160
166
  src/models/IssuesBreakdown.ts
161
167
  src/models/MigrationIssue.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.31.0
1
+ # @openshift-migration-advisor/agent-sdk@0.32.0
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,13 @@ 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
+ - [HostPhysicalNIC](docs/HostPhysicalNIC.md)
150
+ - [HostStorageAdapter](docs/HostStorageAdapter.md)
151
+ - [HostStorageLun](docs/HostStorageLun.md)
148
152
  - [Infra](docs/Infra.md)
149
153
  - [InspectionStatus](docs/InspectionStatus.md)
150
154
  - [InspectorStatus](docs/InspectorStatus.md)
151
155
  - [Inventory](docs/Inventory.md)
152
- - [Inventory1](docs/Inventory1.md)
153
156
  - [InventoryData](docs/InventoryData.md)
154
157
  - [IssuesBreakdown](docs/IssuesBreakdown.md)
155
158
  - [MigrationIssue](docs/MigrationIssue.md)
@@ -202,7 +205,7 @@ and is automatically generated by the
202
205
  [OpenAPI Generator](https://openapi-generator.tech) project:
203
206
 
204
207
  - API version: `v2`
205
- - Package version: `0.31.0`
208
+ - Package version: `0.32.0`
206
209
  - Generator version: `7.28.0-SNAPSHOT`
207
210
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
208
211
 
@@ -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,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,45 @@
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 HostPhysicalNIC interface.
16
+ */
17
+ export function instanceOfHostPhysicalNIC(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function HostPhysicalNICFromJSON(json) {
23
+ return HostPhysicalNICFromJSONTyped(json, false);
24
+ }
25
+ export function HostPhysicalNICFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'id': json['id'],
31
+ 'linkSpeedMbps': json['linkSpeedMbps'] == null ? undefined : json['linkSpeedMbps'],
32
+ };
33
+ }
34
+ export function HostPhysicalNICToJSON(json) {
35
+ return HostPhysicalNICToJSONTyped(json, false);
36
+ }
37
+ export function HostPhysicalNICToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'id': value['id'],
43
+ 'linkSpeedMbps': value['linkSpeedMbps'],
44
+ };
45
+ }
@@ -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
+ }