@openshift-migration-advisor/planner-sdk 0.13.3-d6f3e1a2716b → 0.13.4

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 (62) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +8 -2
  3. package/dist/apis/SizingApi.d.ts +61 -0
  4. package/dist/apis/SizingApi.js +74 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/SizingApi.d.ts +61 -0
  8. package/dist/esm/apis/SizingApi.js +70 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/ClusterRequirementsRequest.d.ts +6 -23
  12. package/dist/esm/models/ClusterRequirementsRequest.js +6 -21
  13. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  14. package/dist/esm/models/ClusterUtilization.js +67 -0
  15. package/dist/esm/models/CpuOverCommitRatio.d.ts +27 -0
  16. package/dist/esm/models/CpuOverCommitRatio.js +45 -0
  17. package/dist/esm/models/InventoryData.d.ts +7 -0
  18. package/dist/esm/models/InventoryData.js +3 -0
  19. package/dist/esm/models/MemoryOverCommitRatio.d.ts +26 -0
  20. package/dist/esm/models/MemoryOverCommitRatio.js +44 -0
  21. package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
  22. package/dist/esm/models/StandaloneClusterRequirementsRequest.js +88 -0
  23. package/dist/esm/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
  24. package/dist/esm/models/StandaloneClusterRequirementsResponse.js +49 -0
  25. package/dist/esm/models/index.d.ts +5 -0
  26. package/dist/esm/models/index.js +5 -0
  27. package/dist/models/ClusterRequirementsRequest.d.ts +6 -23
  28. package/dist/models/ClusterRequirementsRequest.js +7 -22
  29. package/dist/models/ClusterUtilization.d.ts +68 -0
  30. package/dist/models/ClusterUtilization.js +74 -0
  31. package/dist/models/CpuOverCommitRatio.d.ts +27 -0
  32. package/dist/models/CpuOverCommitRatio.js +53 -0
  33. package/dist/models/InventoryData.d.ts +7 -0
  34. package/dist/models/InventoryData.js +3 -0
  35. package/dist/models/MemoryOverCommitRatio.d.ts +26 -0
  36. package/dist/models/MemoryOverCommitRatio.js +52 -0
  37. package/dist/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
  38. package/dist/models/StandaloneClusterRequirementsRequest.js +96 -0
  39. package/dist/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
  40. package/dist/models/StandaloneClusterRequirementsResponse.js +56 -0
  41. package/dist/models/index.d.ts +5 -0
  42. package/dist/models/index.js +5 -0
  43. package/docs/AccountApi.md +9 -0
  44. package/docs/ClusterRequirementsRequest.md +2 -2
  45. package/docs/ClusterUtilization.md +46 -0
  46. package/docs/CpuOverCommitRatio.md +33 -0
  47. package/docs/InventoryData.md +2 -0
  48. package/docs/MemoryOverCommitRatio.md +33 -0
  49. package/docs/SizingApi.md +80 -0
  50. package/docs/StandaloneClusterRequirementsRequest.md +59 -0
  51. package/docs/StandaloneClusterRequirementsResponse.md +37 -0
  52. package/package.json +1 -1
  53. package/src/apis/SizingApi.ts +114 -0
  54. package/src/apis/index.ts +1 -0
  55. package/src/models/ClusterRequirementsRequest.ts +23 -29
  56. package/src/models/ClusterUtilization.ts +120 -0
  57. package/src/models/CpuOverCommitRatio.ts +55 -0
  58. package/src/models/InventoryData.ts +15 -0
  59. package/src/models/MemoryOverCommitRatio.ts +54 -0
  60. package/src/models/StandaloneClusterRequirementsRequest.ts +194 -0
  61. package/src/models/StandaloneClusterRequirementsResponse.ts +90 -0
  62. package/src/models/index.ts +5 -0
@@ -0,0 +1,68 @@
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
+ *
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
+ cpuAvg: number;
24
+ /**
25
+ * 95th percentile CPU utilization percentage (0-100)
26
+ * @type {number}
27
+ * @memberof ClusterUtilization
28
+ */
29
+ cpuP95: number;
30
+ /**
31
+ * Maximum CPU utilization percentage (0-100)
32
+ * @type {number}
33
+ * @memberof ClusterUtilization
34
+ */
35
+ cpuMax: number;
36
+ /**
37
+ * Average memory utilization percentage (0-100)
38
+ * @type {number}
39
+ * @memberof ClusterUtilization
40
+ */
41
+ memAvg: number;
42
+ /**
43
+ * 95th percentile memory utilization percentage (0-100)
44
+ * @type {number}
45
+ * @memberof ClusterUtilization
46
+ */
47
+ memP95: number;
48
+ /**
49
+ * Maximum memory utilization percentage (0-100)
50
+ * @type {number}
51
+ * @memberof ClusterUtilization
52
+ */
53
+ memMax: 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
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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 ((!('cpuAvg' in value) && !('cpu_avg' in value)) || (value['cpuAvg'] === undefined && value['cpu_avg'] === undefined))
26
+ return false;
27
+ if ((!('cpuP95' in value) && !('cpu_p95' in value)) || (value['cpuP95'] === undefined && value['cpu_p95'] === undefined))
28
+ return false;
29
+ if ((!('cpuMax' in value) && !('cpu_max' in value)) || (value['cpuMax'] === undefined && value['cpu_max'] === undefined))
30
+ return false;
31
+ if ((!('memAvg' in value) && !('mem_avg' in value)) || (value['memAvg'] === undefined && value['mem_avg'] === undefined))
32
+ return false;
33
+ if ((!('memP95' in value) && !('mem_p95' in value)) || (value['memP95'] === undefined && value['mem_p95'] === undefined))
34
+ return false;
35
+ if ((!('memMax' in value) && !('mem_max' in value)) || (value['memMax'] === undefined && 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
+ 'cpuAvg': json['cpu_avg'],
50
+ 'cpuP95': json['cpu_p95'],
51
+ 'cpuMax': json['cpu_max'],
52
+ 'memAvg': json['mem_avg'],
53
+ 'memP95': json['mem_p95'],
54
+ 'memMax': 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['cpuAvg'],
67
+ 'cpu_p95': value['cpuP95'],
68
+ 'cpu_max': value['cpuMax'],
69
+ 'mem_avg': value['memAvg'],
70
+ 'mem_p95': value['memP95'],
71
+ 'mem_max': value['memMax'],
72
+ 'confidence': value['confidence'],
73
+ };
74
+ }
@@ -0,0 +1,27 @@
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
+ * CPU over-commit ratio
14
+ * @export
15
+ */
16
+ export declare const CpuOverCommitRatio: {
17
+ readonly CpuOneToOne: "1:1";
18
+ readonly CpuOneToTwo: "1:2";
19
+ readonly CpuOneToFour: "1:4";
20
+ readonly CpuOneToSix: "1:6";
21
+ };
22
+ export type CpuOverCommitRatio = typeof CpuOverCommitRatio[keyof typeof CpuOverCommitRatio];
23
+ export declare function instanceOfCpuOverCommitRatio(value: any): boolean;
24
+ export declare function CpuOverCommitRatioFromJSON(json: any): CpuOverCommitRatio;
25
+ export declare function CpuOverCommitRatioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CpuOverCommitRatio;
26
+ export declare function CpuOverCommitRatioToJSON(value?: CpuOverCommitRatio | null): any;
27
+ export declare function CpuOverCommitRatioToJSONTyped(value: any, ignoreDiscriminator: boolean): CpuOverCommitRatio;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.CpuOverCommitRatio = void 0;
17
+ exports.instanceOfCpuOverCommitRatio = instanceOfCpuOverCommitRatio;
18
+ exports.CpuOverCommitRatioFromJSON = CpuOverCommitRatioFromJSON;
19
+ exports.CpuOverCommitRatioFromJSONTyped = CpuOverCommitRatioFromJSONTyped;
20
+ exports.CpuOverCommitRatioToJSON = CpuOverCommitRatioToJSON;
21
+ exports.CpuOverCommitRatioToJSONTyped = CpuOverCommitRatioToJSONTyped;
22
+ /**
23
+ * CPU over-commit ratio
24
+ * @export
25
+ */
26
+ exports.CpuOverCommitRatio = {
27
+ CpuOneToOne: '1:1',
28
+ CpuOneToTwo: '1:2',
29
+ CpuOneToFour: '1:4',
30
+ CpuOneToSix: '1:6'
31
+ };
32
+ function instanceOfCpuOverCommitRatio(value) {
33
+ for (const key in exports.CpuOverCommitRatio) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.CpuOverCommitRatio, key)) {
35
+ if (exports.CpuOverCommitRatio[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function CpuOverCommitRatioFromJSON(json) {
43
+ return CpuOverCommitRatioFromJSONTyped(json, false);
44
+ }
45
+ function CpuOverCommitRatioFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function CpuOverCommitRatioToJSON(value) {
49
+ return value;
50
+ }
51
+ function CpuOverCommitRatioToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { VCenter } from './VCenter.js';
13
13
  import type { Infra } from './Infra.js';
14
+ import type { ClusterUtilization } from './ClusterUtilization.js';
14
15
  import type { VMs } from './VMs.js';
15
16
  import type { ClusterFeatures } from './ClusterFeatures.js';
16
17
  /**
@@ -31,6 +32,12 @@ export interface InventoryData {
31
32
  * @memberof InventoryData
32
33
  */
33
34
  clusterFeatures?: ClusterFeatures;
35
+ /**
36
+ *
37
+ * @type {ClusterUtilization}
38
+ * @memberof InventoryData
39
+ */
40
+ clusterUtilization?: ClusterUtilization;
34
41
  /**
35
42
  *
36
43
  * @type {VMs}
@@ -20,6 +20,7 @@ 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");
24
25
  const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
25
26
  /**
@@ -42,6 +43,7 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
42
43
  return {
43
44
  'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
44
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']),
45
47
  'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
46
48
  'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
47
49
  };
@@ -56,6 +58,7 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
56
58
  return {
57
59
  'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
58
60
  'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
61
+ 'clusterUtilization': (0, ClusterUtilization_js_1.ClusterUtilizationToJSON)(value['clusterUtilization']),
59
62
  'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
60
63
  'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
61
64
  };
@@ -0,0 +1,26 @@
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
+ * Memory over-commit ratio
14
+ * @export
15
+ */
16
+ export declare const MemoryOverCommitRatio: {
17
+ readonly MemoryOneToOne: "1:1";
18
+ readonly MemoryOneToTwo: "1:2";
19
+ readonly MemoryOneToFour: "1:4";
20
+ };
21
+ export type MemoryOverCommitRatio = typeof MemoryOverCommitRatio[keyof typeof MemoryOverCommitRatio];
22
+ export declare function instanceOfMemoryOverCommitRatio(value: any): boolean;
23
+ export declare function MemoryOverCommitRatioFromJSON(json: any): MemoryOverCommitRatio;
24
+ export declare function MemoryOverCommitRatioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemoryOverCommitRatio;
25
+ export declare function MemoryOverCommitRatioToJSON(value?: MemoryOverCommitRatio | null): any;
26
+ export declare function MemoryOverCommitRatioToJSONTyped(value: any, ignoreDiscriminator: boolean): MemoryOverCommitRatio;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.MemoryOverCommitRatio = void 0;
17
+ exports.instanceOfMemoryOverCommitRatio = instanceOfMemoryOverCommitRatio;
18
+ exports.MemoryOverCommitRatioFromJSON = MemoryOverCommitRatioFromJSON;
19
+ exports.MemoryOverCommitRatioFromJSONTyped = MemoryOverCommitRatioFromJSONTyped;
20
+ exports.MemoryOverCommitRatioToJSON = MemoryOverCommitRatioToJSON;
21
+ exports.MemoryOverCommitRatioToJSONTyped = MemoryOverCommitRatioToJSONTyped;
22
+ /**
23
+ * Memory over-commit ratio
24
+ * @export
25
+ */
26
+ exports.MemoryOverCommitRatio = {
27
+ MemoryOneToOne: '1:1',
28
+ MemoryOneToTwo: '1:2',
29
+ MemoryOneToFour: '1:4'
30
+ };
31
+ function instanceOfMemoryOverCommitRatio(value) {
32
+ for (const key in exports.MemoryOverCommitRatio) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.MemoryOverCommitRatio, key)) {
34
+ if (exports.MemoryOverCommitRatio[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function MemoryOverCommitRatioFromJSON(json) {
42
+ return MemoryOverCommitRatioFromJSONTyped(json, false);
43
+ }
44
+ function MemoryOverCommitRatioFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function MemoryOverCommitRatioToJSON(value) {
48
+ return value;
49
+ }
50
+ function MemoryOverCommitRatioToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,114 @@
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
+ import type { CpuOverCommitRatio } from './CpuOverCommitRatio.js';
13
+ import type { MemoryOverCommitRatio } from './MemoryOverCommitRatio.js';
14
+ /**
15
+ * Request payload for calculating cluster requirements with inline inventory data (no assessment required)
16
+ * @export
17
+ * @interface StandaloneClusterRequirementsRequest
18
+ */
19
+ export interface StandaloneClusterRequirementsRequest {
20
+ /**
21
+ * Total number of VMs to size for
22
+ * @type {number}
23
+ * @memberof StandaloneClusterRequirementsRequest
24
+ */
25
+ totalVMs: number;
26
+ /**
27
+ * Total CPU cores across all VMs
28
+ * @type {number}
29
+ * @memberof StandaloneClusterRequirementsRequest
30
+ */
31
+ totalCPU: number;
32
+ /**
33
+ * Total memory (GB) across all VMs
34
+ * @type {number}
35
+ * @memberof StandaloneClusterRequirementsRequest
36
+ */
37
+ totalMemory: number;
38
+ /**
39
+ * CPU over-commit ratio (e.g., "1:4")
40
+ * @type {CpuOverCommitRatio}
41
+ * @memberof StandaloneClusterRequirementsRequest
42
+ */
43
+ cpuOverCommitRatio: CpuOverCommitRatio;
44
+ /**
45
+ * Memory over-commit ratio (e.g., "1:2")
46
+ * @type {MemoryOverCommitRatio}
47
+ * @memberof StandaloneClusterRequirementsRequest
48
+ */
49
+ memoryOverCommitRatio: MemoryOverCommitRatio;
50
+ /**
51
+ * CPU cores per worker node
52
+ * @type {number}
53
+ * @memberof StandaloneClusterRequirementsRequest
54
+ */
55
+ workerNodeCPU: number;
56
+ /**
57
+ * Memory (GB) per worker node
58
+ * @type {number}
59
+ * @memberof StandaloneClusterRequirementsRequest
60
+ */
61
+ workerNodeMemory: number;
62
+ /**
63
+ * Number of CPU threads per worker node (for SMT calculation). If not provided, assumes no SMT (threads = cores). Must be >= workerNodeCPU
64
+ * @type {number}
65
+ * @memberof StandaloneClusterRequirementsRequest
66
+ */
67
+ workerNodeThreads?: number;
68
+ /**
69
+ * Allow workload scheduling on control plane nodes (default: false)
70
+ * @type {boolean}
71
+ * @memberof StandaloneClusterRequirementsRequest
72
+ */
73
+ controlPlaneSchedulable?: boolean;
74
+ /**
75
+ * CPU cores per control plane node (default: 6)
76
+ * @type {number}
77
+ * @memberof StandaloneClusterRequirementsRequest
78
+ */
79
+ controlPlaneCPU?: number;
80
+ /**
81
+ * Memory in GB per control plane node (default: 16)
82
+ * @type {number}
83
+ * @memberof StandaloneClusterRequirementsRequest
84
+ */
85
+ controlPlaneMemory?: number;
86
+ /**
87
+ * Number of control plane nodes: 1 or 3 (default: 3)
88
+ * @type {StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum}
89
+ * @memberof StandaloneClusterRequirementsRequest
90
+ */
91
+ controlPlaneNodeCount?: StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum;
92
+ /**
93
+ * If true, control plane is hosted externally. Incompatible with control plane fields (default: false)
94
+ * @type {boolean}
95
+ * @memberof StandaloneClusterRequirementsRequest
96
+ */
97
+ hostedControlPlane?: boolean;
98
+ }
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum: {
103
+ readonly NUMBER_1: 1;
104
+ readonly NUMBER_3: 3;
105
+ };
106
+ export type StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = typeof StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum];
107
+ /**
108
+ * Check if a given object implements the StandaloneClusterRequirementsRequest interface.
109
+ */
110
+ export declare function instanceOfStandaloneClusterRequirementsRequest(value: object): value is StandaloneClusterRequirementsRequest;
111
+ export declare function StandaloneClusterRequirementsRequestFromJSON(json: any): StandaloneClusterRequirementsRequest;
112
+ export declare function StandaloneClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StandaloneClusterRequirementsRequest;
113
+ export declare function StandaloneClusterRequirementsRequestToJSON(json: any): StandaloneClusterRequirementsRequest;
114
+ export declare function StandaloneClusterRequirementsRequestToJSONTyped(value?: StandaloneClusterRequirementsRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = void 0;
17
+ exports.instanceOfStandaloneClusterRequirementsRequest = instanceOfStandaloneClusterRequirementsRequest;
18
+ exports.StandaloneClusterRequirementsRequestFromJSON = StandaloneClusterRequirementsRequestFromJSON;
19
+ exports.StandaloneClusterRequirementsRequestFromJSONTyped = StandaloneClusterRequirementsRequestFromJSONTyped;
20
+ exports.StandaloneClusterRequirementsRequestToJSON = StandaloneClusterRequirementsRequestToJSON;
21
+ exports.StandaloneClusterRequirementsRequestToJSONTyped = StandaloneClusterRequirementsRequestToJSONTyped;
22
+ const CpuOverCommitRatio_js_1 = require("./CpuOverCommitRatio.js");
23
+ const MemoryOverCommitRatio_js_1 = require("./MemoryOverCommitRatio.js");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = {
28
+ NUMBER_1: 1,
29
+ NUMBER_3: 3
30
+ };
31
+ /**
32
+ * Check if a given object implements the StandaloneClusterRequirementsRequest interface.
33
+ */
34
+ function instanceOfStandaloneClusterRequirementsRequest(value) {
35
+ if (!('totalVMs' in value) || value['totalVMs'] === undefined)
36
+ return false;
37
+ if (!('totalCPU' in value) || value['totalCPU'] === undefined)
38
+ return false;
39
+ if (!('totalMemory' in value) || value['totalMemory'] === undefined)
40
+ return false;
41
+ if (!('cpuOverCommitRatio' in value) || value['cpuOverCommitRatio'] === undefined)
42
+ return false;
43
+ if (!('memoryOverCommitRatio' in value) || value['memoryOverCommitRatio'] === undefined)
44
+ return false;
45
+ if (!('workerNodeCPU' in value) || value['workerNodeCPU'] === undefined)
46
+ return false;
47
+ if (!('workerNodeMemory' in value) || value['workerNodeMemory'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function StandaloneClusterRequirementsRequestFromJSON(json) {
52
+ return StandaloneClusterRequirementsRequestFromJSONTyped(json, false);
53
+ }
54
+ function StandaloneClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'totalVMs': json['totalVMs'],
60
+ 'totalCPU': json['totalCPU'],
61
+ 'totalMemory': json['totalMemory'],
62
+ 'cpuOverCommitRatio': (0, CpuOverCommitRatio_js_1.CpuOverCommitRatioFromJSON)(json['cpuOverCommitRatio']),
63
+ 'memoryOverCommitRatio': (0, MemoryOverCommitRatio_js_1.MemoryOverCommitRatioFromJSON)(json['memoryOverCommitRatio']),
64
+ 'workerNodeCPU': json['workerNodeCPU'],
65
+ 'workerNodeMemory': json['workerNodeMemory'],
66
+ 'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
67
+ 'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
68
+ 'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
69
+ 'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
70
+ 'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
71
+ 'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
72
+ };
73
+ }
74
+ function StandaloneClusterRequirementsRequestToJSON(json) {
75
+ return StandaloneClusterRequirementsRequestToJSONTyped(json, false);
76
+ }
77
+ function StandaloneClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = false) {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'totalVMs': value['totalVMs'],
83
+ 'totalCPU': value['totalCPU'],
84
+ 'totalMemory': value['totalMemory'],
85
+ 'cpuOverCommitRatio': (0, CpuOverCommitRatio_js_1.CpuOverCommitRatioToJSON)(value['cpuOverCommitRatio']),
86
+ 'memoryOverCommitRatio': (0, MemoryOverCommitRatio_js_1.MemoryOverCommitRatioToJSON)(value['memoryOverCommitRatio']),
87
+ 'workerNodeCPU': value['workerNodeCPU'],
88
+ 'workerNodeMemory': value['workerNodeMemory'],
89
+ 'workerNodeThreads': value['workerNodeThreads'],
90
+ 'controlPlaneSchedulable': value['controlPlaneSchedulable'],
91
+ 'controlPlaneCPU': value['controlPlaneCPU'],
92
+ 'controlPlaneMemory': value['controlPlaneMemory'],
93
+ 'controlPlaneNodeCount': value['controlPlaneNodeCount'],
94
+ 'hostedControlPlane': value['hostedControlPlane'],
95
+ };
96
+ }
@@ -0,0 +1,40 @@
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
+ import type { SizingResourceConsumption } from './SizingResourceConsumption.js';
13
+ import type { ClusterSizing } from './ClusterSizing.js';
14
+ /**
15
+ * Sizing results; omits inventoryTotals (already in the request).
16
+ * @export
17
+ * @interface StandaloneClusterRequirementsResponse
18
+ */
19
+ export interface StandaloneClusterRequirementsResponse {
20
+ /**
21
+ *
22
+ * @type {ClusterSizing}
23
+ * @memberof StandaloneClusterRequirementsResponse
24
+ */
25
+ clusterSizing: ClusterSizing;
26
+ /**
27
+ *
28
+ * @type {SizingResourceConsumption}
29
+ * @memberof StandaloneClusterRequirementsResponse
30
+ */
31
+ resourceConsumption: SizingResourceConsumption;
32
+ }
33
+ /**
34
+ * Check if a given object implements the StandaloneClusterRequirementsResponse interface.
35
+ */
36
+ export declare function instanceOfStandaloneClusterRequirementsResponse(value: object): value is StandaloneClusterRequirementsResponse;
37
+ export declare function StandaloneClusterRequirementsResponseFromJSON(json: any): StandaloneClusterRequirementsResponse;
38
+ export declare function StandaloneClusterRequirementsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StandaloneClusterRequirementsResponse;
39
+ export declare function StandaloneClusterRequirementsResponseToJSON(json: any): StandaloneClusterRequirementsResponse;
40
+ export declare function StandaloneClusterRequirementsResponseToJSONTyped(value?: StandaloneClusterRequirementsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.instanceOfStandaloneClusterRequirementsResponse = instanceOfStandaloneClusterRequirementsResponse;
17
+ exports.StandaloneClusterRequirementsResponseFromJSON = StandaloneClusterRequirementsResponseFromJSON;
18
+ exports.StandaloneClusterRequirementsResponseFromJSONTyped = StandaloneClusterRequirementsResponseFromJSONTyped;
19
+ exports.StandaloneClusterRequirementsResponseToJSON = StandaloneClusterRequirementsResponseToJSON;
20
+ exports.StandaloneClusterRequirementsResponseToJSONTyped = StandaloneClusterRequirementsResponseToJSONTyped;
21
+ const SizingResourceConsumption_js_1 = require("./SizingResourceConsumption.js");
22
+ const ClusterSizing_js_1 = require("./ClusterSizing.js");
23
+ /**
24
+ * Check if a given object implements the StandaloneClusterRequirementsResponse interface.
25
+ */
26
+ function instanceOfStandaloneClusterRequirementsResponse(value) {
27
+ if (!('clusterSizing' in value) || value['clusterSizing'] === undefined)
28
+ return false;
29
+ if (!('resourceConsumption' in value) || value['resourceConsumption'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function StandaloneClusterRequirementsResponseFromJSON(json) {
34
+ return StandaloneClusterRequirementsResponseFromJSONTyped(json, false);
35
+ }
36
+ function StandaloneClusterRequirementsResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'clusterSizing': (0, ClusterSizing_js_1.ClusterSizingFromJSON)(json['clusterSizing']),
42
+ 'resourceConsumption': (0, SizingResourceConsumption_js_1.SizingResourceConsumptionFromJSON)(json['resourceConsumption']),
43
+ };
44
+ }
45
+ function StandaloneClusterRequirementsResponseToJSON(json) {
46
+ return StandaloneClusterRequirementsResponseToJSONTyped(json, false);
47
+ }
48
+ function StandaloneClusterRequirementsResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'clusterSizing': (0, ClusterSizing_js_1.ClusterSizingToJSON)(value['clusterSizing']),
54
+ 'resourceConsumption': (0, SizingResourceConsumption_js_1.SizingResourceConsumptionToJSON)(value['resourceConsumption']),
55
+ };
56
+ }