@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0-83e8d01d3484

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 (59) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +7 -2
  3. package/dist/apis/AssessmentApi.d.ts +101 -6
  4. package/dist/apis/AssessmentApi.js +95 -6
  5. package/dist/apis/ImageApi.d.ts +14 -0
  6. package/dist/apis/ImageApi.js +11 -1
  7. package/dist/esm/apis/AssessmentApi.d.ts +101 -6
  8. package/dist/esm/apis/AssessmentApi.js +95 -6
  9. package/dist/esm/apis/ImageApi.d.ts +14 -0
  10. package/dist/esm/apis/ImageApi.js +10 -0
  11. package/dist/esm/models/Host.d.ts +26 -0
  12. package/dist/esm/models/Host.js +14 -0
  13. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  14. package/dist/esm/models/HostStorageAdapter.js +55 -0
  15. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  16. package/dist/esm/models/HostStorageLun.js +51 -0
  17. package/dist/esm/models/Info.d.ts +4 -0
  18. package/dist/esm/models/Info.js +2 -0
  19. package/dist/esm/models/OsInfo.d.ts +12 -0
  20. package/dist/esm/models/OsInfo.js +9 -0
  21. package/dist/esm/models/SourceType.d.ts +26 -0
  22. package/dist/esm/models/SourceType.js +44 -0
  23. package/dist/esm/models/index.d.ts +3 -0
  24. package/dist/esm/models/index.js +3 -0
  25. package/dist/esm/runtime.js +4 -3
  26. package/dist/models/Host.d.ts +26 -0
  27. package/dist/models/Host.js +14 -0
  28. package/dist/models/HostStorageAdapter.d.ts +58 -0
  29. package/dist/models/HostStorageAdapter.js +62 -0
  30. package/dist/models/HostStorageLun.d.ts +50 -0
  31. package/dist/models/HostStorageLun.js +58 -0
  32. package/dist/models/Info.d.ts +4 -0
  33. package/dist/models/Info.js +2 -0
  34. package/dist/models/OsInfo.d.ts +12 -0
  35. package/dist/models/OsInfo.js +10 -1
  36. package/dist/models/SourceType.d.ts +26 -0
  37. package/dist/models/SourceType.js +52 -0
  38. package/dist/models/index.d.ts +3 -0
  39. package/dist/models/index.js +3 -0
  40. package/dist/runtime.js +4 -3
  41. package/docs/AssessmentApi.md +163 -3
  42. package/docs/Host.md +12 -0
  43. package/docs/HostStorageAdapter.md +49 -0
  44. package/docs/HostStorageLun.md +45 -0
  45. package/docs/ImageApi.md +5 -2
  46. package/docs/Info.md +2 -0
  47. package/docs/OsInfo.md +2 -0
  48. package/docs/SourceType.md +32 -0
  49. package/package.json +1 -1
  50. package/src/apis/AssessmentApi.ts +203 -8
  51. package/src/apis/ImageApi.ts +19 -0
  52. package/src/models/Host.ts +51 -0
  53. package/src/models/HostStorageAdapter.ts +105 -0
  54. package/src/models/HostStorageLun.ts +93 -0
  55. package/src/models/Info.ts +6 -0
  56. package/src/models/OsInfo.ts +15 -0
  57. package/src/models/SourceType.ts +54 -0
  58. package/src/models/index.ts +3 -0
  59. package/src/runtime.ts +3 -3
@@ -10,6 +10,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
10
10
  | [**calculateMigrationEstimationByComplexity**](AssessmentApi.md#calculatemigrationestimationbycomplexity) | **POST** /api/v1/assessments/{id}/migration-estimation/by-complexity | |
11
11
  | [**createAssessment**](AssessmentApi.md#createassessment) | **POST** /api/v1/assessments | |
12
12
  | [**deleteAssessment**](AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} | |
13
+ | [**deleteVCenter**](AssessmentApi.md#deletevcenter) | **DELETE** /api/v2/assessments/{id}/vcenters/{vid} | |
13
14
  | [**getAssessment**](AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} | |
14
15
  | [**getAssessmentClusterRequirementsStoredInput**](AssessmentApi.md#getassessmentclusterrequirementsstoredinput) | **GET** /api/v1/assessments/{id}/cluster-requirements/stored-input | |
15
16
  | [**getAssessmentEnhancementData**](AssessmentApi.md#getassessmentenhancementdata) | **GET** /api/v1/assessments/{id}/enhancement-data | |
@@ -22,6 +23,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
22
23
  | [**shareAssessment**](AssessmentApi.md#shareassessment) | **POST** /api/v1/assessments/{id}/share | |
23
24
  | [**unshareAssessment**](AssessmentApi.md#unshareassessment) | **DELETE** /api/v1/assessments/{id}/share | |
24
25
  | [**updateAssessment**](AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} | |
26
+ | [**updateAssessmentV2**](AssessmentApi.md#updateassessmentv2) | **PATCH** /api/v2/assessments/{id} | |
25
27
 
26
28
 
27
29
 
@@ -468,6 +470,80 @@ No authorization required
468
470
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
469
471
 
470
472
 
473
+ ## deleteVCenter
474
+
475
+ > deleteVCenter(id, vid)
476
+
477
+
478
+
479
+ Delete the specified vcenter inventory
480
+
481
+ ### Example
482
+
483
+ ```ts
484
+ import {
485
+ Configuration,
486
+ AssessmentApi,
487
+ } from '@openshift-migration-advisor/planner-sdk';
488
+ import type { DeleteVCenterRequest } from '@openshift-migration-advisor/planner-sdk';
489
+
490
+ async function example() {
491
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
492
+ const api = new AssessmentApi();
493
+
494
+ const body = {
495
+ // string | ID of the assessment
496
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
497
+ // string | ID of the vcenter
498
+ vid: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
499
+ } satisfies DeleteVCenterRequest;
500
+
501
+ try {
502
+ const data = await api.deleteVCenter(body);
503
+ console.log(data);
504
+ } catch (error) {
505
+ console.error(error);
506
+ }
507
+ }
508
+
509
+ // Run the test
510
+ example().catch(console.error);
511
+ ```
512
+
513
+ ### Parameters
514
+
515
+
516
+ | Name | Type | Description | Notes |
517
+ |------------- | ------------- | ------------- | -------------|
518
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
519
+ | **vid** | `string` | ID of the vcenter | [Defaults to `undefined`] |
520
+
521
+ ### Return type
522
+
523
+ `void` (Empty response body)
524
+
525
+ ### Authorization
526
+
527
+ No authorization required
528
+
529
+ ### HTTP request headers
530
+
531
+ - **Content-Type**: Not defined
532
+ - **Accept**: `application/json`
533
+
534
+
535
+ ### HTTP response details
536
+ | Status code | Description | Response headers |
537
+ |-------------|-------------|------------------|
538
+ | **204** | OK | - |
539
+ | **401** | Unauthorized | - |
540
+ | **403** | Forbidden | - |
541
+ | **404** | NotFound | - |
542
+ | **500** | Internal error | - |
543
+
544
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
545
+
546
+
471
547
  ## getAssessment
472
548
 
473
549
  > Assessment getAssessment(id)
@@ -971,7 +1047,7 @@ No authorization required
971
1047
 
972
1048
  ## listAssessmentsV2
973
1049
 
974
- > Array<AssessmentV2Summary> listAssessmentsV2()
1050
+ > Array<AssessmentV2Summary> listAssessmentsV2(sourceType)
975
1051
 
976
1052
 
977
1053
 
@@ -990,8 +1066,13 @@ async function example() {
990
1066
  console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
991
1067
  const api = new AssessmentApi();
992
1068
 
1069
+ const body = {
1070
+ // SourceType | Filter assessments by their source type (optional)
1071
+ sourceType: ...,
1072
+ } satisfies ListAssessmentsV2Request;
1073
+
993
1074
  try {
994
- const data = await api.listAssessmentsV2();
1075
+ const data = await api.listAssessmentsV2(body);
995
1076
  console.log(data);
996
1077
  } catch (error) {
997
1078
  console.error(error);
@@ -1004,7 +1085,10 @@ example().catch(console.error);
1004
1085
 
1005
1086
  ### Parameters
1006
1087
 
1007
- This endpoint does not need any parameter.
1088
+
1089
+ | Name | Type | Description | Notes |
1090
+ |------------- | ------------- | ------------- | -------------|
1091
+ | **sourceType** | `SourceType` | Filter assessments by their source type | [Optional] [Defaults to `undefined`] [Enum: inventory, rvtools, source] |
1008
1092
 
1009
1093
  ### Return type
1010
1094
 
@@ -1024,6 +1108,7 @@ No authorization required
1024
1108
  | Status code | Description | Response headers |
1025
1109
  |-------------|-------------|------------------|
1026
1110
  | **200** | OK | - |
1111
+ | **400** | Bad Request | - |
1027
1112
  | **401** | Unauthorized | - |
1028
1113
  | **500** | Internal error | - |
1029
1114
 
@@ -1323,3 +1408,78 @@ No authorization required
1323
1408
 
1324
1409
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1325
1410
 
1411
+
1412
+ ## updateAssessmentV2
1413
+
1414
+ > AssessmentV2 updateAssessmentV2(id, assessmentUpdate)
1415
+
1416
+
1417
+
1418
+ Update the assessment name
1419
+
1420
+ ### Example
1421
+
1422
+ ```ts
1423
+ import {
1424
+ Configuration,
1425
+ AssessmentApi,
1426
+ } from '@openshift-migration-advisor/planner-sdk';
1427
+ import type { UpdateAssessmentV2Request } from '@openshift-migration-advisor/planner-sdk';
1428
+
1429
+ async function example() {
1430
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
1431
+ const api = new AssessmentApi();
1432
+
1433
+ const body = {
1434
+ // string | ID of the assessment
1435
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1436
+ // AssessmentUpdate
1437
+ assessmentUpdate: ...,
1438
+ } satisfies UpdateAssessmentV2Request;
1439
+
1440
+ try {
1441
+ const data = await api.updateAssessmentV2(body);
1442
+ console.log(data);
1443
+ } catch (error) {
1444
+ console.error(error);
1445
+ }
1446
+ }
1447
+
1448
+ // Run the test
1449
+ example().catch(console.error);
1450
+ ```
1451
+
1452
+ ### Parameters
1453
+
1454
+
1455
+ | Name | Type | Description | Notes |
1456
+ |------------- | ------------- | ------------- | -------------|
1457
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
1458
+ | **assessmentUpdate** | [AssessmentUpdate](AssessmentUpdate.md) | | |
1459
+
1460
+ ### Return type
1461
+
1462
+ [**AssessmentV2**](AssessmentV2.md)
1463
+
1464
+ ### Authorization
1465
+
1466
+ No authorization required
1467
+
1468
+ ### HTTP request headers
1469
+
1470
+ - **Content-Type**: `application/json`
1471
+ - **Accept**: `application/json`
1472
+
1473
+
1474
+ ### HTTP response details
1475
+ | Status code | Description | Response headers |
1476
+ |-------------|-------------|------------------|
1477
+ | **200** | OK | - |
1478
+ | **400** | Bad Request | - |
1479
+ | **401** | Unauthorized | - |
1480
+ | **403** | Forbidden | - |
1481
+ | **404** | NotFound | - |
1482
+ | **500** | Internal Server Error | - |
1483
+
1484
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1485
+
package/docs/Host.md CHANGED
@@ -9,11 +9,17 @@ Name | Type
9
9
  `id` | string
10
10
  `vendor` | string
11
11
  `model` | string
12
+ `datacenter` | string
13
+ `cluster` | string
14
+ `cpuModel` | string
15
+ `serialNumber` | string
12
16
  `cpuCores` | number
13
17
  `cpuSockets` | number
14
18
  `memoryMB` | number
15
19
  `vmotionSupported` | boolean
16
20
  `storageVmotionSupported` | boolean
21
+ `storageAdapters` | [Array<HostStorageAdapter>](HostStorageAdapter.md)
22
+ `storageLuns` | [Array<HostStorageLun>](HostStorageLun.md)
17
23
 
18
24
  ## Example
19
25
 
@@ -25,11 +31,17 @@ const example = {
25
31
  "id": null,
26
32
  "vendor": null,
27
33
  "model": null,
34
+ "datacenter": null,
35
+ "cluster": null,
36
+ "cpuModel": null,
37
+ "serialNumber": null,
28
38
  "cpuCores": null,
29
39
  "cpuSockets": null,
30
40
  "memoryMB": null,
31
41
  "vmotionSupported": null,
32
42
  "storageVmotionSupported": null,
43
+ "storageAdapters": null,
44
+ "storageLuns": null,
33
45
  } satisfies Host
34
46
 
35
47
  console.log(example)
@@ -0,0 +1,49 @@
1
+
2
+ # HostStorageAdapter
3
+
4
+ Source-provided adapter facts. Missing or conflicting values are omitted.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `device` | string
11
+ `key` | string
12
+ `type` | string
13
+ `protocol` | string
14
+ `model` | string
15
+ `driver` | string
16
+ `nodeWwn` | string
17
+ `portWwn` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { HostStorageAdapter } from '@openshift-migration-advisor/planner-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "device": null,
27
+ "key": null,
28
+ "type": null,
29
+ "protocol": null,
30
+ "model": null,
31
+ "driver": null,
32
+ "nodeWwn": null,
33
+ "portWwn": null,
34
+ } satisfies HostStorageAdapter
35
+
36
+ console.log(example)
37
+
38
+ // Convert the instance to a JSON string
39
+ const exampleJSON: string = JSON.stringify(example)
40
+ console.log(exampleJSON)
41
+
42
+ // Parse the JSON string back to an object
43
+ const exampleParsed = JSON.parse(exampleJSON) as HostStorageAdapter
44
+ console.log(exampleParsed)
45
+ ```
46
+
47
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
48
+
49
+
@@ -0,0 +1,45 @@
1
+
2
+ # HostStorageLun
3
+
4
+ A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `canonicalName` | string
11
+ `key` | string
12
+ `lunUuid` | string
13
+ `vendor` | string
14
+ `model` | string
15
+ `adapterDevices` | Array<string>
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { HostStorageLun } from '@openshift-migration-advisor/planner-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "canonicalName": null,
25
+ "key": null,
26
+ "lunUuid": null,
27
+ "vendor": null,
28
+ "model": null,
29
+ "adapterDevices": null,
30
+ } satisfies HostStorageLun
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as HostStorageLun
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+
package/docs/ImageApi.md CHANGED
@@ -11,7 +11,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
11
11
 
12
12
  ## getSourceDownloadURL
13
13
 
14
- > PresignedUrl getSourceDownloadURL(id)
14
+ > PresignedUrl getSourceDownloadURL(id, image)
15
15
 
16
16
 
17
17
 
@@ -33,6 +33,8 @@ async function example() {
33
33
  const body = {
34
34
  // string | Source id
35
35
  id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
36
+ // 'ova' | 'appliance' | Which image to link; the OVA or the appliance image tar for a disconnected update (optional)
37
+ image: image_example,
36
38
  } satisfies GetSourceDownloadURLRequest;
37
39
 
38
40
  try {
@@ -53,6 +55,7 @@ example().catch(console.error);
53
55
  | Name | Type | Description | Notes |
54
56
  |------------- | ------------- | ------------- | -------------|
55
57
  | **id** | `string` | Source id | [Defaults to `undefined`] |
58
+ | **image** | `ova`, `appliance` | Which image to link; the OVA or the appliance image tar for a disconnected update | [Optional] [Defaults to `'ova'`] [Enum: ova, appliance] |
56
59
 
57
60
  ### Return type
58
61
 
@@ -71,7 +74,7 @@ No authorization required
71
74
  ### HTTP response details
72
75
  | Status code | Description | Response headers |
73
76
  |-------------|-------------|------------------|
74
- | **200** | URL to download OVA image | - |
77
+ | **200** | URL to download the image | - |
75
78
  | **400** | Bad Request | - |
76
79
  | **401** | Unauthorized | - |
77
80
  | **403** | Forbidden | - |
package/docs/Info.md CHANGED
@@ -11,6 +11,7 @@ Name | Type
11
11
  `versionName` | string
12
12
  `agentGitCommit` | string
13
13
  `agentVersionName` | string
14
+ `minApplianceVersion` | string
14
15
 
15
16
  ## Example
16
17
 
@@ -23,6 +24,7 @@ const example = {
23
24
  "versionName": 0.1.4-40-gc5a1661,
24
25
  "agentGitCommit": c5a1661465a25b17ceeeb77d1ec40deb57d8da44,
25
26
  "agentVersionName": 0.1.4-40-gc5a1661,
27
+ "minApplianceVersion": null,
26
28
  } satisfies Info
27
29
 
28
30
  console.log(example)
package/docs/OsInfo.md CHANGED
@@ -9,6 +9,7 @@ Name | Type
9
9
  `count` | number
10
10
  `supported` | boolean
11
11
  `supportTier` | string
12
+ `mtvStatus` | string
12
13
  `upgradeRecommendation` | string
13
14
 
14
15
  ## Example
@@ -21,6 +22,7 @@ const example = {
21
22
  "count": null,
22
23
  "supported": null,
23
24
  "supportTier": null,
25
+ "mtvStatus": null,
24
26
  "upgradeRecommendation": null,
25
27
  } satisfies OsInfo
26
28
 
@@ -0,0 +1,32 @@
1
+
2
+ # SourceType
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { SourceType } from '@openshift-migration-advisor/planner-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies SourceType
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as SourceType
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.31.0",
3
+ "version": "0.32.0-83e8d01d3484",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {