@migration-planner-ui/agent-client 0.0.30 → 0.0.32
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/README.md +112 -25
- package/dist/apis/AgentUiApi.d.ts +126 -0
- package/dist/apis/AgentUiApi.d.ts.map +1 -0
- package/dist/apis/AgentUiApi.js +163 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.d.ts.map +1 -0
- package/dist/apis/index.js +3 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/models/Credentials.d.ts +51 -0
- package/dist/models/Credentials.d.ts.map +1 -0
- package/dist/models/Credentials.js +53 -0
- package/dist/models/Datastore.d.ts +81 -0
- package/dist/models/Datastore.d.ts.map +1 -0
- package/dist/models/Datastore.js +73 -0
- package/dist/models/DiskSizeTierSummary.d.ts +39 -0
- package/dist/models/DiskSizeTierSummary.d.ts.map +1 -0
- package/dist/models/DiskSizeTierSummary.js +47 -0
- package/dist/models/DiskTypeSummary.d.ts +39 -0
- package/dist/models/DiskTypeSummary.d.ts.map +1 -0
- package/dist/models/DiskTypeSummary.js +47 -0
- package/dist/models/Histogram.d.ts +45 -0
- package/dist/models/Histogram.d.ts.map +1 -0
- package/dist/models/Histogram.js +51 -0
- package/dist/models/Host.d.ts +63 -0
- package/dist/models/Host.d.ts.map +1 -0
- package/dist/models/Host.js +55 -0
- package/dist/models/Infra.d.ts +107 -0
- package/dist/models/Infra.d.ts.map +1 -0
- package/dist/models/Infra.js +74 -0
- package/dist/models/Inventory.d.ts +48 -0
- package/dist/models/Inventory.d.ts.map +1 -0
- package/dist/models/Inventory.js +51 -0
- package/dist/models/InventoryData.d.ts +48 -0
- package/dist/models/InventoryData.d.ts.map +1 -0
- package/dist/models/InventoryData.js +52 -0
- package/dist/models/InventoryReply.d.ts +40 -0
- package/dist/models/InventoryReply.d.ts.map +1 -0
- package/dist/models/InventoryReply.js +48 -0
- package/dist/models/MigrationIssue.d.ts +51 -0
- package/dist/models/MigrationIssue.d.ts.map +1 -0
- package/dist/models/MigrationIssue.js +53 -0
- package/dist/models/ModelError.d.ts +33 -0
- package/dist/models/ModelError.d.ts.map +1 -0
- package/dist/models/ModelError.js +43 -0
- package/dist/models/Network.d.ts +67 -0
- package/dist/models/Network.d.ts.map +1 -0
- package/dist/models/Network.js +62 -0
- package/dist/models/OsInfo.d.ts +45 -0
- package/dist/models/OsInfo.d.ts.map +1 -0
- package/dist/models/OsInfo.js +49 -0
- package/dist/models/ServiceUIReply.d.ts +33 -0
- package/dist/models/ServiceUIReply.d.ts.map +1 -0
- package/dist/models/ServiceUIReply.js +43 -0
- package/dist/models/StatusReply.d.ts +81 -0
- package/dist/models/StatusReply.d.ts.map +1 -0
- package/dist/models/StatusReply.js +70 -0
- package/dist/models/VCenter.d.ts +33 -0
- package/dist/models/VCenter.d.ts.map +1 -0
- package/dist/models/VCenter.js +43 -0
- package/dist/models/VMResourceBreakdown.d.ts +59 -0
- package/dist/models/VMResourceBreakdown.d.ts.map +1 -0
- package/dist/models/VMResourceBreakdown.js +58 -0
- package/dist/models/VMs.d.ts +149 -0
- package/dist/models/VMs.d.ts.map +1 -0
- package/dist/models/VMs.js +97 -0
- package/dist/models/VersionReply.d.ts +33 -0
- package/dist/models/VersionReply.d.ts.map +1 -0
- package/dist/models/VersionReply.js +43 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +22 -0
- package/dist/runtime.d.ts +185 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +334 -0
- package/package.json +29 -15
- package/src/apis/AgentApi.ts +0 -83
- package/src/apis/index.ts +0 -1
- package/src/models/Credentials.ts +0 -6
- package/src/models/CredentialsError.ts +0 -17
- package/src/models/Either.ts +0 -1
- package/src/models/SourceStatus.ts +0 -7
- package/src/models/StatusReply.ts +0 -6
- package/src/models/index.ts +0 -5
- package/tsconfig.json +0 -17
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner Agent UI API
|
|
5
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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 Datastore interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDatastore(value) {
|
|
18
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('totalCapacityGB' in value) || value['totalCapacityGB'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('freeCapacityGB' in value) || value['freeCapacityGB'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('diskId' in value) || value['diskId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('hardwareAcceleratedMove' in value) || value['hardwareAcceleratedMove'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('protocolType' in value) || value['protocolType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function DatastoreFromJSON(json) {
|
|
37
|
+
return DatastoreFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
'totalCapacityGB': json['totalCapacityGB'],
|
|
46
|
+
'freeCapacityGB': json['freeCapacityGB'],
|
|
47
|
+
'vendor': json['vendor'],
|
|
48
|
+
'diskId': json['diskId'],
|
|
49
|
+
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
50
|
+
'protocolType': json['protocolType'],
|
|
51
|
+
'model': json['model'],
|
|
52
|
+
'hostId': json['hostId'] == null ? undefined : json['hostId'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function DatastoreToJSON(json) {
|
|
56
|
+
return DatastoreToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'type': value['type'],
|
|
64
|
+
'totalCapacityGB': value['totalCapacityGB'],
|
|
65
|
+
'freeCapacityGB': value['freeCapacityGB'],
|
|
66
|
+
'vendor': value['vendor'],
|
|
67
|
+
'diskId': value['diskId'],
|
|
68
|
+
'hardwareAcceleratedMove': value['hardwareAcceleratedMove'],
|
|
69
|
+
'protocolType': value['protocolType'],
|
|
70
|
+
'model': value['model'],
|
|
71
|
+
'hostId': value['hostId'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner Agent UI API
|
|
3
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 DiskSizeTierSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface DiskSizeTierSummary {
|
|
18
|
+
/**
|
|
19
|
+
* Total disk size in TB for this tier
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DiskSizeTierSummary
|
|
22
|
+
*/
|
|
23
|
+
totalSizeTB: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of VMs in this tier
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof DiskSizeTierSummary
|
|
28
|
+
*/
|
|
29
|
+
vmCount: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DiskSizeTierSummary interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDiskSizeTierSummary(value: object): value is DiskSizeTierSummary;
|
|
35
|
+
export declare function DiskSizeTierSummaryFromJSON(json: any): DiskSizeTierSummary;
|
|
36
|
+
export declare function DiskSizeTierSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskSizeTierSummary;
|
|
37
|
+
export declare function DiskSizeTierSummaryToJSON(json: any): DiskSizeTierSummary;
|
|
38
|
+
export declare function DiskSizeTierSummaryToJSONTyped(value?: DiskSizeTierSummary | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=DiskSizeTierSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiskSizeTierSummary.d.ts","sourceRoot":"","sources":["../../src/models/DiskSizeTierSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAIzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAS7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5H"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner Agent UI API
|
|
5
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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 DiskSizeTierSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDiskSizeTierSummary(value) {
|
|
18
|
+
if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function DiskSizeTierSummaryFromJSON(json) {
|
|
25
|
+
return DiskSizeTierSummaryFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function DiskSizeTierSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'totalSizeTB': json['totalSizeTB'],
|
|
33
|
+
'vmCount': json['vmCount'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function DiskSizeTierSummaryToJSON(json) {
|
|
37
|
+
return DiskSizeTierSummaryToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function DiskSizeTierSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'totalSizeTB': value['totalSizeTB'],
|
|
45
|
+
'vmCount': value['vmCount'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner Agent UI API
|
|
3
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 DiskTypeSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface DiskTypeSummary {
|
|
18
|
+
/**
|
|
19
|
+
* Number of VMs that have at least one disk of this type
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DiskTypeSummary
|
|
22
|
+
*/
|
|
23
|
+
vmCount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Total disk size in TB for this disk type
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof DiskTypeSummary
|
|
28
|
+
*/
|
|
29
|
+
totalSizeTB: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DiskTypeSummary interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDiskTypeSummary(value: object): value is DiskTypeSummary;
|
|
35
|
+
export declare function DiskTypeSummaryFromJSON(json: any): DiskTypeSummary;
|
|
36
|
+
export declare function DiskTypeSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskTypeSummary;
|
|
37
|
+
export declare function DiskTypeSummaryToJSON(json: any): DiskTypeSummary;
|
|
38
|
+
export declare function DiskTypeSummaryToJSONTyped(value?: DiskTypeSummary | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=DiskTypeSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiskTypeSummary.d.ts","sourceRoot":"","sources":["../../src/models/DiskTypeSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAIjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CASrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner Agent UI API
|
|
5
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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 DiskTypeSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDiskTypeSummary(value) {
|
|
18
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function DiskTypeSummaryFromJSON(json) {
|
|
25
|
+
return DiskTypeSummaryFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function DiskTypeSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'vmCount': json['vmCount'],
|
|
33
|
+
'totalSizeTB': json['totalSizeTB'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function DiskTypeSummaryToJSON(json) {
|
|
37
|
+
return DiskTypeSummaryToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function DiskTypeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'vmCount': value['vmCount'],
|
|
45
|
+
'totalSizeTB': value['totalSizeTB'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner Agent UI API
|
|
3
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 Histogram
|
|
16
|
+
*/
|
|
17
|
+
export interface Histogram {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Histogram
|
|
22
|
+
*/
|
|
23
|
+
minValue: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof Histogram
|
|
28
|
+
*/
|
|
29
|
+
step: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<number>}
|
|
33
|
+
* @memberof Histogram
|
|
34
|
+
*/
|
|
35
|
+
data: Array<number>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Histogram interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfHistogram(value: object): value is Histogram;
|
|
41
|
+
export declare function HistogramFromJSON(json: any): Histogram;
|
|
42
|
+
export declare function HistogramFromJSONTyped(json: any, ignoreDiscriminator: boolean): Histogram;
|
|
43
|
+
export declare function HistogramToJSON(json: any): Histogram;
|
|
44
|
+
export declare function HistogramToJSONTyped(value?: Histogram | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
//# sourceMappingURL=Histogram.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Histogram.d.ts","sourceRoot":"","sources":["../../src/models/Histogram.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAKrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAUzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxG"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner Agent UI API
|
|
5
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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 Histogram interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHistogram(value) {
|
|
18
|
+
if (!('minValue' in value) || value['minValue'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('step' in value) || value['step'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function HistogramFromJSON(json) {
|
|
27
|
+
return HistogramFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function HistogramFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'minValue': json['minValue'],
|
|
35
|
+
'step': json['step'],
|
|
36
|
+
'data': json['data'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function HistogramToJSON(json) {
|
|
40
|
+
return HistogramToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function HistogramToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'minValue': value['minValue'],
|
|
48
|
+
'step': value['step'],
|
|
49
|
+
'data': value['data'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner Agent UI API
|
|
3
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 Host
|
|
16
|
+
*/
|
|
17
|
+
export interface Host {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for this host
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Host
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Host
|
|
28
|
+
*/
|
|
29
|
+
vendor: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Host
|
|
34
|
+
*/
|
|
35
|
+
model: string;
|
|
36
|
+
/**
|
|
37
|
+
* Number of CPU cores
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof Host
|
|
40
|
+
*/
|
|
41
|
+
cpuCores?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
* Number of CPU sockets
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof Host
|
|
46
|
+
*/
|
|
47
|
+
cpuSockets?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* Host memory in MB
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof Host
|
|
52
|
+
*/
|
|
53
|
+
memoryMB?: number | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the Host interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfHost(value: object): value is Host;
|
|
59
|
+
export declare function HostFromJSON(json: any): Host;
|
|
60
|
+
export declare function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host;
|
|
61
|
+
export declare function HostToJSON(json: any): Host;
|
|
62
|
+
export declare function HostToJSONTyped(value?: Host | null, ignoreDiscriminator?: boolean): any;
|
|
63
|
+
//# sourceMappingURL=Host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Host.d.ts","sourceRoot":"","sources":["../../src/models/Host.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,IAAI,CAI3D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAa/E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE1C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc9F"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner Agent UI API
|
|
5
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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 Host interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHost(value) {
|
|
18
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function HostFromJSON(json) {
|
|
25
|
+
return HostFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
33
|
+
'vendor': json['vendor'],
|
|
34
|
+
'model': json['model'],
|
|
35
|
+
'cpuCores': json['cpuCores'] == null ? undefined : json['cpuCores'],
|
|
36
|
+
'cpuSockets': json['cpuSockets'] == null ? undefined : json['cpuSockets'],
|
|
37
|
+
'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function HostToJSON(json) {
|
|
41
|
+
return HostToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'vendor': value['vendor'],
|
|
50
|
+
'model': value['model'],
|
|
51
|
+
'cpuCores': value['cpuCores'],
|
|
52
|
+
'cpuSockets': value['cpuSockets'],
|
|
53
|
+
'memoryMB': value['memoryMB'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner Agent UI API
|
|
3
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 { Datastore } from './Datastore.js';
|
|
13
|
+
import type { Network } from './Network.js';
|
|
14
|
+
import type { Host } from './Host.js';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Infra
|
|
19
|
+
*/
|
|
20
|
+
export interface Infra {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof Infra
|
|
25
|
+
*/
|
|
26
|
+
totalHosts: number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof Infra
|
|
31
|
+
*/
|
|
32
|
+
totalDatacenters?: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof Infra
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
39
|
+
totalClusters?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<number>}
|
|
43
|
+
* @memberof Infra
|
|
44
|
+
*/
|
|
45
|
+
clustersPerDatacenter?: Array<number>;
|
|
46
|
+
/**
|
|
47
|
+
* CPU Overcommitment Ratio. Calculated as total Allocated vCPUs / Total Physical Cores
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof Infra
|
|
50
|
+
*/
|
|
51
|
+
cpuOverCommitment?: number;
|
|
52
|
+
/**
|
|
53
|
+
* RAM memory Overcommitment Ratio. Calculated as total Allocated memory / Total memory available
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof Infra
|
|
56
|
+
*/
|
|
57
|
+
memoryOverCommitment?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<Host>}
|
|
61
|
+
* @memberof Infra
|
|
62
|
+
*/
|
|
63
|
+
hosts?: Array<Host>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<number>}
|
|
67
|
+
* @memberof Infra
|
|
68
|
+
* @deprecated
|
|
69
|
+
*/
|
|
70
|
+
hostsPerCluster?: Array<number>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Array<number>}
|
|
74
|
+
* @memberof Infra
|
|
75
|
+
* @deprecated
|
|
76
|
+
*/
|
|
77
|
+
vmsPerCluster?: Array<number>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {{ [key: string]: number; }}
|
|
81
|
+
* @memberof Infra
|
|
82
|
+
*/
|
|
83
|
+
hostPowerStates: {
|
|
84
|
+
[key: string]: number;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Array<Network>}
|
|
89
|
+
* @memberof Infra
|
|
90
|
+
*/
|
|
91
|
+
networks: Array<Network>;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {Array<Datastore>}
|
|
95
|
+
* @memberof Infra
|
|
96
|
+
*/
|
|
97
|
+
datastores: Array<Datastore>;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the Infra interface.
|
|
101
|
+
*/
|
|
102
|
+
export declare function instanceOfInfra(value: object): value is Infra;
|
|
103
|
+
export declare function InfraFromJSON(json: any): Infra;
|
|
104
|
+
export declare function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Infra;
|
|
105
|
+
export declare function InfraToJSON(json: any): Infra;
|
|
106
|
+
export declare function InfraToJSONTyped(value?: Infra | null, ignoreDiscriminator?: boolean): any;
|
|
107
|
+
//# sourceMappingURL=Infra.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Infra.d.ts","sourceRoot":"","sources":["../../src/models/Infra.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAOhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAO5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAQtC;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IAC5C;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACzB;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAM7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CAmBjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoBhG"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner Agent UI API
|
|
5
|
+
* API endpoints for the agent UI to interact with the migration discovery VM
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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 { DatastoreFromJSON, DatastoreToJSON, } from './Datastore.js';
|
|
15
|
+
import { NetworkFromJSON, NetworkToJSON, } from './Network.js';
|
|
16
|
+
import { HostFromJSON, HostToJSON, } from './Host.js';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the Infra interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfInfra(value) {
|
|
21
|
+
if (!('totalHosts' in value) || value['totalHosts'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('hostPowerStates' in value) || value['hostPowerStates'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('networks' in value) || value['networks'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('datastores' in value) || value['datastores'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function InfraFromJSON(json) {
|
|
32
|
+
return InfraFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'totalHosts': json['totalHosts'],
|
|
40
|
+
'totalDatacenters': json['totalDatacenters'] == null ? undefined : json['totalDatacenters'],
|
|
41
|
+
'totalClusters': json['totalClusters'] == null ? undefined : json['totalClusters'],
|
|
42
|
+
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
43
|
+
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
44
|
+
'memoryOverCommitment': json['memoryOverCommitment'] == null ? undefined : json['memoryOverCommitment'],
|
|
45
|
+
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(HostFromJSON)),
|
|
46
|
+
'hostsPerCluster': json['hostsPerCluster'] == null ? undefined : json['hostsPerCluster'],
|
|
47
|
+
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
48
|
+
'hostPowerStates': json['hostPowerStates'],
|
|
49
|
+
'networks': (json['networks'].map(NetworkFromJSON)),
|
|
50
|
+
'datastores': (json['datastores'].map(DatastoreFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function InfraToJSON(json) {
|
|
54
|
+
return InfraToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
export function InfraToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'totalHosts': value['totalHosts'],
|
|
62
|
+
'totalDatacenters': value['totalDatacenters'],
|
|
63
|
+
'totalClusters': value['totalClusters'],
|
|
64
|
+
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
65
|
+
'cpuOverCommitment': value['cpuOverCommitment'],
|
|
66
|
+
'memoryOverCommitment': value['memoryOverCommitment'],
|
|
67
|
+
'hosts': value['hosts'] == null ? undefined : (value['hosts'].map(HostToJSON)),
|
|
68
|
+
'hostsPerCluster': value['hostsPerCluster'],
|
|
69
|
+
'vmsPerCluster': value['vmsPerCluster'],
|
|
70
|
+
'hostPowerStates': value['hostPowerStates'],
|
|
71
|
+
'networks': (value['networks'].map(NetworkToJSON)),
|
|
72
|
+
'datastores': (value['datastores'].map(DatastoreToJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|