@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,55 @@
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 VMFilterOptionsResponse interface.
16
+ */
17
+ export function instanceOfVMFilterOptionsResponse(value) {
18
+ if (!('clusters' in value) || value['clusters'] === undefined)
19
+ return false;
20
+ if (!('datacenters' in value) || value['datacenters'] === undefined)
21
+ return false;
22
+ if (!('concernLabels' in value) || value['concernLabels'] === undefined)
23
+ return false;
24
+ if (!('concernCategories' in value) || value['concernCategories'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function VMFilterOptionsResponseFromJSON(json) {
29
+ return VMFilterOptionsResponseFromJSONTyped(json, false);
30
+ }
31
+ export function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'clusters': json['clusters'],
37
+ 'datacenters': json['datacenters'],
38
+ 'concernLabels': json['concernLabels'],
39
+ 'concernCategories': json['concernCategories'],
40
+ };
41
+ }
42
+ export function VMFilterOptionsResponseToJSON(json) {
43
+ return VMFilterOptionsResponseToJSONTyped(json, false);
44
+ }
45
+ export function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'clusters': value['clusters'],
51
+ 'datacenters': value['datacenters'],
52
+ 'concernLabels': value['concernLabels'],
53
+ 'concernCategories': value['concernCategories'],
54
+ };
55
+ }
@@ -95,11 +95,11 @@ export interface VirtualMachine {
95
95
  */
96
96
  inspectionConcernCount?: number;
97
97
  /**
98
- * Tags aggregated from matching groups
98
+ * Names of groups this VM matches
99
99
  * @type {Array<string>}
100
100
  * @memberof VirtualMachine
101
101
  */
102
- tags?: Array<string>;
102
+ groups?: Array<string>;
103
103
  /**
104
104
  * User-defined labels for this VM
105
105
  * @type {Array<string>}
@@ -55,7 +55,7 @@ export function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
56
56
  'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
57
57
  'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
58
- 'tags': json['tags'] == null ? undefined : json['tags'],
58
+ 'groups': json['groups'] == null ? undefined : json['groups'],
59
59
  'labels': json['labels'] == null ? undefined : json['labels'],
60
60
  'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
61
61
  'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
@@ -84,7 +84,7 @@ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
84
84
  'migrationExcluded': value['migrationExcluded'],
85
85
  'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
86
86
  'inspectionConcernCount': value['inspectionConcernCount'],
87
- 'tags': value['tags'],
87
+ 'groups': value['groups'],
88
88
  'labels': value['labels'],
89
89
  'utilization_cpu_p95': value['utilization_cpu_p95'],
90
90
  'utilization_mem_p95': value['utilization_mem_p95'],
@@ -2,6 +2,7 @@ export * from './AgentModeRequest.js';
2
2
  export * from './AgentStatus.js';
3
3
  export * from './BenchmarkRun.js';
4
4
  export * from './ClusterFeatures.js';
5
+ export * from './ClusterUtilization.js';
5
6
  export * from './CollectorStartRequest.js';
6
7
  export * from './CollectorStatus.js';
7
8
  export * from './CreateGroupRequest.js';
@@ -51,6 +52,7 @@ export * from './UpdateLabelVMsRequest.js';
51
52
  export * from './VCenter.js';
52
53
  export * from './VMDevice.js';
53
54
  export * from './VMDisk.js';
55
+ export * from './VMFilterOptionsResponse.js';
54
56
  export * from './VMIssue.js';
55
57
  export * from './VMLabelsResponse.js';
56
58
  export * from './VMNIC.js';
@@ -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';
@@ -0,0 +1,68 @@
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 ClusterUtilization
16
+ */
17
+ export interface ClusterUtilization {
18
+ /**
19
+ * Average CPU utilization percentage (0-100)
20
+ * @type {number}
21
+ * @memberof ClusterUtilization
22
+ */
23
+ cpu_avg: number;
24
+ /**
25
+ * 95th percentile CPU utilization percentage (0-100)
26
+ * @type {number}
27
+ * @memberof ClusterUtilization
28
+ */
29
+ cpu_p95: number;
30
+ /**
31
+ * Maximum CPU utilization percentage (0-100)
32
+ * @type {number}
33
+ * @memberof ClusterUtilization
34
+ */
35
+ cpu_max: number;
36
+ /**
37
+ * Average memory utilization percentage (0-100)
38
+ * @type {number}
39
+ * @memberof ClusterUtilization
40
+ */
41
+ mem_avg: number;
42
+ /**
43
+ * 95th percentile memory utilization percentage (0-100)
44
+ * @type {number}
45
+ * @memberof ClusterUtilization
46
+ */
47
+ mem_p95: number;
48
+ /**
49
+ * Maximum memory utilization percentage (0-100)
50
+ * @type {number}
51
+ * @memberof ClusterUtilization
52
+ */
53
+ mem_max: number;
54
+ /**
55
+ * Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
56
+ * @type {number}
57
+ * @memberof ClusterUtilization
58
+ */
59
+ confidence: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ClusterUtilization interface.
63
+ */
64
+ export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
65
+ export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
66
+ export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
67
+ export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
68
+ export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfClusterUtilization = instanceOfClusterUtilization;
17
+ exports.ClusterUtilizationFromJSON = ClusterUtilizationFromJSON;
18
+ exports.ClusterUtilizationFromJSONTyped = ClusterUtilizationFromJSONTyped;
19
+ exports.ClusterUtilizationToJSON = ClusterUtilizationToJSON;
20
+ exports.ClusterUtilizationToJSONTyped = ClusterUtilizationToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ClusterUtilization interface.
23
+ */
24
+ function instanceOfClusterUtilization(value) {
25
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
26
+ return false;
27
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
28
+ return false;
29
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined)
30
+ return false;
31
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined)
32
+ return false;
33
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined)
34
+ return false;
35
+ if (!('mem_max' in value) || value['mem_max'] === undefined)
36
+ return false;
37
+ if (!('confidence' in value) || value['confidence'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function ClusterUtilizationFromJSON(json) {
42
+ return ClusterUtilizationFromJSONTyped(json, false);
43
+ }
44
+ function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'cpu_avg': json['cpu_avg'],
50
+ 'cpu_p95': json['cpu_p95'],
51
+ 'cpu_max': json['cpu_max'],
52
+ 'mem_avg': json['mem_avg'],
53
+ 'mem_p95': json['mem_p95'],
54
+ 'mem_max': json['mem_max'],
55
+ 'confidence': json['confidence'],
56
+ };
57
+ }
58
+ function ClusterUtilizationToJSON(json) {
59
+ return ClusterUtilizationToJSONTyped(json, false);
60
+ }
61
+ function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'cpu_avg': value['cpu_avg'],
67
+ 'cpu_p95': value['cpu_p95'],
68
+ 'cpu_max': value['cpu_max'],
69
+ 'mem_avg': value['mem_avg'],
70
+ 'mem_p95': value['mem_p95'],
71
+ 'mem_max': value['mem_max'],
72
+ 'confidence': value['confidence'],
73
+ };
74
+ }
@@ -33,12 +33,6 @@ export interface CreateGroupRequest {
33
33
  * @memberof CreateGroupRequest
34
34
  */
35
35
  filter: string;
36
- /**
37
- * Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
38
- * @type {Array<string>}
39
- * @memberof CreateGroupRequest
40
- */
41
- tags?: Array<string>;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the CreateGroupRequest interface.
@@ -39,7 +39,6 @@ function CreateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'name': json['name'],
40
40
  'description': json['description'] == null ? undefined : json['description'],
41
41
  'filter': json['filter'],
42
- 'tags': json['tags'] == null ? undefined : json['tags'],
43
42
  };
44
43
  }
45
44
  function CreateGroupRequestToJSON(json) {
@@ -53,6 +52,5 @@ function CreateGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
53
52
  'name': value['name'],
54
53
  'description': value['description'],
55
54
  'filter': value['filter'],
56
- 'tags': value['tags'],
57
55
  };
58
56
  }
@@ -39,12 +39,6 @@ export interface Group {
39
39
  * @memberof Group
40
40
  */
41
41
  filter: string;
42
- /**
43
- * Tags associated with this group (applied to matching VMs)
44
- * @type {Array<string>}
45
- * @memberof Group
46
- */
47
- tags?: Array<string>;
48
42
  /**
49
43
  * Timestamp when the group was created
50
44
  * @type {Date}
@@ -42,7 +42,6 @@ function GroupFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'name': json['name'],
43
43
  'description': json['description'] == null ? undefined : json['description'],
44
44
  'filter': json['filter'],
45
- 'tags': json['tags'] == null ? undefined : json['tags'],
46
45
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
47
46
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
48
47
  };
@@ -59,7 +58,6 @@ function GroupToJSONTyped(value, ignoreDiscriminator = false) {
59
58
  'name': value['name'],
60
59
  'description': value['description'],
61
60
  'filter': value['filter'],
62
- 'tags': value['tags'],
63
61
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
64
62
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
65
63
  };
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Group } from './Group.js';
13
+ import type { Inventory } from './Inventory.js';
13
14
  import type { VirtualMachine } from './VirtualMachine.js';
14
15
  /**
15
16
  *
@@ -23,6 +24,12 @@ export interface GroupResponse {
23
24
  * @memberof GroupResponse
24
25
  */
25
26
  group: Group;
27
+ /**
28
+ *
29
+ * @type {Inventory}
30
+ * @memberof GroupResponse
31
+ */
32
+ inventory?: Inventory;
26
33
  /**
27
34
  *
28
35
  * @type {Array<VirtualMachine>}
@@ -19,6 +19,7 @@ exports.GroupResponseFromJSONTyped = GroupResponseFromJSONTyped;
19
19
  exports.GroupResponseToJSON = GroupResponseToJSON;
20
20
  exports.GroupResponseToJSONTyped = GroupResponseToJSONTyped;
21
21
  const Group_js_1 = require("./Group.js");
22
+ const Inventory_js_1 = require("./Inventory.js");
22
23
  const VirtualMachine_js_1 = require("./VirtualMachine.js");
23
24
  /**
24
25
  * Check if a given object implements the GroupResponse interface.
@@ -45,6 +46,7 @@ function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
45
46
  }
46
47
  return {
47
48
  'group': (0, Group_js_1.GroupFromJSON)(json['group']),
49
+ 'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
48
50
  'vms': (json['vms'].map(VirtualMachine_js_1.VirtualMachineFromJSON)),
49
51
  'total': json['total'],
50
52
  'page': json['page'],
@@ -60,6 +62,7 @@ function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
60
62
  }
61
63
  return {
62
64
  'group': (0, Group_js_1.GroupToJSON)(value['group']),
65
+ 'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
63
66
  'vms': (value['vms'].map(VirtualMachine_js_1.VirtualMachineToJSON)),
64
67
  'total': value['total'],
65
68
  'page': value['page'],
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { VCenter } from './VCenter.js';
13
13
  import type { Infra } from './Infra.js';
14
+ import type { ClusterUtilization } from './ClusterUtilization.js';
14
15
  import type { VMs } from './VMs.js';
15
16
  import type { ClusterFeatures } from './ClusterFeatures.js';
16
17
  /**
@@ -31,6 +32,12 @@ export interface InventoryData {
31
32
  * @memberof InventoryData
32
33
  */
33
34
  clusterFeatures?: ClusterFeatures;
35
+ /**
36
+ *
37
+ * @type {ClusterUtilization}
38
+ * @memberof InventoryData
39
+ */
40
+ clusterUtilization?: ClusterUtilization;
34
41
  /**
35
42
  *
36
43
  * @type {VMs}
@@ -20,6 +20,7 @@ exports.InventoryDataToJSON = InventoryDataToJSON;
20
20
  exports.InventoryDataToJSONTyped = InventoryDataToJSONTyped;
21
21
  const VCenter_js_1 = require("./VCenter.js");
22
22
  const Infra_js_1 = require("./Infra.js");
23
+ const ClusterUtilization_js_1 = require("./ClusterUtilization.js");
23
24
  const VMs_js_1 = require("./VMs.js");
24
25
  const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
25
26
  /**
@@ -42,6 +43,7 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
42
43
  return {
43
44
  'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
44
45
  'clusterFeatures': json['clusterFeatures'] == null ? undefined : (0, ClusterFeatures_js_1.ClusterFeaturesFromJSON)(json['clusterFeatures']),
46
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : (0, ClusterUtilization_js_1.ClusterUtilizationFromJSON)(json['clusterUtilization']),
45
47
  'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
46
48
  'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
47
49
  };
@@ -56,6 +58,7 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
56
58
  return {
57
59
  'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
58
60
  'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
61
+ 'clusterUtilization': (0, ClusterUtilization_js_1.ClusterUtilizationToJSON)(value['clusterUtilization']),
59
62
  'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
60
63
  'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
61
64
  };
@@ -33,12 +33,6 @@ export interface UpdateGroupRequest {
33
33
  * @memberof UpdateGroupRequest
34
34
  */
35
35
  filter?: string;
36
- /**
37
- * Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
38
- * @type {Array<string>}
39
- * @memberof UpdateGroupRequest
40
- */
41
- tags?: Array<string>;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the UpdateGroupRequest interface.
@@ -35,7 +35,6 @@ function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'name': json['name'] == null ? undefined : json['name'],
36
36
  'description': json['description'] == null ? undefined : json['description'],
37
37
  'filter': json['filter'] == null ? undefined : json['filter'],
38
- 'tags': json['tags'] == null ? undefined : json['tags'],
39
38
  };
40
39
  }
41
40
  function UpdateGroupRequestToJSON(json) {
@@ -49,6 +48,5 @@ function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
49
48
  'name': value['name'],
50
49
  'description': value['description'],
51
50
  'filter': value['filter'],
52
- 'tags': value['tags'],
53
51
  };
54
52
  }
@@ -0,0 +1,50 @@
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 VMFilterOptionsResponse
16
+ */
17
+ export interface VMFilterOptionsResponse {
18
+ /**
19
+ * Distinct cluster names
20
+ * @type {Array<string>}
21
+ * @memberof VMFilterOptionsResponse
22
+ */
23
+ clusters: Array<string>;
24
+ /**
25
+ * Distinct datacenter names
26
+ * @type {Array<string>}
27
+ * @memberof VMFilterOptionsResponse
28
+ */
29
+ datacenters: Array<string>;
30
+ /**
31
+ * Distinct concern labels
32
+ * @type {Array<string>}
33
+ * @memberof VMFilterOptionsResponse
34
+ */
35
+ concernLabels: Array<string>;
36
+ /**
37
+ * Distinct concern categories
38
+ * @type {Array<string>}
39
+ * @memberof VMFilterOptionsResponse
40
+ */
41
+ concernCategories: Array<string>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the VMFilterOptionsResponse interface.
45
+ */
46
+ export declare function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse;
47
+ export declare function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse;
48
+ export declare function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse;
49
+ export declare function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse;
50
+ export declare function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfVMFilterOptionsResponse = instanceOfVMFilterOptionsResponse;
17
+ exports.VMFilterOptionsResponseFromJSON = VMFilterOptionsResponseFromJSON;
18
+ exports.VMFilterOptionsResponseFromJSONTyped = VMFilterOptionsResponseFromJSONTyped;
19
+ exports.VMFilterOptionsResponseToJSON = VMFilterOptionsResponseToJSON;
20
+ exports.VMFilterOptionsResponseToJSONTyped = VMFilterOptionsResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VMFilterOptionsResponse interface.
23
+ */
24
+ function instanceOfVMFilterOptionsResponse(value) {
25
+ if (!('clusters' in value) || value['clusters'] === undefined)
26
+ return false;
27
+ if (!('datacenters' in value) || value['datacenters'] === undefined)
28
+ return false;
29
+ if (!('concernLabels' in value) || value['concernLabels'] === undefined)
30
+ return false;
31
+ if (!('concernCategories' in value) || value['concernCategories'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function VMFilterOptionsResponseFromJSON(json) {
36
+ return VMFilterOptionsResponseFromJSONTyped(json, false);
37
+ }
38
+ function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'clusters': json['clusters'],
44
+ 'datacenters': json['datacenters'],
45
+ 'concernLabels': json['concernLabels'],
46
+ 'concernCategories': json['concernCategories'],
47
+ };
48
+ }
49
+ function VMFilterOptionsResponseToJSON(json) {
50
+ return VMFilterOptionsResponseToJSONTyped(json, false);
51
+ }
52
+ function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'clusters': value['clusters'],
58
+ 'datacenters': value['datacenters'],
59
+ 'concernLabels': value['concernLabels'],
60
+ 'concernCategories': value['concernCategories'],
61
+ };
62
+ }
@@ -95,11 +95,11 @@ export interface VirtualMachine {
95
95
  */
96
96
  inspectionConcernCount?: number;
97
97
  /**
98
- * Tags aggregated from matching groups
98
+ * Names of groups this VM matches
99
99
  * @type {Array<string>}
100
100
  * @memberof VirtualMachine
101
101
  */
102
- tags?: Array<string>;
102
+ groups?: Array<string>;
103
103
  /**
104
104
  * User-defined labels for this VM
105
105
  * @type {Array<string>}
@@ -62,7 +62,7 @@ function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
63
63
  'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspectionStatus']),
64
64
  'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
65
- 'tags': json['tags'] == null ? undefined : json['tags'],
65
+ 'groups': json['groups'] == null ? undefined : json['groups'],
66
66
  'labels': json['labels'] == null ? undefined : json['labels'],
67
67
  'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
68
68
  'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
@@ -91,7 +91,7 @@ function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
91
91
  'migrationExcluded': value['migrationExcluded'],
92
92
  'inspectionStatus': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspectionStatus']),
93
93
  'inspectionConcernCount': value['inspectionConcernCount'],
94
- 'tags': value['tags'],
94
+ 'groups': value['groups'],
95
95
  'labels': value['labels'],
96
96
  'utilization_cpu_p95': value['utilization_cpu_p95'],
97
97
  'utilization_mem_p95': value['utilization_mem_p95'],
@@ -2,6 +2,7 @@ export * from './AgentModeRequest.js';
2
2
  export * from './AgentStatus.js';
3
3
  export * from './BenchmarkRun.js';
4
4
  export * from './ClusterFeatures.js';
5
+ export * from './ClusterUtilization.js';
5
6
  export * from './CollectorStartRequest.js';
6
7
  export * from './CollectorStatus.js';
7
8
  export * from './CreateGroupRequest.js';
@@ -51,6 +52,7 @@ export * from './UpdateLabelVMsRequest.js';
51
52
  export * from './VCenter.js';
52
53
  export * from './VMDevice.js';
53
54
  export * from './VMDisk.js';
55
+ export * from './VMFilterOptionsResponse.js';
54
56
  export * from './VMIssue.js';
55
57
  export * from './VMLabelsResponse.js';
56
58
  export * from './VMNIC.js';
@@ -20,6 +20,7 @@ __exportStar(require("./AgentModeRequest.js"), exports);
20
20
  __exportStar(require("./AgentStatus.js"), exports);
21
21
  __exportStar(require("./BenchmarkRun.js"), exports);
22
22
  __exportStar(require("./ClusterFeatures.js"), exports);
23
+ __exportStar(require("./ClusterUtilization.js"), exports);
23
24
  __exportStar(require("./CollectorStartRequest.js"), exports);
24
25
  __exportStar(require("./CollectorStatus.js"), exports);
25
26
  __exportStar(require("./CreateGroupRequest.js"), exports);
@@ -69,6 +70,7 @@ __exportStar(require("./UpdateLabelVMsRequest.js"), exports);
69
70
  __exportStar(require("./VCenter.js"), exports);
70
71
  __exportStar(require("./VMDevice.js"), exports);
71
72
  __exportStar(require("./VMDisk.js"), exports);
73
+ __exportStar(require("./VMFilterOptionsResponse.js"), exports);
72
74
  __exportStar(require("./VMIssue.js"), exports);
73
75
  __exportStar(require("./VMLabelsResponse.js"), exports);
74
76
  __exportStar(require("./VMNIC.js"), exports);