@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
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OsInfoSupportTierEnum = void 0;
16
+ exports.OsInfoMtvStatusEnum = exports.OsInfoSupportTierEnum = void 0;
17
17
  exports.instanceOfOsInfo = instanceOfOsInfo;
18
18
  exports.OsInfoFromJSON = OsInfoFromJSON;
19
19
  exports.OsInfoFromJSONTyped = OsInfoFromJSONTyped;
@@ -28,6 +28,13 @@ exports.OsInfoSupportTierEnum = {
28
28
  CommunitySupported: 'community_supported',
29
29
  SpecialHandling: 'special_handling',
30
30
  };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.OsInfoMtvStatusEnum = {
35
+ Green: 'green',
36
+ Blue: 'blue',
37
+ };
31
38
  /**
32
39
  * Check if a given object implements the OsInfo interface.
33
40
  */
@@ -49,6 +56,7 @@ function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
49
56
  'count': json['count'],
50
57
  'supported': json['supported'],
51
58
  'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
59
+ 'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
52
60
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
53
61
  };
54
62
  }
@@ -63,6 +71,7 @@ function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
63
71
  'count': value['count'],
64
72
  'supported': value['supported'],
65
73
  'supportTier': value['supportTier'],
74
+ 'mtvStatus': value['mtvStatus'],
66
75
  'upgradeRecommendation': value['upgradeRecommendation'],
67
76
  };
68
77
  }
@@ -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,68 @@
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.instanceOfProduct = instanceOfProduct;
17
+ exports.ProductFromJSON = ProductFromJSON;
18
+ exports.ProductFromJSONTyped = ProductFromJSONTyped;
19
+ exports.ProductToJSON = ProductToJSON;
20
+ exports.ProductToJSONTyped = ProductToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the Product interface.
23
+ */
24
+ function instanceOfProduct(value) {
25
+ if (!('key' in value) || value['key'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ProductFromJSON(json) {
30
+ return ProductFromJSONTyped(json, false);
31
+ }
32
+ function ProductFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'key': json['key'],
38
+ 'classId': json['classId'] == null ? undefined : json['classId'],
39
+ 'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
40
+ 'name': json['name'] == null ? undefined : json['name'],
41
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
42
+ 'version': json['version'] == null ? undefined : json['version'],
43
+ 'fullVersion': json['fullVersion'] == null ? undefined : json['fullVersion'],
44
+ 'vendorUrl': json['vendorUrl'] == null ? undefined : json['vendorUrl'],
45
+ 'productUrl': json['productUrl'] == null ? undefined : json['productUrl'],
46
+ 'appUrl': json['appUrl'] == null ? undefined : json['appUrl'],
47
+ };
48
+ }
49
+ function ProductToJSON(json) {
50
+ return ProductToJSONTyped(json, false);
51
+ }
52
+ function ProductToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'key': value['key'],
58
+ 'classId': value['classId'],
59
+ 'instanceId': value['instanceId'],
60
+ 'name': value['name'],
61
+ 'vendor': value['vendor'],
62
+ 'version': value['version'],
63
+ 'fullVersion': value['fullVersion'],
64
+ 'vendorUrl': value['vendorUrl'],
65
+ 'productUrl': value['productUrl'],
66
+ 'appUrl': value['appUrl'],
67
+ };
68
+ }
@@ -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.
@@ -24,6 +24,7 @@ const GuestNetwork_js_1 = require("./GuestNetwork.js");
24
24
  const VirtualMachineIssue_js_1 = require("./VirtualMachineIssue.js");
25
25
  const VirtualMachineDevice_js_1 = require("./VirtualMachineDevice.js");
26
26
  const HostPhysicalNIC_js_1 = require("./HostPhysicalNIC.js");
27
+ const Product_js_1 = require("./Product.js");
27
28
  const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
28
29
  const Process_js_1 = require("./Process.js");
29
30
  const VirtualMachineDisk_js_1 = require("./VirtualMachineDisk.js");
@@ -105,6 +106,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
105
106
  'inspection': json['inspection'] == null ? undefined : (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsFromJSON)(json['inspection']),
106
107
  'utilization': json['utilization'] == null ? undefined : (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(json['utilization']),
107
108
  'processes': json['processes'] == null ? undefined : (json['processes'].map(Process_js_1.ProcessFromJSON)),
109
+ 'products': json['products'] == null ? undefined : (json['products'].map(Product_js_1.ProductFromJSON)),
108
110
  };
109
111
  }
110
112
  function VirtualMachineDetailToJSON(json) {
@@ -155,5 +157,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
155
157
  'inspection': (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsToJSON)(value['inspection']),
156
158
  'utilization': (0, VmUtilizationDetails_js_1.VmUtilizationDetailsToJSON)(value['utilization']),
157
159
  'processes': value['processes'] == null ? undefined : (value['processes'].map(Process_js_1.ProcessToJSON)),
160
+ 'products': value['products'] == null ? undefined : (value['products'].map(Product_js_1.ProductToJSON)),
158
161
  };
159
162
  }
@@ -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,54 @@
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.instanceOfVirtualMachineIdentity = instanceOfVirtualMachineIdentity;
17
+ exports.VirtualMachineIdentityFromJSON = VirtualMachineIdentityFromJSON;
18
+ exports.VirtualMachineIdentityFromJSONTyped = VirtualMachineIdentityFromJSONTyped;
19
+ exports.VirtualMachineIdentityToJSON = VirtualMachineIdentityToJSON;
20
+ exports.VirtualMachineIdentityToJSONTyped = VirtualMachineIdentityToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VirtualMachineIdentity interface.
23
+ */
24
+ function instanceOfVirtualMachineIdentity(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function VirtualMachineIdentityFromJSON(json) {
32
+ return VirtualMachineIdentityFromJSONTyped(json, false);
33
+ }
34
+ function VirtualMachineIdentityFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function VirtualMachineIdentityToJSON(json) {
44
+ return VirtualMachineIdentityToJSONTyped(json, false);
45
+ }
46
+ function VirtualMachineIdentityToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -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';
@@ -19,6 +19,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AgentModeRequest.js"), exports);
20
20
  __exportStar(require("./AgentStatus.js"), exports);
21
21
  __exportStar(require("./AgentStatusConsoleConnection.js"), exports);
22
+ __exportStar(require("./Appliance.js"), exports);
23
+ __exportStar(require("./ApplianceListResponse.js"), exports);
22
24
  __exportStar(require("./ApplicationListResponse.js"), exports);
23
25
  __exportStar(require("./ApplicationOverview.js"), exports);
24
26
  __exportStar(require("./ApplicationVM.js"), exports);
@@ -72,6 +74,7 @@ __exportStar(require("./OsInfo.js"), exports);
72
74
  __exportStar(require("./PairCapability.js"), exports);
73
75
  __exportStar(require("./PairCapabilityRequest.js"), exports);
74
76
  __exportStar(require("./Process.js"), exports);
77
+ __exportStar(require("./Product.js"), exports);
75
78
  __exportStar(require("./RDMBacking.js"), exports);
76
79
  __exportStar(require("./RightsizingClusterResponse.js"), exports);
77
80
  __exportStar(require("./RightsizingClusterUtilization.js"), exports);
@@ -95,6 +98,7 @@ __exportStar(require("./VirtualMachineDatastore.js"), exports);
95
98
  __exportStar(require("./VirtualMachineDetail.js"), exports);
96
99
  __exportStar(require("./VirtualMachineDevice.js"), exports);
97
100
  __exportStar(require("./VirtualMachineDisk.js"), exports);
101
+ __exportStar(require("./VirtualMachineIdentity.js"), exports);
98
102
  __exportStar(require("./VirtualMachineInspectionConcern.js"), exports);
99
103
  __exportStar(require("./VirtualMachineInspectionResults.js"), exports);
100
104
  __exportStar(require("./VirtualMachineIssue.js"), exports);
package/dist/runtime.js CHANGED
@@ -440,7 +440,7 @@ function parseContentDispositionFilename(headers) {
440
440
  function decodeExtValue(value) {
441
441
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
442
442
  try {
443
- return match ? decodeURIComponent(match[1]) : undefined;
443
+ return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
444
444
  }
445
445
  catch (_a) {
446
446
  return undefined;
@@ -452,13 +452,14 @@ function decodeExtValue(value) {
452
452
  * backslash escapes resolved, and the first occurrence of a name wins.
453
453
  */
454
454
  function parseHeaderParameters(value) {
455
+ var _a, _b;
455
456
  const params = new Map();
456
457
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
457
458
  let match;
458
459
  while ((match = parameter.exec(value)) !== null) {
459
- const name = match[1].toLowerCase();
460
+ const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
460
461
  if (!params.has(name)) {
461
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
462
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
462
463
  }
463
464
  }
464
465
  return params;
@@ -0,0 +1,44 @@
1
+
2
+ # Appliance
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `vendor` | string
11
+ `version` | string
12
+ `confidence` | number
13
+ `vmCount` | number
14
+ `vms` | [Array&lt;VirtualMachineIdentity&gt;](VirtualMachineIdentity.md)
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { Appliance } from '@openshift-migration-advisor/agent-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "name": null,
24
+ "vendor": null,
25
+ "version": null,
26
+ "confidence": null,
27
+ "vmCount": null,
28
+ "vms": null,
29
+ } satisfies Appliance
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as Appliance
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,34 @@
1
+
2
+ # ApplianceListResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `appliances` | [Array&lt;Appliance&gt;](Appliance.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApplianceListResponse } from '@openshift-migration-advisor/agent-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "appliances": null,
19
+ } satisfies ApplianceListResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ApplianceListResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,76 @@
1
+ # AppliancesApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**listAppliances**](AppliancesApi.md#listappliances) | **GET** /collections/{id}/appliances | List detected appliances in a collection |
8
+
9
+
10
+
11
+ ## listAppliances
12
+
13
+ > ApplianceListResponse listAppliances(id)
14
+
15
+ List detected appliances in a collection
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ AppliancesApi,
23
+ } from '@openshift-migration-advisor/agent-sdk';
24
+ import type { ListAppliancesRequest } from '@openshift-migration-advisor/agent-sdk';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
28
+ const api = new AppliancesApi();
29
+
30
+ const body = {
31
+ // string | Collection ID
32
+ id: id_example,
33
+ } satisfies ListAppliancesRequest;
34
+
35
+ try {
36
+ const data = await api.listAppliances(body);
37
+ console.log(data);
38
+ } catch (error) {
39
+ console.error(error);
40
+ }
41
+ }
42
+
43
+ // Run the test
44
+ example().catch(console.error);
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+
50
+ | Name | Type | Description | Notes |
51
+ |------------- | ------------- | ------------- | -------------|
52
+ | **id** | `string` | Collection ID | [Defaults to `undefined`] |
53
+
54
+ ### Return type
55
+
56
+ [**ApplianceListResponse**](ApplianceListResponse.md)
57
+
58
+ ### Authorization
59
+
60
+ No authorization required
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: Not defined
65
+ - **Accept**: `application/json`
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ | **200** | List of detected appliances | - |
72
+ | **404** | Collection not found | - |
73
+ | **500** | Internal server error | - |
74
+
75
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
76
+
@@ -8,6 +8,10 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `name` | string
10
10
  `description` | string
11
+ `vendor` | string
12
+ `category` | string
13
+ `confidence` | number
14
+ `containerizationCandidate` | boolean
11
15
  `vmCount` | number
12
16
  `vms` | [Array&lt;ApplicationVM&gt;](ApplicationVM.md)
13
17
 
@@ -20,6 +24,10 @@ import type { ApplicationOverview } from '@openshift-migration-advisor/agent-sdk
20
24
  const example = {
21
25
  "name": null,
22
26
  "description": null,
27
+ "vendor": null,
28
+ "category": null,
29
+ "confidence": null,
30
+ "containerizationCandidate": null,
23
31
  "vmCount": null,
24
32
  "vms": null,
25
33
  } satisfies ApplicationOverview
@@ -6,7 +6,6 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
6
6
  |------------- | ------------- | -------------|
7
7
  | [**getCollectorStatus**](CollectorApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
8
8
  | [**startCollector**](CollectorApi.md#startcollector) | **POST** /collector | Start a collection |
9
- | [**startRvtoolsCollector**](CollectorApi.md#startrvtoolscollector) | **POST** /collector/rvtools | Start a collection from RVTools files |
10
9
  | [**stopCollector**](CollectorApi.md#stopcollector) | **DELETE** /collector | Stop collector |
11
10
 
12
11
 
@@ -129,75 +128,6 @@ No authorization required
129
128
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
130
129
 
131
130
 
132
- ## startRvtoolsCollector
133
-
134
- > CollectorStatus startRvtoolsCollector(files)
135
-
136
- Start a collection from RVTools files
137
-
138
- ### Example
139
-
140
- ```ts
141
- import {
142
- Configuration,
143
- CollectorApi,
144
- } from '@openshift-migration-advisor/agent-sdk';
145
- import type { StartRvtoolsCollectorRequest } from '@openshift-migration-advisor/agent-sdk';
146
-
147
- async function example() {
148
- console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
149
- const api = new CollectorApi();
150
-
151
- const body = {
152
- // Array<Blob>
153
- files: [new Blob(['example file content'], { type: 'application/octet-stream' })],
154
- } satisfies StartRvtoolsCollectorRequest;
155
-
156
- try {
157
- const data = await api.startRvtoolsCollector(body);
158
- console.log(data);
159
- } catch (error) {
160
- console.error(error);
161
- }
162
- }
163
-
164
- // Run the test
165
- example().catch(console.error);
166
- ```
167
-
168
- ### Parameters
169
-
170
-
171
- | Name | Type | Description | Notes |
172
- |------------- | ------------- | ------------- | -------------|
173
- | **files** | `Array<Blob>` | | |
174
-
175
- ### Return type
176
-
177
- [**CollectorStatus**](CollectorStatus.md)
178
-
179
- ### Authorization
180
-
181
- No authorization required
182
-
183
- ### HTTP request headers
184
-
185
- - **Content-Type**: `multipart/form-data`
186
- - **Accept**: `application/json`
187
-
188
-
189
- ### HTTP response details
190
- | Status code | Description | Response headers |
191
- |-------------|-------------|------------------|
192
- | **202** | Collection started | - |
193
- | **400** | No files provided | - |
194
- | **409** | Collection already in progress | - |
195
- | **500** | Internal server error | - |
196
- | **501** | RVTools mode is not enabled | - |
197
-
198
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
199
-
200
-
201
131
  ## stopCollector
202
132
 
203
133
  > stopCollector()