@openshift-migration-advisor/agent-sdk 0.16.0 → 0.17.0-fa395f816b50

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 (56) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +12 -7
  3. package/dist/apis/DefaultApi.d.ts +74 -0
  4. package/dist/apis/DefaultApi.js +80 -0
  5. package/dist/esm/apis/DefaultApi.d.ts +74 -0
  6. package/dist/esm/apis/DefaultApi.js +80 -0
  7. package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +38 -0
  8. package/dist/esm/models/BatchUpdateExclusionRequest.js +47 -0
  9. package/dist/esm/models/CollectorStartRequest.d.ts +12 -12
  10. package/dist/esm/models/CollectorStartRequest.js +5 -11
  11. package/dist/esm/models/Datastore.js +1 -1
  12. package/dist/esm/models/ExportInventory400Response.d.ts +32 -0
  13. package/dist/esm/models/ExportInventory400Response.js +41 -0
  14. package/dist/esm/models/ExportInventory500Response.d.ts +32 -0
  15. package/dist/esm/models/ExportInventory500Response.js +41 -0
  16. package/dist/esm/models/Host.js +3 -3
  17. package/dist/esm/models/OsInfo.d.ts +16 -0
  18. package/dist/esm/models/OsInfo.js +11 -0
  19. package/dist/esm/models/index.d.ts +3 -0
  20. package/dist/esm/models/index.js +3 -0
  21. package/dist/esm/runtime.d.ts +1 -0
  22. package/dist/esm/runtime.js +4 -0
  23. package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
  24. package/dist/models/BatchUpdateExclusionRequest.js +54 -0
  25. package/dist/models/CollectorStartRequest.d.ts +12 -12
  26. package/dist/models/CollectorStartRequest.js +5 -11
  27. package/dist/models/Datastore.js +1 -1
  28. package/dist/models/ExportInventory400Response.d.ts +32 -0
  29. package/dist/models/ExportInventory400Response.js +48 -0
  30. package/dist/models/ExportInventory500Response.d.ts +32 -0
  31. package/dist/models/ExportInventory500Response.js +48 -0
  32. package/dist/models/Host.js +3 -3
  33. package/dist/models/OsInfo.d.ts +16 -0
  34. package/dist/models/OsInfo.js +12 -0
  35. package/dist/models/index.d.ts +3 -0
  36. package/dist/models/index.js +3 -0
  37. package/dist/runtime.d.ts +1 -0
  38. package/dist/runtime.js +5 -0
  39. package/docs/BatchUpdateExclusionRequest.md +36 -0
  40. package/docs/CollectorStartRequest.md +3 -2
  41. package/docs/DefaultApi.md +139 -0
  42. package/docs/ExportInventory400Response.md +34 -0
  43. package/docs/ExportInventory500Response.md +34 -0
  44. package/docs/OsInfo.md +2 -0
  45. package/package.json +1 -1
  46. package/src/apis/DefaultApi.ts +159 -0
  47. package/src/models/BatchUpdateExclusionRequest.ts +75 -0
  48. package/src/models/CollectorStartRequest.ts +17 -20
  49. package/src/models/Datastore.ts +1 -1
  50. package/src/models/ExportInventory400Response.ts +65 -0
  51. package/src/models/ExportInventory500Response.ts +65 -0
  52. package/src/models/Host.ts +3 -3
  53. package/src/models/OsInfo.ts +21 -0
  54. package/src/models/index.ts +3 -0
  55. package/src/runtime.ts +5 -0
  56. package/tsconfig.json +1 -1
@@ -28,6 +28,11 @@ import {
28
28
  ApplicationListResponseFromJSON,
29
29
  ApplicationListResponseToJSON,
30
30
  } from '../models/ApplicationListResponse.js';
31
+ import {
32
+ type BatchUpdateExclusionRequest,
33
+ BatchUpdateExclusionRequestFromJSON,
34
+ BatchUpdateExclusionRequestToJSON,
35
+ } from '../models/BatchUpdateExclusionRequest.js';
31
36
  import {
32
37
  type BenchmarkRun,
33
38
  BenchmarkRunFromJSON,
@@ -68,6 +73,16 @@ import {
68
73
  DeleteLabelGloballyResponseFromJSON,
69
74
  DeleteLabelGloballyResponseToJSON,
70
75
  } from '../models/DeleteLabelGloballyResponse.js';
76
+ import {
77
+ type ExportInventory400Response,
78
+ ExportInventory400ResponseFromJSON,
79
+ ExportInventory400ResponseToJSON,
80
+ } from '../models/ExportInventory400Response.js';
81
+ import {
82
+ type ExportInventory500Response,
83
+ ExportInventory500ResponseFromJSON,
84
+ ExportInventory500ResponseToJSON,
85
+ } from '../models/ExportInventory500Response.js';
71
86
  import {
72
87
  type ForecastStats,
73
88
  ForecastStatsFromJSON,
@@ -229,6 +244,10 @@ import {
229
244
  VmUtilizationDetailsToJSON,
230
245
  } from '../models/VmUtilizationDetails.js';
231
246
 
247
+ export interface BatchUpdateVMExclusionRequest {
248
+ batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
249
+ }
250
+
232
251
  export interface CreateGroupOperationRequest {
233
252
  createGroupRequest: CreateGroupRequest;
234
253
  }
@@ -245,6 +264,10 @@ export interface DeleteLabelGloballyRequest {
245
264
  label: string;
246
265
  }
247
266
 
267
+ export interface ExportInventoryRequest {
268
+ scope?: string;
269
+ }
270
+
248
271
  export interface GetClusterUtilizationRequest {
249
272
  clusterId: string;
250
273
  }
@@ -391,6 +414,29 @@ export interface ValidateInspectorCredentialsRequest {
391
414
  * @interface DefaultApiInterface
392
415
  */
393
416
  export interface DefaultApiInterface {
417
+ /**
418
+ * Creates request options for batchUpdateVMExclusion without sending the request
419
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
420
+ * @throws {RequiredError}
421
+ * @memberof DefaultApiInterface
422
+ */
423
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
424
+
425
+ /**
426
+ *
427
+ * @summary Batch update VM exclusion status
428
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ * @memberof DefaultApiInterface
432
+ */
433
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
434
+
435
+ /**
436
+ * Batch update VM exclusion status
437
+ */
438
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
439
+
394
440
  /**
395
441
  * Creates request options for createGroup without sending the request
396
442
  * @param {CreateGroupRequest} createGroupRequest
@@ -505,6 +551,30 @@ export interface DefaultApiInterface {
505
551
  */
506
552
  deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
507
553
 
554
+ /**
555
+ * Creates request options for exportInventory without sending the request
556
+ * @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
557
+ * @throws {RequiredError}
558
+ * @memberof DefaultApiInterface
559
+ */
560
+ exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
561
+
562
+ /**
563
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
564
+ * @summary Export VM inventory and migration planning data
565
+ * @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ * @memberof DefaultApiInterface
569
+ */
570
+ exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
571
+
572
+ /**
573
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
574
+ * Export VM inventory and migration planning data
575
+ */
576
+ exportInventory(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
577
+
508
578
  /**
509
579
  * Creates request options for getAgentStatus without sending the request
510
580
  * @throws {RequiredError}
@@ -1567,6 +1637,52 @@ export interface DefaultApiInterface {
1567
1637
  */
1568
1638
  export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1569
1639
 
1640
+ /**
1641
+ * Creates request options for batchUpdateVMExclusion without sending the request
1642
+ */
1643
+ async batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts> {
1644
+ if (requestParameters['batchUpdateExclusionRequest'] == null) {
1645
+ throw new runtime.RequiredError(
1646
+ 'batchUpdateExclusionRequest',
1647
+ 'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().'
1648
+ );
1649
+ }
1650
+
1651
+ const queryParameters: any = {};
1652
+
1653
+ const headerParameters: runtime.HTTPHeaders = {};
1654
+
1655
+ headerParameters['Content-Type'] = 'application/json';
1656
+
1657
+
1658
+ let urlPath = `/vms/batch-update-exclusion`;
1659
+
1660
+ return {
1661
+ path: urlPath,
1662
+ method: 'POST',
1663
+ headers: headerParameters,
1664
+ query: queryParameters,
1665
+ body: BatchUpdateExclusionRequestToJSON(requestParameters['batchUpdateExclusionRequest']),
1666
+ };
1667
+ }
1668
+
1669
+ /**
1670
+ * Batch update VM exclusion status
1671
+ */
1672
+ async batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1673
+ const requestOptions = await this.batchUpdateVMExclusionRequestOpts(requestParameters);
1674
+ const response = await this.request(requestOptions, initOverrides);
1675
+
1676
+ return new runtime.VoidApiResponse(response);
1677
+ }
1678
+
1679
+ /**
1680
+ * Batch update VM exclusion status
1681
+ */
1682
+ async batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1683
+ await this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
1684
+ }
1685
+
1570
1686
  /**
1571
1687
  * Creates request options for createGroup without sending the request
1572
1688
  */
@@ -1785,6 +1901,49 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1785
1901
  return await response.value();
1786
1902
  }
1787
1903
 
1904
+ /**
1905
+ * Creates request options for exportInventory without sending the request
1906
+ */
1907
+ async exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts> {
1908
+ const queryParameters: any = {};
1909
+
1910
+ if (requestParameters['scope'] != null) {
1911
+ queryParameters['scope'] = requestParameters['scope'];
1912
+ }
1913
+
1914
+ const headerParameters: runtime.HTTPHeaders = {};
1915
+
1916
+
1917
+ let urlPath = `/export`;
1918
+
1919
+ return {
1920
+ path: urlPath,
1921
+ method: 'GET',
1922
+ headers: headerParameters,
1923
+ query: queryParameters,
1924
+ };
1925
+ }
1926
+
1927
+ /**
1928
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1929
+ * Export VM inventory and migration planning data
1930
+ */
1931
+ async exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
1932
+ const requestOptions = await this.exportInventoryRequestOpts(requestParameters);
1933
+ const response = await this.request(requestOptions, initOverrides);
1934
+
1935
+ return new runtime.BlobApiResponse(response);
1936
+ }
1937
+
1938
+ /**
1939
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1940
+ * Export VM inventory and migration planning data
1941
+ */
1942
+ async exportInventory(requestParameters: ExportInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
1943
+ const response = await this.exportInventoryRaw(requestParameters, initOverrides);
1944
+ return await response.value();
1945
+ }
1946
+
1788
1947
  /**
1789
1948
  * Creates request options for getAgentStatus without sending the request
1790
1949
  */
@@ -0,0 +1,75 @@
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: v1
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 BatchUpdateExclusionRequest
20
+ */
21
+ export interface BatchUpdateExclusionRequest {
22
+ /**
23
+ * VM IDs to update
24
+ * @type {Array<string>}
25
+ * @memberof BatchUpdateExclusionRequest
26
+ */
27
+ vmIds: Array<string>;
28
+ /**
29
+ * Exclusion state to set for all VMs
30
+ * @type {boolean}
31
+ * @memberof BatchUpdateExclusionRequest
32
+ */
33
+ migrationExcluded: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the BatchUpdateExclusionRequest interface.
38
+ */
39
+ export function instanceOfBatchUpdateExclusionRequest(value: object): value is BatchUpdateExclusionRequest {
40
+ if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
41
+ if (!('migrationExcluded' in value) || value['migrationExcluded'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function BatchUpdateExclusionRequestFromJSON(json: any): BatchUpdateExclusionRequest {
46
+ return BatchUpdateExclusionRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BatchUpdateExclusionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdateExclusionRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'vmIds': json['vmIds'],
56
+ 'migrationExcluded': json['migrationExcluded'],
57
+ };
58
+ }
59
+
60
+ export function BatchUpdateExclusionRequestToJSON(json: any): BatchUpdateExclusionRequest {
61
+ return BatchUpdateExclusionRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function BatchUpdateExclusionRequestToJSONTyped(value?: BatchUpdateExclusionRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'vmIds': value['vmIds'],
72
+ 'migrationExcluded': value['migrationExcluded'],
73
+ };
74
+ }
75
+
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
16
  /**
17
- *
17
+ * Start collection. Credentials are optional if previously stored via PUT /credentials.
18
18
  * @export
19
19
  * @interface CollectorStartRequest
20
20
  */
@@ -24,40 +24,37 @@ export interface CollectorStartRequest {
24
24
  * @type {string}
25
25
  * @memberof CollectorStartRequest
26
26
  */
27
- url: string;
27
+ url?: string;
28
28
  /**
29
- *
29
+ * vCenter username
30
30
  * @type {string}
31
31
  * @memberof CollectorStartRequest
32
32
  */
33
- username: string;
33
+ username?: string;
34
34
  /**
35
- *
35
+ * vCenter password
36
36
  * @type {string}
37
37
  * @memberof CollectorStartRequest
38
38
  */
39
- password: string;
39
+ password?: string;
40
40
  /**
41
- * PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
42
- * @type {string}
41
+ * Skip TLS certificate verification
42
+ * @type {boolean}
43
43
  * @memberof CollectorStartRequest
44
44
  */
45
- cacert?: string;
45
+ skipTls?: boolean;
46
46
  /**
47
- * When true, TLS certificate verification is skipped. Must not be set to true alongside cacert — that combination returns 400. When omitted: if cacert is absent the connection skips TLS verification (backwards compatibility); if cacert is provided the connection verifies TLS using that certificate — skipTls need not be sent.
48
- * @type {boolean}
47
+ * PEM-encoded CA certificate bundle
48
+ * @type {string}
49
49
  * @memberof CollectorStartRequest
50
50
  */
51
- skipTls?: boolean;
51
+ cacert?: string;
52
52
  }
53
53
 
54
54
  /**
55
55
  * Check if a given object implements the CollectorStartRequest interface.
56
56
  */
57
57
  export function instanceOfCollectorStartRequest(value: object): value is CollectorStartRequest {
58
- if (!('url' in value) || value['url'] === undefined) return false;
59
- if (!('username' in value) || value['username'] === undefined) return false;
60
- if (!('password' in value) || value['password'] === undefined) return false;
61
58
  return true;
62
59
  }
63
60
 
@@ -71,11 +68,11 @@ export function CollectorStartRequestFromJSONTyped(json: any, ignoreDiscriminato
71
68
  }
72
69
  return {
73
70
 
74
- 'url': json['url'],
75
- 'username': json['username'],
76
- 'password': json['password'],
77
- 'cacert': json['cacert'] == null ? undefined : json['cacert'],
71
+ 'url': json['url'] == null ? undefined : json['url'],
72
+ 'username': json['username'] == null ? undefined : json['username'],
73
+ 'password': json['password'] == null ? undefined : json['password'],
78
74
  'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
75
+ 'cacert': json['cacert'] == null ? undefined : json['cacert'],
79
76
  };
80
77
  }
81
78
 
@@ -93,8 +90,8 @@ export function CollectorStartRequestToJSONTyped(value?: CollectorStartRequest |
93
90
  'url': value['url'],
94
91
  'username': value['username'],
95
92
  'password': value['password'],
96
- 'cacert': value['cacert'],
97
93
  'skipTls': value['skipTls'],
94
+ 'cacert': value['cacert'],
98
95
  };
99
96
  }
100
97
 
@@ -108,7 +108,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
108
108
  'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
109
109
  'protocolType': json['protocolType'],
110
110
  'model': json['model'],
111
- 'hostId': json['hostId'] == null ? undefined : json['hostId'],
111
+ 'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
112
112
  };
113
113
  }
114
114
 
@@ -0,0 +1,65 @@
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: v1
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 ExportInventory400Response
20
+ */
21
+ export interface ExportInventory400Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ExportInventory400Response
26
+ */
27
+ error?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ExportInventory400Response interface.
32
+ */
33
+ export function instanceOfExportInventory400Response(value: object): value is ExportInventory400Response {
34
+ return true;
35
+ }
36
+
37
+ export function ExportInventory400ResponseFromJSON(json: any): ExportInventory400Response {
38
+ return ExportInventory400ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ExportInventory400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportInventory400Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'error': json['error'] == null ? undefined : json['error'],
48
+ };
49
+ }
50
+
51
+ export function ExportInventory400ResponseToJSON(json: any): ExportInventory400Response {
52
+ return ExportInventory400ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function ExportInventory400ResponseToJSONTyped(value?: ExportInventory400Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'error': value['error'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,65 @@
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: v1
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 ExportInventory500Response
20
+ */
21
+ export interface ExportInventory500Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ExportInventory500Response
26
+ */
27
+ error?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ExportInventory500Response interface.
32
+ */
33
+ export function instanceOfExportInventory500Response(value: object): value is ExportInventory500Response {
34
+ return true;
35
+ }
36
+
37
+ export function ExportInventory500ResponseFromJSON(json: any): ExportInventory500Response {
38
+ return ExportInventory500ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ExportInventory500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportInventory500Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'error': json['error'] == null ? undefined : json['error'],
48
+ };
49
+ }
50
+
51
+ export function ExportInventory500ResponseToJSON(json: any): ExportInventory500Response {
52
+ return ExportInventory500ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function ExportInventory500ResponseToJSONTyped(value?: ExportInventory500Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'error': value['error'],
63
+ };
64
+ }
65
+
@@ -79,9 +79,9 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
79
79
  'id': json['id'] == null ? undefined : json['id'],
80
80
  'vendor': json['vendor'],
81
81
  'model': json['model'],
82
- 'cpuCores': json['cpuCores'] == null ? undefined : json['cpuCores'],
83
- 'cpuSockets': json['cpuSockets'] == null ? undefined : json['cpuSockets'],
84
- 'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
82
+ 'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
83
+ 'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
84
+ 'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
85
85
  };
86
86
  }
87
87
 
@@ -31,6 +31,12 @@ export interface OsInfo {
31
31
  * @memberof OsInfo
32
32
  */
33
33
  supported: boolean;
34
+ /**
35
+ * OS support tier per Red Hat KCS article 4234591
36
+ * @type {OsInfoSupportTierEnum}
37
+ * @memberof OsInfo
38
+ */
39
+ supportTier?: OsInfoSupportTierEnum;
34
40
  /**
35
41
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
36
42
  * @type {string}
@@ -39,6 +45,19 @@ export interface OsInfo {
39
45
  upgradeRecommendation?: string;
40
46
  }
41
47
 
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const OsInfoSupportTierEnum = {
53
+ Certified: 'certified',
54
+ VendorSupported: 'vendor_supported',
55
+ CommunitySupported: 'community_supported',
56
+ SpecialHandling: 'special_handling'
57
+ } as const;
58
+ export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
59
+
60
+
42
61
  /**
43
62
  * Check if a given object implements the OsInfo interface.
44
63
  */
@@ -60,6 +79,7 @@ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Os
60
79
 
61
80
  'count': json['count'],
62
81
  'supported': json['supported'],
82
+ 'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
63
83
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
64
84
  };
65
85
  }
@@ -77,6 +97,7 @@ export function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator: bo
77
97
 
78
98
  'count': value['count'],
79
99
  'supported': value['supported'],
100
+ 'supportTier': value['supportTier'],
80
101
  'upgradeRecommendation': value['upgradeRecommendation'],
81
102
  };
82
103
  }
@@ -5,6 +5,7 @@ export * from './AgentStatus.js';
5
5
  export * from './ApplicationListResponse.js';
6
6
  export * from './ApplicationOverview.js';
7
7
  export * from './ApplicationVM.js';
8
+ export * from './BatchUpdateExclusionRequest.js';
8
9
  export * from './BenchmarkRun.js';
9
10
  export * from './CapabilityStatus.js';
10
11
  export * from './CapabilityStatusCapabilities.js';
@@ -21,6 +22,8 @@ export * from './DeleteLabelGloballyResponse.js';
21
22
  export * from './DiskSizeTierSummary.js';
22
23
  export * from './DiskTypeSummary.js';
23
24
  export * from './EstimateRange.js';
25
+ export * from './ExportInventory400Response.js';
26
+ export * from './ExportInventory500Response.js';
24
27
  export * from './ForecastStats.js';
25
28
  export * from './ForecasterDatastoresRequest.js';
26
29
  export * from './ForecasterPairStatus.js';
package/src/runtime.ts CHANGED
@@ -367,6 +367,11 @@ export function mapValues(data: any, fn: (item: any) => any) {
367
367
  return result;
368
368
  }
369
369
 
370
+ // Pass-through serializer for `any`-typed properties in form data. See #1877.
371
+ export function anyToJSON(value: any): any {
372
+ return value;
373
+ }
374
+
370
375
  export function canConsumeForm(consumes: Consume[]): boolean {
371
376
  for (const consume of consumes) {
372
377
  if (consume.contentType?.startsWith('multipart/form-data') == true) {
package/tsconfig.json CHANGED
@@ -3,8 +3,8 @@
3
3
  "declaration": true,
4
4
  "target": "es6",
5
5
  "module": "commonjs",
6
- "moduleResolution": "node",
7
6
  "outDir": "dist",
7
+ "rootDir": "src",
8
8
  "typeRoots": [
9
9
  "node_modules/@types"
10
10
  ]