@openshift-migration-advisor/agent-sdk 0.12.0-1f1dc16fb9e5 → 0.12.0-4e95135f8529

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 (217) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +33 -5
  4. package/dist/apis/DefaultApi.d.ts +546 -39
  5. package/dist/apis/DefaultApi.js +591 -30
  6. package/dist/esm/apis/DefaultApi.d.ts +546 -39
  7. package/dist/esm/apis/DefaultApi.js +591 -30
  8. package/dist/esm/models/AgentStatus.d.ts +1 -1
  9. package/dist/esm/models/AgentStatus.js +3 -3
  10. package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
  11. package/dist/esm/models/ApplicationListResponse.js +44 -0
  12. package/dist/esm/models/ApplicationOverview.d.ts +51 -0
  13. package/dist/esm/models/ApplicationOverview.js +56 -0
  14. package/dist/esm/models/ApplicationVM.d.ts +38 -0
  15. package/dist/esm/models/ApplicationVM.js +47 -0
  16. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  17. package/dist/esm/models/ClusterFeatures.js +54 -0
  18. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  19. package/dist/esm/models/ClusterUtilization.js +67 -0
  20. package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
  21. package/dist/esm/models/CollectorStartRequest.js +4 -0
  22. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  23. package/dist/esm/models/CreateGroupRequest.js +0 -2
  24. package/dist/esm/models/CredentialStatus.d.ts +38 -0
  25. package/dist/esm/models/CredentialStatus.js +47 -0
  26. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  27. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  28. package/dist/esm/models/Group.d.ts +0 -6
  29. package/dist/esm/models/Group.js +0 -2
  30. package/dist/esm/models/GroupResponse.d.ts +7 -0
  31. package/dist/esm/models/GroupResponse.js +3 -0
  32. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  33. package/dist/esm/models/InspectorStatus.js +1 -10
  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 +14 -0
  37. package/dist/esm/models/InventoryData.js +6 -0
  38. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  39. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  40. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  41. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  42. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  43. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  44. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  45. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  46. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  47. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  48. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  49. package/dist/esm/models/RightsizingReport.js +18 -18
  50. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  51. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  52. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  53. package/dist/esm/models/StartInspectionRequest.js +5 -0
  54. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  55. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  56. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  57. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  58. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  59. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  60. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  61. package/dist/esm/models/VMLabelsResponse.js +47 -0
  62. package/dist/esm/models/VMNIC.d.ts +12 -0
  63. package/dist/esm/models/VMNIC.js +4 -0
  64. package/dist/esm/models/VcenterCredentials.d.ts +12 -0
  65. package/dist/esm/models/VcenterCredentials.js +4 -0
  66. package/dist/esm/models/VirtualMachine.d.ts +30 -6
  67. package/dist/esm/models/VirtualMachine.js +18 -10
  68. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  69. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  70. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  71. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  72. package/dist/esm/models/VmUtilizationDetails.d.ts +27 -9
  73. package/dist/esm/models/VmUtilizationDetails.js +39 -27
  74. package/dist/esm/models/index.d.ts +14 -0
  75. package/dist/esm/models/index.js +14 -0
  76. package/dist/esm/runtime.js +2 -1
  77. package/dist/models/AgentStatus.d.ts +1 -1
  78. package/dist/models/AgentStatus.js +3 -3
  79. package/dist/models/ApplicationListResponse.d.ts +33 -0
  80. package/dist/models/ApplicationListResponse.js +51 -0
  81. package/dist/models/ApplicationOverview.d.ts +51 -0
  82. package/dist/models/ApplicationOverview.js +63 -0
  83. package/dist/models/ApplicationVM.d.ts +38 -0
  84. package/dist/models/ApplicationVM.js +54 -0
  85. package/dist/models/ClusterFeatures.d.ts +54 -0
  86. package/dist/models/ClusterFeatures.js +62 -0
  87. package/dist/models/ClusterUtilization.d.ts +68 -0
  88. package/dist/models/ClusterUtilization.js +74 -0
  89. package/dist/models/CollectorStartRequest.d.ts +12 -0
  90. package/dist/models/CollectorStartRequest.js +4 -0
  91. package/dist/models/CreateGroupRequest.d.ts +0 -6
  92. package/dist/models/CreateGroupRequest.js +0 -2
  93. package/dist/models/CredentialStatus.d.ts +38 -0
  94. package/dist/models/CredentialStatus.js +54 -0
  95. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  96. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  97. package/dist/models/Group.d.ts +0 -6
  98. package/dist/models/Group.js +0 -2
  99. package/dist/models/GroupResponse.d.ts +7 -0
  100. package/dist/models/GroupResponse.js +3 -0
  101. package/dist/models/InspectorStatus.d.ts +0 -17
  102. package/dist/models/InspectorStatus.js +1 -10
  103. package/dist/models/Inventory.d.ts +7 -1
  104. package/dist/models/Inventory.js +5 -3
  105. package/dist/models/InventoryData.d.ts +14 -0
  106. package/dist/models/InventoryData.js +6 -0
  107. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  108. package/dist/models/RightsizingClusterListResponse.js +55 -0
  109. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  110. package/dist/models/RightsizingClusterResponse.js +55 -0
  111. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  112. package/dist/models/RightsizingClusterUtilization.js +102 -0
  113. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  114. package/dist/models/RightsizingCollectRequest.js +12 -12
  115. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  116. package/dist/models/RightsizingMetricStats.js +3 -3
  117. package/dist/models/RightsizingReport.d.ts +6 -6
  118. package/dist/models/RightsizingReport.js +18 -18
  119. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  120. package/dist/models/RightsizingReportSummary.js +18 -18
  121. package/dist/models/StartInspectionRequest.d.ts +8 -1
  122. package/dist/models/StartInspectionRequest.js +5 -0
  123. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  124. package/dist/models/UpdateGroupRequest.js +0 -2
  125. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  126. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  127. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  128. package/dist/models/VMFilterOptionsResponse.js +66 -0
  129. package/dist/models/VMLabelsResponse.d.ts +38 -0
  130. package/dist/models/VMLabelsResponse.js +54 -0
  131. package/dist/models/VMNIC.d.ts +12 -0
  132. package/dist/models/VMNIC.js +4 -0
  133. package/dist/models/VcenterCredentials.d.ts +12 -0
  134. package/dist/models/VcenterCredentials.js +4 -0
  135. package/dist/models/VirtualMachine.d.ts +30 -6
  136. package/dist/models/VirtualMachine.js +18 -10
  137. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  138. package/dist/models/VirtualMachineDetail.js +7 -0
  139. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  140. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  141. package/dist/models/VmUtilizationDetails.d.ts +27 -9
  142. package/dist/models/VmUtilizationDetails.js +39 -27
  143. package/dist/models/index.d.ts +14 -0
  144. package/dist/models/index.js +14 -0
  145. package/dist/runtime.js +2 -1
  146. package/docs/AgentStatus.md +2 -2
  147. package/docs/ApplicationListResponse.md +34 -0
  148. package/docs/ApplicationOverview.md +40 -0
  149. package/docs/ApplicationVM.md +36 -0
  150. package/docs/ClusterFeatures.md +38 -0
  151. package/docs/ClusterUtilization.md +46 -0
  152. package/docs/CollectorStartRequest.md +4 -0
  153. package/docs/CreateGroupRequest.md +0 -2
  154. package/docs/CredentialStatus.md +36 -0
  155. package/docs/DefaultApi.md +1127 -197
  156. package/docs/DeleteLabelGloballyResponse.md +36 -0
  157. package/docs/GetInventory200Response.md +4 -2
  158. package/docs/Group.md +0 -2
  159. package/docs/GroupResponse.md +2 -0
  160. package/docs/InspectorStatus.md +0 -4
  161. package/docs/Inventory.md +4 -2
  162. package/docs/InventoryData.md +4 -0
  163. package/docs/RightsizingClusterListResponse.md +36 -0
  164. package/docs/RightsizingClusterResponse.md +36 -0
  165. package/docs/RightsizingClusterUtilization.md +60 -0
  166. package/docs/RightsizingCollectRequest.md +12 -12
  167. package/docs/RightsizingMetricStats.md +2 -2
  168. package/docs/RightsizingReport.md +12 -12
  169. package/docs/RightsizingReportSummary.md +12 -12
  170. package/docs/StartInspectionRequest.md +3 -1
  171. package/docs/UpdateGroupRequest.md +0 -2
  172. package/docs/UpdateLabelVMsRequest.md +36 -0
  173. package/docs/VMFilterOptionsResponse.md +42 -0
  174. package/docs/VMLabelsResponse.md +36 -0
  175. package/docs/VMNIC.md +4 -0
  176. package/docs/VcenterCredentials.md +4 -0
  177. package/docs/VirtualMachine.md +18 -10
  178. package/docs/VirtualMachineDetail.md +6 -0
  179. package/docs/VirtualMachineUpdateRequest.md +36 -0
  180. package/docs/VmUtilizationDetails.md +24 -18
  181. package/package.json +1 -1
  182. package/src/apis/DefaultApi.ts +1136 -93
  183. package/src/models/AgentStatus.ts +4 -4
  184. package/src/models/ApplicationListResponse.ts +74 -0
  185. package/src/models/ApplicationOverview.ts +101 -0
  186. package/src/models/ApplicationVM.ts +75 -0
  187. package/src/models/ClusterFeatures.ts +94 -0
  188. package/src/models/ClusterUtilization.ts +120 -0
  189. package/src/models/CollectorStartRequest.ts +16 -0
  190. package/src/models/CreateGroupRequest.ts +0 -8
  191. package/src/models/CredentialStatus.ts +75 -0
  192. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  193. package/src/models/Group.ts +0 -8
  194. package/src/models/GroupResponse.ts +15 -0
  195. package/src/models/InspectorStatus.ts +1 -28
  196. package/src/models/Inventory.ts +12 -4
  197. package/src/models/InventoryData.ts +30 -0
  198. package/src/models/RightsizingClusterListResponse.ts +83 -0
  199. package/src/models/RightsizingClusterResponse.ts +83 -0
  200. package/src/models/RightsizingClusterUtilization.ts +185 -0
  201. package/src/models/RightsizingCollectRequest.ts +18 -18
  202. package/src/models/RightsizingMetricStats.ts +4 -4
  203. package/src/models/RightsizingReport.ts +24 -24
  204. package/src/models/RightsizingReportSummary.ts +24 -24
  205. package/src/models/StartInspectionRequest.ts +18 -1
  206. package/src/models/UpdateGroupRequest.ts +0 -8
  207. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  208. package/src/models/VMFilterOptionsResponse.ts +102 -0
  209. package/src/models/VMLabelsResponse.ts +75 -0
  210. package/src/models/VMNIC.ts +16 -0
  211. package/src/models/VcenterCredentials.ts +16 -0
  212. package/src/models/VirtualMachine.ts +48 -16
  213. package/src/models/VirtualMachineDetail.ts +31 -0
  214. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  215. package/src/models/VmUtilizationDetails.ts +63 -36
  216. package/src/models/index.ts +14 -0
  217. package/src/runtime.ts +1 -1
@@ -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,74 @@
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
+ import type { ApplicationOverview } from './ApplicationOverview.js';
17
+ import {
18
+ ApplicationOverviewFromJSON,
19
+ ApplicationOverviewFromJSONTyped,
20
+ ApplicationOverviewToJSON,
21
+ ApplicationOverviewToJSONTyped,
22
+ } from './ApplicationOverview.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApplicationListResponse
28
+ */
29
+ export interface ApplicationListResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ApplicationOverview>}
33
+ * @memberof ApplicationListResponse
34
+ */
35
+ applications: Array<ApplicationOverview>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ApplicationListResponse interface.
40
+ */
41
+ export function instanceOfApplicationListResponse(value: object): value is ApplicationListResponse {
42
+ if (!('applications' in value) || value['applications'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function ApplicationListResponseFromJSON(json: any): ApplicationListResponse {
47
+ return ApplicationListResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function ApplicationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationListResponse {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'applications': ((json['applications'] as Array<any>).map(ApplicationOverviewFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function ApplicationListResponseToJSON(json: any): ApplicationListResponse {
61
+ return ApplicationListResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApplicationListResponseToJSONTyped(value?: ApplicationListResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'applications': ((value['applications'] as Array<any>).map(ApplicationOverviewToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,101 @@
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
+ import type { ApplicationVM } from './ApplicationVM.js';
17
+ import {
18
+ ApplicationVMFromJSON,
19
+ ApplicationVMFromJSONTyped,
20
+ ApplicationVMToJSON,
21
+ ApplicationVMToJSONTyped,
22
+ } from './ApplicationVM.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApplicationOverview
28
+ */
29
+ export interface ApplicationOverview {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApplicationOverview
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApplicationOverview
40
+ */
41
+ description: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ApplicationOverview
46
+ */
47
+ vmCount: number;
48
+ /**
49
+ *
50
+ * @type {Array<ApplicationVM>}
51
+ * @memberof ApplicationOverview
52
+ */
53
+ vms: Array<ApplicationVM>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApplicationOverview interface.
58
+ */
59
+ export function instanceOfApplicationOverview(value: object): value is ApplicationOverview {
60
+ if (!('name' in value) || value['name'] === undefined) return false;
61
+ if (!('description' in value) || value['description'] === undefined) return false;
62
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
63
+ if (!('vms' in value) || value['vms'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function ApplicationOverviewFromJSON(json: any): ApplicationOverview {
68
+ return ApplicationOverviewFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationOverview {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'name': json['name'],
78
+ 'description': json['description'],
79
+ 'vmCount': json['vmCount'],
80
+ 'vms': ((json['vms'] as Array<any>).map(ApplicationVMFromJSON)),
81
+ };
82
+ }
83
+
84
+ export function ApplicationOverviewToJSON(json: any): ApplicationOverview {
85
+ return ApplicationOverviewToJSONTyped(json, false);
86
+ }
87
+
88
+ export function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'name': value['name'],
96
+ 'description': value['description'],
97
+ 'vmCount': value['vmCount'],
98
+ 'vms': ((value['vms'] as Array<any>).map(ApplicationVMToJSON)),
99
+ };
100
+ }
101
+
@@ -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 ApplicationVM
20
+ */
21
+ export interface ApplicationVM {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApplicationVM
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApplicationVM
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApplicationVM interface.
38
+ */
39
+ export function instanceOfApplicationVM(value: object): value is ApplicationVM {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ApplicationVMFromJSON(json: any): ApplicationVM {
46
+ return ApplicationVMFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ApplicationVMFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationVM {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function ApplicationVMToJSON(json: any): ApplicationVM {
61
+ return ApplicationVMToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApplicationVMToJSONTyped(value?: ApplicationVM | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -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,120 @@
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 ClusterUtilization
20
+ */
21
+ export interface ClusterUtilization {
22
+ /**
23
+ * Average CPU utilization percentage (0-100)
24
+ * @type {number}
25
+ * @memberof ClusterUtilization
26
+ */
27
+ cpu_avg: number;
28
+ /**
29
+ * 95th percentile CPU utilization percentage (0-100)
30
+ * @type {number}
31
+ * @memberof ClusterUtilization
32
+ */
33
+ cpu_p95: number;
34
+ /**
35
+ * Maximum CPU utilization percentage (0-100)
36
+ * @type {number}
37
+ * @memberof ClusterUtilization
38
+ */
39
+ cpu_max: number;
40
+ /**
41
+ * Average memory utilization percentage (0-100)
42
+ * @type {number}
43
+ * @memberof ClusterUtilization
44
+ */
45
+ mem_avg: number;
46
+ /**
47
+ * 95th percentile memory utilization percentage (0-100)
48
+ * @type {number}
49
+ * @memberof ClusterUtilization
50
+ */
51
+ mem_p95: number;
52
+ /**
53
+ * Maximum memory utilization percentage (0-100)
54
+ * @type {number}
55
+ * @memberof ClusterUtilization
56
+ */
57
+ mem_max: number;
58
+ /**
59
+ * Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
60
+ * @type {number}
61
+ * @memberof ClusterUtilization
62
+ */
63
+ confidence: number;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the ClusterUtilization interface.
68
+ */
69
+ export function instanceOfClusterUtilization(value: object): value is ClusterUtilization {
70
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined) return false;
71
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined) return false;
72
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined) return false;
73
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined) return false;
74
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined) return false;
75
+ if (!('mem_max' in value) || value['mem_max'] === undefined) return false;
76
+ if (!('confidence' in value) || value['confidence'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function ClusterUtilizationFromJSON(json: any): ClusterUtilization {
81
+ return ClusterUtilizationFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'cpu_avg': json['cpu_avg'],
91
+ 'cpu_p95': json['cpu_p95'],
92
+ 'cpu_max': json['cpu_max'],
93
+ 'mem_avg': json['mem_avg'],
94
+ 'mem_p95': json['mem_p95'],
95
+ 'mem_max': json['mem_max'],
96
+ 'confidence': json['confidence'],
97
+ };
98
+ }
99
+
100
+ export function ClusterUtilizationToJSON(json: any): ClusterUtilization {
101
+ return ClusterUtilizationToJSONTyped(json, false);
102
+ }
103
+
104
+ export function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'cpu_avg': value['cpu_avg'],
112
+ 'cpu_p95': value['cpu_p95'],
113
+ 'cpu_max': value['cpu_max'],
114
+ 'mem_avg': value['mem_avg'],
115
+ 'mem_p95': value['mem_p95'],
116
+ 'mem_max': value['mem_max'],
117
+ 'confidence': value['confidence'],
118
+ };
119
+ }
120
+
@@ -37,6 +37,18 @@ export interface CollectorStartRequest {
37
37
  * @memberof CollectorStartRequest
38
38
  */
39
39
  password: string;
40
+ /**
41
+ * PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
42
+ * @type {string}
43
+ * @memberof CollectorStartRequest
44
+ */
45
+ cacert?: string;
46
+ /**
47
+ * When true, TLS certificate verification is skipped. Must not be set to true alongside cacert — that combination returns 400. When omitted: if cacert is absent the connection skips TLS verification (backwards compatibility); if cacert is provided the connection verifies TLS using that certificate — skipTls need not be sent.
48
+ * @type {boolean}
49
+ * @memberof CollectorStartRequest
50
+ */
51
+ skipTls?: boolean;
40
52
  }
41
53
 
42
54
  /**
@@ -62,6 +74,8 @@ export function CollectorStartRequestFromJSONTyped(json: any, ignoreDiscriminato
62
74
  'url': json['url'],
63
75
  'username': json['username'],
64
76
  'password': json['password'],
77
+ 'cacert': json['cacert'] == null ? undefined : json['cacert'],
78
+ 'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
65
79
  };
66
80
  }
67
81
 
@@ -79,6 +93,8 @@ export function CollectorStartRequestToJSONTyped(value?: CollectorStartRequest |
79
93
  'url': value['url'],
80
94
  'username': value['username'],
81
95
  'password': value['password'],
96
+ 'cacert': value['cacert'],
97
+ 'skipTls': value['skipTls'],
82
98
  };
83
99
  }
84
100
 
@@ -37,12 +37,6 @@ export interface CreateGroupRequest {
37
37
  * @memberof CreateGroupRequest
38
38
  */
39
39
  filter: string;
40
- /**
41
- * Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
42
- * @type {Array<string>}
43
- * @memberof CreateGroupRequest
44
- */
45
- tags?: Array<string>;
46
40
  }
47
41
 
48
42
  /**
@@ -67,7 +61,6 @@ export function CreateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator:
67
61
  'name': json['name'],
68
62
  'description': json['description'] == null ? undefined : json['description'],
69
63
  'filter': json['filter'],
70
- 'tags': json['tags'] == null ? undefined : json['tags'],
71
64
  };
72
65
  }
73
66
 
@@ -85,7 +78,6 @@ export function CreateGroupRequestToJSONTyped(value?: CreateGroupRequest | null,
85
78
  'name': value['name'],
86
79
  'description': value['description'],
87
80
  'filter': value['filter'],
88
- 'tags': value['tags'],
89
81
  };
90
82
  }
91
83
 
@@ -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 CredentialStatus
20
+ */
21
+ export interface CredentialStatus {
22
+ /**
23
+ * vCenter URL the credentials belong to
24
+ * @type {string}
25
+ * @memberof CredentialStatus
26
+ */
27
+ url: string;
28
+ /**
29
+ * Whether credentials are stored for the returned URL.
30
+ * @type {boolean}
31
+ * @memberof CredentialStatus
32
+ */
33
+ valid: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CredentialStatus interface.
38
+ */
39
+ export function instanceOfCredentialStatus(value: object): value is CredentialStatus {
40
+ if (!('url' in value) || value['url'] === undefined) return false;
41
+ if (!('valid' in value) || value['valid'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function CredentialStatusFromJSON(json: any): CredentialStatus {
46
+ return CredentialStatusFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CredentialStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialStatus {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'url': json['url'],
56
+ 'valid': json['valid'],
57
+ };
58
+ }
59
+
60
+ export function CredentialStatusToJSON(json: any): CredentialStatus {
61
+ return CredentialStatusToJSONTyped(json, false);
62
+ }
63
+
64
+ export function CredentialStatusToJSONTyped(value?: CredentialStatus | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'url': value['url'],
72
+ 'valid': value['valid'],
73
+ };
74
+ }
75
+