@openshift-migration-advisor/agent-sdk 0.18.0 → 0.19.0-851b5bca22e4
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 +14 -0
- package/dist/esm/models/VirtualMachineDetail.js +6 -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 +14 -0
- package/dist/models/VirtualMachineDetail.js +6 -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 +4 -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 +30 -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-851b5bca22e4
|
|
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-851b5bca22e4`
|
|
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
|
+
}
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VMNIC } from './VMNIC.js';
|
|
13
|
+
import type { VmInspectionStatus } from './VmInspectionStatus.js';
|
|
13
14
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
14
15
|
import type { VMIssue } from './VMIssue.js';
|
|
15
16
|
import type { VMDevice } from './VMDevice.js';
|
|
16
17
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
18
|
+
import type { Process } from './Process.js';
|
|
17
19
|
import type { VMDisk } from './VMDisk.js';
|
|
18
20
|
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
19
21
|
/**
|
|
@@ -220,12 +222,24 @@ export interface VirtualMachineDetail {
|
|
|
220
222
|
* @memberof VirtualMachineDetail
|
|
221
223
|
*/
|
|
222
224
|
inspection?: VmInspectionResults;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {VmInspectionStatus}
|
|
228
|
+
* @memberof VirtualMachineDetail
|
|
229
|
+
*/
|
|
230
|
+
inspectionStatus?: VmInspectionStatus;
|
|
223
231
|
/**
|
|
224
232
|
*
|
|
225
233
|
* @type {VmUtilizationDetails}
|
|
226
234
|
* @memberof VirtualMachineDetail
|
|
227
235
|
*/
|
|
228
236
|
utilization?: VmUtilizationDetails;
|
|
237
|
+
/**
|
|
238
|
+
* List of processes detected on this VM
|
|
239
|
+
* @type {Array<Process>}
|
|
240
|
+
* @memberof VirtualMachineDetail
|
|
241
|
+
*/
|
|
242
|
+
processes?: Array<Process>;
|
|
229
243
|
}
|
|
230
244
|
/**
|
|
231
245
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -12,10 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { VMNICFromJSON, VMNICToJSON, } from './VMNIC.js';
|
|
15
|
+
import { VmInspectionStatusFromJSON, VmInspectionStatusToJSON, } from './VmInspectionStatus.js';
|
|
15
16
|
import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
|
|
16
17
|
import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
|
|
17
18
|
import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
|
|
18
19
|
import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
|
|
20
|
+
import { ProcessFromJSON, ProcessToJSON, } from './Process.js';
|
|
19
21
|
import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
|
|
20
22
|
import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
|
|
21
23
|
/**
|
|
@@ -83,7 +85,9 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
85
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
|
|
84
86
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
|
|
85
87
|
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
88
|
+
'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
|
|
86
89
|
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
90
|
+
'processes': json['processes'] == null ? undefined : (json['processes'].map(ProcessFromJSON)),
|
|
87
91
|
};
|
|
88
92
|
}
|
|
89
93
|
export function VirtualMachineDetailToJSON(json) {
|
|
@@ -127,6 +131,8 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
127
131
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
|
|
128
132
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
|
|
129
133
|
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
134
|
+
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
130
135
|
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
136
|
+
'processes': value['processes'] == null ? undefined : (value['processes'].map(ProcessToJSON)),
|
|
131
137
|
};
|
|
132
138
|
}
|
|
@@ -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
|
+
}
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VMNIC } from './VMNIC.js';
|
|
13
|
+
import type { VmInspectionStatus } from './VmInspectionStatus.js';
|
|
13
14
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
14
15
|
import type { VMIssue } from './VMIssue.js';
|
|
15
16
|
import type { VMDevice } from './VMDevice.js';
|
|
16
17
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
18
|
+
import type { Process } from './Process.js';
|
|
17
19
|
import type { VMDisk } from './VMDisk.js';
|
|
18
20
|
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
19
21
|
/**
|
|
@@ -220,12 +222,24 @@ export interface VirtualMachineDetail {
|
|
|
220
222
|
* @memberof VirtualMachineDetail
|
|
221
223
|
*/
|
|
222
224
|
inspection?: VmInspectionResults;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {VmInspectionStatus}
|
|
228
|
+
* @memberof VirtualMachineDetail
|
|
229
|
+
*/
|
|
230
|
+
inspectionStatus?: VmInspectionStatus;
|
|
223
231
|
/**
|
|
224
232
|
*
|
|
225
233
|
* @type {VmUtilizationDetails}
|
|
226
234
|
* @memberof VirtualMachineDetail
|
|
227
235
|
*/
|
|
228
236
|
utilization?: VmUtilizationDetails;
|
|
237
|
+
/**
|
|
238
|
+
* List of processes detected on this VM
|
|
239
|
+
* @type {Array<Process>}
|
|
240
|
+
* @memberof VirtualMachineDetail
|
|
241
|
+
*/
|
|
242
|
+
processes?: Array<Process>;
|
|
229
243
|
}
|
|
230
244
|
/**
|
|
231
245
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -19,10 +19,12 @@ exports.VirtualMachineDetailFromJSONTyped = VirtualMachineDetailFromJSONTyped;
|
|
|
19
19
|
exports.VirtualMachineDetailToJSON = VirtualMachineDetailToJSON;
|
|
20
20
|
exports.VirtualMachineDetailToJSONTyped = VirtualMachineDetailToJSONTyped;
|
|
21
21
|
const VMNIC_js_1 = require("./VMNIC.js");
|
|
22
|
+
const VmInspectionStatus_js_1 = require("./VmInspectionStatus.js");
|
|
22
23
|
const GuestNetwork_js_1 = require("./GuestNetwork.js");
|
|
23
24
|
const VMIssue_js_1 = require("./VMIssue.js");
|
|
24
25
|
const VMDevice_js_1 = require("./VMDevice.js");
|
|
25
26
|
const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
|
|
27
|
+
const Process_js_1 = require("./Process.js");
|
|
26
28
|
const VMDisk_js_1 = require("./VMDisk.js");
|
|
27
29
|
const VmInspectionResults_js_1 = require("./VmInspectionResults.js");
|
|
28
30
|
/**
|
|
@@ -90,7 +92,9 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
90
92
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
|
|
91
93
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssue_js_1.VMIssueFromJSON)),
|
|
92
94
|
'inspection': json['inspection'] == null ? undefined : (0, VmInspectionResults_js_1.VmInspectionResultsFromJSON)(json['inspection']),
|
|
95
|
+
'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspectionStatus']),
|
|
93
96
|
'utilization': json['utilization'] == null ? undefined : (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(json['utilization']),
|
|
97
|
+
'processes': json['processes'] == null ? undefined : (json['processes'].map(Process_js_1.ProcessFromJSON)),
|
|
94
98
|
};
|
|
95
99
|
}
|
|
96
100
|
function VirtualMachineDetailToJSON(json) {
|
|
@@ -134,6 +138,8 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
134
138
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
|
|
135
139
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssue_js_1.VMIssueToJSON)),
|
|
136
140
|
'inspection': (0, VmInspectionResults_js_1.VmInspectionResultsToJSON)(value['inspection']),
|
|
141
|
+
'inspectionStatus': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspectionStatus']),
|
|
137
142
|
'utilization': (0, VmUtilizationDetails_js_1.VmUtilizationDetailsToJSON)(value['utilization']),
|
|
143
|
+
'processes': value['processes'] == null ? undefined : (value['processes'].map(Process_js_1.ProcessToJSON)),
|
|
138
144
|
};
|
|
139
145
|
}
|
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
|
+
|
|
@@ -39,7 +39,9 @@ Name | Type
|
|
|
39
39
|
`guestNetworks` | [Array<GuestNetwork>](GuestNetwork.md)
|
|
40
40
|
`issues` | [Array<VMIssue>](VMIssue.md)
|
|
41
41
|
`inspection` | [VmInspectionResults](VmInspectionResults.md)
|
|
42
|
+
`inspectionStatus` | [VmInspectionStatus](VmInspectionStatus.md)
|
|
42
43
|
`utilization` | [VmUtilizationDetails](VmUtilizationDetails.md)
|
|
44
|
+
`processes` | [Array<Process>](Process.md)
|
|
43
45
|
|
|
44
46
|
## Example
|
|
45
47
|
|
|
@@ -81,7 +83,9 @@ const example = {
|
|
|
81
83
|
"guestNetworks": null,
|
|
82
84
|
"issues": null,
|
|
83
85
|
"inspection": null,
|
|
86
|
+
"inspectionStatus": null,
|
|
84
87
|
"utilization": null,
|
|
88
|
+
"processes": null,
|
|
85
89
|
} satisfies VirtualMachineDetail
|
|
86
90
|
|
|
87
91
|
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
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
VMNICToJSON,
|
|
21
21
|
VMNICToJSONTyped,
|
|
22
22
|
} from './VMNIC.js';
|
|
23
|
+
import type { VmInspectionStatus } from './VmInspectionStatus.js';
|
|
24
|
+
import {
|
|
25
|
+
VmInspectionStatusFromJSON,
|
|
26
|
+
VmInspectionStatusFromJSONTyped,
|
|
27
|
+
VmInspectionStatusToJSON,
|
|
28
|
+
VmInspectionStatusToJSONTyped,
|
|
29
|
+
} from './VmInspectionStatus.js';
|
|
23
30
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
24
31
|
import {
|
|
25
32
|
GuestNetworkFromJSON,
|
|
@@ -48,6 +55,13 @@ import {
|
|
|
48
55
|
VmUtilizationDetailsToJSON,
|
|
49
56
|
VmUtilizationDetailsToJSONTyped,
|
|
50
57
|
} from './VmUtilizationDetails.js';
|
|
58
|
+
import type { Process } from './Process.js';
|
|
59
|
+
import {
|
|
60
|
+
ProcessFromJSON,
|
|
61
|
+
ProcessFromJSONTyped,
|
|
62
|
+
ProcessToJSON,
|
|
63
|
+
ProcessToJSONTyped,
|
|
64
|
+
} from './Process.js';
|
|
51
65
|
import type { VMDisk } from './VMDisk.js';
|
|
52
66
|
import {
|
|
53
67
|
VMDiskFromJSON,
|
|
@@ -267,12 +281,24 @@ export interface VirtualMachineDetail {
|
|
|
267
281
|
* @memberof VirtualMachineDetail
|
|
268
282
|
*/
|
|
269
283
|
inspection?: VmInspectionResults;
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @type {VmInspectionStatus}
|
|
287
|
+
* @memberof VirtualMachineDetail
|
|
288
|
+
*/
|
|
289
|
+
inspectionStatus?: VmInspectionStatus;
|
|
270
290
|
/**
|
|
271
291
|
*
|
|
272
292
|
* @type {VmUtilizationDetails}
|
|
273
293
|
* @memberof VirtualMachineDetail
|
|
274
294
|
*/
|
|
275
295
|
utilization?: VmUtilizationDetails;
|
|
296
|
+
/**
|
|
297
|
+
* List of processes detected on this VM
|
|
298
|
+
* @type {Array<Process>}
|
|
299
|
+
* @memberof VirtualMachineDetail
|
|
300
|
+
*/
|
|
301
|
+
processes?: Array<Process>;
|
|
276
302
|
}
|
|
277
303
|
|
|
278
304
|
/**
|
|
@@ -334,7 +360,9 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
334
360
|
'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
|
|
335
361
|
'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
|
|
336
362
|
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
363
|
+
'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
|
|
337
364
|
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
365
|
+
'processes': json['processes'] == null ? undefined : ((json['processes'] as Array<any>).map(ProcessFromJSON)),
|
|
338
366
|
};
|
|
339
367
|
}
|
|
340
368
|
|
|
@@ -382,7 +410,9 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
|
|
|
382
410
|
'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
|
|
383
411
|
'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
|
|
384
412
|
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
413
|
+
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
385
414
|
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
415
|
+
'processes': value['processes'] == null ? undefined : ((value['processes'] as Array<any>).map(ProcessToJSON)),
|
|
386
416
|
};
|
|
387
417
|
}
|
|
388
418
|
|
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';
|