@openshift-migration-advisor/agent-sdk 0.12.0-914fe80385ee → 0.12.0-bbcf7fe3b88e
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 +14 -0
- package/README.md +18 -4
- package/dist/apis/DefaultApi.d.ts +303 -41
- package/dist/apis/DefaultApi.js +335 -46
- package/dist/esm/apis/DefaultApi.d.ts +303 -41
- package/dist/esm/apis/DefaultApi.js +335 -46
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
- package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VirtualMachine.d.ts +16 -4
- package/dist/esm/models/VirtualMachine.js +12 -8
- package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/esm/models/VirtualMachineDetail.js +7 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/esm/models/VmUtilizationDetails.js +36 -36
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/models/RightsizingClusterListResponse.js +3 -3
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/models/RightsizingClusterUtilization.js +36 -36
- package/dist/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/models/VMFilterOptionsResponse.js +62 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VirtualMachine.d.ts +16 -4
- package/dist/models/VirtualMachine.js +12 -8
- package/dist/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/models/VirtualMachineDetail.js +7 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/models/VmUtilizationDetails.js +36 -36
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ClusterFeatures.md +38 -0
- package/docs/DefaultApi.md +529 -60
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +2 -0
- package/docs/RightsizingClusterListResponse.md +2 -2
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +24 -24
- package/docs/RightsizingCollectRequest.md +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +40 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VirtualMachine.md +12 -8
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +641 -88
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +15 -0
- package/src/models/RightsizingClusterListResponse.ts +4 -4
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +48 -48
- package/src/models/RightsizingCollectRequest.ts +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/StartInspectionRequest.ts +18 -1
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +93 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VirtualMachine.ts +28 -12
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +7 -0
|
@@ -30,7 +30,7 @@ export interface AgentStatus {
|
|
|
30
30
|
* @type {AgentStatusConsoleConnectionEnum}
|
|
31
31
|
* @memberof AgentStatus
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
console_connection: AgentStatusConsoleConnectionEnum;
|
|
34
34
|
/**
|
|
35
35
|
* Connection error description
|
|
36
36
|
* @type {string}
|
|
@@ -64,7 +64,7 @@ export type AgentStatusConsoleConnectionEnum = typeof AgentStatusConsoleConnecti
|
|
|
64
64
|
*/
|
|
65
65
|
export function instanceOfAgentStatus(value: object): value is AgentStatus {
|
|
66
66
|
if (!('mode' in value) || value['mode'] === undefined) return false;
|
|
67
|
-
if (!('
|
|
67
|
+
if (!('console_connection' in value) || value['console_connection'] === undefined) return false;
|
|
68
68
|
return true;
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -79,7 +79,7 @@ export function AgentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
79
79
|
return {
|
|
80
80
|
|
|
81
81
|
'mode': json['mode'],
|
|
82
|
-
'
|
|
82
|
+
'console_connection': json['console_connection'],
|
|
83
83
|
'error': json['error'] == null ? undefined : json['error'],
|
|
84
84
|
};
|
|
85
85
|
}
|
|
@@ -96,7 +96,7 @@ export function AgentStatusToJSONTyped(value?: AgentStatus | null, ignoreDiscrim
|
|
|
96
96
|
return {
|
|
97
97
|
|
|
98
98
|
'mode': value['mode'],
|
|
99
|
-
'console_connection': value['
|
|
99
|
+
'console_connection': value['console_connection'],
|
|
100
100
|
'error': value['error'],
|
|
101
101
|
};
|
|
102
102
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 ClusterFeatures
|
|
20
|
+
*/
|
|
21
|
+
export interface ClusterFeatures {
|
|
22
|
+
/**
|
|
23
|
+
* Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ClusterFeatures
|
|
26
|
+
*/
|
|
27
|
+
drsEnabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* DRS automation mode for the cluster
|
|
30
|
+
* @type {ClusterFeaturesDrsModeEnum}
|
|
31
|
+
* @memberof ClusterFeatures
|
|
32
|
+
*/
|
|
33
|
+
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Whether Storage DRS is enabled for this cluster
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof ClusterFeatures
|
|
38
|
+
*/
|
|
39
|
+
storageDrsEnabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ClusterFeaturesDrsModeEnum = {
|
|
47
|
+
FullyAutomated: 'Fully Automated',
|
|
48
|
+
PartiallyAutomated: 'Partially Automated',
|
|
49
|
+
Manual: 'Manual',
|
|
50
|
+
None: 'None'
|
|
51
|
+
} as const;
|
|
52
|
+
export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfClusterFeatures(value: object): value is ClusterFeatures {
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ClusterFeaturesFromJSON(json: any): ClusterFeatures {
|
|
63
|
+
return ClusterFeaturesFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
73
|
+
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
74
|
+
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ClusterFeaturesToJSON(json: any): ClusterFeatures {
|
|
79
|
+
return ClusterFeaturesToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'drsEnabled': value['drsEnabled'],
|
|
90
|
+
'drsMode': value['drsMode'],
|
|
91
|
+
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -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 DeleteLabelGloballyResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteLabelGloballyResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Number of VMs that had the label removed
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DeleteLabelGloballyResponse
|
|
26
|
+
*/
|
|
27
|
+
affected: number;
|
|
28
|
+
/**
|
|
29
|
+
* The label that was removed
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DeleteLabelGloballyResponse
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DeleteLabelGloballyResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDeleteLabelGloballyResponse(value: object): value is DeleteLabelGloballyResponse {
|
|
40
|
+
if (!('affected' in value) || value['affected'] === undefined) return false;
|
|
41
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DeleteLabelGloballyResponseFromJSON(json: any): DeleteLabelGloballyResponse {
|
|
46
|
+
return DeleteLabelGloballyResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DeleteLabelGloballyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLabelGloballyResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'affected': json['affected'],
|
|
56
|
+
'label': json['label'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DeleteLabelGloballyResponseToJSON(json: any): DeleteLabelGloballyResponse {
|
|
61
|
+
return DeleteLabelGloballyResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DeleteLabelGloballyResponseToJSONTyped(value?: DeleteLabelGloballyResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'affected': value['affected'],
|
|
72
|
+
'label': value['label'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
VddkPropertiesToJSON,
|
|
21
21
|
VddkPropertiesToJSONTyped,
|
|
22
22
|
} from './VddkProperties.js';
|
|
23
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
24
|
-
import {
|
|
25
|
-
VcenterCredentialsFromJSON,
|
|
26
|
-
VcenterCredentialsFromJSONTyped,
|
|
27
|
-
VcenterCredentialsToJSON,
|
|
28
|
-
VcenterCredentialsToJSONTyped,
|
|
29
|
-
} from './VcenterCredentials.js';
|
|
30
23
|
|
|
31
24
|
/**
|
|
32
25
|
*
|
|
@@ -40,24 +33,12 @@ export interface InspectorStatus {
|
|
|
40
33
|
* @memberof InspectorStatus
|
|
41
34
|
*/
|
|
42
35
|
state: InspectorStatusStateEnum;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {VcenterCredentials}
|
|
46
|
-
* @memberof InspectorStatus
|
|
47
|
-
*/
|
|
48
|
-
credentials?: VcenterCredentials;
|
|
49
36
|
/**
|
|
50
37
|
*
|
|
51
38
|
* @type {VddkProperties}
|
|
52
39
|
* @memberof InspectorStatus
|
|
53
40
|
*/
|
|
54
41
|
vddk?: VddkProperties;
|
|
55
|
-
/**
|
|
56
|
-
* Error message when state is error
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof InspectorStatus
|
|
59
|
-
*/
|
|
60
|
-
error?: string;
|
|
61
42
|
}
|
|
62
43
|
|
|
63
44
|
|
|
@@ -66,11 +47,7 @@ export interface InspectorStatus {
|
|
|
66
47
|
*/
|
|
67
48
|
export const InspectorStatusStateEnum = {
|
|
68
49
|
InspectorStatusStateReady: 'ready',
|
|
69
|
-
|
|
70
|
-
InspectorStatusStateRunning: 'running',
|
|
71
|
-
InspectorStatusStateCanceled: 'canceled',
|
|
72
|
-
InspectorStatusStateCompleted: 'completed',
|
|
73
|
-
InspectorStatusStateError: 'error'
|
|
50
|
+
InspectorStatusStateRunning: 'running'
|
|
74
51
|
} as const;
|
|
75
52
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
76
53
|
|
|
@@ -94,9 +71,7 @@ export function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
94
71
|
return {
|
|
95
72
|
|
|
96
73
|
'state': json['state'],
|
|
97
|
-
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
98
74
|
'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
|
|
99
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
100
75
|
};
|
|
101
76
|
}
|
|
102
77
|
|
|
@@ -112,9 +87,7 @@ export function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignor
|
|
|
112
87
|
return {
|
|
113
88
|
|
|
114
89
|
'state': value['state'],
|
|
115
|
-
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
116
90
|
'vddk': VddkPropertiesToJSON(value['vddk']),
|
|
117
|
-
'error': value['error'],
|
|
118
91
|
};
|
|
119
92
|
}
|
|
120
93
|
|
package/src/models/Inventory.ts
CHANGED
|
@@ -32,7 +32,13 @@ export interface Inventory {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Inventory
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
vcenter_id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Inventory
|
|
40
|
+
*/
|
|
41
|
+
vcenter_version?: string;
|
|
36
42
|
/**
|
|
37
43
|
* Map of cluster names to their inventory data
|
|
38
44
|
* @type {{ [key: string]: InventoryData; }}
|
|
@@ -51,7 +57,7 @@ export interface Inventory {
|
|
|
51
57
|
* Check if a given object implements the Inventory interface.
|
|
52
58
|
*/
|
|
53
59
|
export function instanceOfInventory(value: object): value is Inventory {
|
|
54
|
-
if (!('
|
|
60
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
|
|
55
61
|
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
56
62
|
return true;
|
|
57
63
|
}
|
|
@@ -66,7 +72,8 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
66
72
|
}
|
|
67
73
|
return {
|
|
68
74
|
|
|
69
|
-
'
|
|
75
|
+
'vcenter_id': json['vcenter_id'],
|
|
76
|
+
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
70
77
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
71
78
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
72
79
|
};
|
|
@@ -83,7 +90,8 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
|
|
|
83
90
|
|
|
84
91
|
return {
|
|
85
92
|
|
|
86
|
-
'vcenter_id': value['
|
|
93
|
+
'vcenter_id': value['vcenter_id'],
|
|
94
|
+
'vcenter_version': value['vcenter_version'],
|
|
87
95
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
88
96
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
89
97
|
};
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
VMsToJSON,
|
|
35
35
|
VMsToJSONTyped,
|
|
36
36
|
} from './VMs.js';
|
|
37
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
38
|
+
import {
|
|
39
|
+
ClusterFeaturesFromJSON,
|
|
40
|
+
ClusterFeaturesFromJSONTyped,
|
|
41
|
+
ClusterFeaturesToJSON,
|
|
42
|
+
ClusterFeaturesToJSONTyped,
|
|
43
|
+
} from './ClusterFeatures.js';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -47,6 +54,12 @@ export interface InventoryData {
|
|
|
47
54
|
* @memberof InventoryData
|
|
48
55
|
*/
|
|
49
56
|
vcenter?: VCenter;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {ClusterFeatures}
|
|
60
|
+
* @memberof InventoryData
|
|
61
|
+
*/
|
|
62
|
+
clusterFeatures?: ClusterFeatures;
|
|
50
63
|
/**
|
|
51
64
|
*
|
|
52
65
|
* @type {VMs}
|
|
@@ -81,6 +94,7 @@ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
81
94
|
return {
|
|
82
95
|
|
|
83
96
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
97
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
84
98
|
'vms': VMsFromJSON(json['vms']),
|
|
85
99
|
'infra': InfraFromJSON(json['infra']),
|
|
86
100
|
};
|
|
@@ -98,6 +112,7 @@ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDis
|
|
|
98
112
|
return {
|
|
99
113
|
|
|
100
114
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
115
|
+
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
101
116
|
'vms': VMsToJSON(value['vms']),
|
|
102
117
|
'infra': InfraToJSON(value['infra']),
|
|
103
118
|
};
|
|
@@ -32,7 +32,7 @@ export interface RightsizingClusterListResponse {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof RightsizingClusterListResponse
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
report_id: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {Array<RightsizingClusterUtilization>}
|
|
@@ -45,7 +45,7 @@ export interface RightsizingClusterListResponse {
|
|
|
45
45
|
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
46
46
|
*/
|
|
47
47
|
export function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse {
|
|
48
|
-
if (!('
|
|
48
|
+
if (!('report_id' in value) || value['report_id'] === undefined) return false;
|
|
49
49
|
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
50
50
|
return true;
|
|
51
51
|
}
|
|
@@ -60,7 +60,7 @@ export function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDis
|
|
|
60
60
|
}
|
|
61
61
|
return {
|
|
62
62
|
|
|
63
|
-
'
|
|
63
|
+
'report_id': json['report_id'],
|
|
64
64
|
'clusters': ((json['clusters'] as Array<any>).map(RightsizingClusterUtilizationFromJSON)),
|
|
65
65
|
};
|
|
66
66
|
}
|
|
@@ -76,7 +76,7 @@ export function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClu
|
|
|
76
76
|
|
|
77
77
|
return {
|
|
78
78
|
|
|
79
|
-
'report_id': value['
|
|
79
|
+
'report_id': value['report_id'],
|
|
80
80
|
'clusters': ((value['clusters'] as Array<any>).map(RightsizingClusterUtilizationToJSON)),
|
|
81
81
|
};
|
|
82
82
|
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
|
|
17
|
+
import {
|
|
18
|
+
RightsizingClusterUtilizationFromJSON,
|
|
19
|
+
RightsizingClusterUtilizationFromJSONTyped,
|
|
20
|
+
RightsizingClusterUtilizationToJSON,
|
|
21
|
+
RightsizingClusterUtilizationToJSONTyped,
|
|
22
|
+
} from './RightsizingClusterUtilization.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RightsizingClusterResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface RightsizingClusterResponse {
|
|
30
|
+
/**
|
|
31
|
+
* The report ID this data was aggregated from
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RightsizingClusterResponse
|
|
34
|
+
*/
|
|
35
|
+
report_id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {RightsizingClusterUtilization}
|
|
39
|
+
* @memberof RightsizingClusterResponse
|
|
40
|
+
*/
|
|
41
|
+
cluster: RightsizingClusterUtilization;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the RightsizingClusterResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfRightsizingClusterResponse(value: object): value is RightsizingClusterResponse {
|
|
48
|
+
if (!('report_id' in value) || value['report_id'] === undefined) return false;
|
|
49
|
+
if (!('cluster' in value) || value['cluster'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RightsizingClusterResponseFromJSON(json: any): RightsizingClusterResponse {
|
|
54
|
+
return RightsizingClusterResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function RightsizingClusterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterResponse {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'report_id': json['report_id'],
|
|
64
|
+
'cluster': RightsizingClusterUtilizationFromJSON(json['cluster']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function RightsizingClusterResponseToJSON(json: any): RightsizingClusterResponse {
|
|
69
|
+
return RightsizingClusterResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function RightsizingClusterResponseToJSONTyped(value?: RightsizingClusterResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'report_id': value['report_id'],
|
|
80
|
+
'cluster': RightsizingClusterUtilizationToJSON(value['cluster']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -24,56 +24,56 @@ export interface RightsizingClusterUtilization {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof RightsizingClusterUtilization
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
cluster_id: string;
|
|
28
28
|
/**
|
|
29
29
|
* Display name of the cluster as reported by vCenter (e.g. "production-cluster").
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof RightsizingClusterUtilization
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
cluster_name: string;
|
|
34
34
|
/**
|
|
35
35
|
* Number of VMs with utilization data in this cluster
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof RightsizingClusterUtilization
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
vm_count: number;
|
|
40
40
|
/**
|
|
41
41
|
* SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof RightsizingClusterUtilization
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
cpu_avg: number;
|
|
46
46
|
/**
|
|
47
47
|
* SUM(vCPUs × vm_p95%) / SUM(vCPUs). Weighted summary of per-VM p95 values — not a true cluster-wide p95 (which would require time-aligned samples).
|
|
48
48
|
*
|
|
49
49
|
* @type {number}
|
|
50
50
|
* @memberof RightsizingClusterUtilization
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
cpu_p95: number;
|
|
53
53
|
/**
|
|
54
54
|
* Weighted summary of per-VM max values (see cpu_p95 note)
|
|
55
55
|
* @type {number}
|
|
56
56
|
* @memberof RightsizingClusterUtilization
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
cpu_max: number;
|
|
59
59
|
/**
|
|
60
60
|
* SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
|
|
61
61
|
* @type {number}
|
|
62
62
|
* @memberof RightsizingClusterUtilization
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
mem_avg: number;
|
|
65
65
|
/**
|
|
66
66
|
* Weighted summary of per-VM memory p95 values (see cpu_p95 note)
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof RightsizingClusterUtilization
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
mem_p95: number;
|
|
71
71
|
/**
|
|
72
72
|
* Weighted summary of per-VM memory max values (see cpu_p95 note)
|
|
73
73
|
* @type {number}
|
|
74
74
|
* @memberof RightsizingClusterUtilization
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
mem_max: number;
|
|
77
77
|
/**
|
|
78
78
|
* SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
|
|
79
79
|
* @type {number}
|
|
@@ -92,39 +92,39 @@ export interface RightsizingClusterUtilization {
|
|
|
92
92
|
* @type {number}
|
|
93
93
|
* @memberof RightsizingClusterUtilization
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
total_provisioned_cpus: number;
|
|
96
96
|
/**
|
|
97
97
|
* Sum of provisioned RAM (MB) across all VMs in the cluster
|
|
98
98
|
* @type {number}
|
|
99
99
|
* @memberof RightsizingClusterUtilization
|
|
100
100
|
*/
|
|
101
|
-
|
|
101
|
+
total_provisioned_memory_mb: number;
|
|
102
102
|
/**
|
|
103
103
|
* Sum of provisioned disk (KB) across all VMs in the cluster
|
|
104
104
|
* @type {number}
|
|
105
105
|
* @memberof RightsizingClusterUtilization
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
total_provisioned_disk_kb: number;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
112
112
|
*/
|
|
113
113
|
export function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization {
|
|
114
|
-
if (!('
|
|
115
|
-
if (!('
|
|
116
|
-
if (!('
|
|
117
|
-
if (!('
|
|
118
|
-
if (!('
|
|
119
|
-
if (!('
|
|
120
|
-
if (!('
|
|
121
|
-
if (!('
|
|
122
|
-
if (!('
|
|
114
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined) return false;
|
|
115
|
+
if (!('cluster_name' in value) || value['cluster_name'] === undefined) return false;
|
|
116
|
+
if (!('vm_count' in value) || value['vm_count'] === undefined) return false;
|
|
117
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined) return false;
|
|
118
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined) return false;
|
|
119
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined) return false;
|
|
120
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined) return false;
|
|
121
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined) return false;
|
|
122
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined) return false;
|
|
123
123
|
if (!('disk' in value) || value['disk'] === undefined) return false;
|
|
124
124
|
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
125
|
-
if (!('
|
|
126
|
-
if (!('
|
|
127
|
-
if (!('
|
|
125
|
+
if (!('total_provisioned_cpus' in value) || value['total_provisioned_cpus'] === undefined) return false;
|
|
126
|
+
if (!('total_provisioned_memory_mb' in value) || value['total_provisioned_memory_mb'] === undefined) return false;
|
|
127
|
+
if (!('total_provisioned_disk_kb' in value) || value['total_provisioned_disk_kb'] === undefined) return false;
|
|
128
128
|
return true;
|
|
129
129
|
}
|
|
130
130
|
|
|
@@ -138,20 +138,20 @@ export function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDisc
|
|
|
138
138
|
}
|
|
139
139
|
return {
|
|
140
140
|
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
141
|
+
'cluster_id': json['cluster_id'],
|
|
142
|
+
'cluster_name': json['cluster_name'],
|
|
143
|
+
'vm_count': json['vm_count'],
|
|
144
|
+
'cpu_avg': json['cpu_avg'],
|
|
145
|
+
'cpu_p95': json['cpu_p95'],
|
|
146
|
+
'cpu_max': json['cpu_max'],
|
|
147
|
+
'mem_avg': json['mem_avg'],
|
|
148
|
+
'mem_p95': json['mem_p95'],
|
|
149
|
+
'mem_max': json['mem_max'],
|
|
150
150
|
'disk': json['disk'],
|
|
151
151
|
'confidence': json['confidence'],
|
|
152
|
-
'
|
|
153
|
-
'
|
|
154
|
-
'
|
|
152
|
+
'total_provisioned_cpus': json['total_provisioned_cpus'],
|
|
153
|
+
'total_provisioned_memory_mb': json['total_provisioned_memory_mb'],
|
|
154
|
+
'total_provisioned_disk_kb': json['total_provisioned_disk_kb'],
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -166,20 +166,20 @@ export function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClus
|
|
|
166
166
|
|
|
167
167
|
return {
|
|
168
168
|
|
|
169
|
-
'cluster_id': value['
|
|
170
|
-
'cluster_name': value['
|
|
171
|
-
'vm_count': value['
|
|
172
|
-
'cpu_avg': value['
|
|
173
|
-
'cpu_p95': value['
|
|
174
|
-
'cpu_max': value['
|
|
175
|
-
'mem_avg': value['
|
|
176
|
-
'mem_p95': value['
|
|
177
|
-
'mem_max': value['
|
|
169
|
+
'cluster_id': value['cluster_id'],
|
|
170
|
+
'cluster_name': value['cluster_name'],
|
|
171
|
+
'vm_count': value['vm_count'],
|
|
172
|
+
'cpu_avg': value['cpu_avg'],
|
|
173
|
+
'cpu_p95': value['cpu_p95'],
|
|
174
|
+
'cpu_max': value['cpu_max'],
|
|
175
|
+
'mem_avg': value['mem_avg'],
|
|
176
|
+
'mem_p95': value['mem_p95'],
|
|
177
|
+
'mem_max': value['mem_max'],
|
|
178
178
|
'disk': value['disk'],
|
|
179
179
|
'confidence': value['confidence'],
|
|
180
|
-
'total_provisioned_cpus': value['
|
|
181
|
-
'total_provisioned_memory_mb': value['
|
|
182
|
-
'total_provisioned_disk_kb': value['
|
|
180
|
+
'total_provisioned_cpus': value['total_provisioned_cpus'],
|
|
181
|
+
'total_provisioned_memory_mb': value['total_provisioned_memory_mb'],
|
|
182
|
+
'total_provisioned_disk_kb': value['total_provisioned_disk_kb'],
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
|