@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.1
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 +10 -0
- package/README.md +8 -3
- package/dist/apis/AppliancesApi.d.ts +64 -0
- package/dist/apis/AppliancesApi.js +72 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +64 -0
- package/dist/esm/apis/AppliancesApi.js +68 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/Host.d.ts +16 -0
- package/dist/esm/models/Host.js +8 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/Host.d.ts +16 -0
- package/dist/models/Host.js +8 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/runtime.js +4 -3
- package/docs/Appliance.md +44 -0
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +8 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +111 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +80 -0
- package/src/apis/index.ts +1 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/Host.ts +24 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/VirtualMachineDetail.ts +13 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/index.ts +4 -0
- package/src/runtime.ts +3 -3
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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 { Appliance } from './Appliance.js';
|
|
17
|
+
import {
|
|
18
|
+
ApplianceFromJSON,
|
|
19
|
+
ApplianceFromJSONTyped,
|
|
20
|
+
ApplianceToJSON,
|
|
21
|
+
ApplianceToJSONTyped,
|
|
22
|
+
} from './Appliance.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApplianceListResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ApplianceListResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
appliances: Array<Appliance>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApplianceListResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApplianceListResponse(value: object): value is ApplianceListResponse {
|
|
40
|
+
if (!('appliances' in value) || value['appliances'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ApplianceListResponseFromJSON(json: any): ApplianceListResponse {
|
|
45
|
+
return ApplianceListResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ApplianceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceListResponse {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'appliances': ((json['appliances'] as Array<any>).map(ApplianceFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ApplianceListResponseToJSON(json: any): ApplianceListResponse {
|
|
59
|
+
return ApplianceListResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ApplianceListResponseToJSONTyped(value?: ApplianceListResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'appliances': ((value['appliances'] as Array<any>).map(ApplianceToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -35,6 +35,22 @@ export interface ApplicationOverview {
|
|
|
35
35
|
* Application description
|
|
36
36
|
*/
|
|
37
37
|
description: string;
|
|
38
|
+
/**
|
|
39
|
+
* Application vendor
|
|
40
|
+
*/
|
|
41
|
+
vendor: string;
|
|
42
|
+
/**
|
|
43
|
+
* Application category
|
|
44
|
+
*/
|
|
45
|
+
category: string;
|
|
46
|
+
/**
|
|
47
|
+
* Detection confidence percentage; defaults to 0 when omitted
|
|
48
|
+
*/
|
|
49
|
+
confidence?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the application has a known container deployment option
|
|
52
|
+
*/
|
|
53
|
+
containerizationCandidate?: boolean;
|
|
38
54
|
/**
|
|
39
55
|
* Number of VMs running this application
|
|
40
56
|
*/
|
|
@@ -51,6 +67,8 @@ export interface ApplicationOverview {
|
|
|
51
67
|
export function instanceOfApplicationOverview(value: object): value is ApplicationOverview {
|
|
52
68
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
69
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
70
|
+
if (!('vendor' in value) || value['vendor'] === undefined) return false;
|
|
71
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
54
72
|
if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
|
|
55
73
|
if (!('vms' in value) || value['vms'] === undefined) return false;
|
|
56
74
|
return true;
|
|
@@ -68,6 +86,10 @@ export function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
68
86
|
|
|
69
87
|
'name': json['name'],
|
|
70
88
|
'description': json['description'],
|
|
89
|
+
'vendor': json['vendor'],
|
|
90
|
+
'category': json['category'],
|
|
91
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
92
|
+
'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
|
|
71
93
|
'vmCount': json['vmCount'],
|
|
72
94
|
'vms': ((json['vms'] as Array<any>).map(ApplicationVMFromJSON)),
|
|
73
95
|
};
|
|
@@ -86,6 +108,10 @@ export function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | nul
|
|
|
86
108
|
|
|
87
109
|
'name': value['name'],
|
|
88
110
|
'description': value['description'],
|
|
111
|
+
'vendor': value['vendor'],
|
|
112
|
+
'category': value['category'],
|
|
113
|
+
'confidence': value['confidence'],
|
|
114
|
+
'containerizationCandidate': value['containerizationCandidate'],
|
|
89
115
|
'vmCount': value['vmCount'],
|
|
90
116
|
'vms': ((value['vms'] as Array<any>).map(ApplicationVMToJSON)),
|
|
91
117
|
};
|
package/src/models/Host.ts
CHANGED
|
@@ -46,6 +46,22 @@ export interface Host {
|
|
|
46
46
|
*
|
|
47
47
|
*/
|
|
48
48
|
model: string;
|
|
49
|
+
/**
|
|
50
|
+
* Source datacenter name, when available.
|
|
51
|
+
*/
|
|
52
|
+
datacenter?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Source cluster name; omitted for standalone hosts.
|
|
55
|
+
*/
|
|
56
|
+
cluster?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Source-reported CPU model, when available.
|
|
59
|
+
*/
|
|
60
|
+
cpuModel?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Source-reported host hardware serial or service tag, when available.
|
|
63
|
+
*/
|
|
64
|
+
serialNumber?: string;
|
|
49
65
|
/**
|
|
50
66
|
* Number of CPU cores
|
|
51
67
|
*/
|
|
@@ -98,6 +114,10 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
|
|
|
98
114
|
'id': json['id'] == null ? undefined : json['id'],
|
|
99
115
|
'vendor': json['vendor'],
|
|
100
116
|
'model': json['model'],
|
|
117
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
118
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
119
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
120
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
101
121
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
102
122
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
103
123
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
@@ -122,6 +142,10 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
|
|
|
122
142
|
'id': value['id'],
|
|
123
143
|
'vendor': value['vendor'],
|
|
124
144
|
'model': value['model'],
|
|
145
|
+
'datacenter': value['datacenter'],
|
|
146
|
+
'cluster': value['cluster'],
|
|
147
|
+
'cpuModel': value['cpuModel'],
|
|
148
|
+
'serialNumber': value['serialNumber'],
|
|
125
149
|
'cpuCores': value['cpuCores'],
|
|
126
150
|
'cpuSockets': value['cpuSockets'],
|
|
127
151
|
'memoryMB': value['memoryMB'],
|
package/src/models/OsInfo.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface OsInfo {
|
|
|
31
31
|
* OS support tier per Red Hat KCS article 4234591
|
|
32
32
|
*/
|
|
33
33
|
supportTier?: OsInfoSupportTierEnum;
|
|
34
|
+
/**
|
|
35
|
+
* MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
|
|
36
|
+
*/
|
|
37
|
+
mtvStatus?: OsInfoMtvStatusEnum;
|
|
34
38
|
/**
|
|
35
39
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
36
40
|
*/
|
|
@@ -49,6 +53,15 @@ export const OsInfoSupportTierEnum = {
|
|
|
49
53
|
} as const;
|
|
50
54
|
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
51
55
|
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export const OsInfoMtvStatusEnum = {
|
|
60
|
+
Green: 'green',
|
|
61
|
+
Blue: 'blue',
|
|
62
|
+
} as const;
|
|
63
|
+
export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
|
|
64
|
+
|
|
52
65
|
|
|
53
66
|
/**
|
|
54
67
|
* Check if a given object implements the OsInfo interface.
|
|
@@ -72,6 +85,7 @@ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Os
|
|
|
72
85
|
'count': json['count'],
|
|
73
86
|
'supported': json['supported'],
|
|
74
87
|
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
88
|
+
'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
|
|
75
89
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
76
90
|
};
|
|
77
91
|
}
|
|
@@ -90,6 +104,7 @@ export function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator: bo
|
|
|
90
104
|
'count': value['count'],
|
|
91
105
|
'supported': value['supported'],
|
|
92
106
|
'supportTier': value['supportTier'],
|
|
107
|
+
'mtvStatus': value['mtvStatus'],
|
|
93
108
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
94
109
|
};
|
|
95
110
|
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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 Product
|
|
20
|
+
*/
|
|
21
|
+
export interface Product {
|
|
22
|
+
/**
|
|
23
|
+
* Product key
|
|
24
|
+
*/
|
|
25
|
+
key: number;
|
|
26
|
+
/**
|
|
27
|
+
* Product class identifier
|
|
28
|
+
*/
|
|
29
|
+
classId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Product instance identifier
|
|
32
|
+
*/
|
|
33
|
+
instanceId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Product name
|
|
36
|
+
*/
|
|
37
|
+
name?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Product vendor
|
|
40
|
+
*/
|
|
41
|
+
vendor?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Product version
|
|
44
|
+
*/
|
|
45
|
+
version?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Full product version
|
|
48
|
+
*/
|
|
49
|
+
fullVersion?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Product vendor URL
|
|
52
|
+
*/
|
|
53
|
+
vendorUrl?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Product URL
|
|
56
|
+
*/
|
|
57
|
+
productUrl?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Application URL
|
|
60
|
+
*/
|
|
61
|
+
appUrl?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the Product interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfProduct(value: object): value is Product {
|
|
68
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ProductFromJSON(json: any): Product {
|
|
73
|
+
return ProductFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'key': json['key'],
|
|
83
|
+
'classId': json['classId'] == null ? undefined : json['classId'],
|
|
84
|
+
'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
|
|
85
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
86
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
87
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
88
|
+
'fullVersion': json['fullVersion'] == null ? undefined : json['fullVersion'],
|
|
89
|
+
'vendorUrl': json['vendorUrl'] == null ? undefined : json['vendorUrl'],
|
|
90
|
+
'productUrl': json['productUrl'] == null ? undefined : json['productUrl'],
|
|
91
|
+
'appUrl': json['appUrl'] == null ? undefined : json['appUrl'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ProductToJSON(json: any): Product {
|
|
96
|
+
return ProductToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'key': value['key'],
|
|
107
|
+
'classId': value['classId'],
|
|
108
|
+
'instanceId': value['instanceId'],
|
|
109
|
+
'name': value['name'],
|
|
110
|
+
'vendor': value['vendor'],
|
|
111
|
+
'version': value['version'],
|
|
112
|
+
'fullVersion': value['fullVersion'],
|
|
113
|
+
'vendorUrl': value['vendorUrl'],
|
|
114
|
+
'productUrl': value['productUrl'],
|
|
115
|
+
'appUrl': value['appUrl'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -55,6 +55,13 @@ import {
|
|
|
55
55
|
HostPhysicalNICToJSON,
|
|
56
56
|
HostPhysicalNICToJSONTyped,
|
|
57
57
|
} from './HostPhysicalNIC.js';
|
|
58
|
+
import type { Product } from './Product.js';
|
|
59
|
+
import {
|
|
60
|
+
ProductFromJSON,
|
|
61
|
+
ProductFromJSONTyped,
|
|
62
|
+
ProductToJSON,
|
|
63
|
+
ProductToJSONTyped,
|
|
64
|
+
} from './Product.js';
|
|
58
65
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
59
66
|
import {
|
|
60
67
|
VmUtilizationDetailsFromJSON,
|
|
@@ -254,6 +261,10 @@ export interface VirtualMachineDetail {
|
|
|
254
261
|
* List of processes detected on this VM
|
|
255
262
|
*/
|
|
256
263
|
processes?: Array<Process>;
|
|
264
|
+
/**
|
|
265
|
+
* Products configured in the VM's vApp settings
|
|
266
|
+
*/
|
|
267
|
+
products?: Array<Product>;
|
|
257
268
|
}
|
|
258
269
|
|
|
259
270
|
/**
|
|
@@ -325,6 +336,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
325
336
|
'inspection': json['inspection'] == null ? undefined : VirtualMachineInspectionResultsFromJSON(json['inspection']),
|
|
326
337
|
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
327
338
|
'processes': json['processes'] == null ? undefined : ((json['processes'] as Array<any>).map(ProcessFromJSON)),
|
|
339
|
+
'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
|
|
328
340
|
};
|
|
329
341
|
}
|
|
330
342
|
|
|
@@ -379,6 +391,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
379
391
|
'inspection': VirtualMachineInspectionResultsToJSON(value['inspection']),
|
|
380
392
|
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
381
393
|
'processes': value['processes'] == null ? undefined : ((value['processes'] as Array<any>).map(ProcessToJSON)),
|
|
394
|
+
'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductToJSON)),
|
|
382
395
|
};
|
|
383
396
|
}
|
|
384
397
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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 VirtualMachineIdentity
|
|
20
|
+
*/
|
|
21
|
+
export interface VirtualMachineIdentity {
|
|
22
|
+
/**
|
|
23
|
+
* VM ID
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* VM name
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the VirtualMachineIdentity interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfVirtualMachineIdentity(value: object): value is VirtualMachineIdentity {
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function VirtualMachineIdentityFromJSON(json: any): VirtualMachineIdentity {
|
|
42
|
+
return VirtualMachineIdentityFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VirtualMachineIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineIdentity {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VirtualMachineIdentityToJSON(json: any): VirtualMachineIdentity {
|
|
57
|
+
return VirtualMachineIdentityToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function VirtualMachineIdentityToJSONTyped(value?: VirtualMachineIdentity | null, ignoreDiscriminator: boolean = false): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
export * from './AgentModeRequest.js';
|
|
4
4
|
export * from './AgentStatus.js';
|
|
5
5
|
export * from './AgentStatusConsoleConnection.js';
|
|
6
|
+
export * from './Appliance.js';
|
|
7
|
+
export * from './ApplianceListResponse.js';
|
|
6
8
|
export * from './ApplicationListResponse.js';
|
|
7
9
|
export * from './ApplicationOverview.js';
|
|
8
10
|
export * from './ApplicationVM.js';
|
|
@@ -56,6 +58,7 @@ export * from './OsInfo.js';
|
|
|
56
58
|
export * from './PairCapability.js';
|
|
57
59
|
export * from './PairCapabilityRequest.js';
|
|
58
60
|
export * from './Process.js';
|
|
61
|
+
export * from './Product.js';
|
|
59
62
|
export * from './RDMBacking.js';
|
|
60
63
|
export * from './RightsizingClusterResponse.js';
|
|
61
64
|
export * from './RightsizingClusterUtilization.js';
|
|
@@ -79,6 +82,7 @@ export * from './VirtualMachineDatastore.js';
|
|
|
79
82
|
export * from './VirtualMachineDetail.js';
|
|
80
83
|
export * from './VirtualMachineDevice.js';
|
|
81
84
|
export * from './VirtualMachineDisk.js';
|
|
85
|
+
export * from './VirtualMachineIdentity.js';
|
|
82
86
|
export * from './VirtualMachineInspectionConcern.js';
|
|
83
87
|
export * from './VirtualMachineInspectionResults.js';
|
|
84
88
|
export * from './VirtualMachineIssue.js';
|
package/src/runtime.ts
CHANGED
|
@@ -533,7 +533,7 @@ export function parseContentDispositionFilename(headers: Headers): string | unde
|
|
|
533
533
|
function decodeExtValue(value: string | undefined): string | undefined {
|
|
534
534
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
535
535
|
try {
|
|
536
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
536
|
+
return match?.[1] !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
537
537
|
} catch {
|
|
538
538
|
return undefined;
|
|
539
539
|
}
|
|
@@ -549,9 +549,9 @@ function parseHeaderParameters(value: string): Map<string, string> {
|
|
|
549
549
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
550
550
|
let match: RegExpExecArray | null;
|
|
551
551
|
while ((match = parameter.exec(value)) !== null) {
|
|
552
|
-
const name = match[1].toLowerCase();
|
|
552
|
+
const name = (match[1] ?? '').toLowerCase();
|
|
553
553
|
if (!params.has(name)) {
|
|
554
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
554
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : (match[3] ?? '').trim());
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
return params;
|