@openshift-migration-advisor/agent-sdk 0.31.0-ce8ec7f258cb → 0.31.0-ff65ab7b8c54

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.
@@ -67,6 +67,7 @@ docs/OsInfo.md
67
67
  docs/PairCapability.md
68
68
  docs/PairCapabilityRequest.md
69
69
  docs/Process.md
70
+ docs/Product.md
70
71
  docs/RDMBacking.md
71
72
  docs/RightsizingApi.md
72
73
  docs/RightsizingClusterResponse.md
@@ -171,6 +172,7 @@ src/models/OsInfo.ts
171
172
  src/models/PairCapability.ts
172
173
  src/models/PairCapabilityRequest.ts
173
174
  src/models/Process.ts
175
+ src/models/Product.ts
174
176
  src/models/RDMBacking.ts
175
177
  src/models/RightsizingClusterResponse.ts
176
178
  src/models/RightsizingClusterUtilization.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.31.0-ce8ec7f258cb
1
+ # @openshift-migration-advisor/agent-sdk@0.31.0-ff65ab7b8c54
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -162,6 +162,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
162
162
  - [PairCapability](docs/PairCapability.md)
163
163
  - [PairCapabilityRequest](docs/PairCapabilityRequest.md)
164
164
  - [Process](docs/Process.md)
165
+ - [Product](docs/Product.md)
165
166
  - [RDMBacking](docs/RDMBacking.md)
166
167
  - [RightsizingClusterResponse](docs/RightsizingClusterResponse.md)
167
168
  - [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.md)
@@ -205,7 +206,7 @@ and is automatically generated by the
205
206
  [OpenAPI Generator](https://openapi-generator.tech) project:
206
207
 
207
208
  - API version: `v2`
208
- - Package version: `0.31.0-ce8ec7f258cb`
209
+ - Package version: `0.31.0-ff65ab7b8c54`
209
210
  - Generator version: `7.28.0-SNAPSHOT`
210
211
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
211
212
 
@@ -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
  };
@@ -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
  }
@@ -54,6 +54,7 @@ export * from './OsInfo.js';
54
54
  export * from './PairCapability.js';
55
55
  export * from './PairCapabilityRequest.js';
56
56
  export * from './Process.js';
57
+ export * from './Product.js';
57
58
  export * from './RDMBacking.js';
58
59
  export * from './RightsizingClusterResponse.js';
59
60
  export * from './RightsizingClusterUtilization.js';
@@ -56,6 +56,7 @@ export * from './OsInfo.js';
56
56
  export * from './PairCapability.js';
57
57
  export * from './PairCapabilityRequest.js';
58
58
  export * from './Process.js';
59
+ export * from './Product.js';
59
60
  export * from './RDMBacking.js';
60
61
  export * from './RightsizingClusterResponse.js';
61
62
  export * from './RightsizingClusterUtilization.js';
@@ -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
  };
@@ -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
  }
@@ -54,6 +54,7 @@ export * from './OsInfo.js';
54
54
  export * from './PairCapability.js';
55
55
  export * from './PairCapabilityRequest.js';
56
56
  export * from './Process.js';
57
+ export * from './Product.js';
57
58
  export * from './RDMBacking.js';
58
59
  export * from './RightsizingClusterResponse.js';
59
60
  export * from './RightsizingClusterUtilization.js';
@@ -72,6 +72,7 @@ __exportStar(require("./OsInfo.js"), exports);
72
72
  __exportStar(require("./PairCapability.js"), exports);
73
73
  __exportStar(require("./PairCapabilityRequest.js"), exports);
74
74
  __exportStar(require("./Process.js"), exports);
75
+ __exportStar(require("./Product.js"), exports);
75
76
  __exportStar(require("./RDMBacking.js"), exports);
76
77
  __exportStar(require("./RightsizingClusterResponse.js"), exports);
77
78
  __exportStar(require("./RightsizingClusterUtilization.js"), exports);
@@ -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
@@ -0,0 +1,52 @@
1
+
2
+ # Product
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `key` | number
10
+ `classId` | string
11
+ `instanceId` | string
12
+ `name` | string
13
+ `vendor` | string
14
+ `version` | string
15
+ `fullVersion` | string
16
+ `vendorUrl` | string
17
+ `productUrl` | string
18
+ `appUrl` | string
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { Product } from '@openshift-migration-advisor/agent-sdk'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "key": null,
28
+ "classId": null,
29
+ "instanceId": null,
30
+ "name": null,
31
+ "vendor": null,
32
+ "version": null,
33
+ "fullVersion": null,
34
+ "vendorUrl": null,
35
+ "productUrl": null,
36
+ "appUrl": null,
37
+ } satisfies Product
38
+
39
+ console.log(example)
40
+
41
+ // Convert the instance to a JSON string
42
+ const exampleJSON: string = JSON.stringify(example)
43
+ console.log(exampleJSON)
44
+
45
+ // Parse the JSON string back to an object
46
+ const exampleParsed = JSON.parse(exampleJSON) as Product
47
+ console.log(exampleParsed)
48
+ ```
49
+
50
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
+
52
+
@@ -47,6 +47,7 @@ Name | Type
47
47
  `inspection` | [VirtualMachineInspectionResults](VirtualMachineInspectionResults.md)
48
48
  `utilization` | [VmUtilizationDetails](VmUtilizationDetails.md)
49
49
  `processes` | [Array&lt;Process&gt;](Process.md)
50
+ `products` | [Array&lt;Product&gt;](Product.md)
50
51
 
51
52
  ## Example
52
53
 
@@ -96,6 +97,7 @@ const example = {
96
97
  "inspection": null,
97
98
  "utilization": null,
98
99
  "processes": null,
100
+ "products": null,
99
101
  } satisfies VirtualMachineDetail
100
102
 
101
103
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.31.0-ce8ec7f258cb",
3
+ "version": "0.31.0-ff65ab7b8c54",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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,118 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Product
20
+ */
21
+ export interface Product {
22
+ /**
23
+ * Product key
24
+ */
25
+ key: number;
26
+ /**
27
+ * Product class identifier
28
+ */
29
+ classId?: string;
30
+ /**
31
+ * Product instance identifier
32
+ */
33
+ instanceId?: string;
34
+ /**
35
+ * Product name
36
+ */
37
+ name?: string;
38
+ /**
39
+ * Product vendor
40
+ */
41
+ vendor?: string;
42
+ /**
43
+ * Product version
44
+ */
45
+ version?: string;
46
+ /**
47
+ * Full product version
48
+ */
49
+ fullVersion?: string;
50
+ /**
51
+ * Product vendor URL
52
+ */
53
+ vendorUrl?: string;
54
+ /**
55
+ * Product URL
56
+ */
57
+ productUrl?: string;
58
+ /**
59
+ * Application URL
60
+ */
61
+ appUrl?: string;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the Product interface.
66
+ */
67
+ export function instanceOfProduct(value: object): value is Product {
68
+ if (!('key' in value) || value['key'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function ProductFromJSON(json: any): Product {
73
+ return ProductFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'key': json['key'],
83
+ 'classId': json['classId'] == null ? undefined : json['classId'],
84
+ 'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
85
+ 'name': json['name'] == null ? undefined : json['name'],
86
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
87
+ 'version': json['version'] == null ? undefined : json['version'],
88
+ 'fullVersion': json['fullVersion'] == null ? undefined : json['fullVersion'],
89
+ 'vendorUrl': json['vendorUrl'] == null ? undefined : json['vendorUrl'],
90
+ 'productUrl': json['productUrl'] == null ? undefined : json['productUrl'],
91
+ 'appUrl': json['appUrl'] == null ? undefined : json['appUrl'],
92
+ };
93
+ }
94
+
95
+ export function ProductToJSON(json: any): Product {
96
+ return ProductToJSONTyped(json, false);
97
+ }
98
+
99
+ export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator: boolean = false): any {
100
+ if (value == null) {
101
+ return value;
102
+ }
103
+
104
+ return {
105
+
106
+ 'key': value['key'],
107
+ 'classId': value['classId'],
108
+ 'instanceId': value['instanceId'],
109
+ 'name': value['name'],
110
+ 'vendor': value['vendor'],
111
+ 'version': value['version'],
112
+ 'fullVersion': value['fullVersion'],
113
+ 'vendorUrl': value['vendorUrl'],
114
+ 'productUrl': value['productUrl'],
115
+ 'appUrl': value['appUrl'],
116
+ };
117
+ }
118
+
@@ -55,6 +55,13 @@ import {
55
55
  HostPhysicalNICToJSON,
56
56
  HostPhysicalNICToJSONTyped,
57
57
  } from './HostPhysicalNIC.js';
58
+ import type { Product } from './Product.js';
59
+ import {
60
+ ProductFromJSON,
61
+ ProductFromJSONTyped,
62
+ ProductToJSON,
63
+ ProductToJSONTyped,
64
+ } from './Product.js';
58
65
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
59
66
  import {
60
67
  VmUtilizationDetailsFromJSON,
@@ -254,6 +261,10 @@ export interface VirtualMachineDetail {
254
261
  * List of processes detected on this VM
255
262
  */
256
263
  processes?: Array<Process>;
264
+ /**
265
+ * Products configured in the VM's vApp settings
266
+ */
267
+ products?: Array<Product>;
257
268
  }
258
269
 
259
270
  /**
@@ -325,6 +336,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
325
336
  'inspection': json['inspection'] == null ? undefined : VirtualMachineInspectionResultsFromJSON(json['inspection']),
326
337
  'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
327
338
  'processes': json['processes'] == null ? undefined : ((json['processes'] as Array<any>).map(ProcessFromJSON)),
339
+ 'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
328
340
  };
329
341
  }
330
342
 
@@ -379,6 +391,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
379
391
  'inspection': VirtualMachineInspectionResultsToJSON(value['inspection']),
380
392
  'utilization': VmUtilizationDetailsToJSON(value['utilization']),
381
393
  'processes': value['processes'] == null ? undefined : ((value['processes'] as Array<any>).map(ProcessToJSON)),
394
+ 'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductToJSON)),
382
395
  };
383
396
  }
384
397
 
@@ -56,6 +56,7 @@ export * from './OsInfo.js';
56
56
  export * from './PairCapability.js';
57
57
  export * from './PairCapabilityRequest.js';
58
58
  export * from './Process.js';
59
+ export * from './Product.js';
59
60
  export * from './RDMBacking.js';
60
61
  export * from './RightsizingClusterResponse.js';
61
62
  export * from './RightsizingClusterUtilization.js';