@openshift-migration-advisor/agent-sdk 0.12.0-914fe80385ee → 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 (171) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +19 -4
  3. package/dist/apis/DefaultApi.d.ts +303 -41
  4. package/dist/apis/DefaultApi.js +335 -46
  5. package/dist/esm/apis/DefaultApi.d.ts +303 -41
  6. package/dist/esm/apis/DefaultApi.js +335 -46
  7. package/dist/esm/models/AgentStatus.d.ts +1 -1
  8. package/dist/esm/models/AgentStatus.js +3 -3
  9. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  10. package/dist/esm/models/ClusterFeatures.js +54 -0
  11. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  12. package/dist/esm/models/ClusterUtilization.js +67 -0
  13. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  14. package/dist/esm/models/CreateGroupRequest.js +0 -2
  15. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  16. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  17. package/dist/esm/models/Group.d.ts +0 -6
  18. package/dist/esm/models/Group.js +0 -2
  19. package/dist/esm/models/GroupResponse.d.ts +7 -0
  20. package/dist/esm/models/GroupResponse.js +3 -0
  21. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  22. package/dist/esm/models/InspectorStatus.js +1 -10
  23. package/dist/esm/models/Inventory.d.ts +7 -1
  24. package/dist/esm/models/Inventory.js +5 -3
  25. package/dist/esm/models/InventoryData.d.ts +14 -0
  26. package/dist/esm/models/InventoryData.js +6 -0
  27. package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
  28. package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
  29. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  30. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  31. package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
  32. package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
  33. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  34. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  35. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  36. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  37. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  38. package/dist/esm/models/RightsizingReport.js +18 -18
  39. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  40. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  41. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  42. package/dist/esm/models/StartInspectionRequest.js +5 -0
  43. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  44. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  45. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  46. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  47. package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
  48. package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
  49. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  50. package/dist/esm/models/VMLabelsResponse.js +47 -0
  51. package/dist/esm/models/VirtualMachine.d.ts +18 -6
  52. package/dist/esm/models/VirtualMachine.js +14 -10
  53. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  54. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  55. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  56. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  57. package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
  58. package/dist/esm/models/VmUtilizationDetails.js +36 -36
  59. package/dist/esm/models/index.d.ts +8 -0
  60. package/dist/esm/models/index.js +8 -0
  61. package/dist/models/AgentStatus.d.ts +1 -1
  62. package/dist/models/AgentStatus.js +3 -3
  63. package/dist/models/ClusterFeatures.d.ts +54 -0
  64. package/dist/models/ClusterFeatures.js +62 -0
  65. package/dist/models/ClusterUtilization.d.ts +68 -0
  66. package/dist/models/ClusterUtilization.js +74 -0
  67. package/dist/models/CreateGroupRequest.d.ts +0 -6
  68. package/dist/models/CreateGroupRequest.js +0 -2
  69. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  70. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  71. package/dist/models/Group.d.ts +0 -6
  72. package/dist/models/Group.js +0 -2
  73. package/dist/models/GroupResponse.d.ts +7 -0
  74. package/dist/models/GroupResponse.js +3 -0
  75. package/dist/models/InspectorStatus.d.ts +0 -17
  76. package/dist/models/InspectorStatus.js +1 -10
  77. package/dist/models/Inventory.d.ts +7 -1
  78. package/dist/models/Inventory.js +5 -3
  79. package/dist/models/InventoryData.d.ts +14 -0
  80. package/dist/models/InventoryData.js +6 -0
  81. package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
  82. package/dist/models/RightsizingClusterListResponse.js +3 -3
  83. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  84. package/dist/models/RightsizingClusterResponse.js +55 -0
  85. package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
  86. package/dist/models/RightsizingClusterUtilization.js +36 -36
  87. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  88. package/dist/models/RightsizingCollectRequest.js +12 -12
  89. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  90. package/dist/models/RightsizingMetricStats.js +3 -3
  91. package/dist/models/RightsizingReport.d.ts +6 -6
  92. package/dist/models/RightsizingReport.js +18 -18
  93. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  94. package/dist/models/RightsizingReportSummary.js +18 -18
  95. package/dist/models/StartInspectionRequest.d.ts +8 -1
  96. package/dist/models/StartInspectionRequest.js +5 -0
  97. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  98. package/dist/models/UpdateGroupRequest.js +0 -2
  99. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  100. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  101. package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
  102. package/dist/models/VMFilterOptionsResponse.js +62 -0
  103. package/dist/models/VMLabelsResponse.d.ts +38 -0
  104. package/dist/models/VMLabelsResponse.js +54 -0
  105. package/dist/models/VirtualMachine.d.ts +18 -6
  106. package/dist/models/VirtualMachine.js +14 -10
  107. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  108. package/dist/models/VirtualMachineDetail.js +7 -0
  109. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  110. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  111. package/dist/models/VmUtilizationDetails.d.ts +12 -12
  112. package/dist/models/VmUtilizationDetails.js +36 -36
  113. package/dist/models/index.d.ts +8 -0
  114. package/dist/models/index.js +8 -0
  115. package/docs/AgentStatus.md +2 -2
  116. package/docs/ClusterFeatures.md +38 -0
  117. package/docs/ClusterUtilization.md +46 -0
  118. package/docs/CreateGroupRequest.md +0 -2
  119. package/docs/DefaultApi.md +529 -60
  120. package/docs/DeleteLabelGloballyResponse.md +36 -0
  121. package/docs/GetInventory200Response.md +4 -2
  122. package/docs/Group.md +0 -2
  123. package/docs/GroupResponse.md +2 -0
  124. package/docs/InspectorStatus.md +0 -4
  125. package/docs/Inventory.md +4 -2
  126. package/docs/InventoryData.md +4 -0
  127. package/docs/RightsizingClusterListResponse.md +2 -2
  128. package/docs/RightsizingClusterResponse.md +36 -0
  129. package/docs/RightsizingClusterUtilization.md +24 -24
  130. package/docs/RightsizingCollectRequest.md +12 -12
  131. package/docs/RightsizingMetricStats.md +2 -2
  132. package/docs/RightsizingReport.md +12 -12
  133. package/docs/RightsizingReportSummary.md +12 -12
  134. package/docs/StartInspectionRequest.md +3 -1
  135. package/docs/UpdateGroupRequest.md +0 -2
  136. package/docs/UpdateLabelVMsRequest.md +36 -0
  137. package/docs/VMFilterOptionsResponse.md +40 -0
  138. package/docs/VMLabelsResponse.md +36 -0
  139. package/docs/VirtualMachine.md +14 -10
  140. package/docs/VirtualMachineDetail.md +6 -0
  141. package/docs/VirtualMachineUpdateRequest.md +36 -0
  142. package/docs/VmUtilizationDetails.md +24 -24
  143. package/package.json +1 -1
  144. package/src/apis/DefaultApi.ts +641 -88
  145. package/src/models/AgentStatus.ts +4 -4
  146. package/src/models/ClusterFeatures.ts +94 -0
  147. package/src/models/ClusterUtilization.ts +120 -0
  148. package/src/models/CreateGroupRequest.ts +0 -8
  149. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  150. package/src/models/Group.ts +0 -8
  151. package/src/models/GroupResponse.ts +15 -0
  152. package/src/models/InspectorStatus.ts +1 -28
  153. package/src/models/Inventory.ts +12 -4
  154. package/src/models/InventoryData.ts +30 -0
  155. package/src/models/RightsizingClusterListResponse.ts +4 -4
  156. package/src/models/RightsizingClusterResponse.ts +83 -0
  157. package/src/models/RightsizingClusterUtilization.ts +48 -48
  158. package/src/models/RightsizingCollectRequest.ts +18 -18
  159. package/src/models/RightsizingMetricStats.ts +4 -4
  160. package/src/models/RightsizingReport.ts +24 -24
  161. package/src/models/RightsizingReportSummary.ts +24 -24
  162. package/src/models/StartInspectionRequest.ts +18 -1
  163. package/src/models/UpdateGroupRequest.ts +0 -8
  164. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  165. package/src/models/VMFilterOptionsResponse.ts +93 -0
  166. package/src/models/VMLabelsResponse.ts +75 -0
  167. package/src/models/VirtualMachine.ts +32 -16
  168. package/src/models/VirtualMachineDetail.ts +31 -0
  169. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  170. package/src/models/VmUtilizationDetails.ts +48 -48
  171. package/src/models/index.ts +8 -0
@@ -37,12 +37,6 @@ export interface UpdateGroupRequest {
37
37
  * @memberof UpdateGroupRequest
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 UpdateGroupRequest
44
- */
45
- tags?: Array<string>;
46
40
  }
47
41
 
48
42
  /**
@@ -65,7 +59,6 @@ export function UpdateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator:
65
59
  'name': json['name'] == null ? undefined : json['name'],
66
60
  'description': json['description'] == null ? undefined : json['description'],
67
61
  'filter': json['filter'] == null ? undefined : json['filter'],
68
- 'tags': json['tags'] == null ? undefined : json['tags'],
69
62
  };
70
63
  }
71
64
 
@@ -83,7 +76,6 @@ export function UpdateGroupRequestToJSONTyped(value?: UpdateGroupRequest | null,
83
76
  'name': value['name'],
84
77
  'description': value['description'],
85
78
  'filter': value['filter'],
86
- 'tags': value['tags'],
87
79
  };
88
80
  }
89
81
 
@@ -0,0 +1,73 @@
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 UpdateLabelVMsRequest
20
+ */
21
+ export interface UpdateLabelVMsRequest {
22
+ /**
23
+ * VMs to add the label to
24
+ * @type {Array<string>}
25
+ * @memberof UpdateLabelVMsRequest
26
+ */
27
+ add?: Array<string>;
28
+ /**
29
+ * VMs to remove the label from
30
+ * @type {Array<string>}
31
+ * @memberof UpdateLabelVMsRequest
32
+ */
33
+ remove?: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the UpdateLabelVMsRequest interface.
38
+ */
39
+ export function instanceOfUpdateLabelVMsRequest(value: object): value is UpdateLabelVMsRequest {
40
+ return true;
41
+ }
42
+
43
+ export function UpdateLabelVMsRequestFromJSON(json: any): UpdateLabelVMsRequest {
44
+ return UpdateLabelVMsRequestFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function UpdateLabelVMsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLabelVMsRequest {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'add': json['add'] == null ? undefined : json['add'],
54
+ 'remove': json['remove'] == null ? undefined : json['remove'],
55
+ };
56
+ }
57
+
58
+ export function UpdateLabelVMsRequestToJSON(json: any): UpdateLabelVMsRequest {
59
+ return UpdateLabelVMsRequestToJSONTyped(json, false);
60
+ }
61
+
62
+ export function UpdateLabelVMsRequestToJSONTyped(value?: UpdateLabelVMsRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'add': value['add'],
70
+ 'remove': value['remove'],
71
+ };
72
+ }
73
+
@@ -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
+
@@ -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 VMLabelsResponse
20
+ */
21
+ export interface VMLabelsResponse {
22
+ /**
23
+ * Distinct labels currently in use
24
+ * @type {Array<string>}
25
+ * @memberof VMLabelsResponse
26
+ */
27
+ labels: Array<string>;
28
+ /**
29
+ * Number of VMs with each label (same order as labels array)
30
+ * @type {Array<number>}
31
+ * @memberof VMLabelsResponse
32
+ */
33
+ counts: Array<number>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VMLabelsResponse interface.
38
+ */
39
+ export function instanceOfVMLabelsResponse(value: object): value is VMLabelsResponse {
40
+ if (!('labels' in value) || value['labels'] === undefined) return false;
41
+ if (!('counts' in value) || value['counts'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function VMLabelsResponseFromJSON(json: any): VMLabelsResponse {
46
+ return VMLabelsResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VMLabelsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMLabelsResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'labels': json['labels'],
56
+ 'counts': json['counts'],
57
+ };
58
+ }
59
+
60
+ export function VMLabelsResponseToJSON(json: any): VMLabelsResponse {
61
+ return VMLabelsResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function VMLabelsResponseToJSONTyped(value?: VMLabelsResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'labels': value['labels'],
72
+ 'counts': value['counts'],
73
+ };
74
+ }
75
+
@@ -87,6 +87,12 @@ export interface VirtualMachine {
87
87
  * @memberof VirtualMachine
88
88
  */
89
89
  template?: boolean;
90
+ /**
91
+ * Whether this VM is excluded from migration
92
+ * @type {boolean}
93
+ * @memberof VirtualMachine
94
+ */
95
+ migrationExcluded?: boolean;
90
96
  /**
91
97
  *
92
98
  * @type {VmInspectionStatus}
@@ -100,35 +106,41 @@ export interface VirtualMachine {
100
106
  */
101
107
  inspectionConcernCount?: number;
102
108
  /**
103
- * Tags aggregated from matching groups
109
+ * Names of groups this VM matches
110
+ * @type {Array<string>}
111
+ * @memberof VirtualMachine
112
+ */
113
+ groups?: Array<string>;
114
+ /**
115
+ * User-defined labels for this VM
104
116
  * @type {Array<string>}
105
117
  * @memberof VirtualMachine
106
118
  */
107
- tags?: Array<string>;
119
+ labels?: Array<string>;
108
120
  /**
109
121
  * CPU utilization at p95 (%); absent when no utilization data
110
122
  * @type {number}
111
123
  * @memberof VirtualMachine
112
124
  */
113
- utilizationCpuP95?: number;
125
+ utilization_cpu_p95?: number;
114
126
  /**
115
127
  * Memory utilization at p95 (%); absent when no utilization data
116
128
  * @type {number}
117
129
  * @memberof VirtualMachine
118
130
  */
119
- utilizationMemP95?: number;
131
+ utilization_mem_p95?: number;
120
132
  /**
121
133
  * Disk utilization (%); absent when no utilization data
122
134
  * @type {number}
123
135
  * @memberof VirtualMachine
124
136
  */
125
- utilizationDisk?: number;
137
+ utilization_disk?: number;
126
138
  /**
127
139
  * Data confidence — sample_count / expected_sample_count × 100
128
140
  * @type {number}
129
141
  * @memberof VirtualMachine
130
142
  */
131
- utilizationConfidence?: number;
143
+ utilization_confidence?: number;
132
144
  }
133
145
 
134
146
  /**
@@ -166,13 +178,15 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
166
178
  'issueCount': json['issueCount'],
167
179
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
168
180
  'template': json['template'] == null ? undefined : json['template'],
181
+ 'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
169
182
  'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
170
183
  'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
171
- 'tags': json['tags'] == null ? undefined : json['tags'],
172
- 'utilizationCpuP95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
173
- 'utilizationMemP95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
174
- 'utilizationDisk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
175
- 'utilizationConfidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
184
+ 'groups': json['groups'] == null ? undefined : json['groups'],
185
+ 'labels': json['labels'] == null ? undefined : json['labels'],
186
+ 'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
187
+ 'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
188
+ 'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
189
+ 'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
176
190
  };
177
191
  }
178
192
 
@@ -197,13 +211,15 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
197
211
  'issueCount': value['issueCount'],
198
212
  'migratable': value['migratable'],
199
213
  'template': value['template'],
214
+ 'migrationExcluded': value['migrationExcluded'],
200
215
  'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
201
216
  'inspectionConcernCount': value['inspectionConcernCount'],
202
- 'tags': value['tags'],
203
- 'utilization_cpu_p95': value['utilizationCpuP95'],
204
- 'utilization_mem_p95': value['utilizationMemP95'],
205
- 'utilization_disk': value['utilizationDisk'],
206
- 'utilization_confidence': value['utilizationConfidence'],
217
+ 'groups': value['groups'],
218
+ 'labels': value['labels'],
219
+ 'utilization_cpu_p95': value['utilization_cpu_p95'],
220
+ 'utilization_mem_p95': value['utilization_mem_p95'],
221
+ 'utilization_disk': value['utilization_disk'],
222
+ 'utilization_confidence': value['utilization_confidence'],
207
223
  };
208
224
  }
209
225
 
@@ -41,6 +41,13 @@ import {
41
41
  VMDeviceToJSON,
42
42
  VMDeviceToJSONTyped,
43
43
  } from './VMDevice.js';
44
+ import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
45
+ import {
46
+ VmUtilizationDetailsFromJSON,
47
+ VmUtilizationDetailsFromJSONTyped,
48
+ VmUtilizationDetailsToJSON,
49
+ VmUtilizationDetailsToJSONTyped,
50
+ } from './VmUtilizationDetails.js';
44
51
  import type { VMDisk } from './VMDisk.js';
45
52
  import {
46
53
  VMDiskFromJSON,
@@ -188,6 +195,18 @@ export interface VirtualMachineDetail {
188
195
  * @memberof VirtualMachineDetail
189
196
  */
190
197
  migratable?: boolean;
198
+ /**
199
+ * Whether this VM is excluded from migration
200
+ * @type {boolean}
201
+ * @memberof VirtualMachineDetail
202
+ */
203
+ migrationExcluded?: boolean;
204
+ /**
205
+ * User-defined labels for this VM
206
+ * @type {Array<string>}
207
+ * @memberof VirtualMachineDetail
208
+ */
209
+ labels?: Array<string>;
191
210
  /**
192
211
  * Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
193
212
  * @type {boolean}
@@ -248,6 +267,12 @@ export interface VirtualMachineDetail {
248
267
  * @memberof VirtualMachineDetail
249
268
  */
250
269
  inspection?: VmInspectionResults;
270
+ /**
271
+ *
272
+ * @type {VmUtilizationDetails}
273
+ * @memberof VirtualMachineDetail
274
+ */
275
+ utilization?: VmUtilizationDetails;
251
276
  }
252
277
 
253
278
  /**
@@ -297,6 +322,8 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
297
322
  'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
298
323
  'template': json['template'] == null ? undefined : json['template'],
299
324
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
325
+ 'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
326
+ 'labels': json['labels'] == null ? undefined : json['labels'],
300
327
  'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
301
328
  'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
302
329
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
@@ -307,6 +334,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
307
334
  'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
308
335
  'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
309
336
  'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
337
+ 'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
310
338
  };
311
339
  }
312
340
 
@@ -342,6 +370,8 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
342
370
  'storageUsed': value['storageUsed'],
343
371
  'template': value['template'],
344
372
  'migratable': value['migratable'],
373
+ 'migrationExcluded': value['migrationExcluded'],
374
+ 'labels': value['labels'],
345
375
  'faultToleranceEnabled': value['faultToleranceEnabled'],
346
376
  'nestedHVEnabled': value['nestedHVEnabled'],
347
377
  'toolsStatus': value['toolsStatus'],
@@ -352,6 +382,7 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
352
382
  'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
353
383
  'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
354
384
  'inspection': VmInspectionResultsToJSON(value['inspection']),
385
+ 'utilization': VmUtilizationDetailsToJSON(value['utilization']),
355
386
  };
356
387
  }
357
388
 
@@ -0,0 +1,73 @@
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 VirtualMachineUpdateRequest
20
+ */
21
+ export interface VirtualMachineUpdateRequest {
22
+ /**
23
+ * Whether to exclude this VM from migration
24
+ * @type {boolean}
25
+ * @memberof VirtualMachineUpdateRequest
26
+ */
27
+ migrationExcluded?: boolean;
28
+ /**
29
+ * User-defined labels (replaces existing labels)
30
+ * @type {Array<string>}
31
+ * @memberof VirtualMachineUpdateRequest
32
+ */
33
+ labels?: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VirtualMachineUpdateRequest interface.
38
+ */
39
+ export function instanceOfVirtualMachineUpdateRequest(value: object): value is VirtualMachineUpdateRequest {
40
+ return true;
41
+ }
42
+
43
+ export function VirtualMachineUpdateRequestFromJSON(json: any): VirtualMachineUpdateRequest {
44
+ return VirtualMachineUpdateRequestFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function VirtualMachineUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineUpdateRequest {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
54
+ 'labels': json['labels'] == null ? undefined : json['labels'],
55
+ };
56
+ }
57
+
58
+ export function VirtualMachineUpdateRequestToJSON(json: any): VirtualMachineUpdateRequest {
59
+ return VirtualMachineUpdateRequestToJSONTyped(json, false);
60
+ }
61
+
62
+ export function VirtualMachineUpdateRequestToJSONTyped(value?: VirtualMachineUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'migrationExcluded': value['migrationExcluded'],
70
+ 'labels': value['labels'],
71
+ };
72
+ }
73
+