@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0
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/README.md +5 -2
- package/dist/apis/AssessmentApi.d.ts +43 -0
- package/dist/apis/AssessmentApi.js +42 -0
- package/dist/esm/apis/AssessmentApi.d.ts +43 -0
- package/dist/esm/apis/AssessmentApi.js +42 -0
- package/dist/esm/models/Host.d.ts +10 -0
- package/dist/esm/models/Host.js +6 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/Host.d.ts +10 -0
- package/dist/models/Host.js +6 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/AssessmentApi.md +75 -0
- package/docs/Host.md +4 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/OsInfo.md +2 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +87 -0
- package/src/models/Host.ts +27 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -43,6 +43,8 @@ docs/GroupUpdate.md
|
|
|
43
43
|
docs/HealthApi.md
|
|
44
44
|
docs/Histogram.md
|
|
45
45
|
docs/Host.md
|
|
46
|
+
docs/HostStorageAdapter.md
|
|
47
|
+
docs/HostStorageLun.md
|
|
46
48
|
docs/Identity.md
|
|
47
49
|
docs/ImageApi.md
|
|
48
50
|
docs/Info.md
|
|
@@ -157,6 +159,8 @@ src/models/GroupCreate.ts
|
|
|
157
159
|
src/models/GroupUpdate.ts
|
|
158
160
|
src/models/Histogram.ts
|
|
159
161
|
src/models/Host.ts
|
|
162
|
+
src/models/HostStorageAdapter.ts
|
|
163
|
+
src/models/HostStorageLun.ts
|
|
160
164
|
src/models/Identity.ts
|
|
161
165
|
src/models/Info.ts
|
|
162
166
|
src/models/Infra.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.32.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -66,6 +66,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
66
66
|
*AssessmentApi* | [**calculateMigrationEstimationByComplexity**](docs/AssessmentApi.md#calculatemigrationestimationbycomplexity) | **POST** /api/v1/assessments/{id}/migration-estimation/by-complexity |
|
|
67
67
|
*AssessmentApi* | [**createAssessment**](docs/AssessmentApi.md#createassessment) | **POST** /api/v1/assessments |
|
|
68
68
|
*AssessmentApi* | [**deleteAssessment**](docs/AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} |
|
|
69
|
+
*AssessmentApi* | [**deleteVCenter**](docs/AssessmentApi.md#deletevcenter) | **DELETE** /api/v2/assessments/{id}/vcenters/{vid} |
|
|
69
70
|
*AssessmentApi* | [**getAssessment**](docs/AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} |
|
|
70
71
|
*AssessmentApi* | [**getAssessmentClusterRequirementsStoredInput**](docs/AssessmentApi.md#getassessmentclusterrequirementsstoredinput) | **GET** /api/v1/assessments/{id}/cluster-requirements/stored-input |
|
|
71
72
|
*AssessmentApi* | [**getAssessmentEnhancementData**](docs/AssessmentApi.md#getassessmentenhancementdata) | **GET** /api/v1/assessments/{id}/enhancement-data |
|
|
@@ -146,6 +147,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
146
147
|
- [GroupUpdate](docs/GroupUpdate.md)
|
|
147
148
|
- [Histogram](docs/Histogram.md)
|
|
148
149
|
- [Host](docs/Host.md)
|
|
150
|
+
- [HostStorageAdapter](docs/HostStorageAdapter.md)
|
|
151
|
+
- [HostStorageLun](docs/HostStorageLun.md)
|
|
149
152
|
- [Identity](docs/Identity.md)
|
|
150
153
|
- [Info](docs/Info.md)
|
|
151
154
|
- [Infra](docs/Infra.md)
|
|
@@ -217,7 +220,7 @@ and is automatically generated by the
|
|
|
217
220
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
218
221
|
|
|
219
222
|
- API version: `v1alpha1`
|
|
220
|
-
- Package version: `0.
|
|
223
|
+
- Package version: `0.32.0`
|
|
221
224
|
- Generator version: `7.28.0-SNAPSHOT`
|
|
222
225
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
223
226
|
|
|
@@ -79,6 +79,16 @@ export interface DeleteAssessmentRequest {
|
|
|
79
79
|
*/
|
|
80
80
|
id: string;
|
|
81
81
|
}
|
|
82
|
+
export interface DeleteVCenterRequest {
|
|
83
|
+
/**
|
|
84
|
+
* ID of the assessment
|
|
85
|
+
*/
|
|
86
|
+
id: string;
|
|
87
|
+
/**
|
|
88
|
+
* ID of the vcenter
|
|
89
|
+
*/
|
|
90
|
+
vid: string;
|
|
91
|
+
}
|
|
82
92
|
export interface GetAssessmentRequest {
|
|
83
93
|
/**
|
|
84
94
|
* ID of the assessment
|
|
@@ -292,6 +302,27 @@ export interface AssessmentApiInterface {
|
|
|
292
302
|
* Delete an assessment
|
|
293
303
|
*/
|
|
294
304
|
deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
305
|
+
/**
|
|
306
|
+
* Creates request options for deleteVCenter without sending the request
|
|
307
|
+
* @param {string} id ID of the assessment
|
|
308
|
+
* @param {string} vid ID of the vcenter
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
* @memberof AssessmentApiInterface
|
|
311
|
+
*/
|
|
312
|
+
deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
|
|
313
|
+
/**
|
|
314
|
+
* Delete the specified vcenter inventory
|
|
315
|
+
* @param {string} id ID of the assessment
|
|
316
|
+
* @param {string} vid ID of the vcenter
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
* @memberof AssessmentApiInterface
|
|
320
|
+
*/
|
|
321
|
+
deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
322
|
+
/**
|
|
323
|
+
* Delete the specified vcenter inventory
|
|
324
|
+
*/
|
|
325
|
+
deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
295
326
|
/**
|
|
296
327
|
* Creates request options for getAssessment without sending the request
|
|
297
328
|
* @param {string} id ID of the assessment
|
|
@@ -605,6 +636,18 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
605
636
|
* Delete an assessment
|
|
606
637
|
*/
|
|
607
638
|
deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
639
|
+
/**
|
|
640
|
+
* Creates request options for deleteVCenter without sending the request
|
|
641
|
+
*/
|
|
642
|
+
deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
|
|
643
|
+
/**
|
|
644
|
+
* Delete the specified vcenter inventory
|
|
645
|
+
*/
|
|
646
|
+
deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
647
|
+
/**
|
|
648
|
+
* Delete the specified vcenter inventory
|
|
649
|
+
*/
|
|
650
|
+
deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
608
651
|
/**
|
|
609
652
|
* Creates request options for getAssessment without sending the request
|
|
610
653
|
*/
|
|
@@ -300,6 +300,48 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
300
300
|
return yield response.value();
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
+
/**
|
|
304
|
+
* Creates request options for deleteVCenter without sending the request
|
|
305
|
+
*/
|
|
306
|
+
deleteVCenterRequestOpts(requestParameters) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
if (requestParameters['id'] == null) {
|
|
309
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteVCenter().');
|
|
310
|
+
}
|
|
311
|
+
if (requestParameters['vid'] == null) {
|
|
312
|
+
throw new runtime.RequiredError('vid', 'Required parameter "vid" was null or undefined when calling deleteVCenter().');
|
|
313
|
+
}
|
|
314
|
+
const queryParameters = {};
|
|
315
|
+
const headerParameters = {};
|
|
316
|
+
let urlPath = `/api/v2/assessments/{id}/vcenters/{vid}`;
|
|
317
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
318
|
+
urlPath = urlPath.replace('{vid}', encodeURIComponent(String(requestParameters['vid'])));
|
|
319
|
+
return {
|
|
320
|
+
path: urlPath,
|
|
321
|
+
method: 'DELETE',
|
|
322
|
+
headers: headerParameters,
|
|
323
|
+
query: queryParameters,
|
|
324
|
+
};
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Delete the specified vcenter inventory
|
|
329
|
+
*/
|
|
330
|
+
deleteVCenterRaw(requestParameters, initOverrides) {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
const requestOptions = yield this.deleteVCenterRequestOpts(requestParameters);
|
|
333
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
334
|
+
return new runtime.VoidApiResponse(response);
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Delete the specified vcenter inventory
|
|
339
|
+
*/
|
|
340
|
+
deleteVCenter(requestParameters, initOverrides) {
|
|
341
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
342
|
+
yield this.deleteVCenterRaw(requestParameters, initOverrides);
|
|
343
|
+
});
|
|
344
|
+
}
|
|
303
345
|
/**
|
|
304
346
|
* Creates request options for getAssessment without sending the request
|
|
305
347
|
*/
|
|
@@ -79,6 +79,16 @@ export interface DeleteAssessmentRequest {
|
|
|
79
79
|
*/
|
|
80
80
|
id: string;
|
|
81
81
|
}
|
|
82
|
+
export interface DeleteVCenterRequest {
|
|
83
|
+
/**
|
|
84
|
+
* ID of the assessment
|
|
85
|
+
*/
|
|
86
|
+
id: string;
|
|
87
|
+
/**
|
|
88
|
+
* ID of the vcenter
|
|
89
|
+
*/
|
|
90
|
+
vid: string;
|
|
91
|
+
}
|
|
82
92
|
export interface GetAssessmentRequest {
|
|
83
93
|
/**
|
|
84
94
|
* ID of the assessment
|
|
@@ -292,6 +302,27 @@ export interface AssessmentApiInterface {
|
|
|
292
302
|
* Delete an assessment
|
|
293
303
|
*/
|
|
294
304
|
deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
305
|
+
/**
|
|
306
|
+
* Creates request options for deleteVCenter without sending the request
|
|
307
|
+
* @param {string} id ID of the assessment
|
|
308
|
+
* @param {string} vid ID of the vcenter
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
* @memberof AssessmentApiInterface
|
|
311
|
+
*/
|
|
312
|
+
deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
|
|
313
|
+
/**
|
|
314
|
+
* Delete the specified vcenter inventory
|
|
315
|
+
* @param {string} id ID of the assessment
|
|
316
|
+
* @param {string} vid ID of the vcenter
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
* @memberof AssessmentApiInterface
|
|
320
|
+
*/
|
|
321
|
+
deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
322
|
+
/**
|
|
323
|
+
* Delete the specified vcenter inventory
|
|
324
|
+
*/
|
|
325
|
+
deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
295
326
|
/**
|
|
296
327
|
* Creates request options for getAssessment without sending the request
|
|
297
328
|
* @param {string} id ID of the assessment
|
|
@@ -605,6 +636,18 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
605
636
|
* Delete an assessment
|
|
606
637
|
*/
|
|
607
638
|
deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
639
|
+
/**
|
|
640
|
+
* Creates request options for deleteVCenter without sending the request
|
|
641
|
+
*/
|
|
642
|
+
deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
|
|
643
|
+
/**
|
|
644
|
+
* Delete the specified vcenter inventory
|
|
645
|
+
*/
|
|
646
|
+
deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
647
|
+
/**
|
|
648
|
+
* Delete the specified vcenter inventory
|
|
649
|
+
*/
|
|
650
|
+
deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
608
651
|
/**
|
|
609
652
|
* Creates request options for getAssessment without sending the request
|
|
610
653
|
*/
|
|
@@ -297,6 +297,48 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
297
297
|
return yield response.value();
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* Creates request options for deleteVCenter without sending the request
|
|
302
|
+
*/
|
|
303
|
+
deleteVCenterRequestOpts(requestParameters) {
|
|
304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
if (requestParameters['id'] == null) {
|
|
306
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteVCenter().');
|
|
307
|
+
}
|
|
308
|
+
if (requestParameters['vid'] == null) {
|
|
309
|
+
throw new runtime.RequiredError('vid', 'Required parameter "vid" was null or undefined when calling deleteVCenter().');
|
|
310
|
+
}
|
|
311
|
+
const queryParameters = {};
|
|
312
|
+
const headerParameters = {};
|
|
313
|
+
let urlPath = `/api/v2/assessments/{id}/vcenters/{vid}`;
|
|
314
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
315
|
+
urlPath = urlPath.replace('{vid}', encodeURIComponent(String(requestParameters['vid'])));
|
|
316
|
+
return {
|
|
317
|
+
path: urlPath,
|
|
318
|
+
method: 'DELETE',
|
|
319
|
+
headers: headerParameters,
|
|
320
|
+
query: queryParameters,
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Delete the specified vcenter inventory
|
|
326
|
+
*/
|
|
327
|
+
deleteVCenterRaw(requestParameters, initOverrides) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
const requestOptions = yield this.deleteVCenterRequestOpts(requestParameters);
|
|
330
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
331
|
+
return new runtime.VoidApiResponse(response);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Delete the specified vcenter inventory
|
|
336
|
+
*/
|
|
337
|
+
deleteVCenter(requestParameters, initOverrides) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
yield this.deleteVCenterRaw(requestParameters, initOverrides);
|
|
340
|
+
});
|
|
341
|
+
}
|
|
300
342
|
/**
|
|
301
343
|
* Creates request options for getAssessment without sending the request
|
|
302
344
|
*/
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
13
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -47,6 +49,14 @@ export interface Host {
|
|
|
47
49
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
48
50
|
*/
|
|
49
51
|
storageVmotionSupported?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
54
|
+
*/
|
|
55
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
56
|
+
/**
|
|
57
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
58
|
+
*/
|
|
59
|
+
storageLuns?: Array<HostStorageLun>;
|
|
50
60
|
}
|
|
51
61
|
/**
|
|
52
62
|
* Check if a given object implements the Host interface.
|
package/dist/esm/models/Host.js
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { HostStorageAdapterFromJSON, HostStorageAdapterToJSON, } from './HostStorageAdapter.js';
|
|
15
|
+
import { HostStorageLunFromJSON, HostStorageLunToJSON, } from './HostStorageLun.js';
|
|
14
16
|
/**
|
|
15
17
|
* Check if a given object implements the Host interface.
|
|
16
18
|
*/
|
|
@@ -37,6 +39,8 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
39
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
38
40
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
39
41
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
42
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapterFromJSON)),
|
|
43
|
+
'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLunFromJSON)),
|
|
40
44
|
};
|
|
41
45
|
}
|
|
42
46
|
export function HostToJSON(json) {
|
|
@@ -55,5 +59,7 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
59
|
'memoryMB': value['memoryMB'],
|
|
56
60
|
'vmotionSupported': value['vmotionSupported'],
|
|
57
61
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
62
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapterToJSON)),
|
|
63
|
+
'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLunToJSON)),
|
|
58
64
|
};
|
|
59
65
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
* Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HostStorageAdapter
|
|
16
|
+
*/
|
|
17
|
+
export interface HostStorageAdapter {
|
|
18
|
+
/**
|
|
19
|
+
* Host-local adapter device name.
|
|
20
|
+
*/
|
|
21
|
+
device?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Source adapter key; distinct from device name.
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Adapter type as supplied by the source.
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Adapter protocol as supplied by the source.
|
|
32
|
+
*/
|
|
33
|
+
protocol?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Adapter model.
|
|
36
|
+
*/
|
|
37
|
+
model?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Adapter driver.
|
|
40
|
+
*/
|
|
41
|
+
driver?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Node WWN as identifier text, preserving leading zeros.
|
|
44
|
+
*/
|
|
45
|
+
nodeWwn?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Port WWN as identifier text, preserving leading zeros.
|
|
48
|
+
*/
|
|
49
|
+
portWwn?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter;
|
|
55
|
+
export declare function HostStorageAdapterFromJSON(json: any): HostStorageAdapter;
|
|
56
|
+
export declare function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter;
|
|
57
|
+
export declare function HostStorageAdapterToJSON(json: any): HostStorageAdapter;
|
|
58
|
+
export declare function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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 HostStorageAdapter interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHostStorageAdapter(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function HostStorageAdapterFromJSON(json) {
|
|
21
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function HostStorageAdapterFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
29
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
30
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
31
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
32
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
33
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
34
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
35
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function HostStorageAdapterToJSON(json) {
|
|
39
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function HostStorageAdapterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'device': value['device'],
|
|
47
|
+
'key': value['key'],
|
|
48
|
+
'type': value['type'],
|
|
49
|
+
'protocol': value['protocol'],
|
|
50
|
+
'model': value['model'],
|
|
51
|
+
'driver': value['driver'],
|
|
52
|
+
'nodeWwn': value['nodeWwn'],
|
|
53
|
+
'portWwn': value['portWwn'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
* A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HostStorageLun
|
|
16
|
+
*/
|
|
17
|
+
export interface HostStorageLun {
|
|
18
|
+
/**
|
|
19
|
+
* Canonical device name, distinct from the LUN UUID.
|
|
20
|
+
*/
|
|
21
|
+
canonicalName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Source SCSI disk key.
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source-provided LUN UUID; never inferred from the device name or key.
|
|
28
|
+
*/
|
|
29
|
+
lunUuid?: string;
|
|
30
|
+
/**
|
|
31
|
+
* LUN vendor.
|
|
32
|
+
*/
|
|
33
|
+
vendor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN model.
|
|
36
|
+
*/
|
|
37
|
+
model?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
|
|
40
|
+
*/
|
|
41
|
+
adapterDevices?: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfHostStorageLun(value: object): value is HostStorageLun;
|
|
47
|
+
export declare function HostStorageLunFromJSON(json: any): HostStorageLun;
|
|
48
|
+
export declare function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun;
|
|
49
|
+
export declare function HostStorageLunToJSON(json: any): HostStorageLun;
|
|
50
|
+
export declare function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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 HostStorageLun interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHostStorageLun(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function HostStorageLunFromJSON(json) {
|
|
21
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function HostStorageLunFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
29
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
30
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
31
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
32
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
33
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function HostStorageLunToJSON(json) {
|
|
37
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function HostStorageLunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'canonicalName': value['canonicalName'],
|
|
45
|
+
'key': value['key'],
|
|
46
|
+
'lunUuid': value['lunUuid'],
|
|
47
|
+
'vendor': value['vendor'],
|
|
48
|
+
'model': value['model'],
|
|
49
|
+
'adapterDevices': value['adapterDevices'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -27,6 +27,10 @@ export interface OsInfo {
|
|
|
27
27
|
* OS support tier per Red Hat KCS article 4234591
|
|
28
28
|
*/
|
|
29
29
|
supportTier?: OsInfoSupportTierEnum;
|
|
30
|
+
/**
|
|
31
|
+
* MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
|
|
32
|
+
*/
|
|
33
|
+
mtvStatus?: OsInfoMtvStatusEnum;
|
|
30
34
|
/**
|
|
31
35
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
32
36
|
*/
|
|
@@ -42,6 +46,14 @@ export declare const OsInfoSupportTierEnum: {
|
|
|
42
46
|
readonly SpecialHandling: "special_handling";
|
|
43
47
|
};
|
|
44
48
|
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const OsInfoMtvStatusEnum: {
|
|
53
|
+
readonly Green: "green";
|
|
54
|
+
readonly Blue: "blue";
|
|
55
|
+
};
|
|
56
|
+
export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
|
|
45
57
|
/**
|
|
46
58
|
* Check if a given object implements the OsInfo interface.
|
|
47
59
|
*/
|
|
@@ -20,6 +20,13 @@ export const OsInfoSupportTierEnum = {
|
|
|
20
20
|
CommunitySupported: 'community_supported',
|
|
21
21
|
SpecialHandling: 'special_handling',
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const OsInfoMtvStatusEnum = {
|
|
27
|
+
Green: 'green',
|
|
28
|
+
Blue: 'blue',
|
|
29
|
+
};
|
|
23
30
|
/**
|
|
24
31
|
* Check if a given object implements the OsInfo interface.
|
|
25
32
|
*/
|
|
@@ -41,6 +48,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
48
|
'count': json['count'],
|
|
42
49
|
'supported': json['supported'],
|
|
43
50
|
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
51
|
+
'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
|
|
44
52
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
45
53
|
};
|
|
46
54
|
}
|
|
@@ -55,6 +63,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
63
|
'count': value['count'],
|
|
56
64
|
'supported': value['supported'],
|
|
57
65
|
'supportTier': value['supportTier'],
|
|
66
|
+
'mtvStatus': value['mtvStatus'],
|
|
58
67
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
59
68
|
};
|
|
60
69
|
}
|
|
@@ -36,6 +36,8 @@ export * from './GroupCreate.js';
|
|
|
36
36
|
export * from './GroupUpdate.js';
|
|
37
37
|
export * from './Histogram.js';
|
|
38
38
|
export * from './Host.js';
|
|
39
|
+
export * from './HostStorageAdapter.js';
|
|
40
|
+
export * from './HostStorageLun.js';
|
|
39
41
|
export * from './Identity.js';
|
|
40
42
|
export * from './Info.js';
|
|
41
43
|
export * from './Infra.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -38,6 +38,8 @@ export * from './GroupCreate.js';
|
|
|
38
38
|
export * from './GroupUpdate.js';
|
|
39
39
|
export * from './Histogram.js';
|
|
40
40
|
export * from './Host.js';
|
|
41
|
+
export * from './HostStorageAdapter.js';
|
|
42
|
+
export * from './HostStorageLun.js';
|
|
41
43
|
export * from './Identity.js';
|
|
42
44
|
export * from './Info.js';
|
|
43
45
|
export * from './Infra.js';
|
package/dist/models/Host.d.ts
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
13
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -47,6 +49,14 @@ export interface Host {
|
|
|
47
49
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
48
50
|
*/
|
|
49
51
|
storageVmotionSupported?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
54
|
+
*/
|
|
55
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
56
|
+
/**
|
|
57
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
58
|
+
*/
|
|
59
|
+
storageLuns?: Array<HostStorageLun>;
|
|
50
60
|
}
|
|
51
61
|
/**
|
|
52
62
|
* Check if a given object implements the Host interface.
|
package/dist/models/Host.js
CHANGED
|
@@ -18,6 +18,8 @@ exports.HostFromJSON = HostFromJSON;
|
|
|
18
18
|
exports.HostFromJSONTyped = HostFromJSONTyped;
|
|
19
19
|
exports.HostToJSON = HostToJSON;
|
|
20
20
|
exports.HostToJSONTyped = HostToJSONTyped;
|
|
21
|
+
const HostStorageAdapter_js_1 = require("./HostStorageAdapter.js");
|
|
22
|
+
const HostStorageLun_js_1 = require("./HostStorageLun.js");
|
|
21
23
|
/**
|
|
22
24
|
* Check if a given object implements the Host interface.
|
|
23
25
|
*/
|
|
@@ -44,6 +46,8 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
45
47
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
46
48
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
49
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterFromJSON)),
|
|
50
|
+
'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLun_js_1.HostStorageLunFromJSON)),
|
|
47
51
|
};
|
|
48
52
|
}
|
|
49
53
|
function HostToJSON(json) {
|
|
@@ -62,5 +66,7 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
66
|
'memoryMB': value['memoryMB'],
|
|
63
67
|
'vmotionSupported': value['vmotionSupported'],
|
|
64
68
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
69
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterToJSON)),
|
|
70
|
+
'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLun_js_1.HostStorageLunToJSON)),
|
|
65
71
|
};
|
|
66
72
|
}
|