@openshift-migration-advisor/agent-sdk 0.12.0-1f1dc16fb9e5 → 0.12.0-4e95135f8529
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 +28 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +33 -5
- package/dist/apis/DefaultApi.d.ts +546 -39
- package/dist/apis/DefaultApi.js +591 -30
- package/dist/esm/apis/DefaultApi.d.ts +546 -39
- package/dist/esm/apis/DefaultApi.js +591 -30
- 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/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +38 -0
- package/dist/esm/models/CredentialStatus.js +47 -0
- 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/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/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/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/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.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 +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/esm/runtime.js +2 -1
- 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/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +38 -0
- package/dist/models/CredentialStatus.js +54 -0
- 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/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/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/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/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.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 +14 -0
- package/dist/models/index.js +14 -0
- package/dist/runtime.js +2 -1
- 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/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +36 -0
- package/docs/DefaultApi.md +1127 -197
- 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/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -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/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/VcenterCredentials.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 +1136 -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/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +75 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -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/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/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/VcenterCredentials.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 +14 -0
- package/src/runtime.ts +1 -1
|
@@ -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 CredentialStatus interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCredentialStatus(value) {
|
|
18
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('valid' in value) || value['valid'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CredentialStatusFromJSON(json) {
|
|
25
|
+
return CredentialStatusFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CredentialStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'url': json['url'],
|
|
33
|
+
'valid': json['valid'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CredentialStatusToJSON(json) {
|
|
37
|
+
return CredentialStatusToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CredentialStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'url': value['url'],
|
|
45
|
+
'valid': value['valid'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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'],
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VddkProperties } from './VddkProperties.js';
|
|
13
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -23,35 +22,19 @@ export interface InspectorStatus {
|
|
|
23
22
|
* @memberof InspectorStatus
|
|
24
23
|
*/
|
|
25
24
|
state: InspectorStatusStateEnum;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {VcenterCredentials}
|
|
29
|
-
* @memberof InspectorStatus
|
|
30
|
-
*/
|
|
31
|
-
credentials?: VcenterCredentials;
|
|
32
25
|
/**
|
|
33
26
|
*
|
|
34
27
|
* @type {VddkProperties}
|
|
35
28
|
* @memberof InspectorStatus
|
|
36
29
|
*/
|
|
37
30
|
vddk?: VddkProperties;
|
|
38
|
-
/**
|
|
39
|
-
* Error message when state is error
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof InspectorStatus
|
|
42
|
-
*/
|
|
43
|
-
error?: string;
|
|
44
31
|
}
|
|
45
32
|
/**
|
|
46
33
|
* @export
|
|
47
34
|
*/
|
|
48
35
|
export declare const InspectorStatusStateEnum: {
|
|
49
36
|
readonly InspectorStatusStateReady: "ready";
|
|
50
|
-
readonly InspectorStatusStateInitiating: "Initiating";
|
|
51
37
|
readonly InspectorStatusStateRunning: "running";
|
|
52
|
-
readonly InspectorStatusStateCanceled: "canceled";
|
|
53
|
-
readonly InspectorStatusStateCompleted: "completed";
|
|
54
|
-
readonly InspectorStatusStateError: "error";
|
|
55
38
|
};
|
|
56
39
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
57
40
|
/**
|
|
@@ -12,17 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { VddkPropertiesFromJSON, VddkPropertiesToJSON, } from './VddkProperties.js';
|
|
15
|
-
import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
|
|
16
15
|
/**
|
|
17
16
|
* @export
|
|
18
17
|
*/
|
|
19
18
|
export const InspectorStatusStateEnum = {
|
|
20
19
|
InspectorStatusStateReady: 'ready',
|
|
21
|
-
|
|
22
|
-
InspectorStatusStateRunning: 'running',
|
|
23
|
-
InspectorStatusStateCanceled: 'canceled',
|
|
24
|
-
InspectorStatusStateCompleted: 'completed',
|
|
25
|
-
InspectorStatusStateError: 'error'
|
|
20
|
+
InspectorStatusStateRunning: 'running'
|
|
26
21
|
};
|
|
27
22
|
/**
|
|
28
23
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -41,9 +36,7 @@ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
36
|
}
|
|
42
37
|
return {
|
|
43
38
|
'state': json['state'],
|
|
44
|
-
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
45
39
|
'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
|
|
46
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
47
40
|
};
|
|
48
41
|
}
|
|
49
42
|
export function InspectorStatusToJSON(json) {
|
|
@@ -55,8 +48,6 @@ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
48
|
}
|
|
56
49
|
return {
|
|
57
50
|
'state': value['state'],
|
|
58
|
-
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
59
51
|
'vddk': VddkPropertiesToJSON(value['vddk']),
|
|
60
|
-
'error': value['error'],
|
|
61
52
|
};
|
|
62
53
|
}
|
|
@@ -21,7 +21,13 @@ export interface Inventory {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Inventory
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
vcenter_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Inventory
|
|
29
|
+
*/
|
|
30
|
+
vcenter_version?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Map of cluster names to their inventory data
|
|
27
33
|
* @type {{ [key: string]: InventoryData; }}
|
|
@@ -17,7 +17,7 @@ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js'
|
|
|
17
17
|
* Check if a given object implements the Inventory interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfInventory(value) {
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
23
23
|
return false;
|
|
@@ -31,7 +31,8 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return json;
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
|
-
'
|
|
34
|
+
'vcenter_id': json['vcenter_id'],
|
|
35
|
+
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
35
36
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
36
37
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
37
38
|
};
|
|
@@ -44,7 +45,8 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
45
|
return value;
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
|
-
'vcenter_id': value['
|
|
48
|
+
'vcenter_id': value['vcenter_id'],
|
|
49
|
+
'vcenter_version': value['vcenter_version'],
|
|
48
50
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
49
51
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
50
52
|
};
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { VCenter } from './VCenter.js';
|
|
13
13
|
import type { Infra } from './Infra.js';
|
|
14
|
+
import type { ClusterUtilization } from './ClusterUtilization.js';
|
|
14
15
|
import type { VMs } from './VMs.js';
|
|
16
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
17
19
|
* @export
|
|
@@ -24,6 +26,18 @@ export interface InventoryData {
|
|
|
24
26
|
* @memberof InventoryData
|
|
25
27
|
*/
|
|
26
28
|
vcenter?: VCenter;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ClusterFeatures}
|
|
32
|
+
* @memberof InventoryData
|
|
33
|
+
*/
|
|
34
|
+
clusterFeatures?: ClusterFeatures;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ClusterUtilization}
|
|
38
|
+
* @memberof InventoryData
|
|
39
|
+
*/
|
|
40
|
+
clusterUtilization?: ClusterUtilization;
|
|
27
41
|
/**
|
|
28
42
|
*
|
|
29
43
|
* @type {VMs}
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
|
|
15
15
|
import { InfraFromJSON, InfraToJSON, } from './Infra.js';
|
|
16
|
+
import { ClusterUtilizationFromJSON, ClusterUtilizationToJSON, } from './ClusterUtilization.js';
|
|
16
17
|
import { VMsFromJSON, VMsToJSON, } from './VMs.js';
|
|
18
|
+
import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
|
|
17
19
|
/**
|
|
18
20
|
* Check if a given object implements the InventoryData interface.
|
|
19
21
|
*/
|
|
@@ -33,6 +35,8 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
37
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
38
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
39
|
+
'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
|
|
36
40
|
'vms': VMsFromJSON(json['vms']),
|
|
37
41
|
'infra': InfraFromJSON(json['infra']),
|
|
38
42
|
};
|
|
@@ -46,6 +50,8 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
50
|
}
|
|
47
51
|
return {
|
|
48
52
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
53
|
+
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
54
|
+
'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
|
|
49
55
|
'vms': VMsToJSON(value['vms']),
|
|
50
56
|
'infra': InfraToJSON(value['infra']),
|
|
51
57
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingClusterListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingClusterListResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The report ID this data was aggregated from
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingClusterListResponse
|
|
23
|
+
*/
|
|
24
|
+
report_id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<RightsizingClusterUtilization>}
|
|
28
|
+
* @memberof RightsizingClusterListResponse
|
|
29
|
+
*/
|
|
30
|
+
clusters: Array<RightsizingClusterUtilization>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse;
|
|
36
|
+
export declare function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse;
|
|
37
|
+
export declare function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse;
|
|
38
|
+
export declare function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse;
|
|
39
|
+
export declare function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJSON, } from './RightsizingClusterUtilization.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingClusterListResponse(value) {
|
|
19
|
+
if (!('report_id' in value) || value['report_id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function RightsizingClusterListResponseFromJSON(json) {
|
|
26
|
+
return RightsizingClusterListResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'report_id': json['report_id'],
|
|
34
|
+
'clusters': (json['clusters'].map(RightsizingClusterUtilizationFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function RightsizingClusterListResponseToJSON(json) {
|
|
38
|
+
return RightsizingClusterListResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'report_id': value['report_id'],
|
|
46
|
+
'clusters': (value['clusters'].map(RightsizingClusterUtilizationToJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingClusterResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingClusterResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The report ID this data was aggregated from
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingClusterResponse
|
|
23
|
+
*/
|
|
24
|
+
report_id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {RightsizingClusterUtilization}
|
|
28
|
+
* @memberof RightsizingClusterResponse
|
|
29
|
+
*/
|
|
30
|
+
cluster: RightsizingClusterUtilization;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RightsizingClusterResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRightsizingClusterResponse(value: object): value is RightsizingClusterResponse;
|
|
36
|
+
export declare function RightsizingClusterResponseFromJSON(json: any): RightsizingClusterResponse;
|
|
37
|
+
export declare function RightsizingClusterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterResponse;
|
|
38
|
+
export declare function RightsizingClusterResponseToJSON(json: any): RightsizingClusterResponse;
|
|
39
|
+
export declare function RightsizingClusterResponseToJSONTyped(value?: RightsizingClusterResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJSON, } from './RightsizingClusterUtilization.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RightsizingClusterResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingClusterResponse(value) {
|
|
19
|
+
if (!('report_id' in value) || value['report_id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('cluster' in value) || value['cluster'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function RightsizingClusterResponseFromJSON(json) {
|
|
26
|
+
return RightsizingClusterResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function RightsizingClusterResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'report_id': json['report_id'],
|
|
34
|
+
'cluster': RightsizingClusterUtilizationFromJSON(json['cluster']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function RightsizingClusterResponseToJSON(json) {
|
|
38
|
+
return RightsizingClusterResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function RightsizingClusterResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'report_id': value['report_id'],
|
|
46
|
+
'cluster': RightsizingClusterUtilizationToJSON(value['cluster']),
|
|
47
|
+
};
|
|
48
|
+
}
|