@openshift-migration-advisor/agent-sdk 0.18.0 → 0.19.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 +2 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +4 -3
- 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/Process.md +36 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/package.json +1 -1
- 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
|
|
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`
|
|
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:
|
|
@@ -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/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
|
@@ -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';
|