@openshift-migration-advisor/agent-sdk 0.12.0-d5edcd6935f2 → 0.12.0-e4c04f972747

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 (184) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +25 -5
  4. package/dist/apis/DefaultApi.d.ts +369 -38
  5. package/dist/apis/DefaultApi.js +410 -43
  6. package/dist/esm/apis/DefaultApi.d.ts +369 -38
  7. package/dist/esm/apis/DefaultApi.js +410 -43
  8. package/dist/esm/models/AgentStatus.d.ts +1 -1
  9. package/dist/esm/models/AgentStatus.js +3 -3
  10. package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
  11. package/dist/esm/models/ApplicationListResponse.js +44 -0
  12. package/dist/esm/models/ApplicationOverview.d.ts +51 -0
  13. package/dist/esm/models/ApplicationOverview.js +56 -0
  14. package/dist/esm/models/ApplicationVM.d.ts +38 -0
  15. package/dist/esm/models/ApplicationVM.js +47 -0
  16. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  17. package/dist/esm/models/ClusterFeatures.js +54 -0
  18. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  19. package/dist/esm/models/ClusterUtilization.js +67 -0
  20. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  21. package/dist/esm/models/CreateGroupRequest.js +0 -2
  22. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  23. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  24. package/dist/esm/models/Group.d.ts +0 -6
  25. package/dist/esm/models/Group.js +0 -2
  26. package/dist/esm/models/GroupResponse.d.ts +7 -0
  27. package/dist/esm/models/GroupResponse.js +3 -0
  28. package/dist/esm/models/Inventory.d.ts +7 -1
  29. package/dist/esm/models/Inventory.js +5 -3
  30. package/dist/esm/models/InventoryData.d.ts +14 -0
  31. package/dist/esm/models/InventoryData.js +6 -0
  32. package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
  33. package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
  34. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  35. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  36. package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
  37. package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
  38. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  39. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  40. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  41. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  42. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  43. package/dist/esm/models/RightsizingReport.js +18 -18
  44. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  45. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  46. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  47. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  48. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  49. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  50. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  51. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  52. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  53. package/dist/esm/models/VMLabelsResponse.js +47 -0
  54. package/dist/esm/models/VMNIC.d.ts +12 -0
  55. package/dist/esm/models/VMNIC.js +4 -0
  56. package/dist/esm/models/VirtualMachine.d.ts +30 -6
  57. package/dist/esm/models/VirtualMachine.js +18 -10
  58. package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
  59. package/dist/esm/models/VirtualMachineDetail.js +4 -0
  60. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  61. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  62. package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
  63. package/dist/esm/models/VmUtilizationDetails.js +36 -36
  64. package/dist/esm/models/index.d.ts +11 -0
  65. package/dist/esm/models/index.js +11 -0
  66. package/dist/models/AgentStatus.d.ts +1 -1
  67. package/dist/models/AgentStatus.js +3 -3
  68. package/dist/models/ApplicationListResponse.d.ts +33 -0
  69. package/dist/models/ApplicationListResponse.js +51 -0
  70. package/dist/models/ApplicationOverview.d.ts +51 -0
  71. package/dist/models/ApplicationOverview.js +63 -0
  72. package/dist/models/ApplicationVM.d.ts +38 -0
  73. package/dist/models/ApplicationVM.js +54 -0
  74. package/dist/models/ClusterFeatures.d.ts +54 -0
  75. package/dist/models/ClusterFeatures.js +62 -0
  76. package/dist/models/ClusterUtilization.d.ts +68 -0
  77. package/dist/models/ClusterUtilization.js +74 -0
  78. package/dist/models/CreateGroupRequest.d.ts +0 -6
  79. package/dist/models/CreateGroupRequest.js +0 -2
  80. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  81. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  82. package/dist/models/Group.d.ts +0 -6
  83. package/dist/models/Group.js +0 -2
  84. package/dist/models/GroupResponse.d.ts +7 -0
  85. package/dist/models/GroupResponse.js +3 -0
  86. package/dist/models/Inventory.d.ts +7 -1
  87. package/dist/models/Inventory.js +5 -3
  88. package/dist/models/InventoryData.d.ts +14 -0
  89. package/dist/models/InventoryData.js +6 -0
  90. package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
  91. package/dist/models/RightsizingClusterListResponse.js +3 -3
  92. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  93. package/dist/models/RightsizingClusterResponse.js +55 -0
  94. package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
  95. package/dist/models/RightsizingClusterUtilization.js +36 -36
  96. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  97. package/dist/models/RightsizingCollectRequest.js +12 -12
  98. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  99. package/dist/models/RightsizingMetricStats.js +3 -3
  100. package/dist/models/RightsizingReport.d.ts +6 -6
  101. package/dist/models/RightsizingReport.js +18 -18
  102. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  103. package/dist/models/RightsizingReportSummary.js +18 -18
  104. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  105. package/dist/models/UpdateGroupRequest.js +0 -2
  106. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  107. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  108. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  109. package/dist/models/VMFilterOptionsResponse.js +66 -0
  110. package/dist/models/VMLabelsResponse.d.ts +38 -0
  111. package/dist/models/VMLabelsResponse.js +54 -0
  112. package/dist/models/VMNIC.d.ts +12 -0
  113. package/dist/models/VMNIC.js +4 -0
  114. package/dist/models/VirtualMachine.d.ts +30 -6
  115. package/dist/models/VirtualMachine.js +18 -10
  116. package/dist/models/VirtualMachineDetail.d.ts +12 -0
  117. package/dist/models/VirtualMachineDetail.js +4 -0
  118. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  119. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  120. package/dist/models/VmUtilizationDetails.d.ts +12 -12
  121. package/dist/models/VmUtilizationDetails.js +36 -36
  122. package/dist/models/index.d.ts +11 -0
  123. package/dist/models/index.js +11 -0
  124. package/docs/AgentStatus.md +2 -2
  125. package/docs/ApplicationListResponse.md +34 -0
  126. package/docs/ApplicationOverview.md +40 -0
  127. package/docs/ApplicationVM.md +36 -0
  128. package/docs/ClusterFeatures.md +38 -0
  129. package/docs/ClusterUtilization.md +46 -0
  130. package/docs/CreateGroupRequest.md +0 -2
  131. package/docs/DefaultApi.md +679 -79
  132. package/docs/DeleteLabelGloballyResponse.md +36 -0
  133. package/docs/GetInventory200Response.md +4 -2
  134. package/docs/Group.md +0 -2
  135. package/docs/GroupResponse.md +2 -0
  136. package/docs/Inventory.md +4 -2
  137. package/docs/InventoryData.md +4 -0
  138. package/docs/RightsizingClusterListResponse.md +2 -2
  139. package/docs/RightsizingClusterResponse.md +36 -0
  140. package/docs/RightsizingClusterUtilization.md +24 -24
  141. package/docs/RightsizingCollectRequest.md +12 -12
  142. package/docs/RightsizingMetricStats.md +2 -2
  143. package/docs/RightsizingReport.md +12 -12
  144. package/docs/RightsizingReportSummary.md +12 -12
  145. package/docs/UpdateGroupRequest.md +0 -2
  146. package/docs/UpdateLabelVMsRequest.md +36 -0
  147. package/docs/VMFilterOptionsResponse.md +42 -0
  148. package/docs/VMLabelsResponse.md +36 -0
  149. package/docs/VMNIC.md +4 -0
  150. package/docs/VirtualMachine.md +18 -10
  151. package/docs/VirtualMachineDetail.md +4 -0
  152. package/docs/VirtualMachineUpdateRequest.md +36 -0
  153. package/docs/VmUtilizationDetails.md +24 -24
  154. package/package.json +1 -1
  155. package/src/apis/DefaultApi.ts +806 -111
  156. package/src/models/AgentStatus.ts +4 -4
  157. package/src/models/ApplicationListResponse.ts +74 -0
  158. package/src/models/ApplicationOverview.ts +101 -0
  159. package/src/models/ApplicationVM.ts +75 -0
  160. package/src/models/ClusterFeatures.ts +94 -0
  161. package/src/models/ClusterUtilization.ts +120 -0
  162. package/src/models/CreateGroupRequest.ts +0 -8
  163. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  164. package/src/models/Group.ts +0 -8
  165. package/src/models/GroupResponse.ts +15 -0
  166. package/src/models/Inventory.ts +12 -4
  167. package/src/models/InventoryData.ts +30 -0
  168. package/src/models/RightsizingClusterListResponse.ts +4 -4
  169. package/src/models/RightsizingClusterResponse.ts +83 -0
  170. package/src/models/RightsizingClusterUtilization.ts +48 -48
  171. package/src/models/RightsizingCollectRequest.ts +18 -18
  172. package/src/models/RightsizingMetricStats.ts +4 -4
  173. package/src/models/RightsizingReport.ts +24 -24
  174. package/src/models/RightsizingReportSummary.ts +24 -24
  175. package/src/models/UpdateGroupRequest.ts +0 -8
  176. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  177. package/src/models/VMFilterOptionsResponse.ts +102 -0
  178. package/src/models/VMLabelsResponse.ts +75 -0
  179. package/src/models/VMNIC.ts +16 -0
  180. package/src/models/VirtualMachine.ts +48 -16
  181. package/src/models/VirtualMachineDetail.ts +16 -0
  182. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  183. package/src/models/VmUtilizationDetails.ts +48 -48
  184. package/src/models/index.ts +11 -0
@@ -0,0 +1,54 @@
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.instanceOfApplicationVM = instanceOfApplicationVM;
17
+ exports.ApplicationVMFromJSON = ApplicationVMFromJSON;
18
+ exports.ApplicationVMFromJSONTyped = ApplicationVMFromJSONTyped;
19
+ exports.ApplicationVMToJSON = ApplicationVMToJSON;
20
+ exports.ApplicationVMToJSONTyped = ApplicationVMToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ApplicationVM interface.
23
+ */
24
+ function instanceOfApplicationVM(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ApplicationVMFromJSON(json) {
32
+ return ApplicationVMFromJSONTyped(json, false);
33
+ }
34
+ function ApplicationVMFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function ApplicationVMToJSON(json) {
44
+ return ApplicationVMToJSONTyped(json, false);
45
+ }
46
+ function ApplicationVMToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -0,0 +1,54 @@
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 ClusterFeatures
16
+ */
17
+ export interface ClusterFeatures {
18
+ /**
19
+ * Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
20
+ * @type {boolean}
21
+ * @memberof ClusterFeatures
22
+ */
23
+ drsEnabled?: boolean;
24
+ /**
25
+ * DRS automation mode for the cluster
26
+ * @type {ClusterFeaturesDrsModeEnum}
27
+ * @memberof ClusterFeatures
28
+ */
29
+ drsMode?: ClusterFeaturesDrsModeEnum;
30
+ /**
31
+ * Whether Storage DRS is enabled for this cluster
32
+ * @type {boolean}
33
+ * @memberof ClusterFeatures
34
+ */
35
+ storageDrsEnabled?: boolean;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const ClusterFeaturesDrsModeEnum: {
41
+ readonly FullyAutomated: "Fully Automated";
42
+ readonly PartiallyAutomated: "Partially Automated";
43
+ readonly Manual: "Manual";
44
+ readonly None: "None";
45
+ };
46
+ export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
47
+ /**
48
+ * Check if a given object implements the ClusterFeatures interface.
49
+ */
50
+ export declare function instanceOfClusterFeatures(value: object): value is ClusterFeatures;
51
+ export declare function ClusterFeaturesFromJSON(json: any): ClusterFeatures;
52
+ export declare function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures;
53
+ export declare function ClusterFeaturesToJSON(json: any): ClusterFeatures;
54
+ export declare function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | 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.ClusterFeaturesDrsModeEnum = void 0;
17
+ exports.instanceOfClusterFeatures = instanceOfClusterFeatures;
18
+ exports.ClusterFeaturesFromJSON = ClusterFeaturesFromJSON;
19
+ exports.ClusterFeaturesFromJSONTyped = ClusterFeaturesFromJSONTyped;
20
+ exports.ClusterFeaturesToJSON = ClusterFeaturesToJSON;
21
+ exports.ClusterFeaturesToJSONTyped = ClusterFeaturesToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ClusterFeaturesDrsModeEnum = {
26
+ FullyAutomated: 'Fully Automated',
27
+ PartiallyAutomated: 'Partially Automated',
28
+ Manual: 'Manual',
29
+ None: 'None'
30
+ };
31
+ /**
32
+ * Check if a given object implements the ClusterFeatures interface.
33
+ */
34
+ function instanceOfClusterFeatures(value) {
35
+ return true;
36
+ }
37
+ function ClusterFeaturesFromJSON(json) {
38
+ return ClusterFeaturesFromJSONTyped(json, false);
39
+ }
40
+ function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
46
+ 'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
47
+ 'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
48
+ };
49
+ }
50
+ function ClusterFeaturesToJSON(json) {
51
+ return ClusterFeaturesToJSONTyped(json, false);
52
+ }
53
+ function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'drsEnabled': value['drsEnabled'],
59
+ 'drsMode': value['drsMode'],
60
+ 'storageDrsEnabled': value['storageDrsEnabled'],
61
+ };
62
+ }
@@ -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
  }
@@ -0,0 +1,38 @@
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 DeleteLabelGloballyResponse
16
+ */
17
+ export interface DeleteLabelGloballyResponse {
18
+ /**
19
+ * Number of VMs that had the label removed
20
+ * @type {number}
21
+ * @memberof DeleteLabelGloballyResponse
22
+ */
23
+ affected: number;
24
+ /**
25
+ * The label that was removed
26
+ * @type {string}
27
+ * @memberof DeleteLabelGloballyResponse
28
+ */
29
+ label: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DeleteLabelGloballyResponse interface.
33
+ */
34
+ export declare function instanceOfDeleteLabelGloballyResponse(value: object): value is DeleteLabelGloballyResponse;
35
+ export declare function DeleteLabelGloballyResponseFromJSON(json: any): DeleteLabelGloballyResponse;
36
+ export declare function DeleteLabelGloballyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLabelGloballyResponse;
37
+ export declare function DeleteLabelGloballyResponseToJSON(json: any): DeleteLabelGloballyResponse;
38
+ export declare function DeleteLabelGloballyResponseToJSONTyped(value?: DeleteLabelGloballyResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfDeleteLabelGloballyResponse = instanceOfDeleteLabelGloballyResponse;
17
+ exports.DeleteLabelGloballyResponseFromJSON = DeleteLabelGloballyResponseFromJSON;
18
+ exports.DeleteLabelGloballyResponseFromJSONTyped = DeleteLabelGloballyResponseFromJSONTyped;
19
+ exports.DeleteLabelGloballyResponseToJSON = DeleteLabelGloballyResponseToJSON;
20
+ exports.DeleteLabelGloballyResponseToJSONTyped = DeleteLabelGloballyResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeleteLabelGloballyResponse interface.
23
+ */
24
+ function instanceOfDeleteLabelGloballyResponse(value) {
25
+ if (!('affected' in value) || value['affected'] === undefined)
26
+ return false;
27
+ if (!('label' in value) || value['label'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function DeleteLabelGloballyResponseFromJSON(json) {
32
+ return DeleteLabelGloballyResponseFromJSONTyped(json, false);
33
+ }
34
+ function DeleteLabelGloballyResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'affected': json['affected'],
40
+ 'label': json['label'],
41
+ };
42
+ }
43
+ function DeleteLabelGloballyResponseToJSON(json) {
44
+ return DeleteLabelGloballyResponseToJSONTyped(json, false);
45
+ }
46
+ function DeleteLabelGloballyResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'affected': value['affected'],
52
+ 'label': value['label'],
53
+ };
54
+ }
@@ -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'],
@@ -21,7 +21,13 @@ export interface Inventory {
21
21
  * @type {string}
22
22
  * @memberof Inventory
23
23
  */
24
- vcenterId: string;
24
+ vcenter_id: string;
25
+ /**
26
+ * Version of the vCenter api. For example "8.0.3.0"
27
+ * @type {string}
28
+ * @memberof Inventory
29
+ */
30
+ vcenter_version?: string;
25
31
  /**
26
32
  * Map of cluster names to their inventory data
27
33
  * @type {{ [key: string]: InventoryData; }}
@@ -24,7 +24,7 @@ const InventoryData_js_1 = require("./InventoryData.js");
24
24
  * Check if a given object implements the Inventory interface.
25
25
  */
26
26
  function instanceOfInventory(value) {
27
- if (!('vcenterId' in value) || value['vcenterId'] === undefined)
27
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
28
28
  return false;
29
29
  if (!('clusters' in value) || value['clusters'] === undefined)
30
30
  return false;
@@ -38,7 +38,8 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return json;
39
39
  }
40
40
  return {
41
- 'vcenterId': json['vcenter_id'],
41
+ 'vcenter_id': json['vcenter_id'],
42
+ 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
42
43
  'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
43
44
  'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
44
45
  };
@@ -51,7 +52,8 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
51
52
  return value;
52
53
  }
53
54
  return {
54
- 'vcenter_id': value['vcenterId'],
55
+ 'vcenter_id': value['vcenter_id'],
56
+ 'vcenter_version': value['vcenter_version'],
55
57
  'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
56
58
  'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
57
59
  };
@@ -11,7 +11,9 @@
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';
16
+ import type { ClusterFeatures } from './ClusterFeatures.js';
15
17
  /**
16
18
  *
17
19
  * @export
@@ -24,6 +26,18 @@ export interface InventoryData {
24
26
  * @memberof InventoryData
25
27
  */
26
28
  vcenter?: VCenter;
29
+ /**
30
+ *
31
+ * @type {ClusterFeatures}
32
+ * @memberof InventoryData
33
+ */
34
+ clusterFeatures?: ClusterFeatures;
35
+ /**
36
+ *
37
+ * @type {ClusterUtilization}
38
+ * @memberof InventoryData
39
+ */
40
+ clusterUtilization?: ClusterUtilization;
27
41
  /**
28
42
  *
29
43
  * @type {VMs}
@@ -20,7 +20,9 @@ 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");
25
+ const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
24
26
  /**
25
27
  * Check if a given object implements the InventoryData interface.
26
28
  */
@@ -40,6 +42,8 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
40
42
  }
41
43
  return {
42
44
  'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
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']),
43
47
  'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
44
48
  'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
45
49
  };
@@ -53,6 +57,8 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
53
57
  }
54
58
  return {
55
59
  'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
60
+ 'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
61
+ 'clusterUtilization': (0, ClusterUtilization_js_1.ClusterUtilizationToJSON)(value['clusterUtilization']),
56
62
  'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
57
63
  'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
58
64
  };
@@ -21,7 +21,7 @@ export interface RightsizingClusterListResponse {
21
21
  * @type {string}
22
22
  * @memberof RightsizingClusterListResponse
23
23
  */
24
- reportId: string;
24
+ report_id: string;
25
25
  /**
26
26
  *
27
27
  * @type {Array<RightsizingClusterUtilization>}
@@ -23,7 +23,7 @@ const RightsizingClusterUtilization_js_1 = require("./RightsizingClusterUtilizat
23
23
  * Check if a given object implements the RightsizingClusterListResponse interface.
24
24
  */
25
25
  function instanceOfRightsizingClusterListResponse(value) {
26
- if (!('reportId' in value) || value['reportId'] === undefined)
26
+ if (!('report_id' in value) || value['report_id'] === undefined)
27
27
  return false;
28
28
  if (!('clusters' in value) || value['clusters'] === undefined)
29
29
  return false;
@@ -37,7 +37,7 @@ function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator)
37
37
  return json;
38
38
  }
39
39
  return {
40
- 'reportId': json['report_id'],
40
+ 'report_id': json['report_id'],
41
41
  'clusters': (json['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationFromJSON)),
42
42
  };
43
43
  }
@@ -49,7 +49,7 @@ function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator =
49
49
  return value;
50
50
  }
51
51
  return {
52
- 'report_id': value['reportId'],
52
+ 'report_id': value['report_id'],
53
53
  'clusters': (value['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationToJSON)),
54
54
  };
55
55
  }