@migration-planner-ui/api-client 0.0.20 → 0.0.21
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 -1
- package/dist/apis/SourceApi.d.ts +5 -34
- package/dist/apis/SourceApi.js +5 -58
- package/dist/apis/index.d.ts +1 -1
- package/dist/models/DiskSizeTierSummary.d.ts +37 -0
- package/dist/models/DiskSizeTierSummary.js +44 -0
- package/dist/models/ModelError.d.ts +6 -0
- package/dist/models/ModelError.js +2 -0
- package/dist/models/Network.d.ts +6 -0
- package/dist/models/Network.js +2 -0
- package/dist/models/Source.d.ts +7 -0
- package/dist/models/Source.js +3 -0
- package/dist/models/SourceInfra.d.ts +45 -0
- package/dist/models/SourceInfra.js +44 -0
- package/dist/models/VMs.d.ts +9 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +3 -0
- package/src/apis/SourceApi.ts +5 -98
- package/src/apis/index.ts +0 -1
- package/src/models/DiskSizeTierSummary.ts +70 -0
- package/src/models/ModelError.ts +8 -0
- package/src/models/Network.ts +8 -0
- package/src/models/Source.ts +14 -0
- package/src/models/SourceInfra.ts +89 -0
- package/src/models/VMs.ts +14 -0
- package/src/models/index.ts +3 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -11,6 +11,7 @@ src/models/Assessment.ts
|
|
|
11
11
|
src/models/AssessmentForm.ts
|
|
12
12
|
src/models/AssessmentUpdate.ts
|
|
13
13
|
src/models/Datastore.ts
|
|
14
|
+
src/models/DiskSizeTierSummary.ts
|
|
14
15
|
src/models/Histogram.ts
|
|
15
16
|
src/models/Host.ts
|
|
16
17
|
src/models/Info.ts
|
|
@@ -26,10 +27,10 @@ src/models/PresignedUrl.ts
|
|
|
26
27
|
src/models/Snapshot.ts
|
|
27
28
|
src/models/Source.ts
|
|
28
29
|
src/models/SourceCreate.ts
|
|
30
|
+
src/models/SourceInfra.ts
|
|
29
31
|
src/models/SourceUpdate.ts
|
|
30
32
|
src/models/Status.ts
|
|
31
33
|
src/models/UpdateInventory.ts
|
|
32
|
-
src/models/UploadRvtoolsFile200Response.ts
|
|
33
34
|
src/models/VCenter.ts
|
|
34
35
|
src/models/VMResourceBreakdown.ts
|
|
35
36
|
src/models/VMs.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, SourceUpdate, Status, UpdateInventory
|
|
13
|
+
import type { Source, SourceCreate, SourceUpdate, Status, UpdateInventory } from '../models/index';
|
|
14
14
|
export interface CreateSourceRequest {
|
|
15
15
|
sourceCreate: SourceCreate;
|
|
16
16
|
}
|
|
@@ -20,9 +20,6 @@ export interface DeleteSourceRequest {
|
|
|
20
20
|
export interface GetSourceRequest {
|
|
21
21
|
id: string;
|
|
22
22
|
}
|
|
23
|
-
export interface ListSourcesRequest {
|
|
24
|
-
includeDefault?: boolean;
|
|
25
|
-
}
|
|
26
23
|
export interface UpdateInventoryRequest {
|
|
27
24
|
id: string;
|
|
28
25
|
updateInventory: UpdateInventory;
|
|
@@ -31,10 +28,6 @@ export interface UpdateSourceRequest {
|
|
|
31
28
|
id: string;
|
|
32
29
|
sourceUpdate: SourceUpdate;
|
|
33
30
|
}
|
|
34
|
-
export interface UploadRvtoolsFileRequest {
|
|
35
|
-
id: string;
|
|
36
|
-
file: Blob;
|
|
37
|
-
}
|
|
38
31
|
/**
|
|
39
32
|
* SourceApi - interface
|
|
40
33
|
*
|
|
@@ -91,16 +84,15 @@ export interface SourceApiInterface {
|
|
|
91
84
|
getSource(requestParameters: GetSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
92
85
|
/**
|
|
93
86
|
* List sources
|
|
94
|
-
* @param {boolean} [includeDefault] control whatever the default report should be added to the result
|
|
95
87
|
* @param {*} [options] Override http request option.
|
|
96
88
|
* @throws {RequiredError}
|
|
97
89
|
* @memberof SourceApiInterface
|
|
98
90
|
*/
|
|
99
|
-
listSourcesRaw(
|
|
91
|
+
listSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Source>>>;
|
|
100
92
|
/**
|
|
101
93
|
* List sources
|
|
102
94
|
*/
|
|
103
|
-
listSources(
|
|
95
|
+
listSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
|
|
104
96
|
/**
|
|
105
97
|
* Update inventory
|
|
106
98
|
* @param {string} id ID of the source
|
|
@@ -127,19 +119,6 @@ export interface SourceApiInterface {
|
|
|
127
119
|
* Update source
|
|
128
120
|
*/
|
|
129
121
|
updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
130
|
-
/**
|
|
131
|
-
* Update a source by uploading an RVTools file directly
|
|
132
|
-
* @param {string} id ID of the source
|
|
133
|
-
* @param {Blob} file The RVTools file (Excel)
|
|
134
|
-
* @param {*} [options] Override http request option.
|
|
135
|
-
* @throws {RequiredError}
|
|
136
|
-
* @memberof SourceApiInterface
|
|
137
|
-
*/
|
|
138
|
-
uploadRvtoolsFileRaw(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadRvtoolsFile200Response>>;
|
|
139
|
-
/**
|
|
140
|
-
* Update a source by uploading an RVTools file directly
|
|
141
|
-
*/
|
|
142
|
-
uploadRvtoolsFile(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadRvtoolsFile200Response>;
|
|
143
122
|
}
|
|
144
123
|
/**
|
|
145
124
|
*
|
|
@@ -180,11 +159,11 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
|
|
|
180
159
|
/**
|
|
181
160
|
* List sources
|
|
182
161
|
*/
|
|
183
|
-
listSourcesRaw(
|
|
162
|
+
listSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Source>>>;
|
|
184
163
|
/**
|
|
185
164
|
* List sources
|
|
186
165
|
*/
|
|
187
|
-
listSources(
|
|
166
|
+
listSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
|
|
188
167
|
/**
|
|
189
168
|
* Update inventory
|
|
190
169
|
*/
|
|
@@ -201,12 +180,4 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
|
|
|
201
180
|
* Update source
|
|
202
181
|
*/
|
|
203
182
|
updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
204
|
-
/**
|
|
205
|
-
* Update a source by uploading an RVTools file directly
|
|
206
|
-
*/
|
|
207
|
-
uploadRvtoolsFileRaw(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadRvtoolsFile200Response>>;
|
|
208
|
-
/**
|
|
209
|
-
* Update a source by uploading an RVTools file directly
|
|
210
|
-
*/
|
|
211
|
-
uploadRvtoolsFile(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadRvtoolsFile200Response>;
|
|
212
183
|
}
|
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, SourceUpdateToJSON, StatusFromJSON, UpdateInventoryToJSON,
|
|
24
|
+
import { SourceFromJSON, SourceCreateToJSON, SourceUpdateToJSON, StatusFromJSON, UpdateInventoryToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -140,12 +140,9 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
140
140
|
/**
|
|
141
141
|
* List sources
|
|
142
142
|
*/
|
|
143
|
-
listSourcesRaw(
|
|
143
|
+
listSourcesRaw(initOverrides) {
|
|
144
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
145
|
const queryParameters = {};
|
|
146
|
-
if (requestParameters['includeDefault'] != null) {
|
|
147
|
-
queryParameters['include_default'] = requestParameters['includeDefault'];
|
|
148
|
-
}
|
|
149
146
|
const headerParameters = {};
|
|
150
147
|
const response = yield this.request({
|
|
151
148
|
path: `/api/v1/sources`,
|
|
@@ -159,9 +156,9 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
159
156
|
/**
|
|
160
157
|
* List sources
|
|
161
158
|
*/
|
|
162
|
-
listSources() {
|
|
163
|
-
return __awaiter(this,
|
|
164
|
-
const response = yield this.listSourcesRaw(
|
|
159
|
+
listSources(initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const response = yield this.listSourcesRaw(initOverrides);
|
|
165
162
|
return yield response.value();
|
|
166
163
|
});
|
|
167
164
|
}
|
|
@@ -231,54 +228,4 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
231
228
|
return yield response.value();
|
|
232
229
|
});
|
|
233
230
|
}
|
|
234
|
-
/**
|
|
235
|
-
* Update a source by uploading an RVTools file directly
|
|
236
|
-
*/
|
|
237
|
-
uploadRvtoolsFileRaw(requestParameters, initOverrides) {
|
|
238
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
-
if (requestParameters['id'] == null) {
|
|
240
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadRvtoolsFile().');
|
|
241
|
-
}
|
|
242
|
-
if (requestParameters['file'] == null) {
|
|
243
|
-
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling uploadRvtoolsFile().');
|
|
244
|
-
}
|
|
245
|
-
const queryParameters = {};
|
|
246
|
-
const headerParameters = {};
|
|
247
|
-
const consumes = [
|
|
248
|
-
{ contentType: 'multipart/form-data' },
|
|
249
|
-
];
|
|
250
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
251
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
252
|
-
let formParams;
|
|
253
|
-
let useForm = false;
|
|
254
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
255
|
-
useForm = canConsumeForm;
|
|
256
|
-
if (useForm) {
|
|
257
|
-
formParams = new FormData();
|
|
258
|
-
}
|
|
259
|
-
else {
|
|
260
|
-
formParams = new URLSearchParams();
|
|
261
|
-
}
|
|
262
|
-
if (requestParameters['file'] != null) {
|
|
263
|
-
formParams.append('file', requestParameters['file']);
|
|
264
|
-
}
|
|
265
|
-
const response = yield this.request({
|
|
266
|
-
path: `/api/v1/sources/{id}/rvtools`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
267
|
-
method: 'PUT',
|
|
268
|
-
headers: headerParameters,
|
|
269
|
-
query: queryParameters,
|
|
270
|
-
body: formParams,
|
|
271
|
-
}, initOverrides);
|
|
272
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => UploadRvtoolsFile200ResponseFromJSON(jsonValue));
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Update a source by uploading an RVTools file directly
|
|
277
|
-
*/
|
|
278
|
-
uploadRvtoolsFile(requestParameters, initOverrides) {
|
|
279
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
-
const response = yield this.uploadRvtoolsFileRaw(requestParameters, initOverrides);
|
|
281
|
-
return yield response.value();
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
231
|
}
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { type HeadImageRequest, type ImageApiInterface, ImageApi, } from "./ImageApi";
|
|
2
|
-
export { type CreateSourceRequest, type DeleteSourceRequest, type GetSourceRequest, type
|
|
2
|
+
export { type CreateSourceRequest, type DeleteSourceRequest, type GetSourceRequest, type SourceApiInterface, SourceApi, type UpdateSourceRequest, type UpdateInventoryRequest } from "./SourceApi";
|
|
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";
|
|
@@ -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 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(value?: DiskSizeTierSummary | 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 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(value) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'totalSizeTB': value['totalSizeTB'],
|
|
42
|
+
'vmCount': value['vmCount'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -21,6 +21,12 @@ export interface ModelError {
|
|
|
21
21
|
* @memberof ModelError
|
|
22
22
|
*/
|
|
23
23
|
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* Id of the request generating the error
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelError
|
|
28
|
+
*/
|
|
29
|
+
requestId?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the ModelError interface.
|
|
@@ -28,6 +28,7 @@ export function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
'message': json['message'],
|
|
31
|
+
'requestId': json['requestId'] == null ? undefined : json['requestId'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function ModelErrorToJSON(value) {
|
|
@@ -36,5 +37,6 @@ export function ModelErrorToJSON(value) {
|
|
|
36
37
|
}
|
|
37
38
|
return {
|
|
38
39
|
'message': value['message'],
|
|
40
|
+
'requestId': value['requestId'],
|
|
39
41
|
};
|
|
40
42
|
}
|
package/dist/models/Network.d.ts
CHANGED
package/dist/models/Network.js
CHANGED
|
@@ -42,6 +42,7 @@ export function NetworkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'name': json['name'],
|
|
43
43
|
'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
|
|
44
44
|
'dvswitch': json['dvswitch'] == null ? undefined : json['dvswitch'],
|
|
45
|
+
'vmsCount': json['vmsCount'] == null ? undefined : json['vmsCount'],
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
export function NetworkToJSON(value) {
|
|
@@ -53,5 +54,6 @@ export function NetworkToJSON(value) {
|
|
|
53
54
|
'name': value['name'],
|
|
54
55
|
'vlanId': value['vlanId'],
|
|
55
56
|
'dvswitch': value['dvswitch'],
|
|
57
|
+
'vmsCount': value['vmsCount'],
|
|
56
58
|
};
|
|
57
59
|
}
|
package/dist/models/Source.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SourceInfra } from './SourceInfra';
|
|
12
13
|
import type { Agent } from './Agent';
|
|
13
14
|
import type { Label } from './Label';
|
|
14
15
|
import type { Inventory } from './Inventory';
|
|
@@ -66,6 +67,12 @@ export interface Source {
|
|
|
66
67
|
* @memberof Source
|
|
67
68
|
*/
|
|
68
69
|
labels?: Array<Label>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {SourceInfra}
|
|
73
|
+
* @memberof Source
|
|
74
|
+
*/
|
|
75
|
+
infra?: SourceInfra;
|
|
69
76
|
}
|
|
70
77
|
/**
|
|
71
78
|
* Check if a given object implements the Source interface.
|
package/dist/models/Source.js
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SourceInfraFromJSON, SourceInfraToJSON, } from './SourceInfra';
|
|
14
15
|
import { AgentFromJSON, AgentToJSON, } from './Agent';
|
|
15
16
|
import { LabelFromJSON, LabelToJSON, } from './Label';
|
|
16
17
|
import { InventoryFromJSON, InventoryToJSON, } from './Inventory';
|
|
@@ -46,6 +47,7 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'onPremises': json['onPremises'],
|
|
47
48
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
48
49
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
50
|
+
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
export function SourceToJSON(value) {
|
|
@@ -61,5 +63,6 @@ export function SourceToJSON(value) {
|
|
|
61
63
|
'onPremises': value['onPremises'],
|
|
62
64
|
'agent': AgentToJSON(value['agent']),
|
|
63
65
|
'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
|
|
66
|
+
'infra': SourceInfraToJSON(value['infra']),
|
|
64
67
|
};
|
|
65
68
|
}
|
|
@@ -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 type { VmNetwork } from './VmNetwork';
|
|
13
|
+
import type { AgentProxy } from './AgentProxy';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SourceInfra
|
|
18
|
+
*/
|
|
19
|
+
export interface SourceInfra {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {AgentProxy}
|
|
23
|
+
* @memberof SourceInfra
|
|
24
|
+
*/
|
|
25
|
+
proxy?: AgentProxy;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SourceInfra
|
|
30
|
+
*/
|
|
31
|
+
sshPublicKey?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {VmNetwork}
|
|
35
|
+
* @memberof SourceInfra
|
|
36
|
+
*/
|
|
37
|
+
vmNetwork?: VmNetwork;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SourceInfra interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfSourceInfra(value: object): value is SourceInfra;
|
|
43
|
+
export declare function SourceInfraFromJSON(json: any): SourceInfra;
|
|
44
|
+
export declare function SourceInfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceInfra;
|
|
45
|
+
export declare function SourceInfraToJSON(value?: SourceInfra | 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
|
+
import { VmNetworkFromJSON, VmNetworkToJSON, } from './VmNetwork';
|
|
15
|
+
import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the SourceInfra interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfSourceInfra(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function SourceInfraFromJSON(json) {
|
|
23
|
+
return SourceInfraFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function SourceInfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
31
|
+
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
32
|
+
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function SourceInfraToJSON(value) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'proxy': AgentProxyToJSON(value['proxy']),
|
|
41
|
+
'sshPublicKey': value['sshPublicKey'],
|
|
42
|
+
'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
|
|
43
|
+
};
|
|
44
|
+
}
|
package/dist/models/VMs.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { MigrationIssue } from './MigrationIssue';
|
|
13
13
|
import type { OsInfo } from './OsInfo';
|
|
14
|
+
import type { DiskSizeTierSummary } from './DiskSizeTierSummary';
|
|
14
15
|
import type { VMResourceBreakdown } from './VMResourceBreakdown';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -42,6 +43,14 @@ export interface VMs {
|
|
|
42
43
|
* @memberof VMs
|
|
43
44
|
*/
|
|
44
45
|
cpuCores: VMResourceBreakdown;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
49
|
+
* @memberof VMs
|
|
50
|
+
*/
|
|
51
|
+
diskSizeTier?: {
|
|
52
|
+
[key: string]: DiskSizeTierSummary;
|
|
53
|
+
};
|
|
45
54
|
/**
|
|
46
55
|
*
|
|
47
56
|
* @type {VMResourceBreakdown}
|
package/dist/models/VMs.js
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { mapValues } from '../runtime';
|
|
15
15
|
import { MigrationIssueFromJSON, MigrationIssueToJSON, } from './MigrationIssue';
|
|
16
16
|
import { OsInfoFromJSON, OsInfoToJSON, } from './OsInfo';
|
|
17
|
+
import { DiskSizeTierSummaryFromJSON, DiskSizeTierSummaryToJSON, } from './DiskSizeTierSummary';
|
|
17
18
|
import { VMResourceBreakdownFromJSON, VMResourceBreakdownToJSON, } from './VMResourceBreakdown';
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the VMs interface.
|
|
@@ -53,6 +54,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
54
|
'totalMigratable': json['totalMigratable'],
|
|
54
55
|
'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
|
|
55
56
|
'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
|
|
57
|
+
'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
|
|
56
58
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
57
59
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
58
60
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
@@ -73,6 +75,7 @@ export function VMsToJSON(value) {
|
|
|
73
75
|
'totalMigratable': value['totalMigratable'],
|
|
74
76
|
'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
|
|
75
77
|
'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
|
|
78
|
+
'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
|
|
76
79
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
77
80
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
78
81
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './Assessment';
|
|
|
4
4
|
export * from './AssessmentForm';
|
|
5
5
|
export * from './AssessmentUpdate';
|
|
6
6
|
export * from './Datastore';
|
|
7
|
+
export * from './DiskSizeTierSummary';
|
|
7
8
|
export * from './Histogram';
|
|
8
9
|
export * from './Host';
|
|
9
10
|
export * from './Info';
|
|
@@ -19,10 +20,10 @@ export * from './PresignedUrl';
|
|
|
19
20
|
export * from './Snapshot';
|
|
20
21
|
export * from './Source';
|
|
21
22
|
export * from './SourceCreate';
|
|
23
|
+
export * from './SourceInfra';
|
|
22
24
|
export * from './SourceUpdate';
|
|
23
25
|
export * from './Status';
|
|
24
26
|
export * from './UpdateInventory';
|
|
25
|
-
export * from './UploadRvtoolsFile200Response';
|
|
26
27
|
export * from './VCenter';
|
|
27
28
|
export * from './VMResourceBreakdown';
|
|
28
29
|
export * from './VMs';
|
package/dist/models/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from './Assessment';
|
|
|
6
6
|
export * from './AssessmentForm';
|
|
7
7
|
export * from './AssessmentUpdate';
|
|
8
8
|
export * from './Datastore';
|
|
9
|
+
export * from './DiskSizeTierSummary';
|
|
9
10
|
export * from './Histogram';
|
|
10
11
|
export * from './Host';
|
|
11
12
|
export * from './Info';
|
|
@@ -21,10 +22,10 @@ export * from './PresignedUrl';
|
|
|
21
22
|
export * from './Snapshot';
|
|
22
23
|
export * from './Source';
|
|
23
24
|
export * from './SourceCreate';
|
|
25
|
+
export * from './SourceInfra';
|
|
24
26
|
export * from './SourceUpdate';
|
|
25
27
|
export * from './Status';
|
|
26
28
|
export * from './UpdateInventory';
|
|
27
|
-
export * from './UploadRvtoolsFile200Response';
|
|
28
29
|
export * from './VCenter';
|
|
29
30
|
export * from './VMResourceBreakdown';
|
|
30
31
|
export * from './VMs';
|
package/package.json
CHANGED
package/src/apis/SourceApi.ts
CHANGED
|
@@ -20,7 +20,6 @@ import type {
|
|
|
20
20
|
SourceUpdate,
|
|
21
21
|
Status,
|
|
22
22
|
UpdateInventory,
|
|
23
|
-
UploadRvtoolsFile200Response,
|
|
24
23
|
} from '../models/index';
|
|
25
24
|
import {
|
|
26
25
|
SourceFromJSON,
|
|
@@ -33,8 +32,6 @@ import {
|
|
|
33
32
|
StatusToJSON,
|
|
34
33
|
UpdateInventoryFromJSON,
|
|
35
34
|
UpdateInventoryToJSON,
|
|
36
|
-
UploadRvtoolsFile200ResponseFromJSON,
|
|
37
|
-
UploadRvtoolsFile200ResponseToJSON,
|
|
38
35
|
} from '../models/index';
|
|
39
36
|
|
|
40
37
|
export interface CreateSourceRequest {
|
|
@@ -49,10 +46,6 @@ export interface GetSourceRequest {
|
|
|
49
46
|
id: string;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
|
-
export interface ListSourcesRequest {
|
|
53
|
-
includeDefault?: boolean;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
49
|
export interface UpdateInventoryRequest {
|
|
57
50
|
id: string;
|
|
58
51
|
updateInventory: UpdateInventory;
|
|
@@ -63,11 +56,6 @@ export interface UpdateSourceRequest {
|
|
|
63
56
|
sourceUpdate: SourceUpdate;
|
|
64
57
|
}
|
|
65
58
|
|
|
66
|
-
export interface UploadRvtoolsFileRequest {
|
|
67
|
-
id: string;
|
|
68
|
-
file: Blob;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
59
|
/**
|
|
72
60
|
* SourceApi - interface
|
|
73
61
|
*
|
|
@@ -132,17 +120,16 @@ export interface SourceApiInterface {
|
|
|
132
120
|
|
|
133
121
|
/**
|
|
134
122
|
* List sources
|
|
135
|
-
* @param {boolean} [includeDefault] control whatever the default report should be added to the result
|
|
136
123
|
* @param {*} [options] Override http request option.
|
|
137
124
|
* @throws {RequiredError}
|
|
138
125
|
* @memberof SourceApiInterface
|
|
139
126
|
*/
|
|
140
|
-
listSourcesRaw(
|
|
127
|
+
listSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Source>>>;
|
|
141
128
|
|
|
142
129
|
/**
|
|
143
130
|
* List sources
|
|
144
131
|
*/
|
|
145
|
-
listSources(
|
|
132
|
+
listSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
|
|
146
133
|
|
|
147
134
|
/**
|
|
148
135
|
* Update inventory
|
|
@@ -174,21 +161,6 @@ export interface SourceApiInterface {
|
|
|
174
161
|
*/
|
|
175
162
|
updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
176
163
|
|
|
177
|
-
/**
|
|
178
|
-
* Update a source by uploading an RVTools file directly
|
|
179
|
-
* @param {string} id ID of the source
|
|
180
|
-
* @param {Blob} file The RVTools file (Excel)
|
|
181
|
-
* @param {*} [options] Override http request option.
|
|
182
|
-
* @throws {RequiredError}
|
|
183
|
-
* @memberof SourceApiInterface
|
|
184
|
-
*/
|
|
185
|
-
uploadRvtoolsFileRaw(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadRvtoolsFile200Response>>;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Update a source by uploading an RVTools file directly
|
|
189
|
-
*/
|
|
190
|
-
uploadRvtoolsFile(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadRvtoolsFile200Response>;
|
|
191
|
-
|
|
192
164
|
}
|
|
193
165
|
|
|
194
166
|
/**
|
|
@@ -327,13 +299,9 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
327
299
|
/**
|
|
328
300
|
* List sources
|
|
329
301
|
*/
|
|
330
|
-
async listSourcesRaw(
|
|
302
|
+
async listSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Source>>> {
|
|
331
303
|
const queryParameters: any = {};
|
|
332
304
|
|
|
333
|
-
if (requestParameters['includeDefault'] != null) {
|
|
334
|
-
queryParameters['include_default'] = requestParameters['includeDefault'];
|
|
335
|
-
}
|
|
336
|
-
|
|
337
305
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
338
306
|
|
|
339
307
|
const response = await this.request({
|
|
@@ -349,8 +317,8 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
349
317
|
/**
|
|
350
318
|
* List sources
|
|
351
319
|
*/
|
|
352
|
-
async listSources(
|
|
353
|
-
const response = await this.listSourcesRaw(
|
|
320
|
+
async listSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>> {
|
|
321
|
+
const response = await this.listSourcesRaw(initOverrides);
|
|
354
322
|
return await response.value();
|
|
355
323
|
}
|
|
356
324
|
|
|
@@ -440,65 +408,4 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
440
408
|
return await response.value();
|
|
441
409
|
}
|
|
442
410
|
|
|
443
|
-
/**
|
|
444
|
-
* Update a source by uploading an RVTools file directly
|
|
445
|
-
*/
|
|
446
|
-
async uploadRvtoolsFileRaw(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadRvtoolsFile200Response>> {
|
|
447
|
-
if (requestParameters['id'] == null) {
|
|
448
|
-
throw new runtime.RequiredError(
|
|
449
|
-
'id',
|
|
450
|
-
'Required parameter "id" was null or undefined when calling uploadRvtoolsFile().'
|
|
451
|
-
);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
if (requestParameters['file'] == null) {
|
|
455
|
-
throw new runtime.RequiredError(
|
|
456
|
-
'file',
|
|
457
|
-
'Required parameter "file" was null or undefined when calling uploadRvtoolsFile().'
|
|
458
|
-
);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
const queryParameters: any = {};
|
|
462
|
-
|
|
463
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
464
|
-
|
|
465
|
-
const consumes: runtime.Consume[] = [
|
|
466
|
-
{ contentType: 'multipart/form-data' },
|
|
467
|
-
];
|
|
468
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
469
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
470
|
-
|
|
471
|
-
let formParams: { append(param: string, value: any): any };
|
|
472
|
-
let useForm = false;
|
|
473
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
474
|
-
useForm = canConsumeForm;
|
|
475
|
-
if (useForm) {
|
|
476
|
-
formParams = new FormData();
|
|
477
|
-
} else {
|
|
478
|
-
formParams = new URLSearchParams();
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
if (requestParameters['file'] != null) {
|
|
482
|
-
formParams.append('file', requestParameters['file'] as any);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
const response = await this.request({
|
|
486
|
-
path: `/api/v1/sources/{id}/rvtools`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
487
|
-
method: 'PUT',
|
|
488
|
-
headers: headerParameters,
|
|
489
|
-
query: queryParameters,
|
|
490
|
-
body: formParams,
|
|
491
|
-
}, initOverrides);
|
|
492
|
-
|
|
493
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => UploadRvtoolsFile200ResponseFromJSON(jsonValue));
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Update a source by uploading an RVTools file directly
|
|
498
|
-
*/
|
|
499
|
-
async uploadRvtoolsFile(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadRvtoolsFile200Response> {
|
|
500
|
-
const response = await this.uploadRvtoolsFileRaw(requestParameters, initOverrides);
|
|
501
|
-
return await response.value();
|
|
502
|
-
}
|
|
503
|
-
|
|
504
411
|
}
|
package/src/apis/index.ts
CHANGED
|
@@ -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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DiskSizeTierSummary
|
|
20
|
+
*/
|
|
21
|
+
export interface DiskSizeTierSummary {
|
|
22
|
+
/**
|
|
23
|
+
* Total disk size in TB for this tier
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DiskSizeTierSummary
|
|
26
|
+
*/
|
|
27
|
+
totalSizeTB: number;
|
|
28
|
+
/**
|
|
29
|
+
* Number of VMs in this tier
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof DiskSizeTierSummary
|
|
32
|
+
*/
|
|
33
|
+
vmCount: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DiskSizeTierSummary interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDiskSizeTierSummary(value: object): value is DiskSizeTierSummary {
|
|
40
|
+
if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined) return false;
|
|
41
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DiskSizeTierSummaryFromJSON(json: any): DiskSizeTierSummary {
|
|
46
|
+
return DiskSizeTierSummaryFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DiskSizeTierSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskSizeTierSummary {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'totalSizeTB': json['totalSizeTB'],
|
|
56
|
+
'vmCount': json['vmCount'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DiskSizeTierSummaryToJSON(value?: DiskSizeTierSummary | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'totalSizeTB': value['totalSizeTB'],
|
|
67
|
+
'vmCount': value['vmCount'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/src/models/ModelError.ts
CHANGED
|
@@ -25,6 +25,12 @@ export interface ModelError {
|
|
|
25
25
|
* @memberof ModelError
|
|
26
26
|
*/
|
|
27
27
|
message: string;
|
|
28
|
+
/**
|
|
29
|
+
* Id of the request generating the error
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ModelError
|
|
32
|
+
*/
|
|
33
|
+
requestId?: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -46,6 +52,7 @@ export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
46
52
|
return {
|
|
47
53
|
|
|
48
54
|
'message': json['message'],
|
|
55
|
+
'requestId': json['requestId'] == null ? undefined : json['requestId'],
|
|
49
56
|
};
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -56,6 +63,7 @@ export function ModelErrorToJSON(value?: ModelError | null): any {
|
|
|
56
63
|
return {
|
|
57
64
|
|
|
58
65
|
'message': value['message'],
|
|
66
|
+
'requestId': value['requestId'],
|
|
59
67
|
};
|
|
60
68
|
}
|
|
61
69
|
|
package/src/models/Network.ts
CHANGED
|
@@ -43,6 +43,12 @@ export interface Network {
|
|
|
43
43
|
* @memberof Network
|
|
44
44
|
*/
|
|
45
45
|
dvswitch?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof Network
|
|
50
|
+
*/
|
|
51
|
+
vmsCount?: number;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
|
|
@@ -81,6 +87,7 @@ export function NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): N
|
|
|
81
87
|
'name': json['name'],
|
|
82
88
|
'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
|
|
83
89
|
'dvswitch': json['dvswitch'] == null ? undefined : json['dvswitch'],
|
|
90
|
+
'vmsCount': json['vmsCount'] == null ? undefined : json['vmsCount'],
|
|
84
91
|
};
|
|
85
92
|
}
|
|
86
93
|
|
|
@@ -94,6 +101,7 @@ export function NetworkToJSON(value?: Network | null): any {
|
|
|
94
101
|
'name': value['name'],
|
|
95
102
|
'vlanId': value['vlanId'],
|
|
96
103
|
'dvswitch': value['dvswitch'],
|
|
104
|
+
'vmsCount': value['vmsCount'],
|
|
97
105
|
};
|
|
98
106
|
}
|
|
99
107
|
|
package/src/models/Source.ts
CHANGED
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SourceInfra } from './SourceInfra';
|
|
17
|
+
import {
|
|
18
|
+
SourceInfraFromJSON,
|
|
19
|
+
SourceInfraFromJSONTyped,
|
|
20
|
+
SourceInfraToJSON,
|
|
21
|
+
} from './SourceInfra';
|
|
16
22
|
import type { Agent } from './Agent';
|
|
17
23
|
import {
|
|
18
24
|
AgentFromJSON,
|
|
@@ -86,6 +92,12 @@ export interface Source {
|
|
|
86
92
|
* @memberof Source
|
|
87
93
|
*/
|
|
88
94
|
labels?: Array<Label>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {SourceInfra}
|
|
98
|
+
* @memberof Source
|
|
99
|
+
*/
|
|
100
|
+
infra?: SourceInfra;
|
|
89
101
|
}
|
|
90
102
|
|
|
91
103
|
/**
|
|
@@ -118,6 +130,7 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
|
|
|
118
130
|
'onPremises': json['onPremises'],
|
|
119
131
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
120
132
|
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
|
|
133
|
+
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
121
134
|
};
|
|
122
135
|
}
|
|
123
136
|
|
|
@@ -135,6 +148,7 @@ export function SourceToJSON(value?: Source | null): any {
|
|
|
135
148
|
'onPremises': value['onPremises'],
|
|
136
149
|
'agent': AgentToJSON(value['agent']),
|
|
137
150
|
'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
|
|
151
|
+
'infra': SourceInfraToJSON(value['infra']),
|
|
138
152
|
};
|
|
139
153
|
}
|
|
140
154
|
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
import type { VmNetwork } from './VmNetwork';
|
|
17
|
+
import {
|
|
18
|
+
VmNetworkFromJSON,
|
|
19
|
+
VmNetworkFromJSONTyped,
|
|
20
|
+
VmNetworkToJSON,
|
|
21
|
+
} from './VmNetwork';
|
|
22
|
+
import type { AgentProxy } from './AgentProxy';
|
|
23
|
+
import {
|
|
24
|
+
AgentProxyFromJSON,
|
|
25
|
+
AgentProxyFromJSONTyped,
|
|
26
|
+
AgentProxyToJSON,
|
|
27
|
+
} from './AgentProxy';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface SourceInfra
|
|
33
|
+
*/
|
|
34
|
+
export interface SourceInfra {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {AgentProxy}
|
|
38
|
+
* @memberof SourceInfra
|
|
39
|
+
*/
|
|
40
|
+
proxy?: AgentProxy;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof SourceInfra
|
|
45
|
+
*/
|
|
46
|
+
sshPublicKey?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {VmNetwork}
|
|
50
|
+
* @memberof SourceInfra
|
|
51
|
+
*/
|
|
52
|
+
vmNetwork?: VmNetwork;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the SourceInfra interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfSourceInfra(value: object): value is SourceInfra {
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function SourceInfraFromJSON(json: any): SourceInfra {
|
|
63
|
+
return SourceInfraFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SourceInfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceInfra {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
73
|
+
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
74
|
+
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function SourceInfraToJSON(value?: SourceInfra | null): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'proxy': AgentProxyToJSON(value['proxy']),
|
|
85
|
+
'sshPublicKey': value['sshPublicKey'],
|
|
86
|
+
'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
package/src/models/VMs.ts
CHANGED
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
OsInfoFromJSONTyped,
|
|
26
26
|
OsInfoToJSON,
|
|
27
27
|
} from './OsInfo';
|
|
28
|
+
import type { DiskSizeTierSummary } from './DiskSizeTierSummary';
|
|
29
|
+
import {
|
|
30
|
+
DiskSizeTierSummaryFromJSON,
|
|
31
|
+
DiskSizeTierSummaryFromJSONTyped,
|
|
32
|
+
DiskSizeTierSummaryToJSON,
|
|
33
|
+
} from './DiskSizeTierSummary';
|
|
28
34
|
import type { VMResourceBreakdown } from './VMResourceBreakdown';
|
|
29
35
|
import {
|
|
30
36
|
VMResourceBreakdownFromJSON,
|
|
@@ -62,6 +68,12 @@ export interface VMs {
|
|
|
62
68
|
* @memberof VMs
|
|
63
69
|
*/
|
|
64
70
|
cpuCores: VMResourceBreakdown;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
74
|
+
* @memberof VMs
|
|
75
|
+
*/
|
|
76
|
+
diskSizeTier?: { [key: string]: DiskSizeTierSummary; };
|
|
65
77
|
/**
|
|
66
78
|
*
|
|
67
79
|
* @type {VMResourceBreakdown}
|
|
@@ -150,6 +162,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
|
|
|
150
162
|
'totalMigratable': json['totalMigratable'],
|
|
151
163
|
'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
|
|
152
164
|
'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
|
|
165
|
+
'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
|
|
153
166
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
154
167
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
155
168
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
@@ -172,6 +185,7 @@ export function VMsToJSON(value?: VMs | null): any {
|
|
|
172
185
|
'totalMigratable': value['totalMigratable'],
|
|
173
186
|
'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
|
|
174
187
|
'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
|
|
188
|
+
'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
|
|
175
189
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
176
190
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
177
191
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|
package/src/models/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './Assessment';
|
|
|
6
6
|
export * from './AssessmentForm';
|
|
7
7
|
export * from './AssessmentUpdate';
|
|
8
8
|
export * from './Datastore';
|
|
9
|
+
export * from './DiskSizeTierSummary';
|
|
9
10
|
export * from './Histogram';
|
|
10
11
|
export * from './Host';
|
|
11
12
|
export * from './Info';
|
|
@@ -21,11 +22,11 @@ export * from './PresignedUrl';
|
|
|
21
22
|
export * from './Snapshot';
|
|
22
23
|
export * from './Source';
|
|
23
24
|
export * from './SourceCreate';
|
|
25
|
+
export * from './SourceInfra';
|
|
24
26
|
export * from './SourceUpdate';
|
|
25
27
|
export * from './Status';
|
|
26
28
|
export * from './UpdateInventory';
|
|
27
|
-
export * from './UploadRvtoolsFile200Response';
|
|
28
29
|
export * from './VCenter';
|
|
29
30
|
export * from './VMResourceBreakdown';
|
|
30
31
|
export * from './VMs';
|
|
31
|
-
export * from './VmNetwork';
|
|
32
|
+
export * from './VmNetwork';
|