@migration-planner-ui/api-client 0.0.8 → 0.0.10
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 +7 -3
- package/dist/apis/ImageApi.d.ts +0 -23
- package/dist/apis/ImageApi.js +0 -28
- package/dist/apis/SourceApi.d.ts +26 -1
- package/dist/apis/SourceApi.js +51 -1
- package/dist/apis/index.d.ts +1 -1
- package/dist/models/AgentProxy.d.ts +3 -3
- package/dist/models/Datastore.d.ts +12 -0
- package/dist/models/Datastore.js +8 -0
- package/dist/models/Histogram.d.ts +43 -0
- package/dist/models/Histogram.js +48 -0
- package/dist/models/Host.d.ts +37 -0
- package/dist/models/Host.js +44 -0
- package/dist/models/Infra.d.ts +22 -3
- package/dist/models/Infra.js +16 -3
- package/dist/models/Inventory.js +9 -6
- package/dist/models/Label.d.ts +37 -0
- package/dist/models/Label.js +44 -0
- package/dist/models/MigrationIssue.d.ts +49 -0
- package/dist/models/MigrationIssue.js +50 -0
- package/dist/models/Network.d.ts +59 -0
- package/dist/models/Network.js +57 -0
- package/dist/models/OsInfo.d.ts +37 -0
- package/dist/models/OsInfo.js +44 -0
- package/dist/models/Source.d.ts +7 -0
- package/dist/models/Source.js +3 -0
- package/dist/models/SourceCreate.d.ts +2 -2
- package/dist/models/UploadRvtoolsFile200Response.d.ts +31 -0
- package/dist/models/UploadRvtoolsFile200Response.js +38 -0
- package/dist/models/VMResourceBreakdown.d.ts +3 -3
- package/dist/models/VMResourceBreakdown.js +3 -3
- package/dist/models/VMs.d.ts +15 -5
- package/dist/models/VMs.js +18 -13
- package/dist/models/index.d.ts +10 -6
- package/dist/models/index.js +10 -6
- package/package.json +1 -1
- package/src/apis/ImageApi.ts +0 -51
- package/src/apis/SourceApi.ts +84 -0
- package/src/apis/index.ts +0 -1
- package/src/models/AgentProxy.ts +3 -3
- package/src/models/Datastore.ts +18 -0
- package/src/models/Histogram.ts +79 -0
- package/src/models/Host.ts +70 -0
- package/src/models/Infra.ts +42 -9
- package/src/models/Inventory.ts +6 -6
- package/src/models/Label.ts +70 -0
- package/src/models/MigrationIssue.ts +87 -0
- package/src/models/Network.ts +99 -0
- package/src/models/OsInfo.ts +70 -0
- package/src/models/Source.ts +14 -0
- package/src/models/SourceCreate.ts +2 -2
- package/src/models/UploadRvtoolsFile200Response.ts +60 -0
- package/src/models/VMResourceBreakdown.ts +9 -9
- package/src/models/VMs.ts +36 -21
- package/src/models/index.ts +10 -6
- package/dist/apis/UiEventsApi.d.ts +0 -49
- package/dist/apis/UiEventsApi.js +0 -59
- package/src/apis/UiEventsApi.ts +0 -96
package/.openapi-generator/FILES
CHANGED
|
@@ -6,19 +6,23 @@ src/index.ts
|
|
|
6
6
|
src/models/Agent.ts
|
|
7
7
|
src/models/AgentProxy.ts
|
|
8
8
|
src/models/Datastore.ts
|
|
9
|
+
src/models/Histogram.ts
|
|
10
|
+
src/models/Host.ts
|
|
9
11
|
src/models/Infra.ts
|
|
10
|
-
src/models/InfraNetworksInner.ts
|
|
11
12
|
src/models/Inventory.ts
|
|
12
|
-
src/models/
|
|
13
|
+
src/models/Label.ts
|
|
14
|
+
src/models/MigrationIssue.ts
|
|
13
15
|
src/models/ModelError.ts
|
|
16
|
+
src/models/Network.ts
|
|
17
|
+
src/models/OsInfo.ts
|
|
14
18
|
src/models/PresignedUrl.ts
|
|
15
19
|
src/models/Source.ts
|
|
16
20
|
src/models/SourceCreate.ts
|
|
17
21
|
src/models/SourceUpdateOnPrem.ts
|
|
18
22
|
src/models/Status.ts
|
|
23
|
+
src/models/UploadRvtoolsFile200Response.ts
|
|
19
24
|
src/models/VCenter.ts
|
|
20
25
|
src/models/VMResourceBreakdown.ts
|
|
21
|
-
src/models/VMResourceBreakdownHistogram.ts
|
|
22
26
|
src/models/VMs.ts
|
|
23
27
|
src/models/index.ts
|
|
24
28
|
src/runtime.ts
|
package/dist/apis/ImageApi.d.ts
CHANGED
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { PresignedUrl } from '../models/index';
|
|
14
|
-
export interface GetImageRequest {
|
|
15
|
-
id: string;
|
|
16
|
-
}
|
|
17
14
|
export interface GetSourceDownloadURLRequest {
|
|
18
15
|
id: string;
|
|
19
16
|
}
|
|
@@ -27,18 +24,6 @@ export interface HeadImageRequest {
|
|
|
27
24
|
* @interface ImageApiInterface
|
|
28
25
|
*/
|
|
29
26
|
export interface ImageApiInterface {
|
|
30
|
-
/**
|
|
31
|
-
* Get the OVA image
|
|
32
|
-
* @param {string} id id of the source
|
|
33
|
-
* @param {*} [options] Override http request option.
|
|
34
|
-
* @throws {RequiredError}
|
|
35
|
-
* @memberof ImageApiInterface
|
|
36
|
-
*/
|
|
37
|
-
getImageRaw(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
38
|
-
/**
|
|
39
|
-
* Get the OVA image
|
|
40
|
-
*/
|
|
41
|
-
getImage(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
42
27
|
/**
|
|
43
28
|
* Get the OVA image via URL
|
|
44
29
|
* @param {string} id Source id
|
|
@@ -68,14 +53,6 @@ export interface ImageApiInterface {
|
|
|
68
53
|
*
|
|
69
54
|
*/
|
|
70
55
|
export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
71
|
-
/**
|
|
72
|
-
* Get the OVA image
|
|
73
|
-
*/
|
|
74
|
-
getImageRaw(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
75
|
-
/**
|
|
76
|
-
* Get the OVA image
|
|
77
|
-
*/
|
|
78
|
-
getImage(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
79
56
|
/**
|
|
80
57
|
* Get the OVA image via URL
|
|
81
58
|
*/
|
package/dist/apis/ImageApi.js
CHANGED
|
@@ -26,34 +26,6 @@ import { PresignedUrlFromJSON, } from '../models/index';
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class ImageApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Get the OVA image
|
|
31
|
-
*/
|
|
32
|
-
getImageRaw(requestParameters, initOverrides) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['id'] == null) {
|
|
35
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getImage().');
|
|
36
|
-
}
|
|
37
|
-
const queryParameters = {};
|
|
38
|
-
const headerParameters = {};
|
|
39
|
-
const response = yield this.request({
|
|
40
|
-
path: `/api/v1/sources/{id}/image`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
41
|
-
method: 'GET',
|
|
42
|
-
headers: headerParameters,
|
|
43
|
-
query: queryParameters,
|
|
44
|
-
}, initOverrides);
|
|
45
|
-
return new runtime.BlobApiResponse(response);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Get the OVA image
|
|
50
|
-
*/
|
|
51
|
-
getImage(requestParameters, initOverrides) {
|
|
52
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
const response = yield this.getImageRaw(requestParameters, initOverrides);
|
|
54
|
-
return yield response.value();
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
29
|
/**
|
|
58
30
|
* Get the OVA image via URL
|
|
59
31
|
*/
|
package/dist/apis/SourceApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Source, SourceCreate, SourceUpdateOnPrem, Status } from '../models/index';
|
|
13
|
+
import type { Source, SourceCreate, SourceUpdateOnPrem, Status, UploadRvtoolsFile200Response } from '../models/index';
|
|
14
14
|
export interface CreateSourceRequest {
|
|
15
15
|
sourceCreate: SourceCreate;
|
|
16
16
|
}
|
|
@@ -27,6 +27,10 @@ export interface UpdateSourceRequest {
|
|
|
27
27
|
id: string;
|
|
28
28
|
sourceUpdateOnPrem: SourceUpdateOnPrem;
|
|
29
29
|
}
|
|
30
|
+
export interface UploadRvtoolsFileRequest {
|
|
31
|
+
id: string;
|
|
32
|
+
file: Blob;
|
|
33
|
+
}
|
|
30
34
|
/**
|
|
31
35
|
* SourceApi - interface
|
|
32
36
|
*
|
|
@@ -106,6 +110,19 @@ export interface SourceApiInterface {
|
|
|
106
110
|
* Update a source from inventory file
|
|
107
111
|
*/
|
|
108
112
|
updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
113
|
+
/**
|
|
114
|
+
* Update a source by uploading an RVTools file directly
|
|
115
|
+
* @param {string} id ID of the source
|
|
116
|
+
* @param {Blob} file The RVTools file (Excel)
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
* @memberof SourceApiInterface
|
|
120
|
+
*/
|
|
121
|
+
uploadRvtoolsFileRaw(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadRvtoolsFile200Response>>;
|
|
122
|
+
/**
|
|
123
|
+
* Update a source by uploading an RVTools file directly
|
|
124
|
+
*/
|
|
125
|
+
uploadRvtoolsFile(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadRvtoolsFile200Response>;
|
|
109
126
|
}
|
|
110
127
|
/**
|
|
111
128
|
*
|
|
@@ -159,4 +176,12 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
|
|
|
159
176
|
* Update a source from inventory file
|
|
160
177
|
*/
|
|
161
178
|
updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
179
|
+
/**
|
|
180
|
+
* Update a source by uploading an RVTools file directly
|
|
181
|
+
*/
|
|
182
|
+
uploadRvtoolsFileRaw(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadRvtoolsFile200Response>>;
|
|
183
|
+
/**
|
|
184
|
+
* Update a source by uploading an RVTools file directly
|
|
185
|
+
*/
|
|
186
|
+
uploadRvtoolsFile(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadRvtoolsFile200Response>;
|
|
162
187
|
}
|
package/dist/apis/SourceApi.js
CHANGED
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { SourceFromJSON, SourceCreateToJSON, SourceUpdateOnPremToJSON, StatusFromJSON, } from '../models/index';
|
|
24
|
+
import { SourceFromJSON, SourceCreateToJSON, SourceUpdateOnPremToJSON, StatusFromJSON, UploadRvtoolsFile200ResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -198,4 +198,54 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
198
198
|
return yield response.value();
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Update a source by uploading an RVTools file directly
|
|
203
|
+
*/
|
|
204
|
+
uploadRvtoolsFileRaw(requestParameters, initOverrides) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
if (requestParameters['id'] == null) {
|
|
207
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadRvtoolsFile().');
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters['file'] == null) {
|
|
210
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling uploadRvtoolsFile().');
|
|
211
|
+
}
|
|
212
|
+
const queryParameters = {};
|
|
213
|
+
const headerParameters = {};
|
|
214
|
+
const consumes = [
|
|
215
|
+
{ contentType: 'multipart/form-data' },
|
|
216
|
+
];
|
|
217
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
218
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
219
|
+
let formParams;
|
|
220
|
+
let useForm = false;
|
|
221
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
222
|
+
useForm = canConsumeForm;
|
|
223
|
+
if (useForm) {
|
|
224
|
+
formParams = new FormData();
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
formParams = new URLSearchParams();
|
|
228
|
+
}
|
|
229
|
+
if (requestParameters['file'] != null) {
|
|
230
|
+
formParams.append('file', requestParameters['file']);
|
|
231
|
+
}
|
|
232
|
+
const response = yield this.request({
|
|
233
|
+
path: `/api/v1/sources/{id}/rvtools`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
234
|
+
method: 'PUT',
|
|
235
|
+
headers: headerParameters,
|
|
236
|
+
query: queryParameters,
|
|
237
|
+
body: formParams,
|
|
238
|
+
}, initOverrides);
|
|
239
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UploadRvtoolsFile200ResponseFromJSON(jsonValue));
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Update a source by uploading an RVTools file directly
|
|
244
|
+
*/
|
|
245
|
+
uploadRvtoolsFile(requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
const response = yield this.uploadRvtoolsFileRaw(requestParameters, initOverrides);
|
|
248
|
+
return yield response.value();
|
|
249
|
+
});
|
|
250
|
+
}
|
|
201
251
|
}
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type HeadImageRequest, type ImageApiInterface, ImageApi, } from "./ImageApi";
|
|
2
2
|
export { type CreateSourceRequest, type DeleteSourceRequest, type GetSourceRequest, type ListSourcesRequest, type SourceApiInterface, SourceApi, type UpdateSourceRequest, } from "./SourceApi";
|
|
3
3
|
export { type HealthApiInterface, HealthApi } from "./HealthApi";
|
|
4
4
|
export { type AgentApiInterface, type DeleteAgentRequest, AgentApi } from "./AgentApi";
|
|
@@ -20,19 +20,19 @@ export interface AgentProxy {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AgentProxy
|
|
22
22
|
*/
|
|
23
|
-
httpUrl?: string;
|
|
23
|
+
httpUrl?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof AgentProxy
|
|
28
28
|
*/
|
|
29
|
-
httpsUrl?: string;
|
|
29
|
+
httpsUrl?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AgentProxy
|
|
34
34
|
*/
|
|
35
|
-
noProxy?: string;
|
|
35
|
+
noProxy?: string | null;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the AgentProxy interface.
|
|
@@ -51,6 +51,18 @@ export interface Datastore {
|
|
|
51
51
|
* @memberof Datastore
|
|
52
52
|
*/
|
|
53
53
|
hardwareAcceleratedMove: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Datastore
|
|
58
|
+
*/
|
|
59
|
+
protocolType: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Datastore
|
|
64
|
+
*/
|
|
65
|
+
model: string;
|
|
54
66
|
}
|
|
55
67
|
/**
|
|
56
68
|
* Check if a given object implements the Datastore interface.
|
package/dist/models/Datastore.js
CHANGED
|
@@ -27,6 +27,10 @@ export function instanceOfDatastore(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('hardwareAcceleratedMove' in value) || value['hardwareAcceleratedMove'] === undefined)
|
|
29
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;
|
|
30
34
|
return true;
|
|
31
35
|
}
|
|
32
36
|
export function DatastoreFromJSON(json) {
|
|
@@ -43,6 +47,8 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
47
|
'vendor': json['vendor'],
|
|
44
48
|
'diskId': json['diskId'],
|
|
45
49
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
50
|
+
'protocolType': json['protocolType'],
|
|
51
|
+
'model': json['model'],
|
|
46
52
|
};
|
|
47
53
|
}
|
|
48
54
|
export function DatastoreToJSON(value) {
|
|
@@ -56,5 +62,7 @@ export function DatastoreToJSON(value) {
|
|
|
56
62
|
'vendor': value['vendor'],
|
|
57
63
|
'diskId': value['diskId'],
|
|
58
64
|
'hardwareAcceleratedMove': value['hardwareAcceleratedMove'],
|
|
65
|
+
'protocolType': value['protocolType'],
|
|
66
|
+
'model': value['model'],
|
|
59
67
|
};
|
|
60
68
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
*
|
|
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(value?: Histogram | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 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(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'minValue': value['minValue'],
|
|
45
|
+
'step': value['step'],
|
|
46
|
+
'data': value['data'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Host
|
|
16
|
+
*/
|
|
17
|
+
export interface Host {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Host
|
|
22
|
+
*/
|
|
23
|
+
vendor: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Host
|
|
28
|
+
*/
|
|
29
|
+
model: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Host interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfHost(value: object): value is Host;
|
|
35
|
+
export declare function HostFromJSON(json: any): Host;
|
|
36
|
+
export declare function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host;
|
|
37
|
+
export declare function HostToJSON(value?: Host | 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 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
|
+
'vendor': json['vendor'],
|
|
33
|
+
'model': json['model'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function HostToJSON(value) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'vendor': value['vendor'],
|
|
42
|
+
'model': value['model'],
|
|
43
|
+
};
|
|
44
|
+
}
|
package/dist/models/Infra.d.ts
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Datastore } from './Datastore';
|
|
13
|
-
import type {
|
|
13
|
+
import type { Network } from './Network';
|
|
14
|
+
import type { Host } from './Host';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -23,12 +24,30 @@ export interface Infra {
|
|
|
23
24
|
* @memberof Infra
|
|
24
25
|
*/
|
|
25
26
|
totalHosts: number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof Infra
|
|
31
|
+
*/
|
|
32
|
+
totalDatacenters: number;
|
|
26
33
|
/**
|
|
27
34
|
*
|
|
28
35
|
* @type {number}
|
|
29
36
|
* @memberof Infra
|
|
30
37
|
*/
|
|
31
38
|
totalClusters: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<number>}
|
|
42
|
+
* @memberof Infra
|
|
43
|
+
*/
|
|
44
|
+
clustersPerDatacenter: Array<number>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<Host>}
|
|
48
|
+
* @memberof Infra
|
|
49
|
+
*/
|
|
50
|
+
hosts: Array<Host>;
|
|
32
51
|
/**
|
|
33
52
|
*
|
|
34
53
|
* @type {Array<number>}
|
|
@@ -45,10 +64,10 @@ export interface Infra {
|
|
|
45
64
|
};
|
|
46
65
|
/**
|
|
47
66
|
*
|
|
48
|
-
* @type {Array<
|
|
67
|
+
* @type {Array<Network>}
|
|
49
68
|
* @memberof Infra
|
|
50
69
|
*/
|
|
51
|
-
networks: Array<
|
|
70
|
+
networks: Array<Network>;
|
|
52
71
|
/**
|
|
53
72
|
*
|
|
54
73
|
* @type {Array<Datastore>}
|
package/dist/models/Infra.js
CHANGED
|
@@ -12,15 +12,22 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { DatastoreFromJSON, DatastoreToJSON, } from './Datastore';
|
|
15
|
-
import {
|
|
15
|
+
import { NetworkFromJSON, NetworkToJSON, } from './Network';
|
|
16
|
+
import { HostFromJSON, HostToJSON, } from './Host';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the Infra interface.
|
|
18
19
|
*/
|
|
19
20
|
export function instanceOfInfra(value) {
|
|
20
21
|
if (!('totalHosts' in value) || value['totalHosts'] === undefined)
|
|
21
22
|
return false;
|
|
23
|
+
if (!('totalDatacenters' in value) || value['totalDatacenters'] === undefined)
|
|
24
|
+
return false;
|
|
22
25
|
if (!('totalClusters' in value) || value['totalClusters'] === undefined)
|
|
23
26
|
return false;
|
|
27
|
+
if (!('clustersPerDatacenter' in value) || value['clustersPerDatacenter'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('hosts' in value) || value['hosts'] === undefined)
|
|
30
|
+
return false;
|
|
24
31
|
if (!('hostsPerCluster' in value) || value['hostsPerCluster'] === undefined)
|
|
25
32
|
return false;
|
|
26
33
|
if (!('hostPowerStates' in value) || value['hostPowerStates'] === undefined)
|
|
@@ -40,10 +47,13 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
47
|
}
|
|
41
48
|
return {
|
|
42
49
|
'totalHosts': json['totalHosts'],
|
|
50
|
+
'totalDatacenters': json['totalDatacenters'],
|
|
43
51
|
'totalClusters': json['totalClusters'],
|
|
52
|
+
'clustersPerDatacenter': json['clustersPerDatacenter'],
|
|
53
|
+
'hosts': (json['hosts'].map(HostFromJSON)),
|
|
44
54
|
'hostsPerCluster': json['hostsPerCluster'],
|
|
45
55
|
'hostPowerStates': json['hostPowerStates'],
|
|
46
|
-
'networks': (json['networks'].map(
|
|
56
|
+
'networks': (json['networks'].map(NetworkFromJSON)),
|
|
47
57
|
'datastores': (json['datastores'].map(DatastoreFromJSON)),
|
|
48
58
|
};
|
|
49
59
|
}
|
|
@@ -53,10 +63,13 @@ export function InfraToJSON(value) {
|
|
|
53
63
|
}
|
|
54
64
|
return {
|
|
55
65
|
'totalHosts': value['totalHosts'],
|
|
66
|
+
'totalDatacenters': value['totalDatacenters'],
|
|
56
67
|
'totalClusters': value['totalClusters'],
|
|
68
|
+
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
69
|
+
'hosts': (value['hosts'].map(HostToJSON)),
|
|
57
70
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
58
71
|
'hostPowerStates': value['hostPowerStates'],
|
|
59
|
-
'networks': (value['networks'].map(
|
|
72
|
+
'networks': (value['networks'].map(NetworkToJSON)),
|
|
60
73
|
'datastores': (value['datastores'].map(DatastoreToJSON)),
|
|
61
74
|
};
|
|
62
75
|
}
|
package/dist/models/Inventory.js
CHANGED
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { VCenterFromJSON, VCenterToJSON, } from './VCenter';
|
|
15
|
+
import { InfraFromJSON, InfraToJSON, } from './Infra';
|
|
16
|
+
import { VMsFromJSON, VMsToJSON, } from './VMs';
|
|
14
17
|
/**
|
|
15
18
|
* Check if a given object implements the Inventory interface.
|
|
16
19
|
*/
|
|
@@ -31,9 +34,9 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
34
|
return json;
|
|
32
35
|
}
|
|
33
36
|
return {
|
|
34
|
-
'vcenter': json['vcenter'],
|
|
35
|
-
'vms': json['vms'],
|
|
36
|
-
'infra': json['infra'],
|
|
37
|
+
'vcenter': VCenterFromJSON(json['vcenter']),
|
|
38
|
+
'vms': VMsFromJSON(json['vms']),
|
|
39
|
+
'infra': InfraFromJSON(json['infra']),
|
|
37
40
|
};
|
|
38
41
|
}
|
|
39
42
|
export function InventoryToJSON(value) {
|
|
@@ -41,8 +44,8 @@ export function InventoryToJSON(value) {
|
|
|
41
44
|
return value;
|
|
42
45
|
}
|
|
43
46
|
return {
|
|
44
|
-
'vcenter': value['vcenter'],
|
|
45
|
-
'vms': value['vms'],
|
|
46
|
-
'infra': value['infra'],
|
|
47
|
+
'vcenter': VCenterToJSON(value['vcenter']),
|
|
48
|
+
'vms': VMsToJSON(value['vms']),
|
|
49
|
+
'infra': InfraToJSON(value['infra']),
|
|
47
50
|
};
|
|
48
51
|
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Label
|
|
16
|
+
*/
|
|
17
|
+
export interface Label {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Label
|
|
22
|
+
*/
|
|
23
|
+
key: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Label
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Label interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLabel(value: object): value is Label;
|
|
35
|
+
export declare function LabelFromJSON(json: any): Label;
|
|
36
|
+
export declare function LabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): Label;
|
|
37
|
+
export declare function LabelToJSON(value?: Label | null): any;
|