@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
|
@@ -76,6 +76,12 @@ export interface VirtualMachine {
|
|
|
76
76
|
* @memberof VirtualMachine
|
|
77
77
|
*/
|
|
78
78
|
template?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Whether this VM is excluded from migration
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof VirtualMachine
|
|
83
|
+
*/
|
|
84
|
+
migrationExcluded?: boolean;
|
|
79
85
|
/**
|
|
80
86
|
*
|
|
81
87
|
* @type {VmInspectionStatus}
|
|
@@ -94,30 +100,36 @@ export interface VirtualMachine {
|
|
|
94
100
|
* @memberof VirtualMachine
|
|
95
101
|
*/
|
|
96
102
|
tags?: Array<string>;
|
|
103
|
+
/**
|
|
104
|
+
* User-defined labels for this VM
|
|
105
|
+
* @type {Array<string>}
|
|
106
|
+
* @memberof VirtualMachine
|
|
107
|
+
*/
|
|
108
|
+
labels?: Array<string>;
|
|
97
109
|
/**
|
|
98
110
|
* CPU utilization at p95 (%); absent when no utilization data
|
|
99
111
|
* @type {number}
|
|
100
112
|
* @memberof VirtualMachine
|
|
101
113
|
*/
|
|
102
|
-
|
|
114
|
+
utilization_cpu_p95?: number;
|
|
103
115
|
/**
|
|
104
116
|
* Memory utilization at p95 (%); absent when no utilization data
|
|
105
117
|
* @type {number}
|
|
106
118
|
* @memberof VirtualMachine
|
|
107
119
|
*/
|
|
108
|
-
|
|
120
|
+
utilization_mem_p95?: number;
|
|
109
121
|
/**
|
|
110
122
|
* Disk utilization (%); absent when no utilization data
|
|
111
123
|
* @type {number}
|
|
112
124
|
* @memberof VirtualMachine
|
|
113
125
|
*/
|
|
114
|
-
|
|
126
|
+
utilization_disk?: number;
|
|
115
127
|
/**
|
|
116
128
|
* Data confidence — sample_count / expected_sample_count × 100
|
|
117
129
|
* @type {number}
|
|
118
130
|
* @memberof VirtualMachine
|
|
119
131
|
*/
|
|
120
|
-
|
|
132
|
+
utilization_confidence?: number;
|
|
121
133
|
}
|
|
122
134
|
/**
|
|
123
135
|
* Check if a given object implements the VirtualMachine interface.
|
|
@@ -52,13 +52,15 @@ export function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'issueCount': json['issueCount'],
|
|
53
53
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
54
54
|
'template': json['template'] == null ? undefined : json['template'],
|
|
55
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
55
56
|
'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
|
|
56
57
|
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
57
58
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
59
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
60
|
+
'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
61
|
+
'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
62
|
+
'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
|
|
63
|
+
'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
|
|
62
64
|
};
|
|
63
65
|
}
|
|
64
66
|
export function VirtualMachineToJSON(json) {
|
|
@@ -79,12 +81,14 @@ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
81
|
'issueCount': value['issueCount'],
|
|
80
82
|
'migratable': value['migratable'],
|
|
81
83
|
'template': value['template'],
|
|
84
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
82
85
|
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
83
86
|
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
84
87
|
'tags': value['tags'],
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
88
|
+
'labels': value['labels'],
|
|
89
|
+
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
90
|
+
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
91
|
+
'utilization_disk': value['utilization_disk'],
|
|
92
|
+
'utilization_confidence': value['utilization_confidence'],
|
|
89
93
|
};
|
|
90
94
|
}
|
|
@@ -13,6 +13,7 @@ import type { VMNIC } from './VMNIC.js';
|
|
|
13
13
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
14
14
|
import type { VMIssue } from './VMIssue.js';
|
|
15
15
|
import type { VMDevice } from './VMDevice.js';
|
|
16
|
+
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
16
17
|
import type { VMDisk } from './VMDisk.js';
|
|
17
18
|
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
18
19
|
/**
|
|
@@ -147,6 +148,18 @@ export interface VirtualMachineDetail {
|
|
|
147
148
|
* @memberof VirtualMachineDetail
|
|
148
149
|
*/
|
|
149
150
|
migratable?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Whether this VM is excluded from migration
|
|
153
|
+
* @type {boolean}
|
|
154
|
+
* @memberof VirtualMachineDetail
|
|
155
|
+
*/
|
|
156
|
+
migrationExcluded?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* User-defined labels for this VM
|
|
159
|
+
* @type {Array<string>}
|
|
160
|
+
* @memberof VirtualMachineDetail
|
|
161
|
+
*/
|
|
162
|
+
labels?: Array<string>;
|
|
150
163
|
/**
|
|
151
164
|
* Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
|
|
152
165
|
* @type {boolean}
|
|
@@ -207,6 +220,12 @@ export interface VirtualMachineDetail {
|
|
|
207
220
|
* @memberof VirtualMachineDetail
|
|
208
221
|
*/
|
|
209
222
|
inspection?: VmInspectionResults;
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @type {VmUtilizationDetails}
|
|
226
|
+
* @memberof VirtualMachineDetail
|
|
227
|
+
*/
|
|
228
|
+
utilization?: VmUtilizationDetails;
|
|
210
229
|
}
|
|
211
230
|
/**
|
|
212
231
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -15,6 +15,7 @@ import { VMNICFromJSON, VMNICToJSON, } from './VMNIC.js';
|
|
|
15
15
|
import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
|
|
16
16
|
import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
|
|
17
17
|
import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
|
|
18
|
+
import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
|
|
18
19
|
import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
|
|
19
20
|
import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
|
|
20
21
|
/**
|
|
@@ -70,6 +71,8 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
71
|
'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
|
|
71
72
|
'template': json['template'] == null ? undefined : json['template'],
|
|
72
73
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
74
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
75
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
73
76
|
'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
|
|
74
77
|
'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
|
|
75
78
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
@@ -80,6 +83,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
80
83
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
|
|
81
84
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
|
|
82
85
|
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
86
|
+
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
83
87
|
};
|
|
84
88
|
}
|
|
85
89
|
export function VirtualMachineDetailToJSON(json) {
|
|
@@ -111,6 +115,8 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
111
115
|
'storageUsed': value['storageUsed'],
|
|
112
116
|
'template': value['template'],
|
|
113
117
|
'migratable': value['migratable'],
|
|
118
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
119
|
+
'labels': value['labels'],
|
|
114
120
|
'faultToleranceEnabled': value['faultToleranceEnabled'],
|
|
115
121
|
'nestedHVEnabled': value['nestedHVEnabled'],
|
|
116
122
|
'toolsStatus': value['toolsStatus'],
|
|
@@ -121,5 +127,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
121
127
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
|
|
122
128
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
|
|
123
129
|
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
130
|
+
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
124
131
|
};
|
|
125
132
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VirtualMachineUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface VirtualMachineUpdateRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Whether to exclude this VM from migration
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof VirtualMachineUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
migrationExcluded?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* User-defined labels (replaces existing labels)
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof VirtualMachineUpdateRequest
|
|
28
|
+
*/
|
|
29
|
+
labels?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the VirtualMachineUpdateRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfVirtualMachineUpdateRequest(value: object): value is VirtualMachineUpdateRequest;
|
|
35
|
+
export declare function VirtualMachineUpdateRequestFromJSON(json: any): VirtualMachineUpdateRequest;
|
|
36
|
+
export declare function VirtualMachineUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineUpdateRequest;
|
|
37
|
+
export declare function VirtualMachineUpdateRequestToJSON(json: any): VirtualMachineUpdateRequest;
|
|
38
|
+
export declare function VirtualMachineUpdateRequestToJSONTyped(value?: VirtualMachineUpdateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the VirtualMachineUpdateRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVirtualMachineUpdateRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function VirtualMachineUpdateRequestFromJSON(json) {
|
|
21
|
+
return VirtualMachineUpdateRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function VirtualMachineUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
29
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function VirtualMachineUpdateRequestToJSON(json) {
|
|
33
|
+
return VirtualMachineUpdateRequestToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function VirtualMachineUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
41
|
+
'labels': value['labels'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -26,73 +26,73 @@ export interface VmUtilizationDetails {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof VmUtilizationDetails
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
vm_name: string;
|
|
30
30
|
/**
|
|
31
31
|
* Number of vCPUs provisioned for this VM
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof VmUtilizationDetails
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
provisioned_cpus: number;
|
|
36
36
|
/**
|
|
37
37
|
* Provisioned RAM (MB)
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof VmUtilizationDetails
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
provisioned_memory_mb: number;
|
|
42
42
|
/**
|
|
43
43
|
* Provisioned disk (KB)
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof VmUtilizationDetails
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
provisioned_disk_kb: number;
|
|
48
48
|
/**
|
|
49
49
|
* CPU utilization average (%)
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof VmUtilizationDetails
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
cpu_avg: number;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof VmUtilizationDetails
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
cpu_p95: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {number}
|
|
63
63
|
* @memberof VmUtilizationDetails
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
cpu_max: number;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof VmUtilizationDetails
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
cpu_latest: number;
|
|
72
72
|
/**
|
|
73
73
|
* Memory utilization average (%)
|
|
74
74
|
* @type {number}
|
|
75
75
|
* @memberof VmUtilizationDetails
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
mem_avg: number;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {number}
|
|
81
81
|
* @memberof VmUtilizationDetails
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
mem_p95: number;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
87
87
|
* @memberof VmUtilizationDetails
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
mem_max: number;
|
|
90
90
|
/**
|
|
91
91
|
*
|
|
92
92
|
* @type {number}
|
|
93
93
|
* @memberof VmUtilizationDetails
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
mem_latest: number;
|
|
96
96
|
/**
|
|
97
97
|
* Disk utilization (%)
|
|
98
98
|
* @type {number}
|
|
@@ -17,29 +17,29 @@
|
|
|
17
17
|
export function instanceOfVmUtilizationDetails(value) {
|
|
18
18
|
if (!('moid' in value) || value['moid'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('vm_name' in value) || value['vm_name'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if (!('
|
|
22
|
+
if (!('provisioned_cpus' in value) || value['provisioned_cpus'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
24
|
+
if (!('provisioned_memory_mb' in value) || value['provisioned_memory_mb'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
-
if (!('
|
|
26
|
+
if (!('provisioned_disk_kb' in value) || value['provisioned_disk_kb'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('
|
|
28
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('
|
|
30
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
-
if (!('
|
|
34
|
+
if (!('cpu_latest' in value) || value['cpu_latest'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('
|
|
36
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('
|
|
38
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('
|
|
40
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('
|
|
42
|
+
if (!('mem_latest' in value) || value['mem_latest'] === undefined)
|
|
43
43
|
return false;
|
|
44
44
|
if (!('disk' in value) || value['disk'] === undefined)
|
|
45
45
|
return false;
|
|
@@ -56,18 +56,18 @@ export function VmUtilizationDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
}
|
|
57
57
|
return {
|
|
58
58
|
'moid': json['moid'],
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
59
|
+
'vm_name': json['vm_name'],
|
|
60
|
+
'provisioned_cpus': json['provisioned_cpus'],
|
|
61
|
+
'provisioned_memory_mb': json['provisioned_memory_mb'],
|
|
62
|
+
'provisioned_disk_kb': json['provisioned_disk_kb'],
|
|
63
|
+
'cpu_avg': json['cpu_avg'],
|
|
64
|
+
'cpu_p95': json['cpu_p95'],
|
|
65
|
+
'cpu_max': json['cpu_max'],
|
|
66
|
+
'cpu_latest': json['cpu_latest'],
|
|
67
|
+
'mem_avg': json['mem_avg'],
|
|
68
|
+
'mem_p95': json['mem_p95'],
|
|
69
|
+
'mem_max': json['mem_max'],
|
|
70
|
+
'mem_latest': json['mem_latest'],
|
|
71
71
|
'disk': json['disk'],
|
|
72
72
|
'confidence': json['confidence'],
|
|
73
73
|
};
|
|
@@ -81,18 +81,18 @@ export function VmUtilizationDetailsToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
81
81
|
}
|
|
82
82
|
return {
|
|
83
83
|
'moid': value['moid'],
|
|
84
|
-
'vm_name': value['
|
|
85
|
-
'provisioned_cpus': value['
|
|
86
|
-
'provisioned_memory_mb': value['
|
|
87
|
-
'provisioned_disk_kb': value['
|
|
88
|
-
'cpu_avg': value['
|
|
89
|
-
'cpu_p95': value['
|
|
90
|
-
'cpu_max': value['
|
|
91
|
-
'cpu_latest': value['
|
|
92
|
-
'mem_avg': value['
|
|
93
|
-
'mem_p95': value['
|
|
94
|
-
'mem_max': value['
|
|
95
|
-
'mem_latest': value['
|
|
84
|
+
'vm_name': value['vm_name'],
|
|
85
|
+
'provisioned_cpus': value['provisioned_cpus'],
|
|
86
|
+
'provisioned_memory_mb': value['provisioned_memory_mb'],
|
|
87
|
+
'provisioned_disk_kb': value['provisioned_disk_kb'],
|
|
88
|
+
'cpu_avg': value['cpu_avg'],
|
|
89
|
+
'cpu_p95': value['cpu_p95'],
|
|
90
|
+
'cpu_max': value['cpu_max'],
|
|
91
|
+
'cpu_latest': value['cpu_latest'],
|
|
92
|
+
'mem_avg': value['mem_avg'],
|
|
93
|
+
'mem_p95': value['mem_p95'],
|
|
94
|
+
'mem_max': value['mem_max'],
|
|
95
|
+
'mem_latest': value['mem_latest'],
|
|
96
96
|
'disk': value['disk'],
|
|
97
97
|
'confidence': value['confidence'],
|
|
98
98
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export * from './AgentModeRequest.js';
|
|
2
2
|
export * from './AgentStatus.js';
|
|
3
3
|
export * from './BenchmarkRun.js';
|
|
4
|
+
export * from './ClusterFeatures.js';
|
|
4
5
|
export * from './CollectorStartRequest.js';
|
|
5
6
|
export * from './CollectorStatus.js';
|
|
6
7
|
export * from './CreateGroupRequest.js';
|
|
7
8
|
export * from './Datastore.js';
|
|
8
9
|
export * from './DatastoreDetail.js';
|
|
9
10
|
export * from './DatastorePair.js';
|
|
11
|
+
export * from './DeleteLabelGloballyResponse.js';
|
|
10
12
|
export * from './DiskSizeTierSummary.js';
|
|
11
13
|
export * from './DiskTypeSummary.js';
|
|
12
14
|
export * from './EstimateRange.js';
|
|
@@ -33,6 +35,7 @@ export * from './PairCapability.js';
|
|
|
33
35
|
export * from './PairCapabilityRequest.js';
|
|
34
36
|
export * from './PutForecasterCredentials403Response.js';
|
|
35
37
|
export * from './RightsizingClusterListResponse.js';
|
|
38
|
+
export * from './RightsizingClusterResponse.js';
|
|
36
39
|
export * from './RightsizingClusterUtilization.js';
|
|
37
40
|
export * from './RightsizingCollectRequest.js';
|
|
38
41
|
export * from './RightsizingMetricStats.js';
|
|
@@ -44,10 +47,13 @@ export * from './StartInspectionRequest.js';
|
|
|
44
47
|
export * from './StopForecasterPair202Response.js';
|
|
45
48
|
export * from './UpdateGroupRequest.js';
|
|
46
49
|
export * from './UpdateInventory.js';
|
|
50
|
+
export * from './UpdateLabelVMsRequest.js';
|
|
47
51
|
export * from './VCenter.js';
|
|
48
52
|
export * from './VMDevice.js';
|
|
49
53
|
export * from './VMDisk.js';
|
|
54
|
+
export * from './VMFilterOptionsResponse.js';
|
|
50
55
|
export * from './VMIssue.js';
|
|
56
|
+
export * from './VMLabelsResponse.js';
|
|
51
57
|
export * from './VMNIC.js';
|
|
52
58
|
export * from './VMResourceBreakdown.js';
|
|
53
59
|
export * from './VMs.js';
|
|
@@ -57,6 +63,7 @@ export * from './VersionInfo.js';
|
|
|
57
63
|
export * from './VirtualMachine.js';
|
|
58
64
|
export * from './VirtualMachineDetail.js';
|
|
59
65
|
export * from './VirtualMachineListResponse.js';
|
|
66
|
+
export * from './VirtualMachineUpdateRequest.js';
|
|
60
67
|
export * from './VmInspectionConcern.js';
|
|
61
68
|
export * from './VmInspectionResults.js';
|
|
62
69
|
export * from './VmInspectionStatus.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
export * from './AgentModeRequest.js';
|
|
4
4
|
export * from './AgentStatus.js';
|
|
5
5
|
export * from './BenchmarkRun.js';
|
|
6
|
+
export * from './ClusterFeatures.js';
|
|
6
7
|
export * from './CollectorStartRequest.js';
|
|
7
8
|
export * from './CollectorStatus.js';
|
|
8
9
|
export * from './CreateGroupRequest.js';
|
|
9
10
|
export * from './Datastore.js';
|
|
10
11
|
export * from './DatastoreDetail.js';
|
|
11
12
|
export * from './DatastorePair.js';
|
|
13
|
+
export * from './DeleteLabelGloballyResponse.js';
|
|
12
14
|
export * from './DiskSizeTierSummary.js';
|
|
13
15
|
export * from './DiskTypeSummary.js';
|
|
14
16
|
export * from './EstimateRange.js';
|
|
@@ -35,6 +37,7 @@ export * from './PairCapability.js';
|
|
|
35
37
|
export * from './PairCapabilityRequest.js';
|
|
36
38
|
export * from './PutForecasterCredentials403Response.js';
|
|
37
39
|
export * from './RightsizingClusterListResponse.js';
|
|
40
|
+
export * from './RightsizingClusterResponse.js';
|
|
38
41
|
export * from './RightsizingClusterUtilization.js';
|
|
39
42
|
export * from './RightsizingCollectRequest.js';
|
|
40
43
|
export * from './RightsizingMetricStats.js';
|
|
@@ -46,10 +49,13 @@ export * from './StartInspectionRequest.js';
|
|
|
46
49
|
export * from './StopForecasterPair202Response.js';
|
|
47
50
|
export * from './UpdateGroupRequest.js';
|
|
48
51
|
export * from './UpdateInventory.js';
|
|
52
|
+
export * from './UpdateLabelVMsRequest.js';
|
|
49
53
|
export * from './VCenter.js';
|
|
50
54
|
export * from './VMDevice.js';
|
|
51
55
|
export * from './VMDisk.js';
|
|
56
|
+
export * from './VMFilterOptionsResponse.js';
|
|
52
57
|
export * from './VMIssue.js';
|
|
58
|
+
export * from './VMLabelsResponse.js';
|
|
53
59
|
export * from './VMNIC.js';
|
|
54
60
|
export * from './VMResourceBreakdown.js';
|
|
55
61
|
export * from './VMs.js';
|
|
@@ -59,6 +65,7 @@ export * from './VersionInfo.js';
|
|
|
59
65
|
export * from './VirtualMachine.js';
|
|
60
66
|
export * from './VirtualMachineDetail.js';
|
|
61
67
|
export * from './VirtualMachineListResponse.js';
|
|
68
|
+
export * from './VirtualMachineUpdateRequest.js';
|
|
62
69
|
export * from './VmInspectionConcern.js';
|
|
63
70
|
export * from './VmInspectionResults.js';
|
|
64
71
|
export * from './VmInspectionStatus.js';
|
|
@@ -26,7 +26,7 @@ export interface AgentStatus {
|
|
|
26
26
|
* @type {AgentStatusConsoleConnectionEnum}
|
|
27
27
|
* @memberof AgentStatus
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
console_connection: AgentStatusConsoleConnectionEnum;
|
|
30
30
|
/**
|
|
31
31
|
* Connection error description
|
|
32
32
|
* @type {string}
|
|
@@ -39,7 +39,7 @@ exports.AgentStatusConsoleConnectionEnum = {
|
|
|
39
39
|
function instanceOfAgentStatus(value) {
|
|
40
40
|
if (!('mode' in value) || value['mode'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('
|
|
42
|
+
if (!('console_connection' in value) || value['console_connection'] === undefined)
|
|
43
43
|
return false;
|
|
44
44
|
return true;
|
|
45
45
|
}
|
|
@@ -52,7 +52,7 @@ function AgentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
54
|
'mode': json['mode'],
|
|
55
|
-
'
|
|
55
|
+
'console_connection': json['console_connection'],
|
|
56
56
|
'error': json['error'] == null ? undefined : json['error'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -65,7 +65,7 @@ function AgentStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
67
67
|
'mode': value['mode'],
|
|
68
|
-
'console_connection': value['
|
|
68
|
+
'console_connection': value['console_connection'],
|
|
69
69
|
'error': value['error'],
|
|
70
70
|
};
|
|
71
71
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ClusterFeatures
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterFeatures {
|
|
18
|
+
/**
|
|
19
|
+
* Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ClusterFeatures
|
|
22
|
+
*/
|
|
23
|
+
drsEnabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* DRS automation mode for the cluster
|
|
26
|
+
* @type {ClusterFeaturesDrsModeEnum}
|
|
27
|
+
* @memberof ClusterFeatures
|
|
28
|
+
*/
|
|
29
|
+
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Whether Storage DRS is enabled for this cluster
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ClusterFeatures
|
|
34
|
+
*/
|
|
35
|
+
storageDrsEnabled?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ClusterFeaturesDrsModeEnum: {
|
|
41
|
+
readonly FullyAutomated: "Fully Automated";
|
|
42
|
+
readonly PartiallyAutomated: "Partially Automated";
|
|
43
|
+
readonly Manual: "Manual";
|
|
44
|
+
readonly None: "None";
|
|
45
|
+
};
|
|
46
|
+
export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfClusterFeatures(value: object): value is ClusterFeatures;
|
|
51
|
+
export declare function ClusterFeaturesFromJSON(json: any): ClusterFeatures;
|
|
52
|
+
export declare function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures;
|
|
53
|
+
export declare function ClusterFeaturesToJSON(json: any): ClusterFeatures;
|
|
54
|
+
export declare function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignoreDiscriminator?: boolean): any;
|