@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/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/Host.md
CHANGED
|
@@ -14,6 +14,8 @@ Name | Type
|
|
|
14
14
|
`memoryMB` | number
|
|
15
15
|
`vmotionSupported` | boolean
|
|
16
16
|
`storageVmotionSupported` | boolean
|
|
17
|
+
`storageAdapters` | [Array<HostStorageAdapter>](HostStorageAdapter.md)
|
|
18
|
+
`storageLuns` | [Array<HostStorageLun>](HostStorageLun.md)
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -30,6 +32,8 @@ const example = {
|
|
|
30
32
|
"memoryMB": null,
|
|
31
33
|
"vmotionSupported": null,
|
|
32
34
|
"storageVmotionSupported": null,
|
|
35
|
+
"storageAdapters": null,
|
|
36
|
+
"storageLuns": null,
|
|
33
37
|
} satisfies Host
|
|
34
38
|
|
|
35
39
|
console.log(example)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
# HostStorageAdapter
|
|
3
|
+
|
|
4
|
+
Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`device` | string
|
|
11
|
+
`key` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
`protocol` | string
|
|
14
|
+
`model` | string
|
|
15
|
+
`driver` | string
|
|
16
|
+
`nodeWwn` | string
|
|
17
|
+
`portWwn` | string
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { HostStorageAdapter } from '@openshift-migration-advisor/planner-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"device": null,
|
|
27
|
+
"key": null,
|
|
28
|
+
"type": null,
|
|
29
|
+
"protocol": null,
|
|
30
|
+
"model": null,
|
|
31
|
+
"driver": null,
|
|
32
|
+
"nodeWwn": null,
|
|
33
|
+
"portWwn": null,
|
|
34
|
+
} satisfies HostStorageAdapter
|
|
35
|
+
|
|
36
|
+
console.log(example)
|
|
37
|
+
|
|
38
|
+
// Convert the instance to a JSON string
|
|
39
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
40
|
+
console.log(exampleJSON)
|
|
41
|
+
|
|
42
|
+
// Parse the JSON string back to an object
|
|
43
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostStorageAdapter
|
|
44
|
+
console.log(exampleParsed)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
48
|
+
|
|
49
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
# HostStorageLun
|
|
3
|
+
|
|
4
|
+
A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`canonicalName` | string
|
|
11
|
+
`key` | string
|
|
12
|
+
`lunUuid` | string
|
|
13
|
+
`vendor` | string
|
|
14
|
+
`model` | string
|
|
15
|
+
`adapterDevices` | Array<string>
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { HostStorageLun } from '@openshift-migration-advisor/planner-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"canonicalName": null,
|
|
25
|
+
"key": null,
|
|
26
|
+
"lunUuid": null,
|
|
27
|
+
"vendor": null,
|
|
28
|
+
"model": null,
|
|
29
|
+
"adapterDevices": null,
|
|
30
|
+
} satisfies HostStorageLun
|
|
31
|
+
|
|
32
|
+
console.log(example)
|
|
33
|
+
|
|
34
|
+
// Convert the instance to a JSON string
|
|
35
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
36
|
+
console.log(exampleJSON)
|
|
37
|
+
|
|
38
|
+
// Parse the JSON string back to an object
|
|
39
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostStorageLun
|
|
40
|
+
console.log(exampleParsed)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
44
|
+
|
|
45
|
+
|
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/Host.ts
CHANGED
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
17
|
+
import {
|
|
18
|
+
HostStorageAdapterFromJSON,
|
|
19
|
+
HostStorageAdapterFromJSONTyped,
|
|
20
|
+
HostStorageAdapterToJSON,
|
|
21
|
+
HostStorageAdapterToJSONTyped,
|
|
22
|
+
} from './HostStorageAdapter.js';
|
|
23
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
24
|
+
import {
|
|
25
|
+
HostStorageLunFromJSON,
|
|
26
|
+
HostStorageLunFromJSONTyped,
|
|
27
|
+
HostStorageLunToJSON,
|
|
28
|
+
HostStorageLunToJSONTyped,
|
|
29
|
+
} from './HostStorageLun.js';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
32
|
*
|
|
18
33
|
* @export
|
|
@@ -51,6 +66,14 @@ export interface Host {
|
|
|
51
66
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
52
67
|
*/
|
|
53
68
|
storageVmotionSupported?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
71
|
+
*/
|
|
72
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
73
|
+
/**
|
|
74
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
75
|
+
*/
|
|
76
|
+
storageLuns?: Array<HostStorageLun>;
|
|
54
77
|
}
|
|
55
78
|
|
|
56
79
|
/**
|
|
@@ -80,6 +103,8 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
|
|
|
80
103
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
81
104
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
82
105
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
106
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : ((json['storageAdapters'] as Array<any>).map(HostStorageAdapterFromJSON)),
|
|
107
|
+
'storageLuns': json['storageLuns'] == null ? undefined : ((json['storageLuns'] as Array<any>).map(HostStorageLunFromJSON)),
|
|
83
108
|
};
|
|
84
109
|
}
|
|
85
110
|
|
|
@@ -102,6 +127,8 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
|
|
|
102
127
|
'memoryMB': value['memoryMB'],
|
|
103
128
|
'vmotionSupported': value['vmotionSupported'],
|
|
104
129
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
130
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : ((value['storageAdapters'] as Array<any>).map(HostStorageAdapterToJSON)),
|
|
131
|
+
'storageLuns': value['storageLuns'] == null ? undefined : ((value['storageLuns'] as Array<any>).map(HostStorageLunToJSON)),
|
|
105
132
|
};
|
|
106
133
|
}
|
|
107
134
|
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HostStorageAdapter
|
|
20
|
+
*/
|
|
21
|
+
export interface HostStorageAdapter {
|
|
22
|
+
/**
|
|
23
|
+
* Host-local adapter device name.
|
|
24
|
+
*/
|
|
25
|
+
device?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source adapter key; distinct from device name.
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Adapter type as supplied by the source.
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Adapter protocol as supplied by the source.
|
|
36
|
+
*/
|
|
37
|
+
protocol?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Adapter model.
|
|
40
|
+
*/
|
|
41
|
+
model?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Adapter driver.
|
|
44
|
+
*/
|
|
45
|
+
driver?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Node WWN as identifier text, preserving leading zeros.
|
|
48
|
+
*/
|
|
49
|
+
nodeWwn?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Port WWN as identifier text, preserving leading zeros.
|
|
52
|
+
*/
|
|
53
|
+
portWwn?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function HostStorageAdapterFromJSON(json: any): HostStorageAdapter {
|
|
64
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
74
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
75
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
76
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
77
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
78
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
79
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
80
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function HostStorageAdapterToJSON(json: any): HostStorageAdapter {
|
|
85
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'device': value['device'],
|
|
96
|
+
'key': value['key'],
|
|
97
|
+
'type': value['type'],
|
|
98
|
+
'protocol': value['protocol'],
|
|
99
|
+
'model': value['model'],
|
|
100
|
+
'driver': value['driver'],
|
|
101
|
+
'nodeWwn': value['nodeWwn'],
|
|
102
|
+
'portWwn': value['portWwn'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|