@openshift-migration-advisor/planner-sdk 0.13.6-b314a1e352c6 → 0.13.7

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.
@@ -57,7 +57,6 @@ docs/MigrationEstimationResponse.md
57
57
  docs/MigrationIssue.md
58
58
  docs/ModelError.md
59
59
  docs/Network.md
60
- docs/OptimizationStatus.md
61
60
  docs/OsDiskEstimationEntry.md
62
61
  docs/OsInfo.md
63
62
  docs/PartnerApi.md
@@ -67,7 +66,6 @@ docs/PartnerRequestStatus.md
67
66
  docs/PartnerRequestUpdate.md
68
67
  docs/PartnerSummary.md
69
68
  docs/PresignedUrl.md
70
- docs/Savings.md
71
69
  docs/SchemaEstimationResult.md
72
70
  docs/SharingSubject.md
73
71
  docs/SizingApi.md
@@ -149,7 +147,6 @@ src/models/MigrationEstimationResponse.ts
149
147
  src/models/MigrationIssue.ts
150
148
  src/models/ModelError.ts
151
149
  src/models/Network.ts
152
- src/models/OptimizationStatus.ts
153
150
  src/models/OsDiskEstimationEntry.ts
154
151
  src/models/OsInfo.ts
155
152
  src/models/PartnerRequest.ts
@@ -158,7 +155,6 @@ src/models/PartnerRequestStatus.ts
158
155
  src/models/PartnerRequestUpdate.ts
159
156
  src/models/PartnerSummary.ts
160
157
  src/models/PresignedUrl.ts
161
- src/models/Savings.ts
162
158
  src/models/SchemaEstimationResult.ts
163
159
  src/models/SharingSubject.ts
164
160
  src/models/SizingOverCommitRatio.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.13.6-b314a1e352c6
1
+ # @openshift-migration-advisor/planner-sdk@0.13.7
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -148,7 +148,6 @@ 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)
152
151
  - [OsDiskEstimationEntry](docs/OsDiskEstimationEntry.md)
153
152
  - [OsInfo](docs/OsInfo.md)
154
153
  - [PartnerRequest](docs/PartnerRequest.md)
@@ -157,7 +156,6 @@ All URIs are relative to *https://raw.githubusercontent.com*
157
156
  - [PartnerRequestUpdate](docs/PartnerRequestUpdate.md)
158
157
  - [PartnerSummary](docs/PartnerSummary.md)
159
158
  - [PresignedUrl](docs/PresignedUrl.md)
160
- - [Savings](docs/Savings.md)
161
159
  - [SchemaEstimationResult](docs/SchemaEstimationResult.md)
162
160
  - [SharingSubject](docs/SharingSubject.md)
163
161
  - [SizingOverCommitRatio](docs/SizingOverCommitRatio.md)
@@ -189,7 +187,7 @@ and is automatically generated by the
189
187
  [OpenAPI Generator](https://openapi-generator.tech) project:
190
188
 
191
189
  - API version: `v1alpha1`
192
- - Package version: `0.13.6-b314a1e352c6`
190
+ - Package version: `0.13.7`
193
191
  - Generator version: `7.24.0-SNAPSHOT`
194
192
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
195
193
 
@@ -9,11 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Savings } from './Savings.js';
13
12
  import type { SizingResourceConsumption } from './SizingResourceConsumption.js';
14
13
  import type { InventoryTotals } from './InventoryTotals.js';
15
14
  import type { ClusterSizing } from './ClusterSizing.js';
16
- import type { OptimizationStatus } from './OptimizationStatus.js';
17
15
  /**
18
16
  * Cluster requirements calculation results
19
17
  * @export
@@ -26,24 +24,6 @@ export interface ClusterRequirementsResponse {
26
24
  * @memberof ClusterRequirementsResponse
27
25
  */
28
26
  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;
47
27
  /**
48
28
  *
49
29
  * @type {SizingResourceConsumption}
@@ -11,11 +11,9 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { SavingsFromJSON, SavingsToJSON, } from './Savings.js';
15
14
  import { SizingResourceConsumptionFromJSON, SizingResourceConsumptionToJSON, } from './SizingResourceConsumption.js';
16
15
  import { InventoryTotalsFromJSON, InventoryTotalsToJSON, } from './InventoryTotals.js';
17
16
  import { ClusterSizingFromJSON, ClusterSizingToJSON, } from './ClusterSizing.js';
18
- import { OptimizationStatusFromJSON, OptimizationStatusToJSON, } from './OptimizationStatus.js';
19
17
  /**
20
18
  * Check if a given object implements the ClusterRequirementsResponse interface.
21
19
  */
@@ -37,9 +35,6 @@ export function ClusterRequirementsResponseFromJSONTyped(json, ignoreDiscriminat
37
35
  }
38
36
  return {
39
37
  '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']),
43
38
  'resourceConsumption': SizingResourceConsumptionFromJSON(json['resourceConsumption']),
44
39
  'inventoryTotals': InventoryTotalsFromJSON(json['inventoryTotals']),
45
40
  };
@@ -53,9 +48,6 @@ export function ClusterRequirementsResponseToJSONTyped(value, ignoreDiscriminato
53
48
  }
54
49
  return {
55
50
  'clusterSizing': ClusterSizingToJSON(value['clusterSizing']),
56
- 'optimizedSizing': ClusterSizingToJSON(value['optimizedSizing']),
57
- 'savings': SavingsToJSON(value['savings']),
58
- 'optimizationStatus': OptimizationStatusToJSON(value['optimizationStatus']),
59
51
  'resourceConsumption': SizingResourceConsumptionToJSON(value['resourceConsumption']),
60
52
  'inventoryTotals': InventoryTotalsToJSON(value['inventoryTotals']),
61
53
  };
@@ -51,24 +51,6 @@ 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;
72
54
  }
73
55
  /**
74
56
  * Check if a given object implements the ClusterSizing interface.
@@ -43,9 +43,6 @@ 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'],
49
46
  };
50
47
  }
51
48
  export function ClusterSizingToJSON(json) {
@@ -62,8 +59,5 @@ export function ClusterSizingToJSONTyped(value, ignoreDiscriminator = false) {
62
59
  'failoverNodes': value['failoverNodes'],
63
60
  'totalCPU': value['totalCPU'],
64
61
  'totalMemory': value['totalMemory'],
65
- 'cpuUtilizationMax': value['cpuUtilizationMax'],
66
- 'memoryUtilizationMax': value['memoryUtilizationMax'],
67
- 'confidence': value['confidence'],
68
62
  };
69
63
  }
@@ -47,7 +47,6 @@ 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';
51
50
  export * from './OsDiskEstimationEntry.js';
52
51
  export * from './OsInfo.js';
53
52
  export * from './PartnerRequest.js';
@@ -56,7 +55,6 @@ export * from './PartnerRequestStatus.js';
56
55
  export * from './PartnerRequestUpdate.js';
57
56
  export * from './PartnerSummary.js';
58
57
  export * from './PresignedUrl.js';
59
- export * from './Savings.js';
60
58
  export * from './SchemaEstimationResult.js';
61
59
  export * from './SharingSubject.js';
62
60
  export * from './SizingOverCommitRatio.js';
@@ -49,7 +49,6 @@ 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';
53
52
  export * from './OsDiskEstimationEntry.js';
54
53
  export * from './OsInfo.js';
55
54
  export * from './PartnerRequest.js';
@@ -58,7 +57,6 @@ export * from './PartnerRequestStatus.js';
58
57
  export * from './PartnerRequestUpdate.js';
59
58
  export * from './PartnerSummary.js';
60
59
  export * from './PresignedUrl.js';
61
- export * from './Savings.js';
62
60
  export * from './SchemaEstimationResult.js';
63
61
  export * from './SharingSubject.js';
64
62
  export * from './SizingOverCommitRatio.js';
@@ -9,11 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Savings } from './Savings.js';
13
12
  import type { SizingResourceConsumption } from './SizingResourceConsumption.js';
14
13
  import type { InventoryTotals } from './InventoryTotals.js';
15
14
  import type { ClusterSizing } from './ClusterSizing.js';
16
- import type { OptimizationStatus } from './OptimizationStatus.js';
17
15
  /**
18
16
  * Cluster requirements calculation results
19
17
  * @export
@@ -26,24 +24,6 @@ export interface ClusterRequirementsResponse {
26
24
  * @memberof ClusterRequirementsResponse
27
25
  */
28
26
  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;
47
27
  /**
48
28
  *
49
29
  * @type {SizingResourceConsumption}
@@ -18,11 +18,9 @@ exports.ClusterRequirementsResponseFromJSON = ClusterRequirementsResponseFromJSO
18
18
  exports.ClusterRequirementsResponseFromJSONTyped = ClusterRequirementsResponseFromJSONTyped;
19
19
  exports.ClusterRequirementsResponseToJSON = ClusterRequirementsResponseToJSON;
20
20
  exports.ClusterRequirementsResponseToJSONTyped = ClusterRequirementsResponseToJSONTyped;
21
- const Savings_js_1 = require("./Savings.js");
22
21
  const SizingResourceConsumption_js_1 = require("./SizingResourceConsumption.js");
23
22
  const InventoryTotals_js_1 = require("./InventoryTotals.js");
24
23
  const ClusterSizing_js_1 = require("./ClusterSizing.js");
25
- const OptimizationStatus_js_1 = require("./OptimizationStatus.js");
26
24
  /**
27
25
  * Check if a given object implements the ClusterRequirementsResponse interface.
28
26
  */
@@ -44,9 +42,6 @@ function ClusterRequirementsResponseFromJSONTyped(json, ignoreDiscriminator) {
44
42
  }
45
43
  return {
46
44
  'clusterSizing': (0, ClusterSizing_js_1.ClusterSizingFromJSON)(json['clusterSizing']),
47
- 'optimizedSizing': json['optimizedSizing'] == null ? undefined : (0, ClusterSizing_js_1.ClusterSizingFromJSON)(json['optimizedSizing']),
48
- 'savings': json['savings'] == null ? undefined : (0, Savings_js_1.SavingsFromJSON)(json['savings']),
49
- 'optimizationStatus': json['optimizationStatus'] == null ? undefined : (0, OptimizationStatus_js_1.OptimizationStatusFromJSON)(json['optimizationStatus']),
50
45
  'resourceConsumption': (0, SizingResourceConsumption_js_1.SizingResourceConsumptionFromJSON)(json['resourceConsumption']),
51
46
  'inventoryTotals': (0, InventoryTotals_js_1.InventoryTotalsFromJSON)(json['inventoryTotals']),
52
47
  };
@@ -60,9 +55,6 @@ function ClusterRequirementsResponseToJSONTyped(value, ignoreDiscriminator = fal
60
55
  }
61
56
  return {
62
57
  'clusterSizing': (0, ClusterSizing_js_1.ClusterSizingToJSON)(value['clusterSizing']),
63
- 'optimizedSizing': (0, ClusterSizing_js_1.ClusterSizingToJSON)(value['optimizedSizing']),
64
- 'savings': (0, Savings_js_1.SavingsToJSON)(value['savings']),
65
- 'optimizationStatus': (0, OptimizationStatus_js_1.OptimizationStatusToJSON)(value['optimizationStatus']),
66
58
  'resourceConsumption': (0, SizingResourceConsumption_js_1.SizingResourceConsumptionToJSON)(value['resourceConsumption']),
67
59
  'inventoryTotals': (0, InventoryTotals_js_1.InventoryTotalsToJSON)(value['inventoryTotals']),
68
60
  };
@@ -51,24 +51,6 @@ 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;
72
54
  }
73
55
  /**
74
56
  * Check if a given object implements the ClusterSizing interface.
@@ -50,9 +50,6 @@ function ClusterSizingFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'failoverNodes': json['failoverNodes'],
51
51
  'totalCPU': json['totalCPU'],
52
52
  'totalMemory': json['totalMemory'],
53
- 'cpuUtilizationMax': json['cpuUtilizationMax'] == null ? undefined : json['cpuUtilizationMax'],
54
- 'memoryUtilizationMax': json['memoryUtilizationMax'] == null ? undefined : json['memoryUtilizationMax'],
55
- 'confidence': json['confidence'] == null ? undefined : json['confidence'],
56
53
  };
57
54
  }
58
55
  function ClusterSizingToJSON(json) {
@@ -69,8 +66,5 @@ function ClusterSizingToJSONTyped(value, ignoreDiscriminator = false) {
69
66
  'failoverNodes': value['failoverNodes'],
70
67
  'totalCPU': value['totalCPU'],
71
68
  'totalMemory': value['totalMemory'],
72
- 'cpuUtilizationMax': value['cpuUtilizationMax'],
73
- 'memoryUtilizationMax': value['memoryUtilizationMax'],
74
- 'confidence': value['confidence'],
75
69
  };
76
70
  }
@@ -47,7 +47,6 @@ 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';
51
50
  export * from './OsDiskEstimationEntry.js';
52
51
  export * from './OsInfo.js';
53
52
  export * from './PartnerRequest.js';
@@ -56,7 +55,6 @@ export * from './PartnerRequestStatus.js';
56
55
  export * from './PartnerRequestUpdate.js';
57
56
  export * from './PartnerSummary.js';
58
57
  export * from './PresignedUrl.js';
59
- export * from './Savings.js';
60
58
  export * from './SchemaEstimationResult.js';
61
59
  export * from './SharingSubject.js';
62
60
  export * from './SizingOverCommitRatio.js';
@@ -65,7 +65,6 @@ __exportStar(require("./MigrationEstimationResponse.js"), exports);
65
65
  __exportStar(require("./MigrationIssue.js"), exports);
66
66
  __exportStar(require("./ModelError.js"), exports);
67
67
  __exportStar(require("./Network.js"), exports);
68
- __exportStar(require("./OptimizationStatus.js"), exports);
69
68
  __exportStar(require("./OsDiskEstimationEntry.js"), exports);
70
69
  __exportStar(require("./OsInfo.js"), exports);
71
70
  __exportStar(require("./PartnerRequest.js"), exports);
@@ -74,7 +73,6 @@ __exportStar(require("./PartnerRequestStatus.js"), exports);
74
73
  __exportStar(require("./PartnerRequestUpdate.js"), exports);
75
74
  __exportStar(require("./PartnerSummary.js"), exports);
76
75
  __exportStar(require("./PresignedUrl.js"), exports);
77
- __exportStar(require("./Savings.js"), exports);
78
76
  __exportStar(require("./SchemaEstimationResult.js"), exports);
79
77
  __exportStar(require("./SharingSubject.js"), exports);
80
78
  __exportStar(require("./SizingOverCommitRatio.js"), exports);
@@ -8,9 +8,6 @@ Cluster requirements calculation results
8
8
  Name | Type
9
9
  ------------ | -------------
10
10
  `clusterSizing` | [ClusterSizing](ClusterSizing.md)
11
- `optimizedSizing` | [ClusterSizing](ClusterSizing.md)
12
- `savings` | [Savings](Savings.md)
13
- `optimizationStatus` | [OptimizationStatus](OptimizationStatus.md)
14
11
  `resourceConsumption` | [SizingResourceConsumption](SizingResourceConsumption.md)
15
12
  `inventoryTotals` | [InventoryTotals](InventoryTotals.md)
16
13
 
@@ -22,9 +19,6 @@ import type { ClusterRequirementsResponse } from '@openshift-migration-advisor/p
22
19
  // TODO: Update the object below with actual values
23
20
  const example = {
24
21
  "clusterSizing": null,
25
- "optimizedSizing": null,
26
- "savings": null,
27
- "optimizationStatus": null,
28
22
  "resourceConsumption": null,
29
23
  "inventoryTotals": null,
30
24
  } satisfies ClusterRequirementsResponse
@@ -13,9 +13,6 @@ Name | Type
13
13
  `failoverNodes` | number
14
14
  `totalCPU` | number
15
15
  `totalMemory` | number
16
- `cpuUtilizationMax` | number
17
- `memoryUtilizationMax` | number
18
- `confidence` | number
19
16
 
20
17
  ## Example
21
18
 
@@ -30,9 +27,6 @@ const example = {
30
27
  "failoverNodes": null,
31
28
  "totalCPU": null,
32
29
  "totalMemory": null,
33
- "cpuUtilizationMax": null,
34
- "memoryUtilizationMax": null,
35
- "confidence": null,
36
30
  } satisfies ClusterSizing
37
31
 
38
32
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.13.6-b314a1e352c6",
3
+ "version": "0.13.7",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
- import type { Savings } from './Savings.js';
17
- import {
18
- SavingsFromJSON,
19
- SavingsFromJSONTyped,
20
- SavingsToJSON,
21
- SavingsToJSONTyped,
22
- } from './Savings.js';
23
16
  import type { SizingResourceConsumption } from './SizingResourceConsumption.js';
24
17
  import {
25
18
  SizingResourceConsumptionFromJSON,
@@ -41,13 +34,6 @@ import {
41
34
  ClusterSizingToJSON,
42
35
  ClusterSizingToJSONTyped,
43
36
  } from './ClusterSizing.js';
44
- import type { OptimizationStatus } from './OptimizationStatus.js';
45
- import {
46
- OptimizationStatusFromJSON,
47
- OptimizationStatusFromJSONTyped,
48
- OptimizationStatusToJSON,
49
- OptimizationStatusToJSONTyped,
50
- } from './OptimizationStatus.js';
51
37
 
52
38
  /**
53
39
  * Cluster requirements calculation results
@@ -61,24 +47,6 @@ export interface ClusterRequirementsResponse {
61
47
  * @memberof ClusterRequirementsResponse
62
48
  */
63
49
  clusterSizing: ClusterSizing;
64
- /**
65
- *
66
- * @type {ClusterSizing}
67
- * @memberof ClusterRequirementsResponse
68
- */
69
- optimizedSizing?: ClusterSizing;
70
- /**
71
- *
72
- * @type {Savings}
73
- * @memberof ClusterRequirementsResponse
74
- */
75
- savings?: Savings;
76
- /**
77
- *
78
- * @type {OptimizationStatus}
79
- * @memberof ClusterRequirementsResponse
80
- */
81
- optimizationStatus?: OptimizationStatus;
82
50
  /**
83
51
  *
84
52
  * @type {SizingResourceConsumption}
@@ -114,9 +82,6 @@ export function ClusterRequirementsResponseFromJSONTyped(json: any, ignoreDiscri
114
82
  return {
115
83
 
116
84
  'clusterSizing': ClusterSizingFromJSON(json['clusterSizing']),
117
- 'optimizedSizing': json['optimizedSizing'] == null ? undefined : ClusterSizingFromJSON(json['optimizedSizing']),
118
- 'savings': json['savings'] == null ? undefined : SavingsFromJSON(json['savings']),
119
- 'optimizationStatus': json['optimizationStatus'] == null ? undefined : OptimizationStatusFromJSON(json['optimizationStatus']),
120
85
  'resourceConsumption': SizingResourceConsumptionFromJSON(json['resourceConsumption']),
121
86
  'inventoryTotals': InventoryTotalsFromJSON(json['inventoryTotals']),
122
87
  };
@@ -134,9 +99,6 @@ export function ClusterRequirementsResponseToJSONTyped(value?: ClusterRequiremen
134
99
  return {
135
100
 
136
101
  'clusterSizing': ClusterSizingToJSON(value['clusterSizing']),
137
- 'optimizedSizing': ClusterSizingToJSON(value['optimizedSizing']),
138
- 'savings': SavingsToJSON(value['savings']),
139
- 'optimizationStatus': OptimizationStatusToJSON(value['optimizationStatus']),
140
102
  'resourceConsumption': SizingResourceConsumptionToJSON(value['resourceConsumption']),
141
103
  'inventoryTotals': InventoryTotalsToJSON(value['inventoryTotals']),
142
104
  };
@@ -55,24 +55,6 @@ export interface ClusterSizing {
55
55
  * @memberof ClusterSizing
56
56
  */
57
57
  totalMemory: number;
58
- /**
59
- * CPU utilization maximum percentage (only in optimized_sizing)
60
- * @type {number}
61
- * @memberof ClusterSizing
62
- */
63
- cpuUtilizationMax?: number;
64
- /**
65
- * Memory utilization maximum percentage (only in optimized_sizing)
66
- * @type {number}
67
- * @memberof ClusterSizing
68
- */
69
- memoryUtilizationMax?: number;
70
- /**
71
- * Data coverage confidence 0-100 (only in optimized_sizing)
72
- * @type {number}
73
- * @memberof ClusterSizing
74
- */
75
- confidence?: number;
76
58
  }
77
59
 
78
60
  /**
@@ -104,9 +86,6 @@ export function ClusterSizingFromJSONTyped(json: any, ignoreDiscriminator: boole
104
86
  'failoverNodes': json['failoverNodes'],
105
87
  'totalCPU': json['totalCPU'],
106
88
  'totalMemory': json['totalMemory'],
107
- 'cpuUtilizationMax': json['cpuUtilizationMax'] == null ? undefined : json['cpuUtilizationMax'],
108
- 'memoryUtilizationMax': json['memoryUtilizationMax'] == null ? undefined : json['memoryUtilizationMax'],
109
- 'confidence': json['confidence'] == null ? undefined : json['confidence'],
110
89
  };
111
90
  }
112
91
 
@@ -127,9 +106,6 @@ export function ClusterSizingToJSONTyped(value?: ClusterSizing | null, ignoreDis
127
106
  'failoverNodes': value['failoverNodes'],
128
107
  'totalCPU': value['totalCPU'],
129
108
  'totalMemory': value['totalMemory'],
130
- 'cpuUtilizationMax': value['cpuUtilizationMax'],
131
- 'memoryUtilizationMax': value['memoryUtilizationMax'],
132
- 'confidence': value['confidence'],
133
109
  };
134
110
  }
135
111
 
@@ -49,7 +49,6 @@ 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';
53
52
  export * from './OsDiskEstimationEntry.js';
54
53
  export * from './OsInfo.js';
55
54
  export * from './PartnerRequest.js';
@@ -58,7 +57,6 @@ export * from './PartnerRequestStatus.js';
58
57
  export * from './PartnerRequestUpdate.js';
59
58
  export * from './PartnerSummary.js';
60
59
  export * from './PresignedUrl.js';
61
- export * from './Savings.js';
62
60
  export * from './SchemaEstimationResult.js';
63
61
  export * from './SharingSubject.js';
64
62
  export * from './SizingOverCommitRatio.js';
@@ -1,48 +0,0 @@
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;
@@ -1,56 +0,0 @@
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
- }
@@ -1,44 +0,0 @@
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;
@@ -1,51 +0,0 @@
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
- }
@@ -1,48 +0,0 @@
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;
@@ -1,64 +0,0 @@
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.OptimizationStatusReasonEnum = void 0;
17
- exports.instanceOfOptimizationStatus = instanceOfOptimizationStatus;
18
- exports.OptimizationStatusFromJSON = OptimizationStatusFromJSON;
19
- exports.OptimizationStatusFromJSONTyped = OptimizationStatusFromJSONTyped;
20
- exports.OptimizationStatusToJSON = OptimizationStatusToJSON;
21
- exports.OptimizationStatusToJSONTyped = OptimizationStatusToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.OptimizationStatusReasonEnum = {
26
- NoUtilizationData: 'no_utilization_data',
27
- LowConfidence: 'low_confidence',
28
- CalculationError: 'calculation_error',
29
- Success: 'success'
30
- };
31
- /**
32
- * Check if a given object implements the OptimizationStatus interface.
33
- */
34
- function instanceOfOptimizationStatus(value) {
35
- if (!('attempted' in value) || value['attempted'] === undefined)
36
- return false;
37
- if (!('reason' in value) || value['reason'] === undefined)
38
- return false;
39
- return true;
40
- }
41
- function OptimizationStatusFromJSON(json) {
42
- return OptimizationStatusFromJSONTyped(json, false);
43
- }
44
- function OptimizationStatusFromJSONTyped(json, ignoreDiscriminator) {
45
- if (json == null) {
46
- return json;
47
- }
48
- return {
49
- 'attempted': json['attempted'],
50
- 'reason': json['reason'],
51
- };
52
- }
53
- function OptimizationStatusToJSON(json) {
54
- return OptimizationStatusToJSONTyped(json, false);
55
- }
56
- function OptimizationStatusToJSONTyped(value, ignoreDiscriminator = false) {
57
- if (value == null) {
58
- return value;
59
- }
60
- return {
61
- 'attempted': value['attempted'],
62
- 'reason': value['reason'],
63
- };
64
- }
@@ -1,44 +0,0 @@
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;
@@ -1,58 +0,0 @@
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.instanceOfSavings = instanceOfSavings;
17
- exports.SavingsFromJSON = SavingsFromJSON;
18
- exports.SavingsFromJSONTyped = SavingsFromJSONTyped;
19
- exports.SavingsToJSON = SavingsToJSON;
20
- exports.SavingsToJSONTyped = SavingsToJSONTyped;
21
- /**
22
- * Check if a given object implements the Savings interface.
23
- */
24
- function instanceOfSavings(value) {
25
- if (!('nodesSaved' in value) || value['nodesSaved'] === undefined)
26
- return false;
27
- if (!('percentageReduction' in value) || value['percentageReduction'] === undefined)
28
- return false;
29
- if (!('description' in value) || value['description'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function SavingsFromJSON(json) {
34
- return SavingsFromJSONTyped(json, false);
35
- }
36
- function SavingsFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'nodesSaved': json['nodesSaved'],
42
- 'percentageReduction': json['percentageReduction'],
43
- 'description': json['description'],
44
- };
45
- }
46
- function SavingsToJSON(json) {
47
- return SavingsToJSONTyped(json, false);
48
- }
49
- function SavingsToJSONTyped(value, ignoreDiscriminator = false) {
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'nodesSaved': value['nodesSaved'],
55
- 'percentageReduction': value['percentageReduction'],
56
- 'description': value['description'],
57
- };
58
- }
@@ -1,37 +0,0 @@
1
-
2
- # OptimizationStatus
3
-
4
- Status of utilization-based optimization attempt
5
-
6
- ## Properties
7
-
8
- Name | Type
9
- ------------ | -------------
10
- `attempted` | boolean
11
- `reason` | string
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import type { OptimizationStatus } from '@openshift-migration-advisor/planner-sdk'
17
-
18
- // TODO: Update the object below with actual values
19
- const example = {
20
- "attempted": null,
21
- "reason": null,
22
- } satisfies OptimizationStatus
23
-
24
- console.log(example)
25
-
26
- // Convert the instance to a JSON string
27
- const exampleJSON: string = JSON.stringify(example)
28
- console.log(exampleJSON)
29
-
30
- // Parse the JSON string back to an object
31
- const exampleParsed = JSON.parse(exampleJSON) as OptimizationStatus
32
- console.log(exampleParsed)
33
- ```
34
-
35
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
-
37
-
package/docs/Savings.md DELETED
@@ -1,39 +0,0 @@
1
-
2
- # Savings
3
-
4
- Infrastructure savings comparison
5
-
6
- ## Properties
7
-
8
- Name | Type
9
- ------------ | -------------
10
- `nodesSaved` | number
11
- `percentageReduction` | number
12
- `description` | string
13
-
14
- ## Example
15
-
16
- ```typescript
17
- import type { Savings } from '@openshift-migration-advisor/planner-sdk'
18
-
19
- // TODO: Update the object below with actual values
20
- const example = {
21
- "nodesSaved": null,
22
- "percentageReduction": null,
23
- "description": null,
24
- } satisfies Savings
25
-
26
- console.log(example)
27
-
28
- // Convert the instance to a JSON string
29
- const exampleJSON: string = JSON.stringify(example)
30
- console.log(exampleJSON)
31
-
32
- // Parse the JSON string back to an object
33
- const exampleParsed = JSON.parse(exampleJSON) as Savings
34
- console.log(exampleParsed)
35
- ```
36
-
37
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
-
39
-
@@ -1,88 +0,0 @@
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
- import { mapValues } from '../runtime.js';
16
- /**
17
- * Status of utilization-based optimization attempt
18
- * @export
19
- * @interface OptimizationStatus
20
- */
21
- export interface OptimizationStatus {
22
- /**
23
- * Whether optimization was attempted based on available utilization data
24
- * @type {boolean}
25
- * @memberof OptimizationStatus
26
- */
27
- attempted: boolean;
28
- /**
29
- * Reason for optimization result
30
- * @type {OptimizationStatusReasonEnum}
31
- * @memberof OptimizationStatus
32
- */
33
- reason: OptimizationStatusReasonEnum;
34
- }
35
-
36
-
37
- /**
38
- * @export
39
- */
40
- export const OptimizationStatusReasonEnum = {
41
- NoUtilizationData: 'no_utilization_data',
42
- LowConfidence: 'low_confidence',
43
- CalculationError: 'calculation_error',
44
- Success: 'success'
45
- } as const;
46
- export type OptimizationStatusReasonEnum = typeof OptimizationStatusReasonEnum[keyof typeof OptimizationStatusReasonEnum];
47
-
48
-
49
- /**
50
- * Check if a given object implements the OptimizationStatus interface.
51
- */
52
- export function instanceOfOptimizationStatus(value: object): value is OptimizationStatus {
53
- if (!('attempted' in value) || value['attempted'] === undefined) return false;
54
- if (!('reason' in value) || value['reason'] === undefined) return false;
55
- return true;
56
- }
57
-
58
- export function OptimizationStatusFromJSON(json: any): OptimizationStatus {
59
- return OptimizationStatusFromJSONTyped(json, false);
60
- }
61
-
62
- export function OptimizationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): OptimizationStatus {
63
- if (json == null) {
64
- return json;
65
- }
66
- return {
67
-
68
- 'attempted': json['attempted'],
69
- 'reason': json['reason'],
70
- };
71
- }
72
-
73
- export function OptimizationStatusToJSON(json: any): OptimizationStatus {
74
- return OptimizationStatusToJSONTyped(json, false);
75
- }
76
-
77
- export function OptimizationStatusToJSONTyped(value?: OptimizationStatus | null, ignoreDiscriminator: boolean = false): any {
78
- if (value == null) {
79
- return value;
80
- }
81
-
82
- return {
83
-
84
- 'attempted': value['attempted'],
85
- 'reason': value['reason'],
86
- };
87
- }
88
-
@@ -1,84 +0,0 @@
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
- import { mapValues } from '../runtime.js';
16
- /**
17
- * Infrastructure savings comparison
18
- * @export
19
- * @interface Savings
20
- */
21
- export interface Savings {
22
- /**
23
- * Number of nodes saved compared to baseline
24
- * @type {number}
25
- * @memberof Savings
26
- */
27
- nodesSaved: number;
28
- /**
29
- * Percentage reduction in nodes
30
- * @type {number}
31
- * @memberof Savings
32
- */
33
- percentageReduction: number;
34
- /**
35
- * Human-readable description of savings source
36
- * @type {string}
37
- * @memberof Savings
38
- */
39
- description: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the Savings interface.
44
- */
45
- export function instanceOfSavings(value: object): value is Savings {
46
- if (!('nodesSaved' in value) || value['nodesSaved'] === undefined) return false;
47
- if (!('percentageReduction' in value) || value['percentageReduction'] === undefined) return false;
48
- if (!('description' in value) || value['description'] === undefined) return false;
49
- return true;
50
- }
51
-
52
- export function SavingsFromJSON(json: any): Savings {
53
- return SavingsFromJSONTyped(json, false);
54
- }
55
-
56
- export function SavingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Savings {
57
- if (json == null) {
58
- return json;
59
- }
60
- return {
61
-
62
- 'nodesSaved': json['nodesSaved'],
63
- 'percentageReduction': json['percentageReduction'],
64
- 'description': json['description'],
65
- };
66
- }
67
-
68
- export function SavingsToJSON(json: any): Savings {
69
- return SavingsToJSONTyped(json, false);
70
- }
71
-
72
- export function SavingsToJSONTyped(value?: Savings | null, ignoreDiscriminator: boolean = false): any {
73
- if (value == null) {
74
- return value;
75
- }
76
-
77
- return {
78
-
79
- 'nodesSaved': value['nodesSaved'],
80
- 'percentageReduction': value['percentageReduction'],
81
- 'description': value['description'],
82
- };
83
- }
84
-