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

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 (135) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +20 -4
  3. package/dist/apis/DefaultApi.d.ts +346 -41
  4. package/dist/apis/DefaultApi.js +380 -46
  5. package/dist/esm/apis/DefaultApi.d.ts +346 -41
  6. package/dist/esm/apis/DefaultApi.js +380 -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/DeleteLabelGloballyResponse.d.ts +38 -0
  12. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  13. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  14. package/dist/esm/models/InspectorStatus.js +1 -10
  15. package/dist/esm/models/Inventory.d.ts +7 -1
  16. package/dist/esm/models/Inventory.js +5 -3
  17. package/dist/esm/models/InventoryData.d.ts +7 -0
  18. package/dist/esm/models/InventoryData.js +3 -0
  19. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  20. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  21. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  22. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  23. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  24. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  25. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  26. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  27. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  28. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  29. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  30. package/dist/esm/models/RightsizingReport.js +18 -18
  31. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  32. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  33. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  34. package/dist/esm/models/StartInspectionRequest.js +5 -0
  35. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  36. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  37. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  38. package/dist/esm/models/VMLabelsResponse.js +47 -0
  39. package/dist/esm/models/VirtualMachine.d.ts +16 -4
  40. package/dist/esm/models/VirtualMachine.js +12 -8
  41. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  42. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  43. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  44. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  45. package/dist/esm/models/VmUtilizationDetails.d.ts +27 -9
  46. package/dist/esm/models/VmUtilizationDetails.js +39 -27
  47. package/dist/esm/models/index.d.ts +8 -0
  48. package/dist/esm/models/index.js +8 -0
  49. package/dist/models/AgentStatus.d.ts +1 -1
  50. package/dist/models/AgentStatus.js +3 -3
  51. package/dist/models/ClusterFeatures.d.ts +54 -0
  52. package/dist/models/ClusterFeatures.js +62 -0
  53. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  54. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  55. package/dist/models/InspectorStatus.d.ts +0 -17
  56. package/dist/models/InspectorStatus.js +1 -10
  57. package/dist/models/Inventory.d.ts +7 -1
  58. package/dist/models/Inventory.js +5 -3
  59. package/dist/models/InventoryData.d.ts +7 -0
  60. package/dist/models/InventoryData.js +3 -0
  61. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  62. package/dist/models/RightsizingClusterListResponse.js +55 -0
  63. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  64. package/dist/models/RightsizingClusterResponse.js +55 -0
  65. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  66. package/dist/models/RightsizingClusterUtilization.js +102 -0
  67. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  68. package/dist/models/RightsizingCollectRequest.js +12 -12
  69. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  70. package/dist/models/RightsizingMetricStats.js +3 -3
  71. package/dist/models/RightsizingReport.d.ts +6 -6
  72. package/dist/models/RightsizingReport.js +18 -18
  73. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  74. package/dist/models/RightsizingReportSummary.js +18 -18
  75. package/dist/models/StartInspectionRequest.d.ts +8 -1
  76. package/dist/models/StartInspectionRequest.js +5 -0
  77. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  78. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  79. package/dist/models/VMLabelsResponse.d.ts +38 -0
  80. package/dist/models/VMLabelsResponse.js +54 -0
  81. package/dist/models/VirtualMachine.d.ts +16 -4
  82. package/dist/models/VirtualMachine.js +12 -8
  83. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  84. package/dist/models/VirtualMachineDetail.js +7 -0
  85. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  86. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  87. package/dist/models/VmUtilizationDetails.d.ts +27 -9
  88. package/dist/models/VmUtilizationDetails.js +39 -27
  89. package/dist/models/index.d.ts +8 -0
  90. package/dist/models/index.js +8 -0
  91. package/docs/AgentStatus.md +2 -2
  92. package/docs/ClusterFeatures.md +38 -0
  93. package/docs/DefaultApi.md +695 -146
  94. package/docs/DeleteLabelGloballyResponse.md +36 -0
  95. package/docs/GetInventory200Response.md +4 -2
  96. package/docs/InspectorStatus.md +0 -4
  97. package/docs/Inventory.md +4 -2
  98. package/docs/InventoryData.md +2 -0
  99. package/docs/RightsizingClusterListResponse.md +36 -0
  100. package/docs/RightsizingClusterResponse.md +36 -0
  101. package/docs/RightsizingClusterUtilization.md +60 -0
  102. package/docs/RightsizingCollectRequest.md +12 -12
  103. package/docs/RightsizingMetricStats.md +2 -2
  104. package/docs/RightsizingReport.md +12 -12
  105. package/docs/RightsizingReportSummary.md +12 -12
  106. package/docs/StartInspectionRequest.md +3 -1
  107. package/docs/UpdateLabelVMsRequest.md +36 -0
  108. package/docs/VMLabelsResponse.md +36 -0
  109. package/docs/VirtualMachine.md +12 -8
  110. package/docs/VirtualMachineDetail.md +6 -0
  111. package/docs/VirtualMachineUpdateRequest.md +36 -0
  112. package/docs/VmUtilizationDetails.md +24 -18
  113. package/package.json +1 -1
  114. package/src/apis/DefaultApi.ts +754 -112
  115. package/src/models/AgentStatus.ts +4 -4
  116. package/src/models/ClusterFeatures.ts +94 -0
  117. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  118. package/src/models/InspectorStatus.ts +1 -28
  119. package/src/models/Inventory.ts +12 -4
  120. package/src/models/InventoryData.ts +15 -0
  121. package/src/models/RightsizingClusterListResponse.ts +83 -0
  122. package/src/models/RightsizingClusterResponse.ts +83 -0
  123. package/src/models/RightsizingClusterUtilization.ts +185 -0
  124. package/src/models/RightsizingCollectRequest.ts +18 -18
  125. package/src/models/RightsizingMetricStats.ts +4 -4
  126. package/src/models/RightsizingReport.ts +24 -24
  127. package/src/models/RightsizingReportSummary.ts +24 -24
  128. package/src/models/StartInspectionRequest.ts +18 -1
  129. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  130. package/src/models/VMLabelsResponse.ts +75 -0
  131. package/src/models/VirtualMachine.ts +28 -12
  132. package/src/models/VirtualMachineDetail.ts +31 -0
  133. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  134. package/src/models/VmUtilizationDetails.ts +63 -36
  135. package/src/models/index.ts +8 -0
@@ -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,47 @@
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 DeleteLabelGloballyResponse interface.
16
+ */
17
+ export function instanceOfDeleteLabelGloballyResponse(value) {
18
+ if (!('affected' in value) || value['affected'] === undefined)
19
+ return false;
20
+ if (!('label' in value) || value['label'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function DeleteLabelGloballyResponseFromJSON(json) {
25
+ return DeleteLabelGloballyResponseFromJSONTyped(json, false);
26
+ }
27
+ export function DeleteLabelGloballyResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'affected': json['affected'],
33
+ 'label': json['label'],
34
+ };
35
+ }
36
+ export function DeleteLabelGloballyResponseToJSON(json) {
37
+ return DeleteLabelGloballyResponseToJSONTyped(json, false);
38
+ }
39
+ export function DeleteLabelGloballyResponseToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'affected': value['affected'],
45
+ 'label': value['label'],
46
+ };
47
+ }
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { VddkProperties } from './VddkProperties.js';
13
- import type { VcenterCredentials } from './VcenterCredentials.js';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -23,35 +22,19 @@ export interface InspectorStatus {
23
22
  * @memberof InspectorStatus
24
23
  */
25
24
  state: InspectorStatusStateEnum;
26
- /**
27
- *
28
- * @type {VcenterCredentials}
29
- * @memberof InspectorStatus
30
- */
31
- credentials?: VcenterCredentials;
32
25
  /**
33
26
  *
34
27
  * @type {VddkProperties}
35
28
  * @memberof InspectorStatus
36
29
  */
37
30
  vddk?: VddkProperties;
38
- /**
39
- * Error message when state is error
40
- * @type {string}
41
- * @memberof InspectorStatus
42
- */
43
- error?: string;
44
31
  }
45
32
  /**
46
33
  * @export
47
34
  */
48
35
  export declare const InspectorStatusStateEnum: {
49
36
  readonly InspectorStatusStateReady: "ready";
50
- readonly InspectorStatusStateInitiating: "Initiating";
51
37
  readonly InspectorStatusStateRunning: "running";
52
- readonly InspectorStatusStateCanceled: "canceled";
53
- readonly InspectorStatusStateCompleted: "completed";
54
- readonly InspectorStatusStateError: "error";
55
38
  };
56
39
  export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
57
40
  /**
@@ -12,17 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { VddkPropertiesFromJSON, VddkPropertiesToJSON, } from './VddkProperties.js';
15
- import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
16
15
  /**
17
16
  * @export
18
17
  */
19
18
  export const InspectorStatusStateEnum = {
20
19
  InspectorStatusStateReady: 'ready',
21
- InspectorStatusStateInitiating: 'Initiating',
22
- InspectorStatusStateRunning: 'running',
23
- InspectorStatusStateCanceled: 'canceled',
24
- InspectorStatusStateCompleted: 'completed',
25
- InspectorStatusStateError: 'error'
20
+ InspectorStatusStateRunning: 'running'
26
21
  };
27
22
  /**
28
23
  * Check if a given object implements the InspectorStatus interface.
@@ -41,9 +36,7 @@ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
41
36
  }
42
37
  return {
43
38
  'state': json['state'],
44
- 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
45
39
  'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
46
- 'error': json['error'] == null ? undefined : json['error'],
47
40
  };
48
41
  }
49
42
  export function InspectorStatusToJSON(json) {
@@ -55,8 +48,6 @@ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
55
48
  }
56
49
  return {
57
50
  'state': value['state'],
58
- 'credentials': VcenterCredentialsToJSON(value['credentials']),
59
51
  'vddk': VddkPropertiesToJSON(value['vddk']),
60
- 'error': value['error'],
61
52
  };
62
53
  }
@@ -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; }}
@@ -17,7 +17,7 @@ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js'
17
17
  * Check if a given object implements the Inventory interface.
18
18
  */
19
19
  export function instanceOfInventory(value) {
20
- if (!('vcenterId' in value) || value['vcenterId'] === undefined)
20
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
21
21
  return false;
22
22
  if (!('clusters' in value) || value['clusters'] === undefined)
23
23
  return false;
@@ -31,7 +31,8 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
31
31
  return json;
32
32
  }
33
33
  return {
34
- 'vcenterId': json['vcenter_id'],
34
+ 'vcenter_id': json['vcenter_id'],
35
+ 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
35
36
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
36
37
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
37
38
  };
@@ -44,7 +45,8 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
44
45
  return value;
45
46
  }
46
47
  return {
47
- 'vcenter_id': value['vcenterId'],
48
+ 'vcenter_id': value['vcenter_id'],
49
+ 'vcenter_version': value['vcenter_version'],
48
50
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
49
51
  'vcenter': InventoryDataToJSON(value['vcenter']),
50
52
  };
@@ -12,6 +12,7 @@
12
12
  import type { VCenter } from './VCenter.js';
13
13
  import type { Infra } from './Infra.js';
14
14
  import type { VMs } from './VMs.js';
15
+ import type { ClusterFeatures } from './ClusterFeatures.js';
15
16
  /**
16
17
  *
17
18
  * @export
@@ -24,6 +25,12 @@ export interface InventoryData {
24
25
  * @memberof InventoryData
25
26
  */
26
27
  vcenter?: VCenter;
28
+ /**
29
+ *
30
+ * @type {ClusterFeatures}
31
+ * @memberof InventoryData
32
+ */
33
+ clusterFeatures?: ClusterFeatures;
27
34
  /**
28
35
  *
29
36
  * @type {VMs}
@@ -14,6 +14,7 @@
14
14
  import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
15
15
  import { InfraFromJSON, InfraToJSON, } from './Infra.js';
16
16
  import { VMsFromJSON, VMsToJSON, } from './VMs.js';
17
+ import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
17
18
  /**
18
19
  * Check if a given object implements the InventoryData interface.
19
20
  */
@@ -33,6 +34,7 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
33
34
  }
34
35
  return {
35
36
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
37
+ 'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
36
38
  'vms': VMsFromJSON(json['vms']),
37
39
  'infra': InfraFromJSON(json['infra']),
38
40
  };
@@ -46,6 +48,7 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
46
48
  }
47
49
  return {
48
50
  'vcenter': VCenterToJSON(value['vcenter']),
51
+ 'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
49
52
  'vms': VMsToJSON(value['vms']),
50
53
  'infra': InfraToJSON(value['infra']),
51
54
  };
@@ -0,0 +1,39 @@
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
+ import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingClusterListResponse
17
+ */
18
+ export interface RightsizingClusterListResponse {
19
+ /**
20
+ * The report ID this data was aggregated from
21
+ * @type {string}
22
+ * @memberof RightsizingClusterListResponse
23
+ */
24
+ report_id: string;
25
+ /**
26
+ *
27
+ * @type {Array<RightsizingClusterUtilization>}
28
+ * @memberof RightsizingClusterListResponse
29
+ */
30
+ clusters: Array<RightsizingClusterUtilization>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingClusterListResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse;
36
+ export declare function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse;
37
+ export declare function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse;
38
+ export declare function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse;
39
+ export declare function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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
+ import { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJSON, } from './RightsizingClusterUtilization.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingClusterListResponse interface.
17
+ */
18
+ export function instanceOfRightsizingClusterListResponse(value) {
19
+ if (!('report_id' in value) || value['report_id'] === undefined)
20
+ return false;
21
+ if (!('clusters' in value) || value['clusters'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function RightsizingClusterListResponseFromJSON(json) {
26
+ return RightsizingClusterListResponseFromJSONTyped(json, false);
27
+ }
28
+ export function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'report_id': json['report_id'],
34
+ 'clusters': (json['clusters'].map(RightsizingClusterUtilizationFromJSON)),
35
+ };
36
+ }
37
+ export function RightsizingClusterListResponseToJSON(json) {
38
+ return RightsizingClusterListResponseToJSONTyped(json, false);
39
+ }
40
+ export function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'report_id': value['report_id'],
46
+ 'clusters': (value['clusters'].map(RightsizingClusterUtilizationToJSON)),
47
+ };
48
+ }
@@ -0,0 +1,39 @@
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
+ import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingClusterResponse
17
+ */
18
+ export interface RightsizingClusterResponse {
19
+ /**
20
+ * The report ID this data was aggregated from
21
+ * @type {string}
22
+ * @memberof RightsizingClusterResponse
23
+ */
24
+ report_id: string;
25
+ /**
26
+ *
27
+ * @type {RightsizingClusterUtilization}
28
+ * @memberof RightsizingClusterResponse
29
+ */
30
+ cluster: RightsizingClusterUtilization;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingClusterResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingClusterResponse(value: object): value is RightsizingClusterResponse;
36
+ export declare function RightsizingClusterResponseFromJSON(json: any): RightsizingClusterResponse;
37
+ export declare function RightsizingClusterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterResponse;
38
+ export declare function RightsizingClusterResponseToJSON(json: any): RightsizingClusterResponse;
39
+ export declare function RightsizingClusterResponseToJSONTyped(value?: RightsizingClusterResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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
+ import { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJSON, } from './RightsizingClusterUtilization.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingClusterResponse interface.
17
+ */
18
+ export function instanceOfRightsizingClusterResponse(value) {
19
+ if (!('report_id' in value) || value['report_id'] === undefined)
20
+ return false;
21
+ if (!('cluster' in value) || value['cluster'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function RightsizingClusterResponseFromJSON(json) {
26
+ return RightsizingClusterResponseFromJSONTyped(json, false);
27
+ }
28
+ export function RightsizingClusterResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'report_id': json['report_id'],
34
+ 'cluster': RightsizingClusterUtilizationFromJSON(json['cluster']),
35
+ };
36
+ }
37
+ export function RightsizingClusterResponseToJSON(json) {
38
+ return RightsizingClusterResponseToJSONTyped(json, false);
39
+ }
40
+ export function RightsizingClusterResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'report_id': value['report_id'],
46
+ 'cluster': RightsizingClusterUtilizationToJSON(value['cluster']),
47
+ };
48
+ }
@@ -0,0 +1,112 @@
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 RightsizingClusterUtilization
16
+ */
17
+ export interface RightsizingClusterUtilization {
18
+ /**
19
+ * vSphere MoRef of the ClusterComputeResource (e.g. "domain-c123").
20
+ * @type {string}
21
+ * @memberof RightsizingClusterUtilization
22
+ */
23
+ cluster_id: string;
24
+ /**
25
+ * Display name of the cluster as reported by vCenter (e.g. "production-cluster").
26
+ * @type {string}
27
+ * @memberof RightsizingClusterUtilization
28
+ */
29
+ cluster_name: string;
30
+ /**
31
+ * Number of VMs with utilization data in this cluster
32
+ * @type {number}
33
+ * @memberof RightsizingClusterUtilization
34
+ */
35
+ vm_count: number;
36
+ /**
37
+ * SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
38
+ * @type {number}
39
+ * @memberof RightsizingClusterUtilization
40
+ */
41
+ cpu_avg: number;
42
+ /**
43
+ * SUM(vCPUs × vm_p95%) / SUM(vCPUs). Weighted summary of per-VM p95 values — not a true cluster-wide p95 (which would require time-aligned samples).
44
+ *
45
+ * @type {number}
46
+ * @memberof RightsizingClusterUtilization
47
+ */
48
+ cpu_p95: number;
49
+ /**
50
+ * Weighted summary of per-VM max values (see cpu_p95 note)
51
+ * @type {number}
52
+ * @memberof RightsizingClusterUtilization
53
+ */
54
+ cpu_max: number;
55
+ /**
56
+ * SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
57
+ * @type {number}
58
+ * @memberof RightsizingClusterUtilization
59
+ */
60
+ mem_avg: number;
61
+ /**
62
+ * Weighted summary of per-VM memory p95 values (see cpu_p95 note)
63
+ * @type {number}
64
+ * @memberof RightsizingClusterUtilization
65
+ */
66
+ mem_p95: number;
67
+ /**
68
+ * Weighted summary of per-VM memory max values (see cpu_p95 note)
69
+ * @type {number}
70
+ * @memberof RightsizingClusterUtilization
71
+ */
72
+ mem_max: number;
73
+ /**
74
+ * SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
75
+ * @type {number}
76
+ * @memberof RightsizingClusterUtilization
77
+ */
78
+ disk: number;
79
+ /**
80
+ * SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
81
+ *
82
+ * @type {number}
83
+ * @memberof RightsizingClusterUtilization
84
+ */
85
+ confidence: number;
86
+ /**
87
+ * Sum of vCPU counts across all VMs in the cluster
88
+ * @type {number}
89
+ * @memberof RightsizingClusterUtilization
90
+ */
91
+ total_provisioned_cpus: number;
92
+ /**
93
+ * Sum of provisioned RAM (MB) across all VMs in the cluster
94
+ * @type {number}
95
+ * @memberof RightsizingClusterUtilization
96
+ */
97
+ total_provisioned_memory_mb: number;
98
+ /**
99
+ * Sum of provisioned disk (KB) across all VMs in the cluster
100
+ * @type {number}
101
+ * @memberof RightsizingClusterUtilization
102
+ */
103
+ total_provisioned_disk_kb: number;
104
+ }
105
+ /**
106
+ * Check if a given object implements the RightsizingClusterUtilization interface.
107
+ */
108
+ export declare function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization;
109
+ export declare function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization;
110
+ export declare function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization;
111
+ export declare function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization;
112
+ export declare function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,95 @@
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 RightsizingClusterUtilization interface.
16
+ */
17
+ export function instanceOfRightsizingClusterUtilization(value) {
18
+ if (!('cluster_id' in value) || value['cluster_id'] === undefined)
19
+ return false;
20
+ if (!('cluster_name' in value) || value['cluster_name'] === undefined)
21
+ return false;
22
+ if (!('vm_count' in value) || value['vm_count'] === undefined)
23
+ return false;
24
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
25
+ return false;
26
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
27
+ return false;
28
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined)
29
+ return false;
30
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined)
31
+ return false;
32
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined)
33
+ return false;
34
+ if (!('mem_max' in value) || value['mem_max'] === undefined)
35
+ return false;
36
+ if (!('disk' in value) || value['disk'] === undefined)
37
+ return false;
38
+ if (!('confidence' in value) || value['confidence'] === undefined)
39
+ return false;
40
+ if (!('total_provisioned_cpus' in value) || value['total_provisioned_cpus'] === undefined)
41
+ return false;
42
+ if (!('total_provisioned_memory_mb' in value) || value['total_provisioned_memory_mb'] === undefined)
43
+ return false;
44
+ if (!('total_provisioned_disk_kb' in value) || value['total_provisioned_disk_kb'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ export function RightsizingClusterUtilizationFromJSON(json) {
49
+ return RightsizingClusterUtilizationFromJSONTyped(json, false);
50
+ }
51
+ export function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'cluster_id': json['cluster_id'],
57
+ 'cluster_name': json['cluster_name'],
58
+ 'vm_count': json['vm_count'],
59
+ 'cpu_avg': json['cpu_avg'],
60
+ 'cpu_p95': json['cpu_p95'],
61
+ 'cpu_max': json['cpu_max'],
62
+ 'mem_avg': json['mem_avg'],
63
+ 'mem_p95': json['mem_p95'],
64
+ 'mem_max': json['mem_max'],
65
+ 'disk': json['disk'],
66
+ 'confidence': json['confidence'],
67
+ 'total_provisioned_cpus': json['total_provisioned_cpus'],
68
+ 'total_provisioned_memory_mb': json['total_provisioned_memory_mb'],
69
+ 'total_provisioned_disk_kb': json['total_provisioned_disk_kb'],
70
+ };
71
+ }
72
+ export function RightsizingClusterUtilizationToJSON(json) {
73
+ return RightsizingClusterUtilizationToJSONTyped(json, false);
74
+ }
75
+ export function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+ 'cluster_id': value['cluster_id'],
81
+ 'cluster_name': value['cluster_name'],
82
+ 'vm_count': value['vm_count'],
83
+ 'cpu_avg': value['cpu_avg'],
84
+ 'cpu_p95': value['cpu_p95'],
85
+ 'cpu_max': value['cpu_max'],
86
+ 'mem_avg': value['mem_avg'],
87
+ 'mem_p95': value['mem_p95'],
88
+ 'mem_max': value['mem_max'],
89
+ 'disk': value['disk'],
90
+ 'confidence': value['confidence'],
91
+ 'total_provisioned_cpus': value['total_provisioned_cpus'],
92
+ 'total_provisioned_memory_mb': value['total_provisioned_memory_mb'],
93
+ 'total_provisioned_disk_kb': value['total_provisioned_disk_kb'],
94
+ };
95
+ }