@openshift-migration-advisor/agent-sdk 0.12.0-d5edcd6935f2 → 0.12.0-e4c04f972747
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 +22 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +25 -5
- package/dist/apis/DefaultApi.d.ts +369 -38
- package/dist/apis/DefaultApi.js +410 -43
- package/dist/esm/apis/DefaultApi.d.ts +369 -38
- package/dist/esm/apis/DefaultApi.js +410 -43
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -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/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/esm/models/VirtualMachineDetail.js +4 -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 +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -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/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- package/dist/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/models/VirtualMachineDetail.js +4 -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 +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +679 -79
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -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/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +4 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +806 -111
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -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/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +16 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +11 -0
|
@@ -36,37 +36,37 @@ export interface RightsizingReportSummary {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof RightsizingReportSummary
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
cluster_id: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {Date}
|
|
43
43
|
* @memberof RightsizingReportSummary
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
window_start: Date;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {Date}
|
|
49
49
|
* @memberof RightsizingReportSummary
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
window_end: Date;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof RightsizingReportSummary
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
interval_id: number;
|
|
58
58
|
/**
|
|
59
59
|
* Theoretical maximum samples for the window (lookback / interval)
|
|
60
60
|
* @type {number}
|
|
61
61
|
* @memberof RightsizingReportSummary
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
expected_sample_count: number;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {Date}
|
|
67
67
|
* @memberof RightsizingReportSummary
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
created_at: Date;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/**
|
|
@@ -75,12 +75,12 @@ export interface RightsizingReportSummary {
|
|
|
75
75
|
export function instanceOfRightsizingReportSummary(value: object): value is RightsizingReportSummary {
|
|
76
76
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
77
|
if (!('vcenter' in value) || value['vcenter'] === undefined) return false;
|
|
78
|
-
if (!('
|
|
79
|
-
if (!('
|
|
80
|
-
if (!('
|
|
81
|
-
if (!('
|
|
82
|
-
if (!('
|
|
83
|
-
if (!('
|
|
78
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined) return false;
|
|
79
|
+
if (!('window_start' in value) || value['window_start'] === undefined) return false;
|
|
80
|
+
if (!('window_end' in value) || value['window_end'] === undefined) return false;
|
|
81
|
+
if (!('interval_id' in value) || value['interval_id'] === undefined) return false;
|
|
82
|
+
if (!('expected_sample_count' in value) || value['expected_sample_count'] === undefined) return false;
|
|
83
|
+
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
84
84
|
return true;
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -96,12 +96,12 @@ export function RightsizingReportSummaryFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
96
96
|
|
|
97
97
|
'id': json['id'],
|
|
98
98
|
'vcenter': json['vcenter'],
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
99
|
+
'cluster_id': json['cluster_id'],
|
|
100
|
+
'window_start': (new Date(json['window_start'])),
|
|
101
|
+
'window_end': (new Date(json['window_end'])),
|
|
102
|
+
'interval_id': json['interval_id'],
|
|
103
|
+
'expected_sample_count': json['expected_sample_count'],
|
|
104
|
+
'created_at': (new Date(json['created_at'])),
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -118,12 +118,12 @@ export function RightsizingReportSummaryToJSONTyped(value?: RightsizingReportSum
|
|
|
118
118
|
|
|
119
119
|
'id': value['id'],
|
|
120
120
|
'vcenter': value['vcenter'],
|
|
121
|
-
'cluster_id': value['
|
|
122
|
-
'window_start': value['
|
|
123
|
-
'window_end': value['
|
|
124
|
-
'interval_id': value['
|
|
125
|
-
'expected_sample_count': value['
|
|
126
|
-
'created_at': value['
|
|
121
|
+
'cluster_id': value['cluster_id'],
|
|
122
|
+
'window_start': value['window_start'].toISOString(),
|
|
123
|
+
'window_end': value['window_end'].toISOString(),
|
|
124
|
+
'interval_id': value['interval_id'],
|
|
125
|
+
'expected_sample_count': value['expected_sample_count'],
|
|
126
|
+
'created_at': value['created_at'].toISOString(),
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -37,12 +37,6 @@ export interface UpdateGroupRequest {
|
|
|
37
37
|
* @memberof UpdateGroupRequest
|
|
38
38
|
*/
|
|
39
39
|
filter?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
|
|
42
|
-
* @type {Array<string>}
|
|
43
|
-
* @memberof UpdateGroupRequest
|
|
44
|
-
*/
|
|
45
|
-
tags?: Array<string>;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
/**
|
|
@@ -65,7 +59,6 @@ export function UpdateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
65
59
|
'name': json['name'] == null ? undefined : json['name'],
|
|
66
60
|
'description': json['description'] == null ? undefined : json['description'],
|
|
67
61
|
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
68
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
69
62
|
};
|
|
70
63
|
}
|
|
71
64
|
|
|
@@ -83,7 +76,6 @@ export function UpdateGroupRequestToJSONTyped(value?: UpdateGroupRequest | null,
|
|
|
83
76
|
'name': value['name'],
|
|
84
77
|
'description': value['description'],
|
|
85
78
|
'filter': value['filter'],
|
|
86
|
-
'tags': value['tags'],
|
|
87
79
|
};
|
|
88
80
|
}
|
|
89
81
|
|
|
@@ -0,0 +1,73 @@
|
|
|
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 UpdateLabelVMsRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateLabelVMsRequest {
|
|
22
|
+
/**
|
|
23
|
+
* VMs to add the label to
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof UpdateLabelVMsRequest
|
|
26
|
+
*/
|
|
27
|
+
add?: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* VMs to remove the label from
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof UpdateLabelVMsRequest
|
|
32
|
+
*/
|
|
33
|
+
remove?: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UpdateLabelVMsRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUpdateLabelVMsRequest(value: object): value is UpdateLabelVMsRequest {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UpdateLabelVMsRequestFromJSON(json: any): UpdateLabelVMsRequest {
|
|
44
|
+
return UpdateLabelVMsRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UpdateLabelVMsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLabelVMsRequest {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'add': json['add'] == null ? undefined : json['add'],
|
|
54
|
+
'remove': json['remove'] == null ? undefined : json['remove'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function UpdateLabelVMsRequestToJSON(json: any): UpdateLabelVMsRequest {
|
|
59
|
+
return UpdateLabelVMsRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function UpdateLabelVMsRequestToJSONTyped(value?: UpdateLabelVMsRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'add': value['add'],
|
|
70
|
+
'remove': value['remove'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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 VMFilterOptionsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface VMFilterOptionsResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Distinct cluster names
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof VMFilterOptionsResponse
|
|
26
|
+
*/
|
|
27
|
+
clusters: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Distinct datacenter names
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof VMFilterOptionsResponse
|
|
32
|
+
*/
|
|
33
|
+
datacenters: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Distinct concern labels
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof VMFilterOptionsResponse
|
|
38
|
+
*/
|
|
39
|
+
concernLabels: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Distinct concern categories
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof VMFilterOptionsResponse
|
|
44
|
+
*/
|
|
45
|
+
concernCategories: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Distinct detected application names
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof VMFilterOptionsResponse
|
|
50
|
+
*/
|
|
51
|
+
applications: Array<string>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the VMFilterOptionsResponse interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse {
|
|
58
|
+
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
59
|
+
if (!('datacenters' in value) || value['datacenters'] === undefined) return false;
|
|
60
|
+
if (!('concernLabels' in value) || value['concernLabels'] === undefined) return false;
|
|
61
|
+
if (!('concernCategories' in value) || value['concernCategories'] === undefined) return false;
|
|
62
|
+
if (!('applications' in value) || value['applications'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse {
|
|
67
|
+
return VMFilterOptionsResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'clusters': json['clusters'],
|
|
77
|
+
'datacenters': json['datacenters'],
|
|
78
|
+
'concernLabels': json['concernLabels'],
|
|
79
|
+
'concernCategories': json['concernCategories'],
|
|
80
|
+
'applications': json['applications'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse {
|
|
85
|
+
return VMFilterOptionsResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'clusters': value['clusters'],
|
|
96
|
+
'datacenters': value['datacenters'],
|
|
97
|
+
'concernLabels': value['concernLabels'],
|
|
98
|
+
'concernCategories': value['concernCategories'],
|
|
99
|
+
'applications': value['applications'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -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 VMLabelsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface VMLabelsResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Distinct labels currently in use
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof VMLabelsResponse
|
|
26
|
+
*/
|
|
27
|
+
labels: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Number of VMs with each label (same order as labels array)
|
|
30
|
+
* @type {Array<number>}
|
|
31
|
+
* @memberof VMLabelsResponse
|
|
32
|
+
*/
|
|
33
|
+
counts: Array<number>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the VMLabelsResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfVMLabelsResponse(value: object): value is VMLabelsResponse {
|
|
40
|
+
if (!('labels' in value) || value['labels'] === undefined) return false;
|
|
41
|
+
if (!('counts' in value) || value['counts'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VMLabelsResponseFromJSON(json: any): VMLabelsResponse {
|
|
46
|
+
return VMLabelsResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VMLabelsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMLabelsResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'labels': json['labels'],
|
|
56
|
+
'counts': json['counts'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function VMLabelsResponseToJSON(json: any): VMLabelsResponse {
|
|
61
|
+
return VMLabelsResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function VMLabelsResponseToJSONTyped(value?: VMLabelsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'labels': value['labels'],
|
|
72
|
+
'counts': value['counts'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/VMNIC.ts
CHANGED
|
@@ -37,6 +37,18 @@ export interface VMNIC {
|
|
|
37
37
|
* @memberof VMNIC
|
|
38
38
|
*/
|
|
39
39
|
index?: number;
|
|
40
|
+
/**
|
|
41
|
+
* IPv4 address of this NIC as reported by VMware Tools
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VMNIC
|
|
44
|
+
*/
|
|
45
|
+
ipv4Address?: string;
|
|
46
|
+
/**
|
|
47
|
+
* IPv6 address of this NIC as reported by VMware Tools
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof VMNIC
|
|
50
|
+
*/
|
|
51
|
+
ipv6Address?: string;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -59,6 +71,8 @@ export function VMNICFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMN
|
|
|
59
71
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
60
72
|
'network': json['network'] == null ? undefined : json['network'],
|
|
61
73
|
'index': json['index'] == null ? undefined : json['index'],
|
|
74
|
+
'ipv4Address': json['ipv4Address'] == null ? undefined : json['ipv4Address'],
|
|
75
|
+
'ipv6Address': json['ipv6Address'] == null ? undefined : json['ipv6Address'],
|
|
62
76
|
};
|
|
63
77
|
}
|
|
64
78
|
|
|
@@ -76,6 +90,8 @@ export function VMNICToJSONTyped(value?: VMNIC | null, ignoreDiscriminator: bool
|
|
|
76
90
|
'mac': value['mac'],
|
|
77
91
|
'network': value['network'],
|
|
78
92
|
'index': value['index'],
|
|
93
|
+
'ipv4Address': value['ipv4Address'],
|
|
94
|
+
'ipv6Address': value['ipv6Address'],
|
|
79
95
|
};
|
|
80
96
|
}
|
|
81
97
|
|
|
@@ -87,6 +87,12 @@ export interface VirtualMachine {
|
|
|
87
87
|
* @memberof VirtualMachine
|
|
88
88
|
*/
|
|
89
89
|
template?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Whether this VM is excluded from migration
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof VirtualMachine
|
|
94
|
+
*/
|
|
95
|
+
migrationExcluded?: boolean;
|
|
90
96
|
/**
|
|
91
97
|
*
|
|
92
98
|
* @type {VmInspectionStatus}
|
|
@@ -100,35 +106,53 @@ export interface VirtualMachine {
|
|
|
100
106
|
*/
|
|
101
107
|
inspectionConcernCount?: number;
|
|
102
108
|
/**
|
|
103
|
-
*
|
|
109
|
+
* Names of groups this VM matches
|
|
110
|
+
* @type {Array<string>}
|
|
111
|
+
* @memberof VirtualMachine
|
|
112
|
+
*/
|
|
113
|
+
groups?: Array<string>;
|
|
114
|
+
/**
|
|
115
|
+
* User-defined labels for this VM
|
|
104
116
|
* @type {Array<string>}
|
|
105
117
|
* @memberof VirtualMachine
|
|
106
118
|
*/
|
|
107
|
-
|
|
119
|
+
labels?: Array<string>;
|
|
108
120
|
/**
|
|
109
121
|
* CPU utilization at p95 (%); absent when no utilization data
|
|
110
122
|
* @type {number}
|
|
111
123
|
* @memberof VirtualMachine
|
|
112
124
|
*/
|
|
113
|
-
|
|
125
|
+
utilization_cpu_p95?: number;
|
|
114
126
|
/**
|
|
115
127
|
* Memory utilization at p95 (%); absent when no utilization data
|
|
116
128
|
* @type {number}
|
|
117
129
|
* @memberof VirtualMachine
|
|
118
130
|
*/
|
|
119
|
-
|
|
131
|
+
utilization_mem_p95?: number;
|
|
132
|
+
/**
|
|
133
|
+
* CPU utilization at max (%); absent when no utilization data
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof VirtualMachine
|
|
136
|
+
*/
|
|
137
|
+
utilization_cpu_max?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Memory utilization at max (%); absent when no utilization data
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof VirtualMachine
|
|
142
|
+
*/
|
|
143
|
+
utilization_mem_max?: number;
|
|
120
144
|
/**
|
|
121
145
|
* Disk utilization (%); absent when no utilization data
|
|
122
146
|
* @type {number}
|
|
123
147
|
* @memberof VirtualMachine
|
|
124
148
|
*/
|
|
125
|
-
|
|
149
|
+
utilization_disk?: number;
|
|
126
150
|
/**
|
|
127
151
|
* Data confidence — sample_count / expected_sample_count × 100
|
|
128
152
|
* @type {number}
|
|
129
153
|
* @memberof VirtualMachine
|
|
130
154
|
*/
|
|
131
|
-
|
|
155
|
+
utilization_confidence?: number;
|
|
132
156
|
}
|
|
133
157
|
|
|
134
158
|
/**
|
|
@@ -166,13 +190,17 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
166
190
|
'issueCount': json['issueCount'],
|
|
167
191
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
168
192
|
'template': json['template'] == null ? undefined : json['template'],
|
|
193
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
169
194
|
'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
|
|
170
195
|
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
196
|
+
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
197
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
198
|
+
'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
199
|
+
'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
200
|
+
'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
|
|
201
|
+
'utilization_mem_max': json['utilization_mem_max'] == null ? undefined : json['utilization_mem_max'],
|
|
202
|
+
'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
|
|
203
|
+
'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
|
|
176
204
|
};
|
|
177
205
|
}
|
|
178
206
|
|
|
@@ -197,13 +225,17 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
|
|
|
197
225
|
'issueCount': value['issueCount'],
|
|
198
226
|
'migratable': value['migratable'],
|
|
199
227
|
'template': value['template'],
|
|
228
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
200
229
|
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
201
230
|
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
202
|
-
'
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
'
|
|
206
|
-
'
|
|
231
|
+
'groups': value['groups'],
|
|
232
|
+
'labels': value['labels'],
|
|
233
|
+
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
234
|
+
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
235
|
+
'utilization_cpu_max': value['utilization_cpu_max'],
|
|
236
|
+
'utilization_mem_max': value['utilization_mem_max'],
|
|
237
|
+
'utilization_disk': value['utilization_disk'],
|
|
238
|
+
'utilization_confidence': value['utilization_confidence'],
|
|
207
239
|
};
|
|
208
240
|
}
|
|
209
241
|
|
|
@@ -195,6 +195,18 @@ export interface VirtualMachineDetail {
|
|
|
195
195
|
* @memberof VirtualMachineDetail
|
|
196
196
|
*/
|
|
197
197
|
migratable?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Whether this VM is excluded from migration
|
|
200
|
+
* @type {boolean}
|
|
201
|
+
* @memberof VirtualMachineDetail
|
|
202
|
+
*/
|
|
203
|
+
migrationExcluded?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* User-defined labels for this VM
|
|
206
|
+
* @type {Array<string>}
|
|
207
|
+
* @memberof VirtualMachineDetail
|
|
208
|
+
*/
|
|
209
|
+
labels?: Array<string>;
|
|
198
210
|
/**
|
|
199
211
|
* Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
|
|
200
212
|
* @type {boolean}
|
|
@@ -310,6 +322,8 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
310
322
|
'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
|
|
311
323
|
'template': json['template'] == null ? undefined : json['template'],
|
|
312
324
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
325
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
326
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
313
327
|
'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
|
|
314
328
|
'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
|
|
315
329
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
@@ -356,6 +370,8 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
|
|
|
356
370
|
'storageUsed': value['storageUsed'],
|
|
357
371
|
'template': value['template'],
|
|
358
372
|
'migratable': value['migratable'],
|
|
373
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
374
|
+
'labels': value['labels'],
|
|
359
375
|
'faultToleranceEnabled': value['faultToleranceEnabled'],
|
|
360
376
|
'nestedHVEnabled': value['nestedHVEnabled'],
|
|
361
377
|
'toolsStatus': value['toolsStatus'],
|
|
@@ -0,0 +1,73 @@
|
|
|
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 VirtualMachineUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface VirtualMachineUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Whether to exclude this VM from migration
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof VirtualMachineUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
migrationExcluded?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* User-defined labels (replaces existing labels)
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof VirtualMachineUpdateRequest
|
|
32
|
+
*/
|
|
33
|
+
labels?: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the VirtualMachineUpdateRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfVirtualMachineUpdateRequest(value: object): value is VirtualMachineUpdateRequest {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function VirtualMachineUpdateRequestFromJSON(json: any): VirtualMachineUpdateRequest {
|
|
44
|
+
return VirtualMachineUpdateRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function VirtualMachineUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineUpdateRequest {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
54
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function VirtualMachineUpdateRequestToJSON(json: any): VirtualMachineUpdateRequest {
|
|
59
|
+
return VirtualMachineUpdateRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function VirtualMachineUpdateRequestToJSONTyped(value?: VirtualMachineUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
70
|
+
'labels': value['labels'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|