@openshift-migration-advisor/agent-sdk 0.16.0 → 0.17.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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +5 -2
- package/dist/apis/DefaultApi.d.ts +38 -0
- package/dist/apis/DefaultApi.js +40 -0
- package/dist/esm/apis/DefaultApi.d.ts +38 -0
- package/dist/esm/apis/DefaultApi.js +40 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -12
- package/dist/esm/models/CollectorStartRequest.js +5 -11
- package/dist/esm/models/Datastore.js +1 -1
- package/dist/esm/models/ExportInventory400Response.d.ts +32 -0
- package/dist/esm/models/ExportInventory400Response.js +41 -0
- package/dist/esm/models/ExportInventory500Response.d.ts +32 -0
- package/dist/esm/models/ExportInventory500Response.js +41 -0
- package/dist/esm/models/Host.js +3 -3
- package/dist/esm/models/OsInfo.d.ts +16 -0
- package/dist/esm/models/OsInfo.js +11 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/runtime.d.ts +1 -0
- package/dist/esm/runtime.js +4 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -12
- package/dist/models/CollectorStartRequest.js +5 -11
- package/dist/models/Datastore.js +1 -1
- package/dist/models/ExportInventory400Response.d.ts +32 -0
- package/dist/models/ExportInventory400Response.js +48 -0
- package/dist/models/ExportInventory500Response.d.ts +32 -0
- package/dist/models/ExportInventory500Response.js +48 -0
- package/dist/models/Host.js +3 -3
- package/dist/models/OsInfo.d.ts +16 -0
- package/dist/models/OsInfo.js +12 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +5 -0
- package/docs/CollectorStartRequest.md +3 -2
- package/docs/DefaultApi.md +70 -0
- package/docs/ExportInventory400Response.md +34 -0
- package/docs/ExportInventory500Response.md +34 -0
- package/docs/OsInfo.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +81 -0
- package/src/models/CollectorStartRequest.ts +17 -20
- package/src/models/Datastore.ts +1 -1
- package/src/models/ExportInventory400Response.ts +65 -0
- package/src/models/ExportInventory500Response.ts +65 -0
- package/src/models/Host.ts +3 -3
- package/src/models/OsInfo.ts +21 -0
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -24,6 +24,8 @@ docs/DeleteLabelGloballyResponse.md
|
|
|
24
24
|
docs/DiskSizeTierSummary.md
|
|
25
25
|
docs/DiskTypeSummary.md
|
|
26
26
|
docs/EstimateRange.md
|
|
27
|
+
docs/ExportInventory400Response.md
|
|
28
|
+
docs/ExportInventory500Response.md
|
|
27
29
|
docs/ForecastStats.md
|
|
28
30
|
docs/ForecasterDatastoresRequest.md
|
|
29
31
|
docs/ForecasterPairStatus.md
|
|
@@ -106,6 +108,8 @@ src/models/DeleteLabelGloballyResponse.ts
|
|
|
106
108
|
src/models/DiskSizeTierSummary.ts
|
|
107
109
|
src/models/DiskTypeSummary.ts
|
|
108
110
|
src/models/EstimateRange.ts
|
|
111
|
+
src/models/ExportInventory400Response.ts
|
|
112
|
+
src/models/ExportInventory500Response.ts
|
|
109
113
|
src/models/ForecastStats.ts
|
|
110
114
|
src/models/ForecasterDatastoresRequest.ts
|
|
111
115
|
src/models/ForecasterPairStatus.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.17.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -55,6 +55,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
55
55
|
*DefaultApi* | [**deleteForecasterRun**](docs/DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run
|
|
56
56
|
*DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group
|
|
57
57
|
*DefaultApi* | [**deleteLabelGlobally**](docs/DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs
|
|
58
|
+
*DefaultApi* | [**exportInventory**](docs/DefaultApi.md#exportinventory) | **GET** /export | Export VM inventory and migration planning data
|
|
58
59
|
*DefaultApi* | [**getAgentStatus**](docs/DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status
|
|
59
60
|
*DefaultApi* | [**getApplications**](docs/DefaultApi.md#getapplications) | **GET** /applications | List detected applications running on VMs
|
|
60
61
|
*DefaultApi* | [**getClusterUtilization**](docs/DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID
|
|
@@ -125,6 +126,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
125
126
|
- [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
|
|
126
127
|
- [DiskTypeSummary](docs/DiskTypeSummary.md)
|
|
127
128
|
- [EstimateRange](docs/EstimateRange.md)
|
|
129
|
+
- [ExportInventory400Response](docs/ExportInventory400Response.md)
|
|
130
|
+
- [ExportInventory500Response](docs/ExportInventory500Response.md)
|
|
128
131
|
- [ForecastStats](docs/ForecastStats.md)
|
|
129
132
|
- [ForecasterDatastoresRequest](docs/ForecasterDatastoresRequest.md)
|
|
130
133
|
- [ForecasterPairStatus](docs/ForecasterPairStatus.md)
|
|
@@ -195,7 +198,7 @@ and is automatically generated by the
|
|
|
195
198
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
196
199
|
|
|
197
200
|
- API version: `v1`
|
|
198
|
-
- Package version: `0.
|
|
201
|
+
- Package version: `0.17.0`
|
|
199
202
|
- Generator version: `7.24.0-SNAPSHOT`
|
|
200
203
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
201
204
|
|
|
@@ -64,6 +64,9 @@ export interface DeleteGroupRequest {
|
|
|
64
64
|
export interface DeleteLabelGloballyRequest {
|
|
65
65
|
label: string;
|
|
66
66
|
}
|
|
67
|
+
export interface ExportInventoryRequest {
|
|
68
|
+
scope?: string;
|
|
69
|
+
}
|
|
67
70
|
export interface GetClusterUtilizationRequest {
|
|
68
71
|
clusterId: string;
|
|
69
72
|
}
|
|
@@ -278,6 +281,27 @@ export interface DefaultApiInterface {
|
|
|
278
281
|
* Delete label from all VMs
|
|
279
282
|
*/
|
|
280
283
|
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
284
|
+
/**
|
|
285
|
+
* Creates request options for exportInventory without sending the request
|
|
286
|
+
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
* @memberof DefaultApiInterface
|
|
289
|
+
*/
|
|
290
|
+
exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
|
|
291
|
+
/**
|
|
292
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
293
|
+
* @summary Export VM inventory and migration planning data
|
|
294
|
+
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
* @memberof DefaultApiInterface
|
|
298
|
+
*/
|
|
299
|
+
exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
300
|
+
/**
|
|
301
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
302
|
+
* Export VM inventory and migration planning data
|
|
303
|
+
*/
|
|
304
|
+
exportInventory(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
281
305
|
/**
|
|
282
306
|
* Creates request options for getAgentStatus without sending the request
|
|
283
307
|
* @throws {RequiredError}
|
|
@@ -1265,6 +1289,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1265
1289
|
* Delete label from all VMs
|
|
1266
1290
|
*/
|
|
1267
1291
|
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Creates request options for exportInventory without sending the request
|
|
1294
|
+
*/
|
|
1295
|
+
exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
1298
|
+
* Export VM inventory and migration planning data
|
|
1299
|
+
*/
|
|
1300
|
+
exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
1301
|
+
/**
|
|
1302
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
1303
|
+
* Export VM inventory and migration planning data
|
|
1304
|
+
*/
|
|
1305
|
+
exportInventory(requestParameters?: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
1268
1306
|
/**
|
|
1269
1307
|
* Creates request options for getAgentStatus without sending the request
|
|
1270
1308
|
*/
|
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -261,6 +261,46 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
261
261
|
return yield response.value();
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
* Creates request options for exportInventory without sending the request
|
|
266
|
+
*/
|
|
267
|
+
exportInventoryRequestOpts(requestParameters) {
|
|
268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
269
|
+
const queryParameters = {};
|
|
270
|
+
if (requestParameters['scope'] != null) {
|
|
271
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
272
|
+
}
|
|
273
|
+
const headerParameters = {};
|
|
274
|
+
let urlPath = `/export`;
|
|
275
|
+
return {
|
|
276
|
+
path: urlPath,
|
|
277
|
+
method: 'GET',
|
|
278
|
+
headers: headerParameters,
|
|
279
|
+
query: queryParameters,
|
|
280
|
+
};
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
285
|
+
* Export VM inventory and migration planning data
|
|
286
|
+
*/
|
|
287
|
+
exportInventoryRaw(requestParameters, initOverrides) {
|
|
288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
+
const requestOptions = yield this.exportInventoryRequestOpts(requestParameters);
|
|
290
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
291
|
+
return new runtime.BlobApiResponse(response);
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
296
|
+
* Export VM inventory and migration planning data
|
|
297
|
+
*/
|
|
298
|
+
exportInventory() {
|
|
299
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
300
|
+
const response = yield this.exportInventoryRaw(requestParameters, initOverrides);
|
|
301
|
+
return yield response.value();
|
|
302
|
+
});
|
|
303
|
+
}
|
|
264
304
|
/**
|
|
265
305
|
* Creates request options for getAgentStatus without sending the request
|
|
266
306
|
*/
|
|
@@ -64,6 +64,9 @@ export interface DeleteGroupRequest {
|
|
|
64
64
|
export interface DeleteLabelGloballyRequest {
|
|
65
65
|
label: string;
|
|
66
66
|
}
|
|
67
|
+
export interface ExportInventoryRequest {
|
|
68
|
+
scope?: string;
|
|
69
|
+
}
|
|
67
70
|
export interface GetClusterUtilizationRequest {
|
|
68
71
|
clusterId: string;
|
|
69
72
|
}
|
|
@@ -278,6 +281,27 @@ export interface DefaultApiInterface {
|
|
|
278
281
|
* Delete label from all VMs
|
|
279
282
|
*/
|
|
280
283
|
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
284
|
+
/**
|
|
285
|
+
* Creates request options for exportInventory without sending the request
|
|
286
|
+
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
* @memberof DefaultApiInterface
|
|
289
|
+
*/
|
|
290
|
+
exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
|
|
291
|
+
/**
|
|
292
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
293
|
+
* @summary Export VM inventory and migration planning data
|
|
294
|
+
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
* @memberof DefaultApiInterface
|
|
298
|
+
*/
|
|
299
|
+
exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
300
|
+
/**
|
|
301
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
302
|
+
* Export VM inventory and migration planning data
|
|
303
|
+
*/
|
|
304
|
+
exportInventory(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
281
305
|
/**
|
|
282
306
|
* Creates request options for getAgentStatus without sending the request
|
|
283
307
|
* @throws {RequiredError}
|
|
@@ -1265,6 +1289,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1265
1289
|
* Delete label from all VMs
|
|
1266
1290
|
*/
|
|
1267
1291
|
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Creates request options for exportInventory without sending the request
|
|
1294
|
+
*/
|
|
1295
|
+
exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
1298
|
+
* Export VM inventory and migration planning data
|
|
1299
|
+
*/
|
|
1300
|
+
exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
1301
|
+
/**
|
|
1302
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
1303
|
+
* Export VM inventory and migration planning data
|
|
1304
|
+
*/
|
|
1305
|
+
exportInventory(requestParameters?: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
1268
1306
|
/**
|
|
1269
1307
|
* Creates request options for getAgentStatus without sending the request
|
|
1270
1308
|
*/
|
|
@@ -258,6 +258,46 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
258
258
|
return yield response.value();
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* Creates request options for exportInventory without sending the request
|
|
263
|
+
*/
|
|
264
|
+
exportInventoryRequestOpts(requestParameters) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
const queryParameters = {};
|
|
267
|
+
if (requestParameters['scope'] != null) {
|
|
268
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
269
|
+
}
|
|
270
|
+
const headerParameters = {};
|
|
271
|
+
let urlPath = `/export`;
|
|
272
|
+
return {
|
|
273
|
+
path: urlPath,
|
|
274
|
+
method: 'GET',
|
|
275
|
+
headers: headerParameters,
|
|
276
|
+
query: queryParameters,
|
|
277
|
+
};
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
282
|
+
* Export VM inventory and migration planning data
|
|
283
|
+
*/
|
|
284
|
+
exportInventoryRaw(requestParameters, initOverrides) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
const requestOptions = yield this.exportInventoryRequestOpts(requestParameters);
|
|
287
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
288
|
+
return new runtime.BlobApiResponse(response);
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
293
|
+
* Export VM inventory and migration planning data
|
|
294
|
+
*/
|
|
295
|
+
exportInventory() {
|
|
296
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
297
|
+
const response = yield this.exportInventoryRaw(requestParameters, initOverrides);
|
|
298
|
+
return yield response.value();
|
|
299
|
+
});
|
|
300
|
+
}
|
|
261
301
|
/**
|
|
262
302
|
* Creates request options for getAgentStatus without sending the request
|
|
263
303
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Start collection. Credentials are optional if previously stored via PUT /credentials.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface CollectorStartRequest
|
|
16
16
|
*/
|
|
@@ -20,31 +20,31 @@ export interface CollectorStartRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CollectorStartRequest
|
|
22
22
|
*/
|
|
23
|
-
url
|
|
23
|
+
url?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* vCenter username
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CollectorStartRequest
|
|
28
28
|
*/
|
|
29
|
-
username
|
|
29
|
+
username?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* vCenter password
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CollectorStartRequest
|
|
34
34
|
*/
|
|
35
|
-
password
|
|
35
|
+
password?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {
|
|
37
|
+
* Skip TLS certificate verification
|
|
38
|
+
* @type {boolean}
|
|
39
39
|
* @memberof CollectorStartRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
skipTls?: boolean;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* PEM-encoded CA certificate bundle
|
|
44
|
+
* @type {string}
|
|
45
45
|
* @memberof CollectorStartRequest
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
cacert?: string;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the CollectorStartRequest interface.
|
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
* Check if a given object implements the CollectorStartRequest interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfCollectorStartRequest(value) {
|
|
18
|
-
if (!('url' in value) || value['url'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('username' in value) || value['username'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
if (!('password' in value) || value['password'] === undefined)
|
|
23
|
-
return false;
|
|
24
18
|
return true;
|
|
25
19
|
}
|
|
26
20
|
export function CollectorStartRequestFromJSON(json) {
|
|
@@ -31,11 +25,11 @@ export function CollectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
25
|
return json;
|
|
32
26
|
}
|
|
33
27
|
return {
|
|
34
|
-
'url': json['url'],
|
|
35
|
-
'username': json['username'],
|
|
36
|
-
'password': json['password'],
|
|
37
|
-
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
28
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
29
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
30
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
38
31
|
'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
|
|
32
|
+
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
39
33
|
};
|
|
40
34
|
}
|
|
41
35
|
export function CollectorStartRequestToJSON(json) {
|
|
@@ -49,7 +43,7 @@ export function CollectorStartRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
49
43
|
'url': value['url'],
|
|
50
44
|
'username': value['username'],
|
|
51
45
|
'password': value['password'],
|
|
52
|
-
'cacert': value['cacert'],
|
|
53
46
|
'skipTls': value['skipTls'],
|
|
47
|
+
'cacert': value['cacert'],
|
|
54
48
|
};
|
|
55
49
|
}
|
|
@@ -49,7 +49,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
50
50
|
'protocolType': json['protocolType'],
|
|
51
51
|
'model': json['model'],
|
|
52
|
-
'hostId': json['hostId']
|
|
52
|
+
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
export function DatastoreToJSON(json) {
|
|
@@ -0,0 +1,32 @@
|
|
|
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: v1
|
|
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 ExportInventory400Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ExportInventory400Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ExportInventory400Response
|
|
22
|
+
*/
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ExportInventory400Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfExportInventory400Response(value: object): value is ExportInventory400Response;
|
|
29
|
+
export declare function ExportInventory400ResponseFromJSON(json: any): ExportInventory400Response;
|
|
30
|
+
export declare function ExportInventory400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportInventory400Response;
|
|
31
|
+
export declare function ExportInventory400ResponseToJSON(json: any): ExportInventory400Response;
|
|
32
|
+
export declare function ExportInventory400ResponseToJSONTyped(value?: ExportInventory400Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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: v1
|
|
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 ExportInventory400Response interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfExportInventory400Response(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ExportInventory400ResponseFromJSON(json) {
|
|
21
|
+
return ExportInventory400ResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ExportInventory400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function ExportInventory400ResponseToJSON(json) {
|
|
32
|
+
return ExportInventory400ResponseToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ExportInventory400ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'error': value['error'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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: v1
|
|
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 ExportInventory500Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ExportInventory500Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ExportInventory500Response
|
|
22
|
+
*/
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ExportInventory500Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfExportInventory500Response(value: object): value is ExportInventory500Response;
|
|
29
|
+
export declare function ExportInventory500ResponseFromJSON(json: any): ExportInventory500Response;
|
|
30
|
+
export declare function ExportInventory500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportInventory500Response;
|
|
31
|
+
export declare function ExportInventory500ResponseToJSON(json: any): ExportInventory500Response;
|
|
32
|
+
export declare function ExportInventory500ResponseToJSONTyped(value?: ExportInventory500Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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: v1
|
|
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 ExportInventory500Response interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfExportInventory500Response(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ExportInventory500ResponseFromJSON(json) {
|
|
21
|
+
return ExportInventory500ResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ExportInventory500ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function ExportInventory500ResponseToJSON(json) {
|
|
32
|
+
return ExportInventory500ResponseToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ExportInventory500ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'error': value['error'],
|
|
40
|
+
};
|
|
41
|
+
}
|
package/dist/esm/models/Host.js
CHANGED
|
@@ -32,9 +32,9 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'id': json['id'] == null ? undefined : json['id'],
|
|
33
33
|
'vendor': json['vendor'],
|
|
34
34
|
'model': json['model'],
|
|
35
|
-
'cpuCores': json['cpuCores']
|
|
36
|
-
'cpuSockets': json['cpuSockets']
|
|
37
|
-
'memoryMB': json['memoryMB']
|
|
35
|
+
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
36
|
+
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
37
|
+
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export function HostToJSON(json) {
|
|
@@ -27,6 +27,12 @@ export interface OsInfo {
|
|
|
27
27
|
* @memberof OsInfo
|
|
28
28
|
*/
|
|
29
29
|
supported: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* OS support tier per Red Hat KCS article 4234591
|
|
32
|
+
* @type {OsInfoSupportTierEnum}
|
|
33
|
+
* @memberof OsInfo
|
|
34
|
+
*/
|
|
35
|
+
supportTier?: OsInfoSupportTierEnum;
|
|
30
36
|
/**
|
|
31
37
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
32
38
|
* @type {string}
|
|
@@ -34,6 +40,16 @@ export interface OsInfo {
|
|
|
34
40
|
*/
|
|
35
41
|
upgradeRecommendation?: string;
|
|
36
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const OsInfoSupportTierEnum: {
|
|
47
|
+
readonly Certified: "certified";
|
|
48
|
+
readonly VendorSupported: "vendor_supported";
|
|
49
|
+
readonly CommunitySupported: "community_supported";
|
|
50
|
+
readonly SpecialHandling: "special_handling";
|
|
51
|
+
};
|
|
52
|
+
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
37
53
|
/**
|
|
38
54
|
* Check if a given object implements the OsInfo interface.
|
|
39
55
|
*/
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const OsInfoSupportTierEnum = {
|
|
18
|
+
Certified: 'certified',
|
|
19
|
+
VendorSupported: 'vendor_supported',
|
|
20
|
+
CommunitySupported: 'community_supported',
|
|
21
|
+
SpecialHandling: 'special_handling'
|
|
22
|
+
};
|
|
14
23
|
/**
|
|
15
24
|
* Check if a given object implements the OsInfo interface.
|
|
16
25
|
*/
|
|
@@ -31,6 +40,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
40
|
return {
|
|
32
41
|
'count': json['count'],
|
|
33
42
|
'supported': json['supported'],
|
|
43
|
+
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
34
44
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
35
45
|
};
|
|
36
46
|
}
|
|
@@ -44,6 +54,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
54
|
return {
|
|
45
55
|
'count': value['count'],
|
|
46
56
|
'supported': value['supported'],
|
|
57
|
+
'supportTier': value['supportTier'],
|
|
47
58
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
48
59
|
};
|
|
49
60
|
}
|
|
@@ -19,6 +19,8 @@ export * from './DeleteLabelGloballyResponse.js';
|
|
|
19
19
|
export * from './DiskSizeTierSummary.js';
|
|
20
20
|
export * from './DiskTypeSummary.js';
|
|
21
21
|
export * from './EstimateRange.js';
|
|
22
|
+
export * from './ExportInventory400Response.js';
|
|
23
|
+
export * from './ExportInventory500Response.js';
|
|
22
24
|
export * from './ForecastStats.js';
|
|
23
25
|
export * from './ForecasterDatastoresRequest.js';
|
|
24
26
|
export * from './ForecasterPairStatus.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -21,6 +21,8 @@ export * from './DeleteLabelGloballyResponse.js';
|
|
|
21
21
|
export * from './DiskSizeTierSummary.js';
|
|
22
22
|
export * from './DiskTypeSummary.js';
|
|
23
23
|
export * from './EstimateRange.js';
|
|
24
|
+
export * from './ExportInventory400Response.js';
|
|
25
|
+
export * from './ExportInventory500Response.js';
|
|
24
26
|
export * from './ForecastStats.js';
|
|
25
27
|
export * from './ForecasterDatastoresRequest.js';
|
|
26
28
|
export * from './ForecasterPairStatus.js';
|
package/dist/esm/runtime.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export declare function exists(json: any, key: string): boolean;
|
|
|
127
127
|
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
128
|
[key: string]: any;
|
|
129
129
|
};
|
|
130
|
+
export declare function anyToJSON(value: any): any;
|
|
130
131
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
132
|
export interface Consume {
|
|
132
133
|
contentType: string;
|
package/dist/esm/runtime.js
CHANGED
|
@@ -296,6 +296,10 @@ export function mapValues(data, fn) {
|
|
|
296
296
|
}
|
|
297
297
|
return result;
|
|
298
298
|
}
|
|
299
|
+
// Pass-through serializer for `any`-typed properties in form data. See #1877.
|
|
300
|
+
export function anyToJSON(value) {
|
|
301
|
+
return value;
|
|
302
|
+
}
|
|
299
303
|
export function canConsumeForm(consumes) {
|
|
300
304
|
var _a;
|
|
301
305
|
for (const consume of consumes) {
|