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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +9 -4
  4. package/dist/apis/InventoriesApi.d.ts +9 -9
  5. package/dist/apis/InventoriesApi.js +3 -3
  6. package/dist/esm/apis/InventoriesApi.d.ts +9 -9
  7. package/dist/esm/apis/InventoriesApi.js +3 -3
  8. package/dist/esm/models/CollectedInventory.d.ts +31 -0
  9. package/dist/esm/models/CollectedInventory.js +44 -0
  10. package/dist/esm/models/Datastore.d.ts +14 -2
  11. package/dist/esm/models/Datastore.js +6 -0
  12. package/dist/esm/models/GroupResponse.d.ts +2 -2
  13. package/dist/esm/models/GroupResponse.js +3 -3
  14. package/dist/esm/models/Host.d.ts +10 -0
  15. package/dist/esm/models/Host.js +6 -0
  16. package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
  17. package/dist/esm/models/HostPhysicalNIC.js +45 -0
  18. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  19. package/dist/esm/models/HostStorageAdapter.js +55 -0
  20. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  21. package/dist/esm/models/HostStorageLun.js +51 -0
  22. package/dist/esm/models/Inventory.d.ts +24 -2
  23. package/dist/esm/models/Inventory.js +17 -4
  24. package/dist/esm/models/RDMBacking.d.ts +30 -0
  25. package/dist/esm/models/RDMBacking.js +41 -0
  26. package/dist/esm/models/UpdateInventory.d.ts +2 -2
  27. package/dist/esm/models/UpdateInventory.js +3 -3
  28. package/dist/esm/models/VirtualMachineDatastore.d.ts +66 -0
  29. package/dist/esm/models/VirtualMachineDatastore.js +59 -0
  30. package/dist/esm/models/VirtualMachineDetail.d.ts +13 -0
  31. package/dist/esm/models/VirtualMachineDetail.js +9 -0
  32. package/dist/esm/models/VirtualMachineDisk.d.ts +10 -0
  33. package/dist/esm/models/VirtualMachineDisk.js +6 -0
  34. package/dist/esm/models/VirtualMachineNIC.d.ts +16 -0
  35. package/dist/esm/models/VirtualMachineNIC.js +8 -0
  36. package/dist/esm/models/index.d.ts +6 -1
  37. package/dist/esm/models/index.js +6 -1
  38. package/dist/models/CollectedInventory.d.ts +31 -0
  39. package/dist/models/CollectedInventory.js +51 -0
  40. package/dist/models/Datastore.d.ts +14 -2
  41. package/dist/models/Datastore.js +6 -0
  42. package/dist/models/GroupResponse.d.ts +2 -2
  43. package/dist/models/GroupResponse.js +3 -3
  44. package/dist/models/Host.d.ts +10 -0
  45. package/dist/models/Host.js +6 -0
  46. package/dist/models/HostPhysicalNIC.d.ts +34 -0
  47. package/dist/models/HostPhysicalNIC.js +52 -0
  48. package/dist/models/HostStorageAdapter.d.ts +58 -0
  49. package/dist/models/HostStorageAdapter.js +62 -0
  50. package/dist/models/HostStorageLun.d.ts +50 -0
  51. package/dist/models/HostStorageLun.js +58 -0
  52. package/dist/models/Inventory.d.ts +24 -2
  53. package/dist/models/Inventory.js +17 -4
  54. package/dist/models/RDMBacking.d.ts +30 -0
  55. package/dist/models/RDMBacking.js +48 -0
  56. package/dist/models/UpdateInventory.d.ts +2 -2
  57. package/dist/models/UpdateInventory.js +3 -3
  58. package/dist/models/VirtualMachineDatastore.d.ts +66 -0
  59. package/dist/models/VirtualMachineDatastore.js +66 -0
  60. package/dist/models/VirtualMachineDetail.d.ts +13 -0
  61. package/dist/models/VirtualMachineDetail.js +9 -0
  62. package/dist/models/VirtualMachineDisk.d.ts +10 -0
  63. package/dist/models/VirtualMachineDisk.js +6 -0
  64. package/dist/models/VirtualMachineNIC.d.ts +16 -0
  65. package/dist/models/VirtualMachineNIC.js +8 -0
  66. package/dist/models/index.d.ts +6 -1
  67. package/dist/models/index.js +6 -1
  68. package/docs/CollectedInventory.md +34 -0
  69. package/docs/Datastore.md +6 -0
  70. package/docs/GroupResponse.md +1 -1
  71. package/docs/Host.md +4 -0
  72. package/docs/HostPhysicalNIC.md +36 -0
  73. package/docs/HostStorageAdapter.md +49 -0
  74. package/docs/HostStorageLun.md +45 -0
  75. package/docs/InventoriesApi.md +4 -4
  76. package/docs/Inventory.md +12 -2
  77. package/docs/{Inventory1.md → RDMBacking.md} +7 -14
  78. package/docs/UpdateInventory.md +1 -1
  79. package/docs/VirtualMachineDatastore.md +53 -0
  80. package/docs/VirtualMachineDetail.md +6 -0
  81. package/docs/VirtualMachineDisk.md +4 -0
  82. package/docs/VirtualMachineNIC.md +8 -0
  83. package/package.json +1 -1
  84. package/src/apis/InventoriesApi.ts +14 -14
  85. package/src/models/CollectedInventory.ts +72 -0
  86. package/src/models/Datastore.ts +20 -2
  87. package/src/models/GroupResponse.ts +9 -9
  88. package/src/models/Host.ts +27 -0
  89. package/src/models/HostPhysicalNIC.ts +70 -0
  90. package/src/models/HostStorageAdapter.ts +105 -0
  91. package/src/models/HostStorageLun.ts +93 -0
  92. package/src/models/Inventory.ts +42 -11
  93. package/src/models/RDMBacking.ts +63 -0
  94. package/src/models/UpdateInventory.ts +9 -9
  95. package/src/models/VirtualMachineDatastore.ts +117 -0
  96. package/src/models/VirtualMachineDetail.ts +26 -0
  97. package/src/models/VirtualMachineDisk.ts +27 -0
  98. package/src/models/VirtualMachineNIC.ts +24 -0
  99. package/src/models/index.ts +6 -1
  100. package/dist/esm/models/Inventory1.d.ts +0 -49
  101. package/dist/esm/models/Inventory1.js +0 -55
  102. package/dist/models/Inventory1.d.ts +0 -49
  103. package/dist/models/Inventory1.js +0 -62
  104. package/src/models/Inventory1.ts +0 -97
@@ -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
@@ -64,6 +67,7 @@ docs/OsInfo.md
64
67
  docs/PairCapability.md
65
68
  docs/PairCapabilityRequest.md
66
69
  docs/Process.md
70
+ docs/RDMBacking.md
67
71
  docs/RightsizingApi.md
68
72
  docs/RightsizingClusterResponse.md
69
73
  docs/RightsizingClusterUtilization.md
@@ -84,6 +88,7 @@ docs/VddkProperties.md
84
88
  docs/VersionApi.md
85
89
  docs/VersionInfo.md
86
90
  docs/VirtualMachine.md
91
+ docs/VirtualMachineDatastore.md
87
92
  docs/VirtualMachineDetail.md
88
93
  docs/VirtualMachineDevice.md
89
94
  docs/VirtualMachineDisk.md
@@ -122,6 +127,7 @@ src/models/CapabilityStatus.ts
122
127
  src/models/CapabilityStatusCapabilities.ts
123
128
  src/models/ClusterFeatures.ts
124
129
  src/models/ClusterUtilization.ts
130
+ src/models/CollectedInventory.ts
125
131
  src/models/Collection.ts
126
132
  src/models/CollectionAggregate.ts
127
133
  src/models/CollectionComparisonDiff.ts
@@ -149,11 +155,13 @@ src/models/GroupResponse.ts
149
155
  src/models/GuestNetwork.ts
150
156
  src/models/Histogram.ts
151
157
  src/models/Host.ts
158
+ src/models/HostPhysicalNIC.ts
159
+ src/models/HostStorageAdapter.ts
160
+ src/models/HostStorageLun.ts
152
161
  src/models/Infra.ts
153
162
  src/models/InspectionStatus.ts
154
163
  src/models/InspectorStatus.ts
155
164
  src/models/Inventory.ts
156
- src/models/Inventory1.ts
157
165
  src/models/InventoryData.ts
158
166
  src/models/IssuesBreakdown.ts
159
167
  src/models/MigrationIssue.ts
@@ -163,6 +171,7 @@ src/models/OsInfo.ts
163
171
  src/models/PairCapability.ts
164
172
  src/models/PairCapabilityRequest.ts
165
173
  src/models/Process.ts
174
+ src/models/RDMBacking.ts
166
175
  src/models/RightsizingClusterResponse.ts
167
176
  src/models/RightsizingClusterUtilization.ts
168
177
  src/models/StartForecasterRequest.ts
@@ -181,6 +190,7 @@ src/models/VcenterCredentials.ts
181
190
  src/models/VddkProperties.ts
182
191
  src/models/VersionInfo.ts
183
192
  src/models/VirtualMachine.ts
193
+ src/models/VirtualMachineDatastore.ts
184
194
  src/models/VirtualMachineDetail.ts
185
195
  src/models/VirtualMachineDevice.ts
186
196
  src/models/VirtualMachineDisk.ts
@@ -1 +1 @@
1
- 7.27.0-SNAPSHOT
1
+ 7.28.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.30.0
1
+ # @openshift-migration-advisor/agent-sdk@0.31.0-ce8ec7f258cb
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)
@@ -159,6 +162,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
159
162
  - [PairCapability](docs/PairCapability.md)
160
163
  - [PairCapabilityRequest](docs/PairCapabilityRequest.md)
161
164
  - [Process](docs/Process.md)
165
+ - [RDMBacking](docs/RDMBacking.md)
162
166
  - [RightsizingClusterResponse](docs/RightsizingClusterResponse.md)
163
167
  - [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.md)
164
168
  - [StartForecasterRequest](docs/StartForecasterRequest.md)
@@ -177,6 +181,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
177
181
  - [VddkProperties](docs/VddkProperties.md)
178
182
  - [VersionInfo](docs/VersionInfo.md)
179
183
  - [VirtualMachine](docs/VirtualMachine.md)
184
+ - [VirtualMachineDatastore](docs/VirtualMachineDatastore.md)
180
185
  - [VirtualMachineDetail](docs/VirtualMachineDetail.md)
181
186
  - [VirtualMachineDevice](docs/VirtualMachineDevice.md)
182
187
  - [VirtualMachineDisk](docs/VirtualMachineDisk.md)
@@ -200,8 +205,8 @@ and is automatically generated by the
200
205
  [OpenAPI Generator](https://openapi-generator.tech) project:
201
206
 
202
207
  - API version: `v2`
203
- - Package version: `0.30.0`
204
- - Generator version: `7.27.0-SNAPSHOT`
208
+ - Package version: `0.31.0-ce8ec7f258cb`
209
+ - Generator version: `7.28.0-SNAPSHOT`
205
210
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
206
211
 
207
212
  The generated npm module supports the following:
@@ -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
+ }
@@ -20,6 +20,18 @@ export interface Datastore {
20
20
  *
21
21
  */
22
22
  type: string;
23
+ /**
24
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
25
+ */
26
+ backingDeviceIds?: Array<string>;
27
+ /**
28
+ * Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
29
+ */
30
+ filesystemType?: string;
31
+ /**
32
+ * VMFS major version when reported; omitted when unknown or not applicable
33
+ */
34
+ filesystemMajorVersion?: number;
23
35
  /**
24
36
  * Storage access category derived from Datastore.Type
25
37
  */
@@ -37,7 +49,7 @@ export interface Datastore {
37
49
  */
38
50
  freeCapacityGB: number;
39
51
  /**
40
- *
52
+ * Vendor reported by matching backing devices when available
41
53
  */
42
54
  vendor: string;
43
55
  /**
@@ -53,7 +65,7 @@ export interface Datastore {
53
65
  */
54
66
  protocolType: string;
55
67
  /**
56
- *
68
+ * Model reported by matching backing devices when available
57
69
  */
58
70
  model: string;
59
71
  /**
@@ -51,6 +51,9 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
51
51
  }
52
52
  return {
53
53
  'type': json['type'],
54
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
55
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
56
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
54
57
  'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
55
58
  'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
56
59
  'totalCapacityGB': json['totalCapacityGB'],
@@ -73,6 +76,9 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
73
76
  }
74
77
  return {
75
78
  'type': value['type'],
79
+ 'backingDeviceIds': value['backingDeviceIds'],
80
+ 'filesystemType': value['filesystemType'],
81
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
76
82
  'storageProtocol': value['storageProtocol'],
77
83
  'vsanSnapshotSupport': value['vsanSnapshotSupport'],
78
84
  'totalCapacityGB': value['totalCapacityGB'],
@@ -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
+ }