@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.
Files changed (82) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +8 -3
  3. package/dist/apis/AppliancesApi.d.ts +64 -0
  4. package/dist/apis/AppliancesApi.js +72 -0
  5. package/dist/apis/CollectorApi.d.ts +0 -38
  6. package/dist/apis/CollectorApi.js +0 -59
  7. package/dist/apis/GroupsApi.d.ts +39 -0
  8. package/dist/apis/GroupsApi.js +40 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/AppliancesApi.d.ts +64 -0
  12. package/dist/esm/apis/AppliancesApi.js +68 -0
  13. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  14. package/dist/esm/apis/CollectorApi.js +0 -59
  15. package/dist/esm/apis/GroupsApi.d.ts +39 -0
  16. package/dist/esm/apis/GroupsApi.js +40 -0
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/Appliance.d.ts +51 -0
  20. package/dist/esm/models/Appliance.js +64 -0
  21. package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
  22. package/dist/esm/models/ApplianceListResponse.js +44 -0
  23. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  24. package/dist/esm/models/ApplicationOverview.js +12 -0
  25. package/dist/esm/models/Host.d.ts +16 -0
  26. package/dist/esm/models/Host.js +8 -0
  27. package/dist/esm/models/OsInfo.d.ts +12 -0
  28. package/dist/esm/models/OsInfo.js +9 -0
  29. package/dist/esm/models/Product.d.ts +66 -0
  30. package/dist/esm/models/Product.js +61 -0
  31. package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
  32. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  33. package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
  34. package/dist/esm/models/VirtualMachineIdentity.js +47 -0
  35. package/dist/esm/models/index.d.ts +4 -0
  36. package/dist/esm/models/index.js +4 -0
  37. package/dist/esm/runtime.js +4 -3
  38. package/dist/models/Appliance.d.ts +51 -0
  39. package/dist/models/Appliance.js +71 -0
  40. package/dist/models/ApplianceListResponse.d.ts +31 -0
  41. package/dist/models/ApplianceListResponse.js +51 -0
  42. package/dist/models/ApplicationOverview.d.ts +16 -0
  43. package/dist/models/ApplicationOverview.js +12 -0
  44. package/dist/models/Host.d.ts +16 -0
  45. package/dist/models/Host.js +8 -0
  46. package/dist/models/OsInfo.d.ts +12 -0
  47. package/dist/models/OsInfo.js +10 -1
  48. package/dist/models/Product.d.ts +66 -0
  49. package/dist/models/Product.js +68 -0
  50. package/dist/models/VirtualMachineDetail.d.ts +5 -0
  51. package/dist/models/VirtualMachineDetail.js +3 -0
  52. package/dist/models/VirtualMachineIdentity.d.ts +34 -0
  53. package/dist/models/VirtualMachineIdentity.js +54 -0
  54. package/dist/models/index.d.ts +4 -0
  55. package/dist/models/index.js +4 -0
  56. package/dist/runtime.js +4 -3
  57. package/docs/Appliance.md +44 -0
  58. package/docs/ApplianceListResponse.md +34 -0
  59. package/docs/AppliancesApi.md +76 -0
  60. package/docs/ApplicationOverview.md +8 -0
  61. package/docs/CollectorApi.md +0 -70
  62. package/docs/GroupsApi.md +68 -0
  63. package/docs/Host.md +8 -0
  64. package/docs/OsInfo.md +2 -0
  65. package/docs/Product.md +52 -0
  66. package/docs/VirtualMachineDetail.md +2 -0
  67. package/docs/VirtualMachineIdentity.md +36 -0
  68. package/package.json +1 -1
  69. package/src/apis/AppliancesApi.ts +111 -0
  70. package/src/apis/CollectorApi.ts +0 -97
  71. package/src/apis/GroupsApi.ts +80 -0
  72. package/src/apis/index.ts +1 -0
  73. package/src/models/Appliance.ts +107 -0
  74. package/src/models/ApplianceListResponse.ts +72 -0
  75. package/src/models/ApplicationOverview.ts +26 -0
  76. package/src/models/Host.ts +24 -0
  77. package/src/models/OsInfo.ts +15 -0
  78. package/src/models/Product.ts +118 -0
  79. package/src/models/VirtualMachineDetail.ts +13 -0
  80. package/src/models/VirtualMachineIdentity.ts +71 -0
  81. package/src/models/index.ts +4 -0
  82. package/src/runtime.ts +3 -3
@@ -11,12 +11,6 @@
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
13
  import { type CollectorStatus } from '../models/CollectorStatus.js';
14
- export interface StartRvtoolsCollectorRequest {
15
- /**
16
- *
17
- */
18
- files: Array<Blob>;
19
- }
20
14
  /**
21
15
  * CollectorApi - interface
22
16
  *
@@ -60,26 +54,6 @@ export interface CollectorApiInterface {
60
54
  * Start a collection
61
55
  */
62
56
  startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
63
- /**
64
- * Creates request options for startRvtoolsCollector without sending the request
65
- * @param {Array<Blob>} files
66
- * @throws {RequiredError}
67
- * @memberof CollectorApiInterface
68
- */
69
- startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
70
- /**
71
- *
72
- * @summary Start a collection from RVTools files
73
- * @param {Array<Blob>} files
74
- * @param {*} [options] Override http request option.
75
- * @throws {RequiredError}
76
- * @memberof CollectorApiInterface
77
- */
78
- startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
79
- /**
80
- * Start a collection from RVTools files
81
- */
82
- startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
83
57
  /**
84
58
  * Creates request options for stopCollector without sending the request
85
59
  * @throws {RequiredError}
@@ -127,18 +101,6 @@ export declare class CollectorApi extends runtime.BaseAPI implements CollectorAp
127
101
  * Start a collection
128
102
  */
129
103
  startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
130
- /**
131
- * Creates request options for startRvtoolsCollector without sending the request
132
- */
133
- startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
134
- /**
135
- * Start a collection from RVTools files
136
- */
137
- startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
138
- /**
139
- * Start a collection from RVTools files
140
- */
141
- startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
142
104
  /**
143
105
  * Creates request options for stopCollector without sending the request
144
106
  */
@@ -96,65 +96,6 @@ export class CollectorApi extends runtime.BaseAPI {
96
96
  return yield response.value();
97
97
  });
98
98
  }
99
- /**
100
- * Creates request options for startRvtoolsCollector without sending the request
101
- */
102
- startRvtoolsCollectorRequestOpts(requestParameters) {
103
- return __awaiter(this, void 0, void 0, function* () {
104
- if (requestParameters['files'] == null) {
105
- throw new runtime.RequiredError('files', 'Required parameter "files" was null or undefined when calling startRvtoolsCollector().');
106
- }
107
- const queryParameters = {};
108
- const headerParameters = {};
109
- const consumes = [
110
- { contentType: 'multipart/form-data' },
111
- ];
112
- // @ts-ignore: canConsumeForm may be unused
113
- const canConsumeForm = runtime.canConsumeForm(consumes);
114
- let formParams;
115
- let useForm = false;
116
- // use FormData to transmit files using content-type "multipart/form-data"
117
- useForm = canConsumeForm;
118
- if (useForm) {
119
- formParams = new FormData();
120
- }
121
- else {
122
- formParams = new URLSearchParams();
123
- }
124
- if (requestParameters['files'] != null) {
125
- requestParameters['files'].forEach((element) => {
126
- formParams.append('files', element);
127
- });
128
- }
129
- let urlPath = `/collector/rvtools`;
130
- return {
131
- path: urlPath,
132
- method: 'POST',
133
- headers: headerParameters,
134
- query: queryParameters,
135
- body: formParams,
136
- };
137
- });
138
- }
139
- /**
140
- * Start a collection from RVTools files
141
- */
142
- startRvtoolsCollectorRaw(requestParameters, initOverrides) {
143
- return __awaiter(this, void 0, void 0, function* () {
144
- const requestOptions = yield this.startRvtoolsCollectorRequestOpts(requestParameters);
145
- const response = yield this.request(requestOptions, initOverrides);
146
- return new runtime.JSONApiResponse(response, (jsonValue) => CollectorStatusFromJSON(jsonValue));
147
- });
148
- }
149
- /**
150
- * Start a collection from RVTools files
151
- */
152
- startRvtoolsCollector(requestParameters, initOverrides) {
153
- return __awaiter(this, void 0, void 0, function* () {
154
- const response = yield this.startRvtoolsCollectorRaw(requestParameters, initOverrides);
155
- return yield response.value();
156
- });
157
- }
158
99
  /**
159
100
  * Creates request options for stopCollector without sending the request
160
101
  */
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
+ import { type ApplianceListResponse } from '../models/ApplianceListResponse.js';
13
14
  import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
14
15
  import { type CreateGroupRequest } from '../models/CreateGroupRequest.js';
15
16
  import { type Group } from '../models/Group.js';
@@ -68,6 +69,12 @@ export interface GetLatestGroupRequest {
68
69
  */
69
70
  pageSize?: number;
70
71
  }
72
+ export interface ListGroupAppliancesRequest {
73
+ /**
74
+ * Group ID
75
+ */
76
+ groupId: string;
77
+ }
71
78
  export interface ListGroupApplicationsRequest {
72
79
  /**
73
80
  * Group ID
@@ -217,6 +224,26 @@ export interface GroupsApiInterface {
217
224
  * Get group by ID from the latest collection
218
225
  */
219
226
  getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
227
+ /**
228
+ * Creates request options for listGroupAppliances without sending the request
229
+ * @param {string} groupId Group ID
230
+ * @throws {RequiredError}
231
+ * @memberof GroupsApiInterface
232
+ */
233
+ listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
234
+ /**
235
+ *
236
+ * @summary List detected appliances for a group
237
+ * @param {string} groupId Group ID
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ * @memberof GroupsApiInterface
241
+ */
242
+ listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
243
+ /**
244
+ * List detected appliances for a group
245
+ */
246
+ listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
220
247
  /**
221
248
  * Creates request options for listGroupApplications without sending the request
222
249
  * @param {string} groupId Group ID
@@ -362,6 +389,18 @@ export declare class GroupsApi extends runtime.BaseAPI implements GroupsApiInter
362
389
  * Get group by ID from the latest collection
363
390
  */
364
391
  getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
392
+ /**
393
+ * Creates request options for listGroupAppliances without sending the request
394
+ */
395
+ listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
396
+ /**
397
+ * List detected appliances for a group
398
+ */
399
+ listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
400
+ /**
401
+ * List detected appliances for a group
402
+ */
403
+ listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
365
404
  /**
366
405
  * Creates request options for listGroupApplications without sending the request
367
406
  */
@@ -21,6 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
+ import { ApplianceListResponseFromJSON, } from '../models/ApplianceListResponse.js';
24
25
  import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
25
26
  import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
26
27
  import { GroupFromJSON, } from '../models/Group.js';
@@ -209,6 +210,45 @@ export class GroupsApi extends runtime.BaseAPI {
209
210
  return yield response.value();
210
211
  });
211
212
  }
213
+ /**
214
+ * Creates request options for listGroupAppliances without sending the request
215
+ */
216
+ listGroupAppliancesRequestOpts(requestParameters) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ if (requestParameters['groupId'] == null) {
219
+ throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listGroupAppliances().');
220
+ }
221
+ const queryParameters = {};
222
+ const headerParameters = {};
223
+ let urlPath = `/groups/{groupId}/appliances`;
224
+ urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
225
+ return {
226
+ path: urlPath,
227
+ method: 'GET',
228
+ headers: headerParameters,
229
+ query: queryParameters,
230
+ };
231
+ });
232
+ }
233
+ /**
234
+ * List detected appliances for a group
235
+ */
236
+ listGroupAppliancesRaw(requestParameters, initOverrides) {
237
+ return __awaiter(this, void 0, void 0, function* () {
238
+ const requestOptions = yield this.listGroupAppliancesRequestOpts(requestParameters);
239
+ const response = yield this.request(requestOptions, initOverrides);
240
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceListResponseFromJSON(jsonValue));
241
+ });
242
+ }
243
+ /**
244
+ * List detected appliances for a group
245
+ */
246
+ listGroupAppliances(requestParameters, initOverrides) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ const response = yield this.listGroupAppliancesRaw(requestParameters, initOverrides);
249
+ return yield response.value();
250
+ });
251
+ }
212
252
  /**
213
253
  * Creates request options for listGroupApplications without sending the request
214
254
  */
@@ -1,4 +1,5 @@
1
1
  export * from './AgentApi.js';
2
+ export * from './AppliancesApi.js';
2
3
  export * from './ApplicationsApi.js';
3
4
  export * from './CollectionsApi.js';
4
5
  export * from './CollectorApi.js';
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AgentApi.js';
4
+ export * from './AppliancesApi.js';
4
5
  export * from './ApplicationsApi.js';
5
6
  export * from './CollectionsApi.js';
6
7
  export * from './CollectorApi.js';
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
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 { VirtualMachineIdentity } from './VirtualMachineIdentity.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Appliance
17
+ */
18
+ export interface Appliance {
19
+ /**
20
+ * Appliance product name
21
+ */
22
+ name: string;
23
+ /**
24
+ * Appliance vendor; defaults to Unknown when not reported
25
+ */
26
+ vendor: string;
27
+ /**
28
+ * Appliance product version; defaults to empty when not reported
29
+ */
30
+ version: string;
31
+ /**
32
+ *
33
+ */
34
+ confidence: number;
35
+ /**
36
+ * Number of VMs running this appliance
37
+ */
38
+ vmCount: number;
39
+ /**
40
+ *
41
+ */
42
+ vms: Array<VirtualMachineIdentity>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the Appliance interface.
46
+ */
47
+ export declare function instanceOfAppliance(value: object): value is Appliance;
48
+ export declare function ApplianceFromJSON(json: any): Appliance;
49
+ export declare function ApplianceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Appliance;
50
+ export declare function ApplianceToJSON(json: any): Appliance;
51
+ export declare function ApplianceToJSONTyped(value?: Appliance | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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
+ import { VirtualMachineIdentityFromJSON, VirtualMachineIdentityToJSON, } from './VirtualMachineIdentity.js';
15
+ /**
16
+ * Check if a given object implements the Appliance interface.
17
+ */
18
+ export function instanceOfAppliance(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('vendor' in value) || value['vendor'] === undefined)
22
+ return false;
23
+ if (!('version' in value) || value['version'] === undefined)
24
+ return false;
25
+ if (!('confidence' in value) || value['confidence'] === undefined)
26
+ return false;
27
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
28
+ return false;
29
+ if (!('vms' in value) || value['vms'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function ApplianceFromJSON(json) {
34
+ return ApplianceFromJSONTyped(json, false);
35
+ }
36
+ export function ApplianceFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'name': json['name'],
42
+ 'vendor': json['vendor'],
43
+ 'version': json['version'],
44
+ 'confidence': json['confidence'],
45
+ 'vmCount': json['vmCount'],
46
+ 'vms': (json['vms'].map(VirtualMachineIdentityFromJSON)),
47
+ };
48
+ }
49
+ export function ApplianceToJSON(json) {
50
+ return ApplianceToJSONTyped(json, false);
51
+ }
52
+ export function ApplianceToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'name': value['name'],
58
+ 'vendor': value['vendor'],
59
+ 'version': value['version'],
60
+ 'confidence': value['confidence'],
61
+ 'vmCount': value['vmCount'],
62
+ 'vms': (value['vms'].map(VirtualMachineIdentityToJSON)),
63
+ };
64
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
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 { Appliance } from './Appliance.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplianceListResponse
17
+ */
18
+ export interface ApplianceListResponse {
19
+ /**
20
+ *
21
+ */
22
+ appliances: Array<Appliance>;
23
+ }
24
+ /**
25
+ * Check if a given object implements the ApplianceListResponse interface.
26
+ */
27
+ export declare function instanceOfApplianceListResponse(value: object): value is ApplianceListResponse;
28
+ export declare function ApplianceListResponseFromJSON(json: any): ApplianceListResponse;
29
+ export declare function ApplianceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceListResponse;
30
+ export declare function ApplianceListResponseToJSON(json: any): ApplianceListResponse;
31
+ export declare function ApplianceListResponseToJSONTyped(value?: ApplianceListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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
+ import { ApplianceFromJSON, ApplianceToJSON, } from './Appliance.js';
15
+ /**
16
+ * Check if a given object implements the ApplianceListResponse interface.
17
+ */
18
+ export function instanceOfApplianceListResponse(value) {
19
+ if (!('appliances' in value) || value['appliances'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ApplianceListResponseFromJSON(json) {
24
+ return ApplianceListResponseFromJSONTyped(json, false);
25
+ }
26
+ export function ApplianceListResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'appliances': (json['appliances'].map(ApplianceFromJSON)),
32
+ };
33
+ }
34
+ export function ApplianceListResponseToJSON(json) {
35
+ return ApplianceListResponseToJSONTyped(json, false);
36
+ }
37
+ export function ApplianceListResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'appliances': (value['appliances'].map(ApplianceToJSON)),
43
+ };
44
+ }
@@ -24,6 +24,22 @@ export interface ApplicationOverview {
24
24
  * Application description
25
25
  */
26
26
  description: string;
27
+ /**
28
+ * Application vendor
29
+ */
30
+ vendor: string;
31
+ /**
32
+ * Application category
33
+ */
34
+ category: string;
35
+ /**
36
+ * Detection confidence percentage; defaults to 0 when omitted
37
+ */
38
+ confidence?: number;
39
+ /**
40
+ * Whether the application has a known container deployment option
41
+ */
42
+ containerizationCandidate?: boolean;
27
43
  /**
28
44
  * Number of VMs running this application
29
45
  */
@@ -20,6 +20,10 @@ export function instanceOfApplicationOverview(value) {
20
20
  return false;
21
21
  if (!('description' in value) || value['description'] === undefined)
22
22
  return false;
23
+ if (!('vendor' in value) || value['vendor'] === undefined)
24
+ return false;
25
+ if (!('category' in value) || value['category'] === undefined)
26
+ return false;
23
27
  if (!('vmCount' in value) || value['vmCount'] === undefined)
24
28
  return false;
25
29
  if (!('vms' in value) || value['vms'] === undefined)
@@ -36,6 +40,10 @@ export function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
36
40
  return {
37
41
  'name': json['name'],
38
42
  'description': json['description'],
43
+ 'vendor': json['vendor'],
44
+ 'category': json['category'],
45
+ 'confidence': json['confidence'] == null ? undefined : json['confidence'],
46
+ 'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
39
47
  'vmCount': json['vmCount'],
40
48
  'vms': (json['vms'].map(ApplicationVMFromJSON)),
41
49
  };
@@ -50,6 +58,10 @@ export function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = fals
50
58
  return {
51
59
  'name': value['name'],
52
60
  'description': value['description'],
61
+ 'vendor': value['vendor'],
62
+ 'category': value['category'],
63
+ 'confidence': value['confidence'],
64
+ 'containerizationCandidate': value['containerizationCandidate'],
53
65
  'vmCount': value['vmCount'],
54
66
  'vms': (value['vms'].map(ApplicationVMToJSON)),
55
67
  };
@@ -29,6 +29,22 @@ export interface Host {
29
29
  *
30
30
  */
31
31
  model: string;
32
+ /**
33
+ * Source datacenter name, when available.
34
+ */
35
+ datacenter?: string;
36
+ /**
37
+ * Source cluster name; omitted for standalone hosts.
38
+ */
39
+ cluster?: string;
40
+ /**
41
+ * Source-reported CPU model, when available.
42
+ */
43
+ cpuModel?: string;
44
+ /**
45
+ * Source-reported host hardware serial or service tag, when available.
46
+ */
47
+ serialNumber?: string;
32
48
  /**
33
49
  * Number of CPU cores
34
50
  */
@@ -34,6 +34,10 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'id': json['id'] == null ? undefined : json['id'],
35
35
  'vendor': json['vendor'],
36
36
  'model': json['model'],
37
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
38
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
39
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
40
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
37
41
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
38
42
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
39
43
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
@@ -54,6 +58,10 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
54
58
  'id': value['id'],
55
59
  'vendor': value['vendor'],
56
60
  'model': value['model'],
61
+ 'datacenter': value['datacenter'],
62
+ 'cluster': value['cluster'],
63
+ 'cpuModel': value['cpuModel'],
64
+ 'serialNumber': value['serialNumber'],
57
65
  'cpuCores': value['cpuCores'],
58
66
  'cpuSockets': value['cpuSockets'],
59
67
  'memoryMB': value['memoryMB'],
@@ -27,6 +27,10 @@ export interface OsInfo {
27
27
  * OS support tier per Red Hat KCS article 4234591
28
28
  */
29
29
  supportTier?: OsInfoSupportTierEnum;
30
+ /**
31
+ * 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.
32
+ */
33
+ mtvStatus?: OsInfoMtvStatusEnum;
30
34
  /**
31
35
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
32
36
  */
@@ -42,6 +46,14 @@ export declare const OsInfoSupportTierEnum: {
42
46
  readonly SpecialHandling: "special_handling";
43
47
  };
44
48
  export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const OsInfoMtvStatusEnum: {
53
+ readonly Green: "green";
54
+ readonly Blue: "blue";
55
+ };
56
+ export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
45
57
  /**
46
58
  * Check if a given object implements the OsInfo interface.
47
59
  */
@@ -20,6 +20,13 @@ export const OsInfoSupportTierEnum = {
20
20
  CommunitySupported: 'community_supported',
21
21
  SpecialHandling: 'special_handling',
22
22
  };
23
+ /**
24
+ * @export
25
+ */
26
+ export const OsInfoMtvStatusEnum = {
27
+ Green: 'green',
28
+ Blue: 'blue',
29
+ };
23
30
  /**
24
31
  * Check if a given object implements the OsInfo interface.
25
32
  */
@@ -41,6 +48,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
41
48
  'count': json['count'],
42
49
  'supported': json['supported'],
43
50
  'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
51
+ 'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
44
52
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
45
53
  };
46
54
  }
@@ -55,6 +63,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
55
63
  'count': value['count'],
56
64
  'supported': value['supported'],
57
65
  'supportTier': value['supportTier'],
66
+ 'mtvStatus': value['mtvStatus'],
58
67
  'upgradeRecommendation': value['upgradeRecommendation'],
59
68
  };
60
69
  }