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

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 (68) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/DefaultApi.d.ts +66 -0
  4. package/dist/apis/DefaultApi.js +75 -0
  5. package/dist/esm/apis/DefaultApi.d.ts +66 -0
  6. package/dist/esm/apis/DefaultApi.js +75 -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/VMNIC.d.ts +12 -0
  22. package/dist/esm/models/VMNIC.js +4 -0
  23. package/dist/esm/models/VirtualMachine.d.ts +14 -2
  24. package/dist/esm/models/VirtualMachine.js +6 -2
  25. package/dist/esm/models/index.d.ts +2 -0
  26. package/dist/esm/models/index.js +2 -0
  27. package/dist/models/ClusterUtilization.d.ts +68 -0
  28. package/dist/models/ClusterUtilization.js +74 -0
  29. package/dist/models/CreateGroupRequest.d.ts +0 -6
  30. package/dist/models/CreateGroupRequest.js +0 -2
  31. package/dist/models/Group.d.ts +0 -6
  32. package/dist/models/Group.js +0 -2
  33. package/dist/models/GroupResponse.d.ts +7 -0
  34. package/dist/models/GroupResponse.js +3 -0
  35. package/dist/models/InventoryData.d.ts +7 -0
  36. package/dist/models/InventoryData.js +3 -0
  37. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  38. package/dist/models/UpdateGroupRequest.js +0 -2
  39. package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
  40. package/dist/models/VMFilterOptionsResponse.js +62 -0
  41. package/dist/models/VMNIC.d.ts +12 -0
  42. package/dist/models/VMNIC.js +4 -0
  43. package/dist/models/VirtualMachine.d.ts +14 -2
  44. package/dist/models/VirtualMachine.js +6 -2
  45. package/dist/models/index.d.ts +2 -0
  46. package/dist/models/index.js +2 -0
  47. package/docs/ClusterUtilization.md +46 -0
  48. package/docs/CreateGroupRequest.md +0 -2
  49. package/docs/DefaultApi.md +128 -0
  50. package/docs/Group.md +0 -2
  51. package/docs/GroupResponse.md +2 -0
  52. package/docs/InventoryData.md +2 -0
  53. package/docs/UpdateGroupRequest.md +0 -2
  54. package/docs/VMFilterOptionsResponse.md +40 -0
  55. package/docs/VMNIC.md +4 -0
  56. package/docs/VirtualMachine.md +6 -2
  57. package/package.json +1 -1
  58. package/src/apis/DefaultApi.ts +135 -0
  59. package/src/models/ClusterUtilization.ts +120 -0
  60. package/src/models/CreateGroupRequest.ts +0 -8
  61. package/src/models/Group.ts +0 -8
  62. package/src/models/GroupResponse.ts +15 -0
  63. package/src/models/InventoryData.ts +15 -0
  64. package/src/models/UpdateGroupRequest.ts +0 -8
  65. package/src/models/VMFilterOptionsResponse.ts +93 -0
  66. package/src/models/VMNIC.ts +16 -0
  67. package/src/models/VirtualMachine.ts +20 -4
  68. package/src/models/index.ts +2 -0
@@ -35,7 +35,6 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'name': json['name'],
36
36
  'description': json['description'] == null ? undefined : json['description'],
37
37
  'filter': json['filter'],
38
- 'tags': json['tags'] == null ? undefined : json['tags'],
39
38
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
40
39
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
41
40
  };
@@ -52,7 +51,6 @@ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
52
51
  'name': value['name'],
53
52
  'description': value['description'],
54
53
  'filter': value['filter'],
55
- 'tags': value['tags'],
56
54
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
57
55
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
58
56
  };
@@ -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>}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { GroupFromJSON, GroupToJSON, } from './Group.js';
15
+ import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
15
16
  import { VirtualMachineFromJSON, VirtualMachineToJSON, } from './VirtualMachine.js';
16
17
  /**
17
18
  * Check if a given object implements the GroupResponse interface.
@@ -38,6 +39,7 @@ export function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
38
39
  }
39
40
  return {
40
41
  'group': GroupFromJSON(json['group']),
42
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
41
43
  'vms': (json['vms'].map(VirtualMachineFromJSON)),
42
44
  'total': json['total'],
43
45
  'page': json['page'],
@@ -53,6 +55,7 @@ export function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
55
  }
54
56
  return {
55
57
  'group': GroupToJSON(value['group']),
58
+ 'inventory': InventoryToJSON(value['inventory']),
56
59
  'vms': (value['vms'].map(VirtualMachineToJSON)),
57
60
  'total': value['total'],
58
61
  '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}
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
15
15
  import { InfraFromJSON, InfraToJSON, } from './Infra.js';
16
+ import { ClusterUtilizationFromJSON, ClusterUtilizationToJSON, } from './ClusterUtilization.js';
16
17
  import { VMsFromJSON, VMsToJSON, } from './VMs.js';
17
18
  import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
18
19
  /**
@@ -35,6 +36,7 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
35
36
  return {
36
37
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
37
38
  'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
39
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
38
40
  'vms': VMsFromJSON(json['vms']),
39
41
  'infra': InfraFromJSON(json['infra']),
40
42
  };
@@ -49,6 +51,7 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
49
51
  return {
50
52
  'vcenter': VCenterToJSON(value['vcenter']),
51
53
  'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
54
+ 'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
52
55
  'vms': VMsToJSON(value['vms']),
53
56
  'infra': InfraToJSON(value['infra']),
54
57
  };
@@ -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.
@@ -28,7 +28,6 @@ export function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'name': json['name'] == null ? undefined : json['name'],
29
29
  'description': json['description'] == null ? undefined : json['description'],
30
30
  'filter': json['filter'] == null ? undefined : json['filter'],
31
- 'tags': json['tags'] == null ? undefined : json['tags'],
32
31
  };
33
32
  }
34
33
  export function UpdateGroupRequestToJSON(json) {
@@ -42,6 +41,5 @@ export function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false
42
41
  'name': value['name'],
43
42
  'description': value['description'],
44
43
  'filter': value['filter'],
45
- 'tags': value['tags'],
46
44
  };
47
45
  }
@@ -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,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
+ }
@@ -33,6 +33,18 @@ export interface VMNIC {
33
33
  * @memberof VMNIC
34
34
  */
35
35
  index?: number;
36
+ /**
37
+ * IPv4 address of this NIC as reported by VMware Tools
38
+ * @type {string}
39
+ * @memberof VMNIC
40
+ */
41
+ ipv4Address?: string;
42
+ /**
43
+ * IPv6 address of this NIC as reported by VMware Tools
44
+ * @type {string}
45
+ * @memberof VMNIC
46
+ */
47
+ ipv6Address?: string;
36
48
  }
37
49
  /**
38
50
  * Check if a given object implements the VMNIC interface.
@@ -28,6 +28,8 @@ export function VMNICFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'mac': json['mac'] == null ? undefined : json['mac'],
29
29
  'network': json['network'] == null ? undefined : json['network'],
30
30
  'index': json['index'] == null ? undefined : json['index'],
31
+ 'ipv4Address': json['ipv4Address'] == null ? undefined : json['ipv4Address'],
32
+ 'ipv6Address': json['ipv6Address'] == null ? undefined : json['ipv6Address'],
31
33
  };
32
34
  }
33
35
  export function VMNICToJSON(json) {
@@ -41,5 +43,7 @@ export function VMNICToJSONTyped(value, ignoreDiscriminator = false) {
41
43
  'mac': value['mac'],
42
44
  'network': value['network'],
43
45
  'index': value['index'],
46
+ 'ipv4Address': value['ipv4Address'],
47
+ 'ipv6Address': value['ipv6Address'],
44
48
  };
45
49
  }
@@ -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>}
@@ -118,6 +118,18 @@ export interface VirtualMachine {
118
118
  * @memberof VirtualMachine
119
119
  */
120
120
  utilization_mem_p95?: number;
121
+ /**
122
+ * CPU utilization at max (%); absent when no utilization data
123
+ * @type {number}
124
+ * @memberof VirtualMachine
125
+ */
126
+ utilization_cpu_max?: number;
127
+ /**
128
+ * Memory utilization at max (%); absent when no utilization data
129
+ * @type {number}
130
+ * @memberof VirtualMachine
131
+ */
132
+ utilization_mem_max?: number;
121
133
  /**
122
134
  * Disk utilization (%); absent when no utilization data
123
135
  * @type {number}
@@ -55,10 +55,12 @@ 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'],
62
+ 'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
63
+ 'utilization_mem_max': json['utilization_mem_max'] == null ? undefined : json['utilization_mem_max'],
62
64
  'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
63
65
  'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
64
66
  };
@@ -84,10 +86,12 @@ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
84
86
  'migrationExcluded': value['migrationExcluded'],
85
87
  'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
86
88
  'inspectionConcernCount': value['inspectionConcernCount'],
87
- 'tags': value['tags'],
89
+ 'groups': value['groups'],
88
90
  'labels': value['labels'],
89
91
  'utilization_cpu_p95': value['utilization_cpu_p95'],
90
92
  'utilization_mem_p95': value['utilization_mem_p95'],
93
+ 'utilization_cpu_max': value['utilization_cpu_max'],
94
+ 'utilization_mem_max': value['utilization_mem_max'],
91
95
  'utilization_disk': value['utilization_disk'],
92
96
  'utilization_confidence': value['utilization_confidence'],
93
97
  };
@@ -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}