@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.1-84c734aba511

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 (155) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +16 -4
  4. package/dist/apis/AppliancesApi.d.ts +64 -0
  5. package/dist/apis/AppliancesApi.js +72 -0
  6. package/dist/apis/CollectorApi.d.ts +0 -38
  7. package/dist/apis/CollectorApi.js +0 -59
  8. package/dist/apis/GroupsApi.d.ts +39 -0
  9. package/dist/apis/GroupsApi.js +40 -0
  10. package/dist/apis/ImageUpgradeApi.d.ts +66 -0
  11. package/dist/apis/ImageUpgradeApi.js +90 -0
  12. package/dist/apis/index.d.ts +2 -0
  13. package/dist/apis/index.js +2 -0
  14. package/dist/esm/apis/AppliancesApi.d.ts +64 -0
  15. package/dist/esm/apis/AppliancesApi.js +68 -0
  16. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  17. package/dist/esm/apis/CollectorApi.js +0 -59
  18. package/dist/esm/apis/GroupsApi.d.ts +39 -0
  19. package/dist/esm/apis/GroupsApi.js +40 -0
  20. package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
  21. package/dist/esm/apis/ImageUpgradeApi.js +86 -0
  22. package/dist/esm/apis/index.d.ts +2 -0
  23. package/dist/esm/apis/index.js +2 -0
  24. package/dist/esm/models/AgentStatus.d.ts +5 -0
  25. package/dist/esm/models/AgentStatus.js +5 -0
  26. package/dist/esm/models/Appliance.d.ts +51 -0
  27. package/dist/esm/models/Appliance.js +64 -0
  28. package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
  29. package/dist/esm/models/ApplianceListResponse.js +44 -0
  30. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  31. package/dist/esm/models/ApplicationOverview.js +12 -0
  32. package/dist/esm/models/Host.d.ts +16 -0
  33. package/dist/esm/models/Host.js +8 -0
  34. package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
  35. package/dist/esm/models/ImageUpgradeImage.js +47 -0
  36. package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
  37. package/dist/esm/models/ImageUpgradeResult.js +71 -0
  38. package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
  39. package/dist/esm/models/ImageUpgradeStatus.js +57 -0
  40. package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
  41. package/dist/esm/models/ImageUploadStatus.js +56 -0
  42. package/dist/esm/models/OsInfo.d.ts +12 -0
  43. package/dist/esm/models/OsInfo.js +9 -0
  44. package/dist/esm/models/Product.d.ts +66 -0
  45. package/dist/esm/models/Product.js +61 -0
  46. package/dist/esm/models/RDMBacking.d.ts +26 -0
  47. package/dist/esm/models/RDMBacking.js +17 -0
  48. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  49. package/dist/esm/models/RDMHostLun.js +49 -0
  50. package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
  51. package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
  52. package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
  53. package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
  54. package/dist/esm/models/VirtualMachine.d.ts +8 -0
  55. package/dist/esm/models/VirtualMachine.js +4 -0
  56. package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
  57. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  58. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  59. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  60. package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
  61. package/dist/esm/models/VirtualMachineIdentity.js +47 -0
  62. package/dist/esm/models/index.d.ts +10 -0
  63. package/dist/esm/models/index.js +10 -0
  64. package/dist/esm/runtime.js +4 -3
  65. package/dist/models/AgentStatus.d.ts +5 -0
  66. package/dist/models/AgentStatus.js +5 -0
  67. package/dist/models/Appliance.d.ts +51 -0
  68. package/dist/models/Appliance.js +71 -0
  69. package/dist/models/ApplianceListResponse.d.ts +31 -0
  70. package/dist/models/ApplianceListResponse.js +51 -0
  71. package/dist/models/ApplicationOverview.d.ts +16 -0
  72. package/dist/models/ApplicationOverview.js +12 -0
  73. package/dist/models/Host.d.ts +16 -0
  74. package/dist/models/Host.js +8 -0
  75. package/dist/models/ImageUpgradeImage.d.ts +34 -0
  76. package/dist/models/ImageUpgradeImage.js +54 -0
  77. package/dist/models/ImageUpgradeResult.d.ts +66 -0
  78. package/dist/models/ImageUpgradeResult.js +79 -0
  79. package/dist/models/ImageUpgradeStatus.d.ts +44 -0
  80. package/dist/models/ImageUpgradeStatus.js +64 -0
  81. package/dist/models/ImageUploadStatus.d.ts +44 -0
  82. package/dist/models/ImageUploadStatus.js +64 -0
  83. package/dist/models/OsInfo.d.ts +12 -0
  84. package/dist/models/OsInfo.js +10 -1
  85. package/dist/models/Product.d.ts +66 -0
  86. package/dist/models/Product.js +68 -0
  87. package/dist/models/RDMBacking.d.ts +26 -0
  88. package/dist/models/RDMBacking.js +18 -0
  89. package/dist/models/RDMHostLun.d.ts +42 -0
  90. package/dist/models/RDMHostLun.js +56 -0
  91. package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
  92. package/dist/models/SuccessfulImageUpgrade.js +59 -0
  93. package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
  94. package/dist/models/VMFilterOptionsResponse.js +8 -0
  95. package/dist/models/VirtualMachine.d.ts +8 -0
  96. package/dist/models/VirtualMachine.js +4 -0
  97. package/dist/models/VirtualMachineDetail.d.ts +5 -0
  98. package/dist/models/VirtualMachineDetail.js +3 -0
  99. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  100. package/dist/models/VirtualMachineDisk.js +4 -0
  101. package/dist/models/VirtualMachineIdentity.d.ts +34 -0
  102. package/dist/models/VirtualMachineIdentity.js +54 -0
  103. package/dist/models/index.d.ts +10 -0
  104. package/dist/models/index.js +10 -0
  105. package/dist/runtime.js +4 -3
  106. package/docs/AgentStatus.md +2 -0
  107. package/docs/Appliance.md +44 -0
  108. package/docs/ApplianceListResponse.md +34 -0
  109. package/docs/AppliancesApi.md +76 -0
  110. package/docs/ApplicationOverview.md +8 -0
  111. package/docs/CollectorApi.md +0 -70
  112. package/docs/GroupsApi.md +68 -0
  113. package/docs/Host.md +8 -0
  114. package/docs/ImageUpgradeApi.md +82 -0
  115. package/docs/ImageUpgradeImage.md +36 -0
  116. package/docs/ImageUpgradeResult.md +46 -0
  117. package/docs/ImageUpgradeStatus.md +40 -0
  118. package/docs/ImageUploadStatus.md +36 -0
  119. package/docs/OsInfo.md +2 -0
  120. package/docs/Product.md +52 -0
  121. package/docs/RDMBacking.md +8 -0
  122. package/docs/RDMHostLun.md +41 -0
  123. package/docs/SuccessfulImageUpgrade.md +38 -0
  124. package/docs/VMFilterOptionsResponse.md +4 -0
  125. package/docs/VirtualMachine.md +4 -0
  126. package/docs/VirtualMachineDetail.md +2 -0
  127. package/docs/VirtualMachineDisk.md +4 -0
  128. package/docs/VirtualMachineIdentity.md +36 -0
  129. package/package.json +1 -1
  130. package/src/apis/AppliancesApi.ts +111 -0
  131. package/src/apis/CollectorApi.ts +0 -97
  132. package/src/apis/GroupsApi.ts +80 -0
  133. package/src/apis/ImageUpgradeApi.ts +128 -0
  134. package/src/apis/index.ts +2 -0
  135. package/src/models/AgentStatus.ts +14 -0
  136. package/src/models/Appliance.ts +107 -0
  137. package/src/models/ApplianceListResponse.ts +72 -0
  138. package/src/models/ApplicationOverview.ts +26 -0
  139. package/src/models/Host.ts +24 -0
  140. package/src/models/ImageUpgradeImage.ts +71 -0
  141. package/src/models/ImageUpgradeResult.ts +130 -0
  142. package/src/models/ImageUpgradeStatus.ts +100 -0
  143. package/src/models/ImageUploadStatus.ts +84 -0
  144. package/src/models/OsInfo.ts +15 -0
  145. package/src/models/Product.ts +118 -0
  146. package/src/models/RDMBacking.ts +44 -0
  147. package/src/models/RDMHostLun.ts +82 -0
  148. package/src/models/SuccessfulImageUpgrade.ts +78 -0
  149. package/src/models/VMFilterOptionsResponse.ts +14 -0
  150. package/src/models/VirtualMachine.ts +12 -0
  151. package/src/models/VirtualMachineDetail.ts +13 -0
  152. package/src/models/VirtualMachineDisk.ts +12 -0
  153. package/src/models/VirtualMachineIdentity.ts +71 -0
  154. package/src/models/index.ts +10 -0
  155. package/src/runtime.ts +3 -3
@@ -0,0 +1,44 @@
1
+
2
+ # Appliance
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `vendor` | string
11
+ `version` | string
12
+ `confidence` | number
13
+ `vmCount` | number
14
+ `vms` | [Array<VirtualMachineIdentity>](VirtualMachineIdentity.md)
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { Appliance } from '@openshift-migration-advisor/agent-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "name": null,
24
+ "vendor": null,
25
+ "version": null,
26
+ "confidence": null,
27
+ "vmCount": null,
28
+ "vms": null,
29
+ } satisfies Appliance
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as Appliance
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,34 @@
1
+
2
+ # ApplianceListResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `appliances` | [Array<Appliance>](Appliance.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApplianceListResponse } from '@openshift-migration-advisor/agent-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "appliances": null,
19
+ } satisfies ApplianceListResponse
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 ApplianceListResponse
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
+
@@ -0,0 +1,76 @@
1
+ # AppliancesApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**listAppliances**](AppliancesApi.md#listappliances) | **GET** /collections/{id}/appliances | List detected appliances in a collection |
8
+
9
+
10
+
11
+ ## listAppliances
12
+
13
+ > ApplianceListResponse listAppliances(id)
14
+
15
+ List detected appliances in a collection
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ AppliancesApi,
23
+ } from '@openshift-migration-advisor/agent-sdk';
24
+ import type { ListAppliancesRequest } from '@openshift-migration-advisor/agent-sdk';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
28
+ const api = new AppliancesApi();
29
+
30
+ const body = {
31
+ // string | Collection ID
32
+ id: id_example,
33
+ } satisfies ListAppliancesRequest;
34
+
35
+ try {
36
+ const data = await api.listAppliances(body);
37
+ console.log(data);
38
+ } catch (error) {
39
+ console.error(error);
40
+ }
41
+ }
42
+
43
+ // Run the test
44
+ example().catch(console.error);
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+
50
+ | Name | Type | Description | Notes |
51
+ |------------- | ------------- | ------------- | -------------|
52
+ | **id** | `string` | Collection ID | [Defaults to `undefined`] |
53
+
54
+ ### Return type
55
+
56
+ [**ApplianceListResponse**](ApplianceListResponse.md)
57
+
58
+ ### Authorization
59
+
60
+ No authorization required
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: Not defined
65
+ - **Accept**: `application/json`
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ | **200** | List of detected appliances | - |
72
+ | **404** | Collection not found | - |
73
+ | **500** | Internal server error | - |
74
+
75
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
76
+
@@ -8,6 +8,10 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `name` | string
10
10
  `description` | string
11
+ `vendor` | string
12
+ `category` | string
13
+ `confidence` | number
14
+ `containerizationCandidate` | boolean
11
15
  `vmCount` | number
12
16
  `vms` | [Array<ApplicationVM>](ApplicationVM.md)
13
17
 
@@ -20,6 +24,10 @@ import type { ApplicationOverview } from '@openshift-migration-advisor/agent-sdk
20
24
  const example = {
21
25
  "name": null,
22
26
  "description": null,
27
+ "vendor": null,
28
+ "category": null,
29
+ "confidence": null,
30
+ "containerizationCandidate": null,
23
31
  "vmCount": null,
24
32
  "vms": null,
25
33
  } satisfies ApplicationOverview
@@ -6,7 +6,6 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
6
6
  |------------- | ------------- | -------------|
7
7
  | [**getCollectorStatus**](CollectorApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
8
8
  | [**startCollector**](CollectorApi.md#startcollector) | **POST** /collector | Start a collection |
9
- | [**startRvtoolsCollector**](CollectorApi.md#startrvtoolscollector) | **POST** /collector/rvtools | Start a collection from RVTools files |
10
9
  | [**stopCollector**](CollectorApi.md#stopcollector) | **DELETE** /collector | Stop collector |
11
10
 
12
11
 
@@ -129,75 +128,6 @@ No authorization required
129
128
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
130
129
 
131
130
 
132
- ## startRvtoolsCollector
133
-
134
- > CollectorStatus startRvtoolsCollector(files)
135
-
136
- Start a collection from RVTools files
137
-
138
- ### Example
139
-
140
- ```ts
141
- import {
142
- Configuration,
143
- CollectorApi,
144
- } from '@openshift-migration-advisor/agent-sdk';
145
- import type { StartRvtoolsCollectorRequest } from '@openshift-migration-advisor/agent-sdk';
146
-
147
- async function example() {
148
- console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
149
- const api = new CollectorApi();
150
-
151
- const body = {
152
- // Array<Blob>
153
- files: [new Blob(['example file content'], { type: 'application/octet-stream' })],
154
- } satisfies StartRvtoolsCollectorRequest;
155
-
156
- try {
157
- const data = await api.startRvtoolsCollector(body);
158
- console.log(data);
159
- } catch (error) {
160
- console.error(error);
161
- }
162
- }
163
-
164
- // Run the test
165
- example().catch(console.error);
166
- ```
167
-
168
- ### Parameters
169
-
170
-
171
- | Name | Type | Description | Notes |
172
- |------------- | ------------- | ------------- | -------------|
173
- | **files** | `Array<Blob>` | | |
174
-
175
- ### Return type
176
-
177
- [**CollectorStatus**](CollectorStatus.md)
178
-
179
- ### Authorization
180
-
181
- No authorization required
182
-
183
- ### HTTP request headers
184
-
185
- - **Content-Type**: `multipart/form-data`
186
- - **Accept**: `application/json`
187
-
188
-
189
- ### HTTP response details
190
- | Status code | Description | Response headers |
191
- |-------------|-------------|------------------|
192
- | **202** | Collection started | - |
193
- | **400** | No files provided | - |
194
- | **409** | Collection already in progress | - |
195
- | **500** | Internal server error | - |
196
- | **501** | RVTools mode is not enabled | - |
197
-
198
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
199
-
200
-
201
131
  ## stopCollector
202
132
 
203
133
  > stopCollector()
package/docs/GroupsApi.md CHANGED
@@ -8,6 +8,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
8
8
  | [**deleteLatestGroup**](GroupsApi.md#deletelatestgroup) | **DELETE** /groups/{groupId} | Delete group from the latest collection |
9
9
  | [**getGroup**](GroupsApi.md#getgroup) | **GET** /collections/{id}/groups/{groupId} | Get group by ID with its VirtualMachines |
10
10
  | [**getLatestGroup**](GroupsApi.md#getlatestgroup) | **GET** /groups/{groupId} | Get group by ID from the latest collection |
11
+ | [**listGroupAppliances**](GroupsApi.md#listgroupappliances) | **GET** /groups/{groupId}/appliances | List detected appliances for a group |
11
12
  | [**listGroupApplications**](GroupsApi.md#listgroupapplications) | **GET** /groups/{groupId}/applications | List detected applications for a group |
12
13
  | [**listGroups**](GroupsApi.md#listgroups) | **GET** /collections/{id}/groups | List all groups in a collection |
13
14
  | [**listLatestGroups**](GroupsApi.md#listlatestgroups) | **GET** /groups | List groups from the latest collection |
@@ -305,6 +306,73 @@ No authorization required
305
306
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
306
307
 
307
308
 
309
+ ## listGroupAppliances
310
+
311
+ > ApplianceListResponse listGroupAppliances(groupId)
312
+
313
+ List detected appliances for a group
314
+
315
+ ### Example
316
+
317
+ ```ts
318
+ import {
319
+ Configuration,
320
+ GroupsApi,
321
+ } from '@openshift-migration-advisor/agent-sdk';
322
+ import type { ListGroupAppliancesRequest } from '@openshift-migration-advisor/agent-sdk';
323
+
324
+ async function example() {
325
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
326
+ const api = new GroupsApi();
327
+
328
+ const body = {
329
+ // string | Group ID
330
+ groupId: groupId_example,
331
+ } satisfies ListGroupAppliancesRequest;
332
+
333
+ try {
334
+ const data = await api.listGroupAppliances(body);
335
+ console.log(data);
336
+ } catch (error) {
337
+ console.error(error);
338
+ }
339
+ }
340
+
341
+ // Run the test
342
+ example().catch(console.error);
343
+ ```
344
+
345
+ ### Parameters
346
+
347
+
348
+ | Name | Type | Description | Notes |
349
+ |------------- | ------------- | ------------- | -------------|
350
+ | **groupId** | `string` | Group ID | [Defaults to `undefined`] |
351
+
352
+ ### Return type
353
+
354
+ [**ApplianceListResponse**](ApplianceListResponse.md)
355
+
356
+ ### Authorization
357
+
358
+ No authorization required
359
+
360
+ ### HTTP request headers
361
+
362
+ - **Content-Type**: Not defined
363
+ - **Accept**: `application/json`
364
+
365
+
366
+ ### HTTP response details
367
+ | Status code | Description | Response headers |
368
+ |-------------|-------------|------------------|
369
+ | **200** | List of detected appliances | - |
370
+ | **404** | No collections or group not found | - |
371
+ | **500** | Internal server error | - |
372
+
373
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
374
+
375
+
308
376
  ## listGroupApplications
309
377
 
310
378
  > ApplicationListResponse listGroupApplications(groupId)
package/docs/Host.md CHANGED
@@ -9,6 +9,10 @@ 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
@@ -27,6 +31,10 @@ const example = {
27
31
  "id": null,
28
32
  "vendor": null,
29
33
  "model": null,
34
+ "datacenter": null,
35
+ "cluster": null,
36
+ "cpuModel": null,
37
+ "serialNumber": null,
30
38
  "cpuCores": null,
31
39
  "cpuSockets": null,
32
40
  "memoryMB": null,
@@ -0,0 +1,82 @@
1
+ # ImageUpgradeApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**postImageUpgrade**](ImageUpgradeApi.md#postimageupgrade) | **POST** /image-upgrades | Upload an OCI image for a disconnected appliance image upgrade |
8
+
9
+
10
+
11
+ ## postImageUpgrade
12
+
13
+ > postImageUpgrade(file)
14
+
15
+ Upload an OCI image for a disconnected appliance image upgrade
16
+
17
+ Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ ImageUpgradeApi,
25
+ } from '@openshift-migration-advisor/agent-sdk';
26
+ import type { PostImageUpgradeRequest } from '@openshift-migration-advisor/agent-sdk';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
30
+ const api = new ImageUpgradeApi();
31
+
32
+ const body = {
33
+ // Blob | OCI archive; maximum file payload is 3 GiB
34
+ file: BINARY_DATA_HERE,
35
+ } satisfies PostImageUpgradeRequest;
36
+
37
+ try {
38
+ const data = await api.postImageUpgrade(body);
39
+ console.log(data);
40
+ } catch (error) {
41
+ console.error(error);
42
+ }
43
+ }
44
+
45
+ // Run the test
46
+ example().catch(console.error);
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ | Name | Type | Description | Notes |
53
+ |------------- | ------------- | ------------- | -------------|
54
+ | **file** | `Blob` | OCI archive; maximum file payload is 3 GiB | [Defaults to `undefined`] |
55
+
56
+ ### Return type
57
+
58
+ `void` (Empty response body)
59
+
60
+ ### Authorization
61
+
62
+ No authorization required
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: `multipart/form-data`
67
+ - **Accept**: Not defined
68
+
69
+
70
+ ### HTTP response details
71
+ | Status code | Description | Response headers |
72
+ |-------------|-------------|------------------|
73
+ | **202** | Validated image handed to the host; installation is asynchronous and may restart the agent | - |
74
+ | **400** | Invalid multipart input, OCI image, platform, or upgrade version | - |
75
+ | **409** | Connected mode, another image upload in progress, or a published archive still pending host resolution | - |
76
+ | **413** | File exceeds 3 GiB or multipart framing exceeds 1 MiB | - |
77
+ | **507** | Insufficient storage; preparation requires three times the archive size | - |
78
+ | **500** | Internal error | - |
79
+ | **503** | Image upgrade service unavailable, or upload interrupted by cancellation or timeout | - |
80
+
81
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
82
+
@@ -0,0 +1,36 @@
1
+
2
+ # ImageUpgradeImage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `version` | string
10
+ `digest` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ImageUpgradeImage } from '@openshift-migration-advisor/agent-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "version": null,
20
+ "digest": null,
21
+ } satisfies ImageUpgradeImage
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 ImageUpgradeImage
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,46 @@
1
+
2
+ # ImageUpgradeResult
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `file` | string
10
+ `outcome` | string
11
+ `time` | Date
12
+ `error` | string
13
+ `errorStage` | string
14
+ `runningImage` | [ImageUpgradeImage](ImageUpgradeImage.md)
15
+ `lastSuccessfulUpdate` | [SuccessfulImageUpgrade](SuccessfulImageUpgrade.md)
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ImageUpgradeResult } from '@openshift-migration-advisor/agent-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "file": null,
25
+ "outcome": null,
26
+ "time": null,
27
+ "error": null,
28
+ "errorStage": null,
29
+ "runningImage": null,
30
+ "lastSuccessfulUpdate": null,
31
+ } satisfies ImageUpgradeResult
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as ImageUpgradeResult
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,40 @@
1
+
2
+ # ImageUpgradeStatus
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `currentVersion` | string
10
+ `upload` | [ImageUploadStatus](ImageUploadStatus.md)
11
+ `upgrade` | [ImageUpgradeResult](ImageUpgradeResult.md)
12
+ `upgradeError` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ImageUpgradeStatus } from '@openshift-migration-advisor/agent-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "currentVersion": null,
22
+ "upload": null,
23
+ "upgrade": null,
24
+ "upgradeError": null,
25
+ } satisfies ImageUpgradeStatus
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as ImageUpgradeStatus
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,36 @@
1
+
2
+ # ImageUploadStatus
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `state` | string
10
+ `lastError` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ImageUploadStatus } from '@openshift-migration-advisor/agent-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "state": null,
20
+ "lastError": null,
21
+ } satisfies ImageUploadStatus
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 ImageUploadStatus
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/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,52 @@
1
+
2
+ # Product
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `key` | number
10
+ `classId` | string
11
+ `instanceId` | string
12
+ `name` | string
13
+ `vendor` | string
14
+ `version` | string
15
+ `fullVersion` | string
16
+ `vendorUrl` | string
17
+ `productUrl` | string
18
+ `appUrl` | string
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { Product } from '@openshift-migration-advisor/agent-sdk'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "key": null,
28
+ "classId": null,
29
+ "instanceId": null,
30
+ "name": null,
31
+ "vendor": null,
32
+ "version": null,
33
+ "fullVersion": null,
34
+ "vendorUrl": null,
35
+ "productUrl": null,
36
+ "appUrl": null,
37
+ } satisfies Product
38
+
39
+ console.log(example)
40
+
41
+ // Convert the instance to a JSON string
42
+ const exampleJSON: string = JSON.stringify(example)
43
+ console.log(exampleJSON)
44
+
45
+ // Parse the JSON string back to an object
46
+ const exampleParsed = JSON.parse(exampleJSON) as Product
47
+ console.log(exampleParsed)
48
+ ```
49
+
50
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
+
52
+
@@ -8,6 +8,10 @@ Source-provided backing identity for an RDM disk; omitted when unavailable
8
8
  Name | Type
9
9
  ------------ | -------------
10
10
  `lunUuid` | string
11
+ `deviceName` | string
12
+ `compatibilityMode` | string
13
+ `backingUuid` | string
14
+ `hostLun` | [RDMHostLun](RDMHostLun.md)
11
15
 
12
16
  ## Example
13
17
 
@@ -17,6 +21,10 @@ import type { RDMBacking } from '@openshift-migration-advisor/agent-sdk'
17
21
  // TODO: Update the object below with actual values
18
22
  const example = {
19
23
  "lunUuid": null,
24
+ "deviceName": null,
25
+ "compatibilityMode": null,
26
+ "backingUuid": null,
27
+ "hostLun": null,
20
28
  } satisfies RDMBacking
21
29
 
22
30
  console.log(example)