@openshift-migration-advisor/planner-sdk 0.16.0 → 0.17.0-147463a194bf
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/AgentProxy.js +3 -3
- package/dist/esm/models/Datastore.d.ts +7 -0
- package/dist/esm/models/Datastore.js +4 -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/IssuesBreakdown.d.ts +56 -0
- package/dist/esm/models/IssuesBreakdown.js +59 -0
- 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.js +1 -1
- 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/StorageIoConfiguration.d.ts +58 -0
- package/dist/esm/models/StorageIoConfiguration.js +54 -0
- package/dist/esm/models/VMs.d.ts +7 -0
- package/dist/esm/models/VMs.js +3 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -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/Datastore.d.ts +7 -0
- package/dist/models/Datastore.js +4 -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/IssuesBreakdown.d.ts +56 -0
- package/dist/models/IssuesBreakdown.js +66 -0
- 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.js +1 -1
- 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/StorageIoConfiguration.d.ts +58 -0
- package/dist/models/StorageIoConfiguration.js +62 -0
- package/dist/models/VMs.d.ts +7 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +5 -0
- package/docs/Datastore.md +2 -0
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/OsInfo.md +2 -0
- package/docs/StorageIoConfiguration.md +40 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/models/AgentProxy.ts +3 -3
- package/src/models/Datastore.ts +17 -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/IssuesBreakdown.ts +102 -0
- package/src/models/OsInfo.ts +21 -0
- package/src/models/PartnerRequest.ts +3 -3
- package/src/models/Snapshot.ts +1 -1
- 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/StorageIoConfiguration.ts +100 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# StorageIoConfiguration
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`enabled` | boolean
|
|
10
|
+
`congestionThreshold` | number
|
|
11
|
+
`congestionThresholdMode` | string
|
|
12
|
+
`percentOfPeakThroughput` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { StorageIoConfiguration } from '@openshift-migration-advisor/planner-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"enabled": null,
|
|
22
|
+
"congestionThreshold": null,
|
|
23
|
+
"congestionThresholdMode": null,
|
|
24
|
+
"percentOfPeakThroughput": null,
|
|
25
|
+
} satisfies StorageIoConfiguration
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as StorageIoConfiguration
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
package/docs/VMs.md
CHANGED
|
@@ -28,6 +28,7 @@ Name | Type
|
|
|
28
28
|
`osInfo` | [{ [key: string]: OsInfo; }](OsInfo.md)
|
|
29
29
|
`notMigratableReasons` | [Array<MigrationIssue>](MigrationIssue.md)
|
|
30
30
|
`migrationWarnings` | [Array<MigrationIssue>](MigrationIssue.md)
|
|
31
|
+
`issuesBreakdown` | [IssuesBreakdown](IssuesBreakdown.md)
|
|
31
32
|
|
|
32
33
|
## Example
|
|
33
34
|
|
|
@@ -58,6 +59,7 @@ const example = {
|
|
|
58
59
|
"osInfo": null,
|
|
59
60
|
"notMigratableReasons": null,
|
|
60
61
|
"migrationWarnings": null,
|
|
62
|
+
"issuesBreakdown": null,
|
|
61
63
|
} satisfies VMs
|
|
62
64
|
|
|
63
65
|
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
|
|
package/src/models/Datastore.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
|
|
17
|
+
import {
|
|
18
|
+
StorageIoConfigurationFromJSON,
|
|
19
|
+
StorageIoConfigurationFromJSONTyped,
|
|
20
|
+
StorageIoConfigurationToJSON,
|
|
21
|
+
StorageIoConfigurationToJSONTyped,
|
|
22
|
+
} from './StorageIoConfiguration.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -73,6 +81,12 @@ export interface Datastore {
|
|
|
73
81
|
* @memberof Datastore
|
|
74
82
|
*/
|
|
75
83
|
hostId?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {StorageIoConfiguration}
|
|
87
|
+
* @memberof Datastore
|
|
88
|
+
*/
|
|
89
|
+
storageIoConfiguration?: StorageIoConfiguration;
|
|
76
90
|
}
|
|
77
91
|
|
|
78
92
|
/**
|
|
@@ -108,7 +122,8 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
108
122
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
109
123
|
'protocolType': json['protocolType'],
|
|
110
124
|
'model': json['model'],
|
|
111
|
-
'hostId': json['hostId']
|
|
125
|
+
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
126
|
+
'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
|
|
112
127
|
};
|
|
113
128
|
}
|
|
114
129
|
|
|
@@ -132,6 +147,7 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
|
|
|
132
147
|
'protocolType': value['protocolType'],
|
|
133
148
|
'model': value['model'],
|
|
134
149
|
'hostId': value['hostId'],
|
|
150
|
+
'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
|
|
135
151
|
};
|
|
136
152
|
}
|
|
137
153
|
|
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
|
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IssuesBreakdown
|
|
20
|
+
*/
|
|
21
|
+
export interface IssuesBreakdown {
|
|
22
|
+
/**
|
|
23
|
+
* Number of VMs with at least one Critical issue
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IssuesBreakdown
|
|
26
|
+
*/
|
|
27
|
+
critical: number;
|
|
28
|
+
/**
|
|
29
|
+
* Number of VMs with at least one Warning issue
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof IssuesBreakdown
|
|
32
|
+
*/
|
|
33
|
+
warning: number;
|
|
34
|
+
/**
|
|
35
|
+
* Number of VMs with at least one Information issue
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof IssuesBreakdown
|
|
38
|
+
*/
|
|
39
|
+
information: number;
|
|
40
|
+
/**
|
|
41
|
+
* Number of VMs with at least one Advisory issue
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IssuesBreakdown
|
|
44
|
+
*/
|
|
45
|
+
advisory: number;
|
|
46
|
+
/**
|
|
47
|
+
* Number of VMs with at least one Error issue
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IssuesBreakdown
|
|
50
|
+
*/
|
|
51
|
+
error: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown {
|
|
58
|
+
if (!('critical' in value) || value['critical'] === undefined) return false;
|
|
59
|
+
if (!('warning' in value) || value['warning'] === undefined) return false;
|
|
60
|
+
if (!('information' in value) || value['information'] === undefined) return false;
|
|
61
|
+
if (!('advisory' in value) || value['advisory'] === undefined) return false;
|
|
62
|
+
if (!('error' in value) || value['error'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function IssuesBreakdownFromJSON(json: any): IssuesBreakdown {
|
|
67
|
+
return IssuesBreakdownFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'critical': json['critical'],
|
|
77
|
+
'warning': json['warning'],
|
|
78
|
+
'information': json['information'],
|
|
79
|
+
'advisory': json['advisory'],
|
|
80
|
+
'error': json['error'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function IssuesBreakdownToJSON(json: any): IssuesBreakdown {
|
|
85
|
+
return IssuesBreakdownToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'critical': value['critical'],
|
|
96
|
+
'warning': value['warning'],
|
|
97
|
+
'information': value['information'],
|
|
98
|
+
'advisory': value['advisory'],
|
|
99
|
+
'error': value['error'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
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
|
@@ -75,7 +75,7 @@ export function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
75
75
|
|
|
76
76
|
'inventory': InventoryFromJSON(json['inventory']),
|
|
77
77
|
'createdAt': (new Date(json['createdAt'])),
|
|
78
|
-
'subsetInventories': json['subsetInventories']
|
|
78
|
+
'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : ((json['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryFromJSON)),
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
|
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
|
}
|
|
@@ -127,9 +127,9 @@ export function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
127
127
|
return {
|
|
128
128
|
|
|
129
129
|
'name': json['name'],
|
|
130
|
-
'sshPublicKey': json['sshPublicKey']
|
|
130
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
131
131
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
132
|
-
'certificateChain': json['certificateChain']
|
|
132
|
+
'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
|
|
133
133
|
'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
|
|
134
134
|
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
135
135
|
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
|
|
@@ -72,7 +72,7 @@ export function SourceInfraFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
72
72
|
return {
|
|
73
73
|
|
|
74
74
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
75
|
-
'sshPublicKey': json['sshPublicKey']
|
|
75
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
76
76
|
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -127,8 +127,8 @@ export function SourceUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
127
127
|
|
|
128
128
|
'name': json['name'] == null ? undefined : json['name'],
|
|
129
129
|
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
|
|
130
|
-
'sshPublicKey': json['sshPublicKey']
|
|
131
|
-
'certificateChain': json['certificateChain']
|
|
130
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
131
|
+
'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
|
|
132
132
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
133
133
|
'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
|
|
134
134
|
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StorageIoConfiguration
|
|
20
|
+
*/
|
|
21
|
+
export interface StorageIoConfiguration {
|
|
22
|
+
/**
|
|
23
|
+
* Whether Storage I/O Control is enabled for this datastore
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof StorageIoConfiguration
|
|
26
|
+
*/
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Latency threshold in milliseconds beyond which the storage array is considered congested
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof StorageIoConfiguration
|
|
32
|
+
*/
|
|
33
|
+
congestionThreshold?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Mode for congestion threshold calculation
|
|
36
|
+
* @type {StorageIoConfigurationCongestionThresholdModeEnum}
|
|
37
|
+
* @memberof StorageIoConfiguration
|
|
38
|
+
*/
|
|
39
|
+
congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
|
|
40
|
+
/**
|
|
41
|
+
* Percent of peak throughput
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof StorageIoConfiguration
|
|
44
|
+
*/
|
|
45
|
+
percentOfPeakThroughput?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const StorageIoConfigurationCongestionThresholdModeEnum = {
|
|
53
|
+
Automatic: 'automatic',
|
|
54
|
+
Manual: 'manual'
|
|
55
|
+
} as const;
|
|
56
|
+
export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the StorageIoConfiguration interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration {
|
|
67
|
+
return StorageIoConfigurationFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
77
|
+
'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
|
|
78
|
+
'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
|
|
79
|
+
'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration {
|
|
84
|
+
return StorageIoConfigurationToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'enabled': value['enabled'],
|
|
95
|
+
'congestionThreshold': value['congestionThreshold'],
|
|
96
|
+
'congestionThresholdMode': value['congestionThresholdMode'],
|
|
97
|
+
'percentOfPeakThroughput': value['percentOfPeakThroughput'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/src/models/VMs.ts
CHANGED
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
OsInfoToJSON,
|
|
28
28
|
OsInfoToJSONTyped,
|
|
29
29
|
} from './OsInfo.js';
|
|
30
|
+
import type { IssuesBreakdown } from './IssuesBreakdown.js';
|
|
31
|
+
import {
|
|
32
|
+
IssuesBreakdownFromJSON,
|
|
33
|
+
IssuesBreakdownFromJSONTyped,
|
|
34
|
+
IssuesBreakdownToJSON,
|
|
35
|
+
IssuesBreakdownToJSONTyped,
|
|
36
|
+
} from './IssuesBreakdown.js';
|
|
30
37
|
import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
|
|
31
38
|
import {
|
|
32
39
|
DiskSizeTierSummaryFromJSON,
|
|
@@ -190,6 +197,12 @@ export interface VMs {
|
|
|
190
197
|
* @memberof VMs
|
|
191
198
|
*/
|
|
192
199
|
migrationWarnings: Array<MigrationIssue>;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {IssuesBreakdown}
|
|
203
|
+
* @memberof VMs
|
|
204
|
+
*/
|
|
205
|
+
issuesBreakdown?: IssuesBreakdown;
|
|
193
206
|
}
|
|
194
207
|
|
|
195
208
|
/**
|
|
@@ -240,6 +253,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
|
|
|
240
253
|
'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
|
|
241
254
|
'notMigratableReasons': ((json['notMigratableReasons'] as Array<any>).map(MigrationIssueFromJSON)),
|
|
242
255
|
'migrationWarnings': ((json['migrationWarnings'] as Array<any>).map(MigrationIssueFromJSON)),
|
|
256
|
+
'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : IssuesBreakdownFromJSON(json['issuesBreakdown']),
|
|
243
257
|
};
|
|
244
258
|
}
|
|
245
259
|
|
|
@@ -276,6 +290,7 @@ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean
|
|
|
276
290
|
'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
|
|
277
291
|
'notMigratableReasons': ((value['notMigratableReasons'] as Array<any>).map(MigrationIssueToJSON)),
|
|
278
292
|
'migrationWarnings': ((value['migrationWarnings'] as Array<any>).map(MigrationIssueToJSON)),
|
|
293
|
+
'issuesBreakdown': IssuesBreakdownToJSON(value['issuesBreakdown']),
|
|
279
294
|
};
|
|
280
295
|
}
|
|
281
296
|
|
package/src/models/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './Inventory.js';
|
|
|
35
35
|
export * from './InventoryData.js';
|
|
36
36
|
export * from './InventoryTotals.js';
|
|
37
37
|
export * from './Ipv4Config.js';
|
|
38
|
+
export * from './IssuesBreakdown.js';
|
|
38
39
|
export * from './Job.js';
|
|
39
40
|
export * from './JobStatus.js';
|
|
40
41
|
export * from './Label.js';
|
|
@@ -73,6 +74,7 @@ export * from './SourceUpdate.js';
|
|
|
73
74
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
74
75
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
75
76
|
export * from './Status.js';
|
|
77
|
+
export * from './StorageIoConfiguration.js';
|
|
76
78
|
export * from './UpdateInventory.js';
|
|
77
79
|
export * from './VCenter.js';
|
|
78
80
|
export * from './VMResourceBreakdown.js';
|
package/src/runtime.ts
CHANGED
|
@@ -367,6 +367,11 @@ export function mapValues(data: any, fn: (item: any) => any) {
|
|
|
367
367
|
return result;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
+
// Pass-through serializer for `any`-typed properties in form data. See #1877.
|
|
371
|
+
export function anyToJSON(value: any): any {
|
|
372
|
+
return value;
|
|
373
|
+
}
|
|
374
|
+
|
|
370
375
|
export function canConsumeForm(consumes: Consume[]): boolean {
|
|
371
376
|
for (const consume of consumes) {
|
|
372
377
|
if (consume.contentType?.startsWith('multipart/form-data') == true) {
|