@openshift-migration-advisor/planner-sdk 0.29.0 → 0.31.0-399d228f1c9b
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/VERSION +1 -1
- package/README.md +4 -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/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/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/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/docs/AssessmentApi.md +75 -0
- package/docs/AssessmentV2.md +2 -2
- package/docs/Datastore.md +6 -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/Inventory.ts +7 -1
- package/src/models/InventoryV2.ts +6 -0
- package/src/models/VsphereCoreInput.ts +12 -0
|
@@ -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-399d228f1c9b
|
|
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 |
|
|
@@ -217,8 +218,8 @@ and is automatically generated by the
|
|
|
217
218
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
218
219
|
|
|
219
220
|
- API version: `v1alpha1`
|
|
220
|
-
- Package version: `0.
|
|
221
|
-
- Generator version: `7.
|
|
221
|
+
- Package version: `0.31.0-399d228f1c9b`
|
|
222
|
+
- Generator version: `7.28.0-SNAPSHOT`
|
|
222
223
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
223
224
|
|
|
224
225
|
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'],
|
|
@@ -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.
|
|
@@ -36,6 +36,7 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
37
37
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
38
38
|
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
39
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
export function InventoryToJSON(json) {
|
|
@@ -51,5 +52,6 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
52
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
52
53
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
53
54
|
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
55
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -32,6 +32,10 @@ export interface InventoryV2 {
|
|
|
32
32
|
* Timestamp when the inventory data was created or collected
|
|
33
33
|
*/
|
|
34
34
|
createdAt?: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Oldest known source collection time. Null when unknown.
|
|
37
|
+
*/
|
|
38
|
+
collectionTime?: Date | null;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Check if a given object implements the InventoryV2 interface.
|
|
@@ -35,6 +35,7 @@ export function InventoryV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'data': InventoryDataFromJSON(json['data']),
|
|
36
36
|
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
37
37
|
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
38
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
export function InventoryV2ToJSON(json) {
|
|
@@ -49,5 +50,6 @@ export function InventoryV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
50
|
'data': InventoryDataToJSON(value['data']),
|
|
50
51
|
'vcenter_version': value['vcenterVersion'],
|
|
51
52
|
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
53
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
52
54
|
};
|
|
53
55
|
}
|
|
@@ -27,6 +27,14 @@ export interface VsphereCoreInput {
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
srmEnabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether Network I/O Control is enabled
|
|
32
|
+
*/
|
|
33
|
+
niocEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* How NIOC is configured and which traffic is prioritized
|
|
36
|
+
*/
|
|
37
|
+
niocDetails?: string;
|
|
30
38
|
}
|
|
31
39
|
/**
|
|
32
40
|
* Check if a given object implements the VsphereCoreInput interface.
|
|
@@ -28,6 +28,8 @@ export function VsphereCoreInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
|
|
29
29
|
'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
|
|
30
30
|
'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
|
|
31
|
+
'niocEnabled': json['niocEnabled'] == null ? undefined : json['niocEnabled'],
|
|
32
|
+
'niocDetails': json['niocDetails'] == null ? undefined : json['niocDetails'],
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
export function VsphereCoreInputToJSON(json) {
|
|
@@ -41,5 +43,7 @@ export function VsphereCoreInputToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
41
43
|
'vmEncryptionEnabled': value['vmEncryptionEnabled'],
|
|
42
44
|
'vmEncryptionPolicy': value['vmEncryptionPolicy'],
|
|
43
45
|
'srmEnabled': value['srmEnabled'],
|
|
46
|
+
'niocEnabled': value['niocEnabled'],
|
|
47
|
+
'niocDetails': value['niocDetails'],
|
|
44
48
|
};
|
|
45
49
|
}
|
|
@@ -26,7 +26,7 @@ const SubResource_js_1 = require("./SubResource.js");
|
|
|
26
26
|
function instanceOfAssessmentV2(value) {
|
|
27
27
|
if (!('data' in value) || value['data'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('vcenters' in value) || value['vcenters'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
@@ -39,7 +39,7 @@ function AssessmentV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'data': (0, InventoryV2_js_1.InventoryV2FromJSON)(json['data']),
|
|
42
|
-
'
|
|
42
|
+
'vcenters': (json['vcenters'].map(SubResource_js_1.SubResourceFromJSON)),
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
function AssessmentV2ToJSON(json) {
|
|
@@ -51,6 +51,6 @@ function AssessmentV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
53
|
'data': (0, InventoryV2_js_1.InventoryV2ToJSON)(value['data']),
|
|
54
|
-
'
|
|
54
|
+
'vcenters': (value['vcenters'].map(SubResource_js_1.SubResourceToJSON)),
|
|
55
55
|
};
|
|
56
56
|
}
|
|
@@ -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
|
/**
|
package/dist/models/Datastore.js
CHANGED
|
@@ -59,6 +59,9 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
61
61
|
'type': json['type'],
|
|
62
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
63
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
64
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
62
65
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
63
66
|
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
64
67
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
@@ -81,6 +84,9 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
84
|
}
|
|
82
85
|
return {
|
|
83
86
|
'type': value['type'],
|
|
87
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
88
|
+
'filesystemType': value['filesystemType'],
|
|
89
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
84
90
|
'storageProtocol': value['storageProtocol'],
|
|
85
91
|
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
86
92
|
'totalCapacityGB': value['totalCapacityGB'],
|
|
@@ -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.
|
package/dist/models/Inventory.js
CHANGED
|
@@ -43,6 +43,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
44
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
45
45
|
'createdAt': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
46
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
function InventoryToJSON(json) {
|
|
@@ -58,5 +59,6 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
59
|
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
59
60
|
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
60
61
|
'created_at': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
62
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : (0, runtime_js_1.serializeDateTime)(value['collectionTime']),
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -32,6 +32,10 @@ export interface InventoryV2 {
|
|
|
32
32
|
* Timestamp when the inventory data was created or collected
|
|
33
33
|
*/
|
|
34
34
|
createdAt?: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Oldest known source collection time. Null when unknown.
|
|
37
|
+
*/
|
|
38
|
+
collectionTime?: Date | null;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Check if a given object implements the InventoryV2 interface.
|
|
@@ -42,6 +42,7 @@ function InventoryV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'data': (0, InventoryData_js_1.InventoryDataFromJSON)(json['data']),
|
|
43
43
|
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
44
44
|
'createdAt': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
45
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
function InventoryV2ToJSON(json) {
|
|
@@ -56,5 +57,6 @@ function InventoryV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
57
|
'data': (0, InventoryData_js_1.InventoryDataToJSON)(value['data']),
|
|
57
58
|
'vcenter_version': value['vcenterVersion'],
|
|
58
59
|
'created_at': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
60
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : (0, runtime_js_1.serializeDateTime)(value['collectionTime']),
|
|
59
61
|
};
|
|
60
62
|
}
|
|
@@ -27,6 +27,14 @@ export interface VsphereCoreInput {
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
srmEnabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether Network I/O Control is enabled
|
|
32
|
+
*/
|
|
33
|
+
niocEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* How NIOC is configured and which traffic is prioritized
|
|
36
|
+
*/
|
|
37
|
+
niocDetails?: string;
|
|
30
38
|
}
|
|
31
39
|
/**
|
|
32
40
|
* Check if a given object implements the VsphereCoreInput interface.
|
|
@@ -35,6 +35,8 @@ function VsphereCoreInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
|
|
36
36
|
'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
|
|
37
37
|
'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
|
|
38
|
+
'niocEnabled': json['niocEnabled'] == null ? undefined : json['niocEnabled'],
|
|
39
|
+
'niocDetails': json['niocDetails'] == null ? undefined : json['niocDetails'],
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
function VsphereCoreInputToJSON(json) {
|
|
@@ -48,5 +50,7 @@ function VsphereCoreInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
'vmEncryptionEnabled': value['vmEncryptionEnabled'],
|
|
49
51
|
'vmEncryptionPolicy': value['vmEncryptionPolicy'],
|
|
50
52
|
'srmEnabled': value['srmEnabled'],
|
|
53
|
+
'niocEnabled': value['niocEnabled'],
|
|
54
|
+
'niocDetails': value['niocDetails'],
|
|
51
55
|
};
|
|
52
56
|
}
|
package/docs/AssessmentApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
10
10
|
| [**calculateMigrationEstimationByComplexity**](AssessmentApi.md#calculatemigrationestimationbycomplexity) | **POST** /api/v1/assessments/{id}/migration-estimation/by-complexity | |
|
|
11
11
|
| [**createAssessment**](AssessmentApi.md#createassessment) | **POST** /api/v1/assessments | |
|
|
12
12
|
| [**deleteAssessment**](AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} | |
|
|
13
|
+
| [**deleteVCenter**](AssessmentApi.md#deletevcenter) | **DELETE** /api/v2/assessments/{id}/vcenters/{vid} | |
|
|
13
14
|
| [**getAssessment**](AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} | |
|
|
14
15
|
| [**getAssessmentClusterRequirementsStoredInput**](AssessmentApi.md#getassessmentclusterrequirementsstoredinput) | **GET** /api/v1/assessments/{id}/cluster-requirements/stored-input | |
|
|
15
16
|
| [**getAssessmentEnhancementData**](AssessmentApi.md#getassessmentenhancementdata) | **GET** /api/v1/assessments/{id}/enhancement-data | |
|
|
@@ -468,6 +469,80 @@ No authorization required
|
|
|
468
469
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
469
470
|
|
|
470
471
|
|
|
472
|
+
## deleteVCenter
|
|
473
|
+
|
|
474
|
+
> deleteVCenter(id, vid)
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
Delete the specified vcenter inventory
|
|
479
|
+
|
|
480
|
+
### Example
|
|
481
|
+
|
|
482
|
+
```ts
|
|
483
|
+
import {
|
|
484
|
+
Configuration,
|
|
485
|
+
AssessmentApi,
|
|
486
|
+
} from '@openshift-migration-advisor/planner-sdk';
|
|
487
|
+
import type { DeleteVCenterRequest } from '@openshift-migration-advisor/planner-sdk';
|
|
488
|
+
|
|
489
|
+
async function example() {
|
|
490
|
+
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
491
|
+
const api = new AssessmentApi();
|
|
492
|
+
|
|
493
|
+
const body = {
|
|
494
|
+
// string | ID of the assessment
|
|
495
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
496
|
+
// string | ID of the vcenter
|
|
497
|
+
vid: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
498
|
+
} satisfies DeleteVCenterRequest;
|
|
499
|
+
|
|
500
|
+
try {
|
|
501
|
+
const data = await api.deleteVCenter(body);
|
|
502
|
+
console.log(data);
|
|
503
|
+
} catch (error) {
|
|
504
|
+
console.error(error);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// Run the test
|
|
509
|
+
example().catch(console.error);
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
### Parameters
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
| Name | Type | Description | Notes |
|
|
516
|
+
|------------- | ------------- | ------------- | -------------|
|
|
517
|
+
| **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
|
|
518
|
+
| **vid** | `string` | ID of the vcenter | [Defaults to `undefined`] |
|
|
519
|
+
|
|
520
|
+
### Return type
|
|
521
|
+
|
|
522
|
+
`void` (Empty response body)
|
|
523
|
+
|
|
524
|
+
### Authorization
|
|
525
|
+
|
|
526
|
+
No authorization required
|
|
527
|
+
|
|
528
|
+
### HTTP request headers
|
|
529
|
+
|
|
530
|
+
- **Content-Type**: Not defined
|
|
531
|
+
- **Accept**: `application/json`
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
### HTTP response details
|
|
535
|
+
| Status code | Description | Response headers |
|
|
536
|
+
|-------------|-------------|------------------|
|
|
537
|
+
| **204** | OK | - |
|
|
538
|
+
| **401** | Unauthorized | - |
|
|
539
|
+
| **403** | Forbidden | - |
|
|
540
|
+
| **404** | NotFound | - |
|
|
541
|
+
| **500** | Internal error | - |
|
|
542
|
+
|
|
543
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
544
|
+
|
|
545
|
+
|
|
471
546
|
## getAssessment
|
|
472
547
|
|
|
473
548
|
> Assessment getAssessment(id)
|
package/docs/AssessmentV2.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`data` | [InventoryV2](InventoryV2.md)
|
|
10
|
-
`
|
|
10
|
+
`vcenters` | [Array<SubResource>](SubResource.md)
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ import type { AssessmentV2 } from '@openshift-migration-advisor/planner-sdk'
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"data": null,
|
|
20
|
-
"
|
|
20
|
+
"vcenters": null,
|
|
21
21
|
} satisfies AssessmentV2
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
package/docs/Datastore.md
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`type` | string
|
|
10
|
+
`backingDeviceIds` | Array<string>
|
|
11
|
+
`filesystemType` | string
|
|
12
|
+
`filesystemMajorVersion` | number
|
|
10
13
|
`storageProtocol` | string
|
|
11
14
|
`vsanSnapshotSupport` | boolean
|
|
12
15
|
`totalCapacityGB` | number
|
|
@@ -27,6 +30,9 @@ import type { Datastore } from '@openshift-migration-advisor/planner-sdk'
|
|
|
27
30
|
// TODO: Update the object below with actual values
|
|
28
31
|
const example = {
|
|
29
32
|
"type": null,
|
|
33
|
+
"backingDeviceIds": null,
|
|
34
|
+
"filesystemType": null,
|
|
35
|
+
"filesystemMajorVersion": null,
|
|
30
36
|
"storageProtocol": null,
|
|
31
37
|
"vsanSnapshotSupport": null,
|
|
32
38
|
"totalCapacityGB": null,
|
package/docs/Inventory.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
12
12
|
`vcenter` | [InventoryData](InventoryData.md)
|
|
13
13
|
`createdAt` | Date
|
|
14
|
+
`collectionTime` | Date
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const example = {
|
|
|
24
25
|
"clusters": null,
|
|
25
26
|
"vcenter": null,
|
|
26
27
|
"createdAt": null,
|
|
28
|
+
"collectionTime": null,
|
|
27
29
|
} satisfies Inventory
|
|
28
30
|
|
|
29
31
|
console.log(example)
|
package/docs/InventoryV2.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type
|
|
|
10
10
|
`data` | [InventoryData](InventoryData.md)
|
|
11
11
|
`vcenterVersion` | string
|
|
12
12
|
`createdAt` | Date
|
|
13
|
+
`collectionTime` | Date
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ const example = {
|
|
|
22
23
|
"data": null,
|
|
23
24
|
"vcenterVersion": null,
|
|
24
25
|
"createdAt": null,
|
|
26
|
+
"collectionTime": null,
|
|
25
27
|
} satisfies InventoryV2
|
|
26
28
|
|
|
27
29
|
console.log(example)
|
package/docs/JobApi.md
CHANGED
|
@@ -373,6 +373,8 @@ No authorization required
|
|
|
373
373
|
| **202** | Accepted - Job created | - |
|
|
374
374
|
| **400** | Bad Request | - |
|
|
375
375
|
| **401** | Unauthorized | - |
|
|
376
|
+
| **403** | Unauthorized | - |
|
|
377
|
+
| **404** | Not found | - |
|
|
376
378
|
| **500** | Internal error | - |
|
|
377
379
|
|
|
378
380
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
package/docs/VsphereCoreInput.md
CHANGED
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
`vmEncryptionEnabled` | boolean
|
|
10
10
|
`vmEncryptionPolicy` | string
|
|
11
11
|
`srmEnabled` | boolean
|
|
12
|
+
`niocEnabled` | boolean
|
|
13
|
+
`niocDetails` | string
|
|
12
14
|
|
|
13
15
|
## Example
|
|
14
16
|
|
|
@@ -20,6 +22,8 @@ const example = {
|
|
|
20
22
|
"vmEncryptionEnabled": null,
|
|
21
23
|
"vmEncryptionPolicy": null,
|
|
22
24
|
"srmEnabled": null,
|
|
25
|
+
"niocEnabled": null,
|
|
26
|
+
"niocDetails": null,
|
|
23
27
|
} satisfies VsphereCoreInput
|
|
24
28
|
|
|
25
29
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -157,6 +157,17 @@ export interface DeleteAssessmentRequest {
|
|
|
157
157
|
id: string;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
export interface DeleteVCenterRequest {
|
|
161
|
+
/**
|
|
162
|
+
* ID of the assessment
|
|
163
|
+
*/
|
|
164
|
+
id: string;
|
|
165
|
+
/**
|
|
166
|
+
* ID of the vcenter
|
|
167
|
+
*/
|
|
168
|
+
vid: string;
|
|
169
|
+
}
|
|
170
|
+
|
|
160
171
|
export interface GetAssessmentRequest {
|
|
161
172
|
/**
|
|
162
173
|
* ID of the assessment
|
|
@@ -398,6 +409,30 @@ export interface AssessmentApiInterface {
|
|
|
398
409
|
*/
|
|
399
410
|
deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
400
411
|
|
|
412
|
+
/**
|
|
413
|
+
* Creates request options for deleteVCenter without sending the request
|
|
414
|
+
* @param {string} id ID of the assessment
|
|
415
|
+
* @param {string} vid ID of the vcenter
|
|
416
|
+
* @throws {RequiredError}
|
|
417
|
+
* @memberof AssessmentApiInterface
|
|
418
|
+
*/
|
|
419
|
+
deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Delete the specified vcenter inventory
|
|
423
|
+
* @param {string} id ID of the assessment
|
|
424
|
+
* @param {string} vid ID of the vcenter
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
* @memberof AssessmentApiInterface
|
|
428
|
+
*/
|
|
429
|
+
deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Delete the specified vcenter inventory
|
|
433
|
+
*/
|
|
434
|
+
deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
435
|
+
|
|
401
436
|
/**
|
|
402
437
|
* Creates request options for getAssessment without sending the request
|
|
403
438
|
* @param {string} id ID of the assessment
|
|
@@ -989,6 +1024,58 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
989
1024
|
return await response.value();
|
|
990
1025
|
}
|
|
991
1026
|
|
|
1027
|
+
/**
|
|
1028
|
+
* Creates request options for deleteVCenter without sending the request
|
|
1029
|
+
*/
|
|
1030
|
+
async deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts> {
|
|
1031
|
+
if (requestParameters['id'] == null) {
|
|
1032
|
+
throw new runtime.RequiredError(
|
|
1033
|
+
'id',
|
|
1034
|
+
'Required parameter "id" was null or undefined when calling deleteVCenter().'
|
|
1035
|
+
);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
if (requestParameters['vid'] == null) {
|
|
1039
|
+
throw new runtime.RequiredError(
|
|
1040
|
+
'vid',
|
|
1041
|
+
'Required parameter "vid" was null or undefined when calling deleteVCenter().'
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
const queryParameters: any = {};
|
|
1046
|
+
|
|
1047
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
let urlPath = `/api/v2/assessments/{id}/vcenters/{vid}`;
|
|
1051
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1052
|
+
urlPath = urlPath.replace('{vid}', encodeURIComponent(String(requestParameters['vid'])));
|
|
1053
|
+
|
|
1054
|
+
return {
|
|
1055
|
+
path: urlPath,
|
|
1056
|
+
method: 'DELETE',
|
|
1057
|
+
headers: headerParameters,
|
|
1058
|
+
query: queryParameters,
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Delete the specified vcenter inventory
|
|
1064
|
+
*/
|
|
1065
|
+
async deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1066
|
+
const requestOptions = await this.deleteVCenterRequestOpts(requestParameters);
|
|
1067
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1068
|
+
|
|
1069
|
+
return new runtime.VoidApiResponse(response);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Delete the specified vcenter inventory
|
|
1074
|
+
*/
|
|
1075
|
+
async deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1076
|
+
await this.deleteVCenterRaw(requestParameters, initOverrides);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
992
1079
|
/**
|
|
993
1080
|
* Creates request options for getAssessment without sending the request
|
|
994
1081
|
*/
|
|
@@ -41,7 +41,7 @@ export interface AssessmentV2 {
|
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
vcenters: Array<SubResource>;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -49,7 +49,7 @@ export interface AssessmentV2 {
|
|
|
49
49
|
*/
|
|
50
50
|
export function instanceOfAssessmentV2(value: object): value is AssessmentV2 {
|
|
51
51
|
if (!('data' in value) || value['data'] === undefined) return false;
|
|
52
|
-
if (!('
|
|
52
|
+
if (!('vcenters' in value) || value['vcenters'] === undefined) return false;
|
|
53
53
|
return true;
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -64,7 +64,7 @@ export function AssessmentV2FromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
64
64
|
return {
|
|
65
65
|
|
|
66
66
|
'data': InventoryV2FromJSON(json['data']),
|
|
67
|
-
'
|
|
67
|
+
'vcenters': ((json['vcenters'] as Array<any>).map(SubResourceFromJSON)),
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -80,7 +80,7 @@ export function AssessmentV2ToJSONTyped(value?: AssessmentV2 | null, ignoreDiscr
|
|
|
80
80
|
return {
|
|
81
81
|
|
|
82
82
|
'data': InventoryV2ToJSON(value['data']),
|
|
83
|
-
'
|
|
83
|
+
'vcenters': ((value['vcenters'] as Array<any>).map(SubResourceToJSON)),
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
|
package/src/models/Datastore.ts
CHANGED
|
@@ -31,6 +31,18 @@ export interface Datastore {
|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
type: string;
|
|
34
|
+
/**
|
|
35
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
36
|
+
*/
|
|
37
|
+
backingDeviceIds?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
|
|
40
|
+
*/
|
|
41
|
+
filesystemType?: string;
|
|
42
|
+
/**
|
|
43
|
+
* VMFS major version when reported; omitted when unknown or not applicable
|
|
44
|
+
*/
|
|
45
|
+
filesystemMajorVersion?: number;
|
|
34
46
|
/**
|
|
35
47
|
* Storage access category derived from Datastore.Type
|
|
36
48
|
*/
|
|
@@ -48,7 +60,7 @@ export interface Datastore {
|
|
|
48
60
|
*/
|
|
49
61
|
freeCapacityGB: number;
|
|
50
62
|
/**
|
|
51
|
-
*
|
|
63
|
+
* Vendor reported by matching backing devices when available
|
|
52
64
|
*/
|
|
53
65
|
vendor: string;
|
|
54
66
|
/**
|
|
@@ -64,7 +76,7 @@ export interface Datastore {
|
|
|
64
76
|
*/
|
|
65
77
|
protocolType: string;
|
|
66
78
|
/**
|
|
67
|
-
*
|
|
79
|
+
* Model reported by matching backing devices when available
|
|
68
80
|
*/
|
|
69
81
|
model: string;
|
|
70
82
|
/**
|
|
@@ -115,6 +127,9 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
115
127
|
return {
|
|
116
128
|
|
|
117
129
|
'type': json['type'],
|
|
130
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
131
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
132
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
118
133
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
119
134
|
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
120
135
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
@@ -141,6 +156,9 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
|
|
|
141
156
|
return {
|
|
142
157
|
|
|
143
158
|
'type': value['type'],
|
|
159
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
160
|
+
'filesystemType': value['filesystemType'],
|
|
161
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
144
162
|
'storageProtocol': value['storageProtocol'],
|
|
145
163
|
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
146
164
|
'totalCapacityGB': value['totalCapacityGB'],
|
package/src/models/Inventory.ts
CHANGED
|
@@ -44,9 +44,13 @@ export interface Inventory {
|
|
|
44
44
|
*/
|
|
45
45
|
vcenter?: InventoryData;
|
|
46
46
|
/**
|
|
47
|
-
* Timestamp when the inventory
|
|
47
|
+
* Timestamp when the inventory document was built
|
|
48
48
|
*/
|
|
49
49
|
createdAt?: Date;
|
|
50
|
+
/**
|
|
51
|
+
* 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.
|
|
52
|
+
*/
|
|
53
|
+
collectionTime?: Date | null;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
/**
|
|
@@ -73,6 +77,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
73
77
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
74
78
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
75
79
|
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
80
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
76
81
|
};
|
|
77
82
|
}
|
|
78
83
|
|
|
@@ -92,6 +97,7 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
|
|
|
92
97
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
93
98
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
94
99
|
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
100
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
95
101
|
};
|
|
96
102
|
}
|
|
97
103
|
|
|
@@ -43,6 +43,10 @@ export interface InventoryV2 {
|
|
|
43
43
|
* Timestamp when the inventory data was created or collected
|
|
44
44
|
*/
|
|
45
45
|
createdAt?: Date;
|
|
46
|
+
/**
|
|
47
|
+
* Oldest known source collection time. Null when unknown.
|
|
48
|
+
*/
|
|
49
|
+
collectionTime?: Date | null;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
/**
|
|
@@ -68,6 +72,7 @@ export function InventoryV2FromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
68
72
|
'data': InventoryDataFromJSON(json['data']),
|
|
69
73
|
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
70
74
|
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
75
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
|
|
@@ -86,6 +91,7 @@ export function InventoryV2ToJSONTyped(value?: InventoryV2 | null, ignoreDiscrim
|
|
|
86
91
|
'data': InventoryDataToJSON(value['data']),
|
|
87
92
|
'vcenter_version': value['vcenterVersion'],
|
|
88
93
|
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
94
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
89
95
|
};
|
|
90
96
|
}
|
|
91
97
|
|
|
@@ -31,6 +31,14 @@ export interface VsphereCoreInput {
|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
srmEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether Network I/O Control is enabled
|
|
36
|
+
*/
|
|
37
|
+
niocEnabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* How NIOC is configured and which traffic is prioritized
|
|
40
|
+
*/
|
|
41
|
+
niocDetails?: string;
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
/**
|
|
@@ -53,6 +61,8 @@ export function VsphereCoreInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
53
61
|
'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
|
|
54
62
|
'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
|
|
55
63
|
'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
|
|
64
|
+
'niocEnabled': json['niocEnabled'] == null ? undefined : json['niocEnabled'],
|
|
65
|
+
'niocDetails': json['niocDetails'] == null ? undefined : json['niocDetails'],
|
|
56
66
|
};
|
|
57
67
|
}
|
|
58
68
|
|
|
@@ -70,6 +80,8 @@ export function VsphereCoreInputToJSONTyped(value?: VsphereCoreInput | null, ign
|
|
|
70
80
|
'vmEncryptionEnabled': value['vmEncryptionEnabled'],
|
|
71
81
|
'vmEncryptionPolicy': value['vmEncryptionPolicy'],
|
|
72
82
|
'srmEnabled': value['srmEnabled'],
|
|
83
|
+
'niocEnabled': value['niocEnabled'],
|
|
84
|
+
'niocDetails': value['niocDetails'],
|
|
73
85
|
};
|
|
74
86
|
}
|
|
75
87
|
|