@openshift-migration-advisor/agent-sdk 0.31.0-ff65ab7b8c54 → 0.32.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.
@@ -67,7 +67,6 @@ docs/OsInfo.md
67
67
  docs/PairCapability.md
68
68
  docs/PairCapabilityRequest.md
69
69
  docs/Process.md
70
- docs/Product.md
71
70
  docs/RDMBacking.md
72
71
  docs/RightsizingApi.md
73
72
  docs/RightsizingClusterResponse.md
@@ -172,7 +171,6 @@ src/models/OsInfo.ts
172
171
  src/models/PairCapability.ts
173
172
  src/models/PairCapabilityRequest.ts
174
173
  src/models/Process.ts
175
- src/models/Product.ts
176
174
  src/models/RDMBacking.ts
177
175
  src/models/RightsizingClusterResponse.ts
178
176
  src/models/RightsizingClusterUtilization.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.31.0-ff65ab7b8c54
1
+ # @openshift-migration-advisor/agent-sdk@0.32.0
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -162,7 +162,6 @@ 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)
166
165
  - [RDMBacking](docs/RDMBacking.md)
167
166
  - [RightsizingClusterResponse](docs/RightsizingClusterResponse.md)
168
167
  - [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.md)
@@ -206,7 +205,7 @@ and is automatically generated by the
206
205
  [OpenAPI Generator](https://openapi-generator.tech) project:
207
206
 
208
207
  - API version: `v2`
209
- - Package version: `0.31.0-ff65ab7b8c54`
208
+ - Package version: `0.32.0`
210
209
  - Generator version: `7.28.0-SNAPSHOT`
211
210
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
212
211
 
@@ -24,22 +24,6 @@ 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;
43
27
  /**
44
28
  * Number of VMs running this application
45
29
  */
@@ -20,10 +20,6 @@ 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;
27
23
  if (!('vmCount' in value) || value['vmCount'] === undefined)
28
24
  return false;
29
25
  if (!('vms' in value) || value['vms'] === undefined)
@@ -40,10 +36,6 @@ export function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
40
36
  return {
41
37
  'name': json['name'],
42
38
  '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'],
47
39
  'vmCount': json['vmCount'],
48
40
  'vms': (json['vms'].map(ApplicationVMFromJSON)),
49
41
  };
@@ -58,10 +50,6 @@ export function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = fals
58
50
  return {
59
51
  'name': value['name'],
60
52
  'description': value['description'],
61
- 'vendor': value['vendor'],
62
- 'category': value['category'],
63
- 'confidence': value['confidence'],
64
- 'containerizationCandidate': value['containerizationCandidate'],
65
53
  'vmCount': value['vmCount'],
66
54
  'vms': (value['vms'].map(ApplicationVMToJSON)),
67
55
  };
@@ -15,7 +15,6 @@ 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';
19
18
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
20
19
  import type { Process } from './Process.js';
21
20
  import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
@@ -192,10 +191,6 @@ export interface VirtualMachineDetail {
192
191
  * List of processes detected on this VM
193
192
  */
194
193
  processes?: Array<Process>;
195
- /**
196
- * Products configured in the VM's vApp settings
197
- */
198
- products?: Array<Product>;
199
194
  }
200
195
  /**
201
196
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -17,7 +17,6 @@ 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';
21
20
  import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
22
21
  import { ProcessFromJSON, ProcessToJSON, } from './Process.js';
23
22
  import { VirtualMachineDiskFromJSON, VirtualMachineDiskToJSON, } from './VirtualMachineDisk.js';
@@ -99,7 +98,6 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
99
98
  'inspection': json['inspection'] == null ? undefined : VirtualMachineInspectionResultsFromJSON(json['inspection']),
100
99
  'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
101
100
  'processes': json['processes'] == null ? undefined : (json['processes'].map(ProcessFromJSON)),
102
- 'products': json['products'] == null ? undefined : (json['products'].map(ProductFromJSON)),
103
101
  };
104
102
  }
105
103
  export function VirtualMachineDetailToJSON(json) {
@@ -150,6 +148,5 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
150
148
  'inspection': VirtualMachineInspectionResultsToJSON(value['inspection']),
151
149
  'utilization': VmUtilizationDetailsToJSON(value['utilization']),
152
150
  'processes': value['processes'] == null ? undefined : (value['processes'].map(ProcessToJSON)),
153
- 'products': value['products'] == null ? undefined : (value['products'].map(ProductToJSON)),
154
151
  };
155
152
  }
@@ -54,7 +54,6 @@ 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';
58
57
  export * from './RDMBacking.js';
59
58
  export * from './RightsizingClusterResponse.js';
60
59
  export * from './RightsizingClusterUtilization.js';
@@ -56,7 +56,6 @@ 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';
60
59
  export * from './RDMBacking.js';
61
60
  export * from './RightsizingClusterResponse.js';
62
61
  export * from './RightsizingClusterUtilization.js';
@@ -24,22 +24,6 @@ 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;
43
27
  /**
44
28
  * Number of VMs running this application
45
29
  */
@@ -27,10 +27,6 @@ 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;
34
30
  if (!('vmCount' in value) || value['vmCount'] === undefined)
35
31
  return false;
36
32
  if (!('vms' in value) || value['vms'] === undefined)
@@ -47,10 +43,6 @@ function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
47
43
  return {
48
44
  'name': json['name'],
49
45
  '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'],
54
46
  'vmCount': json['vmCount'],
55
47
  'vms': (json['vms'].map(ApplicationVM_js_1.ApplicationVMFromJSON)),
56
48
  };
@@ -65,10 +57,6 @@ function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = false) {
65
57
  return {
66
58
  'name': value['name'],
67
59
  'description': value['description'],
68
- 'vendor': value['vendor'],
69
- 'category': value['category'],
70
- 'confidence': value['confidence'],
71
- 'containerizationCandidate': value['containerizationCandidate'],
72
60
  'vmCount': value['vmCount'],
73
61
  'vms': (value['vms'].map(ApplicationVM_js_1.ApplicationVMToJSON)),
74
62
  };
@@ -15,7 +15,6 @@ 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';
19
18
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
20
19
  import type { Process } from './Process.js';
21
20
  import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
@@ -192,10 +191,6 @@ export interface VirtualMachineDetail {
192
191
  * List of processes detected on this VM
193
192
  */
194
193
  processes?: Array<Process>;
195
- /**
196
- * Products configured in the VM's vApp settings
197
- */
198
- products?: Array<Product>;
199
194
  }
200
195
  /**
201
196
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -24,7 +24,6 @@ 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");
28
27
  const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
29
28
  const Process_js_1 = require("./Process.js");
30
29
  const VirtualMachineDisk_js_1 = require("./VirtualMachineDisk.js");
@@ -106,7 +105,6 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
106
105
  'inspection': json['inspection'] == null ? undefined : (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsFromJSON)(json['inspection']),
107
106
  'utilization': json['utilization'] == null ? undefined : (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(json['utilization']),
108
107
  '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)),
110
108
  };
111
109
  }
112
110
  function VirtualMachineDetailToJSON(json) {
@@ -157,6 +155,5 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
157
155
  'inspection': (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsToJSON)(value['inspection']),
158
156
  'utilization': (0, VmUtilizationDetails_js_1.VmUtilizationDetailsToJSON)(value['utilization']),
159
157
  '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)),
161
158
  };
162
159
  }
@@ -54,7 +54,6 @@ 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';
58
57
  export * from './RDMBacking.js';
59
58
  export * from './RightsizingClusterResponse.js';
60
59
  export * from './RightsizingClusterUtilization.js';
@@ -72,7 +72,6 @@ __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);
76
75
  __exportStar(require("./RDMBacking.js"), exports);
77
76
  __exportStar(require("./RightsizingClusterResponse.js"), exports);
78
77
  __exportStar(require("./RightsizingClusterUtilization.js"), exports);
@@ -8,10 +8,6 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `name` | string
10
10
  `description` | string
11
- `vendor` | string
12
- `category` | string
13
- `confidence` | number
14
- `containerizationCandidate` | boolean
15
11
  `vmCount` | number
16
12
  `vms` | [Array&lt;ApplicationVM&gt;](ApplicationVM.md)
17
13
 
@@ -24,10 +20,6 @@ import type { ApplicationOverview } from '@openshift-migration-advisor/agent-sdk
24
20
  const example = {
25
21
  "name": null,
26
22
  "description": null,
27
- "vendor": null,
28
- "category": null,
29
- "confidence": null,
30
- "containerizationCandidate": null,
31
23
  "vmCount": null,
32
24
  "vms": null,
33
25
  } satisfies ApplicationOverview
@@ -47,7 +47,6 @@ 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)
51
50
 
52
51
  ## Example
53
52
 
@@ -97,7 +96,6 @@ const example = {
97
96
  "inspection": null,
98
97
  "utilization": null,
99
98
  "processes": null,
100
- "products": null,
101
99
  } satisfies VirtualMachineDetail
102
100
 
103
101
  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-ff65ab7b8c54",
3
+ "version": "0.32.0",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -35,22 +35,6 @@ 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;
54
38
  /**
55
39
  * Number of VMs running this application
56
40
  */
@@ -67,8 +51,6 @@ export interface ApplicationOverview {
67
51
  export function instanceOfApplicationOverview(value: object): value is ApplicationOverview {
68
52
  if (!('name' in value) || value['name'] === undefined) return false;
69
53
  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;
72
54
  if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
73
55
  if (!('vms' in value) || value['vms'] === undefined) return false;
74
56
  return true;
@@ -86,10 +68,6 @@ export function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator:
86
68
 
87
69
  'name': json['name'],
88
70
  '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'],
93
71
  'vmCount': json['vmCount'],
94
72
  'vms': ((json['vms'] as Array<any>).map(ApplicationVMFromJSON)),
95
73
  };
@@ -108,10 +86,6 @@ export function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | nul
108
86
 
109
87
  'name': value['name'],
110
88
  'description': value['description'],
111
- 'vendor': value['vendor'],
112
- 'category': value['category'],
113
- 'confidence': value['confidence'],
114
- 'containerizationCandidate': value['containerizationCandidate'],
115
89
  'vmCount': value['vmCount'],
116
90
  'vms': ((value['vms'] as Array<any>).map(ApplicationVMToJSON)),
117
91
  };
@@ -55,13 +55,6 @@ 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';
65
58
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
66
59
  import {
67
60
  VmUtilizationDetailsFromJSON,
@@ -261,10 +254,6 @@ export interface VirtualMachineDetail {
261
254
  * List of processes detected on this VM
262
255
  */
263
256
  processes?: Array<Process>;
264
- /**
265
- * Products configured in the VM's vApp settings
266
- */
267
- products?: Array<Product>;
268
257
  }
269
258
 
270
259
  /**
@@ -336,7 +325,6 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
336
325
  'inspection': json['inspection'] == null ? undefined : VirtualMachineInspectionResultsFromJSON(json['inspection']),
337
326
  'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
338
327
  '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)),
340
328
  };
341
329
  }
342
330
 
@@ -391,7 +379,6 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
391
379
  'inspection': VirtualMachineInspectionResultsToJSON(value['inspection']),
392
380
  'utilization': VmUtilizationDetailsToJSON(value['utilization']),
393
381
  '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)),
395
382
  };
396
383
  }
397
384
 
@@ -56,7 +56,6 @@ 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';
60
59
  export * from './RDMBacking.js';
61
60
  export * from './RightsizingClusterResponse.js';
62
61
  export * from './RightsizingClusterUtilization.js';
@@ -1,66 +0,0 @@
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;
@@ -1,61 +0,0 @@
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
- }
@@ -1,66 +0,0 @@
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;
@@ -1,68 +0,0 @@
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
- }
package/docs/Product.md DELETED
@@ -1,52 +0,0 @@
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
-
@@ -1,118 +0,0 @@
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
-