@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.
Files changed (256) hide show
  1. package/.openapi-generator/FILES +62 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +68 -17
  4. package/dist/apis/DefaultApi.d.ts +919 -108
  5. package/dist/apis/DefaultApi.js +1140 -256
  6. package/dist/esm/apis/DefaultApi.d.ts +919 -108
  7. package/dist/esm/apis/DefaultApi.js +1121 -237
  8. package/dist/esm/models/AgentStatus.d.ts +1 -1
  9. package/dist/esm/models/AgentStatus.js +3 -3
  10. package/dist/esm/models/BenchmarkRun.d.ts +104 -0
  11. package/dist/esm/models/BenchmarkRun.js +85 -0
  12. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  13. package/dist/esm/models/ClusterFeatures.js +54 -0
  14. package/dist/esm/models/DatastoreDetail.d.ts +90 -0
  15. package/dist/esm/models/DatastoreDetail.js +74 -0
  16. package/dist/esm/models/DatastorePair.d.ts +50 -0
  17. package/dist/esm/models/DatastorePair.js +53 -0
  18. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  19. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  20. package/dist/esm/models/EstimateRange.d.ts +44 -0
  21. package/dist/esm/models/EstimateRange.js +45 -0
  22. package/dist/esm/models/ForecastStats.d.ts +87 -0
  23. package/dist/esm/models/ForecastStats.js +64 -0
  24. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
  25. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  26. package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
  27. package/dist/esm/models/ForecasterPairStatus.js +82 -0
  28. package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
  29. package/dist/esm/models/ForecasterStartRequest.js +53 -0
  30. package/dist/esm/models/ForecasterStatus.d.ts +47 -0
  31. package/dist/esm/models/ForecasterStatus.js +53 -0
  32. package/dist/esm/models/InspectorStatus.d.ts +6 -10
  33. package/dist/esm/models/InspectorStatus.js +5 -9
  34. package/dist/esm/models/Inventory.d.ts +7 -1
  35. package/dist/esm/models/Inventory.js +5 -3
  36. package/dist/esm/models/InventoryData.d.ts +7 -0
  37. package/dist/esm/models/InventoryData.js +3 -0
  38. package/dist/esm/models/PairCapability.d.ts +60 -0
  39. package/dist/esm/models/PairCapability.js +64 -0
  40. package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
  41. package/dist/esm/models/PairCapabilityRequest.js +47 -0
  42. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
  43. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  44. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  45. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  46. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  47. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  48. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  49. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  50. package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
  51. package/dist/esm/models/RightsizingCollectRequest.js +56 -0
  52. package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
  53. package/dist/esm/models/RightsizingMetricStats.js +63 -0
  54. package/dist/esm/models/RightsizingReport.d.ts +81 -0
  55. package/dist/esm/models/RightsizingReport.js +76 -0
  56. package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
  57. package/dist/esm/models/RightsizingReportListResponse.js +48 -0
  58. package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
  59. package/dist/esm/models/RightsizingReportSummary.js +71 -0
  60. package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
  61. package/dist/esm/models/RightsizingVMReport.js +57 -0
  62. package/dist/esm/models/StartInspectionRequest.d.ts +39 -0
  63. package/dist/esm/models/{InspectorStartRequest.js → StartInspectionRequest.js} +12 -12
  64. package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
  65. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  66. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  67. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  68. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  69. package/dist/esm/models/VMLabelsResponse.js +47 -0
  70. package/dist/esm/models/VMs.d.ts +18 -0
  71. package/dist/esm/models/VMs.js +4 -0
  72. package/dist/esm/models/VirtualMachine.d.ts +43 -1
  73. package/dist/esm/models/VirtualMachine.js +16 -4
  74. package/dist/esm/models/VirtualMachineDetail.d.ts +22 -3
  75. package/dist/esm/models/VirtualMachineDetail.js +10 -3
  76. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  77. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  78. package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
  79. package/dist/esm/models/VmInspectionConcern.js +51 -0
  80. package/dist/esm/models/VmInspectionResults.d.ts +33 -0
  81. package/dist/esm/models/VmInspectionResults.js +42 -0
  82. package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
  83. package/dist/esm/models/VmInspectionStatus.js +1 -2
  84. package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
  85. package/dist/esm/models/VmUtilizationDetails.js +99 -0
  86. package/dist/esm/models/index.d.ts +31 -1
  87. package/dist/esm/models/index.js +31 -1
  88. package/dist/esm/runtime.js +1 -1
  89. package/dist/models/AgentStatus.d.ts +1 -1
  90. package/dist/models/AgentStatus.js +3 -3
  91. package/dist/models/BenchmarkRun.d.ts +104 -0
  92. package/dist/models/BenchmarkRun.js +92 -0
  93. package/dist/models/ClusterFeatures.d.ts +54 -0
  94. package/dist/models/ClusterFeatures.js +62 -0
  95. package/dist/models/DatastoreDetail.d.ts +90 -0
  96. package/dist/models/DatastoreDetail.js +82 -0
  97. package/dist/models/DatastorePair.d.ts +50 -0
  98. package/dist/models/DatastorePair.js +60 -0
  99. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  100. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  101. package/dist/models/EstimateRange.d.ts +44 -0
  102. package/dist/models/EstimateRange.js +52 -0
  103. package/dist/models/ForecastStats.d.ts +87 -0
  104. package/dist/models/ForecastStats.js +71 -0
  105. package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
  106. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  107. package/dist/models/ForecasterPairStatus.d.ts +98 -0
  108. package/dist/models/ForecasterPairStatus.js +90 -0
  109. package/dist/models/ForecasterStartRequest.d.ts +58 -0
  110. package/dist/models/ForecasterStartRequest.js +60 -0
  111. package/dist/models/ForecasterStatus.d.ts +47 -0
  112. package/dist/models/ForecasterStatus.js +61 -0
  113. package/dist/models/InspectorStatus.d.ts +6 -10
  114. package/dist/models/InspectorStatus.js +5 -9
  115. package/dist/models/Inventory.d.ts +7 -1
  116. package/dist/models/Inventory.js +5 -3
  117. package/dist/models/InventoryData.d.ts +7 -0
  118. package/dist/models/InventoryData.js +3 -0
  119. package/dist/models/PairCapability.d.ts +60 -0
  120. package/dist/models/PairCapability.js +72 -0
  121. package/dist/models/PairCapabilityRequest.d.ts +40 -0
  122. package/dist/models/PairCapabilityRequest.js +54 -0
  123. package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
  124. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  125. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  126. package/dist/models/RightsizingClusterListResponse.js +55 -0
  127. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  128. package/dist/models/RightsizingClusterResponse.js +55 -0
  129. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  130. package/dist/models/RightsizingClusterUtilization.js +102 -0
  131. package/dist/models/RightsizingCollectRequest.d.ts +70 -0
  132. package/dist/models/RightsizingCollectRequest.js +63 -0
  133. package/dist/models/RightsizingMetricStats.d.ts +62 -0
  134. package/dist/models/RightsizingMetricStats.js +70 -0
  135. package/dist/models/RightsizingReport.d.ts +81 -0
  136. package/dist/models/RightsizingReport.js +83 -0
  137. package/dist/models/RightsizingReportListResponse.d.ts +39 -0
  138. package/dist/models/RightsizingReportListResponse.js +55 -0
  139. package/dist/models/RightsizingReportSummary.d.ts +74 -0
  140. package/dist/models/RightsizingReportSummary.js +78 -0
  141. package/dist/models/RightsizingVMReport.d.ts +53 -0
  142. package/dist/models/RightsizingVMReport.js +64 -0
  143. package/dist/models/StartInspectionRequest.d.ts +39 -0
  144. package/dist/models/StartInspectionRequest.js +55 -0
  145. package/dist/models/StopForecasterPair202Response.d.ts +45 -0
  146. package/dist/models/StopForecasterPair202Response.js +57 -0
  147. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  148. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  149. package/dist/models/VMLabelsResponse.d.ts +38 -0
  150. package/dist/models/VMLabelsResponse.js +54 -0
  151. package/dist/models/VMs.d.ts +18 -0
  152. package/dist/models/VMs.js +4 -0
  153. package/dist/models/VirtualMachine.d.ts +43 -1
  154. package/dist/models/VirtualMachine.js +16 -4
  155. package/dist/models/VirtualMachineDetail.d.ts +22 -3
  156. package/dist/models/VirtualMachineDetail.js +10 -3
  157. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  158. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  159. package/dist/models/VmInspectionConcern.d.ts +44 -0
  160. package/dist/models/VmInspectionConcern.js +58 -0
  161. package/dist/models/VmInspectionResults.d.ts +33 -0
  162. package/dist/models/VmInspectionResults.js +49 -0
  163. package/dist/models/VmInspectionStatus.d.ts +0 -1
  164. package/dist/models/VmInspectionStatus.js +1 -2
  165. package/dist/models/VmUtilizationDetails.d.ts +116 -0
  166. package/dist/models/VmUtilizationDetails.js +106 -0
  167. package/dist/models/index.d.ts +31 -1
  168. package/dist/models/index.js +31 -1
  169. package/dist/runtime.js +1 -1
  170. package/docs/AgentStatus.md +2 -2
  171. package/docs/BenchmarkRun.md +58 -0
  172. package/docs/ClusterFeatures.md +38 -0
  173. package/docs/DatastoreDetail.md +50 -0
  174. package/docs/DatastorePair.md +40 -0
  175. package/docs/DefaultApi.md +1701 -266
  176. package/docs/DeleteLabelGloballyResponse.md +36 -0
  177. package/docs/EstimateRange.md +39 -0
  178. package/docs/ForecastStats.md +52 -0
  179. package/docs/ForecasterDatastoresRequest.md +34 -0
  180. package/docs/ForecasterPairStatus.md +52 -0
  181. package/docs/ForecasterStartRequest.md +42 -0
  182. package/docs/ForecasterStatus.md +36 -0
  183. package/docs/GetInventory200Response.md +4 -2
  184. package/docs/InspectorStatus.md +2 -2
  185. package/docs/Inventory.md +4 -2
  186. package/docs/InventoryData.md +2 -0
  187. package/docs/PairCapability.md +40 -0
  188. package/docs/PairCapabilityRequest.md +36 -0
  189. package/docs/PutForecasterCredentials403Response.md +36 -0
  190. package/docs/RightsizingClusterListResponse.md +36 -0
  191. package/docs/RightsizingClusterResponse.md +36 -0
  192. package/docs/RightsizingClusterUtilization.md +60 -0
  193. package/docs/RightsizingCollectRequest.md +46 -0
  194. package/docs/RightsizingMetricStats.md +44 -0
  195. package/docs/RightsizingReport.md +50 -0
  196. package/docs/RightsizingReportListResponse.md +36 -0
  197. package/docs/RightsizingReportSummary.md +49 -0
  198. package/docs/RightsizingVMReport.md +40 -0
  199. package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +7 -6
  200. package/docs/StopForecasterPair202Response.md +36 -0
  201. package/docs/UpdateLabelVMsRequest.md +36 -0
  202. package/docs/VMLabelsResponse.md +36 -0
  203. package/docs/VMs.md +4 -0
  204. package/docs/VirtualMachine.md +16 -2
  205. package/docs/VirtualMachineDetail.md +7 -1
  206. package/docs/VirtualMachineUpdateRequest.md +36 -0
  207. package/docs/VmInspectionConcern.md +39 -0
  208. package/docs/VmInspectionResults.md +35 -0
  209. package/docs/VmUtilizationDetails.md +62 -0
  210. package/package.json +1 -1
  211. package/src/apis/DefaultApi.ts +2167 -479
  212. package/src/models/AgentStatus.ts +4 -4
  213. package/src/models/BenchmarkRun.ts +171 -0
  214. package/src/models/ClusterFeatures.ts +94 -0
  215. package/src/models/DatastoreDetail.ts +146 -0
  216. package/src/models/DatastorePair.ts +92 -0
  217. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  218. package/src/models/EstimateRange.ts +81 -0
  219. package/src/models/ForecastStats.ts +147 -0
  220. package/src/models/ForecasterDatastoresRequest.ts +73 -0
  221. package/src/models/ForecasterPairStatus.ts +158 -0
  222. package/src/models/ForecasterStartRequest.ts +113 -0
  223. package/src/models/ForecasterStatus.ts +93 -0
  224. package/src/models/InspectorStatus.ts +15 -12
  225. package/src/models/Inventory.ts +12 -4
  226. package/src/models/InventoryData.ts +15 -0
  227. package/src/models/PairCapability.ts +106 -0
  228. package/src/models/PairCapabilityRequest.ts +89 -0
  229. package/src/models/PutForecasterCredentials403Response.ts +73 -0
  230. package/src/models/RightsizingClusterListResponse.ts +83 -0
  231. package/src/models/RightsizingClusterResponse.ts +83 -0
  232. package/src/models/RightsizingClusterUtilization.ts +185 -0
  233. package/src/models/RightsizingCollectRequest.ts +123 -0
  234. package/src/models/RightsizingMetricStats.ts +111 -0
  235. package/src/models/RightsizingReport.ts +146 -0
  236. package/src/models/RightsizingReportListResponse.ts +83 -0
  237. package/src/models/RightsizingReportSummary.ts +129 -0
  238. package/src/models/RightsizingVMReport.ts +101 -0
  239. package/src/models/StartInspectionRequest.ts +83 -0
  240. package/src/models/StopForecasterPair202Response.ts +83 -0
  241. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  242. package/src/models/VMLabelsResponse.ts +75 -0
  243. package/src/models/VMs.ts +18 -0
  244. package/src/models/VirtualMachine.ts +59 -4
  245. package/src/models/VirtualMachineDetail.ts +42 -11
  246. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  247. package/src/models/VmInspectionConcern.ts +84 -0
  248. package/src/models/VmInspectionResults.ts +73 -0
  249. package/src/models/VmInspectionStatus.ts +1 -2
  250. package/src/models/VmUtilizationDetails.ts +192 -0
  251. package/src/models/index.ts +31 -1
  252. package/src/runtime.ts +1 -2
  253. package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
  254. package/dist/models/InspectorStartRequest.d.ts +0 -39
  255. package/dist/models/InspectorStartRequest.js +0 -55
  256. package/src/models/InspectorStartRequest.ts +0 -83
@@ -30,7 +30,7 @@ export interface AgentStatus {
30
30
  * @type {AgentStatusConsoleConnectionEnum}
31
31
  * @memberof AgentStatus
32
32
  */
33
- consoleConnection: AgentStatusConsoleConnectionEnum;
33
+ console_connection: AgentStatusConsoleConnectionEnum;
34
34
  /**
35
35
  * Connection error description
36
36
  * @type {string}
@@ -64,7 +64,7 @@ export type AgentStatusConsoleConnectionEnum = typeof AgentStatusConsoleConnecti
64
64
  */
65
65
  export function instanceOfAgentStatus(value: object): value is AgentStatus {
66
66
  if (!('mode' in value) || value['mode'] === undefined) return false;
67
- if (!('consoleConnection' in value) || value['consoleConnection'] === undefined) return false;
67
+ if (!('console_connection' in value) || value['console_connection'] === undefined) return false;
68
68
  return true;
69
69
  }
70
70
 
@@ -79,7 +79,7 @@ export function AgentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean
79
79
  return {
80
80
 
81
81
  'mode': json['mode'],
82
- 'consoleConnection': json['console_connection'],
82
+ 'console_connection': json['console_connection'],
83
83
  'error': json['error'] == null ? undefined : json['error'],
84
84
  };
85
85
  }
@@ -96,7 +96,7 @@ export function AgentStatusToJSONTyped(value?: AgentStatus | null, ignoreDiscrim
96
96
  return {
97
97
 
98
98
  'mode': value['mode'],
99
- 'console_connection': value['consoleConnection'],
99
+ 'console_connection': value['console_connection'],
100
100
  'error': value['error'],
101
101
  };
102
102
  }
@@ -0,0 +1,171 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BenchmarkRun
20
+ */
21
+ export interface BenchmarkRun {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof BenchmarkRun
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof BenchmarkRun
32
+ */
33
+ sessionId: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BenchmarkRun
38
+ */
39
+ pairName: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof BenchmarkRun
44
+ */
45
+ sourceDatastore: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof BenchmarkRun
50
+ */
51
+ targetDatastore: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof BenchmarkRun
56
+ */
57
+ iteration: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof BenchmarkRun
62
+ */
63
+ diskSizeGb: number;
64
+ /**
65
+ * Time spent on disk creation and random fill (iteration 1 only)
66
+ * @type {number}
67
+ * @memberof BenchmarkRun
68
+ */
69
+ prepDurationSec?: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof BenchmarkRun
74
+ */
75
+ durationSec: number;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof BenchmarkRun
80
+ */
81
+ throughputMbps: number;
82
+ /**
83
+ * Benchmark method used (e.g., vm_native)
84
+ * @type {string}
85
+ * @memberof BenchmarkRun
86
+ */
87
+ method?: string;
88
+ /**
89
+ * Error message if this iteration failed
90
+ * @type {string}
91
+ * @memberof BenchmarkRun
92
+ */
93
+ error?: string;
94
+ /**
95
+ *
96
+ * @type {Date}
97
+ * @memberof BenchmarkRun
98
+ */
99
+ createdAt: Date;
100
+ }
101
+
102
+ /**
103
+ * Check if a given object implements the BenchmarkRun interface.
104
+ */
105
+ export function instanceOfBenchmarkRun(value: object): value is BenchmarkRun {
106
+ if (!('id' in value) || value['id'] === undefined) return false;
107
+ if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
108
+ if (!('pairName' in value) || value['pairName'] === undefined) return false;
109
+ if (!('sourceDatastore' in value) || value['sourceDatastore'] === undefined) return false;
110
+ if (!('targetDatastore' in value) || value['targetDatastore'] === undefined) return false;
111
+ if (!('iteration' in value) || value['iteration'] === undefined) return false;
112
+ if (!('diskSizeGb' in value) || value['diskSizeGb'] === undefined) return false;
113
+ if (!('durationSec' in value) || value['durationSec'] === undefined) return false;
114
+ if (!('throughputMbps' in value) || value['throughputMbps'] === undefined) return false;
115
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
116
+ return true;
117
+ }
118
+
119
+ export function BenchmarkRunFromJSON(json: any): BenchmarkRun {
120
+ return BenchmarkRunFromJSONTyped(json, false);
121
+ }
122
+
123
+ export function BenchmarkRunFromJSONTyped(json: any, ignoreDiscriminator: boolean): BenchmarkRun {
124
+ if (json == null) {
125
+ return json;
126
+ }
127
+ return {
128
+
129
+ 'id': json['id'],
130
+ 'sessionId': json['sessionId'],
131
+ 'pairName': json['pairName'],
132
+ 'sourceDatastore': json['sourceDatastore'],
133
+ 'targetDatastore': json['targetDatastore'],
134
+ 'iteration': json['iteration'],
135
+ 'diskSizeGb': json['diskSizeGb'],
136
+ 'prepDurationSec': json['prepDurationSec'] == null ? undefined : json['prepDurationSec'],
137
+ 'durationSec': json['durationSec'],
138
+ 'throughputMbps': json['throughputMbps'],
139
+ 'method': json['method'] == null ? undefined : json['method'],
140
+ 'error': json['error'] == null ? undefined : json['error'],
141
+ 'createdAt': (new Date(json['createdAt'])),
142
+ };
143
+ }
144
+
145
+ export function BenchmarkRunToJSON(json: any): BenchmarkRun {
146
+ return BenchmarkRunToJSONTyped(json, false);
147
+ }
148
+
149
+ export function BenchmarkRunToJSONTyped(value?: BenchmarkRun | null, ignoreDiscriminator: boolean = false): any {
150
+ if (value == null) {
151
+ return value;
152
+ }
153
+
154
+ return {
155
+
156
+ 'id': value['id'],
157
+ 'sessionId': value['sessionId'],
158
+ 'pairName': value['pairName'],
159
+ 'sourceDatastore': value['sourceDatastore'],
160
+ 'targetDatastore': value['targetDatastore'],
161
+ 'iteration': value['iteration'],
162
+ 'diskSizeGb': value['diskSizeGb'],
163
+ 'prepDurationSec': value['prepDurationSec'],
164
+ 'durationSec': value['durationSec'],
165
+ 'throughputMbps': value['throughputMbps'],
166
+ 'method': value['method'],
167
+ 'error': value['error'],
168
+ 'createdAt': value['createdAt'].toISOString(),
169
+ };
170
+ }
171
+
@@ -0,0 +1,94 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ClusterFeatures
20
+ */
21
+ export interface ClusterFeatures {
22
+ /**
23
+ * Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
24
+ * @type {boolean}
25
+ * @memberof ClusterFeatures
26
+ */
27
+ drsEnabled?: boolean;
28
+ /**
29
+ * DRS automation mode for the cluster
30
+ * @type {ClusterFeaturesDrsModeEnum}
31
+ * @memberof ClusterFeatures
32
+ */
33
+ drsMode?: ClusterFeaturesDrsModeEnum;
34
+ /**
35
+ * Whether Storage DRS is enabled for this cluster
36
+ * @type {boolean}
37
+ * @memberof ClusterFeatures
38
+ */
39
+ storageDrsEnabled?: boolean;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const ClusterFeaturesDrsModeEnum = {
47
+ FullyAutomated: 'Fully Automated',
48
+ PartiallyAutomated: 'Partially Automated',
49
+ Manual: 'Manual',
50
+ None: 'None'
51
+ } as const;
52
+ export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
53
+
54
+
55
+ /**
56
+ * Check if a given object implements the ClusterFeatures interface.
57
+ */
58
+ export function instanceOfClusterFeatures(value: object): value is ClusterFeatures {
59
+ return true;
60
+ }
61
+
62
+ export function ClusterFeaturesFromJSON(json: any): ClusterFeatures {
63
+ return ClusterFeaturesFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
73
+ 'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
74
+ 'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
75
+ };
76
+ }
77
+
78
+ export function ClusterFeaturesToJSON(json: any): ClusterFeatures {
79
+ return ClusterFeaturesToJSONTyped(json, false);
80
+ }
81
+
82
+ export function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignoreDiscriminator: boolean = false): any {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+
87
+ return {
88
+
89
+ 'drsEnabled': value['drsEnabled'],
90
+ 'drsMode': value['drsMode'],
91
+ 'storageDrsEnabled': value['storageDrsEnabled'],
92
+ };
93
+ }
94
+
@@ -0,0 +1,146 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DatastoreDetail
20
+ */
21
+ export interface DatastoreDetail {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof DatastoreDetail
26
+ */
27
+ name: string;
28
+ /**
29
+ * Datastore type (VMFS, NFS, VVol, OTHER)
30
+ * @type {string}
31
+ * @memberof DatastoreDetail
32
+ */
33
+ type: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof DatastoreDetail
38
+ */
39
+ capacityGb: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof DatastoreDetail
44
+ */
45
+ freeGb: number;
46
+ /**
47
+ * SCSI vendor string (e.g., NETAPP, PURE, DGC)
48
+ * @type {string}
49
+ * @memberof DatastoreDetail
50
+ */
51
+ storageVendor?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof DatastoreDetail
56
+ */
57
+ storageModel?: string;
58
+ /**
59
+ * Derived from NAA device ID prefix. Same value means same physical storage array. Absent for NFS and local datastores.
60
+ * @type {string}
61
+ * @memberof DatastoreDetail
62
+ */
63
+ storageArrayId?: string;
64
+ /**
65
+ * NAA device identifiers for the datastore's backing LUNs
66
+ * @type {Array<string>}
67
+ * @memberof DatastoreDetail
68
+ */
69
+ naaDevices?: Array<string>;
70
+ /**
71
+ * Intrinsic offload capabilities of this datastore based on vendor support
72
+ * @type {Array<DatastoreDetailCapabilitiesEnum>}
73
+ * @memberof DatastoreDetail
74
+ */
75
+ capabilities?: Array<DatastoreDetailCapabilitiesEnum>;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const DatastoreDetailCapabilitiesEnum = {
83
+ CopyOffload: 'copy-offload',
84
+ Xcopy: 'xcopy',
85
+ Rdm: 'rdm',
86
+ Vvol: 'vvol'
87
+ } as const;
88
+ export type DatastoreDetailCapabilitiesEnum = typeof DatastoreDetailCapabilitiesEnum[keyof typeof DatastoreDetailCapabilitiesEnum];
89
+
90
+
91
+ /**
92
+ * Check if a given object implements the DatastoreDetail interface.
93
+ */
94
+ export function instanceOfDatastoreDetail(value: object): value is DatastoreDetail {
95
+ if (!('name' in value) || value['name'] === undefined) return false;
96
+ if (!('type' in value) || value['type'] === undefined) return false;
97
+ if (!('capacityGb' in value) || value['capacityGb'] === undefined) return false;
98
+ if (!('freeGb' in value) || value['freeGb'] === undefined) return false;
99
+ return true;
100
+ }
101
+
102
+ export function DatastoreDetailFromJSON(json: any): DatastoreDetail {
103
+ return DatastoreDetailFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function DatastoreDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatastoreDetail {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'name': json['name'],
113
+ 'type': json['type'],
114
+ 'capacityGb': json['capacityGb'],
115
+ 'freeGb': json['freeGb'],
116
+ 'storageVendor': json['storageVendor'] == null ? undefined : json['storageVendor'],
117
+ 'storageModel': json['storageModel'] == null ? undefined : json['storageModel'],
118
+ 'storageArrayId': json['storageArrayId'] == null ? undefined : json['storageArrayId'],
119
+ 'naaDevices': json['naaDevices'] == null ? undefined : json['naaDevices'],
120
+ 'capabilities': json['capabilities'] == null ? undefined : json['capabilities'],
121
+ };
122
+ }
123
+
124
+ export function DatastoreDetailToJSON(json: any): DatastoreDetail {
125
+ return DatastoreDetailToJSONTyped(json, false);
126
+ }
127
+
128
+ export function DatastoreDetailToJSONTyped(value?: DatastoreDetail | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ 'name': value['name'],
136
+ 'type': value['type'],
137
+ 'capacityGb': value['capacityGb'],
138
+ 'freeGb': value['freeGb'],
139
+ 'storageVendor': value['storageVendor'],
140
+ 'storageModel': value['storageModel'],
141
+ 'storageArrayId': value['storageArrayId'],
142
+ 'naaDevices': value['naaDevices'],
143
+ 'capabilities': value['capabilities'],
144
+ };
145
+ }
146
+
@@ -0,0 +1,92 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DatastorePair
20
+ */
21
+ export interface DatastorePair {
22
+ /**
23
+ * User-defined name for this pair
24
+ * @type {string}
25
+ * @memberof DatastorePair
26
+ */
27
+ name: string;
28
+ /**
29
+ * Source datastore name
30
+ * @type {string}
31
+ * @memberof DatastorePair
32
+ */
33
+ sourceDatastore: string;
34
+ /**
35
+ * Target datastore name
36
+ * @type {string}
37
+ * @memberof DatastorePair
38
+ */
39
+ targetDatastore: string;
40
+ /**
41
+ * Optional ESXi host name to pin the benchmark to. If omitted, a host common to both datastores is selected automatically.
42
+ * @type {string}
43
+ * @memberof DatastorePair
44
+ */
45
+ host?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the DatastorePair interface.
50
+ */
51
+ export function instanceOfDatastorePair(value: object): value is DatastorePair {
52
+ if (!('name' in value) || value['name'] === undefined) return false;
53
+ if (!('sourceDatastore' in value) || value['sourceDatastore'] === undefined) return false;
54
+ if (!('targetDatastore' in value) || value['targetDatastore'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function DatastorePairFromJSON(json: any): DatastorePair {
59
+ return DatastorePairFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function DatastorePairFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatastorePair {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'name': json['name'],
69
+ 'sourceDatastore': json['sourceDatastore'],
70
+ 'targetDatastore': json['targetDatastore'],
71
+ 'host': json['host'] == null ? undefined : json['host'],
72
+ };
73
+ }
74
+
75
+ export function DatastorePairToJSON(json: any): DatastorePair {
76
+ return DatastorePairToJSONTyped(json, false);
77
+ }
78
+
79
+ export function DatastorePairToJSONTyped(value?: DatastorePair | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'name': value['name'],
87
+ 'sourceDatastore': value['sourceDatastore'],
88
+ 'targetDatastore': value['targetDatastore'],
89
+ 'host': value['host'],
90
+ };
91
+ }
92
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DeleteLabelGloballyResponse
20
+ */
21
+ export interface DeleteLabelGloballyResponse {
22
+ /**
23
+ * Number of VMs that had the label removed
24
+ * @type {number}
25
+ * @memberof DeleteLabelGloballyResponse
26
+ */
27
+ affected: number;
28
+ /**
29
+ * The label that was removed
30
+ * @type {string}
31
+ * @memberof DeleteLabelGloballyResponse
32
+ */
33
+ label: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the DeleteLabelGloballyResponse interface.
38
+ */
39
+ export function instanceOfDeleteLabelGloballyResponse(value: object): value is DeleteLabelGloballyResponse {
40
+ if (!('affected' in value) || value['affected'] === undefined) return false;
41
+ if (!('label' in value) || value['label'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function DeleteLabelGloballyResponseFromJSON(json: any): DeleteLabelGloballyResponse {
46
+ return DeleteLabelGloballyResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DeleteLabelGloballyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLabelGloballyResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'affected': json['affected'],
56
+ 'label': json['label'],
57
+ };
58
+ }
59
+
60
+ export function DeleteLabelGloballyResponseToJSON(json: any): DeleteLabelGloballyResponse {
61
+ return DeleteLabelGloballyResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function DeleteLabelGloballyResponseToJSONTyped(value?: DeleteLabelGloballyResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'affected': value['affected'],
72
+ 'label': value['label'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * Time estimates for migrating 1TB of data
18
+ * @export
19
+ * @interface EstimateRange
20
+ */
21
+ export interface EstimateRange {
22
+ /**
23
+ * Duration string (e.g., "25m40s")
24
+ * @type {string}
25
+ * @memberof EstimateRange
26
+ */
27
+ bestCase?: string;
28
+ /**
29
+ * Duration string (e.g., "26m49s")
30
+ * @type {string}
31
+ * @memberof EstimateRange
32
+ */
33
+ expected?: string;
34
+ /**
35
+ * Duration string (e.g., "29m12s")
36
+ * @type {string}
37
+ * @memberof EstimateRange
38
+ */
39
+ worstCase?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the EstimateRange interface.
44
+ */
45
+ export function instanceOfEstimateRange(value: object): value is EstimateRange {
46
+ return true;
47
+ }
48
+
49
+ export function EstimateRangeFromJSON(json: any): EstimateRange {
50
+ return EstimateRangeFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function EstimateRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EstimateRange {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'bestCase': json['bestCase'] == null ? undefined : json['bestCase'],
60
+ 'expected': json['expected'] == null ? undefined : json['expected'],
61
+ 'worstCase': json['worstCase'] == null ? undefined : json['worstCase'],
62
+ };
63
+ }
64
+
65
+ export function EstimateRangeToJSON(json: any): EstimateRange {
66
+ return EstimateRangeToJSONTyped(json, false);
67
+ }
68
+
69
+ export function EstimateRangeToJSONTyped(value?: EstimateRange | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'bestCase': value['bestCase'],
77
+ 'expected': value['expected'],
78
+ 'worstCase': value['worstCase'],
79
+ };
80
+ }
81
+