@openshift-migration-advisor/agent-sdk 0.12.0-914fe80385ee → 0.12.0-bbcf7fe3b88e
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 +14 -0
- package/README.md +18 -4
- package/dist/apis/DefaultApi.d.ts +303 -41
- package/dist/apis/DefaultApi.js +335 -46
- package/dist/esm/apis/DefaultApi.d.ts +303 -41
- package/dist/esm/apis/DefaultApi.js +335 -46
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
- package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VirtualMachine.d.ts +16 -4
- package/dist/esm/models/VirtualMachine.js +12 -8
- package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/esm/models/VirtualMachineDetail.js +7 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/esm/models/VmUtilizationDetails.js +36 -36
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/models/RightsizingClusterListResponse.js +3 -3
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/models/RightsizingClusterUtilization.js +36 -36
- package/dist/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/models/VMFilterOptionsResponse.js +62 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VirtualMachine.d.ts +16 -4
- package/dist/models/VirtualMachine.js +12 -8
- package/dist/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/models/VirtualMachineDetail.js +7 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/models/VmUtilizationDetails.js +36 -36
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ClusterFeatures.md +38 -0
- package/docs/DefaultApi.md +529 -60
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +2 -0
- package/docs/RightsizingClusterListResponse.md +2 -2
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +24 -24
- package/docs/RightsizingCollectRequest.md +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +40 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VirtualMachine.md +12 -8
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +641 -88
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +15 -0
- package/src/models/RightsizingClusterListResponse.ts +4 -4
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +48 -48
- package/src/models/RightsizingCollectRequest.ts +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/StartInspectionRequest.ts +18 -1
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +93 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VirtualMachine.ts +28 -12
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# DeleteLabelGloballyResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`affected` | number
|
|
10
|
+
`label` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { DeleteLabelGloballyResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"affected": null,
|
|
20
|
+
"label": null,
|
|
21
|
+
} satisfies DeleteLabelGloballyResponse
|
|
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 DeleteLabelGloballyResponse
|
|
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
|
+
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`vcenter_id` | string
|
|
10
|
+
`vcenter_version` | string
|
|
10
11
|
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
11
12
|
`vcenter` | [InventoryData](InventoryData.md)
|
|
12
13
|
`agentId` | string
|
|
@@ -19,7 +20,8 @@ import type { GetInventory200Response } from '@openshift-migration-advisor/agent
|
|
|
19
20
|
|
|
20
21
|
// TODO: Update the object below with actual values
|
|
21
22
|
const example = {
|
|
22
|
-
"
|
|
23
|
+
"vcenter_id": null,
|
|
24
|
+
"vcenter_version": null,
|
|
23
25
|
"clusters": null,
|
|
24
26
|
"vcenter": null,
|
|
25
27
|
"agentId": null,
|
package/docs/InspectorStatus.md
CHANGED
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`state` | string
|
|
10
|
-
`credentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
11
10
|
`vddk` | [VddkProperties](VddkProperties.md)
|
|
12
|
-
`error` | string
|
|
13
11
|
|
|
14
12
|
## Example
|
|
15
13
|
|
|
@@ -19,9 +17,7 @@ import type { InspectorStatus } from '@openshift-migration-advisor/agent-sdk'
|
|
|
19
17
|
// TODO: Update the object below with actual values
|
|
20
18
|
const example = {
|
|
21
19
|
"state": null,
|
|
22
|
-
"credentials": null,
|
|
23
20
|
"vddk": null,
|
|
24
|
-
"error": null,
|
|
25
21
|
} satisfies InspectorStatus
|
|
26
22
|
|
|
27
23
|
console.log(example)
|
package/docs/Inventory.md
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`vcenter_id` | string
|
|
10
|
+
`vcenter_version` | string
|
|
10
11
|
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
11
12
|
`vcenter` | [InventoryData](InventoryData.md)
|
|
12
13
|
|
|
@@ -17,7 +18,8 @@ import type { Inventory } from '@openshift-migration-advisor/agent-sdk'
|
|
|
17
18
|
|
|
18
19
|
// TODO: Update the object below with actual values
|
|
19
20
|
const example = {
|
|
20
|
-
"
|
|
21
|
+
"vcenter_id": null,
|
|
22
|
+
"vcenter_version": null,
|
|
21
23
|
"clusters": null,
|
|
22
24
|
"vcenter": null,
|
|
23
25
|
} satisfies Inventory
|
package/docs/InventoryData.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`vcenter` | [VCenter](VCenter.md)
|
|
10
|
+
`clusterFeatures` | [ClusterFeatures](ClusterFeatures.md)
|
|
10
11
|
`vms` | [VMs](VMs.md)
|
|
11
12
|
`infra` | [Infra](Infra.md)
|
|
12
13
|
|
|
@@ -18,6 +19,7 @@ import type { InventoryData } from '@openshift-migration-advisor/agent-sdk'
|
|
|
18
19
|
// TODO: Update the object below with actual values
|
|
19
20
|
const example = {
|
|
20
21
|
"vcenter": null,
|
|
22
|
+
"clusterFeatures": null,
|
|
21
23
|
"vms": null,
|
|
22
24
|
"infra": null,
|
|
23
25
|
} satisfies InventoryData
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`report_id` | string
|
|
10
10
|
`clusters` | [Array<RightsizingClusterUtilization>](RightsizingClusterUtilization.md)
|
|
11
11
|
|
|
12
12
|
## Example
|
|
@@ -16,7 +16,7 @@ import type { RightsizingClusterListResponse } from '@openshift-migration-adviso
|
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
|
-
"
|
|
19
|
+
"report_id": null,
|
|
20
20
|
"clusters": null,
|
|
21
21
|
} satisfies RightsizingClusterListResponse
|
|
22
22
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# RightsizingClusterResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`report_id` | string
|
|
10
|
+
`cluster` | [RightsizingClusterUtilization](RightsizingClusterUtilization.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { RightsizingClusterResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"report_id": null,
|
|
20
|
+
"cluster": null,
|
|
21
|
+
} satisfies RightsizingClusterResponse
|
|
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 RightsizingClusterResponse
|
|
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
|
+
|
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
11
|
-
`
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
15
|
-
`
|
|
16
|
-
`
|
|
17
|
-
`
|
|
9
|
+
`cluster_id` | string
|
|
10
|
+
`cluster_name` | string
|
|
11
|
+
`vm_count` | number
|
|
12
|
+
`cpu_avg` | number
|
|
13
|
+
`cpu_p95` | number
|
|
14
|
+
`cpu_max` | number
|
|
15
|
+
`mem_avg` | number
|
|
16
|
+
`mem_p95` | number
|
|
17
|
+
`mem_max` | number
|
|
18
18
|
`disk` | number
|
|
19
19
|
`confidence` | number
|
|
20
|
-
`
|
|
21
|
-
`
|
|
22
|
-
`
|
|
20
|
+
`total_provisioned_cpus` | number
|
|
21
|
+
`total_provisioned_memory_mb` | number
|
|
22
|
+
`total_provisioned_disk_kb` | number
|
|
23
23
|
|
|
24
24
|
## Example
|
|
25
25
|
|
|
@@ -28,20 +28,20 @@ import type { RightsizingClusterUtilization } from '@openshift-migration-advisor
|
|
|
28
28
|
|
|
29
29
|
// TODO: Update the object below with actual values
|
|
30
30
|
const example = {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
31
|
+
"cluster_id": null,
|
|
32
|
+
"cluster_name": null,
|
|
33
|
+
"vm_count": null,
|
|
34
|
+
"cpu_avg": null,
|
|
35
|
+
"cpu_p95": null,
|
|
36
|
+
"cpu_max": null,
|
|
37
|
+
"mem_avg": null,
|
|
38
|
+
"mem_p95": null,
|
|
39
|
+
"mem_max": null,
|
|
40
40
|
"disk": null,
|
|
41
41
|
"confidence": null,
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
42
|
+
"total_provisioned_cpus": null,
|
|
43
|
+
"total_provisioned_memory_mb": null,
|
|
44
|
+
"total_provisioned_disk_kb": null,
|
|
45
45
|
} satisfies RightsizingClusterUtilization
|
|
46
46
|
|
|
47
47
|
console.log(example)
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`credentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
10
|
-
`
|
|
11
|
-
`
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
15
|
-
`
|
|
10
|
+
`lookback_hours` | number
|
|
11
|
+
`interval_id` | number
|
|
12
|
+
`name_filter` | string
|
|
13
|
+
`cluster_id` | string
|
|
14
|
+
`batch_size` | number
|
|
15
|
+
`discover_vms` | boolean
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
@@ -22,12 +22,12 @@ import type { RightsizingCollectRequest } from '@openshift-migration-advisor/age
|
|
|
22
22
|
// TODO: Update the object below with actual values
|
|
23
23
|
const example = {
|
|
24
24
|
"credentials": null,
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
25
|
+
"lookback_hours": null,
|
|
26
|
+
"interval_id": null,
|
|
27
|
+
"name_filter": null,
|
|
28
|
+
"cluster_id": null,
|
|
29
|
+
"batch_size": null,
|
|
30
|
+
"discover_vms": null,
|
|
31
31
|
} satisfies RightsizingCollectRequest
|
|
32
32
|
|
|
33
33
|
console.log(example)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`sample_count` | number
|
|
10
10
|
`average` | number
|
|
11
11
|
`p95` | number
|
|
12
12
|
`p99` | number
|
|
@@ -20,7 +20,7 @@ import type { RightsizingMetricStats } from '@openshift-migration-advisor/agent-
|
|
|
20
20
|
|
|
21
21
|
// TODO: Update the object below with actual values
|
|
22
22
|
const example = {
|
|
23
|
-
"
|
|
23
|
+
"sample_count": null,
|
|
24
24
|
"average": null,
|
|
25
25
|
"p95": null,
|
|
26
26
|
"p99": null,
|
|
@@ -8,13 +8,13 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | string
|
|
10
10
|
`vcenter` | string
|
|
11
|
-
`
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
15
|
-
`
|
|
11
|
+
`cluster_id` | string
|
|
12
|
+
`window_start` | Date
|
|
13
|
+
`window_end` | Date
|
|
14
|
+
`interval_id` | number
|
|
15
|
+
`expected_sample_count` | number
|
|
16
16
|
`vms` | [Array<RightsizingVMReport>](RightsizingVMReport.md)
|
|
17
|
-
`
|
|
17
|
+
`created_at` | Date
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
@@ -25,13 +25,13 @@ import type { RightsizingReport } from '@openshift-migration-advisor/agent-sdk'
|
|
|
25
25
|
const example = {
|
|
26
26
|
"id": null,
|
|
27
27
|
"vcenter": null,
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
28
|
+
"cluster_id": null,
|
|
29
|
+
"window_start": null,
|
|
30
|
+
"window_end": null,
|
|
31
|
+
"interval_id": null,
|
|
32
|
+
"expected_sample_count": null,
|
|
33
33
|
"vms": null,
|
|
34
|
-
"
|
|
34
|
+
"created_at": null,
|
|
35
35
|
} satisfies RightsizingReport
|
|
36
36
|
|
|
37
37
|
console.log(example)
|
|
@@ -9,12 +9,12 @@ Name | Type
|
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`id` | string
|
|
11
11
|
`vcenter` | string
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
15
|
-
`
|
|
16
|
-
`
|
|
17
|
-
`
|
|
12
|
+
`cluster_id` | string
|
|
13
|
+
`window_start` | Date
|
|
14
|
+
`window_end` | Date
|
|
15
|
+
`interval_id` | number
|
|
16
|
+
`expected_sample_count` | number
|
|
17
|
+
`created_at` | Date
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
@@ -25,12 +25,12 @@ import type { RightsizingReportSummary } from '@openshift-migration-advisor/agen
|
|
|
25
25
|
const example = {
|
|
26
26
|
"id": null,
|
|
27
27
|
"vcenter": null,
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
28
|
+
"cluster_id": null,
|
|
29
|
+
"window_start": null,
|
|
30
|
+
"window_end": null,
|
|
31
|
+
"interval_id": null,
|
|
32
|
+
"expected_sample_count": null,
|
|
33
|
+
"created_at": null,
|
|
34
34
|
} satisfies RightsizingReportSummary
|
|
35
35
|
|
|
36
36
|
console.log(example)
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
# StartInspectionRequest
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Start inspection request
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`vmIds` | Array<string>
|
|
11
|
+
`credentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -17,6 +18,7 @@ import type { StartInspectionRequest } from '@openshift-migration-advisor/agent-
|
|
|
17
18
|
// TODO: Update the object below with actual values
|
|
18
19
|
const example = {
|
|
19
20
|
"vmIds": null,
|
|
21
|
+
"credentials": null,
|
|
20
22
|
} satisfies StartInspectionRequest
|
|
21
23
|
|
|
22
24
|
console.log(example)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateLabelVMsRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`add` | Array<string>
|
|
10
|
+
`remove` | Array<string>
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { UpdateLabelVMsRequest } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"add": null,
|
|
20
|
+
"remove": null,
|
|
21
|
+
} satisfies UpdateLabelVMsRequest
|
|
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 UpdateLabelVMsRequest
|
|
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,40 @@
|
|
|
1
|
+
|
|
2
|
+
# VMFilterOptionsResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`clusters` | Array<string>
|
|
10
|
+
`datacenters` | Array<string>
|
|
11
|
+
`concernLabels` | Array<string>
|
|
12
|
+
`concernCategories` | Array<string>
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { VMFilterOptionsResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"clusters": null,
|
|
22
|
+
"datacenters": null,
|
|
23
|
+
"concernLabels": null,
|
|
24
|
+
"concernCategories": null,
|
|
25
|
+
} satisfies VMFilterOptionsResponse
|
|
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 VMFilterOptionsResponse
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# VMLabelsResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`labels` | Array<string>
|
|
10
|
+
`counts` | Array<number>
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { VMLabelsResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"labels": ["production","staging","critical"],
|
|
20
|
+
"counts": [5,3,2],
|
|
21
|
+
} satisfies VMLabelsResponse
|
|
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 VMLabelsResponse
|
|
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
|
+
|
package/docs/VirtualMachine.md
CHANGED
|
@@ -16,13 +16,15 @@ Name | Type
|
|
|
16
16
|
`issueCount` | number
|
|
17
17
|
`migratable` | boolean
|
|
18
18
|
`template` | boolean
|
|
19
|
+
`migrationExcluded` | boolean
|
|
19
20
|
`inspectionStatus` | [VmInspectionStatus](VmInspectionStatus.md)
|
|
20
21
|
`inspectionConcernCount` | number
|
|
21
22
|
`tags` | Array<string>
|
|
22
|
-
`
|
|
23
|
-
`
|
|
24
|
-
`
|
|
25
|
-
`
|
|
23
|
+
`labels` | Array<string>
|
|
24
|
+
`utilization_cpu_p95` | number
|
|
25
|
+
`utilization_mem_p95` | number
|
|
26
|
+
`utilization_disk` | number
|
|
27
|
+
`utilization_confidence` | number
|
|
26
28
|
|
|
27
29
|
## Example
|
|
28
30
|
|
|
@@ -41,13 +43,15 @@ const example = {
|
|
|
41
43
|
"issueCount": null,
|
|
42
44
|
"migratable": null,
|
|
43
45
|
"template": null,
|
|
46
|
+
"migrationExcluded": null,
|
|
44
47
|
"inspectionStatus": null,
|
|
45
48
|
"inspectionConcernCount": null,
|
|
46
49
|
"tags": null,
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
50
|
+
"labels": null,
|
|
51
|
+
"utilization_cpu_p95": null,
|
|
52
|
+
"utilization_mem_p95": null,
|
|
53
|
+
"utilization_disk": null,
|
|
54
|
+
"utilization_confidence": null,
|
|
51
55
|
} satisfies VirtualMachine
|
|
52
56
|
|
|
53
57
|
console.log(example)
|
|
@@ -27,6 +27,8 @@ Name | Type
|
|
|
27
27
|
`storageUsed` | number
|
|
28
28
|
`template` | boolean
|
|
29
29
|
`migratable` | boolean
|
|
30
|
+
`migrationExcluded` | boolean
|
|
31
|
+
`labels` | Array<string>
|
|
30
32
|
`faultToleranceEnabled` | boolean
|
|
31
33
|
`nestedHVEnabled` | boolean
|
|
32
34
|
`toolsStatus` | string
|
|
@@ -37,6 +39,7 @@ Name | Type
|
|
|
37
39
|
`guestNetworks` | [Array<GuestNetwork>](GuestNetwork.md)
|
|
38
40
|
`issues` | [Array<VMIssue>](VMIssue.md)
|
|
39
41
|
`inspection` | [VmInspectionResults](VmInspectionResults.md)
|
|
42
|
+
`utilization` | [VmUtilizationDetails](VmUtilizationDetails.md)
|
|
40
43
|
|
|
41
44
|
## Example
|
|
42
45
|
|
|
@@ -66,6 +69,8 @@ const example = {
|
|
|
66
69
|
"storageUsed": null,
|
|
67
70
|
"template": null,
|
|
68
71
|
"migratable": null,
|
|
72
|
+
"migrationExcluded": null,
|
|
73
|
+
"labels": null,
|
|
69
74
|
"faultToleranceEnabled": null,
|
|
70
75
|
"nestedHVEnabled": null,
|
|
71
76
|
"toolsStatus": null,
|
|
@@ -76,6 +81,7 @@ const example = {
|
|
|
76
81
|
"guestNetworks": null,
|
|
77
82
|
"issues": null,
|
|
78
83
|
"inspection": null,
|
|
84
|
+
"utilization": null,
|
|
79
85
|
} satisfies VirtualMachineDetail
|
|
80
86
|
|
|
81
87
|
console.log(example)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# VirtualMachineUpdateRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`migrationExcluded` | boolean
|
|
10
|
+
`labels` | Array<string>
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { VirtualMachineUpdateRequest } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"migrationExcluded": true,
|
|
20
|
+
"labels": ["production","critical"],
|
|
21
|
+
} satisfies VirtualMachineUpdateRequest
|
|
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 VirtualMachineUpdateRequest
|
|
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
|
+
|