@migration-planner-ui/api-client 0.0.9 → 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/SourceApi.d.ts +26 -1
- package/dist/apis/SourceApi.js +51 -1
- package/dist/models/AgentProxy.d.ts +3 -3
- 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/SourceApi.ts +84 -0
- package/src/models/AgentProxy.ts +3 -3
- 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/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
|
}
|
|
@@ -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.
|
|
@@ -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;
|
|
@@ -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 Label interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfLabel(value) {
|
|
18
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function LabelFromJSON(json) {
|
|
25
|
+
return LabelFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function LabelFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'key': json['key'],
|
|
33
|
+
'value': json['value'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function LabelToJSON(value) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'key': value['key'],
|
|
42
|
+
'value': value['value'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 MigrationIssue
|
|
16
|
+
*/
|
|
17
|
+
export interface MigrationIssue {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MigrationIssue
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MigrationIssue
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MigrationIssue
|
|
34
|
+
*/
|
|
35
|
+
assessment: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof MigrationIssue
|
|
40
|
+
*/
|
|
41
|
+
count: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the MigrationIssue interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfMigrationIssue(value: object): value is MigrationIssue;
|
|
47
|
+
export declare function MigrationIssueFromJSON(json: any): MigrationIssue;
|
|
48
|
+
export declare function MigrationIssueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationIssue;
|
|
49
|
+
export declare function MigrationIssueToJSON(value?: MigrationIssue | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 MigrationIssue interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMigrationIssue(value) {
|
|
18
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('assessment' in value) || value['assessment'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('count' in value) || value['count'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function MigrationIssueFromJSON(json) {
|
|
27
|
+
return MigrationIssueFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function MigrationIssueFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
35
|
+
'label': json['label'],
|
|
36
|
+
'assessment': json['assessment'],
|
|
37
|
+
'count': json['count'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function MigrationIssueToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': value['id'],
|
|
46
|
+
'label': value['label'],
|
|
47
|
+
'assessment': value['assessment'],
|
|
48
|
+
'count': value['count'],
|
|
49
|
+
};
|
|
50
|
+
}
|