@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 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 +52 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -5
- package/dist/apis/DefaultApi.d.ts +798 -20
- package/dist/apis/DefaultApi.js +878 -24
- package/dist/esm/apis/DefaultApi.d.ts +798 -20
- package/dist/esm/apis/DefaultApi.js +878 -24
- 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/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -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/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -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/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 +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- 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 +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 +26 -0
- package/dist/esm/models/index.js +26 -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/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -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/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -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/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 +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- 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 +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 +26 -0
- package/dist/models/index.js +26 -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/BenchmarkRun.md +58 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1725 -308
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -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/StopForecasterPair202Response.md +36 -0
- 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 +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -18
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1700 -93
- 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/BenchmarkRun.ts +171 -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/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -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/StopForecasterPair202Response.ts +83 -0
- 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 +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +63 -36
- package/src/models/index.ts +26 -0
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const StopForecasterPair202ResponseStateEnum = {
|
|
18
|
+
Canceled: 'canceled'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the StopForecasterPair202Response interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfStopForecasterPair202Response(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function StopForecasterPair202ResponseFromJSON(json) {
|
|
27
|
+
return StopForecasterPair202ResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function StopForecasterPair202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'pairName': json['pairName'] == null ? undefined : json['pairName'],
|
|
35
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function StopForecasterPair202ResponseToJSON(json) {
|
|
39
|
+
return StopForecasterPair202ResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function StopForecasterPair202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'pairName': value['pairName'],
|
|
47
|
+
'state': value['state'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -33,12 +33,6 @@ export interface UpdateGroupRequest {
|
|
|
33
33
|
* @memberof UpdateGroupRequest
|
|
34
34
|
*/
|
|
35
35
|
filter?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof UpdateGroupRequest
|
|
40
|
-
*/
|
|
41
|
-
tags?: Array<string>;
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* Check if a given object implements the UpdateGroupRequest interface.
|
|
@@ -28,7 +28,6 @@ export function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
29
|
'description': json['description'] == null ? undefined : json['description'],
|
|
30
30
|
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
31
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
33
|
export function UpdateGroupRequestToJSON(json) {
|
|
@@ -42,6 +41,5 @@ export function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
42
41
|
'name': value['name'],
|
|
43
42
|
'description': value['description'],
|
|
44
43
|
'filter': value['filter'],
|
|
45
|
-
'tags': value['tags'],
|
|
46
44
|
};
|
|
47
45
|
}
|
|
@@ -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 UpdateLabelVMsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateLabelVMsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* VMs to add the label to
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof UpdateLabelVMsRequest
|
|
22
|
+
*/
|
|
23
|
+
add?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* VMs to remove the label from
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof UpdateLabelVMsRequest
|
|
28
|
+
*/
|
|
29
|
+
remove?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateLabelVMsRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateLabelVMsRequest(value: object): value is UpdateLabelVMsRequest;
|
|
35
|
+
export declare function UpdateLabelVMsRequestFromJSON(json: any): UpdateLabelVMsRequest;
|
|
36
|
+
export declare function UpdateLabelVMsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLabelVMsRequest;
|
|
37
|
+
export declare function UpdateLabelVMsRequestToJSON(json: any): UpdateLabelVMsRequest;
|
|
38
|
+
export declare function UpdateLabelVMsRequestToJSONTyped(value?: UpdateLabelVMsRequest | 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 UpdateLabelVMsRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUpdateLabelVMsRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function UpdateLabelVMsRequestFromJSON(json) {
|
|
21
|
+
return UpdateLabelVMsRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function UpdateLabelVMsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'add': json['add'] == null ? undefined : json['add'],
|
|
29
|
+
'remove': json['remove'] == null ? undefined : json['remove'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function UpdateLabelVMsRequestToJSON(json) {
|
|
33
|
+
return UpdateLabelVMsRequestToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function UpdateLabelVMsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'add': value['add'],
|
|
41
|
+
'remove': value['remove'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VMFilterOptionsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface VMFilterOptionsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Distinct cluster names
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof VMFilterOptionsResponse
|
|
22
|
+
*/
|
|
23
|
+
clusters: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Distinct datacenter names
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof VMFilterOptionsResponse
|
|
28
|
+
*/
|
|
29
|
+
datacenters: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Distinct concern labels
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof VMFilterOptionsResponse
|
|
34
|
+
*/
|
|
35
|
+
concernLabels: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Distinct concern categories
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof VMFilterOptionsResponse
|
|
40
|
+
*/
|
|
41
|
+
concernCategories: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Distinct detected application names
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof VMFilterOptionsResponse
|
|
46
|
+
*/
|
|
47
|
+
applications: Array<string>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the VMFilterOptionsResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse;
|
|
53
|
+
export declare function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse;
|
|
54
|
+
export declare function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse;
|
|
55
|
+
export declare function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse;
|
|
56
|
+
export declare function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 VMFilterOptionsResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVMFilterOptionsResponse(value) {
|
|
18
|
+
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('datacenters' in value) || value['datacenters'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('concernLabels' in value) || value['concernLabels'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('concernCategories' in value) || value['concernCategories'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('applications' in value) || value['applications'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function VMFilterOptionsResponseFromJSON(json) {
|
|
31
|
+
return VMFilterOptionsResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'clusters': json['clusters'],
|
|
39
|
+
'datacenters': json['datacenters'],
|
|
40
|
+
'concernLabels': json['concernLabels'],
|
|
41
|
+
'concernCategories': json['concernCategories'],
|
|
42
|
+
'applications': json['applications'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function VMFilterOptionsResponseToJSON(json) {
|
|
46
|
+
return VMFilterOptionsResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'clusters': value['clusters'],
|
|
54
|
+
'datacenters': value['datacenters'],
|
|
55
|
+
'concernLabels': value['concernLabels'],
|
|
56
|
+
'concernCategories': value['concernCategories'],
|
|
57
|
+
'applications': value['applications'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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 VMLabelsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface VMLabelsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Distinct labels currently in use
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof VMLabelsResponse
|
|
22
|
+
*/
|
|
23
|
+
labels: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Number of VMs with each label (same order as labels array)
|
|
26
|
+
* @type {Array<number>}
|
|
27
|
+
* @memberof VMLabelsResponse
|
|
28
|
+
*/
|
|
29
|
+
counts: Array<number>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the VMLabelsResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfVMLabelsResponse(value: object): value is VMLabelsResponse;
|
|
35
|
+
export declare function VMLabelsResponseFromJSON(json: any): VMLabelsResponse;
|
|
36
|
+
export declare function VMLabelsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMLabelsResponse;
|
|
37
|
+
export declare function VMLabelsResponseToJSON(json: any): VMLabelsResponse;
|
|
38
|
+
export declare function VMLabelsResponseToJSONTyped(value?: VMLabelsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 VMLabelsResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVMLabelsResponse(value) {
|
|
18
|
+
if (!('labels' in value) || value['labels'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('counts' in value) || value['counts'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function VMLabelsResponseFromJSON(json) {
|
|
25
|
+
return VMLabelsResponseFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function VMLabelsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'labels': json['labels'],
|
|
33
|
+
'counts': json['counts'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function VMLabelsResponseToJSON(json) {
|
|
37
|
+
return VMLabelsResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function VMLabelsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'labels': value['labels'],
|
|
45
|
+
'counts': value['counts'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -33,6 +33,18 @@ export interface VMNIC {
|
|
|
33
33
|
* @memberof VMNIC
|
|
34
34
|
*/
|
|
35
35
|
index?: number;
|
|
36
|
+
/**
|
|
37
|
+
* IPv4 address of this NIC as reported by VMware Tools
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VMNIC
|
|
40
|
+
*/
|
|
41
|
+
ipv4Address?: string;
|
|
42
|
+
/**
|
|
43
|
+
* IPv6 address of this NIC as reported by VMware Tools
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof VMNIC
|
|
46
|
+
*/
|
|
47
|
+
ipv6Address?: string;
|
|
36
48
|
}
|
|
37
49
|
/**
|
|
38
50
|
* Check if a given object implements the VMNIC interface.
|
package/dist/esm/models/VMNIC.js
CHANGED
|
@@ -28,6 +28,8 @@ export function VMNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
29
29
|
'network': json['network'] == null ? undefined : json['network'],
|
|
30
30
|
'index': json['index'] == null ? undefined : json['index'],
|
|
31
|
+
'ipv4Address': json['ipv4Address'] == null ? undefined : json['ipv4Address'],
|
|
32
|
+
'ipv6Address': json['ipv6Address'] == null ? undefined : json['ipv6Address'],
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
export function VMNICToJSON(json) {
|
|
@@ -41,5 +43,7 @@ export function VMNICToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
41
43
|
'mac': value['mac'],
|
|
42
44
|
'network': value['network'],
|
|
43
45
|
'index': value['index'],
|
|
46
|
+
'ipv4Address': value['ipv4Address'],
|
|
47
|
+
'ipv6Address': value['ipv6Address'],
|
|
44
48
|
};
|
|
45
49
|
}
|
|
@@ -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}
|
|
@@ -89,35 +95,53 @@ export interface VirtualMachine {
|
|
|
89
95
|
*/
|
|
90
96
|
inspectionConcernCount?: number;
|
|
91
97
|
/**
|
|
92
|
-
*
|
|
98
|
+
* Names of groups this VM matches
|
|
99
|
+
* @type {Array<string>}
|
|
100
|
+
* @memberof VirtualMachine
|
|
101
|
+
*/
|
|
102
|
+
groups?: Array<string>;
|
|
103
|
+
/**
|
|
104
|
+
* User-defined labels for this VM
|
|
93
105
|
* @type {Array<string>}
|
|
94
106
|
* @memberof VirtualMachine
|
|
95
107
|
*/
|
|
96
|
-
|
|
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;
|
|
121
|
+
/**
|
|
122
|
+
* CPU utilization at max (%); absent when no utilization data
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof VirtualMachine
|
|
125
|
+
*/
|
|
126
|
+
utilization_cpu_max?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Memory utilization at max (%); absent when no utilization data
|
|
129
|
+
* @type {number}
|
|
130
|
+
* @memberof VirtualMachine
|
|
131
|
+
*/
|
|
132
|
+
utilization_mem_max?: number;
|
|
109
133
|
/**
|
|
110
134
|
* Disk utilization (%); absent when no utilization data
|
|
111
135
|
* @type {number}
|
|
112
136
|
* @memberof VirtualMachine
|
|
113
137
|
*/
|
|
114
|
-
|
|
138
|
+
utilization_disk?: number;
|
|
115
139
|
/**
|
|
116
140
|
* Data confidence — sample_count / expected_sample_count × 100
|
|
117
141
|
* @type {number}
|
|
118
142
|
* @memberof VirtualMachine
|
|
119
143
|
*/
|
|
120
|
-
|
|
144
|
+
utilization_confidence?: number;
|
|
121
145
|
}
|
|
122
146
|
/**
|
|
123
147
|
* Check if a given object implements the VirtualMachine interface.
|
|
@@ -52,13 +52,17 @@ 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
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
58
|
+
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
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_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
|
|
63
|
+
'utilization_mem_max': json['utilization_mem_max'] == null ? undefined : json['utilization_mem_max'],
|
|
64
|
+
'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
|
|
65
|
+
'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
|
|
62
66
|
};
|
|
63
67
|
}
|
|
64
68
|
export function VirtualMachineToJSON(json) {
|
|
@@ -79,12 +83,16 @@ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
83
|
'issueCount': value['issueCount'],
|
|
80
84
|
'migratable': value['migratable'],
|
|
81
85
|
'template': value['template'],
|
|
86
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
82
87
|
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
83
88
|
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
+
'groups': value['groups'],
|
|
90
|
+
'labels': value['labels'],
|
|
91
|
+
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
92
|
+
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
93
|
+
'utilization_cpu_max': value['utilization_cpu_max'],
|
|
94
|
+
'utilization_mem_max': value['utilization_mem_max'],
|
|
95
|
+
'utilization_disk': value['utilization_disk'],
|
|
96
|
+
'utilization_confidence': value['utilization_confidence'],
|
|
89
97
|
};
|
|
90
98
|
}
|
|
@@ -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;
|