@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
|
@@ -0,0 +1,56 @@
|
|
|
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 RightsizingCollectRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingCollectRequest(value) {
|
|
19
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function RightsizingCollectRequestFromJSON(json) {
|
|
24
|
+
return RightsizingCollectRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function RightsizingCollectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'credentials': VcenterCredentialsFromJSON(json['credentials']),
|
|
32
|
+
'lookbackHours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
|
|
33
|
+
'intervalId': json['interval_id'] == null ? undefined : json['interval_id'],
|
|
34
|
+
'nameFilter': json['name_filter'] == null ? undefined : json['name_filter'],
|
|
35
|
+
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
36
|
+
'batchSize': json['batch_size'] == null ? undefined : json['batch_size'],
|
|
37
|
+
'discoverVms': json['discover_vms'] == null ? undefined : json['discover_vms'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function RightsizingCollectRequestToJSON(json) {
|
|
41
|
+
return RightsizingCollectRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function RightsizingCollectRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
49
|
+
'lookback_hours': value['lookbackHours'],
|
|
50
|
+
'interval_id': value['intervalId'],
|
|
51
|
+
'name_filter': value['nameFilter'],
|
|
52
|
+
'cluster_id': value['clusterId'],
|
|
53
|
+
'batch_size': value['batchSize'],
|
|
54
|
+
'discover_vms': value['discoverVms'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RightsizingMetricStats
|
|
16
|
+
*/
|
|
17
|
+
export interface RightsizingMetricStats {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RightsizingMetricStats
|
|
22
|
+
*/
|
|
23
|
+
sampleCount: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RightsizingMetricStats
|
|
28
|
+
*/
|
|
29
|
+
average: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RightsizingMetricStats
|
|
34
|
+
*/
|
|
35
|
+
p95: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RightsizingMetricStats
|
|
40
|
+
*/
|
|
41
|
+
p99: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof RightsizingMetricStats
|
|
46
|
+
*/
|
|
47
|
+
max: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RightsizingMetricStats
|
|
52
|
+
*/
|
|
53
|
+
latest: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the RightsizingMetricStats interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfRightsizingMetricStats(value: object): value is RightsizingMetricStats;
|
|
59
|
+
export declare function RightsizingMetricStatsFromJSON(json: any): RightsizingMetricStats;
|
|
60
|
+
export declare function RightsizingMetricStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingMetricStats;
|
|
61
|
+
export declare function RightsizingMetricStatsToJSON(json: any): RightsizingMetricStats;
|
|
62
|
+
export declare function RightsizingMetricStatsToJSONTyped(value?: RightsizingMetricStats | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* Check if a given object implements the RightsizingMetricStats interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRightsizingMetricStats(value) {
|
|
18
|
+
if (!('sampleCount' in value) || value['sampleCount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('average' in value) || value['average'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('p95' in value) || value['p95'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('p99' in value) || value['p99'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('max' in value) || value['max'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('latest' in value) || value['latest'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function RightsizingMetricStatsFromJSON(json) {
|
|
33
|
+
return RightsizingMetricStatsFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function RightsizingMetricStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'sampleCount': json['sample_count'],
|
|
41
|
+
'average': json['average'],
|
|
42
|
+
'p95': json['p95'],
|
|
43
|
+
'p99': json['p99'],
|
|
44
|
+
'max': json['max'],
|
|
45
|
+
'latest': json['latest'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function RightsizingMetricStatsToJSON(json) {
|
|
49
|
+
return RightsizingMetricStatsToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function RightsizingMetricStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'sample_count': value['sampleCount'],
|
|
57
|
+
'average': value['average'],
|
|
58
|
+
'p95': value['p95'],
|
|
59
|
+
'p99': value['p99'],
|
|
60
|
+
'max': value['max'],
|
|
61
|
+
'latest': value['latest'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { RightsizingVMReport } from './RightsizingVMReport.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingReport
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingReport {
|
|
19
|
+
/**
|
|
20
|
+
* UUID of the report
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingReport
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* vCenter URL used for this collection
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RightsizingReport
|
|
29
|
+
*/
|
|
30
|
+
vcenter: string;
|
|
31
|
+
/**
|
|
32
|
+
* MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof RightsizingReport
|
|
35
|
+
*/
|
|
36
|
+
clusterId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof RightsizingReport
|
|
41
|
+
*/
|
|
42
|
+
windowStart: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof RightsizingReport
|
|
47
|
+
*/
|
|
48
|
+
windowEnd: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof RightsizingReport
|
|
53
|
+
*/
|
|
54
|
+
intervalId: number;
|
|
55
|
+
/**
|
|
56
|
+
* Theoretical maximum samples for the window (lookback / interval)
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof RightsizingReport
|
|
59
|
+
*/
|
|
60
|
+
expectedSampleCount: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<RightsizingVMReport>}
|
|
64
|
+
* @memberof RightsizingReport
|
|
65
|
+
*/
|
|
66
|
+
vms: Array<RightsizingVMReport>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof RightsizingReport
|
|
71
|
+
*/
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the RightsizingReport interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfRightsizingReport(value: object): value is RightsizingReport;
|
|
78
|
+
export declare function RightsizingReportFromJSON(json: any): RightsizingReport;
|
|
79
|
+
export declare function RightsizingReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReport;
|
|
80
|
+
export declare function RightsizingReportToJSON(json: any): RightsizingReport;
|
|
81
|
+
export declare function RightsizingReportToJSONTyped(value?: RightsizingReport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { RightsizingVMReportFromJSON, RightsizingVMReportToJSON, } from './RightsizingVMReport.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RightsizingReport interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingReport(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('vcenter' in value) || value['vcenter'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('windowStart' in value) || value['windowStart'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('windowEnd' in value) || value['windowEnd'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('intervalId' in value) || value['intervalId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('vms' in value) || value['vms'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function RightsizingReportFromJSON(json) {
|
|
40
|
+
return RightsizingReportFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function RightsizingReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'vcenter': json['vcenter'],
|
|
49
|
+
'clusterId': json['cluster_id'],
|
|
50
|
+
'windowStart': (new Date(json['window_start'])),
|
|
51
|
+
'windowEnd': (new Date(json['window_end'])),
|
|
52
|
+
'intervalId': json['interval_id'],
|
|
53
|
+
'expectedSampleCount': json['expected_sample_count'],
|
|
54
|
+
'vms': (json['vms'].map(RightsizingVMReportFromJSON)),
|
|
55
|
+
'createdAt': (new Date(json['created_at'])),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function RightsizingReportToJSON(json) {
|
|
59
|
+
return RightsizingReportToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function RightsizingReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'vcenter': value['vcenter'],
|
|
68
|
+
'cluster_id': value['clusterId'],
|
|
69
|
+
'window_start': value['windowStart'].toISOString(),
|
|
70
|
+
'window_end': value['windowEnd'].toISOString(),
|
|
71
|
+
'interval_id': value['intervalId'],
|
|
72
|
+
'expected_sample_count': value['expectedSampleCount'],
|
|
73
|
+
'vms': (value['vms'].map(RightsizingVMReportToJSON)),
|
|
74
|
+
'created_at': value['createdAt'].toISOString(),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { RightsizingReportSummary } from './RightsizingReportSummary.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingReportListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingReportListResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of report summaries. Use GET /rightsizing/{id} for full VM metrics.
|
|
21
|
+
* @type {Array<RightsizingReportSummary>}
|
|
22
|
+
* @memberof RightsizingReportListResponse
|
|
23
|
+
*/
|
|
24
|
+
reports: Array<RightsizingReportSummary>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of stored reports
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof RightsizingReportListResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RightsizingReportListResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRightsizingReportListResponse(value: object): value is RightsizingReportListResponse;
|
|
36
|
+
export declare function RightsizingReportListResponseFromJSON(json: any): RightsizingReportListResponse;
|
|
37
|
+
export declare function RightsizingReportListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportListResponse;
|
|
38
|
+
export declare function RightsizingReportListResponseToJSON(json: any): RightsizingReportListResponse;
|
|
39
|
+
export declare function RightsizingReportListResponseToJSONTyped(value?: RightsizingReportListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { RightsizingReportSummaryFromJSON, RightsizingReportSummaryToJSON, } from './RightsizingReportSummary.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RightsizingReportListResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingReportListResponse(value) {
|
|
19
|
+
if (!('reports' in value) || value['reports'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function RightsizingReportListResponseFromJSON(json) {
|
|
26
|
+
return RightsizingReportListResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function RightsizingReportListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'reports': (json['reports'].map(RightsizingReportSummaryFromJSON)),
|
|
34
|
+
'total': json['total'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function RightsizingReportListResponseToJSON(json) {
|
|
38
|
+
return RightsizingReportListResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function RightsizingReportListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'reports': (value['reports'].map(RightsizingReportSummaryToJSON)),
|
|
46
|
+
'total': value['total'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Rightsizing report metadata without VM metrics. Use GET /rightsizing/{id} to retrieve the full report including metrics.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RightsizingReportSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface RightsizingReportSummary {
|
|
18
|
+
/**
|
|
19
|
+
* UUID of the report
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RightsizingReportSummary
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* vCenter URL used for this collection
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RightsizingReportSummary
|
|
28
|
+
*/
|
|
29
|
+
vcenter: string;
|
|
30
|
+
/**
|
|
31
|
+
* MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RightsizingReportSummary
|
|
34
|
+
*/
|
|
35
|
+
clusterId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof RightsizingReportSummary
|
|
40
|
+
*/
|
|
41
|
+
windowStart: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof RightsizingReportSummary
|
|
46
|
+
*/
|
|
47
|
+
windowEnd: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RightsizingReportSummary
|
|
52
|
+
*/
|
|
53
|
+
intervalId: number;
|
|
54
|
+
/**
|
|
55
|
+
* Theoretical maximum samples for the window (lookback / interval)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof RightsizingReportSummary
|
|
58
|
+
*/
|
|
59
|
+
expectedSampleCount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof RightsizingReportSummary
|
|
64
|
+
*/
|
|
65
|
+
createdAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the RightsizingReportSummary interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfRightsizingReportSummary(value: object): value is RightsizingReportSummary;
|
|
71
|
+
export declare function RightsizingReportSummaryFromJSON(json: any): RightsizingReportSummary;
|
|
72
|
+
export declare function RightsizingReportSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportSummary;
|
|
73
|
+
export declare function RightsizingReportSummaryToJSON(json: any): RightsizingReportSummary;
|
|
74
|
+
export declare function RightsizingReportSummaryToJSONTyped(value?: RightsizingReportSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
* Check if a given object implements the RightsizingReportSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRightsizingReportSummary(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('vcenter' in value) || value['vcenter'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('windowStart' in value) || value['windowStart'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('windowEnd' in value) || value['windowEnd'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('intervalId' in value) || value['intervalId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function RightsizingReportSummaryFromJSON(json) {
|
|
37
|
+
return RightsizingReportSummaryFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function RightsizingReportSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'vcenter': json['vcenter'],
|
|
46
|
+
'clusterId': json['cluster_id'],
|
|
47
|
+
'windowStart': (new Date(json['window_start'])),
|
|
48
|
+
'windowEnd': (new Date(json['window_end'])),
|
|
49
|
+
'intervalId': json['interval_id'],
|
|
50
|
+
'expectedSampleCount': json['expected_sample_count'],
|
|
51
|
+
'createdAt': (new Date(json['created_at'])),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function RightsizingReportSummaryToJSON(json) {
|
|
55
|
+
return RightsizingReportSummaryToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function RightsizingReportSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'vcenter': value['vcenter'],
|
|
64
|
+
'cluster_id': value['clusterId'],
|
|
65
|
+
'window_start': value['windowStart'].toISOString(),
|
|
66
|
+
'window_end': value['windowEnd'].toISOString(),
|
|
67
|
+
'interval_id': value['intervalId'],
|
|
68
|
+
'expected_sample_count': value['expectedSampleCount'],
|
|
69
|
+
'created_at': value['createdAt'].toISOString(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { RightsizingMetricStats } from './RightsizingMetricStats.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingVMReport
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingVMReport {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingVMReport
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RightsizingVMReport
|
|
29
|
+
*/
|
|
30
|
+
moid: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {{ [key: string]: RightsizingMetricStats; }}
|
|
34
|
+
* @memberof RightsizingVMReport
|
|
35
|
+
*/
|
|
36
|
+
metrics: {
|
|
37
|
+
[key: string]: RightsizingMetricStats;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Non-empty when the VM was queried but had no historical metrics data.
|
|
41
|
+
* @type {Array<string>}
|
|
42
|
+
* @memberof RightsizingVMReport
|
|
43
|
+
*/
|
|
44
|
+
warnings: Array<string>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the RightsizingVMReport interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfRightsizingVMReport(value: object): value is RightsizingVMReport;
|
|
50
|
+
export declare function RightsizingVMReportFromJSON(json: any): RightsizingVMReport;
|
|
51
|
+
export declare function RightsizingVMReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingVMReport;
|
|
52
|
+
export declare function RightsizingVMReportToJSON(json: any): RightsizingVMReport;
|
|
53
|
+
export declare function RightsizingVMReportToJSONTyped(value?: RightsizingVMReport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { mapValues } from '../runtime.js';
|
|
15
|
+
import { RightsizingMetricStatsFromJSON, RightsizingMetricStatsToJSON, } from './RightsizingMetricStats.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the RightsizingVMReport interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfRightsizingVMReport(value) {
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('moid' in value) || value['moid'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('warnings' in value) || value['warnings'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function RightsizingVMReportFromJSON(json) {
|
|
31
|
+
return RightsizingVMReportFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function RightsizingVMReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'moid': json['moid'],
|
|
40
|
+
'metrics': (mapValues(json['metrics'], RightsizingMetricStatsFromJSON)),
|
|
41
|
+
'warnings': json['warnings'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function RightsizingVMReportToJSON(json) {
|
|
45
|
+
return RightsizingVMReportToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function RightsizingVMReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'moid': value['moid'],
|
|
54
|
+
'metrics': (mapValues(value['metrics'], RightsizingMetricStatsToJSON)),
|
|
55
|
+
'warnings': value['warnings'],
|
|
56
|
+
};
|
|
57
|
+
}
|