@openshift-migration-advisor/planner-sdk 0.15.0 → 0.16.0-13a0f6e7cd6f
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 +2 -0
- package/README.md +3 -2
- package/dist/esm/models/AgentProxy.js +3 -3
- package/dist/esm/models/AssessmentSubsetInventory.d.ts +63 -0
- package/dist/esm/models/AssessmentSubsetInventory.js +64 -0
- package/dist/esm/models/Datastore.js +1 -1
- package/dist/esm/models/Host.js +3 -3
- package/dist/esm/models/Identity.js +2 -2
- package/dist/esm/models/Info.js +2 -2
- package/dist/esm/models/OsInfo.d.ts +16 -0
- package/dist/esm/models/OsInfo.js +11 -0
- package/dist/esm/models/PartnerRequest.js +3 -3
- package/dist/esm/models/Snapshot.d.ts +7 -0
- package/dist/esm/models/Snapshot.js +3 -0
- package/dist/esm/models/Source.js +2 -2
- package/dist/esm/models/SourceCreate.js +2 -2
- package/dist/esm/models/SourceInfra.js +1 -1
- package/dist/esm/models/SourceUpdate.js +2 -2
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/runtime.d.ts +1 -0
- package/dist/esm/runtime.js +4 -0
- package/dist/models/AgentProxy.js +3 -3
- package/dist/models/AssessmentSubsetInventory.d.ts +63 -0
- package/dist/models/AssessmentSubsetInventory.js +71 -0
- package/dist/models/Datastore.js +1 -1
- package/dist/models/Host.js +3 -3
- package/dist/models/Identity.js +2 -2
- package/dist/models/Info.js +2 -2
- package/dist/models/OsInfo.d.ts +16 -0
- package/dist/models/OsInfo.js +12 -0
- package/dist/models/PartnerRequest.js +3 -3
- package/dist/models/Snapshot.d.ts +7 -0
- package/dist/models/Snapshot.js +3 -0
- package/dist/models/Source.js +2 -2
- package/dist/models/SourceCreate.js +2 -2
- package/dist/models/SourceInfra.js +1 -1
- package/dist/models/SourceUpdate.js +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +5 -0
- package/docs/AssessmentSubsetInventory.md +44 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Snapshot.md +2 -0
- package/package.json +1 -1
- package/src/models/AgentProxy.ts +3 -3
- package/src/models/AssessmentSubsetInventory.ts +119 -0
- package/src/models/ClusterUtilization.ts +6 -6
- package/src/models/Datastore.ts +1 -1
- package/src/models/Host.ts +3 -3
- package/src/models/Identity.ts +2 -2
- package/src/models/Info.ts +2 -2
- package/src/models/Inventory.ts +1 -1
- package/src/models/OsInfo.ts +21 -0
- package/src/models/PartnerRequest.ts +3 -3
- package/src/models/Snapshot.ts +15 -0
- package/src/models/Source.ts +2 -2
- package/src/models/SourceCreate.ts +2 -2
- package/src/models/SourceInfra.ts +1 -1
- package/src/models/SourceUpdate.ts +2 -2
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
package/dist/models/OsInfo.d.ts
CHANGED
|
@@ -27,6 +27,12 @@ export interface OsInfo {
|
|
|
27
27
|
* @memberof OsInfo
|
|
28
28
|
*/
|
|
29
29
|
supported: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* OS support tier per Red Hat KCS article 4234591
|
|
32
|
+
* @type {OsInfoSupportTierEnum}
|
|
33
|
+
* @memberof OsInfo
|
|
34
|
+
*/
|
|
35
|
+
supportTier?: OsInfoSupportTierEnum;
|
|
30
36
|
/**
|
|
31
37
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
32
38
|
* @type {string}
|
|
@@ -34,6 +40,16 @@ export interface OsInfo {
|
|
|
34
40
|
*/
|
|
35
41
|
upgradeRecommendation?: string;
|
|
36
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const OsInfoSupportTierEnum: {
|
|
47
|
+
readonly Certified: "certified";
|
|
48
|
+
readonly VendorSupported: "vendor_supported";
|
|
49
|
+
readonly CommunitySupported: "community_supported";
|
|
50
|
+
readonly SpecialHandling: "special_handling";
|
|
51
|
+
};
|
|
52
|
+
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
37
53
|
/**
|
|
38
54
|
* Check if a given object implements the OsInfo interface.
|
|
39
55
|
*/
|
package/dist/models/OsInfo.js
CHANGED
|
@@ -13,11 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OsInfoSupportTierEnum = void 0;
|
|
16
17
|
exports.instanceOfOsInfo = instanceOfOsInfo;
|
|
17
18
|
exports.OsInfoFromJSON = OsInfoFromJSON;
|
|
18
19
|
exports.OsInfoFromJSONTyped = OsInfoFromJSONTyped;
|
|
19
20
|
exports.OsInfoToJSON = OsInfoToJSON;
|
|
20
21
|
exports.OsInfoToJSONTyped = OsInfoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.OsInfoSupportTierEnum = {
|
|
26
|
+
Certified: 'certified',
|
|
27
|
+
VendorSupported: 'vendor_supported',
|
|
28
|
+
CommunitySupported: 'community_supported',
|
|
29
|
+
SpecialHandling: 'special_handling'
|
|
30
|
+
};
|
|
21
31
|
/**
|
|
22
32
|
* Check if a given object implements the OsInfo interface.
|
|
23
33
|
*/
|
|
@@ -38,6 +48,7 @@ function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
48
|
return {
|
|
39
49
|
'count': json['count'],
|
|
40
50
|
'supported': json['supported'],
|
|
51
|
+
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
41
52
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
42
53
|
};
|
|
43
54
|
}
|
|
@@ -51,6 +62,7 @@ function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
62
|
return {
|
|
52
63
|
'count': value['count'],
|
|
53
64
|
'supported': value['supported'],
|
|
65
|
+
'supportTier': value['supportTier'],
|
|
54
66
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
55
67
|
};
|
|
56
68
|
}
|
|
@@ -63,9 +63,9 @@ function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'contactPhone': json['contactPhone'],
|
|
64
64
|
'email': json['email'],
|
|
65
65
|
'location': json['location'],
|
|
66
|
-
'reason': json['reason']
|
|
67
|
-
'acceptedAt': json['acceptedAt']
|
|
68
|
-
'terminatedAt': json['terminatedAt']
|
|
66
|
+
'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
|
|
67
|
+
'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
|
|
68
|
+
'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
|
|
69
69
|
'createdAt': (new Date(json['createdAt'])),
|
|
70
70
|
};
|
|
71
71
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AssessmentSubsetInventory } from './AssessmentSubsetInventory.js';
|
|
12
13
|
import type { Inventory } from './Inventory.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -28,6 +29,12 @@ export interface Snapshot {
|
|
|
28
29
|
* @memberof Snapshot
|
|
29
30
|
*/
|
|
30
31
|
createdAt: Date;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<AssessmentSubsetInventory>}
|
|
35
|
+
* @memberof Snapshot
|
|
36
|
+
*/
|
|
37
|
+
subsetInventories?: Array<AssessmentSubsetInventory> | null;
|
|
31
38
|
}
|
|
32
39
|
/**
|
|
33
40
|
* Check if a given object implements the Snapshot interface.
|
package/dist/models/Snapshot.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.SnapshotFromJSON = SnapshotFromJSON;
|
|
|
18
18
|
exports.SnapshotFromJSONTyped = SnapshotFromJSONTyped;
|
|
19
19
|
exports.SnapshotToJSON = SnapshotToJSON;
|
|
20
20
|
exports.SnapshotToJSONTyped = SnapshotToJSONTyped;
|
|
21
|
+
const AssessmentSubsetInventory_js_1 = require("./AssessmentSubsetInventory.js");
|
|
21
22
|
const Inventory_js_1 = require("./Inventory.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the Snapshot interface.
|
|
@@ -39,6 +40,7 @@ function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
return {
|
|
40
41
|
'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
41
42
|
'createdAt': (new Date(json['createdAt'])),
|
|
43
|
+
'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryFromJSON)),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
function SnapshotToJSON(json) {
|
|
@@ -51,5 +53,6 @@ function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
53
|
return {
|
|
52
54
|
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
53
55
|
'createdAt': value['createdAt'].toISOString(),
|
|
56
|
+
'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryToJSON)),
|
|
54
57
|
};
|
|
55
58
|
}
|
package/dist/models/Source.js
CHANGED
|
@@ -63,8 +63,8 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
|
|
64
64
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
65
65
|
'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
|
|
66
|
-
'agentVersion': json['agentVersion']
|
|
67
|
-
'agentVersionWarning': json['agentVersionWarning']
|
|
66
|
+
'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
|
|
67
|
+
'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
|
|
68
68
|
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -46,9 +46,9 @@ function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
'name': json['name'],
|
|
49
|
-
'sshPublicKey': json['sshPublicKey']
|
|
49
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
50
50
|
'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
|
|
51
|
-
'certificateChain': json['certificateChain']
|
|
51
|
+
'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
|
|
52
52
|
'network': json['network'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['network']),
|
|
53
53
|
'vmNetwork': json['vmNetwork'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['vmNetwork']),
|
|
54
54
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
@@ -35,7 +35,7 @@ function SourceInfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
|
|
38
|
-
'sshPublicKey': json['sshPublicKey']
|
|
38
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
39
39
|
'vmNetwork': json['vmNetwork'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['vmNetwork']),
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -45,8 +45,8 @@ function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
return {
|
|
46
46
|
'name': json['name'] == null ? undefined : json['name'],
|
|
47
47
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
48
|
-
'sshPublicKey': json['sshPublicKey']
|
|
49
|
-
'certificateChain': json['certificateChain']
|
|
48
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
49
|
+
'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
|
|
50
50
|
'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
|
|
51
51
|
'network': json['network'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['network']),
|
|
52
52
|
'vmNetwork': json['vmNetwork'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['vmNetwork']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './AgentProxy.js';
|
|
|
3
3
|
export * from './Assessment.js';
|
|
4
4
|
export * from './AssessmentForm.js';
|
|
5
5
|
export * from './AssessmentSharing.js';
|
|
6
|
+
export * from './AssessmentSubsetInventory.js';
|
|
6
7
|
export * from './AssessmentUpdate.js';
|
|
7
8
|
export * from './ClusterFeatures.js';
|
|
8
9
|
export * from './ClusterRequirementsRequest.js';
|
package/dist/models/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./AgentProxy.js"), exports);
|
|
|
21
21
|
__exportStar(require("./Assessment.js"), exports);
|
|
22
22
|
__exportStar(require("./AssessmentForm.js"), exports);
|
|
23
23
|
__exportStar(require("./AssessmentSharing.js"), exports);
|
|
24
|
+
__exportStar(require("./AssessmentSubsetInventory.js"), exports);
|
|
24
25
|
__exportStar(require("./AssessmentUpdate.js"), exports);
|
|
25
26
|
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
26
27
|
__exportStar(require("./ClusterRequirementsRequest.js"), exports);
|
package/dist/runtime.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export declare function exists(json: any, key: string): boolean;
|
|
|
127
127
|
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
128
|
[key: string]: any;
|
|
129
129
|
};
|
|
130
|
+
export declare function anyToJSON(value: any): any;
|
|
130
131
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
132
|
export interface Consume {
|
|
132
133
|
contentType: string;
|
package/dist/runtime.js
CHANGED
|
@@ -26,6 +26,7 @@ exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = ex
|
|
|
26
26
|
exports.querystring = querystring;
|
|
27
27
|
exports.exists = exists;
|
|
28
28
|
exports.mapValues = mapValues;
|
|
29
|
+
exports.anyToJSON = anyToJSON;
|
|
29
30
|
exports.canConsumeForm = canConsumeForm;
|
|
30
31
|
exports.BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
|
|
31
32
|
class Configuration {
|
|
@@ -308,6 +309,10 @@ function mapValues(data, fn) {
|
|
|
308
309
|
}
|
|
309
310
|
return result;
|
|
310
311
|
}
|
|
312
|
+
// Pass-through serializer for `any`-typed properties in form data. See #1877.
|
|
313
|
+
function anyToJSON(value) {
|
|
314
|
+
return value;
|
|
315
|
+
}
|
|
311
316
|
function canConsumeForm(consumes) {
|
|
312
317
|
var _a;
|
|
313
318
|
for (const consume of consumes) {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# AssessmentSubsetInventory
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`vcenterId` | string
|
|
12
|
+
`vmsCount` | number
|
|
13
|
+
`inventory` | [Inventory](Inventory.md)
|
|
14
|
+
`createdAt` | Date
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { AssessmentSubsetInventory } from '@openshift-migration-advisor/planner-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"id": null,
|
|
24
|
+
"name": null,
|
|
25
|
+
"vcenterId": null,
|
|
26
|
+
"vmsCount": null,
|
|
27
|
+
"inventory": null,
|
|
28
|
+
"createdAt": null,
|
|
29
|
+
} satisfies AssessmentSubsetInventory
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as AssessmentSubsetInventory
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
package/docs/OsInfo.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`count` | number
|
|
10
10
|
`supported` | boolean
|
|
11
|
+
`supportTier` | string
|
|
11
12
|
`upgradeRecommendation` | string
|
|
12
13
|
|
|
13
14
|
## Example
|
|
@@ -19,6 +20,7 @@ import type { OsInfo } from '@openshift-migration-advisor/planner-sdk'
|
|
|
19
20
|
const example = {
|
|
20
21
|
"count": null,
|
|
21
22
|
"supported": null,
|
|
23
|
+
"supportTier": null,
|
|
22
24
|
"upgradeRecommendation": null,
|
|
23
25
|
} satisfies OsInfo
|
|
24
26
|
|
package/docs/Snapshot.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`inventory` | [Inventory](Inventory.md)
|
|
10
10
|
`createdAt` | Date
|
|
11
|
+
`subsetInventories` | [Array<AssessmentSubsetInventory>](AssessmentSubsetInventory.md)
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ import type { Snapshot } from '@openshift-migration-advisor/planner-sdk'
|
|
|
18
19
|
const example = {
|
|
19
20
|
"inventory": null,
|
|
20
21
|
"createdAt": null,
|
|
22
|
+
"subsetInventories": null,
|
|
21
23
|
} satisfies Snapshot
|
|
22
24
|
|
|
23
25
|
console.log(example)
|
package/package.json
CHANGED
package/src/models/AgentProxy.ts
CHANGED
|
@@ -56,9 +56,9 @@ export function AgentProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
56
56
|
}
|
|
57
57
|
return {
|
|
58
58
|
|
|
59
|
-
'httpUrl': json['httpUrl']
|
|
60
|
-
'httpsUrl': json['httpsUrl']
|
|
61
|
-
'noProxy': json['noProxy']
|
|
59
|
+
'httpUrl': json['httpUrl'] === undefined ? undefined : json['httpUrl'] === null ? null : json['httpUrl'],
|
|
60
|
+
'httpsUrl': json['httpsUrl'] === undefined ? undefined : json['httpsUrl'] === null ? null : json['httpsUrl'],
|
|
61
|
+
'noProxy': json['noProxy'] === undefined ? undefined : json['noProxy'] === null ? null : json['noProxy'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
import type { Inventory } from './Inventory.js';
|
|
17
|
+
import {
|
|
18
|
+
InventoryFromJSON,
|
|
19
|
+
InventoryFromJSONTyped,
|
|
20
|
+
InventoryToJSON,
|
|
21
|
+
InventoryToJSONTyped,
|
|
22
|
+
} from './Inventory.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AssessmentSubsetInventory
|
|
28
|
+
*/
|
|
29
|
+
export interface AssessmentSubsetInventory {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AssessmentSubsetInventory
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AssessmentSubsetInventory
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AssessmentSubsetInventory
|
|
46
|
+
*/
|
|
47
|
+
vcenterId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AssessmentSubsetInventory
|
|
52
|
+
*/
|
|
53
|
+
vmsCount: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Inventory}
|
|
57
|
+
* @memberof AssessmentSubsetInventory
|
|
58
|
+
*/
|
|
59
|
+
inventory: Inventory;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof AssessmentSubsetInventory
|
|
64
|
+
*/
|
|
65
|
+
createdAt: Date;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfAssessmentSubsetInventory(value: object): value is AssessmentSubsetInventory {
|
|
72
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
73
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
74
|
+
if (!('vcenterId' in value) || value['vcenterId'] === undefined) return false;
|
|
75
|
+
if (!('vmsCount' in value) || value['vmsCount'] === undefined) return false;
|
|
76
|
+
if (!('inventory' in value) || value['inventory'] === undefined) return false;
|
|
77
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function AssessmentSubsetInventoryFromJSON(json: any): AssessmentSubsetInventory {
|
|
82
|
+
return AssessmentSubsetInventoryFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function AssessmentSubsetInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSubsetInventory {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'id': json['id'],
|
|
92
|
+
'name': json['name'],
|
|
93
|
+
'vcenterId': json['vcenterId'],
|
|
94
|
+
'vmsCount': json['vmsCount'],
|
|
95
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
96
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function AssessmentSubsetInventoryToJSON(json: any): AssessmentSubsetInventory {
|
|
101
|
+
return AssessmentSubsetInventoryToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function AssessmentSubsetInventoryToJSONTyped(value?: AssessmentSubsetInventory | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'name': value['name'],
|
|
113
|
+
'vcenterId': value['vcenterId'],
|
|
114
|
+
'vmsCount': value['vmsCount'],
|
|
115
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
116
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -67,12 +67,12 @@ export interface ClusterUtilization {
|
|
|
67
67
|
* Check if a given object implements the ClusterUtilization interface.
|
|
68
68
|
*/
|
|
69
69
|
export function instanceOfClusterUtilization(value: object): value is ClusterUtilization {
|
|
70
|
-
if ((!('cpuAvg' in value) && !('cpu_avg' in value)) || (value['cpuAvg'] === undefined && value['cpu_avg'] === undefined)) return false;
|
|
71
|
-
if ((!('cpuP95' in value) && !('cpu_p95' in value)) || (value['cpuP95'] === undefined && value['cpu_p95'] === undefined)) return false;
|
|
72
|
-
if ((!('cpuMax' in value) && !('cpu_max' in value)) || (value['cpuMax'] === undefined && value['cpu_max'] === undefined)) return false;
|
|
73
|
-
if ((!('memAvg' in value) && !('mem_avg' in value)) || (value['memAvg'] === undefined && value['mem_avg'] === undefined)) return false;
|
|
74
|
-
if ((!('memP95' in value) && !('mem_p95' in value)) || (value['memP95'] === undefined && value['mem_p95'] === undefined)) return false;
|
|
75
|
-
if ((!('memMax' in value) && !('mem_max' in value)) || (value['memMax'] === undefined && value['mem_max'] === undefined)) return false;
|
|
70
|
+
if ((!('cpuAvg' in (value as Record<string, any>)) && !('cpu_avg' in (value as Record<string, any>))) || ((value as Record<string, any>)['cpuAvg'] === undefined && (value as Record<string, any>)['cpu_avg'] === undefined)) return false;
|
|
71
|
+
if ((!('cpuP95' in (value as Record<string, any>)) && !('cpu_p95' in (value as Record<string, any>))) || ((value as Record<string, any>)['cpuP95'] === undefined && (value as Record<string, any>)['cpu_p95'] === undefined)) return false;
|
|
72
|
+
if ((!('cpuMax' in (value as Record<string, any>)) && !('cpu_max' in (value as Record<string, any>))) || ((value as Record<string, any>)['cpuMax'] === undefined && (value as Record<string, any>)['cpu_max'] === undefined)) return false;
|
|
73
|
+
if ((!('memAvg' in (value as Record<string, any>)) && !('mem_avg' in (value as Record<string, any>))) || ((value as Record<string, any>)['memAvg'] === undefined && (value as Record<string, any>)['mem_avg'] === undefined)) return false;
|
|
74
|
+
if ((!('memP95' in (value as Record<string, any>)) && !('mem_p95' in (value as Record<string, any>))) || ((value as Record<string, any>)['memP95'] === undefined && (value as Record<string, any>)['mem_p95'] === undefined)) return false;
|
|
75
|
+
if ((!('memMax' in (value as Record<string, any>)) && !('mem_max' in (value as Record<string, any>))) || ((value as Record<string, any>)['memMax'] === undefined && (value as Record<string, any>)['mem_max'] === undefined)) return false;
|
|
76
76
|
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
77
77
|
return true;
|
|
78
78
|
}
|
package/src/models/Datastore.ts
CHANGED
|
@@ -108,7 +108,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
108
108
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
109
109
|
'protocolType': json['protocolType'],
|
|
110
110
|
'model': json['model'],
|
|
111
|
-
'hostId': json['hostId']
|
|
111
|
+
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
package/src/models/Host.ts
CHANGED
|
@@ -79,9 +79,9 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
|
|
|
79
79
|
'id': json['id'] == null ? undefined : json['id'],
|
|
80
80
|
'vendor': json['vendor'],
|
|
81
81
|
'model': json['model'],
|
|
82
|
-
'cpuCores': json['cpuCores']
|
|
83
|
-
'cpuSockets': json['cpuSockets']
|
|
84
|
-
'memoryMB': json['memoryMB']
|
|
82
|
+
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
83
|
+
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
84
|
+
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
|
package/src/models/Identity.ts
CHANGED
|
@@ -79,8 +79,8 @@ export function IdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
79
79
|
|
|
80
80
|
'username': json['username'],
|
|
81
81
|
'kind': json['kind'],
|
|
82
|
-
'groupId': json['groupId']
|
|
83
|
-
'partnerId': json['partnerId']
|
|
82
|
+
'groupId': json['groupId'] === undefined ? undefined : json['groupId'] === null ? null : json['groupId'],
|
|
83
|
+
'partnerId': json['partnerId'] === undefined ? undefined : json['partnerId'] === null ? null : json['partnerId'],
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
|
package/src/models/Info.ts
CHANGED
|
@@ -66,8 +66,8 @@ export function InfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Info
|
|
|
66
66
|
|
|
67
67
|
'gitCommit': json['gitCommit'],
|
|
68
68
|
'versionName': json['versionName'],
|
|
69
|
-
'agentGitCommit': json['agentGitCommit']
|
|
70
|
-
'agentVersionName': json['agentVersionName']
|
|
69
|
+
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
70
|
+
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
package/src/models/Inventory.ts
CHANGED
|
@@ -57,7 +57,7 @@ export interface Inventory {
|
|
|
57
57
|
* Check if a given object implements the Inventory interface.
|
|
58
58
|
*/
|
|
59
59
|
export function instanceOfInventory(value: object): value is Inventory {
|
|
60
|
-
if ((!('vcenterId' in value) && !('vcenter_id' in value)) || (value['vcenterId'] === undefined && value['vcenter_id'] === undefined)) return false;
|
|
60
|
+
if ((!('vcenterId' in (value as Record<string, any>)) && !('vcenter_id' in (value as Record<string, any>))) || ((value as Record<string, any>)['vcenterId'] === undefined && (value as Record<string, any>)['vcenter_id'] === undefined)) return false;
|
|
61
61
|
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
62
62
|
return true;
|
|
63
63
|
}
|
package/src/models/OsInfo.ts
CHANGED
|
@@ -31,6 +31,12 @@ export interface OsInfo {
|
|
|
31
31
|
* @memberof OsInfo
|
|
32
32
|
*/
|
|
33
33
|
supported: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* OS support tier per Red Hat KCS article 4234591
|
|
36
|
+
* @type {OsInfoSupportTierEnum}
|
|
37
|
+
* @memberof OsInfo
|
|
38
|
+
*/
|
|
39
|
+
supportTier?: OsInfoSupportTierEnum;
|
|
34
40
|
/**
|
|
35
41
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
36
42
|
* @type {string}
|
|
@@ -39,6 +45,19 @@ export interface OsInfo {
|
|
|
39
45
|
upgradeRecommendation?: string;
|
|
40
46
|
}
|
|
41
47
|
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const OsInfoSupportTierEnum = {
|
|
53
|
+
Certified: 'certified',
|
|
54
|
+
VendorSupported: 'vendor_supported',
|
|
55
|
+
CommunitySupported: 'community_supported',
|
|
56
|
+
SpecialHandling: 'special_handling'
|
|
57
|
+
} as const;
|
|
58
|
+
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
59
|
+
|
|
60
|
+
|
|
42
61
|
/**
|
|
43
62
|
* Check if a given object implements the OsInfo interface.
|
|
44
63
|
*/
|
|
@@ -60,6 +79,7 @@ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Os
|
|
|
60
79
|
|
|
61
80
|
'count': json['count'],
|
|
62
81
|
'supported': json['supported'],
|
|
82
|
+
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
63
83
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
64
84
|
};
|
|
65
85
|
}
|
|
@@ -77,6 +97,7 @@ export function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator: bo
|
|
|
77
97
|
|
|
78
98
|
'count': value['count'],
|
|
79
99
|
'supported': value['supported'],
|
|
100
|
+
'supportTier': value['supportTier'],
|
|
80
101
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
81
102
|
};
|
|
82
103
|
}
|
|
@@ -152,9 +152,9 @@ export function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
152
152
|
'contactPhone': json['contactPhone'],
|
|
153
153
|
'email': json['email'],
|
|
154
154
|
'location': json['location'],
|
|
155
|
-
'reason': json['reason']
|
|
156
|
-
'acceptedAt': json['acceptedAt']
|
|
157
|
-
'terminatedAt': json['terminatedAt']
|
|
155
|
+
'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
|
|
156
|
+
'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
|
|
157
|
+
'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
|
|
158
158
|
'createdAt': (new Date(json['createdAt'])),
|
|
159
159
|
};
|
|
160
160
|
}
|
package/src/models/Snapshot.ts
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { AssessmentSubsetInventory } from './AssessmentSubsetInventory.js';
|
|
17
|
+
import {
|
|
18
|
+
AssessmentSubsetInventoryFromJSON,
|
|
19
|
+
AssessmentSubsetInventoryFromJSONTyped,
|
|
20
|
+
AssessmentSubsetInventoryToJSON,
|
|
21
|
+
AssessmentSubsetInventoryToJSONTyped,
|
|
22
|
+
} from './AssessmentSubsetInventory.js';
|
|
16
23
|
import type { Inventory } from './Inventory.js';
|
|
17
24
|
import {
|
|
18
25
|
InventoryFromJSON,
|
|
@@ -39,6 +46,12 @@ export interface Snapshot {
|
|
|
39
46
|
* @memberof Snapshot
|
|
40
47
|
*/
|
|
41
48
|
createdAt: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<AssessmentSubsetInventory>}
|
|
52
|
+
* @memberof Snapshot
|
|
53
|
+
*/
|
|
54
|
+
subsetInventories?: Array<AssessmentSubsetInventory> | null;
|
|
42
55
|
}
|
|
43
56
|
|
|
44
57
|
/**
|
|
@@ -62,6 +75,7 @@ export function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
62
75
|
|
|
63
76
|
'inventory': InventoryFromJSON(json['inventory']),
|
|
64
77
|
'createdAt': (new Date(json['createdAt'])),
|
|
78
|
+
'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : ((json['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryFromJSON)),
|
|
65
79
|
};
|
|
66
80
|
}
|
|
67
81
|
|
|
@@ -78,6 +92,7 @@ export function SnapshotToJSONTyped(value?: Snapshot | null, ignoreDiscriminator
|
|
|
78
92
|
|
|
79
93
|
'inventory': InventoryToJSON(value['inventory']),
|
|
80
94
|
'createdAt': value['createdAt'].toISOString(),
|
|
95
|
+
'subsetInventories': value['subsetInventories'] == null ? undefined : ((value['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryToJSON)),
|
|
81
96
|
};
|
|
82
97
|
}
|
|
83
98
|
|
package/src/models/Source.ts
CHANGED
|
@@ -164,8 +164,8 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
|
|
|
164
164
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
165
165
|
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
|
|
166
166
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
167
|
-
'agentVersion': json['agentVersion']
|
|
168
|
-
'agentVersionWarning': json['agentVersionWarning']
|
|
167
|
+
'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
|
|
168
|
+
'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
|
|
169
169
|
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
170
170
|
};
|
|
171
171
|
}
|