@migration-planner-ui/api-client 0.0.16 → 0.0.18
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 +2 -0
- package/dist/apis/InfoApi.d.ts +45 -0
- package/dist/apis/InfoApi.js +54 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/Datastore.d.ts +6 -0
- package/dist/models/Datastore.js +2 -0
- package/dist/models/Host.d.ts +24 -0
- package/dist/models/Host.js +8 -0
- package/dist/models/Info.d.ts +37 -0
- package/dist/models/Info.js +44 -0
- package/dist/models/Infra.d.ts +6 -0
- package/dist/models/Infra.js +2 -0
- package/dist/models/index.d.ts +1 -8
- package/dist/models/index.js +1 -8
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +3 -0
- package/src/apis/InfoApi.ts +78 -0
- package/src/apis/index.ts +4 -0
- package/src/models/Datastore.ts +8 -0
- package/src/models/Host.ts +32 -0
- package/src/models/Info.ts +70 -0
- package/src/models/Infra.ts +8 -0
- package/src/models/index.ts +1 -8
package/.openapi-generator/FILES
CHANGED
|
@@ -2,6 +2,7 @@ README.md
|
|
|
2
2
|
src/apis/AssessmentApi.ts
|
|
3
3
|
src/apis/HealthApi.ts
|
|
4
4
|
src/apis/ImageApi.ts
|
|
5
|
+
src/apis/InfoApi.ts
|
|
5
6
|
src/apis/SourceApi.ts
|
|
6
7
|
src/index.ts
|
|
7
8
|
src/models/Agent.ts
|
|
@@ -12,6 +13,7 @@ src/models/AssessmentUpdate.ts
|
|
|
12
13
|
src/models/Datastore.ts
|
|
13
14
|
src/models/Histogram.ts
|
|
14
15
|
src/models/Host.ts
|
|
16
|
+
src/models/Info.ts
|
|
15
17
|
src/models/Infra.ts
|
|
16
18
|
src/models/Inventory.ts
|
|
17
19
|
src/models/Label.ts
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { Info } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* InfoApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface InfoApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface InfoApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Get migration planner information
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
* @memberof InfoApiInterface
|
|
26
|
+
*/
|
|
27
|
+
getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Info>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get migration planner information
|
|
30
|
+
*/
|
|
31
|
+
getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Info>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare class InfoApi extends runtime.BaseAPI implements InfoApiInterface {
|
|
37
|
+
/**
|
|
38
|
+
* Get migration planner information
|
|
39
|
+
*/
|
|
40
|
+
getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Info>>;
|
|
41
|
+
/**
|
|
42
|
+
* Get migration planner information
|
|
43
|
+
*/
|
|
44
|
+
getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Info>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { InfoFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class InfoApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Get migration planner information
|
|
31
|
+
*/
|
|
32
|
+
getInfoRaw(initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
const response = yield this.request({
|
|
37
|
+
path: `/api/v1/info`,
|
|
38
|
+
method: 'GET',
|
|
39
|
+
headers: headerParameters,
|
|
40
|
+
query: queryParameters,
|
|
41
|
+
}, initOverrides);
|
|
42
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InfoFromJSON(jsonValue));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get migration planner information
|
|
47
|
+
*/
|
|
48
|
+
getInfo(initOverrides) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const response = yield this.getInfoRaw(initOverrides);
|
|
51
|
+
return yield response.value();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export { type CreateSourceRequest, type DeleteSourceRequest, type GetSourceReque
|
|
|
3
3
|
export { type HealthApiInterface, HealthApi } from "./HealthApi";
|
|
4
4
|
export { type AgentApiInterface, type DeleteAgentRequest, AgentApi } from "./AgentApi";
|
|
5
5
|
export { type AssessmentApiInterface, type CreateAssessmentRequest, type DeleteAssessmentRequest, type GetAssessmentRequest, type UpdateAssessmentRequest, AssessmentApi } from "./AssessmentApi";
|
|
6
|
+
export { type InfoApiInterface, InfoApi } from "./InfoApi";
|
package/dist/apis/index.js
CHANGED
|
@@ -63,6 +63,12 @@ export interface Datastore {
|
|
|
63
63
|
* @memberof Datastore
|
|
64
64
|
*/
|
|
65
65
|
model: string;
|
|
66
|
+
/**
|
|
67
|
+
* Identifier of the host where this datastore is attached
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Datastore
|
|
70
|
+
*/
|
|
71
|
+
hostId?: string | null;
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
68
74
|
* Check if a given object implements the Datastore interface.
|
package/dist/models/Datastore.js
CHANGED
|
@@ -49,6 +49,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
50
50
|
'protocolType': json['protocolType'],
|
|
51
51
|
'model': json['model'],
|
|
52
|
+
'hostId': json['hostId'] == null ? undefined : json['hostId'],
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
export function DatastoreToJSON(value) {
|
|
@@ -64,5 +65,6 @@ export function DatastoreToJSON(value) {
|
|
|
64
65
|
'hardwareAcceleratedMove': value['hardwareAcceleratedMove'],
|
|
65
66
|
'protocolType': value['protocolType'],
|
|
66
67
|
'model': value['model'],
|
|
68
|
+
'hostId': value['hostId'],
|
|
67
69
|
};
|
|
68
70
|
}
|
package/dist/models/Host.d.ts
CHANGED
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface Host
|
|
16
16
|
*/
|
|
17
17
|
export interface Host {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for this host
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Host
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
18
24
|
/**
|
|
19
25
|
*
|
|
20
26
|
* @type {string}
|
|
@@ -27,6 +33,24 @@ export interface Host {
|
|
|
27
33
|
* @memberof Host
|
|
28
34
|
*/
|
|
29
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;
|
|
30
54
|
}
|
|
31
55
|
/**
|
|
32
56
|
* Check if a given object implements the Host interface.
|
package/dist/models/Host.js
CHANGED
|
@@ -29,8 +29,12 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
32
33
|
'vendor': json['vendor'],
|
|
33
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'],
|
|
34
38
|
};
|
|
35
39
|
}
|
|
36
40
|
export function HostToJSON(value) {
|
|
@@ -38,7 +42,11 @@ export function HostToJSON(value) {
|
|
|
38
42
|
return value;
|
|
39
43
|
}
|
|
40
44
|
return {
|
|
45
|
+
'id': value['id'],
|
|
41
46
|
'vendor': value['vendor'],
|
|
42
47
|
'model': value['model'],
|
|
48
|
+
'cpuCores': value['cpuCores'],
|
|
49
|
+
'cpuSockets': value['cpuSockets'],
|
|
50
|
+
'memoryMB': value['memoryMB'],
|
|
43
51
|
};
|
|
44
52
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
* Migration planner information
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Info
|
|
16
|
+
*/
|
|
17
|
+
export interface Info {
|
|
18
|
+
/**
|
|
19
|
+
* Git commit hash
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Info
|
|
22
|
+
*/
|
|
23
|
+
gitCommit: string;
|
|
24
|
+
/**
|
|
25
|
+
* Version name, based on git tag
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Info
|
|
28
|
+
*/
|
|
29
|
+
versionName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Info interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfInfo(value: object): value is Info;
|
|
35
|
+
export declare function InfoFromJSON(json: any): Info;
|
|
36
|
+
export declare function InfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Info;
|
|
37
|
+
export declare function InfoToJSON(value?: Info | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 Info interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfInfo(value) {
|
|
18
|
+
if (!('gitCommit' in value) || value['gitCommit'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('versionName' in value) || value['versionName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function InfoFromJSON(json) {
|
|
25
|
+
return InfoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'gitCommit': json['gitCommit'],
|
|
33
|
+
'versionName': json['versionName'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function InfoToJSON(value) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'gitCommit': value['gitCommit'],
|
|
42
|
+
'versionName': value['versionName'],
|
|
43
|
+
};
|
|
44
|
+
}
|
package/dist/models/Infra.d.ts
CHANGED
package/dist/models/Infra.js
CHANGED
|
@@ -46,6 +46,7 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
47
47
|
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(HostFromJSON)),
|
|
48
48
|
'hostsPerCluster': json['hostsPerCluster'],
|
|
49
|
+
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
49
50
|
'hostPowerStates': json['hostPowerStates'],
|
|
50
51
|
'networks': (json['networks'].map(NetworkFromJSON)),
|
|
51
52
|
'datastores': (json['datastores'].map(DatastoreFromJSON)),
|
|
@@ -62,6 +63,7 @@ export function InfraToJSON(value) {
|
|
|
62
63
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
63
64
|
'hosts': value['hosts'] == null ? undefined : (value['hosts'].map(HostToJSON)),
|
|
64
65
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
66
|
+
'vmsPerCluster': value['vmsPerCluster'],
|
|
65
67
|
'hostPowerStates': value['hostPowerStates'],
|
|
66
68
|
'networks': (value['networks'].map(NetworkToJSON)),
|
|
67
69
|
'datastores': (value['datastores'].map(DatastoreToJSON)),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,31 +4,24 @@ export * from './Assessment';
|
|
|
4
4
|
export * from './AssessmentForm';
|
|
5
5
|
export * from './AssessmentUpdate';
|
|
6
6
|
export * from './Datastore';
|
|
7
|
-
export * from './Event';
|
|
8
|
-
export * from './EventData';
|
|
9
7
|
export * from './Histogram';
|
|
10
8
|
export * from './Host';
|
|
9
|
+
export * from './Info';
|
|
11
10
|
export * from './Infra';
|
|
12
|
-
export * from './InfraDatastoresInner';
|
|
13
|
-
export * from './InfraNetworksInner';
|
|
14
11
|
export * from './Inventory';
|
|
15
12
|
export * from './Label';
|
|
16
13
|
export * from './MigrationIssue';
|
|
17
|
-
export * from './MigrationIssuesInner';
|
|
18
14
|
export * from './ModelError';
|
|
19
15
|
export * from './Network';
|
|
20
16
|
export * from './OsInfo';
|
|
21
17
|
export * from './PresignedUrl';
|
|
22
18
|
export * from './Snapshot';
|
|
23
19
|
export * from './Source';
|
|
24
|
-
export * from './SourceAgentItem';
|
|
25
20
|
export * from './SourceCreate';
|
|
26
21
|
export * from './SourceUpdate';
|
|
27
|
-
export * from './SourceUpdateOnPrem';
|
|
28
22
|
export * from './Status';
|
|
29
23
|
export * from './UpdateInventory';
|
|
30
24
|
export * from './UploadRvtoolsFile200Response';
|
|
31
25
|
export * from './VCenter';
|
|
32
26
|
export * from './VMResourceBreakdown';
|
|
33
|
-
export * from './VMResourceBreakdownHistogram';
|
|
34
27
|
export * from './VMs';
|
package/dist/models/index.js
CHANGED
|
@@ -6,31 +6,24 @@ export * from './Assessment';
|
|
|
6
6
|
export * from './AssessmentForm';
|
|
7
7
|
export * from './AssessmentUpdate';
|
|
8
8
|
export * from './Datastore';
|
|
9
|
-
export * from './Event';
|
|
10
|
-
export * from './EventData';
|
|
11
9
|
export * from './Histogram';
|
|
12
10
|
export * from './Host';
|
|
11
|
+
export * from './Info';
|
|
13
12
|
export * from './Infra';
|
|
14
|
-
export * from './InfraDatastoresInner';
|
|
15
|
-
export * from './InfraNetworksInner';
|
|
16
13
|
export * from './Inventory';
|
|
17
14
|
export * from './Label';
|
|
18
15
|
export * from './MigrationIssue';
|
|
19
|
-
export * from './MigrationIssuesInner';
|
|
20
16
|
export * from './ModelError';
|
|
21
17
|
export * from './Network';
|
|
22
18
|
export * from './OsInfo';
|
|
23
19
|
export * from './PresignedUrl';
|
|
24
20
|
export * from './Snapshot';
|
|
25
21
|
export * from './Source';
|
|
26
|
-
export * from './SourceAgentItem';
|
|
27
22
|
export * from './SourceCreate';
|
|
28
23
|
export * from './SourceUpdate';
|
|
29
|
-
export * from './SourceUpdateOnPrem';
|
|
30
24
|
export * from './Status';
|
|
31
25
|
export * from './UpdateInventory';
|
|
32
26
|
export * from './UploadRvtoolsFile200Response';
|
|
33
27
|
export * from './VCenter';
|
|
34
28
|
export * from './VMResourceBreakdown';
|
|
35
|
-
export * from './VMResourceBreakdownHistogram';
|
|
36
29
|
export * from './VMs';
|
package/package.json
CHANGED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
Info,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
InfoFromJSON,
|
|
22
|
+
InfoToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* InfoApi - interface
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface InfoApiInterface
|
|
30
|
+
*/
|
|
31
|
+
export interface InfoApiInterface {
|
|
32
|
+
/**
|
|
33
|
+
* Get migration planner information
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @memberof InfoApiInterface
|
|
37
|
+
*/
|
|
38
|
+
getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Info>>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Get migration planner information
|
|
42
|
+
*/
|
|
43
|
+
getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Info>;
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
export class InfoApi extends runtime.BaseAPI implements InfoApiInterface {
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Get migration planner information
|
|
54
|
+
*/
|
|
55
|
+
async getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Info>> {
|
|
56
|
+
const queryParameters: any = {};
|
|
57
|
+
|
|
58
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
59
|
+
|
|
60
|
+
const response = await this.request({
|
|
61
|
+
path: `/api/v1/info`,
|
|
62
|
+
method: 'GET',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
|
|
67
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InfoFromJSON(jsonValue));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Get migration planner information
|
|
72
|
+
*/
|
|
73
|
+
async getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Info> {
|
|
74
|
+
const response = await this.getInfoRaw(initOverrides);
|
|
75
|
+
return await response.value();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
package/src/apis/index.ts
CHANGED
package/src/models/Datastore.ts
CHANGED
|
@@ -67,6 +67,12 @@ export interface Datastore {
|
|
|
67
67
|
* @memberof Datastore
|
|
68
68
|
*/
|
|
69
69
|
model: string;
|
|
70
|
+
/**
|
|
71
|
+
* Identifier of the host where this datastore is attached
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Datastore
|
|
74
|
+
*/
|
|
75
|
+
hostId?: string | null;
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
/**
|
|
@@ -102,6 +108,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
102
108
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
103
109
|
'protocolType': json['protocolType'],
|
|
104
110
|
'model': json['model'],
|
|
111
|
+
'hostId': json['hostId'] == null ? undefined : json['hostId'],
|
|
105
112
|
};
|
|
106
113
|
}
|
|
107
114
|
|
|
@@ -119,6 +126,7 @@ export function DatastoreToJSON(value?: Datastore | null): any {
|
|
|
119
126
|
'hardwareAcceleratedMove': value['hardwareAcceleratedMove'],
|
|
120
127
|
'protocolType': value['protocolType'],
|
|
121
128
|
'model': value['model'],
|
|
129
|
+
'hostId': value['hostId'],
|
|
122
130
|
};
|
|
123
131
|
}
|
|
124
132
|
|
package/src/models/Host.ts
CHANGED
|
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface Host
|
|
20
20
|
*/
|
|
21
21
|
export interface Host {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for this host
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Host
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {string}
|
|
@@ -31,6 +37,24 @@ export interface Host {
|
|
|
31
37
|
* @memberof Host
|
|
32
38
|
*/
|
|
33
39
|
model: string;
|
|
40
|
+
/**
|
|
41
|
+
* Number of CPU cores
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof Host
|
|
44
|
+
*/
|
|
45
|
+
cpuCores?: number | null;
|
|
46
|
+
/**
|
|
47
|
+
* Number of CPU sockets
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof Host
|
|
50
|
+
*/
|
|
51
|
+
cpuSockets?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
* Host memory in MB
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof Host
|
|
56
|
+
*/
|
|
57
|
+
memoryMB?: number | null;
|
|
34
58
|
}
|
|
35
59
|
|
|
36
60
|
/**
|
|
@@ -52,8 +76,12 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
|
|
|
52
76
|
}
|
|
53
77
|
return {
|
|
54
78
|
|
|
79
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
55
80
|
'vendor': json['vendor'],
|
|
56
81
|
'model': json['model'],
|
|
82
|
+
'cpuCores': json['cpuCores'] == null ? undefined : json['cpuCores'],
|
|
83
|
+
'cpuSockets': json['cpuSockets'] == null ? undefined : json['cpuSockets'],
|
|
84
|
+
'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
|
|
57
85
|
};
|
|
58
86
|
}
|
|
59
87
|
|
|
@@ -63,8 +91,12 @@ export function HostToJSON(value?: Host | null): any {
|
|
|
63
91
|
}
|
|
64
92
|
return {
|
|
65
93
|
|
|
94
|
+
'id': value['id'],
|
|
66
95
|
'vendor': value['vendor'],
|
|
67
96
|
'model': value['model'],
|
|
97
|
+
'cpuCores': value['cpuCores'],
|
|
98
|
+
'cpuSockets': value['cpuSockets'],
|
|
99
|
+
'memoryMB': value['memoryMB'],
|
|
68
100
|
};
|
|
69
101
|
}
|
|
70
102
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Migration planner information
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Info
|
|
20
|
+
*/
|
|
21
|
+
export interface Info {
|
|
22
|
+
/**
|
|
23
|
+
* Git commit hash
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Info
|
|
26
|
+
*/
|
|
27
|
+
gitCommit: string;
|
|
28
|
+
/**
|
|
29
|
+
* Version name, based on git tag
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Info
|
|
32
|
+
*/
|
|
33
|
+
versionName: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the Info interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfInfo(value: object): value is Info {
|
|
40
|
+
if (!('gitCommit' in value) || value['gitCommit'] === undefined) return false;
|
|
41
|
+
if (!('versionName' in value) || value['versionName'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function InfoFromJSON(json: any): Info {
|
|
46
|
+
return InfoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function InfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Info {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'gitCommit': json['gitCommit'],
|
|
56
|
+
'versionName': json['versionName'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function InfoToJSON(value?: Info | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'gitCommit': value['gitCommit'],
|
|
67
|
+
'versionName': value['versionName'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/src/models/Infra.ts
CHANGED
|
@@ -74,6 +74,12 @@ export interface Infra {
|
|
|
74
74
|
* @memberof Infra
|
|
75
75
|
*/
|
|
76
76
|
hostsPerCluster: Array<number>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<number>}
|
|
80
|
+
* @memberof Infra
|
|
81
|
+
*/
|
|
82
|
+
vmsPerCluster?: Array<number>;
|
|
77
83
|
/**
|
|
78
84
|
*
|
|
79
85
|
* @type {{ [key: string]: number; }}
|
|
@@ -123,6 +129,7 @@ export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inf
|
|
|
123
129
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
124
130
|
'hosts': json['hosts'] == null ? undefined : ((json['hosts'] as Array<any>).map(HostFromJSON)),
|
|
125
131
|
'hostsPerCluster': json['hostsPerCluster'],
|
|
132
|
+
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
126
133
|
'hostPowerStates': json['hostPowerStates'],
|
|
127
134
|
'networks': ((json['networks'] as Array<any>).map(NetworkFromJSON)),
|
|
128
135
|
'datastores': ((json['datastores'] as Array<any>).map(DatastoreFromJSON)),
|
|
@@ -141,6 +148,7 @@ export function InfraToJSON(value?: Infra | null): any {
|
|
|
141
148
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
142
149
|
'hosts': value['hosts'] == null ? undefined : ((value['hosts'] as Array<any>).map(HostToJSON)),
|
|
143
150
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
151
|
+
'vmsPerCluster': value['vmsPerCluster'],
|
|
144
152
|
'hostPowerStates': value['hostPowerStates'],
|
|
145
153
|
'networks': ((value['networks'] as Array<any>).map(NetworkToJSON)),
|
|
146
154
|
'datastores': ((value['datastores'] as Array<any>).map(DatastoreToJSON)),
|
package/src/models/index.ts
CHANGED
|
@@ -6,31 +6,24 @@ export * from './Assessment';
|
|
|
6
6
|
export * from './AssessmentForm';
|
|
7
7
|
export * from './AssessmentUpdate';
|
|
8
8
|
export * from './Datastore';
|
|
9
|
-
export * from './Event';
|
|
10
|
-
export * from './EventData';
|
|
11
9
|
export * from './Histogram';
|
|
12
10
|
export * from './Host';
|
|
11
|
+
export * from './Info';
|
|
13
12
|
export * from './Infra';
|
|
14
|
-
export * from './InfraDatastoresInner';
|
|
15
|
-
export * from './InfraNetworksInner';
|
|
16
13
|
export * from './Inventory';
|
|
17
14
|
export * from './Label';
|
|
18
15
|
export * from './MigrationIssue';
|
|
19
|
-
export * from './MigrationIssuesInner';
|
|
20
16
|
export * from './ModelError';
|
|
21
17
|
export * from './Network';
|
|
22
18
|
export * from './OsInfo';
|
|
23
19
|
export * from './PresignedUrl';
|
|
24
20
|
export * from './Snapshot';
|
|
25
21
|
export * from './Source';
|
|
26
|
-
export * from './SourceAgentItem';
|
|
27
22
|
export * from './SourceCreate';
|
|
28
23
|
export * from './SourceUpdate';
|
|
29
|
-
export * from './SourceUpdateOnPrem';
|
|
30
24
|
export * from './Status';
|
|
31
25
|
export * from './UpdateInventory';
|
|
32
26
|
export * from './UploadRvtoolsFile200Response';
|
|
33
27
|
export * from './VCenter';
|
|
34
28
|
export * from './VMResourceBreakdown';
|
|
35
|
-
export * from './VMResourceBreakdownHistogram';
|
|
36
29
|
export * from './VMs';
|