@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 0.12.0-e4c04f972747
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 +52 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -5
- package/dist/apis/DefaultApi.d.ts +798 -20
- package/dist/apis/DefaultApi.js +878 -24
- package/dist/esm/apis/DefaultApi.d.ts +798 -20
- package/dist/esm/apis/DefaultApi.js +878 -24
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -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 +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- 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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- 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 +27 -9
- package/dist/esm/models/VmUtilizationDetails.js +39 -27
- package/dist/esm/models/index.d.ts +26 -0
- package/dist/esm/models/index.js +26 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -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 +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- 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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- 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 +27 -9
- package/dist/models/VmUtilizationDetails.js +39 -27
- package/dist/models/index.d.ts +26 -0
- package/dist/models/index.js +26 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/BenchmarkRun.md +58 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1725 -308
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingClusterListResponse.md +36 -0
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +60 -0
- 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/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -18
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1700 -93
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -0
- package/src/models/RightsizingClusterListResponse.ts +83 -0
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +185 -0
- 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/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +63 -36
- package/src/models/index.ts +26 -0
|
@@ -26,55 +26,73 @@ export interface VmUtilizationDetails {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof VmUtilizationDetails
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
vm_name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of vCPUs provisioned for this VM
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VmUtilizationDetails
|
|
34
|
+
*/
|
|
35
|
+
provisioned_cpus: number;
|
|
36
|
+
/**
|
|
37
|
+
* Provisioned RAM (MB)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof VmUtilizationDetails
|
|
40
|
+
*/
|
|
41
|
+
provisioned_memory_mb: number;
|
|
42
|
+
/**
|
|
43
|
+
* Provisioned disk (KB)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof VmUtilizationDetails
|
|
46
|
+
*/
|
|
47
|
+
provisioned_disk_kb: number;
|
|
30
48
|
/**
|
|
31
49
|
* CPU utilization average (%)
|
|
32
50
|
* @type {number}
|
|
33
51
|
* @memberof VmUtilizationDetails
|
|
34
52
|
*/
|
|
35
|
-
|
|
53
|
+
cpu_avg: number;
|
|
36
54
|
/**
|
|
37
55
|
*
|
|
38
56
|
* @type {number}
|
|
39
57
|
* @memberof VmUtilizationDetails
|
|
40
58
|
*/
|
|
41
|
-
|
|
59
|
+
cpu_p95: number;
|
|
42
60
|
/**
|
|
43
61
|
*
|
|
44
62
|
* @type {number}
|
|
45
63
|
* @memberof VmUtilizationDetails
|
|
46
64
|
*/
|
|
47
|
-
|
|
65
|
+
cpu_max: number;
|
|
48
66
|
/**
|
|
49
67
|
*
|
|
50
68
|
* @type {number}
|
|
51
69
|
* @memberof VmUtilizationDetails
|
|
52
70
|
*/
|
|
53
|
-
|
|
71
|
+
cpu_latest: number;
|
|
54
72
|
/**
|
|
55
73
|
* Memory utilization average (%)
|
|
56
74
|
* @type {number}
|
|
57
75
|
* @memberof VmUtilizationDetails
|
|
58
76
|
*/
|
|
59
|
-
|
|
77
|
+
mem_avg: number;
|
|
60
78
|
/**
|
|
61
79
|
*
|
|
62
80
|
* @type {number}
|
|
63
81
|
* @memberof VmUtilizationDetails
|
|
64
82
|
*/
|
|
65
|
-
|
|
83
|
+
mem_p95: number;
|
|
66
84
|
/**
|
|
67
85
|
*
|
|
68
86
|
* @type {number}
|
|
69
87
|
* @memberof VmUtilizationDetails
|
|
70
88
|
*/
|
|
71
|
-
|
|
89
|
+
mem_max: number;
|
|
72
90
|
/**
|
|
73
91
|
*
|
|
74
92
|
* @type {number}
|
|
75
93
|
* @memberof VmUtilizationDetails
|
|
76
94
|
*/
|
|
77
|
-
|
|
95
|
+
mem_latest: number;
|
|
78
96
|
/**
|
|
79
97
|
* Disk utilization (%)
|
|
80
98
|
* @type {number}
|
|
@@ -24,23 +24,29 @@ exports.VmUtilizationDetailsToJSONTyped = VmUtilizationDetailsToJSONTyped;
|
|
|
24
24
|
function instanceOfVmUtilizationDetails(value) {
|
|
25
25
|
if (!('moid' in value) || value['moid'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('vm_name' in value) || value['vm_name'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('provisioned_cpus' in value) || value['provisioned_cpus'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
31
|
+
if (!('provisioned_memory_mb' in value) || value['provisioned_memory_mb'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('
|
|
33
|
+
if (!('provisioned_disk_kb' in value) || value['provisioned_disk_kb'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('
|
|
37
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('
|
|
39
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('cpu_latest' in value) || value['cpu_latest'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
-
if (!('
|
|
43
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('mem_latest' in value) || value['mem_latest'] === undefined)
|
|
44
50
|
return false;
|
|
45
51
|
if (!('disk' in value) || value['disk'] === undefined)
|
|
46
52
|
return false;
|
|
@@ -57,15 +63,18 @@ function VmUtilizationDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
63
|
}
|
|
58
64
|
return {
|
|
59
65
|
'moid': json['moid'],
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
66
|
+
'vm_name': json['vm_name'],
|
|
67
|
+
'provisioned_cpus': json['provisioned_cpus'],
|
|
68
|
+
'provisioned_memory_mb': json['provisioned_memory_mb'],
|
|
69
|
+
'provisioned_disk_kb': json['provisioned_disk_kb'],
|
|
70
|
+
'cpu_avg': json['cpu_avg'],
|
|
71
|
+
'cpu_p95': json['cpu_p95'],
|
|
72
|
+
'cpu_max': json['cpu_max'],
|
|
73
|
+
'cpu_latest': json['cpu_latest'],
|
|
74
|
+
'mem_avg': json['mem_avg'],
|
|
75
|
+
'mem_p95': json['mem_p95'],
|
|
76
|
+
'mem_max': json['mem_max'],
|
|
77
|
+
'mem_latest': json['mem_latest'],
|
|
69
78
|
'disk': json['disk'],
|
|
70
79
|
'confidence': json['confidence'],
|
|
71
80
|
};
|
|
@@ -79,15 +88,18 @@ function VmUtilizationDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
88
|
}
|
|
80
89
|
return {
|
|
81
90
|
'moid': value['moid'],
|
|
82
|
-
'vm_name': value['
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
+
'vm_name': value['vm_name'],
|
|
92
|
+
'provisioned_cpus': value['provisioned_cpus'],
|
|
93
|
+
'provisioned_memory_mb': value['provisioned_memory_mb'],
|
|
94
|
+
'provisioned_disk_kb': value['provisioned_disk_kb'],
|
|
95
|
+
'cpu_avg': value['cpu_avg'],
|
|
96
|
+
'cpu_p95': value['cpu_p95'],
|
|
97
|
+
'cpu_max': value['cpu_max'],
|
|
98
|
+
'cpu_latest': value['cpu_latest'],
|
|
99
|
+
'mem_avg': value['mem_avg'],
|
|
100
|
+
'mem_p95': value['mem_p95'],
|
|
101
|
+
'mem_max': value['mem_max'],
|
|
102
|
+
'mem_latest': value['mem_latest'],
|
|
91
103
|
'disk': value['disk'],
|
|
92
104
|
'confidence': value['confidence'],
|
|
93
105
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
export * from './AgentModeRequest.js';
|
|
2
2
|
export * from './AgentStatus.js';
|
|
3
|
+
export * from './ApplicationListResponse.js';
|
|
4
|
+
export * from './ApplicationOverview.js';
|
|
5
|
+
export * from './ApplicationVM.js';
|
|
6
|
+
export * from './BenchmarkRun.js';
|
|
7
|
+
export * from './ClusterFeatures.js';
|
|
8
|
+
export * from './ClusterUtilization.js';
|
|
3
9
|
export * from './CollectorStartRequest.js';
|
|
4
10
|
export * from './CollectorStatus.js';
|
|
5
11
|
export * from './CreateGroupRequest.js';
|
|
6
12
|
export * from './Datastore.js';
|
|
13
|
+
export * from './DatastoreDetail.js';
|
|
14
|
+
export * from './DatastorePair.js';
|
|
15
|
+
export * from './DeleteLabelGloballyResponse.js';
|
|
7
16
|
export * from './DiskSizeTierSummary.js';
|
|
8
17
|
export * from './DiskTypeSummary.js';
|
|
18
|
+
export * from './EstimateRange.js';
|
|
19
|
+
export * from './ForecastStats.js';
|
|
20
|
+
export * from './ForecasterDatastoresRequest.js';
|
|
21
|
+
export * from './ForecasterPairStatus.js';
|
|
22
|
+
export * from './ForecasterStartRequest.js';
|
|
23
|
+
export * from './ForecasterStatus.js';
|
|
9
24
|
export * from './GetInventory200Response.js';
|
|
10
25
|
export * from './Group.js';
|
|
11
26
|
export * from './GroupListResponse.js';
|
|
@@ -20,6 +35,12 @@ export * from './InventoryData.js';
|
|
|
20
35
|
export * from './MigrationIssue.js';
|
|
21
36
|
export * from './Network.js';
|
|
22
37
|
export * from './OsInfo.js';
|
|
38
|
+
export * from './PairCapability.js';
|
|
39
|
+
export * from './PairCapabilityRequest.js';
|
|
40
|
+
export * from './PutForecasterCredentials403Response.js';
|
|
41
|
+
export * from './RightsizingClusterListResponse.js';
|
|
42
|
+
export * from './RightsizingClusterResponse.js';
|
|
43
|
+
export * from './RightsizingClusterUtilization.js';
|
|
23
44
|
export * from './RightsizingCollectRequest.js';
|
|
24
45
|
export * from './RightsizingMetricStats.js';
|
|
25
46
|
export * from './RightsizingReport.js';
|
|
@@ -27,12 +48,16 @@ export * from './RightsizingReportListResponse.js';
|
|
|
27
48
|
export * from './RightsizingReportSummary.js';
|
|
28
49
|
export * from './RightsizingVMReport.js';
|
|
29
50
|
export * from './StartInspectionRequest.js';
|
|
51
|
+
export * from './StopForecasterPair202Response.js';
|
|
30
52
|
export * from './UpdateGroupRequest.js';
|
|
31
53
|
export * from './UpdateInventory.js';
|
|
54
|
+
export * from './UpdateLabelVMsRequest.js';
|
|
32
55
|
export * from './VCenter.js';
|
|
33
56
|
export * from './VMDevice.js';
|
|
34
57
|
export * from './VMDisk.js';
|
|
58
|
+
export * from './VMFilterOptionsResponse.js';
|
|
35
59
|
export * from './VMIssue.js';
|
|
60
|
+
export * from './VMLabelsResponse.js';
|
|
36
61
|
export * from './VMNIC.js';
|
|
37
62
|
export * from './VMResourceBreakdown.js';
|
|
38
63
|
export * from './VMs.js';
|
|
@@ -42,6 +67,7 @@ export * from './VersionInfo.js';
|
|
|
42
67
|
export * from './VirtualMachine.js';
|
|
43
68
|
export * from './VirtualMachineDetail.js';
|
|
44
69
|
export * from './VirtualMachineListResponse.js';
|
|
70
|
+
export * from './VirtualMachineUpdateRequest.js';
|
|
45
71
|
export * from './VmInspectionConcern.js';
|
|
46
72
|
export * from './VmInspectionResults.js';
|
|
47
73
|
export * from './VmInspectionStatus.js';
|
package/dist/models/index.js
CHANGED
|
@@ -18,12 +18,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AgentModeRequest.js"), exports);
|
|
20
20
|
__exportStar(require("./AgentStatus.js"), exports);
|
|
21
|
+
__exportStar(require("./ApplicationListResponse.js"), exports);
|
|
22
|
+
__exportStar(require("./ApplicationOverview.js"), exports);
|
|
23
|
+
__exportStar(require("./ApplicationVM.js"), exports);
|
|
24
|
+
__exportStar(require("./BenchmarkRun.js"), exports);
|
|
25
|
+
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
26
|
+
__exportStar(require("./ClusterUtilization.js"), exports);
|
|
21
27
|
__exportStar(require("./CollectorStartRequest.js"), exports);
|
|
22
28
|
__exportStar(require("./CollectorStatus.js"), exports);
|
|
23
29
|
__exportStar(require("./CreateGroupRequest.js"), exports);
|
|
24
30
|
__exportStar(require("./Datastore.js"), exports);
|
|
31
|
+
__exportStar(require("./DatastoreDetail.js"), exports);
|
|
32
|
+
__exportStar(require("./DatastorePair.js"), exports);
|
|
33
|
+
__exportStar(require("./DeleteLabelGloballyResponse.js"), exports);
|
|
25
34
|
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
26
35
|
__exportStar(require("./DiskTypeSummary.js"), exports);
|
|
36
|
+
__exportStar(require("./EstimateRange.js"), exports);
|
|
37
|
+
__exportStar(require("./ForecastStats.js"), exports);
|
|
38
|
+
__exportStar(require("./ForecasterDatastoresRequest.js"), exports);
|
|
39
|
+
__exportStar(require("./ForecasterPairStatus.js"), exports);
|
|
40
|
+
__exportStar(require("./ForecasterStartRequest.js"), exports);
|
|
41
|
+
__exportStar(require("./ForecasterStatus.js"), exports);
|
|
27
42
|
__exportStar(require("./GetInventory200Response.js"), exports);
|
|
28
43
|
__exportStar(require("./Group.js"), exports);
|
|
29
44
|
__exportStar(require("./GroupListResponse.js"), exports);
|
|
@@ -38,6 +53,12 @@ __exportStar(require("./InventoryData.js"), exports);
|
|
|
38
53
|
__exportStar(require("./MigrationIssue.js"), exports);
|
|
39
54
|
__exportStar(require("./Network.js"), exports);
|
|
40
55
|
__exportStar(require("./OsInfo.js"), exports);
|
|
56
|
+
__exportStar(require("./PairCapability.js"), exports);
|
|
57
|
+
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
58
|
+
__exportStar(require("./PutForecasterCredentials403Response.js"), exports);
|
|
59
|
+
__exportStar(require("./RightsizingClusterListResponse.js"), exports);
|
|
60
|
+
__exportStar(require("./RightsizingClusterResponse.js"), exports);
|
|
61
|
+
__exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
41
62
|
__exportStar(require("./RightsizingCollectRequest.js"), exports);
|
|
42
63
|
__exportStar(require("./RightsizingMetricStats.js"), exports);
|
|
43
64
|
__exportStar(require("./RightsizingReport.js"), exports);
|
|
@@ -45,12 +66,16 @@ __exportStar(require("./RightsizingReportListResponse.js"), exports);
|
|
|
45
66
|
__exportStar(require("./RightsizingReportSummary.js"), exports);
|
|
46
67
|
__exportStar(require("./RightsizingVMReport.js"), exports);
|
|
47
68
|
__exportStar(require("./StartInspectionRequest.js"), exports);
|
|
69
|
+
__exportStar(require("./StopForecasterPair202Response.js"), exports);
|
|
48
70
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
49
71
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
72
|
+
__exportStar(require("./UpdateLabelVMsRequest.js"), exports);
|
|
50
73
|
__exportStar(require("./VCenter.js"), exports);
|
|
51
74
|
__exportStar(require("./VMDevice.js"), exports);
|
|
52
75
|
__exportStar(require("./VMDisk.js"), exports);
|
|
76
|
+
__exportStar(require("./VMFilterOptionsResponse.js"), exports);
|
|
53
77
|
__exportStar(require("./VMIssue.js"), exports);
|
|
78
|
+
__exportStar(require("./VMLabelsResponse.js"), exports);
|
|
54
79
|
__exportStar(require("./VMNIC.js"), exports);
|
|
55
80
|
__exportStar(require("./VMResourceBreakdown.js"), exports);
|
|
56
81
|
__exportStar(require("./VMs.js"), exports);
|
|
@@ -60,6 +85,7 @@ __exportStar(require("./VersionInfo.js"), exports);
|
|
|
60
85
|
__exportStar(require("./VirtualMachine.js"), exports);
|
|
61
86
|
__exportStar(require("./VirtualMachineDetail.js"), exports);
|
|
62
87
|
__exportStar(require("./VirtualMachineListResponse.js"), exports);
|
|
88
|
+
__exportStar(require("./VirtualMachineUpdateRequest.js"), exports);
|
|
63
89
|
__exportStar(require("./VmInspectionConcern.js"), exports);
|
|
64
90
|
__exportStar(require("./VmInspectionResults.js"), exports);
|
|
65
91
|
__exportStar(require("./VmInspectionStatus.js"), exports);
|
package/docs/AgentStatus.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`mode` | string
|
|
10
|
-
`
|
|
10
|
+
`console_connection` | string
|
|
11
11
|
`error` | string
|
|
12
12
|
|
|
13
13
|
## Example
|
|
@@ -18,7 +18,7 @@ import type { AgentStatus } from '@openshift-migration-advisor/agent-sdk'
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
20
|
"mode": null,
|
|
21
|
-
"
|
|
21
|
+
"console_connection": null,
|
|
22
22
|
"error": null,
|
|
23
23
|
} satisfies AgentStatus
|
|
24
24
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplicationListResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`applications` | [Array<ApplicationOverview>](ApplicationOverview.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ApplicationListResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"applications": null,
|
|
19
|
+
} satisfies ApplicationListResponse
|
|
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 ApplicationListResponse
|
|
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
|
+
# ApplicationOverview
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`description` | string
|
|
11
|
+
`vmCount` | number
|
|
12
|
+
`vms` | [Array<ApplicationVM>](ApplicationVM.md)
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ApplicationOverview } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"description": null,
|
|
23
|
+
"vmCount": null,
|
|
24
|
+
"vms": null,
|
|
25
|
+
} satisfies ApplicationOverview
|
|
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 ApplicationOverview
|
|
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
|
+
# ApplicationVM
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ApplicationVM } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"name": null,
|
|
21
|
+
} satisfies ApplicationVM
|
|
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 ApplicationVM
|
|
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,58 @@
|
|
|
1
|
+
|
|
2
|
+
# BenchmarkRun
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`sessionId` | number
|
|
11
|
+
`pairName` | string
|
|
12
|
+
`sourceDatastore` | string
|
|
13
|
+
`targetDatastore` | string
|
|
14
|
+
`iteration` | number
|
|
15
|
+
`diskSizeGb` | number
|
|
16
|
+
`prepDurationSec` | number
|
|
17
|
+
`durationSec` | number
|
|
18
|
+
`throughputMbps` | number
|
|
19
|
+
`method` | string
|
|
20
|
+
`error` | string
|
|
21
|
+
`createdAt` | Date
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { BenchmarkRun } from '@openshift-migration-advisor/agent-sdk'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"id": null,
|
|
31
|
+
"sessionId": null,
|
|
32
|
+
"pairName": null,
|
|
33
|
+
"sourceDatastore": null,
|
|
34
|
+
"targetDatastore": null,
|
|
35
|
+
"iteration": null,
|
|
36
|
+
"diskSizeGb": null,
|
|
37
|
+
"prepDurationSec": null,
|
|
38
|
+
"durationSec": null,
|
|
39
|
+
"throughputMbps": null,
|
|
40
|
+
"method": null,
|
|
41
|
+
"error": null,
|
|
42
|
+
"createdAt": null,
|
|
43
|
+
} satisfies BenchmarkRun
|
|
44
|
+
|
|
45
|
+
console.log(example)
|
|
46
|
+
|
|
47
|
+
// Convert the instance to a JSON string
|
|
48
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
+
console.log(exampleJSON)
|
|
50
|
+
|
|
51
|
+
// Parse the JSON string back to an object
|
|
52
|
+
const exampleParsed = JSON.parse(exampleJSON) as BenchmarkRun
|
|
53
|
+
console.log(exampleParsed)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
+
|
|
58
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# ClusterFeatures
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`drsEnabled` | boolean
|
|
10
|
+
`drsMode` | string
|
|
11
|
+
`storageDrsEnabled` | boolean
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ClusterFeatures } from '@openshift-migration-advisor/agent-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"drsEnabled": null,
|
|
21
|
+
"drsMode": null,
|
|
22
|
+
"storageDrsEnabled": null,
|
|
23
|
+
} satisfies ClusterFeatures
|
|
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 ClusterFeatures
|
|
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,46 @@
|
|
|
1
|
+
|
|
2
|
+
# ClusterUtilization
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`cpu_avg` | number
|
|
10
|
+
`cpu_p95` | number
|
|
11
|
+
`cpu_max` | number
|
|
12
|
+
`mem_avg` | number
|
|
13
|
+
`mem_p95` | number
|
|
14
|
+
`mem_max` | number
|
|
15
|
+
`confidence` | number
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { ClusterUtilization } from '@openshift-migration-advisor/agent-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"cpu_avg": null,
|
|
25
|
+
"cpu_p95": null,
|
|
26
|
+
"cpu_max": null,
|
|
27
|
+
"mem_avg": null,
|
|
28
|
+
"mem_p95": null,
|
|
29
|
+
"mem_max": null,
|
|
30
|
+
"confidence": null,
|
|
31
|
+
} satisfies ClusterUtilization
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as ClusterUtilization
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -9,7 +9,6 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
11
|
`filter` | string
|
|
12
|
-
`tags` | Array<string>
|
|
13
12
|
|
|
14
13
|
## Example
|
|
15
14
|
|
|
@@ -21,7 +20,6 @@ const example = {
|
|
|
21
20
|
"name": null,
|
|
22
21
|
"description": null,
|
|
23
22
|
"filter": null,
|
|
24
|
-
"tags": null,
|
|
25
23
|
} satisfies CreateGroupRequest
|
|
26
24
|
|
|
27
25
|
console.log(example)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# DatastoreDetail
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`type` | string
|
|
11
|
+
`capacityGb` | number
|
|
12
|
+
`freeGb` | number
|
|
13
|
+
`storageVendor` | string
|
|
14
|
+
`storageModel` | string
|
|
15
|
+
`storageArrayId` | string
|
|
16
|
+
`naaDevices` | Array<string>
|
|
17
|
+
`capabilities` | Array<string>
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { DatastoreDetail } from '@openshift-migration-advisor/agent-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"name": null,
|
|
27
|
+
"type": null,
|
|
28
|
+
"capacityGb": null,
|
|
29
|
+
"freeGb": null,
|
|
30
|
+
"storageVendor": null,
|
|
31
|
+
"storageModel": null,
|
|
32
|
+
"storageArrayId": null,
|
|
33
|
+
"naaDevices": null,
|
|
34
|
+
"capabilities": null,
|
|
35
|
+
} satisfies DatastoreDetail
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as DatastoreDetail
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|