@migration-planner-ui/api-client 0.0.20 → 0.0.22
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/AssessmentApi.d.ts +23 -0
- package/dist/apis/AssessmentApi.js +27 -0
- 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/Snapshot.d.ts +27 -4
- package/dist/models/Snapshot.js +18 -4
- 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 +53 -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/Snapshot.ts +37 -7
- 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/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
|
@@ -21,10 +21,17 @@ import type {
|
|
|
21
21
|
} from '../models/index';
|
|
22
22
|
import {
|
|
23
23
|
AssessmentFromJSON,
|
|
24
|
+
AssessmentToJSON,
|
|
25
|
+
AssessmentFormFromJSON,
|
|
24
26
|
AssessmentFormToJSON,
|
|
27
|
+
AssessmentUpdateFromJSON,
|
|
25
28
|
AssessmentUpdateToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
31
|
+
export interface CancelAssessmentJobRequest {
|
|
32
|
+
id: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
export interface CreateAssessmentRequest {
|
|
29
36
|
assessmentForm: AssessmentForm;
|
|
30
37
|
}
|
|
@@ -49,6 +56,20 @@ export interface UpdateAssessmentRequest {
|
|
|
49
56
|
* @interface AssessmentApiInterface
|
|
50
57
|
*/
|
|
51
58
|
export interface AssessmentApiInterface {
|
|
59
|
+
/**
|
|
60
|
+
* Cancel the processing job for an assessment
|
|
61
|
+
* @param {string} id ID of the assessment
|
|
62
|
+
* @param {*} [options] Override http request option.
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
* @memberof AssessmentApiInterface
|
|
65
|
+
*/
|
|
66
|
+
cancelAssessmentJobRaw(requestParameters: CancelAssessmentJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Cancel the processing job for an assessment
|
|
70
|
+
*/
|
|
71
|
+
cancelAssessmentJob(requestParameters: CancelAssessmentJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
72
|
+
|
|
52
73
|
/**
|
|
53
74
|
* Create an assessment
|
|
54
75
|
* @param {AssessmentForm} assessmentForm
|
|
@@ -126,6 +147,38 @@ export interface AssessmentApiInterface {
|
|
|
126
147
|
*/
|
|
127
148
|
export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInterface {
|
|
128
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Cancel the processing job for an assessment
|
|
152
|
+
*/
|
|
153
|
+
async cancelAssessmentJobRaw(requestParameters: CancelAssessmentJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
154
|
+
if (requestParameters['id'] == null) {
|
|
155
|
+
throw new runtime.RequiredError(
|
|
156
|
+
'id',
|
|
157
|
+
'Required parameter "id" was null or undefined when calling cancelAssessmentJob().'
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const queryParameters: any = {};
|
|
162
|
+
|
|
163
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
164
|
+
|
|
165
|
+
const response = await this.request({
|
|
166
|
+
path: `/api/v1/assessments/{id}/job`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
167
|
+
method: 'DELETE',
|
|
168
|
+
headers: headerParameters,
|
|
169
|
+
query: queryParameters,
|
|
170
|
+
}, initOverrides);
|
|
171
|
+
|
|
172
|
+
return new runtime.VoidApiResponse(response);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Cancel the processing job for an assessment
|
|
177
|
+
*/
|
|
178
|
+
async cancelAssessmentJob(requestParameters: CancelAssessmentJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
179
|
+
await this.cancelAssessmentJobRaw(requestParameters, initOverrides);
|
|
180
|
+
}
|
|
181
|
+
|
|
129
182
|
/**
|
|
130
183
|
* Create an assessment
|
|
131
184
|
*/
|
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/Snapshot.ts
CHANGED
|
@@ -28,24 +28,50 @@ import {
|
|
|
28
28
|
export interface Snapshot {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {
|
|
31
|
+
* @type {Date}
|
|
32
|
+
* @memberof Snapshot
|
|
33
|
+
*/
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Status of the snapshot processing
|
|
37
|
+
* @type {string}
|
|
32
38
|
* @memberof Snapshot
|
|
33
39
|
*/
|
|
34
|
-
|
|
40
|
+
status: SnapshotStatusEnum;
|
|
41
|
+
/**
|
|
42
|
+
* Error message if snapshot processing failed
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Snapshot
|
|
45
|
+
*/
|
|
46
|
+
error?: string;
|
|
35
47
|
/**
|
|
36
48
|
*
|
|
37
|
-
* @type {
|
|
49
|
+
* @type {Inventory}
|
|
38
50
|
* @memberof Snapshot
|
|
39
51
|
*/
|
|
40
|
-
|
|
52
|
+
inventory?: Inventory;
|
|
41
53
|
}
|
|
42
54
|
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export const SnapshotStatusEnum = {
|
|
60
|
+
Pending: 'pending',
|
|
61
|
+
Parsing: 'parsing',
|
|
62
|
+
Validating: 'validating',
|
|
63
|
+
Ready: 'ready',
|
|
64
|
+
Failed: 'failed'
|
|
65
|
+
} as const;
|
|
66
|
+
export type SnapshotStatusEnum = typeof SnapshotStatusEnum[keyof typeof SnapshotStatusEnum];
|
|
67
|
+
|
|
68
|
+
|
|
43
69
|
/**
|
|
44
70
|
* Check if a given object implements the Snapshot interface.
|
|
45
71
|
*/
|
|
46
72
|
export function instanceOfSnapshot(value: object): value is Snapshot {
|
|
47
|
-
if (!('inventory' in value) || value['inventory'] === undefined) return false;
|
|
48
73
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
74
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
49
75
|
return true;
|
|
50
76
|
}
|
|
51
77
|
|
|
@@ -59,8 +85,10 @@ export function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
59
85
|
}
|
|
60
86
|
return {
|
|
61
87
|
|
|
62
|
-
'inventory': InventoryFromJSON(json['inventory']),
|
|
63
88
|
'createdAt': (new Date(json['createdAt'])),
|
|
89
|
+
'status': json['status'],
|
|
90
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
91
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
64
92
|
};
|
|
65
93
|
}
|
|
66
94
|
|
|
@@ -70,8 +98,10 @@ export function SnapshotToJSON(value?: Snapshot | null): any {
|
|
|
70
98
|
}
|
|
71
99
|
return {
|
|
72
100
|
|
|
73
|
-
'inventory': InventoryToJSON(value['inventory']),
|
|
74
101
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
102
|
+
'status': value['status'],
|
|
103
|
+
'error': value['error'],
|
|
104
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
75
105
|
};
|
|
76
106
|
}
|
|
77
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
|
|