@migration-planner-ui/api-client 0.0.19 → 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 +4 -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/Ipv4Config.d.ts +49 -0
- package/dist/models/Ipv4Config.js +52 -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/SourceCreate.d.ts +7 -0
- package/dist/models/SourceCreate.js +3 -0
- package/dist/models/SourceInfra.d.ts +45 -0
- package/dist/models/SourceInfra.js +44 -0
- package/dist/models/SourceUpdate.d.ts +7 -0
- package/dist/models/SourceUpdate.js +3 -0
- package/dist/models/VMs.d.ts +9 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/VmNetwork.d.ts +32 -0
- package/dist/models/VmNetwork.js +39 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +1 -1
- package/src/apis/SourceApi.ts +5 -98
- package/src/apis/index.ts +0 -1
- package/src/models/DiskSizeTierSummary.ts +70 -0
- package/src/models/Ipv4Config.ts +88 -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/SourceCreate.ts +14 -0
- package/src/models/SourceInfra.ts +89 -0
- package/src/models/SourceUpdate.ts +14 -0
- package/src/models/VMs.ts +14 -0
- package/src/models/VmNetwork.ts +67 -0
- package/src/models/index.ts +4 -1
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { VmNetworkFromJSON, VmNetworkToJSON, } from './VmNetwork';
|
|
14
15
|
import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy';
|
|
15
16
|
import { LabelFromJSON, LabelToJSON, } from './Label';
|
|
16
17
|
/**
|
|
@@ -32,6 +33,7 @@ export function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
33
34
|
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
34
35
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
36
|
+
'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
export function SourceUpdateToJSON(value) {
|
|
@@ -44,5 +46,6 @@ export function SourceUpdateToJSON(value) {
|
|
|
44
46
|
'sshPublicKey': value['sshPublicKey'],
|
|
45
47
|
'certificateChain': value['certificateChain'],
|
|
46
48
|
'proxy': AgentProxyToJSON(value['proxy']),
|
|
49
|
+
'network': VmNetworkToJSON(value['network']),
|
|
47
50
|
};
|
|
48
51
|
}
|
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']),
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { Ipv4Config } from './Ipv4Config';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VmNetwork
|
|
17
|
+
*/
|
|
18
|
+
export interface VmNetwork {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Ipv4Config}
|
|
22
|
+
* @memberof VmNetwork
|
|
23
|
+
*/
|
|
24
|
+
ipv4?: Ipv4Config;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the VmNetwork interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfVmNetwork(value: object): value is VmNetwork;
|
|
30
|
+
export declare function VmNetworkFromJSON(json: any): VmNetwork;
|
|
31
|
+
export declare function VmNetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmNetwork;
|
|
32
|
+
export declare function VmNetworkToJSON(value?: VmNetwork | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { Ipv4ConfigFromJSON, Ipv4ConfigToJSON, } from './Ipv4Config';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the VmNetwork interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfVmNetwork(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function VmNetworkFromJSON(json) {
|
|
22
|
+
return VmNetworkFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function VmNetworkFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'ipv4': json['ipv4'] == null ? undefined : Ipv4ConfigFromJSON(json['ipv4']),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function VmNetworkToJSON(value) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'ipv4': Ipv4ConfigToJSON(value['ipv4']),
|
|
38
|
+
};
|
|
39
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,11 +4,13 @@ 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';
|
|
10
11
|
export * from './Infra';
|
|
11
12
|
export * from './Inventory';
|
|
13
|
+
export * from './Ipv4Config';
|
|
12
14
|
export * from './Label';
|
|
13
15
|
export * from './MigrationIssue';
|
|
14
16
|
export * from './ModelError';
|
|
@@ -18,10 +20,11 @@ export * from './PresignedUrl';
|
|
|
18
20
|
export * from './Snapshot';
|
|
19
21
|
export * from './Source';
|
|
20
22
|
export * from './SourceCreate';
|
|
23
|
+
export * from './SourceInfra';
|
|
21
24
|
export * from './SourceUpdate';
|
|
22
25
|
export * from './Status';
|
|
23
26
|
export * from './UpdateInventory';
|
|
24
|
-
export * from './UploadRvtoolsFile200Response';
|
|
25
27
|
export * from './VCenter';
|
|
26
28
|
export * from './VMResourceBreakdown';
|
|
27
29
|
export * from './VMs';
|
|
30
|
+
export * from './VmNetwork';
|
package/dist/models/index.js
CHANGED
|
@@ -6,11 +6,13 @@ 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';
|
|
12
13
|
export * from './Infra';
|
|
13
14
|
export * from './Inventory';
|
|
15
|
+
export * from './Ipv4Config';
|
|
14
16
|
export * from './Label';
|
|
15
17
|
export * from './MigrationIssue';
|
|
16
18
|
export * from './ModelError';
|
|
@@ -20,10 +22,11 @@ export * from './PresignedUrl';
|
|
|
20
22
|
export * from './Snapshot';
|
|
21
23
|
export * from './Source';
|
|
22
24
|
export * from './SourceCreate';
|
|
25
|
+
export * from './SourceInfra';
|
|
23
26
|
export * from './SourceUpdate';
|
|
24
27
|
export * from './Status';
|
|
25
28
|
export * from './UpdateInventory';
|
|
26
|
-
export * from './UploadRvtoolsFile200Response';
|
|
27
29
|
export * from './VCenter';
|
|
28
30
|
export * from './VMResourceBreakdown';
|
|
29
31
|
export * from './VMs';
|
|
32
|
+
export * from './VmNetwork';
|
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
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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 Ipv4Config
|
|
20
|
+
*/
|
|
21
|
+
export interface Ipv4Config {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Ipv4Config
|
|
26
|
+
*/
|
|
27
|
+
ipAddress: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Ipv4Config
|
|
32
|
+
*/
|
|
33
|
+
subnetMask: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Ipv4Config
|
|
38
|
+
*/
|
|
39
|
+
defaultGateway: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Ipv4Config
|
|
44
|
+
*/
|
|
45
|
+
dns: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the Ipv4Config interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfIpv4Config(value: object): value is Ipv4Config {
|
|
52
|
+
if (!('ipAddress' in value) || value['ipAddress'] === undefined) return false;
|
|
53
|
+
if (!('subnetMask' in value) || value['subnetMask'] === undefined) return false;
|
|
54
|
+
if (!('defaultGateway' in value) || value['defaultGateway'] === undefined) return false;
|
|
55
|
+
if (!('dns' in value) || value['dns'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function Ipv4ConfigFromJSON(json: any): Ipv4Config {
|
|
60
|
+
return Ipv4ConfigFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function Ipv4ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ipv4Config {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'ipAddress': json['ipAddress'],
|
|
70
|
+
'subnetMask': json['subnetMask'],
|
|
71
|
+
'defaultGateway': json['defaultGateway'],
|
|
72
|
+
'dns': json['dns'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function Ipv4ConfigToJSON(value?: Ipv4Config | null): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'ipAddress': value['ipAddress'],
|
|
83
|
+
'subnetMask': value['subnetMask'],
|
|
84
|
+
'defaultGateway': value['defaultGateway'],
|
|
85
|
+
'dns': value['dns'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
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
|
|