@openshift-migration-advisor/agent-sdk 0.16.0-f224c4e8e35b → 0.17.0
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/README.md +2 -2
- package/dist/esm/models/Datastore.js +1 -1
- package/dist/esm/models/Host.js +3 -3
- package/dist/esm/models/OsInfo.d.ts +16 -0
- package/dist/esm/models/OsInfo.js +11 -0
- package/dist/esm/runtime.d.ts +1 -0
- package/dist/esm/runtime.js +4 -0
- package/dist/models/Datastore.js +1 -1
- package/dist/models/Host.js +3 -3
- package/dist/models/OsInfo.d.ts +16 -0
- package/dist/models/OsInfo.js +12 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +5 -0
- package/docs/OsInfo.md +2 -0
- package/package.json +1 -1
- package/src/models/Datastore.ts +1 -1
- package/src/models/Host.ts +3 -3
- package/src/models/OsInfo.ts +21 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.17.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -198,7 +198,7 @@ and is automatically generated by the
|
|
|
198
198
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
199
199
|
|
|
200
200
|
- API version: `v1`
|
|
201
|
-
- Package version: `0.
|
|
201
|
+
- Package version: `0.17.0`
|
|
202
202
|
- Generator version: `7.24.0-SNAPSHOT`
|
|
203
203
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
204
204
|
|
|
@@ -49,7 +49,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
50
50
|
'protocolType': json['protocolType'],
|
|
51
51
|
'model': json['model'],
|
|
52
|
-
'hostId': json['hostId']
|
|
52
|
+
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
export function DatastoreToJSON(json) {
|
package/dist/esm/models/Host.js
CHANGED
|
@@ -32,9 +32,9 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'id': json['id'] == null ? undefined : json['id'],
|
|
33
33
|
'vendor': json['vendor'],
|
|
34
34
|
'model': json['model'],
|
|
35
|
-
'cpuCores': json['cpuCores']
|
|
36
|
-
'cpuSockets': json['cpuSockets']
|
|
37
|
-
'memoryMB': json['memoryMB']
|
|
35
|
+
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
36
|
+
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
37
|
+
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export function HostToJSON(json) {
|
|
@@ -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
|
*/
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const OsInfoSupportTierEnum = {
|
|
18
|
+
Certified: 'certified',
|
|
19
|
+
VendorSupported: 'vendor_supported',
|
|
20
|
+
CommunitySupported: 'community_supported',
|
|
21
|
+
SpecialHandling: 'special_handling'
|
|
22
|
+
};
|
|
14
23
|
/**
|
|
15
24
|
* Check if a given object implements the OsInfo interface.
|
|
16
25
|
*/
|
|
@@ -31,6 +40,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
40
|
return {
|
|
32
41
|
'count': json['count'],
|
|
33
42
|
'supported': json['supported'],
|
|
43
|
+
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
34
44
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
35
45
|
};
|
|
36
46
|
}
|
|
@@ -44,6 +54,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
54
|
return {
|
|
45
55
|
'count': value['count'],
|
|
46
56
|
'supported': value['supported'],
|
|
57
|
+
'supportTier': value['supportTier'],
|
|
47
58
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
48
59
|
};
|
|
49
60
|
}
|
package/dist/esm/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/esm/runtime.js
CHANGED
|
@@ -296,6 +296,10 @@ export function mapValues(data, fn) {
|
|
|
296
296
|
}
|
|
297
297
|
return result;
|
|
298
298
|
}
|
|
299
|
+
// Pass-through serializer for `any`-typed properties in form data. See #1877.
|
|
300
|
+
export function anyToJSON(value) {
|
|
301
|
+
return value;
|
|
302
|
+
}
|
|
299
303
|
export function canConsumeForm(consumes) {
|
|
300
304
|
var _a;
|
|
301
305
|
for (const consume of consumes) {
|
package/dist/models/Datastore.js
CHANGED
|
@@ -56,7 +56,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
57
57
|
'protocolType': json['protocolType'],
|
|
58
58
|
'model': json['model'],
|
|
59
|
-
'hostId': json['hostId']
|
|
59
|
+
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
function DatastoreToJSON(json) {
|
package/dist/models/Host.js
CHANGED
|
@@ -39,9 +39,9 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
40
|
'vendor': json['vendor'],
|
|
41
41
|
'model': json['model'],
|
|
42
|
-
'cpuCores': json['cpuCores']
|
|
43
|
-
'cpuSockets': json['cpuSockets']
|
|
44
|
-
'memoryMB': json['memoryMB']
|
|
42
|
+
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
43
|
+
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
44
|
+
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
function HostToJSON(json) {
|
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
|
}
|
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/api/v1".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) {
|
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/agent-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/package.json
CHANGED
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/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
|
}
|
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) {
|