@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-914fe80385ee
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 +50 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +56 -17
- package/dist/apis/DefaultApi.d.ts +706 -126
- package/dist/apis/DefaultApi.js +916 -285
- package/dist/esm/apis/DefaultApi.d.ts +706 -126
- package/dist/esm/apis/DefaultApi.js +898 -267
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -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/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 +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- 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/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 +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -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 +31 -1
- package/dist/esm/models/VirtualMachine.js +12 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- 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 +25 -1
- package/dist/esm/models/index.js +25 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -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/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 +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- 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/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 +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +31 -1
- package/dist/models/VirtualMachine.js +12 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- 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 +25 -1
- package/dist/models/index.js +25 -1
- package/dist/runtime.js +1 -1
- package/docs/BenchmarkRun.md +58 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1265 -240
- 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/InspectorStatus.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/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} +5 -6
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +12 -2
- package/docs/VirtualMachineDetail.md +1 -1
- 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 +1548 -350
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -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 +37 -7
- 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/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 +66 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +43 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- 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 +25 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/esm/models/InspectorStartRequest.js +0 -48
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
|
@@ -92,13 +92,43 @@ export interface VirtualMachine {
|
|
|
92
92
|
* @type {VmInspectionStatus}
|
|
93
93
|
* @memberof VirtualMachine
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
inspectionStatus?: VmInspectionStatus;
|
|
96
|
+
/**
|
|
97
|
+
* Number of inspection concerns recorded for the latest persisted inspection result
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof VirtualMachine
|
|
100
|
+
*/
|
|
101
|
+
inspectionConcernCount?: number;
|
|
96
102
|
/**
|
|
97
103
|
* Tags aggregated from matching groups
|
|
98
104
|
* @type {Array<string>}
|
|
99
105
|
* @memberof VirtualMachine
|
|
100
106
|
*/
|
|
101
107
|
tags?: Array<string>;
|
|
108
|
+
/**
|
|
109
|
+
* CPU utilization at p95 (%); absent when no utilization data
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof VirtualMachine
|
|
112
|
+
*/
|
|
113
|
+
utilizationCpuP95?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Memory utilization at p95 (%); absent when no utilization data
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof VirtualMachine
|
|
118
|
+
*/
|
|
119
|
+
utilizationMemP95?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Disk utilization (%); absent when no utilization data
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof VirtualMachine
|
|
124
|
+
*/
|
|
125
|
+
utilizationDisk?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Data confidence — sample_count / expected_sample_count × 100
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof VirtualMachine
|
|
130
|
+
*/
|
|
131
|
+
utilizationConfidence?: number;
|
|
102
132
|
}
|
|
103
133
|
|
|
104
134
|
/**
|
|
@@ -113,7 +143,6 @@ export function instanceOfVirtualMachine(value: object): value is VirtualMachine
|
|
|
113
143
|
if (!('diskSize' in value) || value['diskSize'] === undefined) return false;
|
|
114
144
|
if (!('memory' in value) || value['memory'] === undefined) return false;
|
|
115
145
|
if (!('issueCount' in value) || value['issueCount'] === undefined) return false;
|
|
116
|
-
if (!('inspection' in value) || value['inspection'] === undefined) return false;
|
|
117
146
|
return true;
|
|
118
147
|
}
|
|
119
148
|
|
|
@@ -137,8 +166,13 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
137
166
|
'issueCount': json['issueCount'],
|
|
138
167
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
139
168
|
'template': json['template'] == null ? undefined : json['template'],
|
|
140
|
-
'
|
|
169
|
+
'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
|
|
170
|
+
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
141
171
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
172
|
+
'utilizationCpuP95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
173
|
+
'utilizationMemP95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
174
|
+
'utilizationDisk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
|
|
175
|
+
'utilizationConfidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
|
|
142
176
|
};
|
|
143
177
|
}
|
|
144
178
|
|
|
@@ -163,8 +197,13 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
|
|
|
163
197
|
'issueCount': value['issueCount'],
|
|
164
198
|
'migratable': value['migratable'],
|
|
165
199
|
'template': value['template'],
|
|
166
|
-
'
|
|
200
|
+
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
201
|
+
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
167
202
|
'tags': value['tags'],
|
|
203
|
+
'utilization_cpu_p95': value['utilizationCpuP95'],
|
|
204
|
+
'utilization_mem_p95': value['utilizationMemP95'],
|
|
205
|
+
'utilization_disk': value['utilizationDisk'],
|
|
206
|
+
'utilization_confidence': value['utilizationConfidence'],
|
|
168
207
|
};
|
|
169
208
|
}
|
|
170
209
|
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
VMNICToJSON,
|
|
21
21
|
VMNICToJSONTyped,
|
|
22
22
|
} from './VMNIC.js';
|
|
23
|
-
import type { VmInspectionStatus } from './VmInspectionStatus.js';
|
|
24
|
-
import {
|
|
25
|
-
VmInspectionStatusFromJSON,
|
|
26
|
-
VmInspectionStatusFromJSONTyped,
|
|
27
|
-
VmInspectionStatusToJSON,
|
|
28
|
-
VmInspectionStatusToJSONTyped,
|
|
29
|
-
} from './VmInspectionStatus.js';
|
|
30
23
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
31
24
|
import {
|
|
32
25
|
GuestNetworkFromJSON,
|
|
@@ -55,6 +48,13 @@ import {
|
|
|
55
48
|
VMDiskToJSON,
|
|
56
49
|
VMDiskToJSONTyped,
|
|
57
50
|
} from './VMDisk.js';
|
|
51
|
+
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
52
|
+
import {
|
|
53
|
+
VmInspectionResultsFromJSON,
|
|
54
|
+
VmInspectionResultsFromJSONTyped,
|
|
55
|
+
VmInspectionResultsToJSON,
|
|
56
|
+
VmInspectionResultsToJSONTyped,
|
|
57
|
+
} from './VmInspectionResults.js';
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
@@ -244,10 +244,10 @@ export interface VirtualMachineDetail {
|
|
|
244
244
|
issues?: Array<VMIssue>;
|
|
245
245
|
/**
|
|
246
246
|
*
|
|
247
|
-
* @type {
|
|
247
|
+
* @type {VmInspectionResults}
|
|
248
248
|
* @memberof VirtualMachineDetail
|
|
249
249
|
*/
|
|
250
|
-
inspection?:
|
|
250
|
+
inspection?: VmInspectionResults;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
/**
|
|
@@ -306,7 +306,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
306
306
|
'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VMDeviceFromJSON)),
|
|
307
307
|
'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
|
|
308
308
|
'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
|
|
309
|
-
'inspection': json['inspection'] == null ? undefined :
|
|
309
|
+
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
|
|
@@ -351,7 +351,7 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
|
|
|
351
351
|
'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VMDeviceToJSON)),
|
|
352
352
|
'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
|
|
353
353
|
'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
|
|
354
|
-
'inspection':
|
|
354
|
+
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
* Represents the structure of vm-migration-detective library inspection concerns
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VmInspectionConcern
|
|
20
|
+
*/
|
|
21
|
+
export interface VmInspectionConcern {
|
|
22
|
+
/**
|
|
23
|
+
* Short label identifying the concern
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VmInspectionConcern
|
|
26
|
+
*/
|
|
27
|
+
label: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VmInspectionConcern
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof VmInspectionConcern
|
|
38
|
+
*/
|
|
39
|
+
category: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the VmInspectionConcern interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern {
|
|
46
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
47
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
48
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function VmInspectionConcernFromJSON(json: any): VmInspectionConcern {
|
|
53
|
+
return VmInspectionConcernFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'label': json['label'],
|
|
63
|
+
'message': json['message'],
|
|
64
|
+
'category': json['category'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function VmInspectionConcernToJSON(json: any): VmInspectionConcern {
|
|
69
|
+
return VmInspectionConcernToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'label': value['label'],
|
|
80
|
+
'message': value['message'],
|
|
81
|
+
'category': value['category'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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 { VmInspectionConcern } from './VmInspectionConcern.js';
|
|
17
|
+
import {
|
|
18
|
+
VmInspectionConcernFromJSON,
|
|
19
|
+
VmInspectionConcernFromJSONTyped,
|
|
20
|
+
VmInspectionConcernToJSON,
|
|
21
|
+
VmInspectionConcernToJSONTyped,
|
|
22
|
+
} from './VmInspectionConcern.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* VirtualMachine Inspection results
|
|
26
|
+
* @export
|
|
27
|
+
* @interface VmInspectionResults
|
|
28
|
+
*/
|
|
29
|
+
export interface VmInspectionResults {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<VmInspectionConcern>}
|
|
33
|
+
* @memberof VmInspectionResults
|
|
34
|
+
*/
|
|
35
|
+
concerns?: Array<VmInspectionConcern>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the VmInspectionResults interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfVmInspectionResults(value: object): value is VmInspectionResults {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VmInspectionResultsFromJSON(json: any): VmInspectionResults {
|
|
46
|
+
return VmInspectionResultsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VmInspectionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionResults {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'concerns': json['concerns'] == null ? undefined : ((json['concerns'] as Array<any>).map(VmInspectionConcernFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VmInspectionResultsToJSON(json: any): VmInspectionResults {
|
|
60
|
+
return VmInspectionResultsToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VmInspectionResultsToJSONTyped(value?: VmInspectionResults | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'concerns': value['concerns'] == null ? undefined : ((value['concerns'] as Array<any>).map(VmInspectionConcernToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -48,8 +48,7 @@ export const VmInspectionStatusStateEnum = {
|
|
|
48
48
|
VmInspectionStatusStateRunning: 'running',
|
|
49
49
|
VmInspectionStatusStateCompleted: 'completed',
|
|
50
50
|
VmInspectionStatusStateCanceled: 'canceled',
|
|
51
|
-
VmInspectionStatusStateError: 'error'
|
|
52
|
-
VmInspectionStatusStateNotFound: 'not_found'
|
|
51
|
+
VmInspectionStatusStateError: 'error'
|
|
53
52
|
} as const;
|
|
54
53
|
export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
|
|
55
54
|
|
|
@@ -0,0 +1,192 @@
|
|
|
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 VmUtilizationDetails
|
|
20
|
+
*/
|
|
21
|
+
export interface VmUtilizationDetails {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VmUtilizationDetails
|
|
26
|
+
*/
|
|
27
|
+
moid: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VmUtilizationDetails
|
|
32
|
+
*/
|
|
33
|
+
vmName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number of vCPUs provisioned for this VM
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof VmUtilizationDetails
|
|
38
|
+
*/
|
|
39
|
+
provisionedCpus: number;
|
|
40
|
+
/**
|
|
41
|
+
* Provisioned RAM (MB)
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof VmUtilizationDetails
|
|
44
|
+
*/
|
|
45
|
+
provisionedMemoryMb: number;
|
|
46
|
+
/**
|
|
47
|
+
* Provisioned disk (KB)
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof VmUtilizationDetails
|
|
50
|
+
*/
|
|
51
|
+
provisionedDiskKb: number;
|
|
52
|
+
/**
|
|
53
|
+
* CPU utilization average (%)
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof VmUtilizationDetails
|
|
56
|
+
*/
|
|
57
|
+
cpuAvg: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof VmUtilizationDetails
|
|
62
|
+
*/
|
|
63
|
+
cpuP95: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof VmUtilizationDetails
|
|
68
|
+
*/
|
|
69
|
+
cpuMax: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof VmUtilizationDetails
|
|
74
|
+
*/
|
|
75
|
+
cpuLatest: number;
|
|
76
|
+
/**
|
|
77
|
+
* Memory utilization average (%)
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof VmUtilizationDetails
|
|
80
|
+
*/
|
|
81
|
+
memAvg: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof VmUtilizationDetails
|
|
86
|
+
*/
|
|
87
|
+
memP95: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof VmUtilizationDetails
|
|
92
|
+
*/
|
|
93
|
+
memMax: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof VmUtilizationDetails
|
|
98
|
+
*/
|
|
99
|
+
memLatest: number;
|
|
100
|
+
/**
|
|
101
|
+
* Disk utilization (%)
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof VmUtilizationDetails
|
|
104
|
+
*/
|
|
105
|
+
disk: number;
|
|
106
|
+
/**
|
|
107
|
+
* Data confidence — sample_count / expected_sample_count × 100
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof VmUtilizationDetails
|
|
110
|
+
*/
|
|
111
|
+
confidence: number;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the VmUtilizationDetails interface.
|
|
116
|
+
*/
|
|
117
|
+
export function instanceOfVmUtilizationDetails(value: object): value is VmUtilizationDetails {
|
|
118
|
+
if (!('moid' in value) || value['moid'] === undefined) return false;
|
|
119
|
+
if (!('vmName' in value) || value['vmName'] === undefined) return false;
|
|
120
|
+
if (!('provisionedCpus' in value) || value['provisionedCpus'] === undefined) return false;
|
|
121
|
+
if (!('provisionedMemoryMb' in value) || value['provisionedMemoryMb'] === undefined) return false;
|
|
122
|
+
if (!('provisionedDiskKb' in value) || value['provisionedDiskKb'] === undefined) return false;
|
|
123
|
+
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined) return false;
|
|
124
|
+
if (!('cpuP95' in value) || value['cpuP95'] === undefined) return false;
|
|
125
|
+
if (!('cpuMax' in value) || value['cpuMax'] === undefined) return false;
|
|
126
|
+
if (!('cpuLatest' in value) || value['cpuLatest'] === undefined) return false;
|
|
127
|
+
if (!('memAvg' in value) || value['memAvg'] === undefined) return false;
|
|
128
|
+
if (!('memP95' in value) || value['memP95'] === undefined) return false;
|
|
129
|
+
if (!('memMax' in value) || value['memMax'] === undefined) return false;
|
|
130
|
+
if (!('memLatest' in value) || value['memLatest'] === undefined) return false;
|
|
131
|
+
if (!('disk' in value) || value['disk'] === undefined) return false;
|
|
132
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function VmUtilizationDetailsFromJSON(json: any): VmUtilizationDetails {
|
|
137
|
+
return VmUtilizationDetailsFromJSONTyped(json, false);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function VmUtilizationDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmUtilizationDetails {
|
|
141
|
+
if (json == null) {
|
|
142
|
+
return json;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'moid': json['moid'],
|
|
147
|
+
'vmName': json['vm_name'],
|
|
148
|
+
'provisionedCpus': json['provisioned_cpus'],
|
|
149
|
+
'provisionedMemoryMb': json['provisioned_memory_mb'],
|
|
150
|
+
'provisionedDiskKb': json['provisioned_disk_kb'],
|
|
151
|
+
'cpuAvg': json['cpu_avg'],
|
|
152
|
+
'cpuP95': json['cpu_p95'],
|
|
153
|
+
'cpuMax': json['cpu_max'],
|
|
154
|
+
'cpuLatest': json['cpu_latest'],
|
|
155
|
+
'memAvg': json['mem_avg'],
|
|
156
|
+
'memP95': json['mem_p95'],
|
|
157
|
+
'memMax': json['mem_max'],
|
|
158
|
+
'memLatest': json['mem_latest'],
|
|
159
|
+
'disk': json['disk'],
|
|
160
|
+
'confidence': json['confidence'],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function VmUtilizationDetailsToJSON(json: any): VmUtilizationDetails {
|
|
165
|
+
return VmUtilizationDetailsToJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function VmUtilizationDetailsToJSONTyped(value?: VmUtilizationDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
169
|
+
if (value == null) {
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
|
|
175
|
+
'moid': value['moid'],
|
|
176
|
+
'vm_name': value['vmName'],
|
|
177
|
+
'provisioned_cpus': value['provisionedCpus'],
|
|
178
|
+
'provisioned_memory_mb': value['provisionedMemoryMb'],
|
|
179
|
+
'provisioned_disk_kb': value['provisionedDiskKb'],
|
|
180
|
+
'cpu_avg': value['cpuAvg'],
|
|
181
|
+
'cpu_p95': value['cpuP95'],
|
|
182
|
+
'cpu_max': value['cpuMax'],
|
|
183
|
+
'cpu_latest': value['cpuLatest'],
|
|
184
|
+
'mem_avg': value['memAvg'],
|
|
185
|
+
'mem_p95': value['memP95'],
|
|
186
|
+
'mem_max': value['memMax'],
|
|
187
|
+
'mem_latest': value['memLatest'],
|
|
188
|
+
'disk': value['disk'],
|
|
189
|
+
'confidence': value['confidence'],
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -2,12 +2,21 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AgentModeRequest.js';
|
|
4
4
|
export * from './AgentStatus.js';
|
|
5
|
+
export * from './BenchmarkRun.js';
|
|
5
6
|
export * from './CollectorStartRequest.js';
|
|
6
7
|
export * from './CollectorStatus.js';
|
|
7
8
|
export * from './CreateGroupRequest.js';
|
|
8
9
|
export * from './Datastore.js';
|
|
10
|
+
export * from './DatastoreDetail.js';
|
|
11
|
+
export * from './DatastorePair.js';
|
|
9
12
|
export * from './DiskSizeTierSummary.js';
|
|
10
13
|
export * from './DiskTypeSummary.js';
|
|
14
|
+
export * from './EstimateRange.js';
|
|
15
|
+
export * from './ForecastStats.js';
|
|
16
|
+
export * from './ForecasterDatastoresRequest.js';
|
|
17
|
+
export * from './ForecasterPairStatus.js';
|
|
18
|
+
export * from './ForecasterStartRequest.js';
|
|
19
|
+
export * from './ForecasterStatus.js';
|
|
11
20
|
export * from './GetInventory200Response.js';
|
|
12
21
|
export * from './Group.js';
|
|
13
22
|
export * from './GroupListResponse.js';
|
|
@@ -16,13 +25,25 @@ export * from './GuestNetwork.js';
|
|
|
16
25
|
export * from './Histogram.js';
|
|
17
26
|
export * from './Host.js';
|
|
18
27
|
export * from './Infra.js';
|
|
19
|
-
export * from './InspectorStartRequest.js';
|
|
20
28
|
export * from './InspectorStatus.js';
|
|
21
29
|
export * from './Inventory.js';
|
|
22
30
|
export * from './InventoryData.js';
|
|
23
31
|
export * from './MigrationIssue.js';
|
|
24
32
|
export * from './Network.js';
|
|
25
33
|
export * from './OsInfo.js';
|
|
34
|
+
export * from './PairCapability.js';
|
|
35
|
+
export * from './PairCapabilityRequest.js';
|
|
36
|
+
export * from './PutForecasterCredentials403Response.js';
|
|
37
|
+
export * from './RightsizingClusterListResponse.js';
|
|
38
|
+
export * from './RightsizingClusterUtilization.js';
|
|
39
|
+
export * from './RightsizingCollectRequest.js';
|
|
40
|
+
export * from './RightsizingMetricStats.js';
|
|
41
|
+
export * from './RightsizingReport.js';
|
|
42
|
+
export * from './RightsizingReportListResponse.js';
|
|
43
|
+
export * from './RightsizingReportSummary.js';
|
|
44
|
+
export * from './RightsizingVMReport.js';
|
|
45
|
+
export * from './StartInspectionRequest.js';
|
|
46
|
+
export * from './StopForecasterPair202Response.js';
|
|
26
47
|
export * from './UpdateGroupRequest.js';
|
|
27
48
|
export * from './UpdateInventory.js';
|
|
28
49
|
export * from './VCenter.js';
|
|
@@ -38,4 +59,7 @@ export * from './VersionInfo.js';
|
|
|
38
59
|
export * from './VirtualMachine.js';
|
|
39
60
|
export * from './VirtualMachineDetail.js';
|
|
40
61
|
export * from './VirtualMachineListResponse.js';
|
|
62
|
+
export * from './VmInspectionConcern.js';
|
|
63
|
+
export * from './VmInspectionResults.js';
|
|
41
64
|
export * from './VmInspectionStatus.js';
|
|
65
|
+
export * from './VmUtilizationDetails.js';
|
package/src/runtime.ts
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
export const BASE_PATH = "https://raw.githubusercontent.com/api/v1".replace(/\/+$/, "");
|
|
17
16
|
|
|
18
17
|
export interface ConfigurationParameters {
|
|
@@ -91,7 +90,7 @@ export const DefaultConfig = new Configuration();
|
|
|
91
90
|
*/
|
|
92
91
|
export class BaseAPI {
|
|
93
92
|
|
|
94
|
-
private static readonly jsonRegex =
|
|
93
|
+
private static readonly jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
95
94
|
private middleware: Middleware[];
|
|
96
95
|
|
|
97
96
|
constructor(protected configuration = DefaultConfig) {
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Assisted Migration Agent API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface InspectorStartRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface InspectorStartRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {VcenterCredentials}
|
|
22
|
-
* @memberof InspectorStartRequest
|
|
23
|
-
*/
|
|
24
|
-
vcenterCredentials: VcenterCredentials;
|
|
25
|
-
/**
|
|
26
|
-
* Array of VirtualMachine id
|
|
27
|
-
* @type {Array<string>}
|
|
28
|
-
* @memberof InspectorStartRequest
|
|
29
|
-
*/
|
|
30
|
-
vmIds: Array<string>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the InspectorStartRequest interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest;
|
|
36
|
-
export declare function InspectorStartRequestFromJSON(json: any): InspectorStartRequest;
|
|
37
|
-
export declare function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest;
|
|
38
|
-
export declare function InspectorStartRequestToJSON(json: any): InspectorStartRequest;
|
|
39
|
-
export declare function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the InspectorStartRequest interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfInspectorStartRequest(value) {
|
|
19
|
-
if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
export function InspectorStartRequestFromJSON(json) {
|
|
26
|
-
return InspectorStartRequestFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
export function InspectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'vcenterCredentials': VcenterCredentialsFromJSON(json['VcenterCredentials']),
|
|
34
|
-
'vmIds': json['vmIds'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export function InspectorStartRequestToJSON(json) {
|
|
38
|
-
return InspectorStartRequestToJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
export function InspectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'VcenterCredentials': VcenterCredentialsToJSON(value['vcenterCredentials']),
|
|
46
|
-
'vmIds': value['vmIds'],
|
|
47
|
-
};
|
|
48
|
-
}
|