@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-347af06813e6
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 +18 -2
- package/README.md +12 -4
- 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/InventoriesApi.d.ts +9 -9
- package/dist/apis/InventoriesApi.js +3 -3
- 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/InventoriesApi.d.ts +9 -9
- package/dist/esm/apis/InventoriesApi.js +3 -3
- 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/CollectedInventory.d.ts +31 -0
- package/dist/esm/models/CollectedInventory.js +44 -0
- package/dist/esm/models/GroupResponse.d.ts +2 -2
- package/dist/esm/models/GroupResponse.js +3 -3
- package/dist/esm/models/Host.d.ts +26 -0
- package/dist/esm/models/Host.js +14 -0
- package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/esm/models/HostPhysicalNIC.js +45 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/Inventory.d.ts +24 -2
- package/dist/esm/models/Inventory.js +17 -4
- 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/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/esm/models/VirtualMachineDetail.js +8 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/esm/models/VirtualMachineNIC.js +6 -0
- package/dist/esm/models/index.d.ts +8 -1
- package/dist/esm/models/index.js +8 -1
- 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/CollectedInventory.d.ts +31 -0
- package/dist/models/CollectedInventory.js +51 -0
- package/dist/models/GroupResponse.d.ts +2 -2
- package/dist/models/GroupResponse.js +3 -3
- package/dist/models/Host.d.ts +26 -0
- package/dist/models/Host.js +14 -0
- package/dist/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/models/HostPhysicalNIC.js +52 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/Inventory.d.ts +24 -2
- package/dist/models/Inventory.js +17 -4
- 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/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/models/VirtualMachineDetail.js +8 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/models/VirtualMachineNIC.js +6 -0
- package/dist/models/index.d.ts +8 -1
- package/dist/models/index.js +8 -1
- package/dist/runtime.js +4 -3
- package/docs/{Inventory1.md → Appliance.md} +16 -16
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectedInventory.md +34 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupResponse.md +1 -1
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +12 -0
- package/docs/HostPhysicalNIC.md +36 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/InventoriesApi.md +4 -4
- package/docs/Inventory.md +12 -2
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/docs/VirtualMachineNIC.md +6 -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/InventoriesApi.ts +14 -14
- 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/CollectedInventory.ts +72 -0
- package/src/models/GroupResponse.ts +9 -9
- package/src/models/Host.ts +51 -0
- package/src/models/HostPhysicalNIC.ts +70 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Inventory.ts +42 -11
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDetail.ts +32 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/VirtualMachineNIC.ts +18 -0
- package/src/models/index.ts +8 -1
- package/src/runtime.ts +3 -3
- package/dist/esm/models/Inventory1.d.ts +0 -53
- package/dist/esm/models/Inventory1.js +0 -57
- package/dist/models/Inventory1.d.ts +0 -53
- package/dist/models/Inventory1.js +0 -64
- package/src/models/Inventory1.ts +0 -103
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
import * as runtime from '../runtime.js';
|
|
16
16
|
import {
|
|
17
|
-
type
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from '../models/
|
|
17
|
+
type CollectedInventory,
|
|
18
|
+
CollectedInventoryFromJSON,
|
|
19
|
+
CollectedInventoryToJSON,
|
|
20
|
+
} from '../models/CollectedInventory.js';
|
|
21
21
|
|
|
22
22
|
export interface GetInventoryRequest {
|
|
23
23
|
/**
|
|
@@ -56,12 +56,12 @@ export interface InventoriesApiInterface {
|
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
* @memberof InventoriesApiInterface
|
|
58
58
|
*/
|
|
59
|
-
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
59
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Get collected inventory for a collection
|
|
63
63
|
*/
|
|
64
|
-
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
64
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* Creates request options for getLatestInventory without sending the request
|
|
@@ -79,12 +79,12 @@ export interface InventoriesApiInterface {
|
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
* @memberof InventoriesApiInterface
|
|
81
81
|
*/
|
|
82
|
-
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
82
|
+
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Get inventory from the latest collection
|
|
86
86
|
*/
|
|
87
|
-
getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
87
|
+
getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
88
88
|
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -123,17 +123,17 @@ export class InventoriesApi extends runtime.BaseAPI implements InventoriesApiInt
|
|
|
123
123
|
/**
|
|
124
124
|
* Get collected inventory for a collection
|
|
125
125
|
*/
|
|
126
|
-
async getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
126
|
+
async getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>> {
|
|
127
127
|
const requestOptions = await this.getInventoryRequestOpts(requestParameters);
|
|
128
128
|
const response = await this.request(requestOptions, initOverrides);
|
|
129
129
|
|
|
130
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* Get collected inventory for a collection
|
|
135
135
|
*/
|
|
136
|
-
async getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
136
|
+
async getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory> {
|
|
137
137
|
const response = await this.getInventoryRaw(requestParameters, initOverrides);
|
|
138
138
|
return await response.value();
|
|
139
139
|
}
|
|
@@ -164,17 +164,17 @@ export class InventoriesApi extends runtime.BaseAPI implements InventoriesApiInt
|
|
|
164
164
|
/**
|
|
165
165
|
* Get inventory from the latest collection
|
|
166
166
|
*/
|
|
167
|
-
async getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
167
|
+
async getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>> {
|
|
168
168
|
const requestOptions = await this.getLatestInventoryRequestOpts(requestParameters);
|
|
169
169
|
const response = await this.request(requestOptions, initOverrides);
|
|
170
170
|
|
|
171
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
171
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* Get inventory from the latest collection
|
|
176
176
|
*/
|
|
177
|
-
async getLatestInventory(requestParameters: GetLatestInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
177
|
+
async getLatestInventory(requestParameters: GetLatestInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory> {
|
|
178
178
|
const response = await this.getLatestInventoryRaw(requestParameters, initOverrides);
|
|
179
179
|
return await response.value();
|
|
180
180
|
}
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,107 @@
|
|
|
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 { VirtualMachineIdentity } from './VirtualMachineIdentity.js';
|
|
17
|
+
import {
|
|
18
|
+
VirtualMachineIdentityFromJSON,
|
|
19
|
+
VirtualMachineIdentityFromJSONTyped,
|
|
20
|
+
VirtualMachineIdentityToJSON,
|
|
21
|
+
VirtualMachineIdentityToJSONTyped,
|
|
22
|
+
} from './VirtualMachineIdentity.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Appliance
|
|
28
|
+
*/
|
|
29
|
+
export interface Appliance {
|
|
30
|
+
/**
|
|
31
|
+
* Appliance product name
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Appliance vendor; defaults to Unknown when not reported
|
|
36
|
+
*/
|
|
37
|
+
vendor: string;
|
|
38
|
+
/**
|
|
39
|
+
* Appliance product version; defaults to empty when not reported
|
|
40
|
+
*/
|
|
41
|
+
version: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
confidence: number;
|
|
46
|
+
/**
|
|
47
|
+
* Number of VMs running this appliance
|
|
48
|
+
*/
|
|
49
|
+
vmCount: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
vms: Array<VirtualMachineIdentity>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the Appliance interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfAppliance(value: object): value is Appliance {
|
|
60
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
|
+
if (!('vendor' in value) || value['vendor'] === undefined) return false;
|
|
62
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
63
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
64
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
|
|
65
|
+
if (!('vms' in value) || value['vms'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ApplianceFromJSON(json: any): Appliance {
|
|
70
|
+
return ApplianceFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ApplianceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Appliance {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'name': json['name'],
|
|
80
|
+
'vendor': json['vendor'],
|
|
81
|
+
'version': json['version'],
|
|
82
|
+
'confidence': json['confidence'],
|
|
83
|
+
'vmCount': json['vmCount'],
|
|
84
|
+
'vms': ((json['vms'] as Array<any>).map(VirtualMachineIdentityFromJSON)),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApplianceToJSON(json: any): Appliance {
|
|
89
|
+
return ApplianceToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApplianceToJSONTyped(value?: Appliance | null, ignoreDiscriminator: boolean = false): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'name': value['name'],
|
|
100
|
+
'vendor': value['vendor'],
|
|
101
|
+
'version': value['version'],
|
|
102
|
+
'confidence': value['confidence'],
|
|
103
|
+
'vmCount': value['vmCount'],
|
|
104
|
+
'vms': ((value['vms'] as Array<any>).map(VirtualMachineIdentityToJSON)),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -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
|
};
|
|
@@ -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 { UpdateInventory } from './UpdateInventory.js';
|
|
17
|
+
import {
|
|
18
|
+
UpdateInventoryFromJSON,
|
|
19
|
+
UpdateInventoryFromJSONTyped,
|
|
20
|
+
UpdateInventoryToJSON,
|
|
21
|
+
UpdateInventoryToJSONTyped,
|
|
22
|
+
} from './UpdateInventory.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CollectedInventory
|
|
28
|
+
*/
|
|
29
|
+
export interface CollectedInventory {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
inventory: UpdateInventory;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CollectedInventory interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCollectedInventory(value: object): value is CollectedInventory {
|
|
40
|
+
if (!('inventory' in value) || value['inventory'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CollectedInventoryFromJSON(json: any): CollectedInventory {
|
|
45
|
+
return CollectedInventoryFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function CollectedInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectedInventory {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'inventory': UpdateInventoryFromJSON(json['inventory']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CollectedInventoryToJSON(json: any): CollectedInventory {
|
|
59
|
+
return CollectedInventoryToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CollectedInventoryToJSONTyped(value?: CollectedInventory | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'inventory': UpdateInventoryToJSON(value['inventory']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
GroupToJSON,
|
|
21
21
|
GroupToJSONTyped,
|
|
22
22
|
} from './Group.js';
|
|
23
|
-
import type {
|
|
23
|
+
import type { Inventory } from './Inventory.js';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
InventoryFromJSON,
|
|
26
|
+
InventoryFromJSONTyped,
|
|
27
|
+
InventoryToJSON,
|
|
28
|
+
InventoryToJSONTyped,
|
|
29
|
+
} from './Inventory.js';
|
|
30
30
|
import type { VirtualMachine } from './VirtualMachine.js';
|
|
31
31
|
import {
|
|
32
32
|
VirtualMachineFromJSON,
|
|
@@ -48,7 +48,7 @@ export interface GroupResponse {
|
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
*/
|
|
51
|
-
inventory?:
|
|
51
|
+
inventory?: Inventory;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
@@ -90,7 +90,7 @@ export function GroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
90
90
|
return {
|
|
91
91
|
|
|
92
92
|
'group': GroupFromJSON(json['group']),
|
|
93
|
-
'inventory': json['inventory'] == null ? undefined :
|
|
93
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
94
94
|
'vms': ((json['vms'] as Array<any>).map(VirtualMachineFromJSON)),
|
|
95
95
|
'total': json['total'],
|
|
96
96
|
'page': json['page'],
|
|
@@ -110,7 +110,7 @@ export function GroupResponseToJSONTyped(value?: GroupResponse | null, ignoreDis
|
|
|
110
110
|
return {
|
|
111
111
|
|
|
112
112
|
'group': GroupToJSON(value['group']),
|
|
113
|
-
'inventory':
|
|
113
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
114
114
|
'vms': ((value['vms'] as Array<any>).map(VirtualMachineToJSON)),
|
|
115
115
|
'total': value['total'],
|
|
116
116
|
'page': value['page'],
|
package/src/models/Host.ts
CHANGED
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
17
|
+
import {
|
|
18
|
+
HostStorageAdapterFromJSON,
|
|
19
|
+
HostStorageAdapterFromJSONTyped,
|
|
20
|
+
HostStorageAdapterToJSON,
|
|
21
|
+
HostStorageAdapterToJSONTyped,
|
|
22
|
+
} from './HostStorageAdapter.js';
|
|
23
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
24
|
+
import {
|
|
25
|
+
HostStorageLunFromJSON,
|
|
26
|
+
HostStorageLunFromJSONTyped,
|
|
27
|
+
HostStorageLunToJSON,
|
|
28
|
+
HostStorageLunToJSONTyped,
|
|
29
|
+
} from './HostStorageLun.js';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
32
|
*
|
|
18
33
|
* @export
|
|
@@ -31,6 +46,22 @@ export interface Host {
|
|
|
31
46
|
*
|
|
32
47
|
*/
|
|
33
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;
|
|
34
65
|
/**
|
|
35
66
|
* Number of CPU cores
|
|
36
67
|
*/
|
|
@@ -51,6 +82,14 @@ export interface Host {
|
|
|
51
82
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
52
83
|
*/
|
|
53
84
|
storageVmotionSupported?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
87
|
+
*/
|
|
88
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
89
|
+
/**
|
|
90
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
91
|
+
*/
|
|
92
|
+
storageLuns?: Array<HostStorageLun>;
|
|
54
93
|
}
|
|
55
94
|
|
|
56
95
|
/**
|
|
@@ -75,11 +114,17 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
|
|
|
75
114
|
'id': json['id'] == null ? undefined : json['id'],
|
|
76
115
|
'vendor': json['vendor'],
|
|
77
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'],
|
|
78
121
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
79
122
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
80
123
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
81
124
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
82
125
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
126
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : ((json['storageAdapters'] as Array<any>).map(HostStorageAdapterFromJSON)),
|
|
127
|
+
'storageLuns': json['storageLuns'] == null ? undefined : ((json['storageLuns'] as Array<any>).map(HostStorageLunFromJSON)),
|
|
83
128
|
};
|
|
84
129
|
}
|
|
85
130
|
|
|
@@ -97,11 +142,17 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
|
|
|
97
142
|
'id': value['id'],
|
|
98
143
|
'vendor': value['vendor'],
|
|
99
144
|
'model': value['model'],
|
|
145
|
+
'datacenter': value['datacenter'],
|
|
146
|
+
'cluster': value['cluster'],
|
|
147
|
+
'cpuModel': value['cpuModel'],
|
|
148
|
+
'serialNumber': value['serialNumber'],
|
|
100
149
|
'cpuCores': value['cpuCores'],
|
|
101
150
|
'cpuSockets': value['cpuSockets'],
|
|
102
151
|
'memoryMB': value['memoryMB'],
|
|
103
152
|
'vmotionSupported': value['vmotionSupported'],
|
|
104
153
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
154
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : ((value['storageAdapters'] as Array<any>).map(HostStorageAdapterToJSON)),
|
|
155
|
+
'storageLuns': value['storageLuns'] == null ? undefined : ((value['storageLuns'] as Array<any>).map(HostStorageLunToJSON)),
|
|
105
156
|
};
|
|
106
157
|
}
|
|
107
158
|
|
|
@@ -0,0 +1,70 @@
|
|
|
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 HostPhysicalNIC
|
|
20
|
+
*/
|
|
21
|
+
export interface HostPhysicalNIC {
|
|
22
|
+
/**
|
|
23
|
+
* Source physical NIC identity, scoped to the VM's host and collection.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Reported link speed in Mbps; omitted when unknown. This is not measured throughput.
|
|
28
|
+
*/
|
|
29
|
+
linkSpeedMbps?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the HostPhysicalNIC interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfHostPhysicalNIC(value: object): value is HostPhysicalNIC {
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function HostPhysicalNICFromJSON(json: any): HostPhysicalNIC {
|
|
41
|
+
return HostPhysicalNICFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function HostPhysicalNICFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostPhysicalNIC {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'linkSpeedMbps': json['linkSpeedMbps'] == null ? undefined : json['linkSpeedMbps'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function HostPhysicalNICToJSON(json: any): HostPhysicalNIC {
|
|
56
|
+
return HostPhysicalNICToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function HostPhysicalNICToJSONTyped(value?: HostPhysicalNIC | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'linkSpeedMbps': value['linkSpeedMbps'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|