@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 0.12.0-e4c04f972747
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 +52 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -5
- package/dist/apis/DefaultApi.d.ts +798 -20
- package/dist/apis/DefaultApi.js +878 -24
- package/dist/esm/apis/DefaultApi.d.ts +798 -20
- package/dist/esm/apis/DefaultApi.js +878 -24
- 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/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/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- 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/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 +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -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/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- 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/VmUtilizationDetails.d.ts +27 -9
- package/dist/esm/models/VmUtilizationDetails.js +39 -27
- package/dist/esm/models/index.d.ts +26 -0
- package/dist/esm/models/index.js +26 -0
- 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/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/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- 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/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 +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -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/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- 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/VmUtilizationDetails.d.ts +27 -9
- package/dist/models/VmUtilizationDetails.js +39 -27
- package/dist/models/index.d.ts +26 -0
- package/dist/models/index.js +26 -0
- 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/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1725 -308
- 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/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 +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- 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/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -18
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1700 -93
- 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/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- 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/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 +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/StartInspectionRequest.ts +18 -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/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +63 -36
- package/src/models/index.ts +26 -0
|
@@ -0,0 +1,102 @@
|
|
|
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.instanceOfRightsizingClusterUtilization = instanceOfRightsizingClusterUtilization;
|
|
17
|
+
exports.RightsizingClusterUtilizationFromJSON = RightsizingClusterUtilizationFromJSON;
|
|
18
|
+
exports.RightsizingClusterUtilizationFromJSONTyped = RightsizingClusterUtilizationFromJSONTyped;
|
|
19
|
+
exports.RightsizingClusterUtilizationToJSON = RightsizingClusterUtilizationToJSON;
|
|
20
|
+
exports.RightsizingClusterUtilizationToJSONTyped = RightsizingClusterUtilizationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRightsizingClusterUtilization(value) {
|
|
25
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('cluster_name' in value) || value['cluster_name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('vm_count' in value) || value['vm_count'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('disk' in value) || value['disk'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('total_provisioned_cpus' in value) || value['total_provisioned_cpus'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('total_provisioned_memory_mb' in value) || value['total_provisioned_memory_mb'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('total_provisioned_disk_kb' in value) || value['total_provisioned_disk_kb'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function RightsizingClusterUtilizationFromJSON(json) {
|
|
56
|
+
return RightsizingClusterUtilizationFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'cluster_id': json['cluster_id'],
|
|
64
|
+
'cluster_name': json['cluster_name'],
|
|
65
|
+
'vm_count': json['vm_count'],
|
|
66
|
+
'cpu_avg': json['cpu_avg'],
|
|
67
|
+
'cpu_p95': json['cpu_p95'],
|
|
68
|
+
'cpu_max': json['cpu_max'],
|
|
69
|
+
'mem_avg': json['mem_avg'],
|
|
70
|
+
'mem_p95': json['mem_p95'],
|
|
71
|
+
'mem_max': json['mem_max'],
|
|
72
|
+
'disk': json['disk'],
|
|
73
|
+
'confidence': json['confidence'],
|
|
74
|
+
'total_provisioned_cpus': json['total_provisioned_cpus'],
|
|
75
|
+
'total_provisioned_memory_mb': json['total_provisioned_memory_mb'],
|
|
76
|
+
'total_provisioned_disk_kb': json['total_provisioned_disk_kb'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function RightsizingClusterUtilizationToJSON(json) {
|
|
80
|
+
return RightsizingClusterUtilizationToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'cluster_id': value['cluster_id'],
|
|
88
|
+
'cluster_name': value['cluster_name'],
|
|
89
|
+
'vm_count': value['vm_count'],
|
|
90
|
+
'cpu_avg': value['cpu_avg'],
|
|
91
|
+
'cpu_p95': value['cpu_p95'],
|
|
92
|
+
'cpu_max': value['cpu_max'],
|
|
93
|
+
'mem_avg': value['mem_avg'],
|
|
94
|
+
'mem_p95': value['mem_p95'],
|
|
95
|
+
'mem_max': value['mem_max'],
|
|
96
|
+
'disk': value['disk'],
|
|
97
|
+
'confidence': value['confidence'],
|
|
98
|
+
'total_provisioned_cpus': value['total_provisioned_cpus'],
|
|
99
|
+
'total_provisioned_memory_mb': value['total_provisioned_memory_mb'],
|
|
100
|
+
'total_provisioned_disk_kb': value['total_provisioned_disk_kb'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -27,38 +27,38 @@ export interface RightsizingCollectRequest {
|
|
|
27
27
|
* @type {number}
|
|
28
28
|
* @memberof RightsizingCollectRequest
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
lookback_hours?: number;
|
|
31
31
|
/**
|
|
32
32
|
* vSphere historical interval ID in seconds (300=day, 1800=week, 7200=month)
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof RightsizingCollectRequest
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
interval_id?: number;
|
|
37
37
|
/**
|
|
38
38
|
* Filter VMs by name substring
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof RightsizingCollectRequest
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
name_filter?: string;
|
|
43
43
|
/**
|
|
44
44
|
* MoRef value of a ClusterComputeResource to scope discovery (e.g. domain-c123)
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof RightsizingCollectRequest
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
cluster_id?: string;
|
|
49
49
|
/**
|
|
50
50
|
* Number of VMs per QueryPerf round-trip
|
|
51
51
|
* @type {number}
|
|
52
52
|
* @memberof RightsizingCollectRequest
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
batch_size?: number;
|
|
55
55
|
/**
|
|
56
56
|
* If true, discover VMs live from vSphere. If false (default), use the VMs already stored in the local inventory.
|
|
57
57
|
*
|
|
58
58
|
* @type {boolean}
|
|
59
59
|
* @memberof RightsizingCollectRequest
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
discover_vms?: boolean;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Check if a given object implements the RightsizingCollectRequest interface.
|
|
@@ -36,12 +36,12 @@ function RightsizingCollectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
39
|
+
'lookback_hours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
|
|
40
|
+
'interval_id': json['interval_id'] == null ? undefined : json['interval_id'],
|
|
41
|
+
'name_filter': json['name_filter'] == null ? undefined : json['name_filter'],
|
|
42
|
+
'cluster_id': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
43
|
+
'batch_size': json['batch_size'] == null ? undefined : json['batch_size'],
|
|
44
|
+
'discover_vms': json['discover_vms'] == null ? undefined : json['discover_vms'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
function RightsizingCollectRequestToJSON(json) {
|
|
@@ -53,11 +53,11 @@ function RightsizingCollectRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
55
|
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
56
|
-
'lookback_hours': value['
|
|
57
|
-
'interval_id': value['
|
|
58
|
-
'name_filter': value['
|
|
59
|
-
'cluster_id': value['
|
|
60
|
-
'batch_size': value['
|
|
61
|
-
'discover_vms': value['
|
|
56
|
+
'lookback_hours': value['lookback_hours'],
|
|
57
|
+
'interval_id': value['interval_id'],
|
|
58
|
+
'name_filter': value['name_filter'],
|
|
59
|
+
'cluster_id': value['cluster_id'],
|
|
60
|
+
'batch_size': value['batch_size'],
|
|
61
|
+
'discover_vms': value['discover_vms'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -22,7 +22,7 @@ exports.RightsizingMetricStatsToJSONTyped = RightsizingMetricStatsToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the RightsizingMetricStats interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfRightsizingMetricStats(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('sample_count' in value) || value['sample_count'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('average' in value) || value['average'] === undefined)
|
|
28
28
|
return false;
|
|
@@ -44,7 +44,7 @@ function RightsizingMetricStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'
|
|
47
|
+
'sample_count': json['sample_count'],
|
|
48
48
|
'average': json['average'],
|
|
49
49
|
'p95': json['p95'],
|
|
50
50
|
'p99': json['p99'],
|
|
@@ -60,7 +60,7 @@ function RightsizingMetricStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
60
|
return value;
|
|
61
61
|
}
|
|
62
62
|
return {
|
|
63
|
-
'sample_count': value['
|
|
63
|
+
'sample_count': value['sample_count'],
|
|
64
64
|
'average': value['average'],
|
|
65
65
|
'p95': value['p95'],
|
|
66
66
|
'p99': value['p99'],
|
|
@@ -33,31 +33,31 @@ export interface RightsizingReport {
|
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof RightsizingReport
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
cluster_id: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {Date}
|
|
40
40
|
* @memberof RightsizingReport
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
window_start: Date;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {Date}
|
|
46
46
|
* @memberof RightsizingReport
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
window_end: Date;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {number}
|
|
52
52
|
* @memberof RightsizingReport
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
interval_id: number;
|
|
55
55
|
/**
|
|
56
56
|
* Theoretical maximum samples for the window (lookback / interval)
|
|
57
57
|
* @type {number}
|
|
58
58
|
* @memberof RightsizingReport
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
expected_sample_count: number;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {Array<RightsizingVMReport>}
|
|
@@ -69,7 +69,7 @@ export interface RightsizingReport {
|
|
|
69
69
|
* @type {Date}
|
|
70
70
|
* @memberof RightsizingReport
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
created_at: Date;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Check if a given object implements the RightsizingReport interface.
|
|
@@ -27,19 +27,19 @@ function instanceOfRightsizingReport(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('vcenter' in value) || value['vcenter'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('
|
|
30
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('window_start' in value) || value['window_start'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
-
if (!('
|
|
34
|
+
if (!('window_end' in value) || value['window_end'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('
|
|
36
|
+
if (!('interval_id' in value) || value['interval_id'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('
|
|
38
|
+
if (!('expected_sample_count' in value) || value['expected_sample_count'] === undefined)
|
|
39
39
|
return false;
|
|
40
40
|
if (!('vms' in value) || value['vms'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('
|
|
42
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
43
43
|
return false;
|
|
44
44
|
return true;
|
|
45
45
|
}
|
|
@@ -53,13 +53,13 @@ function RightsizingReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
return {
|
|
54
54
|
'id': json['id'],
|
|
55
55
|
'vcenter': json['vcenter'],
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
56
|
+
'cluster_id': json['cluster_id'],
|
|
57
|
+
'window_start': (new Date(json['window_start'])),
|
|
58
|
+
'window_end': (new Date(json['window_end'])),
|
|
59
|
+
'interval_id': json['interval_id'],
|
|
60
|
+
'expected_sample_count': json['expected_sample_count'],
|
|
61
61
|
'vms': (json['vms'].map(RightsizingVMReport_js_1.RightsizingVMReportFromJSON)),
|
|
62
|
-
'
|
|
62
|
+
'created_at': (new Date(json['created_at'])),
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
function RightsizingReportToJSON(json) {
|
|
@@ -72,12 +72,12 @@ function RightsizingReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
72
|
return {
|
|
73
73
|
'id': value['id'],
|
|
74
74
|
'vcenter': value['vcenter'],
|
|
75
|
-
'cluster_id': value['
|
|
76
|
-
'window_start': value['
|
|
77
|
-
'window_end': value['
|
|
78
|
-
'interval_id': value['
|
|
79
|
-
'expected_sample_count': value['
|
|
75
|
+
'cluster_id': value['cluster_id'],
|
|
76
|
+
'window_start': value['window_start'].toISOString(),
|
|
77
|
+
'window_end': value['window_end'].toISOString(),
|
|
78
|
+
'interval_id': value['interval_id'],
|
|
79
|
+
'expected_sample_count': value['expected_sample_count'],
|
|
80
80
|
'vms': (value['vms'].map(RightsizingVMReport_js_1.RightsizingVMReportToJSON)),
|
|
81
|
-
'created_at': value['
|
|
81
|
+
'created_at': value['created_at'].toISOString(),
|
|
82
82
|
};
|
|
83
83
|
}
|
|
@@ -32,37 +32,37 @@ export interface RightsizingReportSummary {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof RightsizingReportSummary
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
cluster_id: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {Date}
|
|
39
39
|
* @memberof RightsizingReportSummary
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
window_start: Date;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {Date}
|
|
45
45
|
* @memberof RightsizingReportSummary
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
window_end: Date;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof RightsizingReportSummary
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
interval_id: number;
|
|
54
54
|
/**
|
|
55
55
|
* Theoretical maximum samples for the window (lookback / interval)
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof RightsizingReportSummary
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
expected_sample_count: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {Date}
|
|
63
63
|
* @memberof RightsizingReportSummary
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
created_at: Date;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* Check if a given object implements the RightsizingReportSummary interface.
|
|
@@ -26,17 +26,17 @@ function instanceOfRightsizingReportSummary(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('vcenter' in value) || value['vcenter'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
31
|
+
if (!('window_start' in value) || value['window_start'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('
|
|
33
|
+
if (!('window_end' in value) || value['window_end'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('interval_id' in value) || value['interval_id'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('
|
|
37
|
+
if (!('expected_sample_count' in value) || value['expected_sample_count'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('
|
|
39
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
40
40
|
return false;
|
|
41
41
|
return true;
|
|
42
42
|
}
|
|
@@ -50,12 +50,12 @@ function RightsizingReportSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
return {
|
|
51
51
|
'id': json['id'],
|
|
52
52
|
'vcenter': json['vcenter'],
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
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
59
|
};
|
|
60
60
|
}
|
|
61
61
|
function RightsizingReportSummaryToJSON(json) {
|
|
@@ -68,11 +68,11 @@ function RightsizingReportSummaryToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
68
68
|
return {
|
|
69
69
|
'id': value['id'],
|
|
70
70
|
'vcenter': value['vcenter'],
|
|
71
|
-
'cluster_id': value['
|
|
72
|
-
'window_start': value['
|
|
73
|
-
'window_end': value['
|
|
74
|
-
'interval_id': value['
|
|
75
|
-
'expected_sample_count': value['
|
|
76
|
-
'created_at': value['
|
|
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
77
|
};
|
|
78
78
|
}
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Start inspection request
|
|
14
15
|
* @export
|
|
15
16
|
* @interface StartInspectionRequest
|
|
16
17
|
*/
|
|
@@ -21,6 +22,12 @@ export interface StartInspectionRequest {
|
|
|
21
22
|
* @memberof StartInspectionRequest
|
|
22
23
|
*/
|
|
23
24
|
vmIds: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {VcenterCredentials}
|
|
28
|
+
* @memberof StartInspectionRequest
|
|
29
|
+
*/
|
|
30
|
+
credentials: VcenterCredentials;
|
|
24
31
|
}
|
|
25
32
|
/**
|
|
26
33
|
* Check if a given object implements the StartInspectionRequest interface.
|
|
@@ -18,12 +18,15 @@ exports.StartInspectionRequestFromJSON = StartInspectionRequestFromJSON;
|
|
|
18
18
|
exports.StartInspectionRequestFromJSONTyped = StartInspectionRequestFromJSONTyped;
|
|
19
19
|
exports.StartInspectionRequestToJSON = StartInspectionRequestToJSON;
|
|
20
20
|
exports.StartInspectionRequestToJSONTyped = StartInspectionRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the StartInspectionRequest interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfStartInspectionRequest(value) {
|
|
25
26
|
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
26
27
|
return false;
|
|
28
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
29
|
+
return false;
|
|
27
30
|
return true;
|
|
28
31
|
}
|
|
29
32
|
function StartInspectionRequestFromJSON(json) {
|
|
@@ -35,6 +38,7 @@ function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
38
|
}
|
|
36
39
|
return {
|
|
37
40
|
'vmIds': json['vmIds'],
|
|
41
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
44
|
function StartInspectionRequestToJSON(json) {
|
|
@@ -46,5 +50,6 @@ function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
50
|
}
|
|
47
51
|
return {
|
|
48
52
|
'vmIds': value['vmIds'],
|
|
53
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
49
54
|
};
|
|
50
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
|
+
}
|
|
@@ -33,12 +33,6 @@ export interface UpdateGroupRequest {
|
|
|
33
33
|
* @memberof UpdateGroupRequest
|
|
34
34
|
*/
|
|
35
35
|
filter?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof UpdateGroupRequest
|
|
40
|
-
*/
|
|
41
|
-
tags?: Array<string>;
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* Check if a given object implements the UpdateGroupRequest interface.
|
|
@@ -35,7 +35,6 @@ function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
37
|
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
38
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
function UpdateGroupRequestToJSON(json) {
|
|
@@ -49,6 +48,5 @@ function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
48
|
'name': value['name'],
|
|
50
49
|
'description': value['description'],
|
|
51
50
|
'filter': value['filter'],
|
|
52
|
-
'tags': value['tags'],
|
|
53
51
|
};
|
|
54
52
|
}
|