@openshift-migration-advisor/agent-sdk 0.17.0-fa395f816b50 → 0.18.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 +4 -0
- package/README.md +4 -4
- package/dist/apis/DefaultApi.d.ts +0 -85
- package/dist/apis/DefaultApi.js +0 -86
- package/dist/esm/apis/DefaultApi.d.ts +0 -85
- package/dist/esm/apis/DefaultApi.js +0 -86
- 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/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/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -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/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/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/Datastore.md +2 -0
- package/docs/DefaultApi.md +0 -139
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/StorageIoConfiguration.md +40 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +0 -159
- package/src/models/Datastore.ts +16 -0
- package/src/models/IssuesBreakdown.ts +102 -0
- package/src/models/StorageIoConfiguration.ts +100 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/index.ts +2 -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
|
|
package/src/models/index.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './Infra.js';
|
|
|
40
40
|
export * from './InspectorStatus.js';
|
|
41
41
|
export * from './Inventory.js';
|
|
42
42
|
export * from './InventoryData.js';
|
|
43
|
+
export * from './IssuesBreakdown.js';
|
|
43
44
|
export * from './MigrationIssue.js';
|
|
44
45
|
export * from './Network.js';
|
|
45
46
|
export * from './OperationCapability.js';
|
|
@@ -58,6 +59,7 @@ export * from './RightsizingReportSummary.js';
|
|
|
58
59
|
export * from './RightsizingVMReport.js';
|
|
59
60
|
export * from './StartInspectionRequest.js';
|
|
60
61
|
export * from './StopForecasterPair202Response.js';
|
|
62
|
+
export * from './StorageIoConfiguration.js';
|
|
61
63
|
export * from './UpdateGroupRequest.js';
|
|
62
64
|
export * from './UpdateInventory.js';
|
|
63
65
|
export * from './UpdateLabelVMsRequest.js';
|