@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-645d2fae3eee
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 +62 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +68 -17
- package/dist/apis/DefaultApi.d.ts +919 -108
- package/dist/apis/DefaultApi.js +1140 -256
- package/dist/esm/apis/DefaultApi.d.ts +919 -108
- package/dist/esm/apis/DefaultApi.js +1121 -237
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- 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/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/InspectorStatus.d.ts +6 -10
- package/dist/esm/models/InspectorStatus.js +5 -9
- 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/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 +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +39 -0
- package/dist/esm/models/{InspectorStartRequest.js → StartInspectionRequest.js} +12 -12
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +43 -1
- package/dist/esm/models/VirtualMachine.js +16 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +22 -3
- package/dist/esm/models/VirtualMachineDetail.js +10 -3
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/esm/models/VmUtilizationDetails.js +99 -0
- package/dist/esm/models/index.d.ts +31 -1
- package/dist/esm/models/index.js +31 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- 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/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/InspectorStatus.d.ts +6 -10
- package/dist/models/InspectorStatus.js +5 -9
- 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/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 +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +39 -0
- package/dist/models/StartInspectionRequest.js +55 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +43 -1
- package/dist/models/VirtualMachine.js +16 -4
- package/dist/models/VirtualMachineDetail.d.ts +22 -3
- package/dist/models/VirtualMachineDetail.js +10 -3
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/models/VmUtilizationDetails.js +106 -0
- package/dist/models/index.d.ts +31 -1
- package/dist/models/index.js +31 -1
- package/dist/runtime.js +1 -1
- package/docs/AgentStatus.md +2 -2
- package/docs/BenchmarkRun.md +58 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1701 -266
- 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/InspectorStatus.md +2 -2
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +2 -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 +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +7 -6
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +16 -2
- package/docs/VirtualMachineDetail.md +7 -1
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +62 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +2167 -479
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/ClusterFeatures.ts +94 -0
- 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/InspectorStatus.ts +15 -12
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +15 -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 +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +83 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +59 -4
- package/src/models/VirtualMachineDetail.ts +42 -11
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +192 -0
- package/src/models/index.ts +31 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { EstimateRange } from './EstimateRange.js';
|
|
17
|
+
import {
|
|
18
|
+
EstimateRangeFromJSON,
|
|
19
|
+
EstimateRangeFromJSONTyped,
|
|
20
|
+
EstimateRangeToJSON,
|
|
21
|
+
EstimateRangeToJSONTyped,
|
|
22
|
+
} from './EstimateRange.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ForecastStats
|
|
28
|
+
*/
|
|
29
|
+
export interface ForecastStats {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ForecastStats
|
|
34
|
+
*/
|
|
35
|
+
pairName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ForecastStats
|
|
40
|
+
*/
|
|
41
|
+
sampleCount: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ForecastStats
|
|
46
|
+
*/
|
|
47
|
+
meanMbps?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ForecastStats
|
|
52
|
+
*/
|
|
53
|
+
medianMbps?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ForecastStats
|
|
58
|
+
*/
|
|
59
|
+
minMbps?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ForecastStats
|
|
64
|
+
*/
|
|
65
|
+
maxMbps?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ForecastStats
|
|
70
|
+
*/
|
|
71
|
+
stddevMbps?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Lower bound of 95% confidence interval
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof ForecastStats
|
|
76
|
+
*/
|
|
77
|
+
ci95LowerMbps?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Upper bound of 95% confidence interval
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof ForecastStats
|
|
82
|
+
*/
|
|
83
|
+
ci95UpperMbps?: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {EstimateRange}
|
|
87
|
+
* @memberof ForecastStats
|
|
88
|
+
*/
|
|
89
|
+
estimatePer1TB?: EstimateRange;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the ForecastStats interface.
|
|
94
|
+
*/
|
|
95
|
+
export function instanceOfForecastStats(value: object): value is ForecastStats {
|
|
96
|
+
if (!('pairName' in value) || value['pairName'] === undefined) return false;
|
|
97
|
+
if (!('sampleCount' in value) || value['sampleCount'] === undefined) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ForecastStatsFromJSON(json: any): ForecastStats {
|
|
102
|
+
return ForecastStatsFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function ForecastStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecastStats {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'pairName': json['pairName'],
|
|
112
|
+
'sampleCount': json['sampleCount'],
|
|
113
|
+
'meanMbps': json['meanMbps'] == null ? undefined : json['meanMbps'],
|
|
114
|
+
'medianMbps': json['medianMbps'] == null ? undefined : json['medianMbps'],
|
|
115
|
+
'minMbps': json['minMbps'] == null ? undefined : json['minMbps'],
|
|
116
|
+
'maxMbps': json['maxMbps'] == null ? undefined : json['maxMbps'],
|
|
117
|
+
'stddevMbps': json['stddevMbps'] == null ? undefined : json['stddevMbps'],
|
|
118
|
+
'ci95LowerMbps': json['ci95LowerMbps'] == null ? undefined : json['ci95LowerMbps'],
|
|
119
|
+
'ci95UpperMbps': json['ci95UpperMbps'] == null ? undefined : json['ci95UpperMbps'],
|
|
120
|
+
'estimatePer1TB': json['estimatePer1TB'] == null ? undefined : EstimateRangeFromJSON(json['estimatePer1TB']),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function ForecastStatsToJSON(json: any): ForecastStats {
|
|
125
|
+
return ForecastStatsToJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function ForecastStatsToJSONTyped(value?: ForecastStats | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'pairName': value['pairName'],
|
|
136
|
+
'sampleCount': value['sampleCount'],
|
|
137
|
+
'meanMbps': value['meanMbps'],
|
|
138
|
+
'medianMbps': value['medianMbps'],
|
|
139
|
+
'minMbps': value['minMbps'],
|
|
140
|
+
'maxMbps': value['maxMbps'],
|
|
141
|
+
'stddevMbps': value['stddevMbps'],
|
|
142
|
+
'ci95LowerMbps': value['ci95LowerMbps'],
|
|
143
|
+
'ci95UpperMbps': value['ci95UpperMbps'],
|
|
144
|
+
'estimatePer1TB': EstimateRangeToJSON(value['estimatePer1TB']),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
17
|
+
import {
|
|
18
|
+
VcenterCredentialsFromJSON,
|
|
19
|
+
VcenterCredentialsFromJSONTyped,
|
|
20
|
+
VcenterCredentialsToJSON,
|
|
21
|
+
VcenterCredentialsToJSONTyped,
|
|
22
|
+
} from './VcenterCredentials.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ForecasterDatastoresRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ForecasterDatastoresRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {VcenterCredentials}
|
|
33
|
+
* @memberof ForecasterDatastoresRequest
|
|
34
|
+
*/
|
|
35
|
+
credentials?: VcenterCredentials;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ForecasterDatastoresRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfForecasterDatastoresRequest(value: object): value is ForecasterDatastoresRequest {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ForecasterDatastoresRequestFromJSON(json: any): ForecasterDatastoresRequest {
|
|
46
|
+
return ForecasterDatastoresRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ForecasterDatastoresRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecasterDatastoresRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ForecasterDatastoresRequestToJSON(json: any): ForecasterDatastoresRequest {
|
|
60
|
+
return ForecasterDatastoresRequestToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ForecasterDatastoresRequestToJSONTyped(value?: ForecasterDatastoresRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ForecasterPairStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface ForecasterPairStatus {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ForecasterPairStatus
|
|
26
|
+
*/
|
|
27
|
+
pairName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ForecasterPairStatus
|
|
32
|
+
*/
|
|
33
|
+
sourceDatastore: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ForecasterPairStatus
|
|
38
|
+
*/
|
|
39
|
+
targetDatastore: string;
|
|
40
|
+
/**
|
|
41
|
+
* ESXi host used for the benchmark (user-specified or auto-selected)
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ForecasterPairStatus
|
|
44
|
+
*/
|
|
45
|
+
host?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Per-pair state within a benchmark run
|
|
48
|
+
* @type {ForecasterPairStatusStateEnum}
|
|
49
|
+
* @memberof ForecasterPairStatus
|
|
50
|
+
*/
|
|
51
|
+
state: ForecasterPairStatusStateEnum;
|
|
52
|
+
/**
|
|
53
|
+
* Error message when pair state is error
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ForecasterPairStatus
|
|
56
|
+
*/
|
|
57
|
+
error?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Number of completed iterations
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof ForecasterPairStatus
|
|
62
|
+
*/
|
|
63
|
+
completedRuns: number;
|
|
64
|
+
/**
|
|
65
|
+
* Total iterations planned
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof ForecasterPairStatus
|
|
68
|
+
*/
|
|
69
|
+
totalRuns: number;
|
|
70
|
+
/**
|
|
71
|
+
* Total bytes to upload during preparation (present during preparing state)
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof ForecasterPairStatus
|
|
74
|
+
*/
|
|
75
|
+
prepBytesTotal?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Bytes uploaded so far during preparation
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof ForecasterPairStatus
|
|
80
|
+
*/
|
|
81
|
+
prepBytesUploaded?: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const ForecasterPairStatusStateEnum = {
|
|
89
|
+
ForecasterPairStatusStatePending: 'pending',
|
|
90
|
+
ForecasterPairStatusStatePreparing: 'preparing',
|
|
91
|
+
ForecasterPairStatusStateRunning: 'running',
|
|
92
|
+
ForecasterPairStatusStateCompleted: 'completed',
|
|
93
|
+
ForecasterPairStatusStateError: 'error',
|
|
94
|
+
ForecasterPairStatusStateCanceled: 'canceled'
|
|
95
|
+
} as const;
|
|
96
|
+
export type ForecasterPairStatusStateEnum = typeof ForecasterPairStatusStateEnum[keyof typeof ForecasterPairStatusStateEnum];
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the ForecasterPairStatus interface.
|
|
101
|
+
*/
|
|
102
|
+
export function instanceOfForecasterPairStatus(value: object): value is ForecasterPairStatus {
|
|
103
|
+
if (!('pairName' in value) || value['pairName'] === undefined) return false;
|
|
104
|
+
if (!('sourceDatastore' in value) || value['sourceDatastore'] === undefined) return false;
|
|
105
|
+
if (!('targetDatastore' in value) || value['targetDatastore'] === undefined) return false;
|
|
106
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
107
|
+
if (!('completedRuns' in value) || value['completedRuns'] === undefined) return false;
|
|
108
|
+
if (!('totalRuns' in value) || value['totalRuns'] === undefined) return false;
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function ForecasterPairStatusFromJSON(json: any): ForecasterPairStatus {
|
|
113
|
+
return ForecasterPairStatusFromJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ForecasterPairStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecasterPairStatus {
|
|
117
|
+
if (json == null) {
|
|
118
|
+
return json;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'pairName': json['pairName'],
|
|
123
|
+
'sourceDatastore': json['sourceDatastore'],
|
|
124
|
+
'targetDatastore': json['targetDatastore'],
|
|
125
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
126
|
+
'state': json['state'],
|
|
127
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
128
|
+
'completedRuns': json['completedRuns'],
|
|
129
|
+
'totalRuns': json['totalRuns'],
|
|
130
|
+
'prepBytesTotal': json['prepBytesTotal'] == null ? undefined : json['prepBytesTotal'],
|
|
131
|
+
'prepBytesUploaded': json['prepBytesUploaded'] == null ? undefined : json['prepBytesUploaded'],
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function ForecasterPairStatusToJSON(json: any): ForecasterPairStatus {
|
|
136
|
+
return ForecasterPairStatusToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function ForecasterPairStatusToJSONTyped(value?: ForecasterPairStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'pairName': value['pairName'],
|
|
147
|
+
'sourceDatastore': value['sourceDatastore'],
|
|
148
|
+
'targetDatastore': value['targetDatastore'],
|
|
149
|
+
'host': value['host'],
|
|
150
|
+
'state': value['state'],
|
|
151
|
+
'error': value['error'],
|
|
152
|
+
'completedRuns': value['completedRuns'],
|
|
153
|
+
'totalRuns': value['totalRuns'],
|
|
154
|
+
'prepBytesTotal': value['prepBytesTotal'],
|
|
155
|
+
'prepBytesUploaded': value['prepBytesUploaded'],
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
17
|
+
import {
|
|
18
|
+
VcenterCredentialsFromJSON,
|
|
19
|
+
VcenterCredentialsFromJSONTyped,
|
|
20
|
+
VcenterCredentialsToJSON,
|
|
21
|
+
VcenterCredentialsToJSONTyped,
|
|
22
|
+
} from './VcenterCredentials.js';
|
|
23
|
+
import type { DatastorePair } from './DatastorePair.js';
|
|
24
|
+
import {
|
|
25
|
+
DatastorePairFromJSON,
|
|
26
|
+
DatastorePairFromJSONTyped,
|
|
27
|
+
DatastorePairToJSON,
|
|
28
|
+
DatastorePairToJSONTyped,
|
|
29
|
+
} from './DatastorePair.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ForecasterStartRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface ForecasterStartRequest {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {VcenterCredentials}
|
|
40
|
+
* @memberof ForecasterStartRequest
|
|
41
|
+
*/
|
|
42
|
+
credentials?: VcenterCredentials;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<DatastorePair>}
|
|
46
|
+
* @memberof ForecasterStartRequest
|
|
47
|
+
*/
|
|
48
|
+
pairs: Array<DatastorePair>;
|
|
49
|
+
/**
|
|
50
|
+
* Disk size in GB for benchmark (default 10)
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ForecasterStartRequest
|
|
53
|
+
*/
|
|
54
|
+
diskSizeGb?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Number of benchmark iterations per pair (default 5)
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof ForecasterStartRequest
|
|
59
|
+
*/
|
|
60
|
+
iterations?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Max parallel pairs (default 1, sequential)
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof ForecasterStartRequest
|
|
65
|
+
*/
|
|
66
|
+
concurrency?: number;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the ForecasterStartRequest interface.
|
|
71
|
+
*/
|
|
72
|
+
export function instanceOfForecasterStartRequest(value: object): value is ForecasterStartRequest {
|
|
73
|
+
if (!('pairs' in value) || value['pairs'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ForecasterStartRequestFromJSON(json: any): ForecasterStartRequest {
|
|
78
|
+
return ForecasterStartRequestFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ForecasterStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecasterStartRequest {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
88
|
+
'pairs': ((json['pairs'] as Array<any>).map(DatastorePairFromJSON)),
|
|
89
|
+
'diskSizeGb': json['diskSizeGb'] == null ? undefined : json['diskSizeGb'],
|
|
90
|
+
'iterations': json['iterations'] == null ? undefined : json['iterations'],
|
|
91
|
+
'concurrency': json['concurrency'] == null ? undefined : json['concurrency'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ForecasterStartRequestToJSON(json: any): ForecasterStartRequest {
|
|
96
|
+
return ForecasterStartRequestToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ForecasterStartRequestToJSONTyped(value?: ForecasterStartRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
107
|
+
'pairs': ((value['pairs'] as Array<any>).map(DatastorePairToJSON)),
|
|
108
|
+
'diskSizeGb': value['diskSizeGb'],
|
|
109
|
+
'iterations': value['iterations'],
|
|
110
|
+
'concurrency': value['concurrency'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { ForecasterPairStatus } from './ForecasterPairStatus.js';
|
|
17
|
+
import {
|
|
18
|
+
ForecasterPairStatusFromJSON,
|
|
19
|
+
ForecasterPairStatusFromJSONTyped,
|
|
20
|
+
ForecasterPairStatusToJSON,
|
|
21
|
+
ForecasterPairStatusToJSONTyped,
|
|
22
|
+
} from './ForecasterPairStatus.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ForecasterStatus
|
|
28
|
+
*/
|
|
29
|
+
export interface ForecasterStatus {
|
|
30
|
+
/**
|
|
31
|
+
* Service-level state. Only two states exist — ready (idle) or running (benchmark in progress). When a benchmark finishes or is canceled, the service returns to ready.
|
|
32
|
+
* @type {ForecasterStatusStateEnum}
|
|
33
|
+
* @memberof ForecasterStatus
|
|
34
|
+
*/
|
|
35
|
+
state: ForecasterStatusStateEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Per-pair progress (present only when running)
|
|
38
|
+
* @type {Array<ForecasterPairStatus>}
|
|
39
|
+
* @memberof ForecasterStatus
|
|
40
|
+
*/
|
|
41
|
+
pairs?: Array<ForecasterPairStatus>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export const ForecasterStatusStateEnum = {
|
|
49
|
+
ForecasterStatusStateReady: 'ready',
|
|
50
|
+
ForecasterStatusStateRunning: 'running'
|
|
51
|
+
} as const;
|
|
52
|
+
export type ForecasterStatusStateEnum = typeof ForecasterStatusStateEnum[keyof typeof ForecasterStatusStateEnum];
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ForecasterStatus interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfForecasterStatus(value: object): value is ForecasterStatus {
|
|
59
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ForecasterStatusFromJSON(json: any): ForecasterStatus {
|
|
64
|
+
return ForecasterStatusFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ForecasterStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecasterStatus {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'state': json['state'],
|
|
74
|
+
'pairs': json['pairs'] == null ? undefined : ((json['pairs'] as Array<any>).map(ForecasterPairStatusFromJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ForecasterStatusToJSON(json: any): ForecasterStatus {
|
|
79
|
+
return ForecasterStatusToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ForecasterStatusToJSONTyped(value?: ForecasterStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'state': value['state'],
|
|
90
|
+
'pairs': value['pairs'] == null ? undefined : ((value['pairs'] as Array<any>).map(ForecasterPairStatusToJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { VddkProperties } from './VddkProperties.js';
|
|
17
|
+
import {
|
|
18
|
+
VddkPropertiesFromJSON,
|
|
19
|
+
VddkPropertiesFromJSONTyped,
|
|
20
|
+
VddkPropertiesToJSON,
|
|
21
|
+
VddkPropertiesToJSONTyped,
|
|
22
|
+
} from './VddkProperties.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -26,11 +34,11 @@ export interface InspectorStatus {
|
|
|
26
34
|
*/
|
|
27
35
|
state: InspectorStatusStateEnum;
|
|
28
36
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {
|
|
37
|
+
*
|
|
38
|
+
* @type {VddkProperties}
|
|
31
39
|
* @memberof InspectorStatus
|
|
32
40
|
*/
|
|
33
|
-
|
|
41
|
+
vddk?: VddkProperties;
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
|
|
@@ -38,13 +46,8 @@ export interface InspectorStatus {
|
|
|
38
46
|
* @export
|
|
39
47
|
*/
|
|
40
48
|
export const InspectorStatusStateEnum = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
InspectorStatusStateCompleted: 'running',
|
|
44
|
-
InspectorStatusStateError: 'canceling',
|
|
45
|
-
InspectorStatusStateInitiating: 'canceled',
|
|
46
|
-
InspectorStatusStateReady: 'completed',
|
|
47
|
-
InspectorStatusStateRunning: 'error'
|
|
49
|
+
InspectorStatusStateReady: 'ready',
|
|
50
|
+
InspectorStatusStateRunning: 'running'
|
|
48
51
|
} as const;
|
|
49
52
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
50
53
|
|
|
@@ -68,7 +71,7 @@ export function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
68
71
|
return {
|
|
69
72
|
|
|
70
73
|
'state': json['state'],
|
|
71
|
-
'
|
|
74
|
+
'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
|
|
72
75
|
};
|
|
73
76
|
}
|
|
74
77
|
|
|
@@ -84,7 +87,7 @@ export function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignor
|
|
|
84
87
|
return {
|
|
85
88
|
|
|
86
89
|
'state': value['state'],
|
|
87
|
-
'
|
|
90
|
+
'vddk': VddkPropertiesToJSON(value['vddk']),
|
|
88
91
|
};
|
|
89
92
|
}
|
|
90
93
|
|
package/src/models/Inventory.ts
CHANGED
|
@@ -32,7 +32,13 @@ export interface Inventory {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Inventory
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
vcenter_id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Inventory
|
|
40
|
+
*/
|
|
41
|
+
vcenter_version?: string;
|
|
36
42
|
/**
|
|
37
43
|
* Map of cluster names to their inventory data
|
|
38
44
|
* @type {{ [key: string]: InventoryData; }}
|
|
@@ -51,7 +57,7 @@ export interface Inventory {
|
|
|
51
57
|
* Check if a given object implements the Inventory interface.
|
|
52
58
|
*/
|
|
53
59
|
export function instanceOfInventory(value: object): value is Inventory {
|
|
54
|
-
if (!('
|
|
60
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
|
|
55
61
|
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
56
62
|
return true;
|
|
57
63
|
}
|
|
@@ -66,7 +72,8 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
66
72
|
}
|
|
67
73
|
return {
|
|
68
74
|
|
|
69
|
-
'
|
|
75
|
+
'vcenter_id': json['vcenter_id'],
|
|
76
|
+
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
70
77
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
71
78
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
72
79
|
};
|
|
@@ -83,7 +90,8 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
|
|
|
83
90
|
|
|
84
91
|
return {
|
|
85
92
|
|
|
86
|
-
'vcenter_id': value['
|
|
93
|
+
'vcenter_id': value['vcenter_id'],
|
|
94
|
+
'vcenter_version': value['vcenter_version'],
|
|
87
95
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
88
96
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
89
97
|
};
|