@openshift-migration-advisor/planner-sdk 0.20.2-cdd9e28947f3 → 0.20.3-7b7fa251be69
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.
- package/.openapi-generator/FILES +22 -0
- package/README.md +15 -2
- package/dist/apis/AssessmentApi.d.ts +81 -0
- package/dist/apis/AssessmentApi.js +84 -0
- package/dist/esm/apis/AssessmentApi.d.ts +81 -0
- package/dist/esm/apis/AssessmentApi.js +84 -0
- package/dist/esm/models/ActiveEnvironmentsInput.d.ts +41 -0
- package/dist/esm/models/ActiveEnvironmentsInput.js +51 -0
- package/dist/esm/models/AriaAutomationInput.d.ts +51 -0
- package/dist/esm/models/AriaAutomationInput.js +61 -0
- package/dist/esm/models/AriaOpsInput.d.ts +49 -0
- package/dist/esm/models/AriaOpsInput.js +59 -0
- package/dist/esm/models/AriaSecureInput.d.ts +41 -0
- package/dist/esm/models/AriaSecureInput.js +51 -0
- package/dist/esm/models/CustomerDetailsInput.d.ts +34 -0
- package/dist/esm/models/CustomerDetailsInput.js +43 -0
- package/dist/esm/models/DeployedEnvironmentInput.d.ts +40 -0
- package/dist/esm/models/DeployedEnvironmentInput.js +50 -0
- package/dist/esm/models/EnhancementData.d.ts +76 -0
- package/dist/esm/models/EnhancementData.js +69 -0
- package/dist/esm/models/NsxInput.d.ts +46 -0
- package/dist/esm/models/NsxInput.js +56 -0
- package/dist/esm/models/VMwareSubscriptionInput.d.ts +42 -0
- package/dist/esm/models/VMwareSubscriptionInput.js +52 -0
- package/dist/esm/models/VMwareVersionCountsInput.d.ts +42 -0
- package/dist/esm/models/VMwareVersionCountsInput.js +47 -0
- package/dist/esm/models/VsphereCoreInput.d.ts +38 -0
- package/dist/esm/models/VsphereCoreInput.js +45 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/ActiveEnvironmentsInput.d.ts +41 -0
- package/dist/models/ActiveEnvironmentsInput.js +59 -0
- package/dist/models/AriaAutomationInput.d.ts +51 -0
- package/dist/models/AriaAutomationInput.js +69 -0
- package/dist/models/AriaOpsInput.d.ts +49 -0
- package/dist/models/AriaOpsInput.js +67 -0
- package/dist/models/AriaSecureInput.d.ts +41 -0
- package/dist/models/AriaSecureInput.js +59 -0
- package/dist/models/CustomerDetailsInput.d.ts +34 -0
- package/dist/models/CustomerDetailsInput.js +50 -0
- package/dist/models/DeployedEnvironmentInput.d.ts +40 -0
- package/dist/models/DeployedEnvironmentInput.js +58 -0
- package/dist/models/EnhancementData.d.ts +76 -0
- package/dist/models/EnhancementData.js +76 -0
- package/dist/models/NsxInput.d.ts +46 -0
- package/dist/models/NsxInput.js +64 -0
- package/dist/models/VMwareSubscriptionInput.d.ts +42 -0
- package/dist/models/VMwareSubscriptionInput.js +60 -0
- package/dist/models/VMwareVersionCountsInput.d.ts +42 -0
- package/dist/models/VMwareVersionCountsInput.js +54 -0
- package/dist/models/VsphereCoreInput.d.ts +38 -0
- package/dist/models/VsphereCoreInput.js +52 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/ActiveEnvironmentsInput.md +34 -0
- package/docs/AriaAutomationInput.md +34 -0
- package/docs/AriaOpsInput.md +34 -0
- package/docs/AriaSecureInput.md +34 -0
- package/docs/AssessmentApi.md +148 -0
- package/docs/CustomerDetailsInput.md +36 -0
- package/docs/DeployedEnvironmentInput.md +34 -0
- package/docs/EnhancementData.md +53 -0
- package/docs/NsxInput.md +34 -0
- package/docs/VMwareSubscriptionInput.md +34 -0
- package/docs/VMwareVersionCountsInput.md +40 -0
- package/docs/VsphereCoreInput.md +38 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +169 -0
- package/src/models/ActiveEnvironmentsInput.ts +77 -0
- package/src/models/AriaAutomationInput.ts +87 -0
- package/src/models/AriaOpsInput.ts +85 -0
- package/src/models/AriaSecureInput.ts +77 -0
- package/src/models/CustomerDetailsInput.ts +69 -0
- package/src/models/DeployedEnvironmentInput.ts +76 -0
- package/src/models/EnhancementData.ts +188 -0
- package/src/models/NsxInput.ts +82 -0
- package/src/models/VMwareSubscriptionInput.ts +78 -0
- package/src/models/VMwareVersionCountsInput.ts +81 -0
- package/src/models/VsphereCoreInput.ts +75 -0
- package/src/models/index.ts +11 -0
package/docs/AssessmentApi.md
CHANGED
|
@@ -12,7 +12,9 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
12
12
|
| [**deleteAssessment**](AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} | |
|
|
13
13
|
| [**getAssessment**](AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} | |
|
|
14
14
|
| [**getAssessmentClusterRequirementsStoredInput**](AssessmentApi.md#getassessmentclusterrequirementsstoredinput) | **GET** /api/v1/assessments/{id}/cluster-requirements/stored-input | |
|
|
15
|
+
| [**getAssessmentEnhancementData**](AssessmentApi.md#getassessmentenhancementdata) | **GET** /api/v1/assessments/{id}/enhancement-data | |
|
|
15
16
|
| [**listAssessments**](AssessmentApi.md#listassessments) | **GET** /api/v1/assessments | |
|
|
17
|
+
| [**saveAssessmentEnhancementData**](AssessmentApi.md#saveassessmentenhancementdata) | **POST** /api/v1/assessments/{id}/enhancement-data | |
|
|
16
18
|
| [**shareAssessment**](AssessmentApi.md#shareassessment) | **POST** /api/v1/assessments/{id}/share | |
|
|
17
19
|
| [**unshareAssessment**](AssessmentApi.md#unshareassessment) | **DELETE** /api/v1/assessments/{id}/share | |
|
|
18
20
|
| [**updateAssessment**](AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} | |
|
|
@@ -609,6 +611,77 @@ No authorization required
|
|
|
609
611
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
610
612
|
|
|
611
613
|
|
|
614
|
+
## getAssessmentEnhancementData
|
|
615
|
+
|
|
616
|
+
> EnhancementData getAssessmentEnhancementData(id)
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
Get stored enhancement data for an assessment
|
|
621
|
+
|
|
622
|
+
### Example
|
|
623
|
+
|
|
624
|
+
```ts
|
|
625
|
+
import {
|
|
626
|
+
Configuration,
|
|
627
|
+
AssessmentApi,
|
|
628
|
+
} from '@openshift-migration-advisor/planner-sdk';
|
|
629
|
+
import type { GetAssessmentEnhancementDataRequest } from '@openshift-migration-advisor/planner-sdk';
|
|
630
|
+
|
|
631
|
+
async function example() {
|
|
632
|
+
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
633
|
+
const api = new AssessmentApi();
|
|
634
|
+
|
|
635
|
+
const body = {
|
|
636
|
+
// string | ID of the assessment
|
|
637
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
638
|
+
} satisfies GetAssessmentEnhancementDataRequest;
|
|
639
|
+
|
|
640
|
+
try {
|
|
641
|
+
const data = await api.getAssessmentEnhancementData(body);
|
|
642
|
+
console.log(data);
|
|
643
|
+
} catch (error) {
|
|
644
|
+
console.error(error);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// Run the test
|
|
649
|
+
example().catch(console.error);
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
### Parameters
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
| Name | Type | Description | Notes |
|
|
656
|
+
|------------- | ------------- | ------------- | -------------|
|
|
657
|
+
| **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
|
|
658
|
+
|
|
659
|
+
### Return type
|
|
660
|
+
|
|
661
|
+
[**EnhancementData**](EnhancementData.md)
|
|
662
|
+
|
|
663
|
+
### Authorization
|
|
664
|
+
|
|
665
|
+
No authorization required
|
|
666
|
+
|
|
667
|
+
### HTTP request headers
|
|
668
|
+
|
|
669
|
+
- **Content-Type**: Not defined
|
|
670
|
+
- **Accept**: `application/json`
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
### HTTP response details
|
|
674
|
+
| Status code | Description | Response headers |
|
|
675
|
+
|-------------|-------------|------------------|
|
|
676
|
+
| **200** | User inputs found | - |
|
|
677
|
+
| **401** | Unauthorized | - |
|
|
678
|
+
| **403** | Forbidden | - |
|
|
679
|
+
| **404** | Assessment not found | - |
|
|
680
|
+
| **500** | Internal error | - |
|
|
681
|
+
|
|
682
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
683
|
+
|
|
684
|
+
|
|
612
685
|
## listAssessments
|
|
613
686
|
|
|
614
687
|
> Array<Assessment> listAssessments(sourceId)
|
|
@@ -678,6 +751,81 @@ No authorization required
|
|
|
678
751
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
679
752
|
|
|
680
753
|
|
|
754
|
+
## saveAssessmentEnhancementData
|
|
755
|
+
|
|
756
|
+
> EnhancementData saveAssessmentEnhancementData(id, enhancementData)
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
Save enhancement data for an assessment
|
|
761
|
+
|
|
762
|
+
### Example
|
|
763
|
+
|
|
764
|
+
```ts
|
|
765
|
+
import {
|
|
766
|
+
Configuration,
|
|
767
|
+
AssessmentApi,
|
|
768
|
+
} from '@openshift-migration-advisor/planner-sdk';
|
|
769
|
+
import type { SaveAssessmentEnhancementDataRequest } from '@openshift-migration-advisor/planner-sdk';
|
|
770
|
+
|
|
771
|
+
async function example() {
|
|
772
|
+
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
773
|
+
const api = new AssessmentApi();
|
|
774
|
+
|
|
775
|
+
const body = {
|
|
776
|
+
// string | ID of the assessment
|
|
777
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
778
|
+
// EnhancementData
|
|
779
|
+
enhancementData: ...,
|
|
780
|
+
} satisfies SaveAssessmentEnhancementDataRequest;
|
|
781
|
+
|
|
782
|
+
try {
|
|
783
|
+
const data = await api.saveAssessmentEnhancementData(body);
|
|
784
|
+
console.log(data);
|
|
785
|
+
} catch (error) {
|
|
786
|
+
console.error(error);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
// Run the test
|
|
791
|
+
example().catch(console.error);
|
|
792
|
+
```
|
|
793
|
+
|
|
794
|
+
### Parameters
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
| Name | Type | Description | Notes |
|
|
798
|
+
|------------- | ------------- | ------------- | -------------|
|
|
799
|
+
| **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
|
|
800
|
+
| **enhancementData** | [EnhancementData](EnhancementData.md) | | |
|
|
801
|
+
|
|
802
|
+
### Return type
|
|
803
|
+
|
|
804
|
+
[**EnhancementData**](EnhancementData.md)
|
|
805
|
+
|
|
806
|
+
### Authorization
|
|
807
|
+
|
|
808
|
+
No authorization required
|
|
809
|
+
|
|
810
|
+
### HTTP request headers
|
|
811
|
+
|
|
812
|
+
- **Content-Type**: `application/json`
|
|
813
|
+
- **Accept**: `application/json`
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
### HTTP response details
|
|
817
|
+
| Status code | Description | Response headers |
|
|
818
|
+
|-------------|-------------|------------------|
|
|
819
|
+
| **200** | User inputs saved successfully | - |
|
|
820
|
+
| **400** | Bad Request | - |
|
|
821
|
+
| **401** | Unauthorized | - |
|
|
822
|
+
| **403** | Forbidden | - |
|
|
823
|
+
| **404** | Assessment not found | - |
|
|
824
|
+
| **500** | Internal error | - |
|
|
825
|
+
|
|
826
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
827
|
+
|
|
828
|
+
|
|
681
829
|
## shareAssessment
|
|
682
830
|
|
|
683
831
|
> Status shareAssessment(id)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# CustomerDetailsInput
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`physicalLocationsCount` | number
|
|
10
|
+
`targetHardware` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { CustomerDetailsInput } from '@openshift-migration-advisor/planner-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"physicalLocationsCount": null,
|
|
20
|
+
"targetHardware": null,
|
|
21
|
+
} satisfies CustomerDetailsInput
|
|
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 CustomerDetailsInput
|
|
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,34 @@
|
|
|
1
|
+
|
|
2
|
+
# DeployedEnvironmentInput
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`environment` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { DeployedEnvironmentInput } from '@openshift-migration-advisor/planner-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"environment": null,
|
|
19
|
+
} satisfies DeployedEnvironmentInput
|
|
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 DeployedEnvironmentInput
|
|
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,53 @@
|
|
|
1
|
+
|
|
2
|
+
# EnhancementData
|
|
3
|
+
|
|
4
|
+
VMA enhancement data — fields that cannot be auto-collected by Agent or RVTools
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`deployedEnvironment` | [DeployedEnvironmentInput](DeployedEnvironmentInput.md)
|
|
11
|
+
`vmwareVersionCounts` | [VMwareVersionCountsInput](VMwareVersionCountsInput.md)
|
|
12
|
+
`activeEnvironments` | [ActiveEnvironmentsInput](ActiveEnvironmentsInput.md)
|
|
13
|
+
`vmwareSubscription` | [VMwareSubscriptionInput](VMwareSubscriptionInput.md)
|
|
14
|
+
`vsphereCore` | [VsphereCoreInput](VsphereCoreInput.md)
|
|
15
|
+
`nsx` | [NsxInput](NsxInput.md)
|
|
16
|
+
`ariaOps` | [AriaOpsInput](AriaOpsInput.md)
|
|
17
|
+
`ariaAutomation` | [AriaAutomationInput](AriaAutomationInput.md)
|
|
18
|
+
`ariaSecure` | [AriaSecureInput](AriaSecureInput.md)
|
|
19
|
+
`customerDetails` | [CustomerDetailsInput](CustomerDetailsInput.md)
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { EnhancementData } from '@openshift-migration-advisor/planner-sdk'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"deployedEnvironment": null,
|
|
29
|
+
"vmwareVersionCounts": null,
|
|
30
|
+
"activeEnvironments": null,
|
|
31
|
+
"vmwareSubscription": null,
|
|
32
|
+
"vsphereCore": null,
|
|
33
|
+
"nsx": null,
|
|
34
|
+
"ariaOps": null,
|
|
35
|
+
"ariaAutomation": null,
|
|
36
|
+
"ariaSecure": null,
|
|
37
|
+
"customerDetails": null,
|
|
38
|
+
} satisfies EnhancementData
|
|
39
|
+
|
|
40
|
+
console.log(example)
|
|
41
|
+
|
|
42
|
+
// Convert the instance to a JSON string
|
|
43
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
44
|
+
console.log(exampleJSON)
|
|
45
|
+
|
|
46
|
+
// Parse the JSON string back to an object
|
|
47
|
+
const exampleParsed = JSON.parse(exampleJSON) as EnhancementData
|
|
48
|
+
console.log(exampleParsed)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
52
|
+
|
|
53
|
+
|
package/docs/NsxInput.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# NsxInput
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`features` | Set<string>
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { NsxInput } from '@openshift-migration-advisor/planner-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"features": null,
|
|
19
|
+
} satisfies NsxInput
|
|
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 NsxInput
|
|
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,34 @@
|
|
|
1
|
+
|
|
2
|
+
# VMwareSubscriptionInput
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`level` | Set<string>
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { VMwareSubscriptionInput } from '@openshift-migration-advisor/planner-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"level": null,
|
|
19
|
+
} satisfies VMwareSubscriptionInput
|
|
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 VMwareSubscriptionInput
|
|
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,40 @@
|
|
|
1
|
+
|
|
2
|
+
# VMwareVersionCountsInput
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`perpetualLicensesCount` | number
|
|
10
|
+
`coresLicensingCount` | number
|
|
11
|
+
`environmentCount` | number
|
|
12
|
+
`otherNodesCount` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { VMwareVersionCountsInput } from '@openshift-migration-advisor/planner-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"perpetualLicensesCount": null,
|
|
22
|
+
"coresLicensingCount": null,
|
|
23
|
+
"environmentCount": null,
|
|
24
|
+
"otherNodesCount": null,
|
|
25
|
+
} satisfies VMwareVersionCountsInput
|
|
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 VMwareVersionCountsInput
|
|
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,38 @@
|
|
|
1
|
+
|
|
2
|
+
# VsphereCoreInput
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`vmEncryptionEnabled` | boolean
|
|
10
|
+
`vmEncryptionPolicy` | string
|
|
11
|
+
`srmEnabled` | boolean
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { VsphereCoreInput } from '@openshift-migration-advisor/planner-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"vmEncryptionEnabled": null,
|
|
21
|
+
"vmEncryptionPolicy": null,
|
|
22
|
+
"srmEnabled": null,
|
|
23
|
+
} satisfies VsphereCoreInput
|
|
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 VsphereCoreInput
|
|
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/package.json
CHANGED
|
@@ -43,6 +43,11 @@ import {
|
|
|
43
43
|
ClusterRequirementsStoredInputFromJSON,
|
|
44
44
|
ClusterRequirementsStoredInputToJSON,
|
|
45
45
|
} from '../models/ClusterRequirementsStoredInput.js';
|
|
46
|
+
import {
|
|
47
|
+
type EnhancementData,
|
|
48
|
+
EnhancementDataFromJSON,
|
|
49
|
+
EnhancementDataToJSON,
|
|
50
|
+
} from '../models/EnhancementData.js';
|
|
46
51
|
import {
|
|
47
52
|
type MigrationComplexityRequest,
|
|
48
53
|
MigrationComplexityRequestFromJSON,
|
|
@@ -150,6 +155,13 @@ export interface GetAssessmentClusterRequirementsStoredInputRequest {
|
|
|
150
155
|
clusterId: string;
|
|
151
156
|
}
|
|
152
157
|
|
|
158
|
+
export interface GetAssessmentEnhancementDataRequest {
|
|
159
|
+
/**
|
|
160
|
+
* ID of the assessment
|
|
161
|
+
*/
|
|
162
|
+
id: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
153
165
|
export interface ListAssessmentsRequest {
|
|
154
166
|
/**
|
|
155
167
|
* Filter assessments by source ID
|
|
@@ -157,6 +169,17 @@ export interface ListAssessmentsRequest {
|
|
|
157
169
|
sourceId?: string;
|
|
158
170
|
}
|
|
159
171
|
|
|
172
|
+
export interface SaveAssessmentEnhancementDataRequest {
|
|
173
|
+
/**
|
|
174
|
+
* ID of the assessment
|
|
175
|
+
*/
|
|
176
|
+
id: string;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
enhancementData: EnhancementData;
|
|
181
|
+
}
|
|
182
|
+
|
|
160
183
|
export interface ShareAssessmentRequest {
|
|
161
184
|
/**
|
|
162
185
|
* ID of the assessment
|
|
@@ -375,6 +398,28 @@ export interface AssessmentApiInterface {
|
|
|
375
398
|
*/
|
|
376
399
|
getAssessmentClusterRequirementsStoredInput(requestParameters: GetAssessmentClusterRequirementsStoredInputRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsStoredInput>;
|
|
377
400
|
|
|
401
|
+
/**
|
|
402
|
+
* Creates request options for getAssessmentEnhancementData without sending the request
|
|
403
|
+
* @param {string} id ID of the assessment
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
* @memberof AssessmentApiInterface
|
|
406
|
+
*/
|
|
407
|
+
getAssessmentEnhancementDataRequestOpts(requestParameters: GetAssessmentEnhancementDataRequest): Promise<runtime.RequestOpts>;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Get stored enhancement data for an assessment
|
|
411
|
+
* @param {string} id ID of the assessment
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
* @memberof AssessmentApiInterface
|
|
415
|
+
*/
|
|
416
|
+
getAssessmentEnhancementDataRaw(requestParameters: GetAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnhancementData>>;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Get stored enhancement data for an assessment
|
|
420
|
+
*/
|
|
421
|
+
getAssessmentEnhancementData(requestParameters: GetAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnhancementData>;
|
|
422
|
+
|
|
378
423
|
/**
|
|
379
424
|
* Creates request options for listAssessments without sending the request
|
|
380
425
|
* @param {string} [sourceId] Filter assessments by source ID
|
|
@@ -397,6 +442,30 @@ export interface AssessmentApiInterface {
|
|
|
397
442
|
*/
|
|
398
443
|
listAssessments(requestParameters: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
|
|
399
444
|
|
|
445
|
+
/**
|
|
446
|
+
* Creates request options for saveAssessmentEnhancementData without sending the request
|
|
447
|
+
* @param {string} id ID of the assessment
|
|
448
|
+
* @param {EnhancementData} enhancementData
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
* @memberof AssessmentApiInterface
|
|
451
|
+
*/
|
|
452
|
+
saveAssessmentEnhancementDataRequestOpts(requestParameters: SaveAssessmentEnhancementDataRequest): Promise<runtime.RequestOpts>;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Save enhancement data for an assessment
|
|
456
|
+
* @param {string} id ID of the assessment
|
|
457
|
+
* @param {EnhancementData} enhancementData
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
* @memberof AssessmentApiInterface
|
|
461
|
+
*/
|
|
462
|
+
saveAssessmentEnhancementDataRaw(requestParameters: SaveAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnhancementData>>;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Save enhancement data for an assessment
|
|
466
|
+
*/
|
|
467
|
+
saveAssessmentEnhancementData(requestParameters: SaveAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnhancementData>;
|
|
468
|
+
|
|
400
469
|
/**
|
|
401
470
|
* Creates request options for shareAssessment without sending the request
|
|
402
471
|
* @param {string} id ID of the assessment
|
|
@@ -885,6 +954,51 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
885
954
|
return await response.value();
|
|
886
955
|
}
|
|
887
956
|
|
|
957
|
+
/**
|
|
958
|
+
* Creates request options for getAssessmentEnhancementData without sending the request
|
|
959
|
+
*/
|
|
960
|
+
async getAssessmentEnhancementDataRequestOpts(requestParameters: GetAssessmentEnhancementDataRequest): Promise<runtime.RequestOpts> {
|
|
961
|
+
if (requestParameters['id'] == null) {
|
|
962
|
+
throw new runtime.RequiredError(
|
|
963
|
+
'id',
|
|
964
|
+
'Required parameter "id" was null or undefined when calling getAssessmentEnhancementData().'
|
|
965
|
+
);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
const queryParameters: any = {};
|
|
969
|
+
|
|
970
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
let urlPath = `/api/v1/assessments/{id}/enhancement-data`;
|
|
974
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
975
|
+
|
|
976
|
+
return {
|
|
977
|
+
path: urlPath,
|
|
978
|
+
method: 'GET',
|
|
979
|
+
headers: headerParameters,
|
|
980
|
+
query: queryParameters,
|
|
981
|
+
};
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* Get stored enhancement data for an assessment
|
|
986
|
+
*/
|
|
987
|
+
async getAssessmentEnhancementDataRaw(requestParameters: GetAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnhancementData>> {
|
|
988
|
+
const requestOptions = await this.getAssessmentEnhancementDataRequestOpts(requestParameters);
|
|
989
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
990
|
+
|
|
991
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EnhancementDataFromJSON(jsonValue));
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Get stored enhancement data for an assessment
|
|
996
|
+
*/
|
|
997
|
+
async getAssessmentEnhancementData(requestParameters: GetAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnhancementData> {
|
|
998
|
+
const response = await this.getAssessmentEnhancementDataRaw(requestParameters, initOverrides);
|
|
999
|
+
return await response.value();
|
|
1000
|
+
}
|
|
1001
|
+
|
|
888
1002
|
/**
|
|
889
1003
|
* Creates request options for listAssessments without sending the request
|
|
890
1004
|
*/
|
|
@@ -926,6 +1040,61 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
926
1040
|
return await response.value();
|
|
927
1041
|
}
|
|
928
1042
|
|
|
1043
|
+
/**
|
|
1044
|
+
* Creates request options for saveAssessmentEnhancementData without sending the request
|
|
1045
|
+
*/
|
|
1046
|
+
async saveAssessmentEnhancementDataRequestOpts(requestParameters: SaveAssessmentEnhancementDataRequest): Promise<runtime.RequestOpts> {
|
|
1047
|
+
if (requestParameters['id'] == null) {
|
|
1048
|
+
throw new runtime.RequiredError(
|
|
1049
|
+
'id',
|
|
1050
|
+
'Required parameter "id" was null or undefined when calling saveAssessmentEnhancementData().'
|
|
1051
|
+
);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
if (requestParameters['enhancementData'] == null) {
|
|
1055
|
+
throw new runtime.RequiredError(
|
|
1056
|
+
'enhancementData',
|
|
1057
|
+
'Required parameter "enhancementData" was null or undefined when calling saveAssessmentEnhancementData().'
|
|
1058
|
+
);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
const queryParameters: any = {};
|
|
1062
|
+
|
|
1063
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1064
|
+
|
|
1065
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
let urlPath = `/api/v1/assessments/{id}/enhancement-data`;
|
|
1069
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1070
|
+
|
|
1071
|
+
return {
|
|
1072
|
+
path: urlPath,
|
|
1073
|
+
method: 'POST',
|
|
1074
|
+
headers: headerParameters,
|
|
1075
|
+
query: queryParameters,
|
|
1076
|
+
body: EnhancementDataToJSON(requestParameters['enhancementData']),
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Save enhancement data for an assessment
|
|
1082
|
+
*/
|
|
1083
|
+
async saveAssessmentEnhancementDataRaw(requestParameters: SaveAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnhancementData>> {
|
|
1084
|
+
const requestOptions = await this.saveAssessmentEnhancementDataRequestOpts(requestParameters);
|
|
1085
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1086
|
+
|
|
1087
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EnhancementDataFromJSON(jsonValue));
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Save enhancement data for an assessment
|
|
1092
|
+
*/
|
|
1093
|
+
async saveAssessmentEnhancementData(requestParameters: SaveAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnhancementData> {
|
|
1094
|
+
const response = await this.saveAssessmentEnhancementDataRaw(requestParameters, initOverrides);
|
|
1095
|
+
return await response.value();
|
|
1096
|
+
}
|
|
1097
|
+
|
|
929
1098
|
/**
|
|
930
1099
|
* Creates request options for shareAssessment without sending the request
|
|
931
1100
|
*/
|