@openshift-migration-advisor/agent-sdk 0.33.0 → 0.33.1-d63d5073ca08

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 (94) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +10 -3
  4. package/dist/apis/GroupsApi.d.ts +6 -6
  5. package/dist/apis/ImageUpgradeApi.d.ts +66 -0
  6. package/dist/apis/ImageUpgradeApi.js +90 -0
  7. package/dist/apis/VirtualMachinesApi.d.ts +6 -6
  8. package/dist/apis/index.d.ts +1 -0
  9. package/dist/apis/index.js +1 -0
  10. package/dist/esm/apis/GroupsApi.d.ts +6 -6
  11. package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
  12. package/dist/esm/apis/ImageUpgradeApi.js +86 -0
  13. package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
  14. package/dist/esm/apis/index.d.ts +1 -0
  15. package/dist/esm/apis/index.js +1 -0
  16. package/dist/esm/models/AgentStatus.d.ts +5 -0
  17. package/dist/esm/models/AgentStatus.js +5 -0
  18. package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
  19. package/dist/esm/models/ImageUpgradeImage.js +47 -0
  20. package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
  21. package/dist/esm/models/ImageUpgradeResult.js +71 -0
  22. package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
  23. package/dist/esm/models/ImageUpgradeStatus.js +57 -0
  24. package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
  25. package/dist/esm/models/ImageUploadStatus.js +56 -0
  26. package/dist/esm/models/RDMBacking.d.ts +26 -0
  27. package/dist/esm/models/RDMBacking.js +17 -0
  28. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  29. package/dist/esm/models/RDMHostLun.js +49 -0
  30. package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
  31. package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
  32. package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
  33. package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
  34. package/dist/esm/models/VirtualMachine.d.ts +8 -0
  35. package/dist/esm/models/VirtualMachine.js +4 -0
  36. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  37. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  38. package/dist/esm/models/index.d.ts +6 -0
  39. package/dist/esm/models/index.js +6 -0
  40. package/dist/models/AgentStatus.d.ts +5 -0
  41. package/dist/models/AgentStatus.js +5 -0
  42. package/dist/models/ImageUpgradeImage.d.ts +34 -0
  43. package/dist/models/ImageUpgradeImage.js +54 -0
  44. package/dist/models/ImageUpgradeResult.d.ts +66 -0
  45. package/dist/models/ImageUpgradeResult.js +79 -0
  46. package/dist/models/ImageUpgradeStatus.d.ts +44 -0
  47. package/dist/models/ImageUpgradeStatus.js +64 -0
  48. package/dist/models/ImageUploadStatus.d.ts +44 -0
  49. package/dist/models/ImageUploadStatus.js +64 -0
  50. package/dist/models/RDMBacking.d.ts +26 -0
  51. package/dist/models/RDMBacking.js +18 -0
  52. package/dist/models/RDMHostLun.d.ts +42 -0
  53. package/dist/models/RDMHostLun.js +56 -0
  54. package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
  55. package/dist/models/SuccessfulImageUpgrade.js +59 -0
  56. package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
  57. package/dist/models/VMFilterOptionsResponse.js +8 -0
  58. package/dist/models/VirtualMachine.d.ts +8 -0
  59. package/dist/models/VirtualMachine.js +4 -0
  60. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  61. package/dist/models/VirtualMachineDisk.js +4 -0
  62. package/dist/models/index.d.ts +6 -0
  63. package/dist/models/index.js +6 -0
  64. package/docs/AgentStatus.md +2 -0
  65. package/docs/GroupsApi.md +4 -4
  66. package/docs/ImageUpgradeApi.md +82 -0
  67. package/docs/ImageUpgradeImage.md +36 -0
  68. package/docs/ImageUpgradeResult.md +46 -0
  69. package/docs/ImageUpgradeStatus.md +40 -0
  70. package/docs/ImageUploadStatus.md +36 -0
  71. package/docs/RDMBacking.md +8 -0
  72. package/docs/RDMHostLun.md +41 -0
  73. package/docs/SuccessfulImageUpgrade.md +38 -0
  74. package/docs/VMFilterOptionsResponse.md +4 -0
  75. package/docs/VirtualMachine.md +4 -0
  76. package/docs/VirtualMachineDisk.md +4 -0
  77. package/docs/VirtualMachinesApi.md +4 -4
  78. package/package.json +1 -1
  79. package/src/apis/GroupsApi.ts +6 -6
  80. package/src/apis/ImageUpgradeApi.ts +128 -0
  81. package/src/apis/VirtualMachinesApi.ts +6 -6
  82. package/src/apis/index.ts +1 -0
  83. package/src/models/AgentStatus.ts +14 -0
  84. package/src/models/ImageUpgradeImage.ts +71 -0
  85. package/src/models/ImageUpgradeResult.ts +130 -0
  86. package/src/models/ImageUpgradeStatus.ts +100 -0
  87. package/src/models/ImageUploadStatus.ts +84 -0
  88. package/src/models/RDMBacking.ts +44 -0
  89. package/src/models/RDMHostLun.ts +82 -0
  90. package/src/models/SuccessfulImageUpgrade.ts +78 -0
  91. package/src/models/VMFilterOptionsResponse.ts +14 -0
  92. package/src/models/VirtualMachine.ts +12 -0
  93. package/src/models/VirtualMachineDisk.ts +12 -0
  94. package/src/models/index.ts +6 -0
package/docs/GroupsApi.md CHANGED
@@ -175,7 +175,7 @@ async function example() {
175
175
  id: id_example,
176
176
  // string | Group ID
177
177
  groupId: groupId_example,
178
- // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
178
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. (optional)
179
179
  sort: ["cluster:asc","name:desc"],
180
180
  // number | Page number for pagination (optional)
181
181
  page: 56,
@@ -202,7 +202,7 @@ example().catch(console.error);
202
202
  |------------- | ------------- | ------------- | -------------|
203
203
  | **id** | `string` | Collection ID | [Defaults to `undefined`] |
204
204
  | **groupId** | `string` | Group ID | [Defaults to `undefined`] |
205
- | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
205
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. | [Optional] |
206
206
  | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
207
207
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
208
208
 
@@ -252,7 +252,7 @@ async function example() {
252
252
  const body = {
253
253
  // string | Group ID
254
254
  groupId: groupId_example,
255
- // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
255
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. (optional)
256
256
  sort: ["cluster:asc","name:desc"],
257
257
  // number | Page number for pagination (optional)
258
258
  page: 56,
@@ -278,7 +278,7 @@ example().catch(console.error);
278
278
  | Name | Type | Description | Notes |
279
279
  |------------- | ------------- | ------------- | -------------|
280
280
  | **groupId** | `string` | Group ID | [Defaults to `undefined`] |
281
- | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
281
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. | [Optional] |
282
282
  | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
283
283
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
284
284
 
@@ -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
+
@@ -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)
@@ -0,0 +1,41 @@
1
+
2
+ # RDMHostLun
3
+
4
+ Host LUN matched to the RDM disk backing through a verified identifier relationship and the VM\'s running host
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `hostId` | string
11
+ `key` | string
12
+ `canonicalName` | string
13
+ `lunUuid` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { RDMHostLun } from '@openshift-migration-advisor/agent-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "hostId": null,
23
+ "key": null,
24
+ "canonicalName": null,
25
+ "lunUuid": null,
26
+ } satisfies RDMHostLun
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as RDMHostLun
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,38 @@
1
+
2
+ # SuccessfulImageUpgrade
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `version` | string
10
+ `digest` | string
11
+ `time` | Date
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SuccessfulImageUpgrade } from '@openshift-migration-advisor/agent-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "version": null,
21
+ "digest": null,
22
+ "time": null,
23
+ } satisfies SuccessfulImageUpgrade
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as SuccessfulImageUpgrade
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -12,6 +12,8 @@ Name | Type
12
12
  `concernLabels` | Array&lt;string&gt;
13
13
  `concernCategories` | Array&lt;string&gt;
14
14
  `applications` | Array&lt;string&gt;
15
+ `osConfigs` | Array&lt;string&gt;
16
+ `osTools` | Array&lt;string&gt;
15
17
 
16
18
  ## Example
17
19
 
@@ -26,6 +28,8 @@ const example = {
26
28
  "concernLabels": null,
27
29
  "concernCategories": null,
28
30
  "applications": null,
31
+ "osConfigs": null,
32
+ "osTools": null,
29
33
  } satisfies VMFilterOptionsResponse
30
34
 
31
35
  console.log(example)
@@ -22,6 +22,8 @@ Name | Type
22
22
  `migrationExcluded` | boolean
23
23
  `groups` | Array&lt;string&gt;
24
24
  `labels` | Array&lt;string&gt;
25
+ `guestName` | string
26
+ `guestNameFromVmwareTools` | string
25
27
  `utilization_cpu_p95` | number
26
28
  `utilization_mem_p95` | number
27
29
  `utilization_cpu_max` | number
@@ -52,6 +54,8 @@ const example = {
52
54
  "migrationExcluded": null,
53
55
  "groups": null,
54
56
  "labels": null,
57
+ "guestName": null,
58
+ "guestNameFromVmwareTools": null,
55
59
  "utilization_cpu_p95": null,
56
60
  "utilization_mem_p95": null,
57
61
  "utilization_cpu_max": null,
@@ -12,6 +12,8 @@ Name | Type
12
12
  `shared` | boolean
13
13
  `rdm` | boolean
14
14
  `rdmBacking` | [RDMBacking](RDMBacking.md)
15
+ `thinProvisioned` | boolean
16
+ `eagerlyScrubbed` | boolean
15
17
  `bus` | string
16
18
  `mode` | string
17
19
  `datastore` | [VirtualMachineDatastore](VirtualMachineDatastore.md)
@@ -29,6 +31,8 @@ const example = {
29
31
  "shared": null,
30
32
  "rdm": null,
31
33
  "rdmBacking": null,
34
+ "thinProvisioned": null,
35
+ "eagerlyScrubbed": null,
32
36
  "bus": null,
33
37
  "mode": null,
34
38
  "datastore": null,
@@ -706,7 +706,7 @@ async function example() {
706
706
  const body = {
707
707
  // string | Filter by expression (optional)
708
708
  byExpression: byExpression_example,
709
- // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
709
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. (optional)
710
710
  sort: ["cluster:asc","name:desc"],
711
711
  // number | Page number for pagination (optional)
712
712
  page: 56,
@@ -732,7 +732,7 @@ example().catch(console.error);
732
732
  | Name | Type | Description | Notes |
733
733
  |------------- | ------------- | ------------- | -------------|
734
734
  | **byExpression** | `string` | Filter by expression | [Optional] [Defaults to `undefined`] |
735
- | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
735
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. | [Optional] |
736
736
  | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
737
737
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
738
738
 
@@ -785,7 +785,7 @@ async function example() {
785
785
  id: id_example,
786
786
  // string | Filter by expression (optional)
787
787
  byExpression: byExpression_example,
788
- // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
788
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. (optional)
789
789
  sort: ["cluster:asc","name:desc"],
790
790
  // number | Page number for pagination (optional)
791
791
  page: 56,
@@ -812,7 +812,7 @@ example().catch(console.error);
812
812
  |------------- | ------------- | ------------- | -------------|
813
813
  | **id** | `string` | Collection ID | [Defaults to `undefined`] |
814
814
  | **byExpression** | `string` | Filter by expression | [Optional] [Defaults to `undefined`] |
815
- | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
815
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. | [Optional] |
816
816
  | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
817
817
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
818
818
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.33.0",
3
+ "version": "0.33.1-d63d5073ca08",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -73,7 +73,7 @@ export interface GetGroupRequest {
73
73
  */
74
74
  groupId: string;
75
75
  /**
76
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
76
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
77
77
  */
78
78
  sort?: Array<string>;
79
79
  /**
@@ -92,7 +92,7 @@ export interface GetLatestGroupRequest {
92
92
  */
93
93
  groupId: string;
94
94
  /**
95
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
95
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
96
96
  */
97
97
  sort?: Array<string>;
98
98
  /**
@@ -221,7 +221,7 @@ export interface GroupsApiInterface {
221
221
  * Creates request options for getGroup without sending the request
222
222
  * @param {string} id Collection ID
223
223
  * @param {string} groupId Group ID
224
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
224
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
225
225
  * @param {number} [page] Page number for pagination
226
226
  * @param {number} [pageSize] Number of items per page
227
227
  * @throws {RequiredError}
@@ -234,7 +234,7 @@ export interface GroupsApiInterface {
234
234
  * @summary Get group by ID with its VirtualMachines
235
235
  * @param {string} id Collection ID
236
236
  * @param {string} groupId Group ID
237
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
237
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
238
238
  * @param {number} [page] Page number for pagination
239
239
  * @param {number} [pageSize] Number of items per page
240
240
  * @param {*} [options] Override http request option.
@@ -251,7 +251,7 @@ export interface GroupsApiInterface {
251
251
  /**
252
252
  * Creates request options for getLatestGroup without sending the request
253
253
  * @param {string} groupId Group ID
254
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
254
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
255
255
  * @param {number} [page] Page number for pagination
256
256
  * @param {number} [pageSize] Number of items per page
257
257
  * @throws {RequiredError}
@@ -263,7 +263,7 @@ export interface GroupsApiInterface {
263
263
  *
264
264
  * @summary Get group by ID from the latest collection
265
265
  * @param {string} groupId Group ID
266
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
266
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
267
267
  * @param {number} [page] Page number for pagination
268
268
  * @param {number} [pageSize] Number of items per page
269
269
  * @param {*} [options] Override http request option.
@@ -0,0 +1,128 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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 * as runtime from '../runtime.js';
16
+
17
+ export interface PostImageUpgradeRequest {
18
+ /**
19
+ * OCI archive; maximum file payload is 3 GiB
20
+ */
21
+ file: Blob;
22
+ }
23
+
24
+ /**
25
+ * ImageUpgradeApi - interface
26
+ *
27
+ * @export
28
+ * @interface ImageUpgradeApiInterface
29
+ */
30
+ export interface ImageUpgradeApiInterface {
31
+ /**
32
+ * Creates request options for postImageUpgrade without sending the request
33
+ * @param {Blob} file OCI archive; maximum file payload is 3 GiB
34
+ * @throws {RequiredError}
35
+ * @memberof ImageUpgradeApiInterface
36
+ */
37
+ postImageUpgradeRequestOpts(requestParameters: PostImageUpgradeRequest): Promise<runtime.RequestOpts>;
38
+
39
+ /**
40
+ * 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.
41
+ * @summary Upload an OCI image for a disconnected appliance image upgrade
42
+ * @param {Blob} file OCI archive; maximum file payload is 3 GiB
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ * @memberof ImageUpgradeApiInterface
46
+ */
47
+ postImageUpgradeRaw(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
48
+
49
+ /**
50
+ * 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.
51
+ * Upload an OCI image for a disconnected appliance image upgrade
52
+ */
53
+ postImageUpgrade(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
54
+
55
+ }
56
+
57
+ /**
58
+ *
59
+ */
60
+ export class ImageUpgradeApi extends runtime.BaseAPI implements ImageUpgradeApiInterface {
61
+
62
+ /**
63
+ * Creates request options for postImageUpgrade without sending the request
64
+ */
65
+ async postImageUpgradeRequestOpts(requestParameters: PostImageUpgradeRequest): Promise<runtime.RequestOpts> {
66
+ if (requestParameters['file'] == null) {
67
+ throw new runtime.RequiredError(
68
+ 'file',
69
+ 'Required parameter "file" was null or undefined when calling postImageUpgrade().'
70
+ );
71
+ }
72
+
73
+ const queryParameters: any = {};
74
+
75
+ const headerParameters: runtime.HTTPHeaders = {};
76
+
77
+ const consumes: runtime.Consume[] = [
78
+ { contentType: 'multipart/form-data' },
79
+ ];
80
+ // @ts-ignore: canConsumeForm may be unused
81
+ const canConsumeForm = runtime.canConsumeForm(consumes);
82
+
83
+ let formParams: { append(param: string, value: any): any };
84
+ let useForm = false;
85
+ // use FormData to transmit files using content-type "multipart/form-data"
86
+ useForm = canConsumeForm;
87
+ if (useForm) {
88
+ formParams = new FormData();
89
+ } else {
90
+ formParams = new URLSearchParams();
91
+ }
92
+
93
+ if (requestParameters['file'] != null) {
94
+ formParams.append('file', requestParameters['file'] as any);
95
+ }
96
+
97
+
98
+ let urlPath = `/image-upgrades`;
99
+
100
+ return {
101
+ path: urlPath,
102
+ method: 'POST',
103
+ headers: headerParameters,
104
+ query: queryParameters,
105
+ body: formParams,
106
+ };
107
+ }
108
+
109
+ /**
110
+ * 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.
111
+ * Upload an OCI image for a disconnected appliance image upgrade
112
+ */
113
+ async postImageUpgradeRaw(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
114
+ const requestOptions = await this.postImageUpgradeRequestOpts(requestParameters);
115
+ const response = await this.request(requestOptions, initOverrides);
116
+
117
+ return new runtime.VoidApiResponse(response);
118
+ }
119
+
120
+ /**
121
+ * 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.
122
+ * Upload an OCI image for a disconnected appliance image upgrade
123
+ */
124
+ async postImageUpgrade(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
125
+ await this.postImageUpgradeRaw(requestParameters, initOverrides);
126
+ }
127
+
128
+ }