@openshift-migration-advisor/agent-sdk 0.17.0 → 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 +6 -0
- package/README.md +11 -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/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 +3 -0
- package/dist/esm/models/index.js +3 -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/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 +3 -0
- package/dist/models/index.js +3 -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/StorageIoConfiguration.md +40 -0
- package/docs/VMs.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/StorageIoConfiguration.ts +100 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,75 @@
|
|
|
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 BatchUpdateExclusionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface BatchUpdateExclusionRequest {
|
|
22
|
+
/**
|
|
23
|
+
* VM IDs to update
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof BatchUpdateExclusionRequest
|
|
26
|
+
*/
|
|
27
|
+
vmIds: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Exclusion state to set for all VMs
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof BatchUpdateExclusionRequest
|
|
32
|
+
*/
|
|
33
|
+
migrationExcluded: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the BatchUpdateExclusionRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfBatchUpdateExclusionRequest(value: object): value is BatchUpdateExclusionRequest {
|
|
40
|
+
if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
|
|
41
|
+
if (!('migrationExcluded' in value) || value['migrationExcluded'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function BatchUpdateExclusionRequestFromJSON(json: any): BatchUpdateExclusionRequest {
|
|
46
|
+
return BatchUpdateExclusionRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function BatchUpdateExclusionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdateExclusionRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'vmIds': json['vmIds'],
|
|
56
|
+
'migrationExcluded': json['migrationExcluded'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function BatchUpdateExclusionRequestToJSON(json: any): BatchUpdateExclusionRequest {
|
|
61
|
+
return BatchUpdateExclusionRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function BatchUpdateExclusionRequestToJSONTyped(value?: BatchUpdateExclusionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'vmIds': value['vmIds'],
|
|
72
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/Datastore.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
|
|
17
|
+
import {
|
|
18
|
+
StorageIoConfigurationFromJSON,
|
|
19
|
+
StorageIoConfigurationFromJSONTyped,
|
|
20
|
+
StorageIoConfigurationToJSON,
|
|
21
|
+
StorageIoConfigurationToJSONTyped,
|
|
22
|
+
} from './StorageIoConfiguration.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -73,6 +81,12 @@ export interface Datastore {
|
|
|
73
81
|
* @memberof Datastore
|
|
74
82
|
*/
|
|
75
83
|
hostId?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {StorageIoConfiguration}
|
|
87
|
+
* @memberof Datastore
|
|
88
|
+
*/
|
|
89
|
+
storageIoConfiguration?: StorageIoConfiguration;
|
|
76
90
|
}
|
|
77
91
|
|
|
78
92
|
/**
|
|
@@ -109,6 +123,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
109
123
|
'protocolType': json['protocolType'],
|
|
110
124
|
'model': json['model'],
|
|
111
125
|
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
126
|
+
'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
|
|
112
127
|
};
|
|
113
128
|
}
|
|
114
129
|
|
|
@@ -132,6 +147,7 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
|
|
|
132
147
|
'protocolType': value['protocolType'],
|
|
133
148
|
'model': value['model'],
|
|
134
149
|
'hostId': value['hostId'],
|
|
150
|
+
'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
|
|
135
151
|
};
|
|
136
152
|
}
|
|
137
153
|
|
|
@@ -0,0 +1,102 @@
|
|
|
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 IssuesBreakdown
|
|
20
|
+
*/
|
|
21
|
+
export interface IssuesBreakdown {
|
|
22
|
+
/**
|
|
23
|
+
* Number of VMs with at least one Critical issue
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IssuesBreakdown
|
|
26
|
+
*/
|
|
27
|
+
critical: number;
|
|
28
|
+
/**
|
|
29
|
+
* Number of VMs with at least one Warning issue
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof IssuesBreakdown
|
|
32
|
+
*/
|
|
33
|
+
warning: number;
|
|
34
|
+
/**
|
|
35
|
+
* Number of VMs with at least one Information issue
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof IssuesBreakdown
|
|
38
|
+
*/
|
|
39
|
+
information: number;
|
|
40
|
+
/**
|
|
41
|
+
* Number of VMs with at least one Advisory issue
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IssuesBreakdown
|
|
44
|
+
*/
|
|
45
|
+
advisory: number;
|
|
46
|
+
/**
|
|
47
|
+
* Number of VMs with at least one Error issue
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IssuesBreakdown
|
|
50
|
+
*/
|
|
51
|
+
error: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown {
|
|
58
|
+
if (!('critical' in value) || value['critical'] === undefined) return false;
|
|
59
|
+
if (!('warning' in value) || value['warning'] === undefined) return false;
|
|
60
|
+
if (!('information' in value) || value['information'] === undefined) return false;
|
|
61
|
+
if (!('advisory' in value) || value['advisory'] === undefined) return false;
|
|
62
|
+
if (!('error' in value) || value['error'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function IssuesBreakdownFromJSON(json: any): IssuesBreakdown {
|
|
67
|
+
return IssuesBreakdownFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'critical': json['critical'],
|
|
77
|
+
'warning': json['warning'],
|
|
78
|
+
'information': json['information'],
|
|
79
|
+
'advisory': json['advisory'],
|
|
80
|
+
'error': json['error'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function IssuesBreakdownToJSON(json: any): IssuesBreakdown {
|
|
85
|
+
return IssuesBreakdownToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'critical': value['critical'],
|
|
96
|
+
'warning': value['warning'],
|
|
97
|
+
'information': value['information'],
|
|
98
|
+
'advisory': value['advisory'],
|
|
99
|
+
'error': value['error'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -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
|
@@ -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,6 +40,7 @@ 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';
|
|
@@ -57,6 +59,7 @@ export * from './RightsizingReportSummary.js';
|
|
|
57
59
|
export * from './RightsizingVMReport.js';
|
|
58
60
|
export * from './StartInspectionRequest.js';
|
|
59
61
|
export * from './StopForecasterPair202Response.js';
|
|
62
|
+
export * from './StorageIoConfiguration.js';
|
|
60
63
|
export * from './UpdateGroupRequest.js';
|
|
61
64
|
export * from './UpdateInventory.js';
|
|
62
65
|
export * from './UpdateLabelVMsRequest.js';
|