@openshift-migration-advisor/planner-sdk 0.13.7 → 0.14.0-e72c0cc421c6

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 (61) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +4 -2
  3. package/dist/esm/models/ClusterRequirementsRequest.d.ts +6 -0
  4. package/dist/esm/models/ClusterRequirementsRequest.js +2 -0
  5. package/dist/esm/models/ClusterRequirementsResponse.d.ts +20 -0
  6. package/dist/esm/models/ClusterRequirementsResponse.js +8 -0
  7. package/dist/esm/models/ClusterRequirementsStoredInput.d.ts +7 -0
  8. package/dist/esm/models/ClusterRequirementsStoredInput.js +4 -1
  9. package/dist/esm/models/ClusterSizing.d.ts +18 -0
  10. package/dist/esm/models/ClusterSizing.js +6 -0
  11. package/dist/esm/models/CpuOverCommitRatio.d.ts +1 -0
  12. package/dist/esm/models/CpuOverCommitRatio.js +2 -1
  13. package/dist/esm/models/OptimizationStatus.d.ts +48 -0
  14. package/dist/esm/models/OptimizationStatus.js +56 -0
  15. package/dist/esm/models/Savings.d.ts +44 -0
  16. package/dist/esm/models/Savings.js +51 -0
  17. package/dist/esm/models/Source.d.ts +14 -0
  18. package/dist/esm/models/Source.js +9 -0
  19. package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +6 -0
  20. package/dist/esm/models/StandaloneClusterRequirementsRequest.js +2 -0
  21. package/dist/esm/models/index.d.ts +2 -0
  22. package/dist/esm/models/index.js +2 -0
  23. package/dist/models/ClusterRequirementsRequest.d.ts +6 -0
  24. package/dist/models/ClusterRequirementsRequest.js +2 -0
  25. package/dist/models/ClusterRequirementsResponse.d.ts +20 -0
  26. package/dist/models/ClusterRequirementsResponse.js +8 -0
  27. package/dist/models/ClusterRequirementsStoredInput.d.ts +7 -0
  28. package/dist/models/ClusterRequirementsStoredInput.js +4 -1
  29. package/dist/models/ClusterSizing.d.ts +18 -0
  30. package/dist/models/ClusterSizing.js +6 -0
  31. package/dist/models/CpuOverCommitRatio.d.ts +1 -0
  32. package/dist/models/CpuOverCommitRatio.js +2 -1
  33. package/dist/models/OptimizationStatus.d.ts +48 -0
  34. package/dist/models/OptimizationStatus.js +64 -0
  35. package/dist/models/Savings.d.ts +44 -0
  36. package/dist/models/Savings.js +58 -0
  37. package/dist/models/Source.d.ts +14 -0
  38. package/dist/models/Source.js +10 -0
  39. package/dist/models/StandaloneClusterRequirementsRequest.d.ts +6 -0
  40. package/dist/models/StandaloneClusterRequirementsRequest.js +2 -0
  41. package/dist/models/index.d.ts +2 -0
  42. package/dist/models/index.js +2 -0
  43. package/docs/ClusterRequirementsRequest.md +2 -0
  44. package/docs/ClusterRequirementsResponse.md +6 -0
  45. package/docs/ClusterRequirementsStoredInput.md +2 -0
  46. package/docs/ClusterSizing.md +6 -0
  47. package/docs/OptimizationStatus.md +37 -0
  48. package/docs/Savings.md +39 -0
  49. package/docs/Source.md +2 -0
  50. package/docs/StandaloneClusterRequirementsRequest.md +2 -0
  51. package/package.json +1 -1
  52. package/src/models/ClusterRequirementsRequest.ts +8 -0
  53. package/src/models/ClusterRequirementsResponse.ts +38 -0
  54. package/src/models/ClusterRequirementsStoredInput.ts +10 -1
  55. package/src/models/ClusterSizing.ts +24 -0
  56. package/src/models/CpuOverCommitRatio.ts +2 -1
  57. package/src/models/OptimizationStatus.ts +88 -0
  58. package/src/models/Savings.ts +84 -0
  59. package/src/models/Source.ts +19 -0
  60. package/src/models/StandaloneClusterRequirementsRequest.ts +8 -0
  61. package/src/models/index.ts +2 -0
@@ -57,6 +57,7 @@ docs/MigrationEstimationResponse.md
57
57
  docs/MigrationIssue.md
58
58
  docs/ModelError.md
59
59
  docs/Network.md
60
+ docs/OptimizationStatus.md
60
61
  docs/OsDiskEstimationEntry.md
61
62
  docs/OsInfo.md
62
63
  docs/PartnerApi.md
@@ -66,6 +67,7 @@ docs/PartnerRequestStatus.md
66
67
  docs/PartnerRequestUpdate.md
67
68
  docs/PartnerSummary.md
68
69
  docs/PresignedUrl.md
70
+ docs/Savings.md
69
71
  docs/SchemaEstimationResult.md
70
72
  docs/SharingSubject.md
71
73
  docs/SizingApi.md
@@ -147,6 +149,7 @@ src/models/MigrationEstimationResponse.ts
147
149
  src/models/MigrationIssue.ts
148
150
  src/models/ModelError.ts
149
151
  src/models/Network.ts
152
+ src/models/OptimizationStatus.ts
150
153
  src/models/OsDiskEstimationEntry.ts
151
154
  src/models/OsInfo.ts
152
155
  src/models/PartnerRequest.ts
@@ -155,6 +158,7 @@ src/models/PartnerRequestStatus.ts
155
158
  src/models/PartnerRequestUpdate.ts
156
159
  src/models/PartnerSummary.ts
157
160
  src/models/PresignedUrl.ts
161
+ src/models/Savings.ts
158
162
  src/models/SchemaEstimationResult.ts
159
163
  src/models/SharingSubject.ts
160
164
  src/models/SizingOverCommitRatio.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.13.7
1
+ # @openshift-migration-advisor/planner-sdk@0.14.0-e72c0cc421c6
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -148,6 +148,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
148
148
  - [MigrationIssue](docs/MigrationIssue.md)
149
149
  - [ModelError](docs/ModelError.md)
150
150
  - [Network](docs/Network.md)
151
+ - [OptimizationStatus](docs/OptimizationStatus.md)
151
152
  - [OsDiskEstimationEntry](docs/OsDiskEstimationEntry.md)
152
153
  - [OsInfo](docs/OsInfo.md)
153
154
  - [PartnerRequest](docs/PartnerRequest.md)
@@ -156,6 +157,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
156
157
  - [PartnerRequestUpdate](docs/PartnerRequestUpdate.md)
157
158
  - [PartnerSummary](docs/PartnerSummary.md)
158
159
  - [PresignedUrl](docs/PresignedUrl.md)
160
+ - [Savings](docs/Savings.md)
159
161
  - [SchemaEstimationResult](docs/SchemaEstimationResult.md)
160
162
  - [SharingSubject](docs/SharingSubject.md)
161
163
  - [SizingOverCommitRatio](docs/SizingOverCommitRatio.md)
@@ -187,7 +189,7 @@ and is automatically generated by the
187
189
  [OpenAPI Generator](https://openapi-generator.tech) project:
188
190
 
189
191
  - API version: `v1alpha1`
190
- - Package version: `0.13.7`
192
+ - Package version: `0.14.0-e72c0cc421c6`
191
193
  - Generator version: `7.24.0-SNAPSHOT`
192
194
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
193
195
 
@@ -83,6 +83,12 @@ export interface ClusterRequirementsRequest {
83
83
  * @memberof ClusterRequirementsRequest
84
84
  */
85
85
  hostedControlPlane?: boolean;
86
+ /**
87
+ * If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
88
+ * @type {boolean}
89
+ * @memberof ClusterRequirementsRequest
90
+ */
91
+ compactMode?: boolean;
86
92
  }
87
93
  /**
88
94
  * @export
@@ -55,6 +55,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminato
55
55
  'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
56
56
  'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
57
57
  'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
58
+ 'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
58
59
  };
59
60
  }
60
61
  export function ClusterRequirementsRequestToJSON(json) {
@@ -76,5 +77,6 @@ export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator
76
77
  'controlPlaneMemory': value['controlPlaneMemory'],
77
78
  'controlPlaneNodeCount': value['controlPlaneNodeCount'],
78
79
  'hostedControlPlane': value['hostedControlPlane'],
80
+ 'compactMode': value['compactMode'],
79
81
  };
80
82
  }
@@ -9,9 +9,11 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Savings } from './Savings.js';
12
13
  import type { SizingResourceConsumption } from './SizingResourceConsumption.js';
13
14
  import type { InventoryTotals } from './InventoryTotals.js';
14
15
  import type { ClusterSizing } from './ClusterSizing.js';
16
+ import type { OptimizationStatus } from './OptimizationStatus.js';
15
17
  /**
16
18
  * Cluster requirements calculation results
17
19
  * @export
@@ -24,6 +26,24 @@ export interface ClusterRequirementsResponse {
24
26
  * @memberof ClusterRequirementsResponse
25
27
  */
26
28
  clusterSizing: ClusterSizing;
29
+ /**
30
+ *
31
+ * @type {ClusterSizing}
32
+ * @memberof ClusterRequirementsResponse
33
+ */
34
+ optimizedSizing?: ClusterSizing;
35
+ /**
36
+ *
37
+ * @type {Savings}
38
+ * @memberof ClusterRequirementsResponse
39
+ */
40
+ savings?: Savings;
41
+ /**
42
+ *
43
+ * @type {OptimizationStatus}
44
+ * @memberof ClusterRequirementsResponse
45
+ */
46
+ optimizationStatus?: OptimizationStatus;
27
47
  /**
28
48
  *
29
49
  * @type {SizingResourceConsumption}
@@ -11,9 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { SavingsFromJSON, SavingsToJSON, } from './Savings.js';
14
15
  import { SizingResourceConsumptionFromJSON, SizingResourceConsumptionToJSON, } from './SizingResourceConsumption.js';
15
16
  import { InventoryTotalsFromJSON, InventoryTotalsToJSON, } from './InventoryTotals.js';
16
17
  import { ClusterSizingFromJSON, ClusterSizingToJSON, } from './ClusterSizing.js';
18
+ import { OptimizationStatusFromJSON, OptimizationStatusToJSON, } from './OptimizationStatus.js';
17
19
  /**
18
20
  * Check if a given object implements the ClusterRequirementsResponse interface.
19
21
  */
@@ -35,6 +37,9 @@ export function ClusterRequirementsResponseFromJSONTyped(json, ignoreDiscriminat
35
37
  }
36
38
  return {
37
39
  'clusterSizing': ClusterSizingFromJSON(json['clusterSizing']),
40
+ 'optimizedSizing': json['optimizedSizing'] == null ? undefined : ClusterSizingFromJSON(json['optimizedSizing']),
41
+ 'savings': json['savings'] == null ? undefined : SavingsFromJSON(json['savings']),
42
+ 'optimizationStatus': json['optimizationStatus'] == null ? undefined : OptimizationStatusFromJSON(json['optimizationStatus']),
38
43
  'resourceConsumption': SizingResourceConsumptionFromJSON(json['resourceConsumption']),
39
44
  'inventoryTotals': InventoryTotalsFromJSON(json['inventoryTotals']),
40
45
  };
@@ -48,6 +53,9 @@ export function ClusterRequirementsResponseToJSONTyped(value, ignoreDiscriminato
48
53
  }
49
54
  return {
50
55
  'clusterSizing': ClusterSizingToJSON(value['clusterSizing']),
56
+ 'optimizedSizing': ClusterSizingToJSON(value['optimizedSizing']),
57
+ 'savings': SavingsToJSON(value['savings']),
58
+ 'optimizationStatus': OptimizationStatusToJSON(value['optimizationStatus']),
51
59
  'resourceConsumption': SizingResourceConsumptionToJSON(value['resourceConsumption']),
52
60
  'inventoryTotals': InventoryTotalsToJSON(value['inventoryTotals']),
53
61
  };
@@ -81,6 +81,12 @@ export interface ClusterRequirementsStoredInput {
81
81
  * @memberof ClusterRequirementsStoredInput
82
82
  */
83
83
  hostedControlPlane?: boolean;
84
+ /**
85
+ * If true, creates a 3-node compact cluster with no dedicated workers
86
+ * @type {boolean}
87
+ * @memberof ClusterRequirementsStoredInput
88
+ */
89
+ compactMode?: boolean;
84
90
  }
85
91
  /**
86
92
  * @export
@@ -90,6 +96,7 @@ export declare const ClusterRequirementsStoredInputCpuOverCommitRatioEnum: {
90
96
  readonly _12: "1:2";
91
97
  readonly _14: "1:4";
92
98
  readonly _16: "1:6";
99
+ readonly _18: "1:8";
93
100
  };
94
101
  export type ClusterRequirementsStoredInputCpuOverCommitRatioEnum = typeof ClusterRequirementsStoredInputCpuOverCommitRatioEnum[keyof typeof ClusterRequirementsStoredInputCpuOverCommitRatioEnum];
95
102
  /**
@@ -18,7 +18,8 @@ export const ClusterRequirementsStoredInputCpuOverCommitRatioEnum = {
18
18
  _11: '1:1',
19
19
  _12: '1:2',
20
20
  _14: '1:4',
21
- _16: '1:6'
21
+ _16: '1:6',
22
+ _18: '1:8'
22
23
  };
23
24
  /**
24
25
  * @export
@@ -62,6 +63,7 @@ export function ClusterRequirementsStoredInputFromJSONTyped(json, ignoreDiscrimi
62
63
  'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
63
64
  'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
64
65
  'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
66
+ 'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
65
67
  };
66
68
  }
67
69
  export function ClusterRequirementsStoredInputToJSON(json) {
@@ -83,5 +85,6 @@ export function ClusterRequirementsStoredInputToJSONTyped(value, ignoreDiscrimin
83
85
  'controlPlaneMemory': value['controlPlaneMemory'],
84
86
  'controlPlaneNodeCount': value['controlPlaneNodeCount'],
85
87
  'hostedControlPlane': value['hostedControlPlane'],
88
+ 'compactMode': value['compactMode'],
86
89
  };
87
90
  }
@@ -51,6 +51,24 @@ export interface ClusterSizing {
51
51
  * @memberof ClusterSizing
52
52
  */
53
53
  totalMemory: number;
54
+ /**
55
+ * CPU utilization maximum percentage (only in optimized_sizing)
56
+ * @type {number}
57
+ * @memberof ClusterSizing
58
+ */
59
+ cpuUtilizationMax?: number;
60
+ /**
61
+ * Memory utilization maximum percentage (only in optimized_sizing)
62
+ * @type {number}
63
+ * @memberof ClusterSizing
64
+ */
65
+ memoryUtilizationMax?: number;
66
+ /**
67
+ * Data coverage confidence 0-100 (only in optimized_sizing)
68
+ * @type {number}
69
+ * @memberof ClusterSizing
70
+ */
71
+ confidence?: number;
54
72
  }
55
73
  /**
56
74
  * Check if a given object implements the ClusterSizing interface.
@@ -43,6 +43,9 @@ export function ClusterSizingFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'failoverNodes': json['failoverNodes'],
44
44
  'totalCPU': json['totalCPU'],
45
45
  'totalMemory': json['totalMemory'],
46
+ 'cpuUtilizationMax': json['cpuUtilizationMax'] == null ? undefined : json['cpuUtilizationMax'],
47
+ 'memoryUtilizationMax': json['memoryUtilizationMax'] == null ? undefined : json['memoryUtilizationMax'],
48
+ 'confidence': json['confidence'] == null ? undefined : json['confidence'],
46
49
  };
47
50
  }
48
51
  export function ClusterSizingToJSON(json) {
@@ -59,5 +62,8 @@ export function ClusterSizingToJSONTyped(value, ignoreDiscriminator = false) {
59
62
  'failoverNodes': value['failoverNodes'],
60
63
  'totalCPU': value['totalCPU'],
61
64
  'totalMemory': value['totalMemory'],
65
+ 'cpuUtilizationMax': value['cpuUtilizationMax'],
66
+ 'memoryUtilizationMax': value['memoryUtilizationMax'],
67
+ 'confidence': value['confidence'],
62
68
  };
63
69
  }
@@ -18,6 +18,7 @@ export declare const CpuOverCommitRatio: {
18
18
  readonly CpuOneToTwo: "1:2";
19
19
  readonly CpuOneToFour: "1:4";
20
20
  readonly CpuOneToSix: "1:6";
21
+ readonly CpuOneToEight: "1:8";
21
22
  };
22
23
  export type CpuOverCommitRatio = typeof CpuOverCommitRatio[keyof typeof CpuOverCommitRatio];
23
24
  export declare function instanceOfCpuOverCommitRatio(value: any): boolean;
@@ -19,7 +19,8 @@ export const CpuOverCommitRatio = {
19
19
  CpuOneToOne: '1:1',
20
20
  CpuOneToTwo: '1:2',
21
21
  CpuOneToFour: '1:4',
22
- CpuOneToSix: '1:6'
22
+ CpuOneToSix: '1:6',
23
+ CpuOneToEight: '1:8'
23
24
  };
24
25
  export function instanceOfCpuOverCommitRatio(value) {
25
26
  for (const key in CpuOverCommitRatio) {
@@ -0,0 +1,48 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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
+ * Status of utilization-based optimization attempt
14
+ * @export
15
+ * @interface OptimizationStatus
16
+ */
17
+ export interface OptimizationStatus {
18
+ /**
19
+ * Whether optimization was attempted based on available utilization data
20
+ * @type {boolean}
21
+ * @memberof OptimizationStatus
22
+ */
23
+ attempted: boolean;
24
+ /**
25
+ * Reason for optimization result
26
+ * @type {OptimizationStatusReasonEnum}
27
+ * @memberof OptimizationStatus
28
+ */
29
+ reason: OptimizationStatusReasonEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const OptimizationStatusReasonEnum: {
35
+ readonly NoUtilizationData: "no_utilization_data";
36
+ readonly LowConfidence: "low_confidence";
37
+ readonly CalculationError: "calculation_error";
38
+ readonly Success: "success";
39
+ };
40
+ export type OptimizationStatusReasonEnum = typeof OptimizationStatusReasonEnum[keyof typeof OptimizationStatusReasonEnum];
41
+ /**
42
+ * Check if a given object implements the OptimizationStatus interface.
43
+ */
44
+ export declare function instanceOfOptimizationStatus(value: object): value is OptimizationStatus;
45
+ export declare function OptimizationStatusFromJSON(json: any): OptimizationStatus;
46
+ export declare function OptimizationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): OptimizationStatus;
47
+ export declare function OptimizationStatusToJSON(json: any): OptimizationStatus;
48
+ export declare function OptimizationStatusToJSONTyped(value?: OptimizationStatus | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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
+ * @export
16
+ */
17
+ export const OptimizationStatusReasonEnum = {
18
+ NoUtilizationData: 'no_utilization_data',
19
+ LowConfidence: 'low_confidence',
20
+ CalculationError: 'calculation_error',
21
+ Success: 'success'
22
+ };
23
+ /**
24
+ * Check if a given object implements the OptimizationStatus interface.
25
+ */
26
+ export function instanceOfOptimizationStatus(value) {
27
+ if (!('attempted' in value) || value['attempted'] === undefined)
28
+ return false;
29
+ if (!('reason' in value) || value['reason'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function OptimizationStatusFromJSON(json) {
34
+ return OptimizationStatusFromJSONTyped(json, false);
35
+ }
36
+ export function OptimizationStatusFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'attempted': json['attempted'],
42
+ 'reason': json['reason'],
43
+ };
44
+ }
45
+ export function OptimizationStatusToJSON(json) {
46
+ return OptimizationStatusToJSONTyped(json, false);
47
+ }
48
+ export function OptimizationStatusToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'attempted': value['attempted'],
54
+ 'reason': value['reason'],
55
+ };
56
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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
+ * Infrastructure savings comparison
14
+ * @export
15
+ * @interface Savings
16
+ */
17
+ export interface Savings {
18
+ /**
19
+ * Number of nodes saved compared to baseline
20
+ * @type {number}
21
+ * @memberof Savings
22
+ */
23
+ nodesSaved: number;
24
+ /**
25
+ * Percentage reduction in nodes
26
+ * @type {number}
27
+ * @memberof Savings
28
+ */
29
+ percentageReduction: number;
30
+ /**
31
+ * Human-readable description of savings source
32
+ * @type {string}
33
+ * @memberof Savings
34
+ */
35
+ description: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the Savings interface.
39
+ */
40
+ export declare function instanceOfSavings(value: object): value is Savings;
41
+ export declare function SavingsFromJSON(json: any): Savings;
42
+ export declare function SavingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Savings;
43
+ export declare function SavingsToJSON(json: any): Savings;
44
+ export declare function SavingsToJSONTyped(value?: Savings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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 Savings interface.
16
+ */
17
+ export function instanceOfSavings(value) {
18
+ if (!('nodesSaved' in value) || value['nodesSaved'] === undefined)
19
+ return false;
20
+ if (!('percentageReduction' in value) || value['percentageReduction'] === undefined)
21
+ return false;
22
+ if (!('description' in value) || value['description'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function SavingsFromJSON(json) {
27
+ return SavingsFromJSONTyped(json, false);
28
+ }
29
+ export function SavingsFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'nodesSaved': json['nodesSaved'],
35
+ 'percentageReduction': json['percentageReduction'],
36
+ 'description': json['description'],
37
+ };
38
+ }
39
+ export function SavingsToJSON(json) {
40
+ return SavingsToJSONTyped(json, false);
41
+ }
42
+ export function SavingsToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'nodesSaved': value['nodesSaved'],
48
+ 'percentageReduction': value['percentageReduction'],
49
+ 'description': value['description'],
50
+ };
51
+ }
@@ -85,7 +85,21 @@ export interface Source {
85
85
  * @memberof Source
86
86
  */
87
87
  agentVersionWarning?: string | null;
88
+ /**
89
+ * Indicates whether the inventory was updated automatically by an agent or manually by a user
90
+ * @type {SourceUpdateTypeEnum}
91
+ * @memberof Source
92
+ */
93
+ updateType?: SourceUpdateTypeEnum;
88
94
  }
95
+ /**
96
+ * @export
97
+ */
98
+ export declare const SourceUpdateTypeEnum: {
99
+ readonly Auto: "auto";
100
+ readonly Manual: "manual";
101
+ };
102
+ export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
89
103
  /**
90
104
  * Check if a given object implements the Source interface.
91
105
  */
@@ -15,6 +15,13 @@ import { SourceInfraFromJSON, SourceInfraToJSON, } from './SourceInfra.js';
15
15
  import { AgentFromJSON, AgentToJSON, } from './Agent.js';
16
16
  import { LabelFromJSON, LabelToJSON, } from './Label.js';
17
17
  import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
18
+ /**
19
+ * @export
20
+ */
21
+ export const SourceUpdateTypeEnum = {
22
+ Auto: 'auto',
23
+ Manual: 'manual'
24
+ };
18
25
  /**
19
26
  * Check if a given object implements the Source interface.
20
27
  */
@@ -50,6 +57,7 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
50
57
  'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
51
58
  'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
52
59
  'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
60
+ 'updateType': json['updateType'] == null ? undefined : json['updateType'],
53
61
  };
54
62
  }
55
63
  export function SourceToJSON(json) {
@@ -71,5 +79,6 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
71
79
  'infra': SourceInfraToJSON(value['infra']),
72
80
  'agentVersion': value['agentVersion'],
73
81
  'agentVersionWarning': value['agentVersionWarning'],
82
+ 'updateType': value['updateType'],
74
83
  };
75
84
  }
@@ -95,6 +95,12 @@ export interface StandaloneClusterRequirementsRequest {
95
95
  * @memberof StandaloneClusterRequirementsRequest
96
96
  */
97
97
  hostedControlPlane?: boolean;
98
+ /**
99
+ * If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
100
+ * @type {boolean}
101
+ * @memberof StandaloneClusterRequirementsRequest
102
+ */
103
+ compactMode?: boolean;
98
104
  }
99
105
  /**
100
106
  * @export
@@ -61,6 +61,7 @@ export function StandaloneClusterRequirementsRequestFromJSONTyped(json, ignoreDi
61
61
  'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
62
62
  'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
63
63
  'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
64
+ 'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
64
65
  };
65
66
  }
66
67
  export function StandaloneClusterRequirementsRequestToJSON(json) {
@@ -84,5 +85,6 @@ export function StandaloneClusterRequirementsRequestToJSONTyped(value, ignoreDis
84
85
  'controlPlaneMemory': value['controlPlaneMemory'],
85
86
  'controlPlaneNodeCount': value['controlPlaneNodeCount'],
86
87
  'hostedControlPlane': value['hostedControlPlane'],
88
+ 'compactMode': value['compactMode'],
87
89
  };
88
90
  }
@@ -47,6 +47,7 @@ export * from './MigrationEstimationResponse.js';
47
47
  export * from './MigrationIssue.js';
48
48
  export * from './ModelError.js';
49
49
  export * from './Network.js';
50
+ export * from './OptimizationStatus.js';
50
51
  export * from './OsDiskEstimationEntry.js';
51
52
  export * from './OsInfo.js';
52
53
  export * from './PartnerRequest.js';
@@ -55,6 +56,7 @@ export * from './PartnerRequestStatus.js';
55
56
  export * from './PartnerRequestUpdate.js';
56
57
  export * from './PartnerSummary.js';
57
58
  export * from './PresignedUrl.js';
59
+ export * from './Savings.js';
58
60
  export * from './SchemaEstimationResult.js';
59
61
  export * from './SharingSubject.js';
60
62
  export * from './SizingOverCommitRatio.js';
@@ -49,6 +49,7 @@ export * from './MigrationEstimationResponse.js';
49
49
  export * from './MigrationIssue.js';
50
50
  export * from './ModelError.js';
51
51
  export * from './Network.js';
52
+ export * from './OptimizationStatus.js';
52
53
  export * from './OsDiskEstimationEntry.js';
53
54
  export * from './OsInfo.js';
54
55
  export * from './PartnerRequest.js';
@@ -57,6 +58,7 @@ export * from './PartnerRequestStatus.js';
57
58
  export * from './PartnerRequestUpdate.js';
58
59
  export * from './PartnerSummary.js';
59
60
  export * from './PresignedUrl.js';
61
+ export * from './Savings.js';
60
62
  export * from './SchemaEstimationResult.js';
61
63
  export * from './SharingSubject.js';
62
64
  export * from './SizingOverCommitRatio.js';
@@ -83,6 +83,12 @@ export interface ClusterRequirementsRequest {
83
83
  * @memberof ClusterRequirementsRequest
84
84
  */
85
85
  hostedControlPlane?: boolean;
86
+ /**
87
+ * If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
88
+ * @type {boolean}
89
+ * @memberof ClusterRequirementsRequest
90
+ */
91
+ compactMode?: boolean;
86
92
  }
87
93
  /**
88
94
  * @export
@@ -63,6 +63,7 @@ function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
64
64
  'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
65
65
  'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
66
+ 'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
66
67
  };
67
68
  }
68
69
  function ClusterRequirementsRequestToJSON(json) {
@@ -84,5 +85,6 @@ function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = fals
84
85
  'controlPlaneMemory': value['controlPlaneMemory'],
85
86
  'controlPlaneNodeCount': value['controlPlaneNodeCount'],
86
87
  'hostedControlPlane': value['hostedControlPlane'],
88
+ 'compactMode': value['compactMode'],
87
89
  };
88
90
  }
@@ -9,9 +9,11 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Savings } from './Savings.js';
12
13
  import type { SizingResourceConsumption } from './SizingResourceConsumption.js';
13
14
  import type { InventoryTotals } from './InventoryTotals.js';
14
15
  import type { ClusterSizing } from './ClusterSizing.js';
16
+ import type { OptimizationStatus } from './OptimizationStatus.js';
15
17
  /**
16
18
  * Cluster requirements calculation results
17
19
  * @export
@@ -24,6 +26,24 @@ export interface ClusterRequirementsResponse {
24
26
  * @memberof ClusterRequirementsResponse
25
27
  */
26
28
  clusterSizing: ClusterSizing;
29
+ /**
30
+ *
31
+ * @type {ClusterSizing}
32
+ * @memberof ClusterRequirementsResponse
33
+ */
34
+ optimizedSizing?: ClusterSizing;
35
+ /**
36
+ *
37
+ * @type {Savings}
38
+ * @memberof ClusterRequirementsResponse
39
+ */
40
+ savings?: Savings;
41
+ /**
42
+ *
43
+ * @type {OptimizationStatus}
44
+ * @memberof ClusterRequirementsResponse
45
+ */
46
+ optimizationStatus?: OptimizationStatus;
27
47
  /**
28
48
  *
29
49
  * @type {SizingResourceConsumption}