@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
@@ -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
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VddkProperties } from './VddkProperties.js';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -22,23 +23,18 @@ export interface InspectorStatus {
22
23
  */
23
24
  state: InspectorStatusStateEnum;
24
25
  /**
25
- * Error message when state is error
26
- * @type {string}
26
+ *
27
+ * @type {VddkProperties}
27
28
  * @memberof InspectorStatus
28
29
  */
29
- error?: string;
30
+ vddk?: VddkProperties;
30
31
  }
31
32
  /**
32
33
  * @export
33
34
  */
34
35
  export declare const InspectorStatusStateEnum: {
35
- readonly InspectorStatusStateCanceled: "ready";
36
- readonly InspectorStatusStateCanceling: "Initiating";
37
- readonly InspectorStatusStateCompleted: "running";
38
- readonly InspectorStatusStateError: "canceling";
39
- readonly InspectorStatusStateInitiating: "canceled";
40
- readonly InspectorStatusStateReady: "completed";
41
- readonly InspectorStatusStateRunning: "error";
36
+ readonly InspectorStatusStateReady: "ready";
37
+ readonly InspectorStatusStateRunning: "running";
42
38
  };
43
39
  export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
44
40
  /**
@@ -11,17 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VddkPropertiesFromJSON, VddkPropertiesToJSON, } from './VddkProperties.js';
14
15
  /**
15
16
  * @export
16
17
  */
17
18
  export const InspectorStatusStateEnum = {
18
- InspectorStatusStateCanceled: 'ready',
19
- InspectorStatusStateCanceling: 'Initiating',
20
- InspectorStatusStateCompleted: 'running',
21
- InspectorStatusStateError: 'canceling',
22
- InspectorStatusStateInitiating: 'canceled',
23
- InspectorStatusStateReady: 'completed',
24
- InspectorStatusStateRunning: 'error'
19
+ InspectorStatusStateReady: 'ready',
20
+ InspectorStatusStateRunning: 'running'
25
21
  };
26
22
  /**
27
23
  * Check if a given object implements the InspectorStatus interface.
@@ -40,7 +36,7 @@ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
40
36
  }
41
37
  return {
42
38
  'state': json['state'],
43
- 'error': json['error'] == null ? undefined : json['error'],
39
+ 'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
44
40
  };
45
41
  }
46
42
  export function InspectorStatusToJSON(json) {
@@ -52,6 +48,6 @@ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
52
48
  }
53
49
  return {
54
50
  'state': value['state'],
55
- 'error': value['error'],
51
+ 'vddk': VddkPropertiesToJSON(value['vddk']),
56
52
  };
57
53
  }
@@ -21,7 +21,13 @@ export interface Inventory {
21
21
  * @type {string}
22
22
  * @memberof Inventory
23
23
  */
24
- vcenterId: string;
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 (!('vcenterId' in value) || value['vcenterId'] === undefined)
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
- 'vcenterId': json['vcenter_id'],
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['vcenterId'],
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
  };
@@ -12,6 +12,7 @@
12
12
  import type { VCenter } from './VCenter.js';
13
13
  import type { Infra } from './Infra.js';
14
14
  import type { VMs } from './VMs.js';
15
+ import type { ClusterFeatures } from './ClusterFeatures.js';
15
16
  /**
16
17
  *
17
18
  * @export
@@ -24,6 +25,12 @@ export interface InventoryData {
24
25
  * @memberof InventoryData
25
26
  */
26
27
  vcenter?: VCenter;
28
+ /**
29
+ *
30
+ * @type {ClusterFeatures}
31
+ * @memberof InventoryData
32
+ */
33
+ clusterFeatures?: ClusterFeatures;
27
34
  /**
28
35
  *
29
36
  * @type {VMs}
@@ -14,6 +14,7 @@
14
14
  import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
15
15
  import { InfraFromJSON, InfraToJSON, } from './Infra.js';
16
16
  import { VMsFromJSON, VMsToJSON, } from './VMs.js';
17
+ import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
17
18
  /**
18
19
  * Check if a given object implements the InventoryData interface.
19
20
  */
@@ -33,6 +34,7 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
33
34
  }
34
35
  return {
35
36
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
37
+ 'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
36
38
  'vms': VMsFromJSON(json['vms']),
37
39
  'infra': InfraFromJSON(json['infra']),
38
40
  };
@@ -46,6 +48,7 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
46
48
  }
47
49
  return {
48
50
  'vcenter': VCenterToJSON(value['vcenter']),
51
+ 'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
49
52
  'vms': VMsToJSON(value['vms']),
50
53
  'infra': InfraToJSON(value['infra']),
51
54
  };
@@ -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;
@@ -0,0 +1,47 @@
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 PairCapabilityRequest interface.
18
+ */
19
+ export function instanceOfPairCapabilityRequest(value) {
20
+ if (!('pairs' in value) || value['pairs'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PairCapabilityRequestFromJSON(json) {
25
+ return PairCapabilityRequestFromJSONTyped(json, false);
26
+ }
27
+ export function PairCapabilityRequestFromJSONTyped(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
+ };
35
+ }
36
+ export function PairCapabilityRequestToJSON(json) {
37
+ return PairCapabilityRequestToJSONTyped(json, false);
38
+ }
39
+ export function PairCapabilityRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
45
+ 'pairs': (value['pairs'].map(DatastorePairToJSON)),
46
+ };
47
+ }
@@ -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 PutForecasterCredentials403Response
16
+ */
17
+ export interface PutForecasterCredentials403Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PutForecasterCredentials403Response
22
+ */
23
+ error?: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof PutForecasterCredentials403Response
28
+ */
29
+ missingPrivileges?: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PutForecasterCredentials403Response interface.
33
+ */
34
+ export declare function instanceOfPutForecasterCredentials403Response(value: object): value is PutForecasterCredentials403Response;
35
+ export declare function PutForecasterCredentials403ResponseFromJSON(json: any): PutForecasterCredentials403Response;
36
+ export declare function PutForecasterCredentials403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutForecasterCredentials403Response;
37
+ export declare function PutForecasterCredentials403ResponseToJSON(json: any): PutForecasterCredentials403Response;
38
+ export declare function PutForecasterCredentials403ResponseToJSONTyped(value?: PutForecasterCredentials403Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 PutForecasterCredentials403Response interface.
16
+ */
17
+ export function instanceOfPutForecasterCredentials403Response(value) {
18
+ return true;
19
+ }
20
+ export function PutForecasterCredentials403ResponseFromJSON(json) {
21
+ return PutForecasterCredentials403ResponseFromJSONTyped(json, false);
22
+ }
23
+ export function PutForecasterCredentials403ResponseFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'error': json['error'] == null ? undefined : json['error'],
29
+ 'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
30
+ };
31
+ }
32
+ export function PutForecasterCredentials403ResponseToJSON(json) {
33
+ return PutForecasterCredentials403ResponseToJSONTyped(json, false);
34
+ }
35
+ export function PutForecasterCredentials403ResponseToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'error': value['error'],
41
+ 'missingPrivileges': value['missingPrivileges'],
42
+ };
43
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingClusterListResponse
17
+ */
18
+ export interface RightsizingClusterListResponse {
19
+ /**
20
+ * The report ID this data was aggregated from
21
+ * @type {string}
22
+ * @memberof RightsizingClusterListResponse
23
+ */
24
+ report_id: string;
25
+ /**
26
+ *
27
+ * @type {Array<RightsizingClusterUtilization>}
28
+ * @memberof RightsizingClusterListResponse
29
+ */
30
+ clusters: Array<RightsizingClusterUtilization>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingClusterListResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse;
36
+ export declare function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse;
37
+ export declare function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse;
38
+ export declare function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse;
39
+ export declare function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJSON, } from './RightsizingClusterUtilization.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingClusterListResponse interface.
17
+ */
18
+ export function instanceOfRightsizingClusterListResponse(value) {
19
+ if (!('report_id' in value) || value['report_id'] === undefined)
20
+ return false;
21
+ if (!('clusters' in value) || value['clusters'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function RightsizingClusterListResponseFromJSON(json) {
26
+ return RightsizingClusterListResponseFromJSONTyped(json, false);
27
+ }
28
+ export function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'report_id': json['report_id'],
34
+ 'clusters': (json['clusters'].map(RightsizingClusterUtilizationFromJSON)),
35
+ };
36
+ }
37
+ export function RightsizingClusterListResponseToJSON(json) {
38
+ return RightsizingClusterListResponseToJSONTyped(json, false);
39
+ }
40
+ export function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'report_id': value['report_id'],
46
+ 'clusters': (value['clusters'].map(RightsizingClusterUtilizationToJSON)),
47
+ };
48
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingClusterResponse
17
+ */
18
+ export interface RightsizingClusterResponse {
19
+ /**
20
+ * The report ID this data was aggregated from
21
+ * @type {string}
22
+ * @memberof RightsizingClusterResponse
23
+ */
24
+ report_id: string;
25
+ /**
26
+ *
27
+ * @type {RightsizingClusterUtilization}
28
+ * @memberof RightsizingClusterResponse
29
+ */
30
+ cluster: RightsizingClusterUtilization;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingClusterResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingClusterResponse(value: object): value is RightsizingClusterResponse;
36
+ export declare function RightsizingClusterResponseFromJSON(json: any): RightsizingClusterResponse;
37
+ export declare function RightsizingClusterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterResponse;
38
+ export declare function RightsizingClusterResponseToJSON(json: any): RightsizingClusterResponse;
39
+ export declare function RightsizingClusterResponseToJSONTyped(value?: RightsizingClusterResponse | null, ignoreDiscriminator?: boolean): any;