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

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 (103) hide show
  1. package/.openapi-generator/FILES +10 -2
  2. package/README.md +7 -4
  3. package/dist/apis/CollectorApi.d.ts +0 -38
  4. package/dist/apis/CollectorApi.js +0 -59
  5. package/dist/apis/InventoriesApi.d.ts +9 -9
  6. package/dist/apis/InventoriesApi.js +3 -3
  7. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  8. package/dist/esm/apis/CollectorApi.js +0 -59
  9. package/dist/esm/apis/InventoriesApi.d.ts +9 -9
  10. package/dist/esm/apis/InventoriesApi.js +3 -3
  11. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  12. package/dist/esm/models/ApplicationOverview.js +12 -0
  13. package/dist/esm/models/CollectedInventory.d.ts +31 -0
  14. package/dist/esm/models/CollectedInventory.js +44 -0
  15. package/dist/esm/models/GroupResponse.d.ts +2 -2
  16. package/dist/esm/models/GroupResponse.js +3 -3
  17. package/dist/esm/models/Host.d.ts +10 -0
  18. package/dist/esm/models/Host.js +6 -0
  19. package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
  20. package/dist/esm/models/HostPhysicalNIC.js +45 -0
  21. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  22. package/dist/esm/models/HostStorageAdapter.js +55 -0
  23. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  24. package/dist/esm/models/HostStorageLun.js +51 -0
  25. package/dist/esm/models/Inventory.d.ts +24 -2
  26. package/dist/esm/models/Inventory.js +17 -4
  27. package/dist/esm/models/OsInfo.d.ts +12 -0
  28. package/dist/esm/models/OsInfo.js +9 -0
  29. package/dist/esm/models/Product.d.ts +66 -0
  30. package/dist/esm/models/Product.js +61 -0
  31. package/dist/esm/models/UpdateInventory.d.ts +2 -2
  32. package/dist/esm/models/UpdateInventory.js +3 -3
  33. package/dist/esm/models/VirtualMachineDetail.d.ts +14 -0
  34. package/dist/esm/models/VirtualMachineDetail.js +8 -0
  35. package/dist/esm/models/VirtualMachineNIC.d.ts +12 -0
  36. package/dist/esm/models/VirtualMachineNIC.js +6 -0
  37. package/dist/esm/models/index.d.ts +5 -1
  38. package/dist/esm/models/index.js +5 -1
  39. package/dist/models/ApplicationOverview.d.ts +16 -0
  40. package/dist/models/ApplicationOverview.js +12 -0
  41. package/dist/models/CollectedInventory.d.ts +31 -0
  42. package/dist/models/CollectedInventory.js +51 -0
  43. package/dist/models/GroupResponse.d.ts +2 -2
  44. package/dist/models/GroupResponse.js +3 -3
  45. package/dist/models/Host.d.ts +10 -0
  46. package/dist/models/Host.js +6 -0
  47. package/dist/models/HostPhysicalNIC.d.ts +34 -0
  48. package/dist/models/HostPhysicalNIC.js +52 -0
  49. package/dist/models/HostStorageAdapter.d.ts +58 -0
  50. package/dist/models/HostStorageAdapter.js +62 -0
  51. package/dist/models/HostStorageLun.d.ts +50 -0
  52. package/dist/models/HostStorageLun.js +58 -0
  53. package/dist/models/Inventory.d.ts +24 -2
  54. package/dist/models/Inventory.js +17 -4
  55. package/dist/models/OsInfo.d.ts +12 -0
  56. package/dist/models/OsInfo.js +10 -1
  57. package/dist/models/Product.d.ts +66 -0
  58. package/dist/models/Product.js +68 -0
  59. package/dist/models/UpdateInventory.d.ts +2 -2
  60. package/dist/models/UpdateInventory.js +3 -3
  61. package/dist/models/VirtualMachineDetail.d.ts +14 -0
  62. package/dist/models/VirtualMachineDetail.js +8 -0
  63. package/dist/models/VirtualMachineNIC.d.ts +12 -0
  64. package/dist/models/VirtualMachineNIC.js +6 -0
  65. package/dist/models/index.d.ts +5 -1
  66. package/dist/models/index.js +5 -1
  67. package/docs/ApplicationOverview.md +8 -0
  68. package/docs/{Inventory1.md → CollectedInventory.md} +6 -16
  69. package/docs/CollectorApi.md +0 -70
  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/OsInfo.md +2 -0
  78. package/docs/Product.md +52 -0
  79. package/docs/UpdateInventory.md +1 -1
  80. package/docs/VirtualMachineDetail.md +6 -0
  81. package/docs/VirtualMachineNIC.md +6 -0
  82. package/package.json +1 -1
  83. package/src/apis/CollectorApi.ts +0 -97
  84. package/src/apis/InventoriesApi.ts +14 -14
  85. package/src/models/ApplicationOverview.ts +26 -0
  86. package/src/models/CollectedInventory.ts +72 -0
  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/OsInfo.ts +15 -0
  94. package/src/models/Product.ts +118 -0
  95. package/src/models/UpdateInventory.ts +9 -9
  96. package/src/models/VirtualMachineDetail.ts +32 -0
  97. package/src/models/VirtualMachineNIC.ts +18 -0
  98. package/src/models/index.ts +5 -1
  99. package/dist/esm/models/Inventory1.d.ts +0 -53
  100. package/dist/esm/models/Inventory1.js +0 -57
  101. package/dist/models/Inventory1.d.ts +0 -53
  102. package/dist/models/Inventory1.js +0 -64
  103. 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
@@ -64,6 +67,7 @@ docs/OsInfo.md
64
67
  docs/PairCapability.md
65
68
  docs/PairCapabilityRequest.md
66
69
  docs/Process.md
70
+ docs/Product.md
67
71
  docs/RDMBacking.md
68
72
  docs/RightsizingApi.md
69
73
  docs/RightsizingClusterResponse.md
@@ -124,6 +128,7 @@ src/models/CapabilityStatus.ts
124
128
  src/models/CapabilityStatusCapabilities.ts
125
129
  src/models/ClusterFeatures.ts
126
130
  src/models/ClusterUtilization.ts
131
+ src/models/CollectedInventory.ts
127
132
  src/models/Collection.ts
128
133
  src/models/CollectionAggregate.ts
129
134
  src/models/CollectionComparisonDiff.ts
@@ -151,11 +156,13 @@ src/models/GroupResponse.ts
151
156
  src/models/GuestNetwork.ts
152
157
  src/models/Histogram.ts
153
158
  src/models/Host.ts
159
+ src/models/HostPhysicalNIC.ts
160
+ src/models/HostStorageAdapter.ts
161
+ src/models/HostStorageLun.ts
154
162
  src/models/Infra.ts
155
163
  src/models/InspectionStatus.ts
156
164
  src/models/InspectorStatus.ts
157
165
  src/models/Inventory.ts
158
- src/models/Inventory1.ts
159
166
  src/models/InventoryData.ts
160
167
  src/models/IssuesBreakdown.ts
161
168
  src/models/MigrationIssue.ts
@@ -165,6 +172,7 @@ src/models/OsInfo.ts
165
172
  src/models/PairCapability.ts
166
173
  src/models/PairCapabilityRequest.ts
167
174
  src/models/Process.ts
175
+ src/models/Product.ts
168
176
  src/models/RDMBacking.ts
169
177
  src/models/RightsizingClusterResponse.ts
170
178
  src/models/RightsizingClusterUtilization.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-41b526ed8c91
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -55,7 +55,6 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
55
55
  *CollectionsApi* | [**listCollections**](docs/CollectionsApi.md#listcollections) | **GET** /collections | List all collections
56
56
  *CollectorApi* | [**getCollectorStatus**](docs/CollectorApi.md#getcollectorstatus) | **GET** /collector | Get collector status
57
57
  *CollectorApi* | [**startCollector**](docs/CollectorApi.md#startcollector) | **POST** /collector | Start a collection
58
- *CollectorApi* | [**startRvtoolsCollector**](docs/CollectorApi.md#startrvtoolscollector) | **POST** /collector/rvtools | Start a collection from RVTools files
59
58
  *CollectorApi* | [**stopCollector**](docs/CollectorApi.md#stopcollector) | **DELETE** /collector | Stop collector
60
59
  *CredentialsApi* | [**deleteCredentials**](docs/CredentialsApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials
61
60
  *CredentialsApi* | [**getCredentialCapabilities**](docs/CredentialsApi.md#getcredentialcapabilities) | **GET** /credentials/capabilities | Check vSphere operation capabilities
@@ -118,6 +117,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
118
117
  - [CapabilityStatusCapabilities](docs/CapabilityStatusCapabilities.md)
119
118
  - [ClusterFeatures](docs/ClusterFeatures.md)
120
119
  - [ClusterUtilization](docs/ClusterUtilization.md)
120
+ - [CollectedInventory](docs/CollectedInventory.md)
121
121
  - [Collection](docs/Collection.md)
122
122
  - [CollectionAggregate](docs/CollectionAggregate.md)
123
123
  - [CollectionComparisonDiff](docs/CollectionComparisonDiff.md)
@@ -145,11 +145,13 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
145
145
  - [GuestNetwork](docs/GuestNetwork.md)
146
146
  - [Histogram](docs/Histogram.md)
147
147
  - [Host](docs/Host.md)
148
+ - [HostPhysicalNIC](docs/HostPhysicalNIC.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)
@@ -159,6 +161,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
159
161
  - [PairCapability](docs/PairCapability.md)
160
162
  - [PairCapabilityRequest](docs/PairCapabilityRequest.md)
161
163
  - [Process](docs/Process.md)
164
+ - [Product](docs/Product.md)
162
165
  - [RDMBacking](docs/RDMBacking.md)
163
166
  - [RightsizingClusterResponse](docs/RightsizingClusterResponse.md)
164
167
  - [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.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-41b526ed8c91`
206
209
  - Generator version: `7.28.0-SNAPSHOT`
207
210
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
208
211
 
@@ -11,12 +11,6 @@
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
13
  import { type CollectorStatus } from '../models/CollectorStatus.js';
14
- export interface StartRvtoolsCollectorRequest {
15
- /**
16
- *
17
- */
18
- files: Array<Blob>;
19
- }
20
14
  /**
21
15
  * CollectorApi - interface
22
16
  *
@@ -60,26 +54,6 @@ export interface CollectorApiInterface {
60
54
  * Start a collection
61
55
  */
62
56
  startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
63
- /**
64
- * Creates request options for startRvtoolsCollector without sending the request
65
- * @param {Array<Blob>} files
66
- * @throws {RequiredError}
67
- * @memberof CollectorApiInterface
68
- */
69
- startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
70
- /**
71
- *
72
- * @summary Start a collection from RVTools files
73
- * @param {Array<Blob>} files
74
- * @param {*} [options] Override http request option.
75
- * @throws {RequiredError}
76
- * @memberof CollectorApiInterface
77
- */
78
- startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
79
- /**
80
- * Start a collection from RVTools files
81
- */
82
- startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
83
57
  /**
84
58
  * Creates request options for stopCollector without sending the request
85
59
  * @throws {RequiredError}
@@ -127,18 +101,6 @@ export declare class CollectorApi extends runtime.BaseAPI implements CollectorAp
127
101
  * Start a collection
128
102
  */
129
103
  startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
130
- /**
131
- * Creates request options for startRvtoolsCollector without sending the request
132
- */
133
- startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
134
- /**
135
- * Start a collection from RVTools files
136
- */
137
- startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
138
- /**
139
- * Start a collection from RVTools files
140
- */
141
- startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
142
104
  /**
143
105
  * Creates request options for stopCollector without sending the request
144
106
  */
@@ -99,65 +99,6 @@ class CollectorApi extends runtime.BaseAPI {
99
99
  return yield response.value();
100
100
  });
101
101
  }
102
- /**
103
- * Creates request options for startRvtoolsCollector without sending the request
104
- */
105
- startRvtoolsCollectorRequestOpts(requestParameters) {
106
- return __awaiter(this, void 0, void 0, function* () {
107
- if (requestParameters['files'] == null) {
108
- throw new runtime.RequiredError('files', 'Required parameter "files" was null or undefined when calling startRvtoolsCollector().');
109
- }
110
- const queryParameters = {};
111
- const headerParameters = {};
112
- const consumes = [
113
- { contentType: 'multipart/form-data' },
114
- ];
115
- // @ts-ignore: canConsumeForm may be unused
116
- const canConsumeForm = runtime.canConsumeForm(consumes);
117
- let formParams;
118
- let useForm = false;
119
- // use FormData to transmit files using content-type "multipart/form-data"
120
- useForm = canConsumeForm;
121
- if (useForm) {
122
- formParams = new FormData();
123
- }
124
- else {
125
- formParams = new URLSearchParams();
126
- }
127
- if (requestParameters['files'] != null) {
128
- requestParameters['files'].forEach((element) => {
129
- formParams.append('files', element);
130
- });
131
- }
132
- let urlPath = `/collector/rvtools`;
133
- return {
134
- path: urlPath,
135
- method: 'POST',
136
- headers: headerParameters,
137
- query: queryParameters,
138
- body: formParams,
139
- };
140
- });
141
- }
142
- /**
143
- * Start a collection from RVTools files
144
- */
145
- startRvtoolsCollectorRaw(requestParameters, initOverrides) {
146
- return __awaiter(this, void 0, void 0, function* () {
147
- const requestOptions = yield this.startRvtoolsCollectorRequestOpts(requestParameters);
148
- const response = yield this.request(requestOptions, initOverrides);
149
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
150
- });
151
- }
152
- /**
153
- * Start a collection from RVTools files
154
- */
155
- startRvtoolsCollector(requestParameters, initOverrides) {
156
- return __awaiter(this, void 0, void 0, function* () {
157
- const response = yield this.startRvtoolsCollectorRaw(requestParameters, initOverrides);
158
- return yield response.value();
159
- });
160
- }
161
102
  /**
162
103
  * Creates request options for stopCollector without sending the request
163
104
  */
@@ -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
  /**
@@ -11,12 +11,6 @@
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
13
  import { type CollectorStatus } from '../models/CollectorStatus.js';
14
- export interface StartRvtoolsCollectorRequest {
15
- /**
16
- *
17
- */
18
- files: Array<Blob>;
19
- }
20
14
  /**
21
15
  * CollectorApi - interface
22
16
  *
@@ -60,26 +54,6 @@ export interface CollectorApiInterface {
60
54
  * Start a collection
61
55
  */
62
56
  startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
63
- /**
64
- * Creates request options for startRvtoolsCollector without sending the request
65
- * @param {Array<Blob>} files
66
- * @throws {RequiredError}
67
- * @memberof CollectorApiInterface
68
- */
69
- startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
70
- /**
71
- *
72
- * @summary Start a collection from RVTools files
73
- * @param {Array<Blob>} files
74
- * @param {*} [options] Override http request option.
75
- * @throws {RequiredError}
76
- * @memberof CollectorApiInterface
77
- */
78
- startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
79
- /**
80
- * Start a collection from RVTools files
81
- */
82
- startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
83
57
  /**
84
58
  * Creates request options for stopCollector without sending the request
85
59
  * @throws {RequiredError}
@@ -127,18 +101,6 @@ export declare class CollectorApi extends runtime.BaseAPI implements CollectorAp
127
101
  * Start a collection
128
102
  */
129
103
  startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
130
- /**
131
- * Creates request options for startRvtoolsCollector without sending the request
132
- */
133
- startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
134
- /**
135
- * Start a collection from RVTools files
136
- */
137
- startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
138
- /**
139
- * Start a collection from RVTools files
140
- */
141
- startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
142
104
  /**
143
105
  * Creates request options for stopCollector without sending the request
144
106
  */
@@ -96,65 +96,6 @@ export class CollectorApi extends runtime.BaseAPI {
96
96
  return yield response.value();
97
97
  });
98
98
  }
99
- /**
100
- * Creates request options for startRvtoolsCollector without sending the request
101
- */
102
- startRvtoolsCollectorRequestOpts(requestParameters) {
103
- return __awaiter(this, void 0, void 0, function* () {
104
- if (requestParameters['files'] == null) {
105
- throw new runtime.RequiredError('files', 'Required parameter "files" was null or undefined when calling startRvtoolsCollector().');
106
- }
107
- const queryParameters = {};
108
- const headerParameters = {};
109
- const consumes = [
110
- { contentType: 'multipart/form-data' },
111
- ];
112
- // @ts-ignore: canConsumeForm may be unused
113
- const canConsumeForm = runtime.canConsumeForm(consumes);
114
- let formParams;
115
- let useForm = false;
116
- // use FormData to transmit files using content-type "multipart/form-data"
117
- useForm = canConsumeForm;
118
- if (useForm) {
119
- formParams = new FormData();
120
- }
121
- else {
122
- formParams = new URLSearchParams();
123
- }
124
- if (requestParameters['files'] != null) {
125
- requestParameters['files'].forEach((element) => {
126
- formParams.append('files', element);
127
- });
128
- }
129
- let urlPath = `/collector/rvtools`;
130
- return {
131
- path: urlPath,
132
- method: 'POST',
133
- headers: headerParameters,
134
- query: queryParameters,
135
- body: formParams,
136
- };
137
- });
138
- }
139
- /**
140
- * Start a collection from RVTools files
141
- */
142
- startRvtoolsCollectorRaw(requestParameters, initOverrides) {
143
- return __awaiter(this, void 0, void 0, function* () {
144
- const requestOptions = yield this.startRvtoolsCollectorRequestOpts(requestParameters);
145
- const response = yield this.request(requestOptions, initOverrides);
146
- return new runtime.JSONApiResponse(response, (jsonValue) => CollectorStatusFromJSON(jsonValue));
147
- });
148
- }
149
- /**
150
- * Start a collection from RVTools files
151
- */
152
- startRvtoolsCollector(requestParameters, initOverrides) {
153
- return __awaiter(this, void 0, void 0, function* () {
154
- const response = yield this.startRvtoolsCollectorRaw(requestParameters, initOverrides);
155
- return yield response.value();
156
- });
157
- }
158
99
  /**
159
100
  * Creates request options for stopCollector without sending the request
160
101
  */
@@ -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
  /**
@@ -24,6 +24,22 @@ export interface ApplicationOverview {
24
24
  * Application description
25
25
  */
26
26
  description: string;
27
+ /**
28
+ * Application vendor
29
+ */
30
+ vendor: string;
31
+ /**
32
+ * Application category
33
+ */
34
+ category: string;
35
+ /**
36
+ * Detection confidence percentage; defaults to 0 when omitted
37
+ */
38
+ confidence?: number;
39
+ /**
40
+ * Whether the application has a known container deployment option
41
+ */
42
+ containerizationCandidate?: boolean;
27
43
  /**
28
44
  * Number of VMs running this application
29
45
  */
@@ -20,6 +20,10 @@ export function instanceOfApplicationOverview(value) {
20
20
  return false;
21
21
  if (!('description' in value) || value['description'] === undefined)
22
22
  return false;
23
+ if (!('vendor' in value) || value['vendor'] === undefined)
24
+ return false;
25
+ if (!('category' in value) || value['category'] === undefined)
26
+ return false;
23
27
  if (!('vmCount' in value) || value['vmCount'] === undefined)
24
28
  return false;
25
29
  if (!('vms' in value) || value['vms'] === undefined)
@@ -36,6 +40,10 @@ export function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
36
40
  return {
37
41
  'name': json['name'],
38
42
  'description': json['description'],
43
+ 'vendor': json['vendor'],
44
+ 'category': json['category'],
45
+ 'confidence': json['confidence'] == null ? undefined : json['confidence'],
46
+ 'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
39
47
  'vmCount': json['vmCount'],
40
48
  'vms': (json['vms'].map(ApplicationVMFromJSON)),
41
49
  };
@@ -50,6 +58,10 @@ export function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = fals
50
58
  return {
51
59
  'name': value['name'],
52
60
  'description': value['description'],
61
+ 'vendor': value['vendor'],
62
+ 'category': value['category'],
63
+ 'confidence': value['confidence'],
64
+ 'containerizationCandidate': value['containerizationCandidate'],
53
65
  'vmCount': value['vmCount'],
54
66
  'vms': (value['vms'].map(ApplicationVMToJSON)),
55
67
  };
@@ -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;