@openshift-migration-advisor/planner-sdk 0.31.0-399d228f1c9b → 0.31.0-91e05c592d36
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 +44 -0
- package/dist/esm/apis/AssessmentApi.d.ts +43 -0
- package/dist/esm/apis/AssessmentApi.js +44 -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 +76 -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 +90 -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.31.0-
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.31.0-91e05c592d36
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -79,6 +79,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
79
79
|
*AssessmentApi* | [**shareAssessment**](docs/AssessmentApi.md#shareassessment) | **POST** /api/v1/assessments/{id}/share |
|
|
80
80
|
*AssessmentApi* | [**unshareAssessment**](docs/AssessmentApi.md#unshareassessment) | **DELETE** /api/v1/assessments/{id}/share |
|
|
81
81
|
*AssessmentApi* | [**updateAssessment**](docs/AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} |
|
|
82
|
+
*AssessmentApi* | [**updateAssessmentV2**](docs/AssessmentApi.md#updateassessmentv2) | **PATCH** /api/v2/assessments/{id} |
|
|
82
83
|
*HealthApi* | [**health**](docs/HealthApi.md#health) | **GET** /health |
|
|
83
84
|
*ImageApi* | [**getSourceDownloadURL**](docs/ImageApi.md#getsourcedownloadurl) | **GET** /api/v1/sources/{id}/image-url |
|
|
84
85
|
*ImageApi* | [**headImage**](docs/ImageApi.md#headimage) | **HEAD** /api/v1/sources/{id}/image |
|
|
@@ -147,6 +148,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
147
148
|
- [GroupUpdate](docs/GroupUpdate.md)
|
|
148
149
|
- [Histogram](docs/Histogram.md)
|
|
149
150
|
- [Host](docs/Host.md)
|
|
151
|
+
- [HostStorageAdapter](docs/HostStorageAdapter.md)
|
|
152
|
+
- [HostStorageLun](docs/HostStorageLun.md)
|
|
150
153
|
- [Identity](docs/Identity.md)
|
|
151
154
|
- [Info](docs/Info.md)
|
|
152
155
|
- [Infra](docs/Infra.md)
|
|
@@ -218,7 +221,7 @@ and is automatically generated by the
|
|
|
218
221
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
219
222
|
|
|
220
223
|
- API version: `v1alpha1`
|
|
221
|
-
- Package version: `0.31.0-
|
|
224
|
+
- Package version: `0.31.0-91e05c592d36`
|
|
222
225
|
- Generator version: `7.28.0-SNAPSHOT`
|
|
223
226
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
224
227
|
|
|
@@ -173,6 +173,16 @@ export interface UpdateAssessmentRequest {
|
|
|
173
173
|
*/
|
|
174
174
|
assessmentUpdate: AssessmentUpdate;
|
|
175
175
|
}
|
|
176
|
+
export interface UpdateAssessmentV2Request {
|
|
177
|
+
/**
|
|
178
|
+
* ID of the assessment
|
|
179
|
+
*/
|
|
180
|
+
id: string;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
*/
|
|
184
|
+
assessmentUpdate: AssessmentUpdate;
|
|
185
|
+
}
|
|
176
186
|
/**
|
|
177
187
|
* AssessmentApi - interface
|
|
178
188
|
*
|
|
@@ -559,6 +569,27 @@ export interface AssessmentApiInterface {
|
|
|
559
569
|
* Update an assessment
|
|
560
570
|
*/
|
|
561
571
|
updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
572
|
+
/**
|
|
573
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
574
|
+
* @param {string} id ID of the assessment
|
|
575
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
* @memberof AssessmentApiInterface
|
|
578
|
+
*/
|
|
579
|
+
updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
|
|
580
|
+
/**
|
|
581
|
+
* Update the assessment name
|
|
582
|
+
* @param {string} id ID of the assessment
|
|
583
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
* @memberof AssessmentApiInterface
|
|
587
|
+
*/
|
|
588
|
+
updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
|
|
589
|
+
/**
|
|
590
|
+
* Update the assessment name
|
|
591
|
+
*/
|
|
592
|
+
updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
|
|
562
593
|
}
|
|
563
594
|
/**
|
|
564
595
|
*
|
|
@@ -792,4 +823,16 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
792
823
|
* Update an assessment
|
|
793
824
|
*/
|
|
794
825
|
updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
826
|
+
/**
|
|
827
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
828
|
+
*/
|
|
829
|
+
updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
|
|
830
|
+
/**
|
|
831
|
+
* Update the assessment name
|
|
832
|
+
*/
|
|
833
|
+
updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
|
|
834
|
+
/**
|
|
835
|
+
* Update the assessment name
|
|
836
|
+
*/
|
|
837
|
+
updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
|
|
795
838
|
}
|
|
@@ -830,5 +830,49 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
830
830
|
return yield response.value();
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
+
/**
|
|
834
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
835
|
+
*/
|
|
836
|
+
updateAssessmentV2RequestOpts(requestParameters) {
|
|
837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
838
|
+
if (requestParameters['id'] == null) {
|
|
839
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAssessmentV2().');
|
|
840
|
+
}
|
|
841
|
+
if (requestParameters['assessmentUpdate'] == null) {
|
|
842
|
+
throw new runtime.RequiredError('assessmentUpdate', 'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessmentV2().');
|
|
843
|
+
}
|
|
844
|
+
const queryParameters = {};
|
|
845
|
+
const headerParameters = {};
|
|
846
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
847
|
+
let urlPath = `/api/v2/assessments/{id}`;
|
|
848
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
849
|
+
return {
|
|
850
|
+
path: urlPath,
|
|
851
|
+
method: 'PATCH',
|
|
852
|
+
headers: headerParameters,
|
|
853
|
+
query: queryParameters,
|
|
854
|
+
body: (0, AssessmentUpdate_js_1.AssessmentUpdateToJSON)(requestParameters['assessmentUpdate']),
|
|
855
|
+
};
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Update the assessment name
|
|
860
|
+
*/
|
|
861
|
+
updateAssessmentV2Raw(requestParameters, initOverrides) {
|
|
862
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
863
|
+
const requestOptions = yield this.updateAssessmentV2RequestOpts(requestParameters);
|
|
864
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
865
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AssessmentV2_js_1.AssessmentV2FromJSON)(jsonValue));
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Update the assessment name
|
|
870
|
+
*/
|
|
871
|
+
updateAssessmentV2(requestParameters, initOverrides) {
|
|
872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
873
|
+
const response = yield this.updateAssessmentV2Raw(requestParameters, initOverrides);
|
|
874
|
+
return yield response.value();
|
|
875
|
+
});
|
|
876
|
+
}
|
|
833
877
|
}
|
|
834
878
|
exports.AssessmentApi = AssessmentApi;
|
|
@@ -173,6 +173,16 @@ export interface UpdateAssessmentRequest {
|
|
|
173
173
|
*/
|
|
174
174
|
assessmentUpdate: AssessmentUpdate;
|
|
175
175
|
}
|
|
176
|
+
export interface UpdateAssessmentV2Request {
|
|
177
|
+
/**
|
|
178
|
+
* ID of the assessment
|
|
179
|
+
*/
|
|
180
|
+
id: string;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
*/
|
|
184
|
+
assessmentUpdate: AssessmentUpdate;
|
|
185
|
+
}
|
|
176
186
|
/**
|
|
177
187
|
* AssessmentApi - interface
|
|
178
188
|
*
|
|
@@ -559,6 +569,27 @@ export interface AssessmentApiInterface {
|
|
|
559
569
|
* Update an assessment
|
|
560
570
|
*/
|
|
561
571
|
updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
572
|
+
/**
|
|
573
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
574
|
+
* @param {string} id ID of the assessment
|
|
575
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
* @memberof AssessmentApiInterface
|
|
578
|
+
*/
|
|
579
|
+
updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
|
|
580
|
+
/**
|
|
581
|
+
* Update the assessment name
|
|
582
|
+
* @param {string} id ID of the assessment
|
|
583
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
* @memberof AssessmentApiInterface
|
|
587
|
+
*/
|
|
588
|
+
updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
|
|
589
|
+
/**
|
|
590
|
+
* Update the assessment name
|
|
591
|
+
*/
|
|
592
|
+
updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
|
|
562
593
|
}
|
|
563
594
|
/**
|
|
564
595
|
*
|
|
@@ -792,4 +823,16 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
792
823
|
* Update an assessment
|
|
793
824
|
*/
|
|
794
825
|
updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
826
|
+
/**
|
|
827
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
828
|
+
*/
|
|
829
|
+
updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
|
|
830
|
+
/**
|
|
831
|
+
* Update the assessment name
|
|
832
|
+
*/
|
|
833
|
+
updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
|
|
834
|
+
/**
|
|
835
|
+
* Update the assessment name
|
|
836
|
+
*/
|
|
837
|
+
updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
|
|
795
838
|
}
|
|
@@ -827,4 +827,48 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
827
827
|
return yield response.value();
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
|
+
/**
|
|
831
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
832
|
+
*/
|
|
833
|
+
updateAssessmentV2RequestOpts(requestParameters) {
|
|
834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
835
|
+
if (requestParameters['id'] == null) {
|
|
836
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAssessmentV2().');
|
|
837
|
+
}
|
|
838
|
+
if (requestParameters['assessmentUpdate'] == null) {
|
|
839
|
+
throw new runtime.RequiredError('assessmentUpdate', 'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessmentV2().');
|
|
840
|
+
}
|
|
841
|
+
const queryParameters = {};
|
|
842
|
+
const headerParameters = {};
|
|
843
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
844
|
+
let urlPath = `/api/v2/assessments/{id}`;
|
|
845
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
846
|
+
return {
|
|
847
|
+
path: urlPath,
|
|
848
|
+
method: 'PATCH',
|
|
849
|
+
headers: headerParameters,
|
|
850
|
+
query: queryParameters,
|
|
851
|
+
body: AssessmentUpdateToJSON(requestParameters['assessmentUpdate']),
|
|
852
|
+
};
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Update the assessment name
|
|
857
|
+
*/
|
|
858
|
+
updateAssessmentV2Raw(requestParameters, initOverrides) {
|
|
859
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
860
|
+
const requestOptions = yield this.updateAssessmentV2RequestOpts(requestParameters);
|
|
861
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
862
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AssessmentV2FromJSON(jsonValue));
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Update the assessment name
|
|
867
|
+
*/
|
|
868
|
+
updateAssessmentV2(requestParameters, initOverrides) {
|
|
869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
870
|
+
const response = yield this.updateAssessmentV2Raw(requestParameters, initOverrides);
|
|
871
|
+
return yield response.value();
|
|
872
|
+
});
|
|
873
|
+
}
|
|
830
874
|
}
|
|
@@ -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
|
}
|