@openshift-migration-advisor/agent-sdk 0.18.0 → 0.19.0-8b75a9da8b0b
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 +2 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +4 -3
- package/dist/apis/DefaultApi.d.ts +11 -0
- package/dist/apis/DefaultApi.js +11 -1
- package/dist/esm/apis/DefaultApi.d.ts +11 -0
- package/dist/esm/apis/DefaultApi.js +10 -0
- package/dist/esm/models/Process.d.ts +38 -0
- package/dist/esm/models/Process.js +45 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +7 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/Process.d.ts +38 -0
- package/dist/models/Process.js +52 -0
- package/dist/models/VirtualMachineDetail.d.ts +7 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/DefaultApi.md +6 -3
- package/docs/Process.md +36 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +16 -0
- package/src/models/Process.ts +74 -0
- package/src/models/VirtualMachineDetail.ts +15 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -50,6 +50,7 @@ docs/OperationCapability.md
|
|
|
50
50
|
docs/OsInfo.md
|
|
51
51
|
docs/PairCapability.md
|
|
52
52
|
docs/PairCapabilityRequest.md
|
|
53
|
+
docs/Process.md
|
|
53
54
|
docs/PutForecasterCredentials403Response.md
|
|
54
55
|
docs/RightsizingClusterListResponse.md
|
|
55
56
|
docs/RightsizingClusterResponse.md
|
|
@@ -137,6 +138,7 @@ src/models/OperationCapability.ts
|
|
|
137
138
|
src/models/OsInfo.ts
|
|
138
139
|
src/models/PairCapability.ts
|
|
139
140
|
src/models/PairCapabilityRequest.ts
|
|
141
|
+
src/models/Process.ts
|
|
140
142
|
src/models/PutForecasterCredentials403Response.ts
|
|
141
143
|
src/models/RightsizingClusterListResponse.ts
|
|
142
144
|
src/models/RightsizingClusterResponse.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.25.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.19.0-8b75a9da8b0b
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -151,6 +151,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
151
151
|
- [OsInfo](docs/OsInfo.md)
|
|
152
152
|
- [PairCapability](docs/PairCapability.md)
|
|
153
153
|
- [PairCapabilityRequest](docs/PairCapabilityRequest.md)
|
|
154
|
+
- [Process](docs/Process.md)
|
|
154
155
|
- [PutForecasterCredentials403Response](docs/PutForecasterCredentials403Response.md)
|
|
155
156
|
- [RightsizingClusterListResponse](docs/RightsizingClusterListResponse.md)
|
|
156
157
|
- [RightsizingClusterResponse](docs/RightsizingClusterResponse.md)
|
|
@@ -200,8 +201,8 @@ and is automatically generated by the
|
|
|
200
201
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
201
202
|
|
|
202
203
|
- API version: `v1`
|
|
203
|
-
- Package version: `0.
|
|
204
|
-
- Generator version: `7.
|
|
204
|
+
- Package version: `0.19.0-8b75a9da8b0b`
|
|
205
|
+
- Generator version: `7.25.0-SNAPSHOT`
|
|
205
206
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
206
207
|
|
|
207
208
|
The generated npm module supports the following:
|
|
@@ -70,6 +70,7 @@ export interface DeleteLabelGloballyRequest {
|
|
|
70
70
|
}
|
|
71
71
|
export interface ExportInventoryRequest {
|
|
72
72
|
scope?: string;
|
|
73
|
+
format?: ExportInventoryFormatEnum;
|
|
73
74
|
}
|
|
74
75
|
export interface GetClusterUtilizationRequest {
|
|
75
76
|
clusterId: string;
|
|
@@ -301,6 +302,7 @@ export interface DefaultApiInterface {
|
|
|
301
302
|
/**
|
|
302
303
|
* Creates request options for exportInventory without sending the request
|
|
303
304
|
* @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
|
|
305
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
304
306
|
* @throws {RequiredError}
|
|
305
307
|
* @memberof DefaultApiInterface
|
|
306
308
|
*/
|
|
@@ -309,6 +311,7 @@ export interface DefaultApiInterface {
|
|
|
309
311
|
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
310
312
|
* @summary Export VM inventory and migration planning data
|
|
311
313
|
* @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
|
|
314
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
312
315
|
* @param {*} [options] Override http request option.
|
|
313
316
|
* @throws {RequiredError}
|
|
314
317
|
* @memberof DefaultApiInterface
|
|
@@ -1825,3 +1828,11 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1825
1828
|
*/
|
|
1826
1829
|
validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1827
1830
|
}
|
|
1831
|
+
/**
|
|
1832
|
+
* @export
|
|
1833
|
+
*/
|
|
1834
|
+
export declare const ExportInventoryFormatEnum: {
|
|
1835
|
+
readonly Zip: "zip";
|
|
1836
|
+
readonly Xlsx: "xlsx";
|
|
1837
|
+
};
|
|
1838
|
+
export type ExportInventoryFormatEnum = typeof ExportInventoryFormatEnum[keyof typeof ExportInventoryFormatEnum];
|
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.DefaultApi = void 0;
|
|
25
|
+
exports.ExportInventoryFormatEnum = exports.DefaultApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
27
|
const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
|
|
28
28
|
const AgentStatus_js_1 = require("../models/AgentStatus.js");
|
|
@@ -310,6 +310,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
310
310
|
if (requestParameters['scope'] != null) {
|
|
311
311
|
queryParameters['scope'] = requestParameters['scope'];
|
|
312
312
|
}
|
|
313
|
+
if (requestParameters['format'] != null) {
|
|
314
|
+
queryParameters['format'] = requestParameters['format'];
|
|
315
|
+
}
|
|
313
316
|
const headerParameters = {};
|
|
314
317
|
let urlPath = `/export`;
|
|
315
318
|
return {
|
|
@@ -2054,3 +2057,10 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
2054
2057
|
}
|
|
2055
2058
|
}
|
|
2056
2059
|
exports.DefaultApi = DefaultApi;
|
|
2060
|
+
/**
|
|
2061
|
+
* @export
|
|
2062
|
+
*/
|
|
2063
|
+
exports.ExportInventoryFormatEnum = {
|
|
2064
|
+
Zip: 'zip',
|
|
2065
|
+
Xlsx: 'xlsx'
|
|
2066
|
+
};
|
|
@@ -70,6 +70,7 @@ export interface DeleteLabelGloballyRequest {
|
|
|
70
70
|
}
|
|
71
71
|
export interface ExportInventoryRequest {
|
|
72
72
|
scope?: string;
|
|
73
|
+
format?: ExportInventoryFormatEnum;
|
|
73
74
|
}
|
|
74
75
|
export interface GetClusterUtilizationRequest {
|
|
75
76
|
clusterId: string;
|
|
@@ -301,6 +302,7 @@ export interface DefaultApiInterface {
|
|
|
301
302
|
/**
|
|
302
303
|
* Creates request options for exportInventory without sending the request
|
|
303
304
|
* @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
|
|
305
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
304
306
|
* @throws {RequiredError}
|
|
305
307
|
* @memberof DefaultApiInterface
|
|
306
308
|
*/
|
|
@@ -309,6 +311,7 @@ export interface DefaultApiInterface {
|
|
|
309
311
|
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
310
312
|
* @summary Export VM inventory and migration planning data
|
|
311
313
|
* @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
|
|
314
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
312
315
|
* @param {*} [options] Override http request option.
|
|
313
316
|
* @throws {RequiredError}
|
|
314
317
|
* @memberof DefaultApiInterface
|
|
@@ -1825,3 +1828,11 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1825
1828
|
*/
|
|
1826
1829
|
validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1827
1830
|
}
|
|
1831
|
+
/**
|
|
1832
|
+
* @export
|
|
1833
|
+
*/
|
|
1834
|
+
export declare const ExportInventoryFormatEnum: {
|
|
1835
|
+
readonly Zip: "zip";
|
|
1836
|
+
readonly Xlsx: "xlsx";
|
|
1837
|
+
};
|
|
1838
|
+
export type ExportInventoryFormatEnum = typeof ExportInventoryFormatEnum[keyof typeof ExportInventoryFormatEnum];
|
|
@@ -307,6 +307,9 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
307
307
|
if (requestParameters['scope'] != null) {
|
|
308
308
|
queryParameters['scope'] = requestParameters['scope'];
|
|
309
309
|
}
|
|
310
|
+
if (requestParameters['format'] != null) {
|
|
311
|
+
queryParameters['format'] = requestParameters['format'];
|
|
312
|
+
}
|
|
310
313
|
const headerParameters = {};
|
|
311
314
|
let urlPath = `/export`;
|
|
312
315
|
return {
|
|
@@ -2050,3 +2053,10 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2050
2053
|
});
|
|
2051
2054
|
}
|
|
2052
2055
|
}
|
|
2056
|
+
/**
|
|
2057
|
+
* @export
|
|
2058
|
+
*/
|
|
2059
|
+
export const ExportInventoryFormatEnum = {
|
|
2060
|
+
Zip: 'zip',
|
|
2061
|
+
Xlsx: 'xlsx'
|
|
2062
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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 Process
|
|
16
|
+
*/
|
|
17
|
+
export interface Process {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the process
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Process
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Version of the process
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Process
|
|
28
|
+
*/
|
|
29
|
+
version?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Process interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfProcess(value: object): value is Process;
|
|
35
|
+
export declare function ProcessFromJSON(json: any): Process;
|
|
36
|
+
export declare function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process;
|
|
37
|
+
export declare function ProcessToJSON(json: any): Process;
|
|
38
|
+
export declare function ProcessToJSONTyped(value?: Process | 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: 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 Process interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfProcess(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ProcessFromJSON(json) {
|
|
23
|
+
return ProcessFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ProcessToJSON(json) {
|
|
35
|
+
return ProcessToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ProcessToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': value['name'],
|
|
43
|
+
'version': value['version'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -14,6 +14,7 @@ import type { GuestNetwork } from './GuestNetwork.js';
|
|
|
14
14
|
import type { VMIssue } from './VMIssue.js';
|
|
15
15
|
import type { VMDevice } from './VMDevice.js';
|
|
16
16
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
17
|
+
import type { Process } from './Process.js';
|
|
17
18
|
import type { VMDisk } from './VMDisk.js';
|
|
18
19
|
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
19
20
|
/**
|
|
@@ -226,6 +227,12 @@ export interface VirtualMachineDetail {
|
|
|
226
227
|
* @memberof VirtualMachineDetail
|
|
227
228
|
*/
|
|
228
229
|
utilization?: VmUtilizationDetails;
|
|
230
|
+
/**
|
|
231
|
+
* List of processes detected on this VM
|
|
232
|
+
* @type {Array<Process>}
|
|
233
|
+
* @memberof VirtualMachineDetail
|
|
234
|
+
*/
|
|
235
|
+
processes?: Array<Process>;
|
|
229
236
|
}
|
|
230
237
|
/**
|
|
231
238
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -16,6 +16,7 @@ import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
|
|
|
16
16
|
import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
|
|
17
17
|
import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
|
|
18
18
|
import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
|
|
19
|
+
import { ProcessFromJSON, ProcessToJSON, } from './Process.js';
|
|
19
20
|
import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
|
|
20
21
|
import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
|
|
21
22
|
/**
|
|
@@ -84,6 +85,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
85
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
|
|
85
86
|
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
86
87
|
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
88
|
+
'processes': json['processes'] == null ? undefined : (json['processes'].map(ProcessFromJSON)),
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
91
|
export function VirtualMachineDetailToJSON(json) {
|
|
@@ -128,5 +130,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
128
130
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
|
|
129
131
|
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
130
132
|
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
133
|
+
'processes': value['processes'] == null ? undefined : (value['processes'].map(ProcessToJSON)),
|
|
131
134
|
};
|
|
132
135
|
}
|
|
@@ -45,6 +45,7 @@ export * from './OperationCapability.js';
|
|
|
45
45
|
export * from './OsInfo.js';
|
|
46
46
|
export * from './PairCapability.js';
|
|
47
47
|
export * from './PairCapabilityRequest.js';
|
|
48
|
+
export * from './Process.js';
|
|
48
49
|
export * from './PutForecasterCredentials403Response.js';
|
|
49
50
|
export * from './RightsizingClusterListResponse.js';
|
|
50
51
|
export * from './RightsizingClusterResponse.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -47,6 +47,7 @@ export * from './OperationCapability.js';
|
|
|
47
47
|
export * from './OsInfo.js';
|
|
48
48
|
export * from './PairCapability.js';
|
|
49
49
|
export * from './PairCapabilityRequest.js';
|
|
50
|
+
export * from './Process.js';
|
|
50
51
|
export * from './PutForecasterCredentials403Response.js';
|
|
51
52
|
export * from './RightsizingClusterListResponse.js';
|
|
52
53
|
export * from './RightsizingClusterResponse.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
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 Process
|
|
16
|
+
*/
|
|
17
|
+
export interface Process {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the process
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Process
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Version of the process
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Process
|
|
28
|
+
*/
|
|
29
|
+
version?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Process interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfProcess(value: object): value is Process;
|
|
35
|
+
export declare function ProcessFromJSON(json: any): Process;
|
|
36
|
+
export declare function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process;
|
|
37
|
+
export declare function ProcessToJSON(json: any): Process;
|
|
38
|
+
export declare function ProcessToJSONTyped(value?: Process | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProcess = instanceOfProcess;
|
|
17
|
+
exports.ProcessFromJSON = ProcessFromJSON;
|
|
18
|
+
exports.ProcessFromJSONTyped = ProcessFromJSONTyped;
|
|
19
|
+
exports.ProcessToJSON = ProcessToJSON;
|
|
20
|
+
exports.ProcessToJSONTyped = ProcessToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Process interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProcess(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ProcessFromJSON(json) {
|
|
30
|
+
return ProcessFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ProcessToJSON(json) {
|
|
42
|
+
return ProcessToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ProcessToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'version': value['version'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -14,6 +14,7 @@ import type { GuestNetwork } from './GuestNetwork.js';
|
|
|
14
14
|
import type { VMIssue } from './VMIssue.js';
|
|
15
15
|
import type { VMDevice } from './VMDevice.js';
|
|
16
16
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
17
|
+
import type { Process } from './Process.js';
|
|
17
18
|
import type { VMDisk } from './VMDisk.js';
|
|
18
19
|
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
19
20
|
/**
|
|
@@ -226,6 +227,12 @@ export interface VirtualMachineDetail {
|
|
|
226
227
|
* @memberof VirtualMachineDetail
|
|
227
228
|
*/
|
|
228
229
|
utilization?: VmUtilizationDetails;
|
|
230
|
+
/**
|
|
231
|
+
* List of processes detected on this VM
|
|
232
|
+
* @type {Array<Process>}
|
|
233
|
+
* @memberof VirtualMachineDetail
|
|
234
|
+
*/
|
|
235
|
+
processes?: Array<Process>;
|
|
229
236
|
}
|
|
230
237
|
/**
|
|
231
238
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -23,6 +23,7 @@ const GuestNetwork_js_1 = require("./GuestNetwork.js");
|
|
|
23
23
|
const VMIssue_js_1 = require("./VMIssue.js");
|
|
24
24
|
const VMDevice_js_1 = require("./VMDevice.js");
|
|
25
25
|
const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
|
|
26
|
+
const Process_js_1 = require("./Process.js");
|
|
26
27
|
const VMDisk_js_1 = require("./VMDisk.js");
|
|
27
28
|
const VmInspectionResults_js_1 = require("./VmInspectionResults.js");
|
|
28
29
|
/**
|
|
@@ -91,6 +92,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
92
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssue_js_1.VMIssueFromJSON)),
|
|
92
93
|
'inspection': json['inspection'] == null ? undefined : (0, VmInspectionResults_js_1.VmInspectionResultsFromJSON)(json['inspection']),
|
|
93
94
|
'utilization': json['utilization'] == null ? undefined : (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(json['utilization']),
|
|
95
|
+
'processes': json['processes'] == null ? undefined : (json['processes'].map(Process_js_1.ProcessFromJSON)),
|
|
94
96
|
};
|
|
95
97
|
}
|
|
96
98
|
function VirtualMachineDetailToJSON(json) {
|
|
@@ -135,5 +137,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
135
137
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssue_js_1.VMIssueToJSON)),
|
|
136
138
|
'inspection': (0, VmInspectionResults_js_1.VmInspectionResultsToJSON)(value['inspection']),
|
|
137
139
|
'utilization': (0, VmUtilizationDetails_js_1.VmUtilizationDetailsToJSON)(value['utilization']),
|
|
140
|
+
'processes': value['processes'] == null ? undefined : (value['processes'].map(Process_js_1.ProcessToJSON)),
|
|
138
141
|
};
|
|
139
142
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from './OperationCapability.js';
|
|
|
45
45
|
export * from './OsInfo.js';
|
|
46
46
|
export * from './PairCapability.js';
|
|
47
47
|
export * from './PairCapabilityRequest.js';
|
|
48
|
+
export * from './Process.js';
|
|
48
49
|
export * from './PutForecasterCredentials403Response.js';
|
|
49
50
|
export * from './RightsizingClusterListResponse.js';
|
|
50
51
|
export * from './RightsizingClusterResponse.js';
|
package/dist/models/index.js
CHANGED
|
@@ -63,6 +63,7 @@ __exportStar(require("./OperationCapability.js"), exports);
|
|
|
63
63
|
__exportStar(require("./OsInfo.js"), exports);
|
|
64
64
|
__exportStar(require("./PairCapability.js"), exports);
|
|
65
65
|
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
66
|
+
__exportStar(require("./Process.js"), exports);
|
|
66
67
|
__exportStar(require("./PutForecasterCredentials403Response.js"), exports);
|
|
67
68
|
__exportStar(require("./RightsizingClusterListResponse.js"), exports);
|
|
68
69
|
__exportStar(require("./RightsizingClusterResponse.js"), exports);
|
package/docs/DefaultApi.md
CHANGED
|
@@ -455,7 +455,7 @@ No authorization required
|
|
|
455
455
|
|
|
456
456
|
## exportInventory
|
|
457
457
|
|
|
458
|
-
> Blob exportInventory(scope)
|
|
458
|
+
> Blob exportInventory(scope, format)
|
|
459
459
|
|
|
460
460
|
Export VM inventory and migration planning data
|
|
461
461
|
|
|
@@ -477,6 +477,8 @@ async function example() {
|
|
|
477
477
|
const body = {
|
|
478
478
|
// string | Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection (optional)
|
|
479
479
|
scope: overview,hosts,vms,
|
|
480
|
+
// 'zip' | 'xlsx' | Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope) (optional)
|
|
481
|
+
format: format_example,
|
|
480
482
|
} satisfies ExportInventoryRequest;
|
|
481
483
|
|
|
482
484
|
try {
|
|
@@ -497,6 +499,7 @@ example().catch(console.error);
|
|
|
497
499
|
| Name | Type | Description | Notes |
|
|
498
500
|
|------------- | ------------- | ------------- | -------------|
|
|
499
501
|
| **scope** | `string` | Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection | [Optional] [Defaults to `undefined`] |
|
|
502
|
+
| **format** | `zip`, `xlsx` | Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope) | [Optional] [Defaults to `'zip'`] [Enum: zip, xlsx] |
|
|
500
503
|
|
|
501
504
|
### Return type
|
|
502
505
|
|
|
@@ -509,13 +512,13 @@ No authorization required
|
|
|
509
512
|
### HTTP request headers
|
|
510
513
|
|
|
511
514
|
- **Content-Type**: Not defined
|
|
512
|
-
- **Accept**: `application/zip`, `application/json`
|
|
515
|
+
- **Accept**: `application/zip`, `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`, `application/json`
|
|
513
516
|
|
|
514
517
|
|
|
515
518
|
### HTTP response details
|
|
516
519
|
| Status code | Description | Response headers |
|
|
517
520
|
|-------------|-------------|------------------|
|
|
518
|
-
| **200** | ZIP archive containing CSV files
|
|
521
|
+
| **200** | ZIP archive containing CSV files or Excel workbook | - |
|
|
519
522
|
| **400** | Invalid scope name | - |
|
|
520
523
|
| **500** | Internal server error | - |
|
|
521
524
|
|
package/docs/Process.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# Process
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`version` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { Process } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"name": null,
|
|
20
|
+
"version": null,
|
|
21
|
+
} satisfies Process
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as Process
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -40,6 +40,7 @@ Name | Type
|
|
|
40
40
|
`issues` | [Array<VMIssue>](VMIssue.md)
|
|
41
41
|
`inspection` | [VmInspectionResults](VmInspectionResults.md)
|
|
42
42
|
`utilization` | [VmUtilizationDetails](VmUtilizationDetails.md)
|
|
43
|
+
`processes` | [Array<Process>](Process.md)
|
|
43
44
|
|
|
44
45
|
## Example
|
|
45
46
|
|
|
@@ -82,6 +83,7 @@ const example = {
|
|
|
82
83
|
"issues": null,
|
|
83
84
|
"inspection": null,
|
|
84
85
|
"utilization": null,
|
|
86
|
+
"processes": null,
|
|
85
87
|
} satisfies VirtualMachineDetail
|
|
86
88
|
|
|
87
89
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -266,6 +266,7 @@ export interface DeleteLabelGloballyRequest {
|
|
|
266
266
|
|
|
267
267
|
export interface ExportInventoryRequest {
|
|
268
268
|
scope?: string;
|
|
269
|
+
format?: ExportInventoryFormatEnum;
|
|
269
270
|
}
|
|
270
271
|
|
|
271
272
|
export interface GetClusterUtilizationRequest {
|
|
@@ -545,6 +546,7 @@ export interface DefaultApiInterface {
|
|
|
545
546
|
/**
|
|
546
547
|
* Creates request options for exportInventory without sending the request
|
|
547
548
|
* @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
|
|
549
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
548
550
|
* @throws {RequiredError}
|
|
549
551
|
* @memberof DefaultApiInterface
|
|
550
552
|
*/
|
|
@@ -554,6 +556,7 @@ export interface DefaultApiInterface {
|
|
|
554
556
|
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
555
557
|
* @summary Export VM inventory and migration planning data
|
|
556
558
|
* @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
|
|
559
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
557
560
|
* @param {*} [options] Override http request option.
|
|
558
561
|
* @throws {RequiredError}
|
|
559
562
|
* @memberof DefaultApiInterface
|
|
@@ -1848,6 +1851,10 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1848
1851
|
queryParameters['scope'] = requestParameters['scope'];
|
|
1849
1852
|
}
|
|
1850
1853
|
|
|
1854
|
+
if (requestParameters['format'] != null) {
|
|
1855
|
+
queryParameters['format'] = requestParameters['format'];
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1851
1858
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1852
1859
|
|
|
1853
1860
|
|
|
@@ -3818,3 +3825,12 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
3818
3825
|
}
|
|
3819
3826
|
|
|
3820
3827
|
}
|
|
3828
|
+
|
|
3829
|
+
/**
|
|
3830
|
+
* @export
|
|
3831
|
+
*/
|
|
3832
|
+
export const ExportInventoryFormatEnum = {
|
|
3833
|
+
Zip: 'zip',
|
|
3834
|
+
Xlsx: 'xlsx'
|
|
3835
|
+
} as const;
|
|
3836
|
+
export type ExportInventoryFormatEnum = typeof ExportInventoryFormatEnum[keyof typeof ExportInventoryFormatEnum];
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Process
|
|
20
|
+
*/
|
|
21
|
+
export interface Process {
|
|
22
|
+
/**
|
|
23
|
+
* Name of the process
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Process
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Version of the process
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Process
|
|
32
|
+
*/
|
|
33
|
+
version?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the Process interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfProcess(value: object): value is Process {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ProcessFromJSON(json: any): Process {
|
|
45
|
+
return ProcessFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProcessToJSON(json: any): Process {
|
|
60
|
+
return ProcessToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProcessToJSONTyped(value?: Process | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'version': value['version'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -48,6 +48,13 @@ import {
|
|
|
48
48
|
VmUtilizationDetailsToJSON,
|
|
49
49
|
VmUtilizationDetailsToJSONTyped,
|
|
50
50
|
} from './VmUtilizationDetails.js';
|
|
51
|
+
import type { Process } from './Process.js';
|
|
52
|
+
import {
|
|
53
|
+
ProcessFromJSON,
|
|
54
|
+
ProcessFromJSONTyped,
|
|
55
|
+
ProcessToJSON,
|
|
56
|
+
ProcessToJSONTyped,
|
|
57
|
+
} from './Process.js';
|
|
51
58
|
import type { VMDisk } from './VMDisk.js';
|
|
52
59
|
import {
|
|
53
60
|
VMDiskFromJSON,
|
|
@@ -273,6 +280,12 @@ export interface VirtualMachineDetail {
|
|
|
273
280
|
* @memberof VirtualMachineDetail
|
|
274
281
|
*/
|
|
275
282
|
utilization?: VmUtilizationDetails;
|
|
283
|
+
/**
|
|
284
|
+
* List of processes detected on this VM
|
|
285
|
+
* @type {Array<Process>}
|
|
286
|
+
* @memberof VirtualMachineDetail
|
|
287
|
+
*/
|
|
288
|
+
processes?: Array<Process>;
|
|
276
289
|
}
|
|
277
290
|
|
|
278
291
|
/**
|
|
@@ -335,6 +348,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
335
348
|
'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
|
|
336
349
|
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
337
350
|
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
351
|
+
'processes': json['processes'] == null ? undefined : ((json['processes'] as Array<any>).map(ProcessFromJSON)),
|
|
338
352
|
};
|
|
339
353
|
}
|
|
340
354
|
|
|
@@ -383,6 +397,7 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
|
|
|
383
397
|
'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
|
|
384
398
|
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
385
399
|
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
400
|
+
'processes': value['processes'] == null ? undefined : ((value['processes'] as Array<any>).map(ProcessToJSON)),
|
|
386
401
|
};
|
|
387
402
|
}
|
|
388
403
|
|
package/src/models/index.ts
CHANGED
|
@@ -47,6 +47,7 @@ export * from './OperationCapability.js';
|
|
|
47
47
|
export * from './OsInfo.js';
|
|
48
48
|
export * from './PairCapability.js';
|
|
49
49
|
export * from './PairCapabilityRequest.js';
|
|
50
|
+
export * from './Process.js';
|
|
50
51
|
export * from './PutForecasterCredentials403Response.js';
|
|
51
52
|
export * from './RightsizingClusterListResponse.js';
|
|
52
53
|
export * from './RightsizingClusterResponse.js';
|