@migration-planner-ui/api-client 0.0.15 → 0.0.18
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 -0
- package/dist/apis/AssessmentApi.d.ts +26 -1
- package/dist/apis/AssessmentApi.js +34 -1
- package/dist/apis/InfoApi.d.ts +45 -0
- package/dist/apis/InfoApi.js +54 -0
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +1 -0
- package/dist/models/Assessment.d.ts +22 -7
- package/dist/models/Assessment.js +18 -8
- package/dist/models/AssessmentForm.d.ts +17 -1
- package/dist/models/AssessmentForm.js +8 -3
- package/dist/models/AssessmentUpdate.d.ts +31 -0
- package/dist/models/AssessmentUpdate.js +38 -0
- package/dist/models/Datastore.d.ts +6 -0
- package/dist/models/Datastore.js +2 -0
- package/dist/models/Host.d.ts +24 -0
- package/dist/models/Host.js +8 -0
- package/dist/models/Info.d.ts +37 -0
- package/dist/models/Info.js +44 -0
- package/dist/models/Infra.d.ts +6 -0
- package/dist/models/Infra.js +2 -0
- package/dist/models/Snapshot.d.ts +38 -0
- package/dist/models/Snapshot.js +45 -0
- package/dist/models/index.d.ts +3 -4
- package/dist/models/index.js +3 -4
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +66 -0
- package/src/apis/InfoApi.ts +78 -0
- package/src/apis/index.ts +5 -0
- package/src/models/Assessment.ts +37 -17
- package/src/models/AssessmentForm.ts +30 -4
- package/src/models/AssessmentUpdate.ts +60 -0
- package/src/models/Datastore.ts +8 -0
- package/src/models/Host.ts +32 -0
- package/src/models/Info.ts +70 -0
- package/src/models/Infra.ts +8 -0
- package/src/models/Snapshot.ts +77 -0
- package/src/models/SourceCreate.ts +2 -1
- package/src/models/index.ts +3 -4
package/dist/models/Infra.d.ts
CHANGED
package/dist/models/Infra.js
CHANGED
|
@@ -46,6 +46,7 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
47
47
|
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(HostFromJSON)),
|
|
48
48
|
'hostsPerCluster': json['hostsPerCluster'],
|
|
49
|
+
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
49
50
|
'hostPowerStates': json['hostPowerStates'],
|
|
50
51
|
'networks': (json['networks'].map(NetworkFromJSON)),
|
|
51
52
|
'datastores': (json['datastores'].map(DatastoreFromJSON)),
|
|
@@ -62,6 +63,7 @@ export function InfraToJSON(value) {
|
|
|
62
63
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
63
64
|
'hosts': value['hosts'] == null ? undefined : (value['hosts'].map(HostToJSON)),
|
|
64
65
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
66
|
+
'vmsPerCluster': value['vmsPerCluster'],
|
|
65
67
|
'hostPowerStates': value['hostPowerStates'],
|
|
66
68
|
'networks': (value['networks'].map(NetworkToJSON)),
|
|
67
69
|
'datastores': (value['datastores'].map(DatastoreToJSON)),
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { Inventory } from './Inventory';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Snapshot
|
|
17
|
+
*/
|
|
18
|
+
export interface Snapshot {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Inventory}
|
|
22
|
+
* @memberof Snapshot
|
|
23
|
+
*/
|
|
24
|
+
inventory: Inventory;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof Snapshot
|
|
29
|
+
*/
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the Snapshot interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSnapshot(value: object): value is Snapshot;
|
|
36
|
+
export declare function SnapshotFromJSON(json: any): Snapshot;
|
|
37
|
+
export declare function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Snapshot;
|
|
38
|
+
export declare function SnapshotToJSON(value?: Snapshot | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { InventoryFromJSON, InventoryToJSON, } from './Inventory';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the Snapshot interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSnapshot(value) {
|
|
19
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function SnapshotFromJSON(json) {
|
|
26
|
+
return SnapshotFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
34
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function SnapshotToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
43
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
44
|
+
};
|
|
45
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -2,24 +2,23 @@ export * from './Agent';
|
|
|
2
2
|
export * from './AgentProxy';
|
|
3
3
|
export * from './Assessment';
|
|
4
4
|
export * from './AssessmentForm';
|
|
5
|
+
export * from './AssessmentUpdate';
|
|
5
6
|
export * from './Datastore';
|
|
6
7
|
export * from './Histogram';
|
|
7
8
|
export * from './Host';
|
|
9
|
+
export * from './Info';
|
|
8
10
|
export * from './Infra';
|
|
9
|
-
export * from './InfraDatastoresInner';
|
|
10
|
-
export * from './InfraNetworksInner';
|
|
11
11
|
export * from './Inventory';
|
|
12
12
|
export * from './Label';
|
|
13
13
|
export * from './MigrationIssue';
|
|
14
|
-
export * from './MigrationIssuesInner';
|
|
15
14
|
export * from './ModelError';
|
|
16
15
|
export * from './Network';
|
|
17
16
|
export * from './OsInfo';
|
|
18
17
|
export * from './PresignedUrl';
|
|
18
|
+
export * from './Snapshot';
|
|
19
19
|
export * from './Source';
|
|
20
20
|
export * from './SourceCreate';
|
|
21
21
|
export * from './SourceUpdate';
|
|
22
|
-
export * from './SourceUpdateOnPrem';
|
|
23
22
|
export * from './Status';
|
|
24
23
|
export * from './UpdateInventory';
|
|
25
24
|
export * from './UploadRvtoolsFile200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -4,24 +4,23 @@ export * from './Agent';
|
|
|
4
4
|
export * from './AgentProxy';
|
|
5
5
|
export * from './Assessment';
|
|
6
6
|
export * from './AssessmentForm';
|
|
7
|
+
export * from './AssessmentUpdate';
|
|
7
8
|
export * from './Datastore';
|
|
8
9
|
export * from './Histogram';
|
|
9
10
|
export * from './Host';
|
|
11
|
+
export * from './Info';
|
|
10
12
|
export * from './Infra';
|
|
11
|
-
export * from './InfraDatastoresInner';
|
|
12
|
-
export * from './InfraNetworksInner';
|
|
13
13
|
export * from './Inventory';
|
|
14
14
|
export * from './Label';
|
|
15
15
|
export * from './MigrationIssue';
|
|
16
|
-
export * from './MigrationIssuesInner';
|
|
17
16
|
export * from './ModelError';
|
|
18
17
|
export * from './Network';
|
|
19
18
|
export * from './OsInfo';
|
|
20
19
|
export * from './PresignedUrl';
|
|
20
|
+
export * from './Snapshot';
|
|
21
21
|
export * from './Source';
|
|
22
22
|
export * from './SourceCreate';
|
|
23
23
|
export * from './SourceUpdate';
|
|
24
|
-
export * from './SourceUpdateOnPrem';
|
|
25
24
|
export * from './Status';
|
|
26
25
|
export * from './UpdateInventory';
|
|
27
26
|
export * from './UploadRvtoolsFile200Response';
|
package/package.json
CHANGED
|
@@ -17,12 +17,15 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
Assessment,
|
|
19
19
|
AssessmentForm,
|
|
20
|
+
AssessmentUpdate,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
23
|
AssessmentFromJSON,
|
|
23
24
|
AssessmentToJSON,
|
|
24
25
|
AssessmentFormFromJSON,
|
|
25
26
|
AssessmentFormToJSON,
|
|
27
|
+
AssessmentUpdateFromJSON,
|
|
28
|
+
AssessmentUpdateToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
28
31
|
export interface CreateAssessmentRequest {
|
|
@@ -37,6 +40,11 @@ export interface GetAssessmentRequest {
|
|
|
37
40
|
id: string;
|
|
38
41
|
}
|
|
39
42
|
|
|
43
|
+
export interface UpdateAssessmentRequest {
|
|
44
|
+
id: string;
|
|
45
|
+
assessmentUpdate: AssessmentUpdate;
|
|
46
|
+
}
|
|
47
|
+
|
|
40
48
|
/**
|
|
41
49
|
* AssessmentApi - interface
|
|
42
50
|
*
|
|
@@ -99,6 +107,21 @@ export interface AssessmentApiInterface {
|
|
|
99
107
|
*/
|
|
100
108
|
listAssessments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
|
|
101
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Update an assessment
|
|
112
|
+
* @param {string} id ID of the assessment
|
|
113
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
* @memberof AssessmentApiInterface
|
|
117
|
+
*/
|
|
118
|
+
updateAssessmentRaw(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Assessment>>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Update an assessment
|
|
122
|
+
*/
|
|
123
|
+
updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
124
|
+
|
|
102
125
|
}
|
|
103
126
|
|
|
104
127
|
/**
|
|
@@ -234,4 +257,47 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
234
257
|
return await response.value();
|
|
235
258
|
}
|
|
236
259
|
|
|
260
|
+
/**
|
|
261
|
+
* Update an assessment
|
|
262
|
+
*/
|
|
263
|
+
async updateAssessmentRaw(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Assessment>> {
|
|
264
|
+
if (requestParameters['id'] == null) {
|
|
265
|
+
throw new runtime.RequiredError(
|
|
266
|
+
'id',
|
|
267
|
+
'Required parameter "id" was null or undefined when calling updateAssessment().'
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (requestParameters['assessmentUpdate'] == null) {
|
|
272
|
+
throw new runtime.RequiredError(
|
|
273
|
+
'assessmentUpdate',
|
|
274
|
+
'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessment().'
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const queryParameters: any = {};
|
|
279
|
+
|
|
280
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
281
|
+
|
|
282
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
283
|
+
|
|
284
|
+
const response = await this.request({
|
|
285
|
+
path: `/api/v1/assessments/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
286
|
+
method: 'PUT',
|
|
287
|
+
headers: headerParameters,
|
|
288
|
+
query: queryParameters,
|
|
289
|
+
body: AssessmentUpdateToJSON(requestParameters['assessmentUpdate']),
|
|
290
|
+
}, initOverrides);
|
|
291
|
+
|
|
292
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AssessmentFromJSON(jsonValue));
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Update an assessment
|
|
297
|
+
*/
|
|
298
|
+
async updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment> {
|
|
299
|
+
const response = await this.updateAssessmentRaw(requestParameters, initOverrides);
|
|
300
|
+
return await response.value();
|
|
301
|
+
}
|
|
302
|
+
|
|
237
303
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
Info,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
InfoFromJSON,
|
|
22
|
+
InfoToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* InfoApi - interface
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface InfoApiInterface
|
|
30
|
+
*/
|
|
31
|
+
export interface InfoApiInterface {
|
|
32
|
+
/**
|
|
33
|
+
* Get migration planner information
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @memberof InfoApiInterface
|
|
37
|
+
*/
|
|
38
|
+
getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Info>>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Get migration planner information
|
|
42
|
+
*/
|
|
43
|
+
getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Info>;
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
export class InfoApi extends runtime.BaseAPI implements InfoApiInterface {
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Get migration planner information
|
|
54
|
+
*/
|
|
55
|
+
async getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Info>> {
|
|
56
|
+
const queryParameters: any = {};
|
|
57
|
+
|
|
58
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
59
|
+
|
|
60
|
+
const response = await this.request({
|
|
61
|
+
path: `/api/v1/info`,
|
|
62
|
+
method: 'GET',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
|
|
67
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InfoFromJSON(jsonValue));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Get migration planner information
|
|
72
|
+
*/
|
|
73
|
+
async getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Info> {
|
|
74
|
+
const response = await this.getInfoRaw(initOverrides);
|
|
75
|
+
return await response.value();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -33,6 +33,11 @@ export {
|
|
|
33
33
|
type CreateAssessmentRequest,
|
|
34
34
|
type DeleteAssessmentRequest,
|
|
35
35
|
type GetAssessmentRequest,
|
|
36
|
+
type UpdateAssessmentRequest,
|
|
36
37
|
AssessmentApi
|
|
37
38
|
} from "./AssessmentApi";
|
|
38
39
|
|
|
40
|
+
export {
|
|
41
|
+
type InfoApiInterface,
|
|
42
|
+
InfoApi
|
|
43
|
+
} from "./InfoApi";
|
package/src/models/Assessment.ts
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { Snapshot } from './Snapshot';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
SnapshotFromJSON,
|
|
19
|
+
SnapshotFromJSONTyped,
|
|
20
|
+
SnapshotToJSON,
|
|
21
|
+
} from './Snapshot';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
@@ -40,33 +40,51 @@ export interface Assessment {
|
|
|
40
40
|
name: string;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {
|
|
43
|
+
* @type {string}
|
|
44
44
|
* @memberof Assessment
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
sourceType: AssessmentSourceTypeEnum;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {string}
|
|
50
50
|
* @memberof Assessment
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
sourceId?: string;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
|
-
* @type {
|
|
55
|
+
* @type {Date}
|
|
56
56
|
* @memberof Assessment
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Array<Snapshot>}
|
|
62
|
+
* @memberof Assessment
|
|
63
|
+
*/
|
|
64
|
+
snapshots: Array<Snapshot>;
|
|
59
65
|
}
|
|
60
66
|
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export const AssessmentSourceTypeEnum = {
|
|
72
|
+
Inventory: 'inventory',
|
|
73
|
+
Rvtools: 'rvtools',
|
|
74
|
+
Source: 'source'
|
|
75
|
+
} as const;
|
|
76
|
+
export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
|
|
77
|
+
|
|
78
|
+
|
|
61
79
|
/**
|
|
62
80
|
* Check if a given object implements the Assessment interface.
|
|
63
81
|
*/
|
|
64
82
|
export function instanceOfAssessment(value: object): value is Assessment {
|
|
65
83
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
66
84
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined) return false;
|
|
67
86
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
68
|
-
if (!('
|
|
69
|
-
if (!('sourceID' in value) || value['sourceID'] === undefined) return false;
|
|
87
|
+
if (!('snapshots' in value) || value['snapshots'] === undefined) return false;
|
|
70
88
|
return true;
|
|
71
89
|
}
|
|
72
90
|
|
|
@@ -82,9 +100,10 @@ export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
82
100
|
|
|
83
101
|
'id': json['id'],
|
|
84
102
|
'name': json['name'],
|
|
103
|
+
'sourceType': json['sourceType'],
|
|
104
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
85
105
|
'createdAt': (new Date(json['createdAt'])),
|
|
86
|
-
'
|
|
87
|
-
'sourceID': json['sourceID'],
|
|
106
|
+
'snapshots': ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
|
|
88
107
|
};
|
|
89
108
|
}
|
|
90
109
|
|
|
@@ -96,9 +115,10 @@ export function AssessmentToJSON(value?: Assessment | null): any {
|
|
|
96
115
|
|
|
97
116
|
'id': value['id'],
|
|
98
117
|
'name': value['name'],
|
|
118
|
+
'sourceType': value['sourceType'],
|
|
119
|
+
'sourceId': value['sourceId'],
|
|
99
120
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
100
|
-
'
|
|
101
|
-
'sourceID': value['sourceID'],
|
|
121
|
+
'snapshots': ((value['snapshots'] as Array<any>).map(SnapshotToJSON)),
|
|
102
122
|
};
|
|
103
123
|
}
|
|
104
124
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Inventory } from './Inventory';
|
|
17
|
+
import {
|
|
18
|
+
InventoryFromJSON,
|
|
19
|
+
InventoryFromJSONTyped,
|
|
20
|
+
InventoryToJSON,
|
|
21
|
+
} from './Inventory';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -25,12 +32,27 @@ export interface AssessmentForm {
|
|
|
25
32
|
* @memberof AssessmentForm
|
|
26
33
|
*/
|
|
27
34
|
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* Source of the assessment data:
|
|
37
|
+
* * `inventory` - Manual inventory upload via JSON
|
|
38
|
+
* * `agent` - Collected by migration planner agent
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AssessmentForm
|
|
42
|
+
*/
|
|
43
|
+
sourceType: string;
|
|
28
44
|
/**
|
|
29
45
|
*
|
|
30
46
|
* @type {string}
|
|
31
47
|
* @memberof AssessmentForm
|
|
32
48
|
*/
|
|
33
|
-
|
|
49
|
+
sourceId?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Inventory}
|
|
53
|
+
* @memberof AssessmentForm
|
|
54
|
+
*/
|
|
55
|
+
inventory?: Inventory;
|
|
34
56
|
}
|
|
35
57
|
|
|
36
58
|
/**
|
|
@@ -38,7 +60,7 @@ export interface AssessmentForm {
|
|
|
38
60
|
*/
|
|
39
61
|
export function instanceOfAssessmentForm(value: object): value is AssessmentForm {
|
|
40
62
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
-
if (!('
|
|
63
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined) return false;
|
|
42
64
|
return true;
|
|
43
65
|
}
|
|
44
66
|
|
|
@@ -53,7 +75,9 @@ export function AssessmentFormFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
53
75
|
return {
|
|
54
76
|
|
|
55
77
|
'name': json['name'],
|
|
56
|
-
'
|
|
78
|
+
'sourceType': json['sourceType'],
|
|
79
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
80
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
57
81
|
};
|
|
58
82
|
}
|
|
59
83
|
|
|
@@ -64,7 +88,9 @@ export function AssessmentFormToJSON(value?: AssessmentForm | null): any {
|
|
|
64
88
|
return {
|
|
65
89
|
|
|
66
90
|
'name': value['name'],
|
|
67
|
-
'
|
|
91
|
+
'sourceType': value['sourceType'],
|
|
92
|
+
'sourceId': value['sourceId'],
|
|
93
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
68
94
|
};
|
|
69
95
|
}
|
|
70
96
|
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
* Update form of the assessment.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AssessmentUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface AssessmentUpdate {
|
|
22
|
+
/**
|
|
23
|
+
* Name of the assessment
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AssessmentUpdate
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AssessmentUpdate interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAssessmentUpdate(value: object): value is AssessmentUpdate {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function AssessmentUpdateFromJSON(json: any): AssessmentUpdate {
|
|
38
|
+
return AssessmentUpdateFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AssessmentUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentUpdate {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AssessmentUpdateToJSON(value?: AssessmentUpdate | null): any {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
package/src/models/Datastore.ts
CHANGED
|
@@ -67,6 +67,12 @@ export interface Datastore {
|
|
|
67
67
|
* @memberof Datastore
|
|
68
68
|
*/
|
|
69
69
|
model: string;
|
|
70
|
+
/**
|
|
71
|
+
* Identifier of the host where this datastore is attached
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Datastore
|
|
74
|
+
*/
|
|
75
|
+
hostId?: string | null;
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
/**
|
|
@@ -102,6 +108,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
102
108
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
103
109
|
'protocolType': json['protocolType'],
|
|
104
110
|
'model': json['model'],
|
|
111
|
+
'hostId': json['hostId'] == null ? undefined : json['hostId'],
|
|
105
112
|
};
|
|
106
113
|
}
|
|
107
114
|
|
|
@@ -119,6 +126,7 @@ export function DatastoreToJSON(value?: Datastore | null): any {
|
|
|
119
126
|
'hardwareAcceleratedMove': value['hardwareAcceleratedMove'],
|
|
120
127
|
'protocolType': value['protocolType'],
|
|
121
128
|
'model': value['model'],
|
|
129
|
+
'hostId': value['hostId'],
|
|
122
130
|
};
|
|
123
131
|
}
|
|
124
132
|
|