@openshift-migration-advisor/planner-sdk 0.29.0 → 0.31.0-3530a4e580e1
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/.openapi-generator/VERSION +1 -1
- package/README.md +6 -3
- 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/AssessmentV2.d.ts +1 -1
- package/dist/esm/models/AssessmentV2.js +3 -3
- package/dist/esm/models/Datastore.d.ts +14 -2
- package/dist/esm/models/Datastore.js +6 -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/Inventory.d.ts +5 -1
- package/dist/esm/models/Inventory.js +2 -0
- package/dist/esm/models/InventoryV2.d.ts +4 -0
- package/dist/esm/models/InventoryV2.js +2 -0
- package/dist/esm/models/VsphereCoreInput.d.ts +8 -0
- package/dist/esm/models/VsphereCoreInput.js +4 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/AssessmentV2.d.ts +1 -1
- package/dist/models/AssessmentV2.js +3 -3
- package/dist/models/Datastore.d.ts +14 -2
- package/dist/models/Datastore.js +6 -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/Inventory.d.ts +5 -1
- package/dist/models/Inventory.js +2 -0
- package/dist/models/InventoryV2.d.ts +4 -0
- package/dist/models/InventoryV2.js +2 -0
- package/dist/models/VsphereCoreInput.d.ts +8 -0
- package/dist/models/VsphereCoreInput.js +4 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/AssessmentApi.md +75 -0
- package/docs/AssessmentV2.md +2 -2
- package/docs/Datastore.md +6 -0
- package/docs/Host.md +4 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/Inventory.md +2 -0
- package/docs/InventoryV2.md +2 -0
- package/docs/JobApi.md +2 -0
- package/docs/VsphereCoreInput.md +4 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +87 -0
- package/src/models/AssessmentV2.ts +4 -4
- package/src/models/Datastore.ts +20 -2
- package/src/models/Host.ts +27 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Inventory.ts +7 -1
- package/src/models/InventoryV2.ts +6 -0
- package/src/models/VsphereCoreInput.ts +12 -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.28.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.31.0-3530a4e580e1
|
|
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,8 +220,8 @@ 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.
|
|
221
|
-
- Generator version: `7.
|
|
223
|
+
- Package version: `0.31.0-3530a4e580e1`
|
|
224
|
+
- Generator version: `7.28.0-SNAPSHOT`
|
|
222
225
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
223
226
|
|
|
224
227
|
The generated npm module supports the following:
|
|
@@ -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
|
*/
|
|
@@ -19,7 +19,7 @@ import { SubResourceFromJSON, SubResourceToJSON, } from './SubResource.js';
|
|
|
19
19
|
export function instanceOfAssessmentV2(value) {
|
|
20
20
|
if (!('data' in value) || value['data'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if (!('
|
|
22
|
+
if (!('vcenters' in value) || value['vcenters'] === undefined)
|
|
23
23
|
return false;
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
@@ -32,7 +32,7 @@ export function AssessmentV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'data': InventoryV2FromJSON(json['data']),
|
|
35
|
-
'
|
|
35
|
+
'vcenters': (json['vcenters'].map(SubResourceFromJSON)),
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
export function AssessmentV2ToJSON(json) {
|
|
@@ -44,6 +44,6 @@ export function AssessmentV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
46
|
'data': InventoryV2ToJSON(value['data']),
|
|
47
|
-
'
|
|
47
|
+
'vcenters': (value['vcenters'].map(SubResourceToJSON)),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -20,6 +20,18 @@ export interface Datastore {
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
type: string;
|
|
23
|
+
/**
|
|
24
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
25
|
+
*/
|
|
26
|
+
backingDeviceIds?: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
|
|
29
|
+
*/
|
|
30
|
+
filesystemType?: string;
|
|
31
|
+
/**
|
|
32
|
+
* VMFS major version when reported; omitted when unknown or not applicable
|
|
33
|
+
*/
|
|
34
|
+
filesystemMajorVersion?: number;
|
|
23
35
|
/**
|
|
24
36
|
* Storage access category derived from Datastore.Type
|
|
25
37
|
*/
|
|
@@ -37,7 +49,7 @@ export interface Datastore {
|
|
|
37
49
|
*/
|
|
38
50
|
freeCapacityGB: number;
|
|
39
51
|
/**
|
|
40
|
-
*
|
|
52
|
+
* Vendor reported by matching backing devices when available
|
|
41
53
|
*/
|
|
42
54
|
vendor: string;
|
|
43
55
|
/**
|
|
@@ -53,7 +65,7 @@ export interface Datastore {
|
|
|
53
65
|
*/
|
|
54
66
|
protocolType: string;
|
|
55
67
|
/**
|
|
56
|
-
*
|
|
68
|
+
* Model reported by matching backing devices when available
|
|
57
69
|
*/
|
|
58
70
|
model: string;
|
|
59
71
|
/**
|
|
@@ -51,6 +51,9 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
53
|
'type': json['type'],
|
|
54
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
55
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
56
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
54
57
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
55
58
|
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
56
59
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
@@ -73,6 +76,9 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
76
|
}
|
|
74
77
|
return {
|
|
75
78
|
'type': value['type'],
|
|
79
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
80
|
+
'filesystemType': value['filesystemType'],
|
|
81
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
76
82
|
'storageProtocol': value['storageProtocol'],
|
|
77
83
|
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
78
84
|
'totalCapacityGB': value['totalCapacityGB'],
|
|
@@ -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
|
+
}
|
|
@@ -35,9 +35,13 @@ export interface Inventory {
|
|
|
35
35
|
*/
|
|
36
36
|
vcenter?: InventoryData;
|
|
37
37
|
/**
|
|
38
|
-
* Timestamp when the inventory
|
|
38
|
+
* Timestamp when the inventory document was built
|
|
39
39
|
*/
|
|
40
40
|
createdAt?: Date;
|
|
41
|
+
/**
|
|
42
|
+
* Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
|
|
43
|
+
*/
|
|
44
|
+
collectionTime?: Date | null;
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Check if a given object implements the Inventory interface.
|