@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,100 @@
|
|
|
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 StorageIoConfiguration
|
|
20
|
+
*/
|
|
21
|
+
export interface StorageIoConfiguration {
|
|
22
|
+
/**
|
|
23
|
+
* Whether Storage I/O Control is enabled for this datastore
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof StorageIoConfiguration
|
|
26
|
+
*/
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Latency threshold in milliseconds beyond which the storage array is considered congested
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof StorageIoConfiguration
|
|
32
|
+
*/
|
|
33
|
+
congestionThreshold?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Mode for congestion threshold calculation
|
|
36
|
+
* @type {StorageIoConfigurationCongestionThresholdModeEnum}
|
|
37
|
+
* @memberof StorageIoConfiguration
|
|
38
|
+
*/
|
|
39
|
+
congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
|
|
40
|
+
/**
|
|
41
|
+
* Percent of peak throughput
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof StorageIoConfiguration
|
|
44
|
+
*/
|
|
45
|
+
percentOfPeakThroughput?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const StorageIoConfigurationCongestionThresholdModeEnum = {
|
|
53
|
+
Automatic: 'automatic',
|
|
54
|
+
Manual: 'manual'
|
|
55
|
+
} as const;
|
|
56
|
+
export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the StorageIoConfiguration interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration {
|
|
67
|
+
return StorageIoConfigurationFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
77
|
+
'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
|
|
78
|
+
'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
|
|
79
|
+
'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration {
|
|
84
|
+
return StorageIoConfigurationToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'enabled': value['enabled'],
|
|
95
|
+
'congestionThreshold': value['congestionThreshold'],
|
|
96
|
+
'congestionThresholdMode': value['congestionThresholdMode'],
|
|
97
|
+
'percentOfPeakThroughput': value['percentOfPeakThroughput'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/src/models/VMs.ts
CHANGED
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
OsInfoToJSON,
|
|
28
28
|
OsInfoToJSONTyped,
|
|
29
29
|
} from './OsInfo.js';
|
|
30
|
+
import type { IssuesBreakdown } from './IssuesBreakdown.js';
|
|
31
|
+
import {
|
|
32
|
+
IssuesBreakdownFromJSON,
|
|
33
|
+
IssuesBreakdownFromJSONTyped,
|
|
34
|
+
IssuesBreakdownToJSON,
|
|
35
|
+
IssuesBreakdownToJSONTyped,
|
|
36
|
+
} from './IssuesBreakdown.js';
|
|
30
37
|
import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
|
|
31
38
|
import {
|
|
32
39
|
DiskSizeTierSummaryFromJSON,
|
|
@@ -190,6 +197,12 @@ export interface VMs {
|
|
|
190
197
|
* @memberof VMs
|
|
191
198
|
*/
|
|
192
199
|
migrationWarnings: Array<MigrationIssue>;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {IssuesBreakdown}
|
|
203
|
+
* @memberof VMs
|
|
204
|
+
*/
|
|
205
|
+
issuesBreakdown?: IssuesBreakdown;
|
|
193
206
|
}
|
|
194
207
|
|
|
195
208
|
/**
|
|
@@ -240,6 +253,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
|
|
|
240
253
|
'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
|
|
241
254
|
'notMigratableReasons': ((json['notMigratableReasons'] as Array<any>).map(MigrationIssueFromJSON)),
|
|
242
255
|
'migrationWarnings': ((json['migrationWarnings'] as Array<any>).map(MigrationIssueFromJSON)),
|
|
256
|
+
'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : IssuesBreakdownFromJSON(json['issuesBreakdown']),
|
|
243
257
|
};
|
|
244
258
|
}
|
|
245
259
|
|
|
@@ -276,6 +290,7 @@ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean
|
|
|
276
290
|
'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
|
|
277
291
|
'notMigratableReasons': ((value['notMigratableReasons'] as Array<any>).map(MigrationIssueToJSON)),
|
|
278
292
|
'migrationWarnings': ((value['migrationWarnings'] as Array<any>).map(MigrationIssueToJSON)),
|
|
293
|
+
'issuesBreakdown': IssuesBreakdownToJSON(value['issuesBreakdown']),
|
|
279
294
|
};
|
|
280
295
|
}
|
|
281
296
|
|
|
@@ -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
|
@@ -5,6 +5,7 @@ export * from './AgentStatus.js';
|
|
|
5
5
|
export * from './ApplicationListResponse.js';
|
|
6
6
|
export * from './ApplicationOverview.js';
|
|
7
7
|
export * from './ApplicationVM.js';
|
|
8
|
+
export * from './BatchUpdateExclusionRequest.js';
|
|
8
9
|
export * from './BenchmarkRun.js';
|
|
9
10
|
export * from './CapabilityStatus.js';
|
|
10
11
|
export * from './CapabilityStatusCapabilities.js';
|
|
@@ -39,12 +40,14 @@ export * from './Infra.js';
|
|
|
39
40
|
export * from './InspectorStatus.js';
|
|
40
41
|
export * from './Inventory.js';
|
|
41
42
|
export * from './InventoryData.js';
|
|
43
|
+
export * from './IssuesBreakdown.js';
|
|
42
44
|
export * from './MigrationIssue.js';
|
|
43
45
|
export * from './Network.js';
|
|
44
46
|
export * from './OperationCapability.js';
|
|
45
47
|
export * from './OsInfo.js';
|
|
46
48
|
export * from './PairCapability.js';
|
|
47
49
|
export * from './PairCapabilityRequest.js';
|
|
50
|
+
export * from './Process.js';
|
|
48
51
|
export * from './PutForecasterCredentials403Response.js';
|
|
49
52
|
export * from './RightsizingClusterListResponse.js';
|
|
50
53
|
export * from './RightsizingClusterResponse.js';
|
|
@@ -57,6 +60,7 @@ export * from './RightsizingReportSummary.js';
|
|
|
57
60
|
export * from './RightsizingVMReport.js';
|
|
58
61
|
export * from './StartInspectionRequest.js';
|
|
59
62
|
export * from './StopForecasterPair202Response.js';
|
|
63
|
+
export * from './StorageIoConfiguration.js';
|
|
60
64
|
export * from './UpdateGroupRequest.js';
|
|
61
65
|
export * from './UpdateInventory.js';
|
|
62
66
|
export * from './UpdateLabelVMsRequest.js';
|