@migration-planner-ui/api-client 0.0.27 → 0.0.29
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/JobApi.d.ts +97 -0
- package/dist/apis/JobApi.js +138 -0
- package/dist/models/DiskTypeSummary.d.ts +37 -0
- package/dist/models/DiskTypeSummary.js +44 -0
- package/dist/models/Infra.d.ts +5 -2
- package/dist/models/Infra.js +2 -6
- package/dist/models/Job.d.ts +50 -0
- package/dist/models/Job.js +49 -0
- package/dist/models/JobStatus.d.ts +35 -0
- package/dist/models/JobStatus.js +51 -0
- package/dist/models/OsInfo.d.ts +6 -0
- package/dist/models/OsInfo.js +2 -0
- package/dist/models/Snapshot.js +13 -0
- package/dist/models/VMs.d.ts +10 -1
- package/dist/models/VMs.js +4 -3
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +3 -0
- package/src/apis/JobApi.ts +226 -0
- package/src/models/DiskTypeSummary.ts +70 -0
- package/src/models/Infra.ts +11 -6
- package/src/models/Inventory.ts +1 -2
- package/src/models/InventoryData.ts +4 -0
- package/src/models/Job.ts +95 -0
- package/src/models/JobStatus.ts +60 -0
- package/src/models/OsInfo.ts +8 -0
- package/src/models/Snapshot.ts +3 -0
- package/src/models/VMs.ts +21 -4
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -3,6 +3,7 @@ src/apis/AssessmentApi.ts
|
|
|
3
3
|
src/apis/HealthApi.ts
|
|
4
4
|
src/apis/ImageApi.ts
|
|
5
5
|
src/apis/InfoApi.ts
|
|
6
|
+
src/apis/JobApi.ts
|
|
6
7
|
src/apis/SourceApi.ts
|
|
7
8
|
src/index.ts
|
|
8
9
|
src/models/Agent.ts
|
|
@@ -12,6 +13,7 @@ src/models/AssessmentForm.ts
|
|
|
12
13
|
src/models/AssessmentUpdate.ts
|
|
13
14
|
src/models/Datastore.ts
|
|
14
15
|
src/models/DiskSizeTierSummary.ts
|
|
16
|
+
src/models/DiskTypeSummary.ts
|
|
15
17
|
src/models/Histogram.ts
|
|
16
18
|
src/models/Host.ts
|
|
17
19
|
src/models/Info.ts
|
|
@@ -19,6 +21,8 @@ src/models/Infra.ts
|
|
|
19
21
|
src/models/Inventory.ts
|
|
20
22
|
src/models/InventoryData.ts
|
|
21
23
|
src/models/Ipv4Config.ts
|
|
24
|
+
src/models/Job.ts
|
|
25
|
+
src/models/JobStatus.ts
|
|
22
26
|
src/models/Label.ts
|
|
23
27
|
src/models/MigrationIssue.ts
|
|
24
28
|
src/models/ModelError.ts
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { Job } from '../models/index';
|
|
14
|
+
export interface CancelJobRequest {
|
|
15
|
+
id: number;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateRVToolsAssessmentRequest {
|
|
18
|
+
name: string;
|
|
19
|
+
file: Blob;
|
|
20
|
+
}
|
|
21
|
+
export interface GetJobRequest {
|
|
22
|
+
id: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* JobApi - interface
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface JobApiInterface
|
|
29
|
+
*/
|
|
30
|
+
export interface JobApiInterface {
|
|
31
|
+
/**
|
|
32
|
+
* Cancel a job
|
|
33
|
+
* @param {number} id ID of the job
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @memberof JobApiInterface
|
|
37
|
+
*/
|
|
38
|
+
cancelJobRaw(requestParameters: CancelJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Job>>;
|
|
39
|
+
/**
|
|
40
|
+
* Cancel a job
|
|
41
|
+
*/
|
|
42
|
+
cancelJob(requestParameters: CancelJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Job>;
|
|
43
|
+
/**
|
|
44
|
+
* Create an assessment from RVTools file asynchronously
|
|
45
|
+
* @param {string} name Name of the assessment
|
|
46
|
+
* @param {Blob} file File upload for assessment data
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
* @memberof JobApiInterface
|
|
50
|
+
*/
|
|
51
|
+
createRVToolsAssessmentRaw(requestParameters: CreateRVToolsAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Job>>;
|
|
52
|
+
/**
|
|
53
|
+
* Create an assessment from RVTools file asynchronously
|
|
54
|
+
*/
|
|
55
|
+
createRVToolsAssessment(requestParameters: CreateRVToolsAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Job>;
|
|
56
|
+
/**
|
|
57
|
+
* Get job status
|
|
58
|
+
* @param {number} id ID of the job
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
* @memberof JobApiInterface
|
|
62
|
+
*/
|
|
63
|
+
getJobRaw(requestParameters: GetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Job>>;
|
|
64
|
+
/**
|
|
65
|
+
* Get job status
|
|
66
|
+
*/
|
|
67
|
+
getJob(requestParameters: GetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Job>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export declare class JobApi extends runtime.BaseAPI implements JobApiInterface {
|
|
73
|
+
/**
|
|
74
|
+
* Cancel a job
|
|
75
|
+
*/
|
|
76
|
+
cancelJobRaw(requestParameters: CancelJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Job>>;
|
|
77
|
+
/**
|
|
78
|
+
* Cancel a job
|
|
79
|
+
*/
|
|
80
|
+
cancelJob(requestParameters: CancelJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Job>;
|
|
81
|
+
/**
|
|
82
|
+
* Create an assessment from RVTools file asynchronously
|
|
83
|
+
*/
|
|
84
|
+
createRVToolsAssessmentRaw(requestParameters: CreateRVToolsAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Job>>;
|
|
85
|
+
/**
|
|
86
|
+
* Create an assessment from RVTools file asynchronously
|
|
87
|
+
*/
|
|
88
|
+
createRVToolsAssessment(requestParameters: CreateRVToolsAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Job>;
|
|
89
|
+
/**
|
|
90
|
+
* Get job status
|
|
91
|
+
*/
|
|
92
|
+
getJobRaw(requestParameters: GetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Job>>;
|
|
93
|
+
/**
|
|
94
|
+
* Get job status
|
|
95
|
+
*/
|
|
96
|
+
getJob(requestParameters: GetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Job>;
|
|
97
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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 { JobFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class JobApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Cancel a job
|
|
31
|
+
*/
|
|
32
|
+
cancelJobRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling cancelJob().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
const response = yield this.request({
|
|
40
|
+
path: `/api/v1/assessments/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
41
|
+
method: 'DELETE',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
}, initOverrides);
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobFromJSON(jsonValue));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Cancel a job
|
|
50
|
+
*/
|
|
51
|
+
cancelJob(requestParameters, initOverrides) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const response = yield this.cancelJobRaw(requestParameters, initOverrides);
|
|
54
|
+
return yield response.value();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Create an assessment from RVTools file asynchronously
|
|
59
|
+
*/
|
|
60
|
+
createRVToolsAssessmentRaw(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
if (requestParameters['name'] == null) {
|
|
63
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling createRVToolsAssessment().');
|
|
64
|
+
}
|
|
65
|
+
if (requestParameters['file'] == null) {
|
|
66
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling createRVToolsAssessment().');
|
|
67
|
+
}
|
|
68
|
+
const queryParameters = {};
|
|
69
|
+
const headerParameters = {};
|
|
70
|
+
const consumes = [
|
|
71
|
+
{ contentType: 'multipart/form-data' },
|
|
72
|
+
];
|
|
73
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
74
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
75
|
+
let formParams;
|
|
76
|
+
let useForm = false;
|
|
77
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
78
|
+
useForm = canConsumeForm;
|
|
79
|
+
if (useForm) {
|
|
80
|
+
formParams = new FormData();
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
formParams = new URLSearchParams();
|
|
84
|
+
}
|
|
85
|
+
if (requestParameters['name'] != null) {
|
|
86
|
+
formParams.append('name', requestParameters['name']);
|
|
87
|
+
}
|
|
88
|
+
if (requestParameters['file'] != null) {
|
|
89
|
+
formParams.append('file', requestParameters['file']);
|
|
90
|
+
}
|
|
91
|
+
const response = yield this.request({
|
|
92
|
+
path: `/api/v1/assessments/rvtools`,
|
|
93
|
+
method: 'POST',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
body: formParams,
|
|
97
|
+
}, initOverrides);
|
|
98
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobFromJSON(jsonValue));
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Create an assessment from RVTools file asynchronously
|
|
103
|
+
*/
|
|
104
|
+
createRVToolsAssessment(requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const response = yield this.createRVToolsAssessmentRaw(requestParameters, initOverrides);
|
|
107
|
+
return yield response.value();
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Get job status
|
|
112
|
+
*/
|
|
113
|
+
getJobRaw(requestParameters, initOverrides) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
if (requestParameters['id'] == null) {
|
|
116
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getJob().');
|
|
117
|
+
}
|
|
118
|
+
const queryParameters = {};
|
|
119
|
+
const headerParameters = {};
|
|
120
|
+
const response = yield this.request({
|
|
121
|
+
path: `/api/v1/assessments/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
122
|
+
method: 'GET',
|
|
123
|
+
headers: headerParameters,
|
|
124
|
+
query: queryParameters,
|
|
125
|
+
}, initOverrides);
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobFromJSON(jsonValue));
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Get job status
|
|
131
|
+
*/
|
|
132
|
+
getJob(requestParameters, initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
const response = yield this.getJobRaw(requestParameters, initOverrides);
|
|
135
|
+
return yield response.value();
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DiskTypeSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface DiskTypeSummary {
|
|
18
|
+
/**
|
|
19
|
+
* Number of VMs that have at least one disk of this type
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DiskTypeSummary
|
|
22
|
+
*/
|
|
23
|
+
vmCount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Total disk size in TB for this disk type
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof DiskTypeSummary
|
|
28
|
+
*/
|
|
29
|
+
totalSizeTB: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DiskTypeSummary interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDiskTypeSummary(value: object): value is DiskTypeSummary;
|
|
35
|
+
export declare function DiskTypeSummaryFromJSON(json: any): DiskTypeSummary;
|
|
36
|
+
export declare function DiskTypeSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskTypeSummary;
|
|
37
|
+
export declare function DiskTypeSummaryToJSON(value?: DiskTypeSummary | 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 DiskTypeSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDiskTypeSummary(value) {
|
|
18
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function DiskTypeSummaryFromJSON(json) {
|
|
25
|
+
return DiskTypeSummaryFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function DiskTypeSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'vmCount': json['vmCount'],
|
|
33
|
+
'totalSizeTB': json['totalSizeTB'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function DiskTypeSummaryToJSON(value) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'vmCount': value['vmCount'],
|
|
42
|
+
'totalSizeTB': value['totalSizeTB'],
|
|
43
|
+
};
|
|
44
|
+
}
|
package/dist/models/Infra.d.ts
CHANGED
|
@@ -34,8 +34,9 @@ export interface Infra {
|
|
|
34
34
|
*
|
|
35
35
|
* @type {number}
|
|
36
36
|
* @memberof Infra
|
|
37
|
+
* @deprecated
|
|
37
38
|
*/
|
|
38
|
-
totalClusters
|
|
39
|
+
totalClusters?: number;
|
|
39
40
|
/**
|
|
40
41
|
*
|
|
41
42
|
* @type {Array<number>}
|
|
@@ -58,12 +59,14 @@ export interface Infra {
|
|
|
58
59
|
*
|
|
59
60
|
* @type {Array<number>}
|
|
60
61
|
* @memberof Infra
|
|
62
|
+
* @deprecated
|
|
61
63
|
*/
|
|
62
|
-
hostsPerCluster
|
|
64
|
+
hostsPerCluster?: Array<number>;
|
|
63
65
|
/**
|
|
64
66
|
*
|
|
65
67
|
* @type {Array<number>}
|
|
66
68
|
* @memberof Infra
|
|
69
|
+
* @deprecated
|
|
67
70
|
*/
|
|
68
71
|
vmsPerCluster?: Array<number>;
|
|
69
72
|
/**
|
package/dist/models/Infra.js
CHANGED
|
@@ -20,10 +20,6 @@ import { HostFromJSON, HostToJSON, } from './Host';
|
|
|
20
20
|
export function instanceOfInfra(value) {
|
|
21
21
|
if (!('totalHosts' in value) || value['totalHosts'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('totalClusters' in value) || value['totalClusters'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
if (!('hostsPerCluster' in value) || value['hostsPerCluster'] === undefined)
|
|
26
|
-
return false;
|
|
27
23
|
if (!('hostPowerStates' in value) || value['hostPowerStates'] === undefined)
|
|
28
24
|
return false;
|
|
29
25
|
if (!('networks' in value) || value['networks'] === undefined)
|
|
@@ -42,11 +38,11 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
38
|
return {
|
|
43
39
|
'totalHosts': json['totalHosts'],
|
|
44
40
|
'totalDatacenters': json['totalDatacenters'] == null ? undefined : json['totalDatacenters'],
|
|
45
|
-
'totalClusters': json['totalClusters'],
|
|
41
|
+
'totalClusters': json['totalClusters'] == null ? undefined : json['totalClusters'],
|
|
46
42
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
47
43
|
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
48
44
|
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(HostFromJSON)),
|
|
49
|
-
'hostsPerCluster': json['hostsPerCluster'],
|
|
45
|
+
'hostsPerCluster': json['hostsPerCluster'] == null ? undefined : json['hostsPerCluster'],
|
|
50
46
|
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
51
47
|
'hostPowerStates': json['hostPowerStates'],
|
|
52
48
|
'networks': json['networks'] == null ? undefined : (json['networks'].map(NetworkFromJSON)),
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { JobStatus } from './JobStatus';
|
|
13
|
+
/**
|
|
14
|
+
* Background job for async assessment creation
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Job
|
|
17
|
+
*/
|
|
18
|
+
export interface Job {
|
|
19
|
+
/**
|
|
20
|
+
* Job ID
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof Job
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {JobStatus}
|
|
28
|
+
* @memberof Job
|
|
29
|
+
*/
|
|
30
|
+
status: JobStatus;
|
|
31
|
+
/**
|
|
32
|
+
* Error message if job failed
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Job
|
|
35
|
+
*/
|
|
36
|
+
error?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Assessment ID when job completed successfully
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Job
|
|
41
|
+
*/
|
|
42
|
+
assessmentId?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Job interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfJob(value: object): value is Job;
|
|
48
|
+
export declare function JobFromJSON(json: any): Job;
|
|
49
|
+
export declare function JobFromJSONTyped(json: any, ignoreDiscriminator: boolean): Job;
|
|
50
|
+
export declare function JobToJSON(value?: Job | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { JobStatusFromJSON, JobStatusToJSON, } from './JobStatus';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the Job interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfJob(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function JobFromJSON(json) {
|
|
26
|
+
return JobFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function JobFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'id': json['id'],
|
|
34
|
+
'status': JobStatusFromJSON(json['status']),
|
|
35
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
36
|
+
'assessmentId': json['assessmentId'] == null ? undefined : json['assessmentId'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function JobToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': value['id'],
|
|
45
|
+
'status': JobStatusToJSON(value['status']),
|
|
46
|
+
'error': value['error'],
|
|
47
|
+
'assessmentId': value['assessmentId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
* Job status:
|
|
14
|
+
* * `pending` - Job is queued
|
|
15
|
+
* * `parsing` - Parsing RVTools Excel file
|
|
16
|
+
* * `validating` - Running OPA VM validations
|
|
17
|
+
* * `completed` - Assessment created successfully
|
|
18
|
+
* * `failed` - Job failed with error
|
|
19
|
+
* * `cancelled` - Job was cancelled
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const JobStatus: {
|
|
24
|
+
readonly Pending: "pending";
|
|
25
|
+
readonly Parsing: "parsing";
|
|
26
|
+
readonly Validating: "validating";
|
|
27
|
+
readonly Completed: "completed";
|
|
28
|
+
readonly Failed: "failed";
|
|
29
|
+
readonly Cancelled: "cancelled";
|
|
30
|
+
};
|
|
31
|
+
export type JobStatus = typeof JobStatus[keyof typeof JobStatus];
|
|
32
|
+
export declare function instanceOfJobStatus(value: any): boolean;
|
|
33
|
+
export declare function JobStatusFromJSON(json: any): JobStatus;
|
|
34
|
+
export declare function JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatus;
|
|
35
|
+
export declare function JobStatusToJSON(value?: JobStatus | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Job status:
|
|
16
|
+
* * `pending` - Job is queued
|
|
17
|
+
* * `parsing` - Parsing RVTools Excel file
|
|
18
|
+
* * `validating` - Running OPA VM validations
|
|
19
|
+
* * `completed` - Assessment created successfully
|
|
20
|
+
* * `failed` - Job failed with error
|
|
21
|
+
* * `cancelled` - Job was cancelled
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const JobStatus = {
|
|
26
|
+
Pending: 'pending',
|
|
27
|
+
Parsing: 'parsing',
|
|
28
|
+
Validating: 'validating',
|
|
29
|
+
Completed: 'completed',
|
|
30
|
+
Failed: 'failed',
|
|
31
|
+
Cancelled: 'cancelled'
|
|
32
|
+
};
|
|
33
|
+
export function instanceOfJobStatus(value) {
|
|
34
|
+
for (const key in JobStatus) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(JobStatus, key)) {
|
|
36
|
+
if (JobStatus[key] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
export function JobStatusFromJSON(json) {
|
|
44
|
+
return JobStatusFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function JobStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
export function JobStatusToJSON(value) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
package/dist/models/OsInfo.d.ts
CHANGED
|
@@ -27,6 +27,12 @@ export interface OsInfo {
|
|
|
27
27
|
* @memberof OsInfo
|
|
28
28
|
*/
|
|
29
29
|
supported: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OsInfo
|
|
34
|
+
*/
|
|
35
|
+
upgradeRecommendation?: string;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the OsInfo interface.
|
package/dist/models/OsInfo.js
CHANGED
|
@@ -31,6 +31,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return {
|
|
32
32
|
'count': json['count'],
|
|
33
33
|
'supported': json['supported'],
|
|
34
|
+
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
export function OsInfoToJSON(value) {
|
|
@@ -40,5 +41,6 @@ export function OsInfoToJSON(value) {
|
|
|
40
41
|
return {
|
|
41
42
|
'count': value['count'],
|
|
42
43
|
'supported': value['supported'],
|
|
44
|
+
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
43
45
|
};
|
|
44
46
|
}
|
package/dist/models/Snapshot.js
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
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
|
+
*/
|
|
1
14
|
import { InventoryFromJSON, InventoryToJSON, } from './Inventory';
|
|
2
15
|
/**
|
|
3
16
|
* Check if a given object implements the Snapshot interface.
|
package/dist/models/VMs.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { MigrationIssue } from './MigrationIssue';
|
|
13
13
|
import type { OsInfo } from './OsInfo';
|
|
14
14
|
import type { DiskSizeTierSummary } from './DiskSizeTierSummary';
|
|
15
|
+
import type { DiskTypeSummary } from './DiskTypeSummary';
|
|
15
16
|
import type { VMResourceBreakdown } from './VMResourceBreakdown';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
@@ -51,6 +52,14 @@ export interface VMs {
|
|
|
51
52
|
diskSizeTier?: {
|
|
52
53
|
[key: string]: DiskSizeTierSummary;
|
|
53
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {{ [key: string]: DiskTypeSummary; }}
|
|
58
|
+
* @memberof VMs
|
|
59
|
+
*/
|
|
60
|
+
diskTypes?: {
|
|
61
|
+
[key: string]: DiskTypeSummary;
|
|
62
|
+
};
|
|
54
63
|
/**
|
|
55
64
|
*
|
|
56
65
|
* @type {VMResourceBreakdown}
|
|
@@ -89,7 +98,7 @@ export interface VMs {
|
|
|
89
98
|
* @memberof VMs
|
|
90
99
|
* @deprecated
|
|
91
100
|
*/
|
|
92
|
-
os
|
|
101
|
+
os?: {
|
|
93
102
|
[key: string]: number;
|
|
94
103
|
};
|
|
95
104
|
/**
|