@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/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@ docs/Assessment.md
|
|
|
9
9
|
docs/AssessmentApi.md
|
|
10
10
|
docs/AssessmentForm.md
|
|
11
11
|
docs/AssessmentSharing.md
|
|
12
|
+
docs/AssessmentSubsetInventory.md
|
|
12
13
|
docs/AssessmentUpdate.md
|
|
13
14
|
docs/ClusterFeatures.md
|
|
14
15
|
docs/ClusterRequirementsRequest.md
|
|
@@ -105,6 +106,7 @@ src/models/AgentProxy.ts
|
|
|
105
106
|
src/models/Assessment.ts
|
|
106
107
|
src/models/AssessmentForm.ts
|
|
107
108
|
src/models/AssessmentSharing.ts
|
|
109
|
+
src/models/AssessmentSubsetInventory.ts
|
|
108
110
|
src/models/AssessmentUpdate.ts
|
|
109
111
|
src/models/ClusterFeatures.ts
|
|
110
112
|
src/models/ClusterRequirementsRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.16.0-13a0f6e7cd6f
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -104,6 +104,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
104
104
|
- [Assessment](docs/Assessment.md)
|
|
105
105
|
- [AssessmentForm](docs/AssessmentForm.md)
|
|
106
106
|
- [AssessmentSharing](docs/AssessmentSharing.md)
|
|
107
|
+
- [AssessmentSubsetInventory](docs/AssessmentSubsetInventory.md)
|
|
107
108
|
- [AssessmentUpdate](docs/AssessmentUpdate.md)
|
|
108
109
|
- [ClusterFeatures](docs/ClusterFeatures.md)
|
|
109
110
|
- [ClusterRequirementsRequest](docs/ClusterRequirementsRequest.md)
|
|
@@ -189,7 +190,7 @@ and is automatically generated by the
|
|
|
189
190
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
190
191
|
|
|
191
192
|
- API version: `v1alpha1`
|
|
192
|
-
- Package version: `0.
|
|
193
|
+
- Package version: `0.16.0-13a0f6e7cd6f`
|
|
193
194
|
- Generator version: `7.24.0-SNAPSHOT`
|
|
194
195
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
195
196
|
|
|
@@ -25,9 +25,9 @@ export function AgentProxyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
-
'httpUrl': json['httpUrl']
|
|
29
|
-
'httpsUrl': json['httpsUrl']
|
|
30
|
-
'noProxy': json['noProxy']
|
|
28
|
+
'httpUrl': json['httpUrl'] === undefined ? undefined : json['httpUrl'] === null ? null : json['httpUrl'],
|
|
29
|
+
'httpsUrl': json['httpsUrl'] === undefined ? undefined : json['httpsUrl'] === null ? null : json['httpsUrl'],
|
|
30
|
+
'noProxy': json['noProxy'] === undefined ? undefined : json['noProxy'] === null ? null : json['noProxy'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export function AgentProxyToJSON(json) {
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
import type { Inventory } from './Inventory.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssessmentSubsetInventory
|
|
17
|
+
*/
|
|
18
|
+
export interface AssessmentSubsetInventory {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AssessmentSubsetInventory
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AssessmentSubsetInventory
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AssessmentSubsetInventory
|
|
35
|
+
*/
|
|
36
|
+
vcenterId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AssessmentSubsetInventory
|
|
41
|
+
*/
|
|
42
|
+
vmsCount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Inventory}
|
|
46
|
+
* @memberof AssessmentSubsetInventory
|
|
47
|
+
*/
|
|
48
|
+
inventory: Inventory;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof AssessmentSubsetInventory
|
|
53
|
+
*/
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAssessmentSubsetInventory(value: object): value is AssessmentSubsetInventory;
|
|
60
|
+
export declare function AssessmentSubsetInventoryFromJSON(json: any): AssessmentSubsetInventory;
|
|
61
|
+
export declare function AssessmentSubsetInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSubsetInventory;
|
|
62
|
+
export declare function AssessmentSubsetInventoryToJSON(json: any): AssessmentSubsetInventory;
|
|
63
|
+
export declare function AssessmentSubsetInventoryToJSONTyped(value?: AssessmentSubsetInventory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAssessmentSubsetInventory(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('vcenterId' in value) || value['vcenterId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('vmsCount' in value) || value['vmsCount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function AssessmentSubsetInventoryFromJSON(json) {
|
|
34
|
+
return AssessmentSubsetInventoryFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'vcenterId': json['vcenterId'],
|
|
44
|
+
'vmsCount': json['vmsCount'],
|
|
45
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
46
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function AssessmentSubsetInventoryToJSON(json) {
|
|
50
|
+
return AssessmentSubsetInventoryToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'vcenterId': value['vcenterId'],
|
|
60
|
+
'vmsCount': value['vmsCount'],
|
|
61
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
62
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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) {
|
|
@@ -40,8 +40,8 @@ export function IdentityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return {
|
|
41
41
|
'username': json['username'],
|
|
42
42
|
'kind': json['kind'],
|
|
43
|
-
'groupId': json['groupId']
|
|
44
|
-
'partnerId': json['partnerId']
|
|
43
|
+
'groupId': json['groupId'] === undefined ? undefined : json['groupId'] === null ? null : json['groupId'],
|
|
44
|
+
'partnerId': json['partnerId'] === undefined ? undefined : json['partnerId'] === null ? null : json['partnerId'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
export function IdentityToJSON(json) {
|
package/dist/esm/models/Info.js
CHANGED
|
@@ -31,8 +31,8 @@ export function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return {
|
|
32
32
|
'gitCommit': json['gitCommit'],
|
|
33
33
|
'versionName': json['versionName'],
|
|
34
|
-
'agentGitCommit': json['agentGitCommit']
|
|
35
|
-
'agentVersionName': json['agentVersionName']
|
|
34
|
+
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
35
|
+
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
export function InfoToJSON(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
|
}
|
|
@@ -56,9 +56,9 @@ export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'contactPhone': json['contactPhone'],
|
|
57
57
|
'email': json['email'],
|
|
58
58
|
'location': json['location'],
|
|
59
|
-
'reason': json['reason']
|
|
60
|
-
'acceptedAt': json['acceptedAt']
|
|
61
|
-
'terminatedAt': json['terminatedAt']
|
|
59
|
+
'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
|
|
60
|
+
'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
|
|
61
|
+
'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
|
|
62
62
|
'createdAt': (new Date(json['createdAt'])),
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -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.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { AssessmentSubsetInventoryFromJSON, AssessmentSubsetInventoryToJSON, } from './AssessmentSubsetInventory.js';
|
|
14
15
|
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the Snapshot interface.
|
|
@@ -32,6 +33,7 @@ export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
return {
|
|
33
34
|
'inventory': InventoryFromJSON(json['inventory']),
|
|
34
35
|
'createdAt': (new Date(json['createdAt'])),
|
|
36
|
+
'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventoryFromJSON)),
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
export function SnapshotToJSON(json) {
|
|
@@ -44,5 +46,6 @@ export function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
46
|
return {
|
|
45
47
|
'inventory': InventoryToJSON(value['inventory']),
|
|
46
48
|
'createdAt': value['createdAt'].toISOString(),
|
|
49
|
+
'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventoryToJSON)),
|
|
47
50
|
};
|
|
48
51
|
}
|
|
@@ -55,8 +55,8 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
56
56
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
57
57
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
58
|
-
'agentVersion': json['agentVersion']
|
|
59
|
-
'agentVersionWarning': json['agentVersionWarning']
|
|
58
|
+
'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
|
|
59
|
+
'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
|
|
60
60
|
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
61
61
|
};
|
|
62
62
|
}
|
|
@@ -38,9 +38,9 @@ export function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'name': json['name'],
|
|
41
|
-
'sshPublicKey': json['sshPublicKey']
|
|
41
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
42
42
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
43
|
-
'certificateChain': json['certificateChain']
|
|
43
|
+
'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
|
|
44
44
|
'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
|
|
45
45
|
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
46
46
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
@@ -28,7 +28,7 @@ export function SourceInfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
31
|
-
'sshPublicKey': json['sshPublicKey']
|
|
31
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
32
32
|
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -37,8 +37,8 @@ export function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return {
|
|
38
38
|
'name': json['name'] == null ? undefined : json['name'],
|
|
39
39
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
40
|
-
'sshPublicKey': json['sshPublicKey']
|
|
41
|
-
'certificateChain': json['certificateChain']
|
|
40
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
41
|
+
'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
|
|
42
42
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
43
43
|
'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
|
|
44
44
|
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export * from './AgentProxy.js';
|
|
|
5
5
|
export * from './Assessment.js';
|
|
6
6
|
export * from './AssessmentForm.js';
|
|
7
7
|
export * from './AssessmentSharing.js';
|
|
8
|
+
export * from './AssessmentSubsetInventory.js';
|
|
8
9
|
export * from './AssessmentUpdate.js';
|
|
9
10
|
export * from './ClusterFeatures.js';
|
|
10
11
|
export * from './ClusterRequirementsRequest.js';
|
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) {
|
|
@@ -32,9 +32,9 @@ function AgentProxyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'httpUrl': json['httpUrl']
|
|
36
|
-
'httpsUrl': json['httpsUrl']
|
|
37
|
-
'noProxy': json['noProxy']
|
|
35
|
+
'httpUrl': json['httpUrl'] === undefined ? undefined : json['httpUrl'] === null ? null : json['httpUrl'],
|
|
36
|
+
'httpsUrl': json['httpsUrl'] === undefined ? undefined : json['httpsUrl'] === null ? null : json['httpsUrl'],
|
|
37
|
+
'noProxy': json['noProxy'] === undefined ? undefined : json['noProxy'] === null ? null : json['noProxy'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function AgentProxyToJSON(json) {
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
import type { Inventory } from './Inventory.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssessmentSubsetInventory
|
|
17
|
+
*/
|
|
18
|
+
export interface AssessmentSubsetInventory {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AssessmentSubsetInventory
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AssessmentSubsetInventory
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AssessmentSubsetInventory
|
|
35
|
+
*/
|
|
36
|
+
vcenterId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AssessmentSubsetInventory
|
|
41
|
+
*/
|
|
42
|
+
vmsCount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Inventory}
|
|
46
|
+
* @memberof AssessmentSubsetInventory
|
|
47
|
+
*/
|
|
48
|
+
inventory: Inventory;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof AssessmentSubsetInventory
|
|
53
|
+
*/
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAssessmentSubsetInventory(value: object): value is AssessmentSubsetInventory;
|
|
60
|
+
export declare function AssessmentSubsetInventoryFromJSON(json: any): AssessmentSubsetInventory;
|
|
61
|
+
export declare function AssessmentSubsetInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSubsetInventory;
|
|
62
|
+
export declare function AssessmentSubsetInventoryToJSON(json: any): AssessmentSubsetInventory;
|
|
63
|
+
export declare function AssessmentSubsetInventoryToJSONTyped(value?: AssessmentSubsetInventory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfAssessmentSubsetInventory = instanceOfAssessmentSubsetInventory;
|
|
17
|
+
exports.AssessmentSubsetInventoryFromJSON = AssessmentSubsetInventoryFromJSON;
|
|
18
|
+
exports.AssessmentSubsetInventoryFromJSONTyped = AssessmentSubsetInventoryFromJSONTyped;
|
|
19
|
+
exports.AssessmentSubsetInventoryToJSON = AssessmentSubsetInventoryToJSON;
|
|
20
|
+
exports.AssessmentSubsetInventoryToJSONTyped = AssessmentSubsetInventoryToJSONTyped;
|
|
21
|
+
const Inventory_js_1 = require("./Inventory.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAssessmentSubsetInventory(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('vcenterId' in value) || value['vcenterId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('vmsCount' in value) || value['vmsCount'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function AssessmentSubsetInventoryFromJSON(json) {
|
|
41
|
+
return AssessmentSubsetInventoryFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'vcenterId': json['vcenterId'],
|
|
51
|
+
'vmsCount': json['vmsCount'],
|
|
52
|
+
'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
53
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AssessmentSubsetInventoryToJSON(json) {
|
|
57
|
+
return AssessmentSubsetInventoryToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'name': value['name'],
|
|
66
|
+
'vcenterId': value['vcenterId'],
|
|
67
|
+
'vmsCount': value['vmsCount'],
|
|
68
|
+
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
69
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
70
|
+
};
|
|
71
|
+
}
|
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/Identity.js
CHANGED
|
@@ -48,8 +48,8 @@ function IdentityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
return {
|
|
49
49
|
'username': json['username'],
|
|
50
50
|
'kind': json['kind'],
|
|
51
|
-
'groupId': json['groupId']
|
|
52
|
-
'partnerId': json['partnerId']
|
|
51
|
+
'groupId': json['groupId'] === undefined ? undefined : json['groupId'] === null ? null : json['groupId'],
|
|
52
|
+
'partnerId': json['partnerId'] === undefined ? undefined : json['partnerId'] === null ? null : json['partnerId'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function IdentityToJSON(json) {
|
package/dist/models/Info.js
CHANGED
|
@@ -38,8 +38,8 @@ function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return {
|
|
39
39
|
'gitCommit': json['gitCommit'],
|
|
40
40
|
'versionName': json['versionName'],
|
|
41
|
-
'agentGitCommit': json['agentGitCommit']
|
|
42
|
-
'agentVersionName': json['agentVersionName']
|
|
41
|
+
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
42
|
+
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
function InfoToJSON(json) {
|