@openshift-migration-advisor/agent-sdk 0.17.0 → 0.18.0-c896a2e1a4de
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 +8 -0
- package/README.md +12 -9
- package/dist/apis/DefaultApi.d.ts +36 -85
- package/dist/apis/DefaultApi.js +40 -86
- package/dist/esm/apis/DefaultApi.d.ts +36 -85
- package/dist/esm/apis/DefaultApi.js +40 -86
- package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +38 -0
- package/dist/esm/models/BatchUpdateExclusionRequest.js +47 -0
- package/dist/esm/models/Datastore.d.ts +7 -0
- package/dist/esm/models/Datastore.js +3 -0
- package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
- package/dist/esm/models/IssuesBreakdown.js +59 -0
- package/dist/esm/models/Process.d.ts +38 -0
- package/dist/esm/models/Process.js +45 -0
- package/dist/esm/models/StorageIoConfiguration.d.ts +58 -0
- package/dist/esm/models/StorageIoConfiguration.js +54 -0
- package/dist/esm/models/VMs.d.ts +7 -0
- package/dist/esm/models/VMs.js +3 -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 +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
- package/dist/models/BatchUpdateExclusionRequest.js +54 -0
- package/dist/models/Datastore.d.ts +7 -0
- package/dist/models/Datastore.js +3 -0
- package/dist/models/IssuesBreakdown.d.ts +56 -0
- package/dist/models/IssuesBreakdown.js +66 -0
- package/dist/models/Process.d.ts +38 -0
- package/dist/models/Process.js +52 -0
- package/dist/models/StorageIoConfiguration.d.ts +58 -0
- package/dist/models/StorageIoConfiguration.js +62 -0
- package/dist/models/VMs.d.ts +7 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/VirtualMachineDetail.d.ts +7 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/BatchUpdateExclusionRequest.md +36 -0
- package/docs/Datastore.md +2 -0
- package/docs/DefaultApi.md +69 -139
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/Process.md +36 -0
- package/docs/StorageIoConfiguration.md +40 -0
- package/docs/VMs.md +2 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +78 -159
- package/src/models/BatchUpdateExclusionRequest.ts +75 -0
- package/src/models/Datastore.ts +16 -0
- package/src/models/IssuesBreakdown.ts +102 -0
- package/src/models/Process.ts +74 -0
- package/src/models/StorageIoConfiguration.ts +100 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/VirtualMachineDetail.ts +15 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,58 @@
|
|
|
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 StorageIoConfiguration
|
|
16
|
+
*/
|
|
17
|
+
export interface StorageIoConfiguration {
|
|
18
|
+
/**
|
|
19
|
+
* Whether Storage I/O Control is enabled for this datastore
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof StorageIoConfiguration
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Latency threshold in milliseconds beyond which the storage array is considered congested
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof StorageIoConfiguration
|
|
28
|
+
*/
|
|
29
|
+
congestionThreshold?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Mode for congestion threshold calculation
|
|
32
|
+
* @type {StorageIoConfigurationCongestionThresholdModeEnum}
|
|
33
|
+
* @memberof StorageIoConfiguration
|
|
34
|
+
*/
|
|
35
|
+
congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Percent of peak throughput
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof StorageIoConfiguration
|
|
40
|
+
*/
|
|
41
|
+
percentOfPeakThroughput?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const StorageIoConfigurationCongestionThresholdModeEnum: {
|
|
47
|
+
readonly Automatic: "automatic";
|
|
48
|
+
readonly Manual: "manual";
|
|
49
|
+
};
|
|
50
|
+
export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the StorageIoConfiguration interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration;
|
|
55
|
+
export declare function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration;
|
|
56
|
+
export declare function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration;
|
|
57
|
+
export declare function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration;
|
|
58
|
+
export declare function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.StorageIoConfigurationCongestionThresholdModeEnum = void 0;
|
|
17
|
+
exports.instanceOfStorageIoConfiguration = instanceOfStorageIoConfiguration;
|
|
18
|
+
exports.StorageIoConfigurationFromJSON = StorageIoConfigurationFromJSON;
|
|
19
|
+
exports.StorageIoConfigurationFromJSONTyped = StorageIoConfigurationFromJSONTyped;
|
|
20
|
+
exports.StorageIoConfigurationToJSON = StorageIoConfigurationToJSON;
|
|
21
|
+
exports.StorageIoConfigurationToJSONTyped = StorageIoConfigurationToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.StorageIoConfigurationCongestionThresholdModeEnum = {
|
|
26
|
+
Automatic: 'automatic',
|
|
27
|
+
Manual: 'manual'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the StorageIoConfiguration interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfStorageIoConfiguration(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function StorageIoConfigurationFromJSON(json) {
|
|
36
|
+
return StorageIoConfigurationFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function StorageIoConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
44
|
+
'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
|
|
45
|
+
'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
|
|
46
|
+
'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function StorageIoConfigurationToJSON(json) {
|
|
50
|
+
return StorageIoConfigurationToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function StorageIoConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'enabled': value['enabled'],
|
|
58
|
+
'congestionThreshold': value['congestionThreshold'],
|
|
59
|
+
'congestionThresholdMode': value['congestionThresholdMode'],
|
|
60
|
+
'percentOfPeakThroughput': value['percentOfPeakThroughput'],
|
|
61
|
+
};
|
|
62
|
+
}
|
package/dist/models/VMs.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { MigrationIssue } from './MigrationIssue.js';
|
|
13
13
|
import type { OsInfo } from './OsInfo.js';
|
|
14
|
+
import type { IssuesBreakdown } from './IssuesBreakdown.js';
|
|
14
15
|
import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
|
|
15
16
|
import type { DiskTypeSummary } from './DiskTypeSummary.js';
|
|
16
17
|
import type { VMResourceBreakdown } from './VMResourceBreakdown.js';
|
|
@@ -177,6 +178,12 @@ export interface VMs {
|
|
|
177
178
|
* @memberof VMs
|
|
178
179
|
*/
|
|
179
180
|
migrationWarnings: Array<MigrationIssue>;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {IssuesBreakdown}
|
|
184
|
+
* @memberof VMs
|
|
185
|
+
*/
|
|
186
|
+
issuesBreakdown?: IssuesBreakdown;
|
|
180
187
|
}
|
|
181
188
|
/**
|
|
182
189
|
* Check if a given object implements the VMs interface.
|
package/dist/models/VMs.js
CHANGED
|
@@ -21,6 +21,7 @@ exports.VMsToJSONTyped = VMsToJSONTyped;
|
|
|
21
21
|
const runtime_js_1 = require("../runtime.js");
|
|
22
22
|
const MigrationIssue_js_1 = require("./MigrationIssue.js");
|
|
23
23
|
const OsInfo_js_1 = require("./OsInfo.js");
|
|
24
|
+
const IssuesBreakdown_js_1 = require("./IssuesBreakdown.js");
|
|
24
25
|
const DiskSizeTierSummary_js_1 = require("./DiskSizeTierSummary.js");
|
|
25
26
|
const DiskTypeSummary_js_1 = require("./DiskTypeSummary.js");
|
|
26
27
|
const VMResourceBreakdown_js_1 = require("./VMResourceBreakdown.js");
|
|
@@ -78,6 +79,7 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
79
|
'osInfo': json['osInfo'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['osInfo'], OsInfo_js_1.OsInfoFromJSON)),
|
|
79
80
|
'notMigratableReasons': (json['notMigratableReasons'].map(MigrationIssue_js_1.MigrationIssueFromJSON)),
|
|
80
81
|
'migrationWarnings': (json['migrationWarnings'].map(MigrationIssue_js_1.MigrationIssueFromJSON)),
|
|
82
|
+
'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : (0, IssuesBreakdown_js_1.IssuesBreakdownFromJSON)(json['issuesBreakdown']),
|
|
81
83
|
};
|
|
82
84
|
}
|
|
83
85
|
function VMsToJSON(json) {
|
|
@@ -110,5 +112,6 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
110
112
|
'osInfo': value['osInfo'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['osInfo'], OsInfo_js_1.OsInfoToJSON)),
|
|
111
113
|
'notMigratableReasons': (value['notMigratableReasons'].map(MigrationIssue_js_1.MigrationIssueToJSON)),
|
|
112
114
|
'migrationWarnings': (value['migrationWarnings'].map(MigrationIssue_js_1.MigrationIssueToJSON)),
|
|
115
|
+
'issuesBreakdown': (0, IssuesBreakdown_js_1.IssuesBreakdownToJSON)(value['issuesBreakdown']),
|
|
113
116
|
};
|
|
114
117
|
}
|
|
@@ -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
|
@@ -3,6 +3,7 @@ export * from './AgentStatus.js';
|
|
|
3
3
|
export * from './ApplicationListResponse.js';
|
|
4
4
|
export * from './ApplicationOverview.js';
|
|
5
5
|
export * from './ApplicationVM.js';
|
|
6
|
+
export * from './BatchUpdateExclusionRequest.js';
|
|
6
7
|
export * from './BenchmarkRun.js';
|
|
7
8
|
export * from './CapabilityStatus.js';
|
|
8
9
|
export * from './CapabilityStatusCapabilities.js';
|
|
@@ -37,12 +38,14 @@ export * from './Infra.js';
|
|
|
37
38
|
export * from './InspectorStatus.js';
|
|
38
39
|
export * from './Inventory.js';
|
|
39
40
|
export * from './InventoryData.js';
|
|
41
|
+
export * from './IssuesBreakdown.js';
|
|
40
42
|
export * from './MigrationIssue.js';
|
|
41
43
|
export * from './Network.js';
|
|
42
44
|
export * from './OperationCapability.js';
|
|
43
45
|
export * from './OsInfo.js';
|
|
44
46
|
export * from './PairCapability.js';
|
|
45
47
|
export * from './PairCapabilityRequest.js';
|
|
48
|
+
export * from './Process.js';
|
|
46
49
|
export * from './PutForecasterCredentials403Response.js';
|
|
47
50
|
export * from './RightsizingClusterListResponse.js';
|
|
48
51
|
export * from './RightsizingClusterResponse.js';
|
|
@@ -55,6 +58,7 @@ export * from './RightsizingReportSummary.js';
|
|
|
55
58
|
export * from './RightsizingVMReport.js';
|
|
56
59
|
export * from './StartInspectionRequest.js';
|
|
57
60
|
export * from './StopForecasterPair202Response.js';
|
|
61
|
+
export * from './StorageIoConfiguration.js';
|
|
58
62
|
export * from './UpdateGroupRequest.js';
|
|
59
63
|
export * from './UpdateInventory.js';
|
|
60
64
|
export * from './UpdateLabelVMsRequest.js';
|
package/dist/models/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./AgentStatus.js"), exports);
|
|
|
21
21
|
__exportStar(require("./ApplicationListResponse.js"), exports);
|
|
22
22
|
__exportStar(require("./ApplicationOverview.js"), exports);
|
|
23
23
|
__exportStar(require("./ApplicationVM.js"), exports);
|
|
24
|
+
__exportStar(require("./BatchUpdateExclusionRequest.js"), exports);
|
|
24
25
|
__exportStar(require("./BenchmarkRun.js"), exports);
|
|
25
26
|
__exportStar(require("./CapabilityStatus.js"), exports);
|
|
26
27
|
__exportStar(require("./CapabilityStatusCapabilities.js"), exports);
|
|
@@ -55,12 +56,14 @@ __exportStar(require("./Infra.js"), exports);
|
|
|
55
56
|
__exportStar(require("./InspectorStatus.js"), exports);
|
|
56
57
|
__exportStar(require("./Inventory.js"), exports);
|
|
57
58
|
__exportStar(require("./InventoryData.js"), exports);
|
|
59
|
+
__exportStar(require("./IssuesBreakdown.js"), exports);
|
|
58
60
|
__exportStar(require("./MigrationIssue.js"), exports);
|
|
59
61
|
__exportStar(require("./Network.js"), exports);
|
|
60
62
|
__exportStar(require("./OperationCapability.js"), exports);
|
|
61
63
|
__exportStar(require("./OsInfo.js"), exports);
|
|
62
64
|
__exportStar(require("./PairCapability.js"), exports);
|
|
63
65
|
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
66
|
+
__exportStar(require("./Process.js"), exports);
|
|
64
67
|
__exportStar(require("./PutForecasterCredentials403Response.js"), exports);
|
|
65
68
|
__exportStar(require("./RightsizingClusterListResponse.js"), exports);
|
|
66
69
|
__exportStar(require("./RightsizingClusterResponse.js"), exports);
|
|
@@ -73,6 +76,7 @@ __exportStar(require("./RightsizingReportSummary.js"), exports);
|
|
|
73
76
|
__exportStar(require("./RightsizingVMReport.js"), exports);
|
|
74
77
|
__exportStar(require("./StartInspectionRequest.js"), exports);
|
|
75
78
|
__exportStar(require("./StopForecasterPair202Response.js"), exports);
|
|
79
|
+
__exportStar(require("./StorageIoConfiguration.js"), exports);
|
|
76
80
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
77
81
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
78
82
|
__exportStar(require("./UpdateLabelVMsRequest.js"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# BatchUpdateExclusionRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`vmIds` | Array<string>
|
|
10
|
+
`migrationExcluded` | boolean
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { BatchUpdateExclusionRequest } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"vmIds": null,
|
|
20
|
+
"migrationExcluded": null,
|
|
21
|
+
} satisfies BatchUpdateExclusionRequest
|
|
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 BatchUpdateExclusionRequest
|
|
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
|
+
|
package/docs/Datastore.md
CHANGED
|
@@ -15,6 +15,7 @@ Name | Type
|
|
|
15
15
|
`protocolType` | string
|
|
16
16
|
`model` | string
|
|
17
17
|
`hostId` | string
|
|
18
|
+
`storageIoConfiguration` | [StorageIoConfiguration](StorageIoConfiguration.md)
|
|
18
19
|
|
|
19
20
|
## Example
|
|
20
21
|
|
|
@@ -32,6 +33,7 @@ const example = {
|
|
|
32
33
|
"protocolType": null,
|
|
33
34
|
"model": null,
|
|
34
35
|
"hostId": null,
|
|
36
|
+
"storageIoConfiguration": null,
|
|
35
37
|
} satisfies Datastore
|
|
36
38
|
|
|
37
39
|
console.log(example)
|
package/docs/DefaultApi.md
CHANGED
|
@@ -4,6 +4,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
| [**batchUpdateVMExclusion**](DefaultApi.md#batchupdatevmexclusion) | **POST** /vms/batch-update-exclusion | Batch update VM exclusion status |
|
|
7
8
|
| [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
|
|
8
9
|
| [**deleteCredentials**](DefaultApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials |
|
|
9
10
|
| [**deleteForecasterRun**](DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run |
|
|
@@ -24,10 +25,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
24
25
|
| [**getInspectorStatus**](DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status |
|
|
25
26
|
| [**getInspectorVddkStatus**](DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status |
|
|
26
27
|
| [**getInventory**](DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory |
|
|
27
|
-
| [**getLatestRightsizingClusters**](DefaultApi.md#getlatestrightsizingclusters) | **GET** /cluster_rightsizing | Get cluster-level utilization aggregates for the latest completed report |
|
|
28
28
|
| [**getRightsizingReport**](DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{report_id} | Get a specific rightsizing report with full VM metrics |
|
|
29
29
|
| [**getRightsizingReportCluster**](DefaultApi.md#getrightsizingreportcluster) | **GET** /rightsizing/{report_id}/clusters/{cluster_id} | Get utilization for a specific cluster from a specific report |
|
|
30
|
-
| [**getRightsizingReportClusters**](DefaultApi.md#getrightsizingreportclusters) | **GET** /cluster_rightsizing/{report_id} | Get cluster-level utilization aggregates for a specific report |
|
|
31
30
|
| [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
|
|
32
31
|
| [**getVMLabels**](DefaultApi.md#getvmlabels) | **GET** /vms/labels | Get all distinct labels in use across VMs |
|
|
33
32
|
| [**getVMUtilization**](DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM |
|
|
@@ -58,6 +57,74 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
58
57
|
|
|
59
58
|
|
|
60
59
|
|
|
60
|
+
## batchUpdateVMExclusion
|
|
61
|
+
|
|
62
|
+
> batchUpdateVMExclusion(batchUpdateExclusionRequest)
|
|
63
|
+
|
|
64
|
+
Batch update VM exclusion status
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```ts
|
|
69
|
+
import {
|
|
70
|
+
Configuration,
|
|
71
|
+
DefaultApi,
|
|
72
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
73
|
+
import type { BatchUpdateVMExclusionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
74
|
+
|
|
75
|
+
async function example() {
|
|
76
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
77
|
+
const api = new DefaultApi();
|
|
78
|
+
|
|
79
|
+
const body = {
|
|
80
|
+
// BatchUpdateExclusionRequest
|
|
81
|
+
batchUpdateExclusionRequest: ...,
|
|
82
|
+
} satisfies BatchUpdateVMExclusionRequest;
|
|
83
|
+
|
|
84
|
+
try {
|
|
85
|
+
const data = await api.batchUpdateVMExclusion(body);
|
|
86
|
+
console.log(data);
|
|
87
|
+
} catch (error) {
|
|
88
|
+
console.error(error);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Run the test
|
|
93
|
+
example().catch(console.error);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
| Name | Type | Description | Notes |
|
|
100
|
+
|------------- | ------------- | ------------- | -------------|
|
|
101
|
+
| **batchUpdateExclusionRequest** | [BatchUpdateExclusionRequest](BatchUpdateExclusionRequest.md) | | |
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
`void` (Empty response body)
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
No authorization required
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: `application/json`
|
|
114
|
+
- **Accept**: Not defined
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### HTTP response details
|
|
118
|
+
| Status code | Description | Response headers |
|
|
119
|
+
|-------------|-------------|------------------|
|
|
120
|
+
| **200** | All VMs updated successfully | - |
|
|
121
|
+
| **400** | Invalid request | - |
|
|
122
|
+
| **404** | One or more VMs not found | - |
|
|
123
|
+
| **500** | Internal server error | - |
|
|
124
|
+
|
|
125
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
126
|
+
|
|
127
|
+
|
|
61
128
|
## createGroup
|
|
62
129
|
|
|
63
130
|
> Group createGroup(createGroupRequest)
|
|
@@ -1354,73 +1421,6 @@ No authorization required
|
|
|
1354
1421
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1355
1422
|
|
|
1356
1423
|
|
|
1357
|
-
## getLatestRightsizingClusters
|
|
1358
|
-
|
|
1359
|
-
> RightsizingClusterListResponse getLatestRightsizingClusters(byExpression)
|
|
1360
|
-
|
|
1361
|
-
Get cluster-level utilization aggregates for the latest completed report
|
|
1362
|
-
|
|
1363
|
-
### Example
|
|
1364
|
-
|
|
1365
|
-
```ts
|
|
1366
|
-
import {
|
|
1367
|
-
Configuration,
|
|
1368
|
-
DefaultApi,
|
|
1369
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
1370
|
-
import type { GetLatestRightsizingClustersRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1371
|
-
|
|
1372
|
-
async function example() {
|
|
1373
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1374
|
-
const api = new DefaultApi();
|
|
1375
|
-
|
|
1376
|
-
const body = {
|
|
1377
|
-
// string | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. (optional)
|
|
1378
|
-
byExpression: byExpression_example,
|
|
1379
|
-
} satisfies GetLatestRightsizingClustersRequest;
|
|
1380
|
-
|
|
1381
|
-
try {
|
|
1382
|
-
const data = await api.getLatestRightsizingClusters(body);
|
|
1383
|
-
console.log(data);
|
|
1384
|
-
} catch (error) {
|
|
1385
|
-
console.error(error);
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
// Run the test
|
|
1390
|
-
example().catch(console.error);
|
|
1391
|
-
```
|
|
1392
|
-
|
|
1393
|
-
### Parameters
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
| Name | Type | Description | Notes |
|
|
1397
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1398
|
-
| **byExpression** | `string` | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. | [Optional] [Defaults to `undefined`] |
|
|
1399
|
-
|
|
1400
|
-
### Return type
|
|
1401
|
-
|
|
1402
|
-
[**RightsizingClusterListResponse**](RightsizingClusterListResponse.md)
|
|
1403
|
-
|
|
1404
|
-
### Authorization
|
|
1405
|
-
|
|
1406
|
-
No authorization required
|
|
1407
|
-
|
|
1408
|
-
### HTTP request headers
|
|
1409
|
-
|
|
1410
|
-
- **Content-Type**: Not defined
|
|
1411
|
-
- **Accept**: `application/json`
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
### HTTP response details
|
|
1415
|
-
| Status code | Description | Response headers |
|
|
1416
|
-
|-------------|-------------|------------------|
|
|
1417
|
-
| **200** | Cluster utilization aggregates | - |
|
|
1418
|
-
| **404** | No completed rightsizing report found | - |
|
|
1419
|
-
| **500** | Internal server error | - |
|
|
1420
|
-
|
|
1421
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
1424
|
## getRightsizingReport
|
|
1425
1425
|
|
|
1426
1426
|
> RightsizingReport getRightsizingReport(reportId)
|
|
@@ -1558,76 +1558,6 @@ No authorization required
|
|
|
1558
1558
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1559
1559
|
|
|
1560
1560
|
|
|
1561
|
-
## getRightsizingReportClusters
|
|
1562
|
-
|
|
1563
|
-
> RightsizingClusterListResponse getRightsizingReportClusters(reportId, byExpression)
|
|
1564
|
-
|
|
1565
|
-
Get cluster-level utilization aggregates for a specific report
|
|
1566
|
-
|
|
1567
|
-
### Example
|
|
1568
|
-
|
|
1569
|
-
```ts
|
|
1570
|
-
import {
|
|
1571
|
-
Configuration,
|
|
1572
|
-
DefaultApi,
|
|
1573
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
1574
|
-
import type { GetRightsizingReportClustersRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1575
|
-
|
|
1576
|
-
async function example() {
|
|
1577
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1578
|
-
const api = new DefaultApi();
|
|
1579
|
-
|
|
1580
|
-
const body = {
|
|
1581
|
-
// string | Rightsizing report UUID
|
|
1582
|
-
reportId: reportId_example,
|
|
1583
|
-
// string | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. (optional)
|
|
1584
|
-
byExpression: byExpression_example,
|
|
1585
|
-
} satisfies GetRightsizingReportClustersRequest;
|
|
1586
|
-
|
|
1587
|
-
try {
|
|
1588
|
-
const data = await api.getRightsizingReportClusters(body);
|
|
1589
|
-
console.log(data);
|
|
1590
|
-
} catch (error) {
|
|
1591
|
-
console.error(error);
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Run the test
|
|
1596
|
-
example().catch(console.error);
|
|
1597
|
-
```
|
|
1598
|
-
|
|
1599
|
-
### Parameters
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
| Name | Type | Description | Notes |
|
|
1603
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1604
|
-
| **reportId** | `string` | Rightsizing report UUID | [Defaults to `undefined`] |
|
|
1605
|
-
| **byExpression** | `string` | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. | [Optional] [Defaults to `undefined`] |
|
|
1606
|
-
|
|
1607
|
-
### Return type
|
|
1608
|
-
|
|
1609
|
-
[**RightsizingClusterListResponse**](RightsizingClusterListResponse.md)
|
|
1610
|
-
|
|
1611
|
-
### Authorization
|
|
1612
|
-
|
|
1613
|
-
No authorization required
|
|
1614
|
-
|
|
1615
|
-
### HTTP request headers
|
|
1616
|
-
|
|
1617
|
-
- **Content-Type**: Not defined
|
|
1618
|
-
- **Accept**: `application/json`
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
### HTTP response details
|
|
1622
|
-
| Status code | Description | Response headers |
|
|
1623
|
-
|-------------|-------------|------------------|
|
|
1624
|
-
| **200** | Cluster utilization aggregates | - |
|
|
1625
|
-
| **404** | Report not found | - |
|
|
1626
|
-
| **500** | Internal server error | - |
|
|
1627
|
-
|
|
1628
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
1561
|
## getVM
|
|
1632
1562
|
|
|
1633
1563
|
> VirtualMachineDetail getVM(id)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# IssuesBreakdown
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`critical` | number
|
|
10
|
+
`warning` | number
|
|
11
|
+
`information` | number
|
|
12
|
+
`advisory` | number
|
|
13
|
+
`error` | number
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { IssuesBreakdown } from '@openshift-migration-advisor/agent-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"critical": null,
|
|
23
|
+
"warning": null,
|
|
24
|
+
"information": null,
|
|
25
|
+
"advisory": null,
|
|
26
|
+
"error": null,
|
|
27
|
+
} satisfies IssuesBreakdown
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as IssuesBreakdown
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
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
|
+
|