@openshift-migration-advisor/planner-sdk 0.29.0 → 0.31.0-2e9f5adcc019
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 +7 -3
- package/dist/apis/AssessmentApi.d.ts +86 -0
- package/dist/apis/AssessmentApi.js +86 -0
- package/dist/apis/ImageApi.d.ts +14 -0
- package/dist/apis/ImageApi.js +11 -1
- package/dist/esm/apis/AssessmentApi.d.ts +86 -0
- package/dist/esm/apis/AssessmentApi.js +86 -0
- package/dist/esm/apis/ImageApi.d.ts +14 -0
- package/dist/esm/apis/ImageApi.js +10 -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/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -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/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- 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 +151 -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/ImageApi.md +5 -2
- package/docs/Inventory.md +2 -0
- package/docs/InventoryV2.md +2 -0
- package/docs/JobApi.md +2 -0
- package/docs/OsInfo.md +2 -0
- package/docs/VsphereCoreInput.md +4 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +177 -0
- package/src/apis/ImageApi.ts +19 -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/OsInfo.ts +15 -0
- package/src/models/VsphereCoreInput.ts +12 -0
- package/src/models/index.ts +2 -0
|
@@ -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/ImageApi.md
CHANGED
|
@@ -11,7 +11,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
11
11
|
|
|
12
12
|
## getSourceDownloadURL
|
|
13
13
|
|
|
14
|
-
> PresignedUrl getSourceDownloadURL(id)
|
|
14
|
+
> PresignedUrl getSourceDownloadURL(id, image)
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -33,6 +33,8 @@ async function example() {
|
|
|
33
33
|
const body = {
|
|
34
34
|
// string | Source id
|
|
35
35
|
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
36
|
+
// 'ova' | 'appliance' | Which image to link; the OVA or the appliance image tar for a disconnected update (optional)
|
|
37
|
+
image: image_example,
|
|
36
38
|
} satisfies GetSourceDownloadURLRequest;
|
|
37
39
|
|
|
38
40
|
try {
|
|
@@ -53,6 +55,7 @@ example().catch(console.error);
|
|
|
53
55
|
| Name | Type | Description | Notes |
|
|
54
56
|
|------------- | ------------- | ------------- | -------------|
|
|
55
57
|
| **id** | `string` | Source id | [Defaults to `undefined`] |
|
|
58
|
+
| **image** | `ova`, `appliance` | Which image to link; the OVA or the appliance image tar for a disconnected update | [Optional] [Defaults to `'ova'`] [Enum: ova, appliance] |
|
|
56
59
|
|
|
57
60
|
### Return type
|
|
58
61
|
|
|
@@ -71,7 +74,7 @@ No authorization required
|
|
|
71
74
|
### HTTP response details
|
|
72
75
|
| Status code | Description | Response headers |
|
|
73
76
|
|-------------|-------------|------------------|
|
|
74
|
-
| **200** | URL to download
|
|
77
|
+
| **200** | URL to download the image | - |
|
|
75
78
|
| **400** | Bad Request | - |
|
|
76
79
|
| **401** | Unauthorized | - |
|
|
77
80
|
| **403** | Forbidden | - |
|
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/OsInfo.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`count` | number
|
|
10
10
|
`supported` | boolean
|
|
11
11
|
`supportTier` | string
|
|
12
|
+
`mtvStatus` | string
|
|
12
13
|
`upgradeRecommendation` | string
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const example = {
|
|
|
21
22
|
"count": null,
|
|
22
23
|
"supported": null,
|
|
23
24
|
"supportTier": null,
|
|
25
|
+
"mtvStatus": null,
|
|
24
26
|
"upgradeRecommendation": null,
|
|
25
27
|
} satisfies OsInfo
|
|
26
28
|
|
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
|
|
@@ -251,6 +262,17 @@ export interface UpdateAssessmentRequest {
|
|
|
251
262
|
assessmentUpdate: AssessmentUpdate;
|
|
252
263
|
}
|
|
253
264
|
|
|
265
|
+
export interface UpdateAssessmentV2Request {
|
|
266
|
+
/**
|
|
267
|
+
* ID of the assessment
|
|
268
|
+
*/
|
|
269
|
+
id: string;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
*/
|
|
273
|
+
assessmentUpdate: AssessmentUpdate;
|
|
274
|
+
}
|
|
275
|
+
|
|
254
276
|
/**
|
|
255
277
|
* AssessmentApi - interface
|
|
256
278
|
*
|
|
@@ -398,6 +420,30 @@ export interface AssessmentApiInterface {
|
|
|
398
420
|
*/
|
|
399
421
|
deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
400
422
|
|
|
423
|
+
/**
|
|
424
|
+
* Creates request options for deleteVCenter without sending the request
|
|
425
|
+
* @param {string} id ID of the assessment
|
|
426
|
+
* @param {string} vid ID of the vcenter
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
* @memberof AssessmentApiInterface
|
|
429
|
+
*/
|
|
430
|
+
deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Delete the specified vcenter inventory
|
|
434
|
+
* @param {string} id ID of the assessment
|
|
435
|
+
* @param {string} vid ID of the vcenter
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
* @memberof AssessmentApiInterface
|
|
439
|
+
*/
|
|
440
|
+
deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Delete the specified vcenter inventory
|
|
444
|
+
*/
|
|
445
|
+
deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
446
|
+
|
|
401
447
|
/**
|
|
402
448
|
* Creates request options for getAssessment without sending the request
|
|
403
449
|
* @param {string} id ID of the assessment
|
|
@@ -670,6 +716,30 @@ export interface AssessmentApiInterface {
|
|
|
670
716
|
*/
|
|
671
717
|
updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
|
|
672
718
|
|
|
719
|
+
/**
|
|
720
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
721
|
+
* @param {string} id ID of the assessment
|
|
722
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
723
|
+
* @throws {RequiredError}
|
|
724
|
+
* @memberof AssessmentApiInterface
|
|
725
|
+
*/
|
|
726
|
+
updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Update the assessment name
|
|
730
|
+
* @param {string} id ID of the assessment
|
|
731
|
+
* @param {AssessmentUpdate} assessmentUpdate
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
* @memberof AssessmentApiInterface
|
|
735
|
+
*/
|
|
736
|
+
updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Update the assessment name
|
|
740
|
+
*/
|
|
741
|
+
updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
|
|
742
|
+
|
|
673
743
|
}
|
|
674
744
|
|
|
675
745
|
/**
|
|
@@ -989,6 +1059,58 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
989
1059
|
return await response.value();
|
|
990
1060
|
}
|
|
991
1061
|
|
|
1062
|
+
/**
|
|
1063
|
+
* Creates request options for deleteVCenter without sending the request
|
|
1064
|
+
*/
|
|
1065
|
+
async deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts> {
|
|
1066
|
+
if (requestParameters['id'] == null) {
|
|
1067
|
+
throw new runtime.RequiredError(
|
|
1068
|
+
'id',
|
|
1069
|
+
'Required parameter "id" was null or undefined when calling deleteVCenter().'
|
|
1070
|
+
);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
if (requestParameters['vid'] == null) {
|
|
1074
|
+
throw new runtime.RequiredError(
|
|
1075
|
+
'vid',
|
|
1076
|
+
'Required parameter "vid" was null or undefined when calling deleteVCenter().'
|
|
1077
|
+
);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
const queryParameters: any = {};
|
|
1081
|
+
|
|
1082
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
let urlPath = `/api/v2/assessments/{id}/vcenters/{vid}`;
|
|
1086
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1087
|
+
urlPath = urlPath.replace('{vid}', encodeURIComponent(String(requestParameters['vid'])));
|
|
1088
|
+
|
|
1089
|
+
return {
|
|
1090
|
+
path: urlPath,
|
|
1091
|
+
method: 'DELETE',
|
|
1092
|
+
headers: headerParameters,
|
|
1093
|
+
query: queryParameters,
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Delete the specified vcenter inventory
|
|
1099
|
+
*/
|
|
1100
|
+
async deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1101
|
+
const requestOptions = await this.deleteVCenterRequestOpts(requestParameters);
|
|
1102
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1103
|
+
|
|
1104
|
+
return new runtime.VoidApiResponse(response);
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Delete the specified vcenter inventory
|
|
1109
|
+
*/
|
|
1110
|
+
async deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1111
|
+
await this.deleteVCenterRaw(requestParameters, initOverrides);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
992
1114
|
/**
|
|
993
1115
|
* Creates request options for getAssessment without sending the request
|
|
994
1116
|
*/
|
|
@@ -1568,4 +1690,59 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1568
1690
|
return await response.value();
|
|
1569
1691
|
}
|
|
1570
1692
|
|
|
1693
|
+
/**
|
|
1694
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
1695
|
+
*/
|
|
1696
|
+
async updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts> {
|
|
1697
|
+
if (requestParameters['id'] == null) {
|
|
1698
|
+
throw new runtime.RequiredError(
|
|
1699
|
+
'id',
|
|
1700
|
+
'Required parameter "id" was null or undefined when calling updateAssessmentV2().'
|
|
1701
|
+
);
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
if (requestParameters['assessmentUpdate'] == null) {
|
|
1705
|
+
throw new runtime.RequiredError(
|
|
1706
|
+
'assessmentUpdate',
|
|
1707
|
+
'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessmentV2().'
|
|
1708
|
+
);
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
const queryParameters: any = {};
|
|
1712
|
+
|
|
1713
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1714
|
+
|
|
1715
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
let urlPath = `/api/v2/assessments/{id}`;
|
|
1719
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1720
|
+
|
|
1721
|
+
return {
|
|
1722
|
+
path: urlPath,
|
|
1723
|
+
method: 'PATCH',
|
|
1724
|
+
headers: headerParameters,
|
|
1725
|
+
query: queryParameters,
|
|
1726
|
+
body: AssessmentUpdateToJSON(requestParameters['assessmentUpdate']),
|
|
1727
|
+
};
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* Update the assessment name
|
|
1732
|
+
*/
|
|
1733
|
+
async updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>> {
|
|
1734
|
+
const requestOptions = await this.updateAssessmentV2RequestOpts(requestParameters);
|
|
1735
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1736
|
+
|
|
1737
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AssessmentV2FromJSON(jsonValue));
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Update the assessment name
|
|
1742
|
+
*/
|
|
1743
|
+
async updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2> {
|
|
1744
|
+
const response = await this.updateAssessmentV2Raw(requestParameters, initOverrides);
|
|
1745
|
+
return await response.value();
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1571
1748
|
}
|
package/src/apis/ImageApi.ts
CHANGED
|
@@ -24,6 +24,10 @@ export interface GetSourceDownloadURLRequest {
|
|
|
24
24
|
* Source id
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Which image to link; the OVA or the appliance image tar for a disconnected update
|
|
29
|
+
*/
|
|
30
|
+
image?: GetSourceDownloadURLImageEnum;
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
export interface HeadImageRequest {
|
|
@@ -43,6 +47,7 @@ export interface ImageApiInterface {
|
|
|
43
47
|
/**
|
|
44
48
|
* Creates request options for getSourceDownloadURL without sending the request
|
|
45
49
|
* @param {string} id Source id
|
|
50
|
+
* @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
|
|
46
51
|
* @throws {RequiredError}
|
|
47
52
|
* @memberof ImageApiInterface
|
|
48
53
|
*/
|
|
@@ -51,6 +56,7 @@ export interface ImageApiInterface {
|
|
|
51
56
|
/**
|
|
52
57
|
* Get the OVA image via URL
|
|
53
58
|
* @param {string} id Source id
|
|
59
|
+
* @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
|
|
54
60
|
* @param {*} [options] Override http request option.
|
|
55
61
|
* @throws {RequiredError}
|
|
56
62
|
* @memberof ImageApiInterface
|
|
@@ -104,6 +110,10 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
|
104
110
|
|
|
105
111
|
const queryParameters: any = {};
|
|
106
112
|
|
|
113
|
+
if (requestParameters['image'] != null) {
|
|
114
|
+
queryParameters['image'] = requestParameters['image'];
|
|
115
|
+
}
|
|
116
|
+
|
|
107
117
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
108
118
|
|
|
109
119
|
|
|
@@ -181,3 +191,12 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
|
181
191
|
}
|
|
182
192
|
|
|
183
193
|
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @export
|
|
197
|
+
*/
|
|
198
|
+
export const GetSourceDownloadURLImageEnum = {
|
|
199
|
+
Ova: 'ova',
|
|
200
|
+
Appliance: 'appliance',
|
|
201
|
+
} as const;
|
|
202
|
+
export type GetSourceDownloadURLImageEnum = typeof GetSourceDownloadURLImageEnum[keyof typeof GetSourceDownloadURLImageEnum];
|
|
@@ -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
|
|