@openshift-migration-advisor/agent-sdk 0.12.0-1f1dc16fb9e5 → 0.12.0-645d2fae3eee
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 +16 -0
- package/README.md +20 -4
- package/dist/apis/DefaultApi.d.ts +346 -41
- package/dist/apis/DefaultApi.js +380 -46
- package/dist/esm/apis/DefaultApi.d.ts +346 -41
- package/dist/esm/apis/DefaultApi.js +380 -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 +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- 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/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 +27 -9
- package/dist/esm/models/VmUtilizationDetails.js +39 -27
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -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 +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- 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/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 +27 -9
- package/dist/models/VmUtilizationDetails.js +39 -27
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ClusterFeatures.md +38 -0
- package/docs/DefaultApi.md +695 -146
- 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 +36 -0
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +60 -0
- 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/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 -18
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +754 -112
- 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 +83 -0
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +185 -0
- 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/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 +63 -36
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,185 @@
|
|
|
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 RightsizingClusterUtilization
|
|
20
|
+
*/
|
|
21
|
+
export interface RightsizingClusterUtilization {
|
|
22
|
+
/**
|
|
23
|
+
* vSphere MoRef of the ClusterComputeResource (e.g. "domain-c123").
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RightsizingClusterUtilization
|
|
26
|
+
*/
|
|
27
|
+
cluster_id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Display name of the cluster as reported by vCenter (e.g. "production-cluster").
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RightsizingClusterUtilization
|
|
32
|
+
*/
|
|
33
|
+
cluster_name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number of VMs with utilization data in this cluster
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof RightsizingClusterUtilization
|
|
38
|
+
*/
|
|
39
|
+
vm_count: number;
|
|
40
|
+
/**
|
|
41
|
+
* SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof RightsizingClusterUtilization
|
|
44
|
+
*/
|
|
45
|
+
cpu_avg: number;
|
|
46
|
+
/**
|
|
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
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof RightsizingClusterUtilization
|
|
51
|
+
*/
|
|
52
|
+
cpu_p95: number;
|
|
53
|
+
/**
|
|
54
|
+
* Weighted summary of per-VM max values (see cpu_p95 note)
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof RightsizingClusterUtilization
|
|
57
|
+
*/
|
|
58
|
+
cpu_max: number;
|
|
59
|
+
/**
|
|
60
|
+
* SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof RightsizingClusterUtilization
|
|
63
|
+
*/
|
|
64
|
+
mem_avg: number;
|
|
65
|
+
/**
|
|
66
|
+
* Weighted summary of per-VM memory p95 values (see cpu_p95 note)
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof RightsizingClusterUtilization
|
|
69
|
+
*/
|
|
70
|
+
mem_p95: number;
|
|
71
|
+
/**
|
|
72
|
+
* Weighted summary of per-VM memory max values (see cpu_p95 note)
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof RightsizingClusterUtilization
|
|
75
|
+
*/
|
|
76
|
+
mem_max: number;
|
|
77
|
+
/**
|
|
78
|
+
* SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof RightsizingClusterUtilization
|
|
81
|
+
*/
|
|
82
|
+
disk: number;
|
|
83
|
+
/**
|
|
84
|
+
* SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof RightsizingClusterUtilization
|
|
88
|
+
*/
|
|
89
|
+
confidence: number;
|
|
90
|
+
/**
|
|
91
|
+
* Sum of vCPU counts across all VMs in the cluster
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof RightsizingClusterUtilization
|
|
94
|
+
*/
|
|
95
|
+
total_provisioned_cpus: number;
|
|
96
|
+
/**
|
|
97
|
+
* Sum of provisioned RAM (MB) across all VMs in the cluster
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof RightsizingClusterUtilization
|
|
100
|
+
*/
|
|
101
|
+
total_provisioned_memory_mb: number;
|
|
102
|
+
/**
|
|
103
|
+
* Sum of provisioned disk (KB) across all VMs in the cluster
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof RightsizingClusterUtilization
|
|
106
|
+
*/
|
|
107
|
+
total_provisioned_disk_kb: number;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
112
|
+
*/
|
|
113
|
+
export function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization {
|
|
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
|
+
if (!('disk' in value) || value['disk'] === undefined) return false;
|
|
124
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
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
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization {
|
|
132
|
+
return RightsizingClusterUtilizationFromJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization {
|
|
136
|
+
if (json == null) {
|
|
137
|
+
return json;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
|
|
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
|
+
'disk': json['disk'],
|
|
151
|
+
'confidence': json['confidence'],
|
|
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
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization {
|
|
159
|
+
return RightsizingClusterUtilizationToJSONTyped(json, false);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator: boolean = false): any {
|
|
163
|
+
if (value == null) {
|
|
164
|
+
return value;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return {
|
|
168
|
+
|
|
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
|
+
'disk': value['disk'],
|
|
179
|
+
'confidence': value['confidence'],
|
|
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
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
@@ -38,38 +38,38 @@ export interface RightsizingCollectRequest {
|
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof RightsizingCollectRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
lookback_hours?: number;
|
|
42
42
|
/**
|
|
43
43
|
* vSphere historical interval ID in seconds (300=day, 1800=week, 7200=month)
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof RightsizingCollectRequest
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
interval_id?: number;
|
|
48
48
|
/**
|
|
49
49
|
* Filter VMs by name substring
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof RightsizingCollectRequest
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
name_filter?: string;
|
|
54
54
|
/**
|
|
55
55
|
* MoRef value of a ClusterComputeResource to scope discovery (e.g. domain-c123)
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof RightsizingCollectRequest
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
cluster_id?: string;
|
|
60
60
|
/**
|
|
61
61
|
* Number of VMs per QueryPerf round-trip
|
|
62
62
|
* @type {number}
|
|
63
63
|
* @memberof RightsizingCollectRequest
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
batch_size?: number;
|
|
66
66
|
/**
|
|
67
67
|
* If true, discover VMs live from vSphere. If false (default), use the VMs already stored in the local inventory.
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
70
70
|
* @memberof RightsizingCollectRequest
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
discover_vms?: boolean;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
@@ -91,12 +91,12 @@ export function RightsizingCollectRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
91
91
|
return {
|
|
92
92
|
|
|
93
93
|
'credentials': VcenterCredentialsFromJSON(json['credentials']),
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
94
|
+
'lookback_hours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
|
|
95
|
+
'interval_id': json['interval_id'] == null ? undefined : json['interval_id'],
|
|
96
|
+
'name_filter': json['name_filter'] == null ? undefined : json['name_filter'],
|
|
97
|
+
'cluster_id': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
98
|
+
'batch_size': json['batch_size'] == null ? undefined : json['batch_size'],
|
|
99
|
+
'discover_vms': json['discover_vms'] == null ? undefined : json['discover_vms'],
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -112,12 +112,12 @@ export function RightsizingCollectRequestToJSONTyped(value?: RightsizingCollectR
|
|
|
112
112
|
return {
|
|
113
113
|
|
|
114
114
|
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
115
|
-
'lookback_hours': value['
|
|
116
|
-
'interval_id': value['
|
|
117
|
-
'name_filter': value['
|
|
118
|
-
'cluster_id': value['
|
|
119
|
-
'batch_size': value['
|
|
120
|
-
'discover_vms': value['
|
|
115
|
+
'lookback_hours': value['lookback_hours'],
|
|
116
|
+
'interval_id': value['interval_id'],
|
|
117
|
+
'name_filter': value['name_filter'],
|
|
118
|
+
'cluster_id': value['cluster_id'],
|
|
119
|
+
'batch_size': value['batch_size'],
|
|
120
|
+
'discover_vms': value['discover_vms'],
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -24,7 +24,7 @@ export interface RightsizingMetricStats {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof RightsizingMetricStats
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
sample_count: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -61,7 +61,7 @@ export interface RightsizingMetricStats {
|
|
|
61
61
|
* Check if a given object implements the RightsizingMetricStats interface.
|
|
62
62
|
*/
|
|
63
63
|
export function instanceOfRightsizingMetricStats(value: object): value is RightsizingMetricStats {
|
|
64
|
-
if (!('
|
|
64
|
+
if (!('sample_count' in value) || value['sample_count'] === undefined) return false;
|
|
65
65
|
if (!('average' in value) || value['average'] === undefined) return false;
|
|
66
66
|
if (!('p95' in value) || value['p95'] === undefined) return false;
|
|
67
67
|
if (!('p99' in value) || value['p99'] === undefined) return false;
|
|
@@ -80,7 +80,7 @@ export function RightsizingMetricStatsFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
82
82
|
|
|
83
|
-
'
|
|
83
|
+
'sample_count': json['sample_count'],
|
|
84
84
|
'average': json['average'],
|
|
85
85
|
'p95': json['p95'],
|
|
86
86
|
'p99': json['p99'],
|
|
@@ -100,7 +100,7 @@ export function RightsizingMetricStatsToJSONTyped(value?: RightsizingMetricStats
|
|
|
100
100
|
|
|
101
101
|
return {
|
|
102
102
|
|
|
103
|
-
'sample_count': value['
|
|
103
|
+
'sample_count': value['sample_count'],
|
|
104
104
|
'average': value['average'],
|
|
105
105
|
'p95': value['p95'],
|
|
106
106
|
'p99': value['p99'],
|
|
@@ -44,31 +44,31 @@ export interface RightsizingReport {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof RightsizingReport
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
cluster_id: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {Date}
|
|
51
51
|
* @memberof RightsizingReport
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
window_start: Date;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {Date}
|
|
57
57
|
* @memberof RightsizingReport
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
window_end: Date;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {number}
|
|
63
63
|
* @memberof RightsizingReport
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
interval_id: number;
|
|
66
66
|
/**
|
|
67
67
|
* Theoretical maximum samples for the window (lookback / interval)
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof RightsizingReport
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
expected_sample_count: number;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {Array<RightsizingVMReport>}
|
|
@@ -80,7 +80,7 @@ export interface RightsizingReport {
|
|
|
80
80
|
* @type {Date}
|
|
81
81
|
* @memberof RightsizingReport
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
created_at: Date;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
@@ -89,13 +89,13 @@ export interface RightsizingReport {
|
|
|
89
89
|
export function instanceOfRightsizingReport(value: object): value is RightsizingReport {
|
|
90
90
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
91
91
|
if (!('vcenter' in value) || value['vcenter'] === undefined) return false;
|
|
92
|
-
if (!('
|
|
93
|
-
if (!('
|
|
94
|
-
if (!('
|
|
95
|
-
if (!('
|
|
96
|
-
if (!('
|
|
92
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined) return false;
|
|
93
|
+
if (!('window_start' in value) || value['window_start'] === undefined) return false;
|
|
94
|
+
if (!('window_end' in value) || value['window_end'] === undefined) return false;
|
|
95
|
+
if (!('interval_id' in value) || value['interval_id'] === undefined) return false;
|
|
96
|
+
if (!('expected_sample_count' in value) || value['expected_sample_count'] === undefined) return false;
|
|
97
97
|
if (!('vms' in value) || value['vms'] === undefined) return false;
|
|
98
|
-
if (!('
|
|
98
|
+
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
99
99
|
return true;
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -111,13 +111,13 @@ export function RightsizingReportFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
111
111
|
|
|
112
112
|
'id': json['id'],
|
|
113
113
|
'vcenter': json['vcenter'],
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
117
|
-
'
|
|
118
|
-
'
|
|
114
|
+
'cluster_id': json['cluster_id'],
|
|
115
|
+
'window_start': (new Date(json['window_start'])),
|
|
116
|
+
'window_end': (new Date(json['window_end'])),
|
|
117
|
+
'interval_id': json['interval_id'],
|
|
118
|
+
'expected_sample_count': json['expected_sample_count'],
|
|
119
119
|
'vms': ((json['vms'] as Array<any>).map(RightsizingVMReportFromJSON)),
|
|
120
|
-
'
|
|
120
|
+
'created_at': (new Date(json['created_at'])),
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -134,13 +134,13 @@ export function RightsizingReportToJSONTyped(value?: RightsizingReport | null, i
|
|
|
134
134
|
|
|
135
135
|
'id': value['id'],
|
|
136
136
|
'vcenter': value['vcenter'],
|
|
137
|
-
'cluster_id': value['
|
|
138
|
-
'window_start': value['
|
|
139
|
-
'window_end': value['
|
|
140
|
-
'interval_id': value['
|
|
141
|
-
'expected_sample_count': value['
|
|
137
|
+
'cluster_id': value['cluster_id'],
|
|
138
|
+
'window_start': value['window_start'].toISOString(),
|
|
139
|
+
'window_end': value['window_end'].toISOString(),
|
|
140
|
+
'interval_id': value['interval_id'],
|
|
141
|
+
'expected_sample_count': value['expected_sample_count'],
|
|
142
142
|
'vms': ((value['vms'] as Array<any>).map(RightsizingVMReportToJSON)),
|
|
143
|
-
'created_at': value['
|
|
143
|
+
'created_at': value['created_at'].toISOString(),
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -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
|
|
|
@@ -13,8 +13,16 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
17
|
+
import {
|
|
18
|
+
VcenterCredentialsFromJSON,
|
|
19
|
+
VcenterCredentialsFromJSONTyped,
|
|
20
|
+
VcenterCredentialsToJSON,
|
|
21
|
+
VcenterCredentialsToJSONTyped,
|
|
22
|
+
} from './VcenterCredentials.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
|
-
*
|
|
25
|
+
* Start inspection request
|
|
18
26
|
* @export
|
|
19
27
|
* @interface StartInspectionRequest
|
|
20
28
|
*/
|
|
@@ -25,6 +33,12 @@ export interface StartInspectionRequest {
|
|
|
25
33
|
* @memberof StartInspectionRequest
|
|
26
34
|
*/
|
|
27
35
|
vmIds: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {VcenterCredentials}
|
|
39
|
+
* @memberof StartInspectionRequest
|
|
40
|
+
*/
|
|
41
|
+
credentials: VcenterCredentials;
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
/**
|
|
@@ -32,6 +46,7 @@ export interface StartInspectionRequest {
|
|
|
32
46
|
*/
|
|
33
47
|
export function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest {
|
|
34
48
|
if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
|
|
49
|
+
if (!('credentials' in value) || value['credentials'] === undefined) return false;
|
|
35
50
|
return true;
|
|
36
51
|
}
|
|
37
52
|
|
|
@@ -46,6 +61,7 @@ export function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
46
61
|
return {
|
|
47
62
|
|
|
48
63
|
'vmIds': json['vmIds'],
|
|
64
|
+
'credentials': VcenterCredentialsFromJSON(json['credentials']),
|
|
49
65
|
};
|
|
50
66
|
}
|
|
51
67
|
|
|
@@ -61,6 +77,7 @@ export function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest
|
|
|
61
77
|
return {
|
|
62
78
|
|
|
63
79
|
'vmIds': value['vmIds'],
|
|
80
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
64
81
|
};
|
|
65
82
|
}
|
|
66
83
|
|
|
@@ -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
|
+
|