@openshift-migration-advisor/agent-sdk 0.12.0 → 0.16.0
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 +74 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +75 -10
- package/dist/apis/DefaultApi.d.ts +1102 -63
- package/dist/apis/DefaultApi.js +1333 -189
- package/dist/esm/apis/DefaultApi.d.ts +1102 -63
- package/dist/esm/apis/DefaultApi.js +1309 -165
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/CapabilityStatus.d.ts +33 -0
- package/dist/esm/models/CapabilityStatus.js +44 -0
- package/dist/esm/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/esm/models/CapabilityStatusCapabilities.js +52 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +44 -0
- package/dist/esm/models/CredentialStatus.js +51 -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/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/OperationCapability.d.ts +38 -0
- package/dist/esm/models/OperationCapability.js +45 -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 +8 -1
- package/dist/esm/models/StartInspectionRequest.js +3 -0
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +50 -2
- package/dist/esm/models/VirtualMachine.js +18 -2
- package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/esm/models/VirtualMachineDetail.js +7 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
- package/dist/esm/models/VmInspectionStatus.js +4 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/esm/models/VmUtilizationDetails.js +99 -0
- package/dist/esm/models/index.d.ts +37 -0
- package/dist/esm/models/index.js +37 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/CapabilityStatus.d.ts +33 -0
- package/dist/models/CapabilityStatus.js +51 -0
- package/dist/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/models/CapabilityStatusCapabilities.js +59 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +44 -0
- package/dist/models/CredentialStatus.js +58 -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/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/OperationCapability.d.ts +38 -0
- package/dist/models/OperationCapability.js +52 -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 +8 -1
- package/dist/models/StartInspectionRequest.js +3 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VirtualMachine.d.ts +50 -2
- package/dist/models/VirtualMachine.js +18 -2
- package/dist/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/models/VirtualMachineDetail.js +7 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmInspectionStatus.d.ts +6 -0
- package/dist/models/VmInspectionStatus.js +4 -0
- package/dist/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/models/VmUtilizationDetails.js +106 -0
- package/dist/models/index.d.ts +37 -0
- package/dist/models/index.js +37 -0
- package/dist/runtime.js +2 -1
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/BenchmarkRun.md +58 -0
- package/docs/CapabilityStatus.md +34 -0
- package/docs/CapabilityStatusCapabilities.md +38 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +38 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +2170 -304
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/OperationCapability.md +36 -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/StartInspectionRequest.md +3 -1
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VirtualMachine.md +18 -2
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmInspectionStatus.md +2 -0
- package/docs/VmUtilizationDetails.md +62 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +2566 -430
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/CapabilityStatus.ts +74 -0
- package/src/models/CapabilityStatusCapabilities.ts +92 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +84 -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/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/OperationCapability.ts +74 -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 +17 -1
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VirtualMachine.ts +68 -4
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmInspectionStatus.ts +9 -0
- package/src/models/VmUtilizationDetails.ts +192 -0
- package/src/models/index.ts +37 -0
- package/src/runtime.ts +1 -2
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
import { DatastorePairFromJSON, DatastorePairToJSON, } from './DatastorePair.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the ForecasterStartRequest interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfForecasterStartRequest(value) {
|
|
20
|
+
if (!('pairs' in value) || value['pairs'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ForecasterStartRequestFromJSON(json) {
|
|
25
|
+
return ForecasterStartRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ForecasterStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
33
|
+
'pairs': (json['pairs'].map(DatastorePairFromJSON)),
|
|
34
|
+
'diskSizeGb': json['diskSizeGb'] == null ? undefined : json['diskSizeGb'],
|
|
35
|
+
'iterations': json['iterations'] == null ? undefined : json['iterations'],
|
|
36
|
+
'concurrency': json['concurrency'] == null ? undefined : json['concurrency'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ForecasterStartRequestToJSON(json) {
|
|
40
|
+
return ForecasterStartRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ForecasterStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
48
|
+
'pairs': (value['pairs'].map(DatastorePairToJSON)),
|
|
49
|
+
'diskSizeGb': value['diskSizeGb'],
|
|
50
|
+
'iterations': value['iterations'],
|
|
51
|
+
'concurrency': value['concurrency'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { ForecasterPairStatus } from './ForecasterPairStatus.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ForecasterStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface ForecasterStatus {
|
|
19
|
+
/**
|
|
20
|
+
* Service-level state. Only two states exist — ready (idle) or running (benchmark in progress). When a benchmark finishes or is canceled, the service returns to ready.
|
|
21
|
+
* @type {ForecasterStatusStateEnum}
|
|
22
|
+
* @memberof ForecasterStatus
|
|
23
|
+
*/
|
|
24
|
+
state: ForecasterStatusStateEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Per-pair progress (present only when running)
|
|
27
|
+
* @type {Array<ForecasterPairStatus>}
|
|
28
|
+
* @memberof ForecasterStatus
|
|
29
|
+
*/
|
|
30
|
+
pairs?: Array<ForecasterPairStatus>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const ForecasterStatusStateEnum: {
|
|
36
|
+
readonly ForecasterStatusStateReady: "ready";
|
|
37
|
+
readonly ForecasterStatusStateRunning: "running";
|
|
38
|
+
};
|
|
39
|
+
export type ForecasterStatusStateEnum = typeof ForecasterStatusStateEnum[keyof typeof ForecasterStatusStateEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ForecasterStatus interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfForecasterStatus(value: object): value is ForecasterStatus;
|
|
44
|
+
export declare function ForecasterStatusFromJSON(json: any): ForecasterStatus;
|
|
45
|
+
export declare function ForecasterStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecasterStatus;
|
|
46
|
+
export declare function ForecasterStatusToJSON(json: any): ForecasterStatus;
|
|
47
|
+
export declare function ForecasterStatusToJSONTyped(value?: ForecasterStatus | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { ForecasterPairStatusFromJSON, ForecasterPairStatusToJSON, } from './ForecasterPairStatus.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ForecasterStatusStateEnum = {
|
|
19
|
+
ForecasterStatusStateReady: 'ready',
|
|
20
|
+
ForecasterStatusStateRunning: 'running'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ForecasterStatus interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfForecasterStatus(value) {
|
|
26
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function ForecasterStatusFromJSON(json) {
|
|
31
|
+
return ForecasterStatusFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function ForecasterStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'state': json['state'],
|
|
39
|
+
'pairs': json['pairs'] == null ? undefined : (json['pairs'].map(ForecasterPairStatusFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ForecasterStatusToJSON(json) {
|
|
43
|
+
return ForecasterStatusToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ForecasterStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'state': value['state'],
|
|
51
|
+
'pairs': value['pairs'] == null ? undefined : (value['pairs'].map(ForecasterPairStatusToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -39,12 +39,6 @@ export interface Group {
|
|
|
39
39
|
* @memberof Group
|
|
40
40
|
*/
|
|
41
41
|
filter: string;
|
|
42
|
-
/**
|
|
43
|
-
* Tags associated with this group (applied to matching VMs)
|
|
44
|
-
* @type {Array<string>}
|
|
45
|
-
* @memberof Group
|
|
46
|
-
*/
|
|
47
|
-
tags?: Array<string>;
|
|
48
42
|
/**
|
|
49
43
|
* Timestamp when the group was created
|
|
50
44
|
* @type {Date}
|
package/dist/esm/models/Group.js
CHANGED
|
@@ -35,7 +35,6 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'name': json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
37
|
'filter': json['filter'],
|
|
38
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
39
38
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
40
39
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
41
40
|
};
|
|
@@ -52,7 +51,6 @@ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
51
|
'name': value['name'],
|
|
53
52
|
'description': value['description'],
|
|
54
53
|
'filter': value['filter'],
|
|
55
|
-
'tags': value['tags'],
|
|
56
54
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
57
55
|
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
58
56
|
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Group } from './Group.js';
|
|
13
|
+
import type { Inventory } from './Inventory.js';
|
|
13
14
|
import type { VirtualMachine } from './VirtualMachine.js';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -23,6 +24,12 @@ export interface GroupResponse {
|
|
|
23
24
|
* @memberof GroupResponse
|
|
24
25
|
*/
|
|
25
26
|
group: Group;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Inventory}
|
|
30
|
+
* @memberof GroupResponse
|
|
31
|
+
*/
|
|
32
|
+
inventory?: Inventory;
|
|
26
33
|
/**
|
|
27
34
|
*
|
|
28
35
|
* @type {Array<VirtualMachine>}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GroupFromJSON, GroupToJSON, } from './Group.js';
|
|
15
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
16
|
import { VirtualMachineFromJSON, VirtualMachineToJSON, } from './VirtualMachine.js';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the GroupResponse interface.
|
|
@@ -38,6 +39,7 @@ export function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
41
|
'group': GroupFromJSON(json['group']),
|
|
42
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
41
43
|
'vms': (json['vms'].map(VirtualMachineFromJSON)),
|
|
42
44
|
'total': json['total'],
|
|
43
45
|
'page': json['page'],
|
|
@@ -53,6 +55,7 @@ export function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
55
|
}
|
|
54
56
|
return {
|
|
55
57
|
'group': GroupToJSON(value['group']),
|
|
58
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
56
59
|
'vms': (value['vms'].map(VirtualMachineToJSON)),
|
|
57
60
|
'total': value['total'],
|
|
58
61
|
'page': value['page'],
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VddkProperties } from './VddkProperties.js';
|
|
13
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -23,35 +22,19 @@ export interface InspectorStatus {
|
|
|
23
22
|
* @memberof InspectorStatus
|
|
24
23
|
*/
|
|
25
24
|
state: InspectorStatusStateEnum;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {VcenterCredentials}
|
|
29
|
-
* @memberof InspectorStatus
|
|
30
|
-
*/
|
|
31
|
-
credentials?: VcenterCredentials;
|
|
32
25
|
/**
|
|
33
26
|
*
|
|
34
27
|
* @type {VddkProperties}
|
|
35
28
|
* @memberof InspectorStatus
|
|
36
29
|
*/
|
|
37
30
|
vddk?: VddkProperties;
|
|
38
|
-
/**
|
|
39
|
-
* Error message when state is error
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof InspectorStatus
|
|
42
|
-
*/
|
|
43
|
-
error?: string;
|
|
44
31
|
}
|
|
45
32
|
/**
|
|
46
33
|
* @export
|
|
47
34
|
*/
|
|
48
35
|
export declare const InspectorStatusStateEnum: {
|
|
49
36
|
readonly InspectorStatusStateReady: "ready";
|
|
50
|
-
readonly InspectorStatusStateInitiating: "Initiating";
|
|
51
37
|
readonly InspectorStatusStateRunning: "running";
|
|
52
|
-
readonly InspectorStatusStateCanceled: "canceled";
|
|
53
|
-
readonly InspectorStatusStateCompleted: "completed";
|
|
54
|
-
readonly InspectorStatusStateError: "error";
|
|
55
38
|
};
|
|
56
39
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
57
40
|
/**
|
|
@@ -12,17 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { VddkPropertiesFromJSON, VddkPropertiesToJSON, } from './VddkProperties.js';
|
|
15
|
-
import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
|
|
16
15
|
/**
|
|
17
16
|
* @export
|
|
18
17
|
*/
|
|
19
18
|
export const InspectorStatusStateEnum = {
|
|
20
19
|
InspectorStatusStateReady: 'ready',
|
|
21
|
-
|
|
22
|
-
InspectorStatusStateRunning: 'running',
|
|
23
|
-
InspectorStatusStateCanceled: 'canceled',
|
|
24
|
-
InspectorStatusStateCompleted: 'completed',
|
|
25
|
-
InspectorStatusStateError: 'error'
|
|
20
|
+
InspectorStatusStateRunning: 'running'
|
|
26
21
|
};
|
|
27
22
|
/**
|
|
28
23
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -41,9 +36,7 @@ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
36
|
}
|
|
42
37
|
return {
|
|
43
38
|
'state': json['state'],
|
|
44
|
-
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
45
39
|
'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
|
|
46
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
47
40
|
};
|
|
48
41
|
}
|
|
49
42
|
export function InspectorStatusToJSON(json) {
|
|
@@ -55,8 +48,6 @@ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
48
|
}
|
|
56
49
|
return {
|
|
57
50
|
'state': value['state'],
|
|
58
|
-
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
59
51
|
'vddk': VddkPropertiesToJSON(value['vddk']),
|
|
60
|
-
'error': value['error'],
|
|
61
52
|
};
|
|
62
53
|
}
|
|
@@ -21,7 +21,13 @@ export interface Inventory {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Inventory
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
vcenter_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Inventory
|
|
29
|
+
*/
|
|
30
|
+
vcenter_version?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Map of cluster names to their inventory data
|
|
27
33
|
* @type {{ [key: string]: InventoryData; }}
|
|
@@ -17,7 +17,7 @@ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js'
|
|
|
17
17
|
* Check if a given object implements the Inventory interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfInventory(value) {
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
23
23
|
return false;
|
|
@@ -31,7 +31,8 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return json;
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
|
-
'
|
|
34
|
+
'vcenter_id': json['vcenter_id'],
|
|
35
|
+
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
35
36
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
36
37
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
37
38
|
};
|
|
@@ -44,7 +45,8 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
45
|
return value;
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
|
-
'vcenter_id': value['
|
|
48
|
+
'vcenter_id': value['vcenter_id'],
|
|
49
|
+
'vcenter_version': value['vcenter_version'],
|
|
48
50
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
49
51
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
50
52
|
};
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { VCenter } from './VCenter.js';
|
|
13
13
|
import type { Infra } from './Infra.js';
|
|
14
|
+
import type { ClusterUtilization } from './ClusterUtilization.js';
|
|
14
15
|
import type { VMs } from './VMs.js';
|
|
16
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
17
19
|
* @export
|
|
@@ -24,6 +26,18 @@ export interface InventoryData {
|
|
|
24
26
|
* @memberof InventoryData
|
|
25
27
|
*/
|
|
26
28
|
vcenter?: VCenter;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ClusterFeatures}
|
|
32
|
+
* @memberof InventoryData
|
|
33
|
+
*/
|
|
34
|
+
clusterFeatures?: ClusterFeatures;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ClusterUtilization}
|
|
38
|
+
* @memberof InventoryData
|
|
39
|
+
*/
|
|
40
|
+
clusterUtilization?: ClusterUtilization;
|
|
27
41
|
/**
|
|
28
42
|
*
|
|
29
43
|
* @type {VMs}
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
|
|
15
15
|
import { InfraFromJSON, InfraToJSON, } from './Infra.js';
|
|
16
|
+
import { ClusterUtilizationFromJSON, ClusterUtilizationToJSON, } from './ClusterUtilization.js';
|
|
16
17
|
import { VMsFromJSON, VMsToJSON, } from './VMs.js';
|
|
18
|
+
import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
|
|
17
19
|
/**
|
|
18
20
|
* Check if a given object implements the InventoryData interface.
|
|
19
21
|
*/
|
|
@@ -33,6 +35,8 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
37
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
38
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
39
|
+
'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
|
|
36
40
|
'vms': VMsFromJSON(json['vms']),
|
|
37
41
|
'infra': InfraFromJSON(json['infra']),
|
|
38
42
|
};
|
|
@@ -46,6 +50,8 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
50
|
}
|
|
47
51
|
return {
|
|
48
52
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
53
|
+
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
54
|
+
'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
|
|
49
55
|
'vms': VMsToJSON(value['vms']),
|
|
50
56
|
'infra': InfraToJSON(value['infra']),
|
|
51
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 OperationCapability
|
|
16
|
+
*/
|
|
17
|
+
export interface OperationCapability {
|
|
18
|
+
/**
|
|
19
|
+
* Whether stored credentials have sufficient privileges
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof OperationCapability
|
|
22
|
+
*/
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Specific vSphere privileges that are missing
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof OperationCapability
|
|
28
|
+
*/
|
|
29
|
+
missingPrivileges?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the OperationCapability interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfOperationCapability(value: object): value is OperationCapability;
|
|
35
|
+
export declare function OperationCapabilityFromJSON(json: any): OperationCapability;
|
|
36
|
+
export declare function OperationCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationCapability;
|
|
37
|
+
export declare function OperationCapabilityToJSON(json: any): OperationCapability;
|
|
38
|
+
export declare function OperationCapabilityToJSONTyped(value?: OperationCapability | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 OperationCapability interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOperationCapability(value) {
|
|
18
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function OperationCapabilityFromJSON(json) {
|
|
23
|
+
return OperationCapabilityFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function OperationCapabilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'enabled': json['enabled'],
|
|
31
|
+
'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function OperationCapabilityToJSON(json) {
|
|
35
|
+
return OperationCapabilityToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function OperationCapabilityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'enabled': value['enabled'],
|
|
43
|
+
'missingPrivileges': value['missingPrivileges'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 PairCapability
|
|
16
|
+
*/
|
|
17
|
+
export interface PairCapability {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PairCapability
|
|
22
|
+
*/
|
|
23
|
+
pairName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PairCapability
|
|
28
|
+
*/
|
|
29
|
+
sourceDatastore: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PairCapability
|
|
34
|
+
*/
|
|
35
|
+
targetDatastore: string;
|
|
36
|
+
/**
|
|
37
|
+
* Feasible offload methods for this source-target pair
|
|
38
|
+
* @type {Array<PairCapabilityCapabilitiesEnum>}
|
|
39
|
+
* @memberof PairCapability
|
|
40
|
+
*/
|
|
41
|
+
capabilities: Array<PairCapabilityCapabilitiesEnum>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const PairCapabilityCapabilitiesEnum: {
|
|
47
|
+
readonly CopyOffload: "copy-offload";
|
|
48
|
+
readonly Xcopy: "xcopy";
|
|
49
|
+
readonly Rdm: "rdm";
|
|
50
|
+
readonly Vvol: "vvol";
|
|
51
|
+
};
|
|
52
|
+
export type PairCapabilityCapabilitiesEnum = typeof PairCapabilityCapabilitiesEnum[keyof typeof PairCapabilityCapabilitiesEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the PairCapability interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfPairCapability(value: object): value is PairCapability;
|
|
57
|
+
export declare function PairCapabilityFromJSON(json: any): PairCapability;
|
|
58
|
+
export declare function PairCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapability;
|
|
59
|
+
export declare function PairCapabilityToJSON(json: any): PairCapability;
|
|
60
|
+
export declare function PairCapabilityToJSONTyped(value?: PairCapability | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PairCapabilityCapabilitiesEnum = {
|
|
18
|
+
CopyOffload: 'copy-offload',
|
|
19
|
+
Xcopy: 'xcopy',
|
|
20
|
+
Rdm: 'rdm',
|
|
21
|
+
Vvol: 'vvol'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PairCapability interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfPairCapability(value) {
|
|
27
|
+
if (!('pairName' in value) || value['pairName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('sourceDatastore' in value) || value['sourceDatastore'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('targetDatastore' in value) || value['targetDatastore'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('capabilities' in value) || value['capabilities'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function PairCapabilityFromJSON(json) {
|
|
38
|
+
return PairCapabilityFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PairCapabilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'pairName': json['pairName'],
|
|
46
|
+
'sourceDatastore': json['sourceDatastore'],
|
|
47
|
+
'targetDatastore': json['targetDatastore'],
|
|
48
|
+
'capabilities': json['capabilities'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function PairCapabilityToJSON(json) {
|
|
52
|
+
return PairCapabilityToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function PairCapabilityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'pairName': value['pairName'],
|
|
60
|
+
'sourceDatastore': value['sourceDatastore'],
|
|
61
|
+
'targetDatastore': value['targetDatastore'],
|
|
62
|
+
'capabilities': value['capabilities'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import type { DatastorePair } from './DatastorePair.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PairCapabilityRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface PairCapabilityRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {VcenterCredentials}
|
|
23
|
+
* @memberof PairCapabilityRequest
|
|
24
|
+
*/
|
|
25
|
+
credentials?: VcenterCredentials;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<DatastorePair>}
|
|
29
|
+
* @memberof PairCapabilityRequest
|
|
30
|
+
*/
|
|
31
|
+
pairs: Array<DatastorePair>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PairCapabilityRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPairCapabilityRequest(value: object): value is PairCapabilityRequest;
|
|
37
|
+
export declare function PairCapabilityRequestFromJSON(json: any): PairCapabilityRequest;
|
|
38
|
+
export declare function PairCapabilityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapabilityRequest;
|
|
39
|
+
export declare function PairCapabilityRequestToJSON(json: any): PairCapabilityRequest;
|
|
40
|
+
export declare function PairCapabilityRequestToJSONTyped(value?: PairCapabilityRequest | null, ignoreDiscriminator?: boolean): any;
|