@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,66 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface Product
16
+ */
17
+ export interface Product {
18
+ /**
19
+ * Product key
20
+ */
21
+ key: number;
22
+ /**
23
+ * Product class identifier
24
+ */
25
+ classId?: string;
26
+ /**
27
+ * Product instance identifier
28
+ */
29
+ instanceId?: string;
30
+ /**
31
+ * Product name
32
+ */
33
+ name?: string;
34
+ /**
35
+ * Product vendor
36
+ */
37
+ vendor?: string;
38
+ /**
39
+ * Product version
40
+ */
41
+ version?: string;
42
+ /**
43
+ * Full product version
44
+ */
45
+ fullVersion?: string;
46
+ /**
47
+ * Product vendor URL
48
+ */
49
+ vendorUrl?: string;
50
+ /**
51
+ * Product URL
52
+ */
53
+ productUrl?: string;
54
+ /**
55
+ * Application URL
56
+ */
57
+ appUrl?: string;
58
+ }
59
+ /**
60
+ * Check if a given object implements the Product interface.
61
+ */
62
+ export declare function instanceOfProduct(value: object): value is Product;
63
+ export declare function ProductFromJSON(json: any): Product;
64
+ export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
65
+ export declare function ProductToJSON(json: any): Product;
66
+ export declare function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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
+ * Check if a given object implements the Product interface.
16
+ */
17
+ export function instanceOfProduct(value) {
18
+ if (!('key' in value) || value['key'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ProductFromJSON(json) {
23
+ return ProductFromJSONTyped(json, false);
24
+ }
25
+ export function ProductFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'key': json['key'],
31
+ 'classId': json['classId'] == null ? undefined : json['classId'],
32
+ 'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
33
+ 'name': json['name'] == null ? undefined : json['name'],
34
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
35
+ 'version': json['version'] == null ? undefined : json['version'],
36
+ 'fullVersion': json['fullVersion'] == null ? undefined : json['fullVersion'],
37
+ 'vendorUrl': json['vendorUrl'] == null ? undefined : json['vendorUrl'],
38
+ 'productUrl': json['productUrl'] == null ? undefined : json['productUrl'],
39
+ 'appUrl': json['appUrl'] == null ? undefined : json['appUrl'],
40
+ };
41
+ }
42
+ export function ProductToJSON(json) {
43
+ return ProductToJSONTyped(json, false);
44
+ }
45
+ export function ProductToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'key': value['key'],
51
+ 'classId': value['classId'],
52
+ 'instanceId': value['instanceId'],
53
+ 'name': value['name'],
54
+ 'vendor': value['vendor'],
55
+ 'version': value['version'],
56
+ 'fullVersion': value['fullVersion'],
57
+ 'vendorUrl': value['vendorUrl'],
58
+ 'productUrl': value['productUrl'],
59
+ 'appUrl': value['appUrl'],
60
+ };
61
+ }
@@ -15,6 +15,7 @@ import type { GuestNetwork } from './GuestNetwork.js';
15
15
  import type { VirtualMachineIssue } from './VirtualMachineIssue.js';
16
16
  import type { VirtualMachineDevice } from './VirtualMachineDevice.js';
17
17
  import type { HostPhysicalNIC } from './HostPhysicalNIC.js';
18
+ import type { Product } from './Product.js';
18
19
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
19
20
  import type { Process } from './Process.js';
20
21
  import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
@@ -191,6 +192,10 @@ export interface VirtualMachineDetail {
191
192
  * List of processes detected on this VM
192
193
  */
193
194
  processes?: Array<Process>;
195
+ /**
196
+ * Products configured in the VM's vApp settings
197
+ */
198
+ products?: Array<Product>;
194
199
  }
195
200
  /**
196
201
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -17,6 +17,7 @@ import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
17
17
  import { VirtualMachineIssueFromJSON, VirtualMachineIssueToJSON, } from './VirtualMachineIssue.js';
18
18
  import { VirtualMachineDeviceFromJSON, VirtualMachineDeviceToJSON, } from './VirtualMachineDevice.js';
19
19
  import { HostPhysicalNICFromJSON, HostPhysicalNICToJSON, } from './HostPhysicalNIC.js';
20
+ import { ProductFromJSON, ProductToJSON, } from './Product.js';
20
21
  import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
21
22
  import { ProcessFromJSON, ProcessToJSON, } from './Process.js';
22
23
  import { VirtualMachineDiskFromJSON, VirtualMachineDiskToJSON, } from './VirtualMachineDisk.js';
@@ -98,6 +99,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
98
99
  'inspection': json['inspection'] == null ? undefined : VirtualMachineInspectionResultsFromJSON(json['inspection']),
99
100
  'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
100
101
  'processes': json['processes'] == null ? undefined : (json['processes'].map(ProcessFromJSON)),
102
+ 'products': json['products'] == null ? undefined : (json['products'].map(ProductFromJSON)),
101
103
  };
102
104
  }
103
105
  export function VirtualMachineDetailToJSON(json) {
@@ -148,5 +150,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
148
150
  'inspection': VirtualMachineInspectionResultsToJSON(value['inspection']),
149
151
  'utilization': VmUtilizationDetailsToJSON(value['utilization']),
150
152
  'processes': value['processes'] == null ? undefined : (value['processes'].map(ProcessToJSON)),
153
+ 'products': value['products'] == null ? undefined : (value['products'].map(ProductToJSON)),
151
154
  };
152
155
  }
@@ -0,0 +1,34 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface VirtualMachineIdentity
16
+ */
17
+ export interface VirtualMachineIdentity {
18
+ /**
19
+ * VM ID
20
+ */
21
+ id: string;
22
+ /**
23
+ * VM name
24
+ */
25
+ name: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the VirtualMachineIdentity interface.
29
+ */
30
+ export declare function instanceOfVirtualMachineIdentity(value: object): value is VirtualMachineIdentity;
31
+ export declare function VirtualMachineIdentityFromJSON(json: any): VirtualMachineIdentity;
32
+ export declare function VirtualMachineIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineIdentity;
33
+ export declare function VirtualMachineIdentityToJSON(json: any): VirtualMachineIdentity;
34
+ export declare function VirtualMachineIdentityToJSONTyped(value?: VirtualMachineIdentity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the VirtualMachineIdentity interface.
16
+ */
17
+ export function instanceOfVirtualMachineIdentity(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function VirtualMachineIdentityFromJSON(json) {
25
+ return VirtualMachineIdentityFromJSONTyped(json, false);
26
+ }
27
+ export function VirtualMachineIdentityFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function VirtualMachineIdentityToJSON(json) {
37
+ return VirtualMachineIdentityToJSONTyped(json, false);
38
+ }
39
+ export function VirtualMachineIdentityToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -1,6 +1,8 @@
1
1
  export * from './AgentModeRequest.js';
2
2
  export * from './AgentStatus.js';
3
3
  export * from './AgentStatusConsoleConnection.js';
4
+ export * from './Appliance.js';
5
+ export * from './ApplianceListResponse.js';
4
6
  export * from './ApplicationListResponse.js';
5
7
  export * from './ApplicationOverview.js';
6
8
  export * from './ApplicationVM.js';
@@ -54,6 +56,7 @@ export * from './OsInfo.js';
54
56
  export * from './PairCapability.js';
55
57
  export * from './PairCapabilityRequest.js';
56
58
  export * from './Process.js';
59
+ export * from './Product.js';
57
60
  export * from './RDMBacking.js';
58
61
  export * from './RightsizingClusterResponse.js';
59
62
  export * from './RightsizingClusterUtilization.js';
@@ -77,6 +80,7 @@ export * from './VirtualMachineDatastore.js';
77
80
  export * from './VirtualMachineDetail.js';
78
81
  export * from './VirtualMachineDevice.js';
79
82
  export * from './VirtualMachineDisk.js';
83
+ export * from './VirtualMachineIdentity.js';
80
84
  export * from './VirtualMachineInspectionConcern.js';
81
85
  export * from './VirtualMachineInspectionResults.js';
82
86
  export * from './VirtualMachineIssue.js';
@@ -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';
@@ -419,7 +419,7 @@ export function parseContentDispositionFilename(headers) {
419
419
  function decodeExtValue(value) {
420
420
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
421
421
  try {
422
- return match ? decodeURIComponent(match[1]) : undefined;
422
+ return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
423
423
  }
424
424
  catch (_a) {
425
425
  return undefined;
@@ -431,13 +431,14 @@ function decodeExtValue(value) {
431
431
  * backslash escapes resolved, and the first occurrence of a name wins.
432
432
  */
433
433
  function parseHeaderParameters(value) {
434
+ var _a, _b;
434
435
  const params = new Map();
435
436
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
436
437
  let match;
437
438
  while ((match = parameter.exec(value)) !== null) {
438
- const name = match[1].toLowerCase();
439
+ const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
439
440
  if (!params.has(name)) {
440
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
441
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
441
442
  }
442
443
  }
443
444
  return params;
@@ -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,71 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
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.instanceOfAppliance = instanceOfAppliance;
17
+ exports.ApplianceFromJSON = ApplianceFromJSON;
18
+ exports.ApplianceFromJSONTyped = ApplianceFromJSONTyped;
19
+ exports.ApplianceToJSON = ApplianceToJSON;
20
+ exports.ApplianceToJSONTyped = ApplianceToJSONTyped;
21
+ const VirtualMachineIdentity_js_1 = require("./VirtualMachineIdentity.js");
22
+ /**
23
+ * Check if a given object implements the Appliance interface.
24
+ */
25
+ function instanceOfAppliance(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('vendor' in value) || value['vendor'] === undefined)
29
+ return false;
30
+ if (!('version' in value) || value['version'] === undefined)
31
+ return false;
32
+ if (!('confidence' in value) || value['confidence'] === undefined)
33
+ return false;
34
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
35
+ return false;
36
+ if (!('vms' in value) || value['vms'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ApplianceFromJSON(json) {
41
+ return ApplianceFromJSONTyped(json, false);
42
+ }
43
+ function ApplianceFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'name': json['name'],
49
+ 'vendor': json['vendor'],
50
+ 'version': json['version'],
51
+ 'confidence': json['confidence'],
52
+ 'vmCount': json['vmCount'],
53
+ 'vms': (json['vms'].map(VirtualMachineIdentity_js_1.VirtualMachineIdentityFromJSON)),
54
+ };
55
+ }
56
+ function ApplianceToJSON(json) {
57
+ return ApplianceToJSONTyped(json, false);
58
+ }
59
+ function ApplianceToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'name': value['name'],
65
+ 'vendor': value['vendor'],
66
+ 'version': value['version'],
67
+ 'confidence': value['confidence'],
68
+ 'vmCount': value['vmCount'],
69
+ 'vms': (value['vms'].map(VirtualMachineIdentity_js_1.VirtualMachineIdentityToJSON)),
70
+ };
71
+ }
@@ -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,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
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.instanceOfApplianceListResponse = instanceOfApplianceListResponse;
17
+ exports.ApplianceListResponseFromJSON = ApplianceListResponseFromJSON;
18
+ exports.ApplianceListResponseFromJSONTyped = ApplianceListResponseFromJSONTyped;
19
+ exports.ApplianceListResponseToJSON = ApplianceListResponseToJSON;
20
+ exports.ApplianceListResponseToJSONTyped = ApplianceListResponseToJSONTyped;
21
+ const Appliance_js_1 = require("./Appliance.js");
22
+ /**
23
+ * Check if a given object implements the ApplianceListResponse interface.
24
+ */
25
+ function instanceOfApplianceListResponse(value) {
26
+ if (!('appliances' in value) || value['appliances'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ApplianceListResponseFromJSON(json) {
31
+ return ApplianceListResponseFromJSONTyped(json, false);
32
+ }
33
+ function ApplianceListResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'appliances': (json['appliances'].map(Appliance_js_1.ApplianceFromJSON)),
39
+ };
40
+ }
41
+ function ApplianceListResponseToJSON(json) {
42
+ return ApplianceListResponseToJSONTyped(json, false);
43
+ }
44
+ function ApplianceListResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'appliances': (value['appliances'].map(Appliance_js_1.ApplianceToJSON)),
50
+ };
51
+ }
@@ -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
  */
@@ -27,6 +27,10 @@ function instanceOfApplicationOverview(value) {
27
27
  return false;
28
28
  if (!('description' in value) || value['description'] === undefined)
29
29
  return false;
30
+ if (!('vendor' in value) || value['vendor'] === undefined)
31
+ return false;
32
+ if (!('category' in value) || value['category'] === undefined)
33
+ return false;
30
34
  if (!('vmCount' in value) || value['vmCount'] === undefined)
31
35
  return false;
32
36
  if (!('vms' in value) || value['vms'] === undefined)
@@ -43,6 +47,10 @@ function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
43
47
  return {
44
48
  'name': json['name'],
45
49
  'description': json['description'],
50
+ 'vendor': json['vendor'],
51
+ 'category': json['category'],
52
+ 'confidence': json['confidence'] == null ? undefined : json['confidence'],
53
+ 'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
46
54
  'vmCount': json['vmCount'],
47
55
  'vms': (json['vms'].map(ApplicationVM_js_1.ApplicationVMFromJSON)),
48
56
  };
@@ -57,6 +65,10 @@ function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = false) {
57
65
  return {
58
66
  'name': value['name'],
59
67
  'description': value['description'],
68
+ 'vendor': value['vendor'],
69
+ 'category': value['category'],
70
+ 'confidence': value['confidence'],
71
+ 'containerizationCandidate': value['containerizationCandidate'],
60
72
  'vmCount': value['vmCount'],
61
73
  'vms': (value['vms'].map(ApplicationVM_js_1.ApplicationVMToJSON)),
62
74
  };
@@ -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
  */
@@ -41,6 +41,10 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'id': json['id'] == null ? undefined : json['id'],
42
42
  'vendor': json['vendor'],
43
43
  'model': json['model'],
44
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
45
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
46
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
47
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
44
48
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
45
49
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
46
50
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
@@ -61,6 +65,10 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
61
65
  'id': value['id'],
62
66
  'vendor': value['vendor'],
63
67
  'model': value['model'],
68
+ 'datacenter': value['datacenter'],
69
+ 'cluster': value['cluster'],
70
+ 'cpuModel': value['cpuModel'],
71
+ 'serialNumber': value['serialNumber'],
64
72
  'cpuCores': value['cpuCores'],
65
73
  'cpuSockets': value['cpuSockets'],
66
74
  '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
  */