@openshift-migration-advisor/agent-sdk 0.12.0-d5edcd6935f2 → 0.12.0-e4c04f972747
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +22 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +25 -5
- package/dist/apis/DefaultApi.d.ts +369 -38
- package/dist/apis/DefaultApi.js +410 -43
- package/dist/esm/apis/DefaultApi.d.ts +369 -38
- package/dist/esm/apis/DefaultApi.js +410 -43
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
- package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/esm/models/VirtualMachineDetail.js +4 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/esm/models/VmUtilizationDetails.js +36 -36
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/models/RightsizingClusterListResponse.js +3 -3
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/models/RightsizingClusterUtilization.js +36 -36
- package/dist/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- package/dist/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/models/VirtualMachineDetail.js +4 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/models/VmUtilizationDetails.js +36 -36
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +679 -79
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/RightsizingClusterListResponse.md +2 -2
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +24 -24
- package/docs/RightsizingCollectRequest.md +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +4 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +806 -111
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/RightsizingClusterListResponse.ts +4 -4
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +48 -48
- package/src/models/RightsizingCollectRequest.ts +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +16 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +11 -0
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { ApplicationOverviewFromJSON, ApplicationOverviewToJSON, } from './ApplicationOverview.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApplicationListResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApplicationListResponse(value) {
|
|
19
|
+
if (!('applications' in value) || value['applications'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ApplicationListResponseFromJSON(json) {
|
|
24
|
+
return ApplicationListResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ApplicationListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'applications': (json['applications'].map(ApplicationOverviewFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ApplicationListResponseToJSON(json) {
|
|
35
|
+
return ApplicationListResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ApplicationListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'applications': (value['applications'].map(ApplicationOverviewToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import type { ApplicationVM } from './ApplicationVM.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplicationOverview
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplicationOverview {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApplicationOverview
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApplicationOverview
|
|
29
|
+
*/
|
|
30
|
+
description: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApplicationOverview
|
|
35
|
+
*/
|
|
36
|
+
vmCount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ApplicationVM>}
|
|
40
|
+
* @memberof ApplicationOverview
|
|
41
|
+
*/
|
|
42
|
+
vms: Array<ApplicationVM>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApplicationOverview interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApplicationOverview(value: object): value is ApplicationOverview;
|
|
48
|
+
export declare function ApplicationOverviewFromJSON(json: any): ApplicationOverview;
|
|
49
|
+
export declare function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationOverview;
|
|
50
|
+
export declare function ApplicationOverviewToJSON(json: any): ApplicationOverview;
|
|
51
|
+
export declare function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
import { ApplicationVMFromJSON, ApplicationVMToJSON, } from './ApplicationVM.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApplicationOverview interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApplicationOverview(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('vms' in value) || value['vms'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ApplicationOverviewFromJSON(json) {
|
|
30
|
+
return ApplicationOverviewFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'description': json['description'],
|
|
39
|
+
'vmCount': json['vmCount'],
|
|
40
|
+
'vms': (json['vms'].map(ApplicationVMFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function ApplicationOverviewToJSON(json) {
|
|
44
|
+
return ApplicationOverviewToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'description': value['description'],
|
|
53
|
+
'vmCount': value['vmCount'],
|
|
54
|
+
'vms': (value['vms'].map(ApplicationVMToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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 ApplicationVM
|
|
16
|
+
*/
|
|
17
|
+
export interface ApplicationVM {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApplicationVM
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApplicationVM
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApplicationVM interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApplicationVM(value: object): value is ApplicationVM;
|
|
35
|
+
export declare function ApplicationVMFromJSON(json: any): ApplicationVM;
|
|
36
|
+
export declare function ApplicationVMFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationVM;
|
|
37
|
+
export declare function ApplicationVMToJSON(json: any): ApplicationVM;
|
|
38
|
+
export declare function ApplicationVMToJSONTyped(value?: ApplicationVM | 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 ApplicationVM interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApplicationVM(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ApplicationVMFromJSON(json) {
|
|
25
|
+
return ApplicationVMFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ApplicationVMFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'id': json['id'],
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ApplicationVMToJSON(json) {
|
|
37
|
+
return ApplicationVMToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ApplicationVMToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': value['id'],
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 ClusterFeaturesDrsModeEnum = {
|
|
18
|
+
FullyAutomated: 'Fully Automated',
|
|
19
|
+
PartiallyAutomated: 'Partially Automated',
|
|
20
|
+
Manual: 'Manual',
|
|
21
|
+
None: 'None'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfClusterFeatures(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ClusterFeaturesFromJSON(json) {
|
|
30
|
+
return ClusterFeaturesFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
38
|
+
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
39
|
+
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ClusterFeaturesToJSON(json) {
|
|
43
|
+
return ClusterFeaturesToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'drsEnabled': value['drsEnabled'],
|
|
51
|
+
'drsMode': value['drsMode'],
|
|
52
|
+
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 ClusterUtilization
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterUtilization {
|
|
18
|
+
/**
|
|
19
|
+
* Average CPU utilization percentage (0-100)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ClusterUtilization
|
|
22
|
+
*/
|
|
23
|
+
cpu_avg: number;
|
|
24
|
+
/**
|
|
25
|
+
* 95th percentile CPU utilization percentage (0-100)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ClusterUtilization
|
|
28
|
+
*/
|
|
29
|
+
cpu_p95: number;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum CPU utilization percentage (0-100)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ClusterUtilization
|
|
34
|
+
*/
|
|
35
|
+
cpu_max: number;
|
|
36
|
+
/**
|
|
37
|
+
* Average memory utilization percentage (0-100)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ClusterUtilization
|
|
40
|
+
*/
|
|
41
|
+
mem_avg: number;
|
|
42
|
+
/**
|
|
43
|
+
* 95th percentile memory utilization percentage (0-100)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ClusterUtilization
|
|
46
|
+
*/
|
|
47
|
+
mem_p95: number;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum memory utilization percentage (0-100)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ClusterUtilization
|
|
52
|
+
*/
|
|
53
|
+
mem_max: number;
|
|
54
|
+
/**
|
|
55
|
+
* Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ClusterUtilization
|
|
58
|
+
*/
|
|
59
|
+
confidence: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
|
|
65
|
+
export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
|
|
66
|
+
export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
|
|
67
|
+
export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
|
|
68
|
+
export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 ClusterUtilization interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfClusterUtilization(value) {
|
|
18
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ClusterUtilizationFromJSON(json) {
|
|
35
|
+
return ClusterUtilizationFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'cpu_avg': json['cpu_avg'],
|
|
43
|
+
'cpu_p95': json['cpu_p95'],
|
|
44
|
+
'cpu_max': json['cpu_max'],
|
|
45
|
+
'mem_avg': json['mem_avg'],
|
|
46
|
+
'mem_p95': json['mem_p95'],
|
|
47
|
+
'mem_max': json['mem_max'],
|
|
48
|
+
'confidence': json['confidence'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function ClusterUtilizationToJSON(json) {
|
|
52
|
+
return ClusterUtilizationToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'cpu_avg': value['cpu_avg'],
|
|
60
|
+
'cpu_p95': value['cpu_p95'],
|
|
61
|
+
'cpu_max': value['cpu_max'],
|
|
62
|
+
'mem_avg': value['mem_avg'],
|
|
63
|
+
'mem_p95': value['mem_p95'],
|
|
64
|
+
'mem_max': value['mem_max'],
|
|
65
|
+
'confidence': value['confidence'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -33,12 +33,6 @@ export interface CreateGroupRequest {
|
|
|
33
33
|
* @memberof CreateGroupRequest
|
|
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 CreateGroupRequest
|
|
40
|
-
*/
|
|
41
|
-
tags?: Array<string>;
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* Check if a given object implements the CreateGroupRequest interface.
|
|
@@ -32,7 +32,6 @@ export function CreateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'name': json['name'],
|
|
33
33
|
'description': json['description'] == null ? undefined : json['description'],
|
|
34
34
|
'filter': json['filter'],
|
|
35
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
export function CreateGroupRequestToJSON(json) {
|
|
@@ -46,6 +45,5 @@ export function CreateGroupRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
46
45
|
'name': value['name'],
|
|
47
46
|
'description': value['description'],
|
|
48
47
|
'filter': value['filter'],
|
|
49
|
-
'tags': value['tags'],
|
|
50
48
|
};
|
|
51
49
|
}
|
|
@@ -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 DeleteLabelGloballyResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteLabelGloballyResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Number of VMs that had the label removed
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DeleteLabelGloballyResponse
|
|
22
|
+
*/
|
|
23
|
+
affected: number;
|
|
24
|
+
/**
|
|
25
|
+
* The label that was removed
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DeleteLabelGloballyResponse
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DeleteLabelGloballyResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDeleteLabelGloballyResponse(value: object): value is DeleteLabelGloballyResponse;
|
|
35
|
+
export declare function DeleteLabelGloballyResponseFromJSON(json: any): DeleteLabelGloballyResponse;
|
|
36
|
+
export declare function DeleteLabelGloballyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLabelGloballyResponse;
|
|
37
|
+
export declare function DeleteLabelGloballyResponseToJSON(json: any): DeleteLabelGloballyResponse;
|
|
38
|
+
export declare function DeleteLabelGloballyResponseToJSONTyped(value?: DeleteLabelGloballyResponse | 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 DeleteLabelGloballyResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDeleteLabelGloballyResponse(value) {
|
|
18
|
+
if (!('affected' in value) || value['affected'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function DeleteLabelGloballyResponseFromJSON(json) {
|
|
25
|
+
return DeleteLabelGloballyResponseFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function DeleteLabelGloballyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'affected': json['affected'],
|
|
33
|
+
'label': json['label'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function DeleteLabelGloballyResponseToJSON(json) {
|
|
37
|
+
return DeleteLabelGloballyResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function DeleteLabelGloballyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'affected': value['affected'],
|
|
45
|
+
'label': value['label'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -39,12 +39,6 @@ export interface Group {
|
|
|
39
39
|
* @memberof Group
|
|
40
40
|
*/
|
|
41
41
|
filter: string;
|
|
42
|
-
/**
|
|
43
|
-
* Tags associated with this group (applied to matching VMs)
|
|
44
|
-
* @type {Array<string>}
|
|
45
|
-
* @memberof Group
|
|
46
|
-
*/
|
|
47
|
-
tags?: Array<string>;
|
|
48
42
|
/**
|
|
49
43
|
* Timestamp when the group was created
|
|
50
44
|
* @type {Date}
|
package/dist/esm/models/Group.js
CHANGED
|
@@ -35,7 +35,6 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'name': json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
37
|
'filter': json['filter'],
|
|
38
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
39
38
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
40
39
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
41
40
|
};
|
|
@@ -52,7 +51,6 @@ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
51
|
'name': value['name'],
|
|
53
52
|
'description': value['description'],
|
|
54
53
|
'filter': value['filter'],
|
|
55
|
-
'tags': value['tags'],
|
|
56
54
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
57
55
|
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
58
56
|
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Group } from './Group.js';
|
|
13
|
+
import type { Inventory } from './Inventory.js';
|
|
13
14
|
import type { VirtualMachine } from './VirtualMachine.js';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -23,6 +24,12 @@ export interface GroupResponse {
|
|
|
23
24
|
* @memberof GroupResponse
|
|
24
25
|
*/
|
|
25
26
|
group: Group;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Inventory}
|
|
30
|
+
* @memberof GroupResponse
|
|
31
|
+
*/
|
|
32
|
+
inventory?: Inventory;
|
|
26
33
|
/**
|
|
27
34
|
*
|
|
28
35
|
* @type {Array<VirtualMachine>}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GroupFromJSON, GroupToJSON, } from './Group.js';
|
|
15
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
16
|
import { VirtualMachineFromJSON, VirtualMachineToJSON, } from './VirtualMachine.js';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the GroupResponse interface.
|
|
@@ -38,6 +39,7 @@ export function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
41
|
'group': GroupFromJSON(json['group']),
|
|
42
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
41
43
|
'vms': (json['vms'].map(VirtualMachineFromJSON)),
|
|
42
44
|
'total': json['total'],
|
|
43
45
|
'page': json['page'],
|
|
@@ -53,6 +55,7 @@ export function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
55
|
}
|
|
54
56
|
return {
|
|
55
57
|
'group': GroupToJSON(value['group']),
|
|
58
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
56
59
|
'vms': (value['vms'].map(VirtualMachineToJSON)),
|
|
57
60
|
'total': value['total'],
|
|
58
61
|
'page': value['page'],
|