@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/.openapi-generator/FILES
CHANGED
|
@@ -2,15 +2,18 @@ README.md
|
|
|
2
2
|
src/apis/AssessmentApi.ts
|
|
3
3
|
src/apis/HealthApi.ts
|
|
4
4
|
src/apis/ImageApi.ts
|
|
5
|
+
src/apis/InfoApi.ts
|
|
5
6
|
src/apis/SourceApi.ts
|
|
6
7
|
src/index.ts
|
|
7
8
|
src/models/Agent.ts
|
|
8
9
|
src/models/AgentProxy.ts
|
|
9
10
|
src/models/Assessment.ts
|
|
10
11
|
src/models/AssessmentForm.ts
|
|
12
|
+
src/models/AssessmentUpdate.ts
|
|
11
13
|
src/models/Datastore.ts
|
|
12
14
|
src/models/Histogram.ts
|
|
13
15
|
src/models/Host.ts
|
|
16
|
+
src/models/Info.ts
|
|
14
17
|
src/models/Infra.ts
|
|
15
18
|
src/models/Inventory.ts
|
|
16
19
|
src/models/Label.ts
|
|
@@ -19,6 +22,7 @@ src/models/ModelError.ts
|
|
|
19
22
|
src/models/Network.ts
|
|
20
23
|
src/models/OsInfo.ts
|
|
21
24
|
src/models/PresignedUrl.ts
|
|
25
|
+
src/models/Snapshot.ts
|
|
22
26
|
src/models/Source.ts
|
|
23
27
|
src/models/SourceCreate.ts
|
|
24
28
|
src/models/SourceUpdate.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Assessment, AssessmentForm } from '../models/index';
|
|
13
|
+
import type { Assessment, AssessmentForm, AssessmentUpdate } from '../models/index';
|
|
14
14
|
export interface CreateAssessmentRequest {
|
|
15
15
|
assessmentForm: AssessmentForm;
|
|
16
16
|
}
|
|
@@ -20,6 +20,10 @@ export interface DeleteAssessmentRequest {
|
|
|
20
20
|
export interface GetAssessmentRequest {
|
|
21
21
|
id: string;
|
|
22
22
|
}
|
|
23
|
+
export interface UpdateAssessmentRequest {
|
|
24
|
+
id: string;
|
|
25
|
+
assessmentUpdate: AssessmentUpdate;
|
|
26
|
+
}
|
|
23
27
|
/**
|
|
24
28
|
* AssessmentApi - interface
|
|
25
29
|
*
|
|
@@ -74,6 +78,19 @@ export interface AssessmentApiInterface {
|
|
|
74
78
|
* List assessments
|
|
75
79
|
*/
|
|
76
80
|
listAssessments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
|
|
81
|
+
/**
|
|
82
|
+
* Update an assessment
|
|
83
|
+
* @param {string} id ID of the assessment
|
|
84
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
* @memberof AssessmentApiInterface
|
|
88
|
+
*/
|
|
89
|
+
updateAssessmentRaw(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Assessment>>;
|
|
90
|
+
/**
|
|
91
|
+
* Update an assessment
|
|
92
|
+
*/
|
|
93
|
+
updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
77
94
|
}
|
|
78
95
|
/**
|
|
79
96
|
*
|
|
@@ -111,4 +128,12 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
111
128
|
* List assessments
|
|
112
129
|
*/
|
|
113
130
|
listAssessments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
|
|
131
|
+
/**
|
|
132
|
+
* Update an assessment
|
|
133
|
+
*/
|
|
134
|
+
updateAssessmentRaw(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Assessment>>;
|
|
135
|
+
/**
|
|
136
|
+
* Update an assessment
|
|
137
|
+
*/
|
|
138
|
+
updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
114
139
|
}
|
|
@@ -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 { AssessmentFromJSON, AssessmentFormToJSON, } from '../models/index';
|
|
24
|
+
import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -137,4 +137,37 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
137
137
|
return yield response.value();
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Update an assessment
|
|
142
|
+
*/
|
|
143
|
+
updateAssessmentRaw(requestParameters, initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
if (requestParameters['id'] == null) {
|
|
146
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAssessment().');
|
|
147
|
+
}
|
|
148
|
+
if (requestParameters['assessmentUpdate'] == null) {
|
|
149
|
+
throw new runtime.RequiredError('assessmentUpdate', 'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessment().');
|
|
150
|
+
}
|
|
151
|
+
const queryParameters = {};
|
|
152
|
+
const headerParameters = {};
|
|
153
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
154
|
+
const response = yield this.request({
|
|
155
|
+
path: `/api/v1/assessments/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
156
|
+
method: 'PUT',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
body: AssessmentUpdateToJSON(requestParameters['assessmentUpdate']),
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AssessmentFromJSON(jsonValue));
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Update an assessment
|
|
166
|
+
*/
|
|
167
|
+
updateAssessment(requestParameters, initOverrides) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
const response = yield this.updateAssessmentRaw(requestParameters, initOverrides);
|
|
170
|
+
return yield response.value();
|
|
171
|
+
});
|
|
172
|
+
}
|
|
140
173
|
}
|
|
@@ -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 * as runtime from '../runtime';
|
|
13
|
+
import type { Info } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* InfoApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface InfoApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface InfoApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Get migration planner information
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
* @memberof InfoApiInterface
|
|
26
|
+
*/
|
|
27
|
+
getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Info>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get migration planner information
|
|
30
|
+
*/
|
|
31
|
+
getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Info>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare class InfoApi extends runtime.BaseAPI implements InfoApiInterface {
|
|
37
|
+
/**
|
|
38
|
+
* Get migration planner information
|
|
39
|
+
*/
|
|
40
|
+
getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Info>>;
|
|
41
|
+
/**
|
|
42
|
+
* Get migration planner information
|
|
43
|
+
*/
|
|
44
|
+
getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Info>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { InfoFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class InfoApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Get migration planner information
|
|
31
|
+
*/
|
|
32
|
+
getInfoRaw(initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
const response = yield this.request({
|
|
37
|
+
path: `/api/v1/info`,
|
|
38
|
+
method: 'GET',
|
|
39
|
+
headers: headerParameters,
|
|
40
|
+
query: queryParameters,
|
|
41
|
+
}, initOverrides);
|
|
42
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InfoFromJSON(jsonValue));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get migration planner information
|
|
47
|
+
*/
|
|
48
|
+
getInfo(initOverrides) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const response = yield this.getInfoRaw(initOverrides);
|
|
51
|
+
return yield response.value();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { type HeadImageRequest, type ImageApiInterface, ImageApi, } from "./Imag
|
|
|
2
2
|
export { type CreateSourceRequest, type DeleteSourceRequest, type GetSourceRequest, type ListSourcesRequest, 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
|
-
export { type AssessmentApiInterface, type CreateAssessmentRequest, type DeleteAssessmentRequest, type GetAssessmentRequest, AssessmentApi } from "./AssessmentApi";
|
|
5
|
+
export { type AssessmentApiInterface, type CreateAssessmentRequest, type DeleteAssessmentRequest, type GetAssessmentRequest, type UpdateAssessmentRequest, AssessmentApi } from "./AssessmentApi";
|
|
6
|
+
export { type InfoApiInterface, InfoApi } from "./InfoApi";
|
package/dist/apis/index.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { Snapshot } from './Snapshot';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -30,23 +30,38 @@ export interface Assessment {
|
|
|
30
30
|
name: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {string}
|
|
34
34
|
* @memberof Assessment
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
sourceType: AssessmentSourceTypeEnum;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {string}
|
|
40
40
|
* @memberof Assessment
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
sourceId?: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof Assessment
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<Snapshot>}
|
|
46
52
|
* @memberof Assessment
|
|
47
53
|
*/
|
|
48
|
-
|
|
54
|
+
snapshots: Array<Snapshot>;
|
|
49
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const AssessmentSourceTypeEnum: {
|
|
60
|
+
readonly Inventory: "inventory";
|
|
61
|
+
readonly Rvtools: "rvtools";
|
|
62
|
+
readonly Source: "source";
|
|
63
|
+
};
|
|
64
|
+
export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
|
|
50
65
|
/**
|
|
51
66
|
* Check if a given object implements the Assessment interface.
|
|
52
67
|
*/
|
|
@@ -11,7 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { SnapshotFromJSON, SnapshotToJSON, } from './Snapshot';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const AssessmentSourceTypeEnum = {
|
|
19
|
+
Inventory: 'inventory',
|
|
20
|
+
Rvtools: 'rvtools',
|
|
21
|
+
Source: 'source'
|
|
22
|
+
};
|
|
15
23
|
/**
|
|
16
24
|
* Check if a given object implements the Assessment interface.
|
|
17
25
|
*/
|
|
@@ -20,11 +28,11 @@ export function instanceOfAssessment(value) {
|
|
|
20
28
|
return false;
|
|
21
29
|
if (!('name' in value) || value['name'] === undefined)
|
|
22
30
|
return false;
|
|
23
|
-
if (!('
|
|
31
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined)
|
|
24
32
|
return false;
|
|
25
|
-
if (!('
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
26
34
|
return false;
|
|
27
|
-
if (!('
|
|
35
|
+
if (!('snapshots' in value) || value['snapshots'] === undefined)
|
|
28
36
|
return false;
|
|
29
37
|
return true;
|
|
30
38
|
}
|
|
@@ -38,9 +46,10 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
46
|
return {
|
|
39
47
|
'id': json['id'],
|
|
40
48
|
'name': json['name'],
|
|
49
|
+
'sourceType': json['sourceType'],
|
|
50
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
41
51
|
'createdAt': (new Date(json['createdAt'])),
|
|
42
|
-
'
|
|
43
|
-
'sourceID': json['sourceID'],
|
|
52
|
+
'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
|
|
44
53
|
};
|
|
45
54
|
}
|
|
46
55
|
export function AssessmentToJSON(value) {
|
|
@@ -50,8 +59,9 @@ export function AssessmentToJSON(value) {
|
|
|
50
59
|
return {
|
|
51
60
|
'id': value['id'],
|
|
52
61
|
'name': value['name'],
|
|
62
|
+
'sourceType': value['sourceType'],
|
|
63
|
+
'sourceId': value['sourceId'],
|
|
53
64
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
54
|
-
'
|
|
55
|
-
'sourceID': value['sourceID'],
|
|
65
|
+
'snapshots': (value['snapshots'].map(SnapshotToJSON)),
|
|
56
66
|
};
|
|
57
67
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { Inventory } from './Inventory';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -22,11 +23,26 @@ export interface AssessmentForm {
|
|
|
22
23
|
*/
|
|
23
24
|
name: string;
|
|
24
25
|
/**
|
|
26
|
+
* Source of the assessment data:
|
|
27
|
+
* * `inventory` - Manual inventory upload via JSON
|
|
28
|
+
* * `agent` - Collected by migration planner agent
|
|
25
29
|
*
|
|
26
30
|
* @type {string}
|
|
27
31
|
* @memberof AssessmentForm
|
|
28
32
|
*/
|
|
29
|
-
|
|
33
|
+
sourceType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AssessmentForm
|
|
38
|
+
*/
|
|
39
|
+
sourceId?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Inventory}
|
|
43
|
+
* @memberof AssessmentForm
|
|
44
|
+
*/
|
|
45
|
+
inventory?: Inventory;
|
|
30
46
|
}
|
|
31
47
|
/**
|
|
32
48
|
* Check if a given object implements the AssessmentForm interface.
|
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the AssessmentForm interface.
|
|
16
17
|
*/
|
|
17
18
|
export function instanceOfAssessmentForm(value) {
|
|
18
19
|
if (!('name' in value) || value['name'] === undefined)
|
|
19
20
|
return false;
|
|
20
|
-
if (!('
|
|
21
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined)
|
|
21
22
|
return false;
|
|
22
23
|
return true;
|
|
23
24
|
}
|
|
@@ -30,7 +31,9 @@ export function AssessmentFormFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
31
|
}
|
|
31
32
|
return {
|
|
32
33
|
'name': json['name'],
|
|
33
|
-
'
|
|
34
|
+
'sourceType': json['sourceType'],
|
|
35
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
36
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
export function AssessmentFormToJSON(value) {
|
|
@@ -39,6 +42,8 @@ export function AssessmentFormToJSON(value) {
|
|
|
39
42
|
}
|
|
40
43
|
return {
|
|
41
44
|
'name': value['name'],
|
|
42
|
-
'
|
|
45
|
+
'sourceType': value['sourceType'],
|
|
46
|
+
'sourceId': value['sourceId'],
|
|
47
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
43
48
|
};
|
|
44
49
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* Update form of the assessment.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AssessmentUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface AssessmentUpdate {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the assessment
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssessmentUpdate
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AssessmentUpdate interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAssessmentUpdate(value: object): value is AssessmentUpdate;
|
|
29
|
+
export declare function AssessmentUpdateFromJSON(json: any): AssessmentUpdate;
|
|
30
|
+
export declare function AssessmentUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentUpdate;
|
|
31
|
+
export declare function AssessmentUpdateToJSON(value?: AssessmentUpdate | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 AssessmentUpdate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAssessmentUpdate(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function AssessmentUpdateFromJSON(json) {
|
|
21
|
+
return AssessmentUpdateFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function AssessmentUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function AssessmentUpdateToJSON(value) {
|
|
32
|
+
if (value == null) {
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': value['name'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -63,6 +63,12 @@ export interface Datastore {
|
|
|
63
63
|
* @memberof Datastore
|
|
64
64
|
*/
|
|
65
65
|
model: string;
|
|
66
|
+
/**
|
|
67
|
+
* Identifier of the host where this datastore is attached
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Datastore
|
|
70
|
+
*/
|
|
71
|
+
hostId?: string | null;
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
68
74
|
* Check if a given object implements the Datastore interface.
|
package/dist/models/Datastore.js
CHANGED
|
@@ -49,6 +49,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
50
50
|
'protocolType': json['protocolType'],
|
|
51
51
|
'model': json['model'],
|
|
52
|
+
'hostId': json['hostId'] == null ? undefined : json['hostId'],
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
export function DatastoreToJSON(value) {
|
|
@@ -64,5 +65,6 @@ export function DatastoreToJSON(value) {
|
|
|
64
65
|
'hardwareAcceleratedMove': value['hardwareAcceleratedMove'],
|
|
65
66
|
'protocolType': value['protocolType'],
|
|
66
67
|
'model': value['model'],
|
|
68
|
+
'hostId': value['hostId'],
|
|
67
69
|
};
|
|
68
70
|
}
|
package/dist/models/Host.d.ts
CHANGED
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface Host
|
|
16
16
|
*/
|
|
17
17
|
export interface Host {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for this host
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Host
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
18
24
|
/**
|
|
19
25
|
*
|
|
20
26
|
* @type {string}
|
|
@@ -27,6 +33,24 @@ export interface Host {
|
|
|
27
33
|
* @memberof Host
|
|
28
34
|
*/
|
|
29
35
|
model: string;
|
|
36
|
+
/**
|
|
37
|
+
* Number of CPU cores
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof Host
|
|
40
|
+
*/
|
|
41
|
+
cpuCores?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
* Number of CPU sockets
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof Host
|
|
46
|
+
*/
|
|
47
|
+
cpuSockets?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* Host memory in MB
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof Host
|
|
52
|
+
*/
|
|
53
|
+
memoryMB?: number | null;
|
|
30
54
|
}
|
|
31
55
|
/**
|
|
32
56
|
* Check if a given object implements the Host interface.
|
package/dist/models/Host.js
CHANGED
|
@@ -29,8 +29,12 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
32
33
|
'vendor': json['vendor'],
|
|
33
34
|
'model': json['model'],
|
|
35
|
+
'cpuCores': json['cpuCores'] == null ? undefined : json['cpuCores'],
|
|
36
|
+
'cpuSockets': json['cpuSockets'] == null ? undefined : json['cpuSockets'],
|
|
37
|
+
'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
|
|
34
38
|
};
|
|
35
39
|
}
|
|
36
40
|
export function HostToJSON(value) {
|
|
@@ -38,7 +42,11 @@ export function HostToJSON(value) {
|
|
|
38
42
|
return value;
|
|
39
43
|
}
|
|
40
44
|
return {
|
|
45
|
+
'id': value['id'],
|
|
41
46
|
'vendor': value['vendor'],
|
|
42
47
|
'model': value['model'],
|
|
48
|
+
'cpuCores': value['cpuCores'],
|
|
49
|
+
'cpuSockets': value['cpuSockets'],
|
|
50
|
+
'memoryMB': value['memoryMB'],
|
|
43
51
|
};
|
|
44
52
|
}
|
|
@@ -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
|
+
* Migration planner information
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Info
|
|
16
|
+
*/
|
|
17
|
+
export interface Info {
|
|
18
|
+
/**
|
|
19
|
+
* Git commit hash
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Info
|
|
22
|
+
*/
|
|
23
|
+
gitCommit: string;
|
|
24
|
+
/**
|
|
25
|
+
* Version name, based on git tag
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Info
|
|
28
|
+
*/
|
|
29
|
+
versionName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Info interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfInfo(value: object): value is Info;
|
|
35
|
+
export declare function InfoFromJSON(json: any): Info;
|
|
36
|
+
export declare function InfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Info;
|
|
37
|
+
export declare function InfoToJSON(value?: Info | 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 Info interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfInfo(value) {
|
|
18
|
+
if (!('gitCommit' in value) || value['gitCommit'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('versionName' in value) || value['versionName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function InfoFromJSON(json) {
|
|
25
|
+
return InfoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'gitCommit': json['gitCommit'],
|
|
33
|
+
'versionName': json['versionName'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function InfoToJSON(value) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'gitCommit': value['gitCommit'],
|
|
42
|
+
'versionName': value['versionName'],
|
|
43
|
+
};
|
|
44
|
+
}
|