@openshift-migration-advisor/planner-sdk 0.27.0 → 0.28.0-187c2d948808

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.
Files changed (114) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +19 -3
  4. package/dist/apis/AssessmentApi.d.ts +257 -0
  5. package/dist/apis/AssessmentApi.js +257 -0
  6. package/dist/apis/ImageApi.d.ts +14 -0
  7. package/dist/apis/ImageApi.js +11 -1
  8. package/dist/apis/JobApi.d.ts +86 -0
  9. package/dist/apis/JobApi.js +124 -0
  10. package/dist/esm/apis/AssessmentApi.d.ts +257 -0
  11. package/dist/esm/apis/AssessmentApi.js +257 -0
  12. package/dist/esm/apis/ImageApi.d.ts +14 -0
  13. package/dist/esm/apis/ImageApi.js +10 -0
  14. package/dist/esm/apis/JobApi.d.ts +86 -0
  15. package/dist/esm/apis/JobApi.js +124 -0
  16. package/dist/esm/models/AssessmentV2.d.ts +36 -0
  17. package/dist/esm/models/AssessmentV2.js +49 -0
  18. package/dist/esm/models/AssessmentV2Summary.d.ts +97 -0
  19. package/dist/esm/models/AssessmentV2Summary.js +99 -0
  20. package/dist/esm/models/AssessmentVCenterV2.d.ts +36 -0
  21. package/dist/esm/models/AssessmentVCenterV2.js +49 -0
  22. package/dist/esm/models/Datastore.d.ts +18 -2
  23. package/dist/esm/models/Datastore.js +8 -0
  24. package/dist/esm/models/Host.d.ts +26 -0
  25. package/dist/esm/models/Host.js +14 -0
  26. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  27. package/dist/esm/models/HostStorageAdapter.js +55 -0
  28. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  29. package/dist/esm/models/HostStorageLun.js +51 -0
  30. package/dist/esm/models/Info.d.ts +4 -0
  31. package/dist/esm/models/Info.js +2 -0
  32. package/dist/esm/models/Inventory.d.ts +5 -1
  33. package/dist/esm/models/Inventory.js +2 -0
  34. package/dist/esm/models/InventoryV2.d.ts +47 -0
  35. package/dist/esm/models/InventoryV2.js +55 -0
  36. package/dist/esm/models/OsInfo.d.ts +12 -0
  37. package/dist/esm/models/OsInfo.js +9 -0
  38. package/dist/esm/models/SourceType.d.ts +26 -0
  39. package/dist/esm/models/SourceType.js +44 -0
  40. package/dist/esm/models/SubResource.d.ts +30 -0
  41. package/dist/esm/models/SubResource.js +43 -0
  42. package/dist/esm/models/VsphereCoreInput.d.ts +8 -0
  43. package/dist/esm/models/VsphereCoreInput.js +4 -0
  44. package/dist/esm/models/index.d.ts +8 -0
  45. package/dist/esm/models/index.js +8 -0
  46. package/dist/esm/runtime.js +4 -3
  47. package/dist/models/AssessmentV2.d.ts +36 -0
  48. package/dist/models/AssessmentV2.js +56 -0
  49. package/dist/models/AssessmentV2Summary.d.ts +97 -0
  50. package/dist/models/AssessmentV2Summary.js +107 -0
  51. package/dist/models/AssessmentVCenterV2.d.ts +36 -0
  52. package/dist/models/AssessmentVCenterV2.js +56 -0
  53. package/dist/models/Datastore.d.ts +18 -2
  54. package/dist/models/Datastore.js +8 -0
  55. package/dist/models/Host.d.ts +26 -0
  56. package/dist/models/Host.js +14 -0
  57. package/dist/models/HostStorageAdapter.d.ts +58 -0
  58. package/dist/models/HostStorageAdapter.js +62 -0
  59. package/dist/models/HostStorageLun.d.ts +50 -0
  60. package/dist/models/HostStorageLun.js +58 -0
  61. package/dist/models/Info.d.ts +4 -0
  62. package/dist/models/Info.js +2 -0
  63. package/dist/models/Inventory.d.ts +5 -1
  64. package/dist/models/Inventory.js +2 -0
  65. package/dist/models/InventoryV2.d.ts +47 -0
  66. package/dist/models/InventoryV2.js +62 -0
  67. package/dist/models/OsInfo.d.ts +12 -0
  68. package/dist/models/OsInfo.js +10 -1
  69. package/dist/models/SourceType.d.ts +26 -0
  70. package/dist/models/SourceType.js +52 -0
  71. package/dist/models/SubResource.d.ts +30 -0
  72. package/dist/models/SubResource.js +50 -0
  73. package/dist/models/VsphereCoreInput.d.ts +8 -0
  74. package/dist/models/VsphereCoreInput.js +4 -0
  75. package/dist/models/index.d.ts +8 -0
  76. package/dist/models/index.js +8 -0
  77. package/dist/runtime.js +4 -3
  78. package/docs/AssessmentApi.md +447 -0
  79. package/docs/AssessmentV2.md +36 -0
  80. package/docs/AssessmentV2Summary.md +58 -0
  81. package/docs/AssessmentVCenterV2.md +36 -0
  82. package/docs/Datastore.md +8 -0
  83. package/docs/Host.md +12 -0
  84. package/docs/HostStorageAdapter.md +49 -0
  85. package/docs/HostStorageLun.md +45 -0
  86. package/docs/ImageApi.md +5 -2
  87. package/docs/Info.md +2 -0
  88. package/docs/Inventory.md +2 -0
  89. package/docs/InventoryV2.md +42 -0
  90. package/docs/JobApi.md +152 -0
  91. package/docs/OsInfo.md +2 -0
  92. package/docs/SourceType.md +32 -0
  93. package/docs/SubResource.md +34 -0
  94. package/docs/VsphereCoreInput.md +4 -0
  95. package/package.json +1 -1
  96. package/src/apis/AssessmentApi.ts +536 -0
  97. package/src/apis/ImageApi.ts +19 -0
  98. package/src/apis/JobApi.ts +219 -0
  99. package/src/models/AssessmentV2.ts +86 -0
  100. package/src/models/AssessmentV2Summary.ts +173 -0
  101. package/src/models/AssessmentVCenterV2.ts +86 -0
  102. package/src/models/Datastore.ts +26 -2
  103. package/src/models/Host.ts +51 -0
  104. package/src/models/HostStorageAdapter.ts +105 -0
  105. package/src/models/HostStorageLun.ts +93 -0
  106. package/src/models/Info.ts +6 -0
  107. package/src/models/Inventory.ts +7 -1
  108. package/src/models/InventoryV2.ts +97 -0
  109. package/src/models/OsInfo.ts +15 -0
  110. package/src/models/SourceType.ts +54 -0
  111. package/src/models/SubResource.ts +64 -0
  112. package/src/models/VsphereCoreInput.ts +12 -0
  113. package/src/models/index.ts +8 -0
  114. package/src/runtime.ts +11 -11
@@ -0,0 +1,36 @@
1
+
2
+ # AssessmentV2
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [InventoryV2](InventoryV2.md)
10
+ `vcenters` | [Array<SubResource>](SubResource.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { AssessmentV2 } from '@openshift-migration-advisor/planner-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "data": null,
20
+ "vcenters": null,
21
+ } satisfies AssessmentV2
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as AssessmentV2
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,58 @@
1
+
2
+ # AssessmentV2Summary
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `ownerFirstName` | string
12
+ `ownerLastName` | string
13
+ `sourceType` | string
14
+ `datastoresCount` | number
15
+ `hostsCount` | number
16
+ `vmsCount` | number
17
+ `networksCount` | number
18
+ `sourceId` | string
19
+ `createdAt` | Date
20
+ `permissions` | Array<string>
21
+ `sharing` | [AssessmentSharing](AssessmentSharing.md)
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import type { AssessmentV2Summary } from '@openshift-migration-advisor/planner-sdk'
27
+
28
+ // TODO: Update the object below with actual values
29
+ const example = {
30
+ "id": null,
31
+ "name": null,
32
+ "ownerFirstName": null,
33
+ "ownerLastName": null,
34
+ "sourceType": null,
35
+ "datastoresCount": null,
36
+ "hostsCount": null,
37
+ "vmsCount": null,
38
+ "networksCount": null,
39
+ "sourceId": null,
40
+ "createdAt": null,
41
+ "permissions": null,
42
+ "sharing": null,
43
+ } satisfies AssessmentV2Summary
44
+
45
+ console.log(example)
46
+
47
+ // Convert the instance to a JSON string
48
+ const exampleJSON: string = JSON.stringify(example)
49
+ console.log(exampleJSON)
50
+
51
+ // Parse the JSON string back to an object
52
+ const exampleParsed = JSON.parse(exampleJSON) as AssessmentV2Summary
53
+ console.log(exampleParsed)
54
+ ```
55
+
56
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
57
+
58
+
@@ -0,0 +1,36 @@
1
+
2
+ # AssessmentVCenterV2
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [InventoryV2](InventoryV2.md)
10
+ `clusters` | [Array<SubResource>](SubResource.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { AssessmentVCenterV2 } from '@openshift-migration-advisor/planner-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "data": null,
20
+ "clusters": null,
21
+ } satisfies AssessmentVCenterV2
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as AssessmentVCenterV2
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/docs/Datastore.md CHANGED
@@ -7,7 +7,11 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `type` | string
10
+ `backingDeviceIds` | Array<string>
11
+ `filesystemType` | string
12
+ `filesystemMajorVersion` | number
10
13
  `storageProtocol` | string
14
+ `vsanSnapshotSupport` | boolean
11
15
  `totalCapacityGB` | number
12
16
  `freeCapacityGB` | number
13
17
  `vendor` | string
@@ -26,7 +30,11 @@ import type { Datastore } from '@openshift-migration-advisor/planner-sdk'
26
30
  // TODO: Update the object below with actual values
27
31
  const example = {
28
32
  "type": null,
33
+ "backingDeviceIds": null,
34
+ "filesystemType": null,
35
+ "filesystemMajorVersion": null,
29
36
  "storageProtocol": null,
37
+ "vsanSnapshotSupport": null,
30
38
  "totalCapacityGB": null,
31
39
  "freeCapacityGB": null,
32
40
  "vendor": null,
package/docs/Host.md CHANGED
@@ -9,11 +9,17 @@ Name | Type
9
9
  `id` | string
10
10
  `vendor` | string
11
11
  `model` | string
12
+ `datacenter` | string
13
+ `cluster` | string
14
+ `cpuModel` | string
15
+ `serialNumber` | string
12
16
  `cpuCores` | number
13
17
  `cpuSockets` | number
14
18
  `memoryMB` | number
15
19
  `vmotionSupported` | boolean
16
20
  `storageVmotionSupported` | boolean
21
+ `storageAdapters` | [Array<HostStorageAdapter>](HostStorageAdapter.md)
22
+ `storageLuns` | [Array<HostStorageLun>](HostStorageLun.md)
17
23
 
18
24
  ## Example
19
25
 
@@ -25,11 +31,17 @@ const example = {
25
31
  "id": null,
26
32
  "vendor": null,
27
33
  "model": null,
34
+ "datacenter": null,
35
+ "cluster": null,
36
+ "cpuModel": null,
37
+ "serialNumber": null,
28
38
  "cpuCores": null,
29
39
  "cpuSockets": null,
30
40
  "memoryMB": null,
31
41
  "vmotionSupported": null,
32
42
  "storageVmotionSupported": null,
43
+ "storageAdapters": null,
44
+ "storageLuns": null,
33
45
  } satisfies Host
34
46
 
35
47
  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/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 OVA image | - |
77
+ | **200** | URL to download the image | - |
75
78
  | **400** | Bad Request | - |
76
79
  | **401** | Unauthorized | - |
77
80
  | **403** | Forbidden | - |
package/docs/Info.md CHANGED
@@ -11,6 +11,7 @@ Name | Type
11
11
  `versionName` | string
12
12
  `agentGitCommit` | string
13
13
  `agentVersionName` | string
14
+ `minApplianceVersion` | string
14
15
 
15
16
  ## Example
16
17
 
@@ -23,6 +24,7 @@ const example = {
23
24
  "versionName": 0.1.4-40-gc5a1661,
24
25
  "agentGitCommit": c5a1661465a25b17ceeeb77d1ec40deb57d8da44,
25
26
  "agentVersionName": 0.1.4-40-gc5a1661,
27
+ "minApplianceVersion": null,
26
28
  } satisfies Info
27
29
 
28
30
  console.log(example)
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)
@@ -0,0 +1,42 @@
1
+
2
+ # InventoryV2
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `data` | [InventoryData](InventoryData.md)
11
+ `vcenterVersion` | string
12
+ `createdAt` | Date
13
+ `collectionTime` | Date
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { InventoryV2 } from '@openshift-migration-advisor/planner-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "id": null,
23
+ "data": null,
24
+ "vcenterVersion": null,
25
+ "createdAt": null,
26
+ "collectionTime": null,
27
+ } satisfies InventoryV2
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as InventoryV2
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
package/docs/JobApi.md CHANGED
@@ -6,7 +6,9 @@ All URIs are relative to *https://raw.githubusercontent.com*
6
6
  |------------- | ------------- | -------------|
7
7
  | [**cancelJob**](JobApi.md#canceljob) | **DELETE** /api/v1/assessments/jobs/{id} | |
8
8
  | [**createRVToolsAssessment**](JobApi.md#creatervtoolsassessment) | **POST** /api/v1/assessments/rvtools | |
9
+ | [**createRVToolsAssessmentV2**](JobApi.md#creatervtoolsassessmentv2) | **POST** /api/v2/assessments/rvtools | |
9
10
  | [**getJob**](JobApi.md#getjob) | **GET** /api/v1/assessments/jobs/{id} | |
11
+ | [**uploadRvtoolsToAssessment**](JobApi.md#uploadrvtoolstoassessment) | **PUT** /api/v2/assessments/{id}/rvtools | |
10
12
 
11
13
 
12
14
 
@@ -156,6 +158,81 @@ No authorization required
156
158
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
157
159
 
158
160
 
161
+ ## createRVToolsAssessmentV2
162
+
163
+ > Job createRVToolsAssessmentV2(name, file)
164
+
165
+
166
+
167
+ Create an assessment from RVTools file asynchronously
168
+
169
+ ### Example
170
+
171
+ ```ts
172
+ import {
173
+ Configuration,
174
+ JobApi,
175
+ } from '@openshift-migration-advisor/planner-sdk';
176
+ import type { CreateRVToolsAssessmentV2Request } from '@openshift-migration-advisor/planner-sdk';
177
+
178
+ async function example() {
179
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
180
+ const api = new JobApi();
181
+
182
+ const body = {
183
+ // string | Name of the assessment
184
+ name: name_example,
185
+ // Blob | File upload for assessment data
186
+ file: BINARY_DATA_HERE,
187
+ } satisfies CreateRVToolsAssessmentV2Request;
188
+
189
+ try {
190
+ const data = await api.createRVToolsAssessmentV2(body);
191
+ console.log(data);
192
+ } catch (error) {
193
+ console.error(error);
194
+ }
195
+ }
196
+
197
+ // Run the test
198
+ example().catch(console.error);
199
+ ```
200
+
201
+ ### Parameters
202
+
203
+
204
+ | Name | Type | Description | Notes |
205
+ |------------- | ------------- | ------------- | -------------|
206
+ | **name** | `string` | Name of the assessment | [Defaults to `undefined`] |
207
+ | **file** | `Blob` | File upload for assessment data | [Defaults to `undefined`] |
208
+
209
+ ### Return type
210
+
211
+ [**Job**](Job.md)
212
+
213
+ ### Authorization
214
+
215
+ No authorization required
216
+
217
+ ### HTTP request headers
218
+
219
+ - **Content-Type**: `multipart/form-data`
220
+ - **Accept**: `application/json`
221
+
222
+
223
+ ### HTTP response details
224
+ | Status code | Description | Response headers |
225
+ |-------------|-------------|------------------|
226
+ | **202** | Accepted - Job created | - |
227
+ | **400** | Bad Request | - |
228
+ | **401** | Unauthorized | - |
229
+ | **403** | Forbidden | - |
230
+ | **404** | NotFound | - |
231
+ | **500** | Internal error | - |
232
+
233
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
234
+
235
+
159
236
  ## getJob
160
237
 
161
238
  > Job getJob(id)
@@ -227,3 +304,78 @@ No authorization required
227
304
 
228
305
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
229
306
 
307
+
308
+ ## uploadRvtoolsToAssessment
309
+
310
+ > Job uploadRvtoolsToAssessment(id, file)
311
+
312
+
313
+
314
+ Uploads additional RVTools data to an existing assessment and aggregates it into the main inventory asynchronously.
315
+
316
+ ### Example
317
+
318
+ ```ts
319
+ import {
320
+ Configuration,
321
+ JobApi,
322
+ } from '@openshift-migration-advisor/planner-sdk';
323
+ import type { UploadRvtoolsToAssessmentRequest } from '@openshift-migration-advisor/planner-sdk';
324
+
325
+ async function example() {
326
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
327
+ const api = new JobApi();
328
+
329
+ const body = {
330
+ // string | ID of the assessment
331
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
332
+ // Blob | Rvtools extending the exising assessment
333
+ file: BINARY_DATA_HERE,
334
+ } satisfies UploadRvtoolsToAssessmentRequest;
335
+
336
+ try {
337
+ const data = await api.uploadRvtoolsToAssessment(body);
338
+ console.log(data);
339
+ } catch (error) {
340
+ console.error(error);
341
+ }
342
+ }
343
+
344
+ // Run the test
345
+ example().catch(console.error);
346
+ ```
347
+
348
+ ### Parameters
349
+
350
+
351
+ | Name | Type | Description | Notes |
352
+ |------------- | ------------- | ------------- | -------------|
353
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
354
+ | **file** | `Blob` | Rvtools extending the exising assessment | [Defaults to `undefined`] |
355
+
356
+ ### Return type
357
+
358
+ [**Job**](Job.md)
359
+
360
+ ### Authorization
361
+
362
+ No authorization required
363
+
364
+ ### HTTP request headers
365
+
366
+ - **Content-Type**: `multipart/form-data`
367
+ - **Accept**: `application/json`
368
+
369
+
370
+ ### HTTP response details
371
+ | Status code | Description | Response headers |
372
+ |-------------|-------------|------------------|
373
+ | **202** | Accepted - Job created | - |
374
+ | **400** | Bad Request | - |
375
+ | **401** | Unauthorized | - |
376
+ | **403** | Unauthorized | - |
377
+ | **404** | Not found | - |
378
+ | **500** | Internal error | - |
379
+
380
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
381
+
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
 
@@ -0,0 +1,32 @@
1
+
2
+ # SourceType
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { SourceType } from '@openshift-migration-advisor/planner-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies SourceType
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as SourceType
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
@@ -0,0 +1,34 @@
1
+
2
+ # SubResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { SubResource } from '@openshift-migration-advisor/planner-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "id": null,
19
+ } satisfies SubResource
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as SubResource
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.27.0",
3
+ "version": "0.28.0-187c2d948808",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {