@openshift-migration-advisor/agent-sdk 0.33.1-d63d5073ca08 → 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 (68) 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/esm/apis/AppliancesApi.d.ts +194 -0
  6. package/dist/esm/apis/AppliancesApi.js +201 -0
  7. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  8. package/dist/esm/models/ApplianceRule.js +98 -0
  9. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  10. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  11. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  12. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  13. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  14. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  15. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  16. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  17. package/dist/esm/models/Datastore.d.ts +9 -0
  18. package/dist/esm/models/Datastore.js +5 -0
  19. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  20. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  21. package/dist/esm/models/StorageArray.d.ts +42 -0
  22. package/dist/esm/models/StorageArray.js +47 -0
  23. package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
  24. package/dist/esm/models/VirtualMachineDatastore.js +5 -0
  25. package/dist/esm/models/index.d.ts +7 -0
  26. package/dist/esm/models/index.js +7 -0
  27. package/dist/models/ApplianceRule.d.ts +90 -0
  28. package/dist/models/ApplianceRule.js +106 -0
  29. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  30. package/dist/models/ApplianceRuleCondition.js +55 -0
  31. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  32. package/dist/models/ApplianceRuleFunction.js +53 -0
  33. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  34. package/dist/models/ApplianceRuleListResponse.js +51 -0
  35. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  36. package/dist/models/ApplianceRuleRequest.js +93 -0
  37. package/dist/models/Datastore.d.ts +9 -0
  38. package/dist/models/Datastore.js +5 -0
  39. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  40. package/dist/models/DiskGeometryCondition.js +66 -0
  41. package/dist/models/StorageArray.d.ts +42 -0
  42. package/dist/models/StorageArray.js +54 -0
  43. package/dist/models/VirtualMachineDatastore.d.ts +9 -0
  44. package/dist/models/VirtualMachineDatastore.js +5 -0
  45. package/dist/models/index.d.ts +7 -0
  46. package/dist/models/index.js +7 -0
  47. package/docs/ApplianceRule.md +50 -0
  48. package/docs/ApplianceRuleCondition.md +39 -0
  49. package/docs/ApplianceRuleFunction.md +37 -0
  50. package/docs/ApplianceRuleListResponse.md +34 -0
  51. package/docs/ApplianceRuleRequest.md +46 -0
  52. package/docs/AppliancesApi.md +338 -0
  53. package/docs/Datastore.md +4 -0
  54. package/docs/DiskGeometryCondition.md +38 -0
  55. package/docs/StorageArray.md +41 -0
  56. package/docs/VirtualMachineDatastore.md +4 -0
  57. package/package.json +1 -1
  58. package/src/apis/AppliancesApi.ts +393 -0
  59. package/src/models/ApplianceRule.ts +159 -0
  60. package/src/models/ApplianceRuleCondition.ts +87 -0
  61. package/src/models/ApplianceRuleFunction.ts +80 -0
  62. package/src/models/ApplianceRuleListResponse.ts +72 -0
  63. package/src/models/ApplianceRuleRequest.ts +137 -0
  64. package/src/models/Datastore.ts +19 -0
  65. package/src/models/DiskGeometryCondition.ts +90 -0
  66. package/src/models/StorageArray.ts +81 -0
  67. package/src/models/VirtualMachineDatastore.ts +20 -0
  68. package/src/models/index.ts +7 -0
@@ -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
+
@@ -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<string>
18
18
  `vendor` | string
19
19
  `model` | string
20
+ `storageArrays` | [Array<StorageArray>](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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.33.1-d63d5073ca08",
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": {