@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,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRightsizingReportListResponse = instanceOfRightsizingReportListResponse;
|
|
17
|
+
exports.RightsizingReportListResponseFromJSON = RightsizingReportListResponseFromJSON;
|
|
18
|
+
exports.RightsizingReportListResponseFromJSONTyped = RightsizingReportListResponseFromJSONTyped;
|
|
19
|
+
exports.RightsizingReportListResponseToJSON = RightsizingReportListResponseToJSON;
|
|
20
|
+
exports.RightsizingReportListResponseToJSONTyped = RightsizingReportListResponseToJSONTyped;
|
|
21
|
+
const RightsizingReportSummary_js_1 = require("./RightsizingReportSummary.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RightsizingReportListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRightsizingReportListResponse(value) {
|
|
26
|
+
if (!('reports' in value) || value['reports'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function RightsizingReportListResponseFromJSON(json) {
|
|
33
|
+
return RightsizingReportListResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function RightsizingReportListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'reports': (json['reports'].map(RightsizingReportSummary_js_1.RightsizingReportSummaryFromJSON)),
|
|
41
|
+
'total': json['total'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function RightsizingReportListResponseToJSON(json) {
|
|
45
|
+
return RightsizingReportListResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function RightsizingReportListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'reports': (value['reports'].map(RightsizingReportSummary_js_1.RightsizingReportSummaryToJSON)),
|
|
53
|
+
'total': value['total'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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
|
+
cluster_id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof RightsizingReportSummary
|
|
40
|
+
*/
|
|
41
|
+
window_start: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof RightsizingReportSummary
|
|
46
|
+
*/
|
|
47
|
+
window_end: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RightsizingReportSummary
|
|
52
|
+
*/
|
|
53
|
+
interval_id: number;
|
|
54
|
+
/**
|
|
55
|
+
* Theoretical maximum samples for the window (lookback / interval)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof RightsizingReportSummary
|
|
58
|
+
*/
|
|
59
|
+
expected_sample_count: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof RightsizingReportSummary
|
|
64
|
+
*/
|
|
65
|
+
created_at: 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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRightsizingReportSummary = instanceOfRightsizingReportSummary;
|
|
17
|
+
exports.RightsizingReportSummaryFromJSON = RightsizingReportSummaryFromJSON;
|
|
18
|
+
exports.RightsizingReportSummaryFromJSONTyped = RightsizingReportSummaryFromJSONTyped;
|
|
19
|
+
exports.RightsizingReportSummaryToJSON = RightsizingReportSummaryToJSON;
|
|
20
|
+
exports.RightsizingReportSummaryToJSONTyped = RightsizingReportSummaryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RightsizingReportSummary interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRightsizingReportSummary(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('vcenter' in value) || value['vcenter'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('window_start' in value) || value['window_start'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('window_end' in value) || value['window_end'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('interval_id' in value) || value['interval_id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('expected_sample_count' in value) || value['expected_sample_count'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function RightsizingReportSummaryFromJSON(json) {
|
|
44
|
+
return RightsizingReportSummaryFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function RightsizingReportSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'vcenter': json['vcenter'],
|
|
53
|
+
'cluster_id': json['cluster_id'],
|
|
54
|
+
'window_start': (new Date(json['window_start'])),
|
|
55
|
+
'window_end': (new Date(json['window_end'])),
|
|
56
|
+
'interval_id': json['interval_id'],
|
|
57
|
+
'expected_sample_count': json['expected_sample_count'],
|
|
58
|
+
'created_at': (new Date(json['created_at'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function RightsizingReportSummaryToJSON(json) {
|
|
62
|
+
return RightsizingReportSummaryToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function RightsizingReportSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'vcenter': value['vcenter'],
|
|
71
|
+
'cluster_id': value['cluster_id'],
|
|
72
|
+
'window_start': value['window_start'].toISOString(),
|
|
73
|
+
'window_end': value['window_end'].toISOString(),
|
|
74
|
+
'interval_id': value['interval_id'],
|
|
75
|
+
'expected_sample_count': value['expected_sample_count'],
|
|
76
|
+
'created_at': value['created_at'].toISOString(),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -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,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRightsizingVMReport = instanceOfRightsizingVMReport;
|
|
17
|
+
exports.RightsizingVMReportFromJSON = RightsizingVMReportFromJSON;
|
|
18
|
+
exports.RightsizingVMReportFromJSONTyped = RightsizingVMReportFromJSONTyped;
|
|
19
|
+
exports.RightsizingVMReportToJSON = RightsizingVMReportToJSON;
|
|
20
|
+
exports.RightsizingVMReportToJSONTyped = RightsizingVMReportToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
|
+
const RightsizingMetricStats_js_1 = require("./RightsizingMetricStats.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the RightsizingVMReport interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfRightsizingVMReport(value) {
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('moid' in value) || value['moid'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('warnings' in value) || value['warnings'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function RightsizingVMReportFromJSON(json) {
|
|
38
|
+
return RightsizingVMReportFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function RightsizingVMReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'moid': json['moid'],
|
|
47
|
+
'metrics': ((0, runtime_js_1.mapValues)(json['metrics'], RightsizingMetricStats_js_1.RightsizingMetricStatsFromJSON)),
|
|
48
|
+
'warnings': json['warnings'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function RightsizingVMReportToJSON(json) {
|
|
52
|
+
return RightsizingVMReportToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function RightsizingVMReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'moid': value['moid'],
|
|
61
|
+
'metrics': ((0, runtime_js_1.mapValues)(value['metrics'], RightsizingMetricStats_js_1.RightsizingMetricStatsToJSON)),
|
|
62
|
+
'warnings': value['warnings'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 { VcenterCredentials } from './VcenterCredentials.js';
|
|
13
|
+
/**
|
|
14
|
+
* Start inspection request
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StartInspectionRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface StartInspectionRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof StartInspectionRequest
|
|
23
|
+
*/
|
|
24
|
+
vmIds: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {VcenterCredentials}
|
|
28
|
+
* @memberof StartInspectionRequest
|
|
29
|
+
*/
|
|
30
|
+
credentials: VcenterCredentials;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the StartInspectionRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest;
|
|
36
|
+
export declare function StartInspectionRequestFromJSON(json: any): StartInspectionRequest;
|
|
37
|
+
export declare function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest;
|
|
38
|
+
export declare function StartInspectionRequestToJSON(json: any): StartInspectionRequest;
|
|
39
|
+
export declare function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfStartInspectionRequest = instanceOfStartInspectionRequest;
|
|
17
|
+
exports.StartInspectionRequestFromJSON = StartInspectionRequestFromJSON;
|
|
18
|
+
exports.StartInspectionRequestFromJSONTyped = StartInspectionRequestFromJSONTyped;
|
|
19
|
+
exports.StartInspectionRequestToJSON = StartInspectionRequestToJSON;
|
|
20
|
+
exports.StartInspectionRequestToJSONTyped = StartInspectionRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StartInspectionRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStartInspectionRequest(value) {
|
|
26
|
+
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function StartInspectionRequestFromJSON(json) {
|
|
33
|
+
return StartInspectionRequestFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'vmIds': json['vmIds'],
|
|
41
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function StartInspectionRequestToJSON(json) {
|
|
45
|
+
return StartInspectionRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'vmIds': value['vmIds'],
|
|
53
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 StopForecasterPair202Response
|
|
16
|
+
*/
|
|
17
|
+
export interface StopForecasterPair202Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StopForecasterPair202Response
|
|
22
|
+
*/
|
|
23
|
+
pairName?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {StopForecasterPair202ResponseStateEnum}
|
|
27
|
+
* @memberof StopForecasterPair202Response
|
|
28
|
+
*/
|
|
29
|
+
state?: StopForecasterPair202ResponseStateEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const StopForecasterPair202ResponseStateEnum: {
|
|
35
|
+
readonly Canceled: "canceled";
|
|
36
|
+
};
|
|
37
|
+
export type StopForecasterPair202ResponseStateEnum = typeof StopForecasterPair202ResponseStateEnum[keyof typeof StopForecasterPair202ResponseStateEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StopForecasterPair202Response interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfStopForecasterPair202Response(value: object): value is StopForecasterPair202Response;
|
|
42
|
+
export declare function StopForecasterPair202ResponseFromJSON(json: any): StopForecasterPair202Response;
|
|
43
|
+
export declare function StopForecasterPair202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopForecasterPair202Response;
|
|
44
|
+
export declare function StopForecasterPair202ResponseToJSON(json: any): StopForecasterPair202Response;
|
|
45
|
+
export declare function StopForecasterPair202ResponseToJSONTyped(value?: StopForecasterPair202Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.StopForecasterPair202ResponseStateEnum = void 0;
|
|
17
|
+
exports.instanceOfStopForecasterPair202Response = instanceOfStopForecasterPair202Response;
|
|
18
|
+
exports.StopForecasterPair202ResponseFromJSON = StopForecasterPair202ResponseFromJSON;
|
|
19
|
+
exports.StopForecasterPair202ResponseFromJSONTyped = StopForecasterPair202ResponseFromJSONTyped;
|
|
20
|
+
exports.StopForecasterPair202ResponseToJSON = StopForecasterPair202ResponseToJSON;
|
|
21
|
+
exports.StopForecasterPair202ResponseToJSONTyped = StopForecasterPair202ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.StopForecasterPair202ResponseStateEnum = {
|
|
26
|
+
Canceled: 'canceled'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the StopForecasterPair202Response interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfStopForecasterPair202Response(value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function StopForecasterPair202ResponseFromJSON(json) {
|
|
35
|
+
return StopForecasterPair202ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function StopForecasterPair202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'pairName': json['pairName'] == null ? undefined : json['pairName'],
|
|
43
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function StopForecasterPair202ResponseToJSON(json) {
|
|
47
|
+
return StopForecasterPair202ResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function StopForecasterPair202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'pairName': value['pairName'],
|
|
55
|
+
'state': value['state'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 UpdateLabelVMsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateLabelVMsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* VMs to add the label to
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof UpdateLabelVMsRequest
|
|
22
|
+
*/
|
|
23
|
+
add?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* VMs to remove the label from
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof UpdateLabelVMsRequest
|
|
28
|
+
*/
|
|
29
|
+
remove?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateLabelVMsRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateLabelVMsRequest(value: object): value is UpdateLabelVMsRequest;
|
|
35
|
+
export declare function UpdateLabelVMsRequestFromJSON(json: any): UpdateLabelVMsRequest;
|
|
36
|
+
export declare function UpdateLabelVMsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLabelVMsRequest;
|
|
37
|
+
export declare function UpdateLabelVMsRequestToJSON(json: any): UpdateLabelVMsRequest;
|
|
38
|
+
export declare function UpdateLabelVMsRequestToJSONTyped(value?: UpdateLabelVMsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateLabelVMsRequest = instanceOfUpdateLabelVMsRequest;
|
|
17
|
+
exports.UpdateLabelVMsRequestFromJSON = UpdateLabelVMsRequestFromJSON;
|
|
18
|
+
exports.UpdateLabelVMsRequestFromJSONTyped = UpdateLabelVMsRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateLabelVMsRequestToJSON = UpdateLabelVMsRequestToJSON;
|
|
20
|
+
exports.UpdateLabelVMsRequestToJSONTyped = UpdateLabelVMsRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateLabelVMsRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateLabelVMsRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateLabelVMsRequestFromJSON(json) {
|
|
28
|
+
return UpdateLabelVMsRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateLabelVMsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'add': json['add'] == null ? undefined : json['add'],
|
|
36
|
+
'remove': json['remove'] == null ? undefined : json['remove'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function UpdateLabelVMsRequestToJSON(json) {
|
|
40
|
+
return UpdateLabelVMsRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function UpdateLabelVMsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'add': value['add'],
|
|
48
|
+
'remove': value['remove'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 VMLabelsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface VMLabelsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Distinct labels currently in use
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof VMLabelsResponse
|
|
22
|
+
*/
|
|
23
|
+
labels: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Number of VMs with each label (same order as labels array)
|
|
26
|
+
* @type {Array<number>}
|
|
27
|
+
* @memberof VMLabelsResponse
|
|
28
|
+
*/
|
|
29
|
+
counts: Array<number>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the VMLabelsResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfVMLabelsResponse(value: object): value is VMLabelsResponse;
|
|
35
|
+
export declare function VMLabelsResponseFromJSON(json: any): VMLabelsResponse;
|
|
36
|
+
export declare function VMLabelsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMLabelsResponse;
|
|
37
|
+
export declare function VMLabelsResponseToJSON(json: any): VMLabelsResponse;
|
|
38
|
+
export declare function VMLabelsResponseToJSONTyped(value?: VMLabelsResponse | null, ignoreDiscriminator?: boolean): any;
|