@openshift-migration-advisor/agent-sdk 0.12.0-645d2fae3eee → 0.12.0-a3d6bdc8bce2

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 (62) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +5 -2
  3. package/dist/apis/DefaultApi.d.ts +31 -0
  4. package/dist/apis/DefaultApi.js +36 -0
  5. package/dist/esm/apis/DefaultApi.d.ts +31 -0
  6. package/dist/esm/apis/DefaultApi.js +36 -0
  7. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  8. package/dist/esm/models/ClusterUtilization.js +67 -0
  9. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  10. package/dist/esm/models/CreateGroupRequest.js +0 -2
  11. package/dist/esm/models/Group.d.ts +0 -6
  12. package/dist/esm/models/Group.js +0 -2
  13. package/dist/esm/models/GroupResponse.d.ts +7 -0
  14. package/dist/esm/models/GroupResponse.js +3 -0
  15. package/dist/esm/models/InventoryData.d.ts +7 -0
  16. package/dist/esm/models/InventoryData.js +3 -0
  17. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  18. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  19. package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
  20. package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
  21. package/dist/esm/models/VirtualMachine.d.ts +2 -2
  22. package/dist/esm/models/VirtualMachine.js +2 -2
  23. package/dist/esm/models/index.d.ts +2 -0
  24. package/dist/esm/models/index.js +2 -0
  25. package/dist/models/ClusterUtilization.d.ts +68 -0
  26. package/dist/models/ClusterUtilization.js +74 -0
  27. package/dist/models/CreateGroupRequest.d.ts +0 -6
  28. package/dist/models/CreateGroupRequest.js +0 -2
  29. package/dist/models/Group.d.ts +0 -6
  30. package/dist/models/Group.js +0 -2
  31. package/dist/models/GroupResponse.d.ts +7 -0
  32. package/dist/models/GroupResponse.js +3 -0
  33. package/dist/models/InventoryData.d.ts +7 -0
  34. package/dist/models/InventoryData.js +3 -0
  35. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  36. package/dist/models/UpdateGroupRequest.js +0 -2
  37. package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
  38. package/dist/models/VMFilterOptionsResponse.js +62 -0
  39. package/dist/models/VirtualMachine.d.ts +2 -2
  40. package/dist/models/VirtualMachine.js +2 -2
  41. package/dist/models/index.d.ts +2 -0
  42. package/dist/models/index.js +2 -0
  43. package/docs/ClusterUtilization.md +46 -0
  44. package/docs/CreateGroupRequest.md +0 -2
  45. package/docs/DefaultApi.md +59 -0
  46. package/docs/Group.md +0 -2
  47. package/docs/GroupResponse.md +2 -0
  48. package/docs/InventoryData.md +2 -0
  49. package/docs/UpdateGroupRequest.md +0 -2
  50. package/docs/VMFilterOptionsResponse.md +40 -0
  51. package/docs/VirtualMachine.md +2 -2
  52. package/package.json +1 -1
  53. package/src/apis/DefaultApi.ts +63 -0
  54. package/src/models/ClusterUtilization.ts +120 -0
  55. package/src/models/CreateGroupRequest.ts +0 -8
  56. package/src/models/Group.ts +0 -8
  57. package/src/models/GroupResponse.ts +15 -0
  58. package/src/models/InventoryData.ts +15 -0
  59. package/src/models/UpdateGroupRequest.ts +0 -8
  60. package/src/models/VMFilterOptionsResponse.ts +93 -0
  61. package/src/models/VirtualMachine.ts +4 -4
  62. package/src/models/index.ts +2 -0
@@ -0,0 +1,93 @@
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 VMFilterOptionsResponse
20
+ */
21
+ export interface VMFilterOptionsResponse {
22
+ /**
23
+ * Distinct cluster names
24
+ * @type {Array<string>}
25
+ * @memberof VMFilterOptionsResponse
26
+ */
27
+ clusters: Array<string>;
28
+ /**
29
+ * Distinct datacenter names
30
+ * @type {Array<string>}
31
+ * @memberof VMFilterOptionsResponse
32
+ */
33
+ datacenters: Array<string>;
34
+ /**
35
+ * Distinct concern labels
36
+ * @type {Array<string>}
37
+ * @memberof VMFilterOptionsResponse
38
+ */
39
+ concernLabels: Array<string>;
40
+ /**
41
+ * Distinct concern categories
42
+ * @type {Array<string>}
43
+ * @memberof VMFilterOptionsResponse
44
+ */
45
+ concernCategories: Array<string>;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the VMFilterOptionsResponse interface.
50
+ */
51
+ export function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse {
52
+ if (!('clusters' in value) || value['clusters'] === undefined) return false;
53
+ if (!('datacenters' in value) || value['datacenters'] === undefined) return false;
54
+ if (!('concernLabels' in value) || value['concernLabels'] === undefined) return false;
55
+ if (!('concernCategories' in value) || value['concernCategories'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse {
60
+ return VMFilterOptionsResponseFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'clusters': json['clusters'],
70
+ 'datacenters': json['datacenters'],
71
+ 'concernLabels': json['concernLabels'],
72
+ 'concernCategories': json['concernCategories'],
73
+ };
74
+ }
75
+
76
+ export function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse {
77
+ return VMFilterOptionsResponseToJSONTyped(json, false);
78
+ }
79
+
80
+ export function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'clusters': value['clusters'],
88
+ 'datacenters': value['datacenters'],
89
+ 'concernLabels': value['concernLabels'],
90
+ 'concernCategories': value['concernCategories'],
91
+ };
92
+ }
93
+
@@ -106,11 +106,11 @@ export interface VirtualMachine {
106
106
  */
107
107
  inspectionConcernCount?: number;
108
108
  /**
109
- * Tags aggregated from matching groups
109
+ * Names of groups this VM matches
110
110
  * @type {Array<string>}
111
111
  * @memberof VirtualMachine
112
112
  */
113
- tags?: Array<string>;
113
+ groups?: Array<string>;
114
114
  /**
115
115
  * User-defined labels for this VM
116
116
  * @type {Array<string>}
@@ -181,7 +181,7 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
181
181
  'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
182
182
  'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
183
183
  'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
184
- 'tags': json['tags'] == null ? undefined : json['tags'],
184
+ 'groups': json['groups'] == null ? undefined : json['groups'],
185
185
  'labels': json['labels'] == null ? undefined : json['labels'],
186
186
  'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
187
187
  'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
@@ -214,7 +214,7 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
214
214
  'migrationExcluded': value['migrationExcluded'],
215
215
  'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
216
216
  'inspectionConcernCount': value['inspectionConcernCount'],
217
- 'tags': value['tags'],
217
+ 'groups': value['groups'],
218
218
  'labels': value['labels'],
219
219
  'utilization_cpu_p95': value['utilization_cpu_p95'],
220
220
  'utilization_mem_p95': value['utilization_mem_p95'],
@@ -4,6 +4,7 @@ export * from './AgentModeRequest.js';
4
4
  export * from './AgentStatus.js';
5
5
  export * from './BenchmarkRun.js';
6
6
  export * from './ClusterFeatures.js';
7
+ export * from './ClusterUtilization.js';
7
8
  export * from './CollectorStartRequest.js';
8
9
  export * from './CollectorStatus.js';
9
10
  export * from './CreateGroupRequest.js';
@@ -53,6 +54,7 @@ export * from './UpdateLabelVMsRequest.js';
53
54
  export * from './VCenter.js';
54
55
  export * from './VMDevice.js';
55
56
  export * from './VMDisk.js';
57
+ export * from './VMFilterOptionsResponse.js';
56
58
  export * from './VMIssue.js';
57
59
  export * from './VMLabelsResponse.js';
58
60
  export * from './VMNIC.js';