@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,54 @@
|
|
|
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.instanceOfBatchUpdateExclusionRequest = instanceOfBatchUpdateExclusionRequest;
|
|
17
|
+
exports.BatchUpdateExclusionRequestFromJSON = BatchUpdateExclusionRequestFromJSON;
|
|
18
|
+
exports.BatchUpdateExclusionRequestFromJSONTyped = BatchUpdateExclusionRequestFromJSONTyped;
|
|
19
|
+
exports.BatchUpdateExclusionRequestToJSON = BatchUpdateExclusionRequestToJSON;
|
|
20
|
+
exports.BatchUpdateExclusionRequestToJSONTyped = BatchUpdateExclusionRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BatchUpdateExclusionRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBatchUpdateExclusionRequest(value) {
|
|
25
|
+
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('migrationExcluded' in value) || value['migrationExcluded'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function BatchUpdateExclusionRequestFromJSON(json) {
|
|
32
|
+
return BatchUpdateExclusionRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function BatchUpdateExclusionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'vmIds': json['vmIds'],
|
|
40
|
+
'migrationExcluded': json['migrationExcluded'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function BatchUpdateExclusionRequestToJSON(json) {
|
|
44
|
+
return BatchUpdateExclusionRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function BatchUpdateExclusionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'vmIds': value['vmIds'],
|
|
52
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -69,6 +70,12 @@ export interface Datastore {
|
|
|
69
70
|
* @memberof Datastore
|
|
70
71
|
*/
|
|
71
72
|
hostId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {StorageIoConfiguration}
|
|
76
|
+
* @memberof Datastore
|
|
77
|
+
*/
|
|
78
|
+
storageIoConfiguration?: StorageIoConfiguration;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* Check if a given object implements the Datastore interface.
|
package/dist/models/Datastore.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.DatastoreFromJSON = DatastoreFromJSON;
|
|
|
18
18
|
exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
|
|
19
19
|
exports.DatastoreToJSON = DatastoreToJSON;
|
|
20
20
|
exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
|
|
21
|
+
const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Datastore interface.
|
|
23
24
|
*/
|
|
@@ -57,6 +58,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
58
|
'protocolType': json['protocolType'],
|
|
58
59
|
'model': json['model'],
|
|
59
60
|
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
61
|
+
'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : (0, StorageIoConfiguration_js_1.StorageIoConfigurationFromJSON)(json['storageIoConfiguration']),
|
|
60
62
|
};
|
|
61
63
|
}
|
|
62
64
|
function DatastoreToJSON(json) {
|
|
@@ -76,5 +78,6 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
78
|
'protocolType': value['protocolType'],
|
|
77
79
|
'model': value['model'],
|
|
78
80
|
'hostId': value['hostId'],
|
|
81
|
+
'storageIoConfiguration': (0, StorageIoConfiguration_js_1.StorageIoConfigurationToJSON)(value['storageIoConfiguration']),
|
|
79
82
|
};
|
|
80
83
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 IssuesBreakdown
|
|
16
|
+
*/
|
|
17
|
+
export interface IssuesBreakdown {
|
|
18
|
+
/**
|
|
19
|
+
* Number of VMs with at least one Critical issue
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IssuesBreakdown
|
|
22
|
+
*/
|
|
23
|
+
critical: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of VMs with at least one Warning issue
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof IssuesBreakdown
|
|
28
|
+
*/
|
|
29
|
+
warning: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of VMs with at least one Information issue
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof IssuesBreakdown
|
|
34
|
+
*/
|
|
35
|
+
information: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of VMs with at least one Advisory issue
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IssuesBreakdown
|
|
40
|
+
*/
|
|
41
|
+
advisory: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of VMs with at least one Error issue
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IssuesBreakdown
|
|
46
|
+
*/
|
|
47
|
+
error: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown;
|
|
53
|
+
export declare function IssuesBreakdownFromJSON(json: any): IssuesBreakdown;
|
|
54
|
+
export declare function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown;
|
|
55
|
+
export declare function IssuesBreakdownToJSON(json: any): IssuesBreakdown;
|
|
56
|
+
export declare function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfIssuesBreakdown = instanceOfIssuesBreakdown;
|
|
17
|
+
exports.IssuesBreakdownFromJSON = IssuesBreakdownFromJSON;
|
|
18
|
+
exports.IssuesBreakdownFromJSONTyped = IssuesBreakdownFromJSONTyped;
|
|
19
|
+
exports.IssuesBreakdownToJSON = IssuesBreakdownToJSON;
|
|
20
|
+
exports.IssuesBreakdownToJSONTyped = IssuesBreakdownToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIssuesBreakdown(value) {
|
|
25
|
+
if (!('critical' in value) || value['critical'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('warning' in value) || value['warning'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('information' in value) || value['information'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('advisory' in value) || value['advisory'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function IssuesBreakdownFromJSON(json) {
|
|
38
|
+
return IssuesBreakdownFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'critical': json['critical'],
|
|
46
|
+
'warning': json['warning'],
|
|
47
|
+
'information': json['information'],
|
|
48
|
+
'advisory': json['advisory'],
|
|
49
|
+
'error': json['error'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function IssuesBreakdownToJSON(json) {
|
|
53
|
+
return IssuesBreakdownToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'critical': value['critical'],
|
|
61
|
+
'warning': value['warning'],
|
|
62
|
+
'information': value['information'],
|
|
63
|
+
'advisory': value['advisory'],
|
|
64
|
+
'error': value['error'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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
|
}
|
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,6 +38,7 @@ 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';
|
|
@@ -55,6 +57,7 @@ export * from './RightsizingReportSummary.js';
|
|
|
55
57
|
export * from './RightsizingVMReport.js';
|
|
56
58
|
export * from './StartInspectionRequest.js';
|
|
57
59
|
export * from './StopForecasterPair202Response.js';
|
|
60
|
+
export * from './StorageIoConfiguration.js';
|
|
58
61
|
export * from './UpdateGroupRequest.js';
|
|
59
62
|
export * from './UpdateInventory.js';
|
|
60
63
|
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,6 +56,7 @@ __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);
|
|
@@ -73,6 +75,7 @@ __exportStar(require("./RightsizingReportSummary.js"), exports);
|
|
|
73
75
|
__exportStar(require("./RightsizingVMReport.js"), exports);
|
|
74
76
|
__exportStar(require("./StartInspectionRequest.js"), exports);
|
|
75
77
|
__exportStar(require("./StopForecasterPair202Response.js"), exports);
|
|
78
|
+
__exportStar(require("./StorageIoConfiguration.js"), exports);
|
|
76
79
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
77
80
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
78
81
|
__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)
|