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

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 (76) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +14 -2
  3. package/dist/apis/AppliancesApi.d.ts +194 -0
  4. package/dist/apis/AppliancesApi.js +201 -0
  5. package/dist/apis/GroupsApi.d.ts +6 -6
  6. package/dist/apis/VirtualMachinesApi.d.ts +6 -6
  7. package/dist/esm/apis/AppliancesApi.d.ts +194 -0
  8. package/dist/esm/apis/AppliancesApi.js +201 -0
  9. package/dist/esm/apis/GroupsApi.d.ts +6 -6
  10. package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
  11. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  12. package/dist/esm/models/ApplianceRule.js +98 -0
  13. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  14. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  15. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  16. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  17. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  18. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  19. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  20. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  21. package/dist/esm/models/Datastore.d.ts +9 -0
  22. package/dist/esm/models/Datastore.js +5 -0
  23. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  24. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  25. package/dist/esm/models/StorageArray.d.ts +42 -0
  26. package/dist/esm/models/StorageArray.js +47 -0
  27. package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
  28. package/dist/esm/models/VirtualMachineDatastore.js +5 -0
  29. package/dist/esm/models/index.d.ts +7 -0
  30. package/dist/esm/models/index.js +7 -0
  31. package/dist/models/ApplianceRule.d.ts +90 -0
  32. package/dist/models/ApplianceRule.js +106 -0
  33. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  34. package/dist/models/ApplianceRuleCondition.js +55 -0
  35. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  36. package/dist/models/ApplianceRuleFunction.js +53 -0
  37. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  38. package/dist/models/ApplianceRuleListResponse.js +51 -0
  39. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  40. package/dist/models/ApplianceRuleRequest.js +93 -0
  41. package/dist/models/Datastore.d.ts +9 -0
  42. package/dist/models/Datastore.js +5 -0
  43. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  44. package/dist/models/DiskGeometryCondition.js +66 -0
  45. package/dist/models/StorageArray.d.ts +42 -0
  46. package/dist/models/StorageArray.js +54 -0
  47. package/dist/models/VirtualMachineDatastore.d.ts +9 -0
  48. package/dist/models/VirtualMachineDatastore.js +5 -0
  49. package/dist/models/index.d.ts +7 -0
  50. package/dist/models/index.js +7 -0
  51. package/docs/ApplianceRule.md +50 -0
  52. package/docs/ApplianceRuleCondition.md +39 -0
  53. package/docs/ApplianceRuleFunction.md +37 -0
  54. package/docs/ApplianceRuleListResponse.md +34 -0
  55. package/docs/ApplianceRuleRequest.md +46 -0
  56. package/docs/AppliancesApi.md +338 -0
  57. package/docs/Datastore.md +4 -0
  58. package/docs/DiskGeometryCondition.md +38 -0
  59. package/docs/GroupsApi.md +4 -4
  60. package/docs/StorageArray.md +41 -0
  61. package/docs/VirtualMachineDatastore.md +4 -0
  62. package/docs/VirtualMachinesApi.md +4 -4
  63. package/package.json +1 -1
  64. package/src/apis/AppliancesApi.ts +393 -0
  65. package/src/apis/GroupsApi.ts +6 -6
  66. package/src/apis/VirtualMachinesApi.ts +6 -6
  67. package/src/models/ApplianceRule.ts +159 -0
  68. package/src/models/ApplianceRuleCondition.ts +87 -0
  69. package/src/models/ApplianceRuleFunction.ts +80 -0
  70. package/src/models/ApplianceRuleListResponse.ts +72 -0
  71. package/src/models/ApplianceRuleRequest.ts +137 -0
  72. package/src/models/Datastore.ts +19 -0
  73. package/src/models/DiskGeometryCondition.ts +90 -0
  74. package/src/models/StorageArray.ts +81 -0
  75. package/src/models/VirtualMachineDatastore.ts +20 -0
  76. package/src/models/index.ts +7 -0
@@ -0,0 +1,34 @@
1
+
2
+ # ApplianceRuleListResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `rules` | [Array<ApplianceRule>](ApplianceRule.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApplianceRuleListResponse } from '@openshift-migration-advisor/agent-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "rules": null,
19
+ } satisfies ApplianceRuleListResponse
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 ApplianceRuleListResponse
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,46 @@
1
+
2
+ # ApplianceRuleRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `vendor` | string
11
+ `category` | string
12
+ `osv_verdict` | string
13
+ `max_confidence` | string
14
+ `min_matched` | number
15
+ `conditions` | [Array<ApplianceRuleCondition>](ApplianceRuleCondition.md)
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ApplianceRuleRequest } from '@openshift-migration-advisor/agent-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "name": null,
25
+ "vendor": null,
26
+ "category": null,
27
+ "osv_verdict": null,
28
+ "max_confidence": null,
29
+ "min_matched": null,
30
+ "conditions": null,
31
+ } satisfies ApplianceRuleRequest
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 ApplianceRuleRequest
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
+
@@ -4,10 +4,275 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**createApplianceRule**](AppliancesApi.md#createappliancerule) | **POST** /appliances/rules | Create an appliance rule |
8
+ | [**deleteApplianceRule**](AppliancesApi.md#deleteappliancerule) | **DELETE** /appliances/rules/{ruleId} | Delete an appliance rule |
9
+ | [**getApplianceRule**](AppliancesApi.md#getappliancerule) | **GET** /appliances/rules/{ruleId} | Get an appliance rule |
10
+ | [**listApplianceRules**](AppliancesApi.md#listappliancerules) | **GET** /appliances/rules | List appliance rules |
7
11
  | [**listAppliances**](AppliancesApi.md#listappliances) | **GET** /collections/{id}/appliances | List detected appliances in a collection |
12
+ | [**updateApplianceRule**](AppliancesApi.md#updateappliancerule) | **PUT** /appliances/rules/{ruleId} | Replace an appliance rule |
8
13
 
9
14
 
10
15
 
16
+ ## createApplianceRule
17
+
18
+ > ApplianceRule createApplianceRule(applianceRuleRequest)
19
+
20
+ Create an appliance rule
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ AppliancesApi,
28
+ } from '@openshift-migration-advisor/agent-sdk';
29
+ import type { CreateApplianceRuleRequest } from '@openshift-migration-advisor/agent-sdk';
30
+
31
+ async function example() {
32
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
33
+ const api = new AppliancesApi();
34
+
35
+ const body = {
36
+ // ApplianceRuleRequest
37
+ applianceRuleRequest: ...,
38
+ } satisfies CreateApplianceRuleRequest;
39
+
40
+ try {
41
+ const data = await api.createApplianceRule(body);
42
+ console.log(data);
43
+ } catch (error) {
44
+ console.error(error);
45
+ }
46
+ }
47
+
48
+ // Run the test
49
+ example().catch(console.error);
50
+ ```
51
+
52
+ ### Parameters
53
+
54
+
55
+ | Name | Type | Description | Notes |
56
+ |------------- | ------------- | ------------- | -------------|
57
+ | **applianceRuleRequest** | [ApplianceRuleRequest](ApplianceRuleRequest.md) | | |
58
+
59
+ ### Return type
60
+
61
+ [**ApplianceRule**](ApplianceRule.md)
62
+
63
+ ### Authorization
64
+
65
+ No authorization required
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: `application/json`
70
+ - **Accept**: `application/json`
71
+
72
+
73
+ ### HTTP response details
74
+ | Status code | Description | Response headers |
75
+ |-------------|-------------|------------------|
76
+ | **201** | Rule created | - |
77
+ | **400** | Invalid rule or rule already exists | - |
78
+ | **500** | Internal server error | - |
79
+
80
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
81
+
82
+
83
+ ## deleteApplianceRule
84
+
85
+ > deleteApplianceRule(ruleId)
86
+
87
+ Delete an appliance rule
88
+
89
+ ### Example
90
+
91
+ ```ts
92
+ import {
93
+ Configuration,
94
+ AppliancesApi,
95
+ } from '@openshift-migration-advisor/agent-sdk';
96
+ import type { DeleteApplianceRuleRequest } from '@openshift-migration-advisor/agent-sdk';
97
+
98
+ async function example() {
99
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
100
+ const api = new AppliancesApi();
101
+
102
+ const body = {
103
+ // string | Rule ID
104
+ ruleId: ruleId_example,
105
+ } satisfies DeleteApplianceRuleRequest;
106
+
107
+ try {
108
+ const data = await api.deleteApplianceRule(body);
109
+ console.log(data);
110
+ } catch (error) {
111
+ console.error(error);
112
+ }
113
+ }
114
+
115
+ // Run the test
116
+ example().catch(console.error);
117
+ ```
118
+
119
+ ### Parameters
120
+
121
+
122
+ | Name | Type | Description | Notes |
123
+ |------------- | ------------- | ------------- | -------------|
124
+ | **ruleId** | `string` | Rule ID | [Defaults to `undefined`] |
125
+
126
+ ### Return type
127
+
128
+ `void` (Empty response body)
129
+
130
+ ### Authorization
131
+
132
+ No authorization required
133
+
134
+ ### HTTP request headers
135
+
136
+ - **Content-Type**: Not defined
137
+ - **Accept**: Not defined
138
+
139
+
140
+ ### HTTP response details
141
+ | Status code | Description | Response headers |
142
+ |-------------|-------------|------------------|
143
+ | **204** | Rule deleted, or no rule had this id | - |
144
+ | **400** | Rule ID is not a number | - |
145
+ | **500** | Internal server error | - |
146
+
147
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
148
+
149
+
150
+ ## getApplianceRule
151
+
152
+ > ApplianceRule getApplianceRule(ruleId)
153
+
154
+ Get an appliance rule
155
+
156
+ ### Example
157
+
158
+ ```ts
159
+ import {
160
+ Configuration,
161
+ AppliancesApi,
162
+ } from '@openshift-migration-advisor/agent-sdk';
163
+ import type { GetApplianceRuleRequest } from '@openshift-migration-advisor/agent-sdk';
164
+
165
+ async function example() {
166
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
167
+ const api = new AppliancesApi();
168
+
169
+ const body = {
170
+ // string | Rule ID
171
+ ruleId: ruleId_example,
172
+ } satisfies GetApplianceRuleRequest;
173
+
174
+ try {
175
+ const data = await api.getApplianceRule(body);
176
+ console.log(data);
177
+ } catch (error) {
178
+ console.error(error);
179
+ }
180
+ }
181
+
182
+ // Run the test
183
+ example().catch(console.error);
184
+ ```
185
+
186
+ ### Parameters
187
+
188
+
189
+ | Name | Type | Description | Notes |
190
+ |------------- | ------------- | ------------- | -------------|
191
+ | **ruleId** | `string` | Rule ID | [Defaults to `undefined`] |
192
+
193
+ ### Return type
194
+
195
+ [**ApplianceRule**](ApplianceRule.md)
196
+
197
+ ### Authorization
198
+
199
+ No authorization required
200
+
201
+ ### HTTP request headers
202
+
203
+ - **Content-Type**: Not defined
204
+ - **Accept**: `application/json`
205
+
206
+
207
+ ### HTTP response details
208
+ | Status code | Description | Response headers |
209
+ |-------------|-------------|------------------|
210
+ | **200** | Rule | - |
211
+ | **400** | Rule ID is not a number | - |
212
+ | **404** | Rule not found | - |
213
+ | **500** | Internal server error | - |
214
+
215
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
216
+
217
+
218
+ ## listApplianceRules
219
+
220
+ > ApplianceRuleListResponse listApplianceRules()
221
+
222
+ List appliance rules
223
+
224
+ ### Example
225
+
226
+ ```ts
227
+ import {
228
+ Configuration,
229
+ AppliancesApi,
230
+ } from '@openshift-migration-advisor/agent-sdk';
231
+ import type { ListApplianceRulesRequest } from '@openshift-migration-advisor/agent-sdk';
232
+
233
+ async function example() {
234
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
235
+ const api = new AppliancesApi();
236
+
237
+ try {
238
+ const data = await api.listApplianceRules();
239
+ console.log(data);
240
+ } catch (error) {
241
+ console.error(error);
242
+ }
243
+ }
244
+
245
+ // Run the test
246
+ example().catch(console.error);
247
+ ```
248
+
249
+ ### Parameters
250
+
251
+ This endpoint does not need any parameter.
252
+
253
+ ### Return type
254
+
255
+ [**ApplianceRuleListResponse**](ApplianceRuleListResponse.md)
256
+
257
+ ### Authorization
258
+
259
+ No authorization required
260
+
261
+ ### HTTP request headers
262
+
263
+ - **Content-Type**: Not defined
264
+ - **Accept**: `application/json`
265
+
266
+
267
+ ### HTTP response details
268
+ | Status code | Description | Response headers |
269
+ |-------------|-------------|------------------|
270
+ | **200** | Return appliance rules | - |
271
+ | **500** | Internal server error | - |
272
+
273
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
274
+
275
+
11
276
  ## listAppliances
12
277
 
13
278
  > ApplianceListResponse listAppliances(id)
@@ -74,3 +339,76 @@ No authorization required
74
339
 
75
340
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
76
341
 
342
+
343
+ ## updateApplianceRule
344
+
345
+ > ApplianceRule updateApplianceRule(ruleId, applianceRuleRequest)
346
+
347
+ Replace an appliance rule
348
+
349
+ Full replacement of the rule with this id, including its conditions. When no rule has this id a new rule is created and the response carries the server assigned id, which differs from the id in the path.
350
+
351
+ ### Example
352
+
353
+ ```ts
354
+ import {
355
+ Configuration,
356
+ AppliancesApi,
357
+ } from '@openshift-migration-advisor/agent-sdk';
358
+ import type { UpdateApplianceRuleRequest } from '@openshift-migration-advisor/agent-sdk';
359
+
360
+ async function example() {
361
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
362
+ const api = new AppliancesApi();
363
+
364
+ const body = {
365
+ // string | Rule ID
366
+ ruleId: ruleId_example,
367
+ // ApplianceRuleRequest
368
+ applianceRuleRequest: ...,
369
+ } satisfies UpdateApplianceRuleRequest;
370
+
371
+ try {
372
+ const data = await api.updateApplianceRule(body);
373
+ console.log(data);
374
+ } catch (error) {
375
+ console.error(error);
376
+ }
377
+ }
378
+
379
+ // Run the test
380
+ example().catch(console.error);
381
+ ```
382
+
383
+ ### Parameters
384
+
385
+
386
+ | Name | Type | Description | Notes |
387
+ |------------- | ------------- | ------------- | -------------|
388
+ | **ruleId** | `string` | Rule ID | [Defaults to `undefined`] |
389
+ | **applianceRuleRequest** | [ApplianceRuleRequest](ApplianceRuleRequest.md) | | |
390
+
391
+ ### Return type
392
+
393
+ [**ApplianceRule**](ApplianceRule.md)
394
+
395
+ ### Authorization
396
+
397
+ No authorization required
398
+
399
+ ### HTTP request headers
400
+
401
+ - **Content-Type**: `application/json`
402
+ - **Accept**: `application/json`
403
+
404
+
405
+ ### HTTP response details
406
+ | Status code | Description | Response headers |
407
+ |-------------|-------------|------------------|
408
+ | **200** | Rule updated | - |
409
+ | **201** | No rule had this id, so a new rule was created | - |
410
+ | **400** | Invalid rule, invalid rule ID or rule already exists | - |
411
+ | **500** | Internal server error | - |
412
+
413
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
414
+
package/docs/Datastore.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `storageArrays` | [Array<StorageArray>](StorageArray.md)
10
+ `storageContainerId` | string
9
11
  `type` | string
10
12
  `backingDeviceIds` | Array<string>
11
13
  `filesystemType` | string
@@ -29,6 +31,8 @@ import type { Datastore } from '@openshift-migration-advisor/agent-sdk'
29
31
 
30
32
  // TODO: Update the object below with actual values
31
33
  const example = {
34
+ "storageArrays": null,
35
+ "storageContainerId": null,
32
36
  "type": null,
33
37
  "backingDeviceIds": null,
34
38
  "filesystemType": null,
@@ -0,0 +1,38 @@
1
+
2
+ # DiskGeometryCondition
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `disks` | Array<number>
10
+ `mode` | string
11
+ `tolerance_mib` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { DiskGeometryCondition } from '@openshift-migration-advisor/agent-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "disks": null,
21
+ "mode": null,
22
+ "tolerance_mib": null,
23
+ } satisfies DiskGeometryCondition
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 DiskGeometryCondition
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
+
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,41 @@
1
+
2
+ # StorageArray
3
+
4
+ Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `uuid` | string
11
+ `name` | string
12
+ `vendorId` | string
13
+ `modelId` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { StorageArray } from '@openshift-migration-advisor/agent-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "uuid": null,
23
+ "name": null,
24
+ "vendorId": null,
25
+ "modelId": null,
26
+ } satisfies StorageArray
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 StorageArray
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
+
@@ -17,6 +17,8 @@ Name | Type
17
17
  `backingDeviceIds` | Array&lt;string&gt;
18
18
  `vendor` | string
19
19
  `model` | string
20
+ `storageArrays` | [Array&lt;StorageArray&gt;](StorageArray.md)
21
+ `storageContainerId` | string
20
22
 
21
23
  ## Example
22
24
 
@@ -35,6 +37,8 @@ const example = {
35
37
  "backingDeviceIds": null,
36
38
  "vendor": null,
37
39
  "model": null,
40
+ "storageArrays": null,
41
+ "storageContainerId": null,
38
42
  } satisfies VirtualMachineDatastore
39
43
 
40
44
  console.log(example)
@@ -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.1-84c734aba511",
3
+ "version": "0.33.1-e1c90d7b1b79",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {