@openshift-migration-advisor/planner-sdk 0.13.7 → 0.14.0-21224f1f74cf
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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +4 -2
- package/dist/esm/models/ClusterRequirementsResponse.d.ts +20 -0
- package/dist/esm/models/ClusterRequirementsResponse.js +8 -0
- package/dist/esm/models/ClusterRequirementsStoredInput.d.ts +1 -0
- package/dist/esm/models/ClusterRequirementsStoredInput.js +2 -1
- package/dist/esm/models/ClusterSizing.d.ts +18 -0
- package/dist/esm/models/ClusterSizing.js +6 -0
- package/dist/esm/models/CpuOverCommitRatio.d.ts +1 -0
- package/dist/esm/models/CpuOverCommitRatio.js +2 -1
- package/dist/esm/models/OptimizationStatus.d.ts +48 -0
- package/dist/esm/models/OptimizationStatus.js +56 -0
- package/dist/esm/models/Savings.d.ts +44 -0
- package/dist/esm/models/Savings.js +51 -0
- package/dist/esm/models/Source.d.ts +14 -0
- package/dist/esm/models/Source.js +9 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/ClusterRequirementsResponse.d.ts +20 -0
- package/dist/models/ClusterRequirementsResponse.js +8 -0
- package/dist/models/ClusterRequirementsStoredInput.d.ts +1 -0
- package/dist/models/ClusterRequirementsStoredInput.js +2 -1
- package/dist/models/ClusterSizing.d.ts +18 -0
- package/dist/models/ClusterSizing.js +6 -0
- package/dist/models/CpuOverCommitRatio.d.ts +1 -0
- package/dist/models/CpuOverCommitRatio.js +2 -1
- package/dist/models/OptimizationStatus.d.ts +48 -0
- package/dist/models/OptimizationStatus.js +64 -0
- package/dist/models/Savings.d.ts +44 -0
- package/dist/models/Savings.js +58 -0
- package/dist/models/Source.d.ts +14 -0
- package/dist/models/Source.js +10 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/ClusterRequirementsResponse.md +6 -0
- package/docs/ClusterSizing.md +6 -0
- package/docs/OptimizationStatus.md +37 -0
- package/docs/Savings.md +39 -0
- package/docs/Source.md +2 -0
- package/package.json +1 -1
- package/src/models/ClusterRequirementsResponse.ts +38 -0
- package/src/models/ClusterRequirementsStoredInput.ts +2 -1
- package/src/models/ClusterSizing.ts +24 -0
- package/src/models/CpuOverCommitRatio.ts +2 -1
- package/src/models/OptimizationStatus.ts +88 -0
- package/src/models/Savings.ts +84 -0
- package/src/models/Source.ts +19 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
|
package/src/models/Source.ts
CHANGED
|
@@ -114,8 +114,25 @@ export interface Source {
|
|
|
114
114
|
* @memberof Source
|
|
115
115
|
*/
|
|
116
116
|
agentVersionWarning?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* Indicates whether the inventory was updated automatically by an agent or manually by a user
|
|
119
|
+
* @type {SourceUpdateTypeEnum}
|
|
120
|
+
* @memberof Source
|
|
121
|
+
*/
|
|
122
|
+
updateType?: SourceUpdateTypeEnum;
|
|
117
123
|
}
|
|
118
124
|
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @export
|
|
128
|
+
*/
|
|
129
|
+
export const SourceUpdateTypeEnum = {
|
|
130
|
+
Auto: 'auto',
|
|
131
|
+
Manual: 'manual'
|
|
132
|
+
} as const;
|
|
133
|
+
export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
|
|
134
|
+
|
|
135
|
+
|
|
119
136
|
/**
|
|
120
137
|
* Check if a given object implements the Source interface.
|
|
121
138
|
*/
|
|
@@ -149,6 +166,7 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
|
|
|
149
166
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
150
167
|
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
151
168
|
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
169
|
+
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
152
170
|
};
|
|
153
171
|
}
|
|
154
172
|
|
|
@@ -174,6 +192,7 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
|
|
|
174
192
|
'infra': SourceInfraToJSON(value['infra']),
|
|
175
193
|
'agentVersion': value['agentVersion'],
|
|
176
194
|
'agentVersionWarning': value['agentVersionWarning'],
|
|
195
|
+
'updateType': value['updateType'],
|
|
177
196
|
};
|
|
178
197
|
}
|
|
179
198
|
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|