@openshift-migration-advisor/agent-sdk 0.17.0 → 0.18.0-c896a2e1a4de

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 +8 -0
  2. package/README.md +12 -9
  3. package/dist/apis/DefaultApi.d.ts +36 -85
  4. package/dist/apis/DefaultApi.js +40 -86
  5. package/dist/esm/apis/DefaultApi.d.ts +36 -85
  6. package/dist/esm/apis/DefaultApi.js +40 -86
  7. package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +38 -0
  8. package/dist/esm/models/BatchUpdateExclusionRequest.js +47 -0
  9. package/dist/esm/models/Datastore.d.ts +7 -0
  10. package/dist/esm/models/Datastore.js +3 -0
  11. package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
  12. package/dist/esm/models/IssuesBreakdown.js +59 -0
  13. package/dist/esm/models/Process.d.ts +38 -0
  14. package/dist/esm/models/Process.js +45 -0
  15. package/dist/esm/models/StorageIoConfiguration.d.ts +58 -0
  16. package/dist/esm/models/StorageIoConfiguration.js +54 -0
  17. package/dist/esm/models/VMs.d.ts +7 -0
  18. package/dist/esm/models/VMs.js +3 -0
  19. package/dist/esm/models/VirtualMachineDetail.d.ts +7 -0
  20. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  21. package/dist/esm/models/index.d.ts +4 -0
  22. package/dist/esm/models/index.js +4 -0
  23. package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
  24. package/dist/models/BatchUpdateExclusionRequest.js +54 -0
  25. package/dist/models/Datastore.d.ts +7 -0
  26. package/dist/models/Datastore.js +3 -0
  27. package/dist/models/IssuesBreakdown.d.ts +56 -0
  28. package/dist/models/IssuesBreakdown.js +66 -0
  29. package/dist/models/Process.d.ts +38 -0
  30. package/dist/models/Process.js +52 -0
  31. package/dist/models/StorageIoConfiguration.d.ts +58 -0
  32. package/dist/models/StorageIoConfiguration.js +62 -0
  33. package/dist/models/VMs.d.ts +7 -0
  34. package/dist/models/VMs.js +3 -0
  35. package/dist/models/VirtualMachineDetail.d.ts +7 -0
  36. package/dist/models/VirtualMachineDetail.js +3 -0
  37. package/dist/models/index.d.ts +4 -0
  38. package/dist/models/index.js +4 -0
  39. package/docs/BatchUpdateExclusionRequest.md +36 -0
  40. package/docs/Datastore.md +2 -0
  41. package/docs/DefaultApi.md +69 -139
  42. package/docs/IssuesBreakdown.md +42 -0
  43. package/docs/Process.md +36 -0
  44. package/docs/StorageIoConfiguration.md +40 -0
  45. package/docs/VMs.md +2 -0
  46. package/docs/VirtualMachineDetail.md +2 -0
  47. package/package.json +1 -1
  48. package/src/apis/DefaultApi.ts +78 -159
  49. package/src/models/BatchUpdateExclusionRequest.ts +75 -0
  50. package/src/models/Datastore.ts +16 -0
  51. package/src/models/IssuesBreakdown.ts +102 -0
  52. package/src/models/Process.ts +74 -0
  53. package/src/models/StorageIoConfiguration.ts +100 -0
  54. package/src/models/VMs.ts +15 -0
  55. package/src/models/VirtualMachineDetail.ts +15 -0
  56. package/src/models/index.ts +4 -0
@@ -0,0 +1,58 @@
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: v1
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 StorageIoConfiguration
16
+ */
17
+ export interface StorageIoConfiguration {
18
+ /**
19
+ * Whether Storage I/O Control is enabled for this datastore
20
+ * @type {boolean}
21
+ * @memberof StorageIoConfiguration
22
+ */
23
+ enabled?: boolean;
24
+ /**
25
+ * Latency threshold in milliseconds beyond which the storage array is considered congested
26
+ * @type {number}
27
+ * @memberof StorageIoConfiguration
28
+ */
29
+ congestionThreshold?: number;
30
+ /**
31
+ * Mode for congestion threshold calculation
32
+ * @type {StorageIoConfigurationCongestionThresholdModeEnum}
33
+ * @memberof StorageIoConfiguration
34
+ */
35
+ congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
36
+ /**
37
+ * Percent of peak throughput
38
+ * @type {number}
39
+ * @memberof StorageIoConfiguration
40
+ */
41
+ percentOfPeakThroughput?: number;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const StorageIoConfigurationCongestionThresholdModeEnum: {
47
+ readonly Automatic: "automatic";
48
+ readonly Manual: "manual";
49
+ };
50
+ export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
51
+ /**
52
+ * Check if a given object implements the StorageIoConfiguration interface.
53
+ */
54
+ export declare function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration;
55
+ export declare function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration;
56
+ export declare function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration;
57
+ export declare function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration;
58
+ export declare function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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
+ * @export
16
+ */
17
+ export const StorageIoConfigurationCongestionThresholdModeEnum = {
18
+ Automatic: 'automatic',
19
+ Manual: 'manual'
20
+ };
21
+ /**
22
+ * Check if a given object implements the StorageIoConfiguration interface.
23
+ */
24
+ export function instanceOfStorageIoConfiguration(value) {
25
+ return true;
26
+ }
27
+ export function StorageIoConfigurationFromJSON(json) {
28
+ return StorageIoConfigurationFromJSONTyped(json, false);
29
+ }
30
+ export function StorageIoConfigurationFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
36
+ 'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
37
+ 'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
38
+ 'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
39
+ };
40
+ }
41
+ export function StorageIoConfigurationToJSON(json) {
42
+ return StorageIoConfigurationToJSONTyped(json, false);
43
+ }
44
+ export function StorageIoConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'enabled': value['enabled'],
50
+ 'congestionThreshold': value['congestionThreshold'],
51
+ 'congestionThresholdMode': value['congestionThresholdMode'],
52
+ 'percentOfPeakThroughput': value['percentOfPeakThroughput'],
53
+ };
54
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { MigrationIssue } from './MigrationIssue.js';
13
13
  import type { OsInfo } from './OsInfo.js';
14
+ import type { IssuesBreakdown } from './IssuesBreakdown.js';
14
15
  import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
15
16
  import type { DiskTypeSummary } from './DiskTypeSummary.js';
16
17
  import type { VMResourceBreakdown } from './VMResourceBreakdown.js';
@@ -177,6 +178,12 @@ export interface VMs {
177
178
  * @memberof VMs
178
179
  */
179
180
  migrationWarnings: Array<MigrationIssue>;
181
+ /**
182
+ *
183
+ * @type {IssuesBreakdown}
184
+ * @memberof VMs
185
+ */
186
+ issuesBreakdown?: IssuesBreakdown;
180
187
  }
181
188
  /**
182
189
  * Check if a given object implements the VMs interface.
@@ -14,6 +14,7 @@
14
14
  import { mapValues } from '../runtime.js';
15
15
  import { MigrationIssueFromJSON, MigrationIssueToJSON, } from './MigrationIssue.js';
16
16
  import { OsInfoFromJSON, OsInfoToJSON, } from './OsInfo.js';
17
+ import { IssuesBreakdownFromJSON, IssuesBreakdownToJSON, } from './IssuesBreakdown.js';
17
18
  import { DiskSizeTierSummaryFromJSON, DiskSizeTierSummaryToJSON, } from './DiskSizeTierSummary.js';
18
19
  import { DiskTypeSummaryFromJSON, DiskTypeSummaryToJSON, } from './DiskTypeSummary.js';
19
20
  import { VMResourceBreakdownFromJSON, VMResourceBreakdownToJSON, } from './VMResourceBreakdown.js';
@@ -71,6 +72,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
71
72
  'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
72
73
  'notMigratableReasons': (json['notMigratableReasons'].map(MigrationIssueFromJSON)),
73
74
  'migrationWarnings': (json['migrationWarnings'].map(MigrationIssueFromJSON)),
75
+ 'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : IssuesBreakdownFromJSON(json['issuesBreakdown']),
74
76
  };
75
77
  }
76
78
  export function VMsToJSON(json) {
@@ -103,5 +105,6 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
103
105
  'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
104
106
  'notMigratableReasons': (value['notMigratableReasons'].map(MigrationIssueToJSON)),
105
107
  'migrationWarnings': (value['migrationWarnings'].map(MigrationIssueToJSON)),
108
+ 'issuesBreakdown': IssuesBreakdownToJSON(value['issuesBreakdown']),
106
109
  };
107
110
  }
@@ -14,6 +14,7 @@ import type { GuestNetwork } from './GuestNetwork.js';
14
14
  import type { VMIssue } from './VMIssue.js';
15
15
  import type { VMDevice } from './VMDevice.js';
16
16
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
17
+ import type { Process } from './Process.js';
17
18
  import type { VMDisk } from './VMDisk.js';
18
19
  import type { VmInspectionResults } from './VmInspectionResults.js';
19
20
  /**
@@ -226,6 +227,12 @@ export interface VirtualMachineDetail {
226
227
  * @memberof VirtualMachineDetail
227
228
  */
228
229
  utilization?: VmUtilizationDetails;
230
+ /**
231
+ * List of processes detected on this VM
232
+ * @type {Array<Process>}
233
+ * @memberof VirtualMachineDetail
234
+ */
235
+ processes?: Array<Process>;
229
236
  }
230
237
  /**
231
238
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -16,6 +16,7 @@ import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
16
16
  import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
17
17
  import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
18
18
  import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
19
+ import { ProcessFromJSON, ProcessToJSON, } from './Process.js';
19
20
  import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
20
21
  import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
21
22
  /**
@@ -84,6 +85,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
84
85
  'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
85
86
  'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
86
87
  'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
88
+ 'processes': json['processes'] == null ? undefined : (json['processes'].map(ProcessFromJSON)),
87
89
  };
88
90
  }
89
91
  export function VirtualMachineDetailToJSON(json) {
@@ -128,5 +130,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
128
130
  'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
129
131
  'inspection': VmInspectionResultsToJSON(value['inspection']),
130
132
  'utilization': VmUtilizationDetailsToJSON(value['utilization']),
133
+ 'processes': value['processes'] == null ? undefined : (value['processes'].map(ProcessToJSON)),
131
134
  };
132
135
  }
@@ -3,6 +3,7 @@ export * from './AgentStatus.js';
3
3
  export * from './ApplicationListResponse.js';
4
4
  export * from './ApplicationOverview.js';
5
5
  export * from './ApplicationVM.js';
6
+ export * from './BatchUpdateExclusionRequest.js';
6
7
  export * from './BenchmarkRun.js';
7
8
  export * from './CapabilityStatus.js';
8
9
  export * from './CapabilityStatusCapabilities.js';
@@ -37,12 +38,14 @@ export * from './Infra.js';
37
38
  export * from './InspectorStatus.js';
38
39
  export * from './Inventory.js';
39
40
  export * from './InventoryData.js';
41
+ export * from './IssuesBreakdown.js';
40
42
  export * from './MigrationIssue.js';
41
43
  export * from './Network.js';
42
44
  export * from './OperationCapability.js';
43
45
  export * from './OsInfo.js';
44
46
  export * from './PairCapability.js';
45
47
  export * from './PairCapabilityRequest.js';
48
+ export * from './Process.js';
46
49
  export * from './PutForecasterCredentials403Response.js';
47
50
  export * from './RightsizingClusterListResponse.js';
48
51
  export * from './RightsizingClusterResponse.js';
@@ -55,6 +58,7 @@ export * from './RightsizingReportSummary.js';
55
58
  export * from './RightsizingVMReport.js';
56
59
  export * from './StartInspectionRequest.js';
57
60
  export * from './StopForecasterPair202Response.js';
61
+ export * from './StorageIoConfiguration.js';
58
62
  export * from './UpdateGroupRequest.js';
59
63
  export * from './UpdateInventory.js';
60
64
  export * from './UpdateLabelVMsRequest.js';
@@ -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';
@@ -39,12 +40,14 @@ export * from './Infra.js';
39
40
  export * from './InspectorStatus.js';
40
41
  export * from './Inventory.js';
41
42
  export * from './InventoryData.js';
43
+ export * from './IssuesBreakdown.js';
42
44
  export * from './MigrationIssue.js';
43
45
  export * from './Network.js';
44
46
  export * from './OperationCapability.js';
45
47
  export * from './OsInfo.js';
46
48
  export * from './PairCapability.js';
47
49
  export * from './PairCapabilityRequest.js';
50
+ export * from './Process.js';
48
51
  export * from './PutForecasterCredentials403Response.js';
49
52
  export * from './RightsizingClusterListResponse.js';
50
53
  export * from './RightsizingClusterResponse.js';
@@ -57,6 +60,7 @@ export * from './RightsizingReportSummary.js';
57
60
  export * from './RightsizingVMReport.js';
58
61
  export * from './StartInspectionRequest.js';
59
62
  export * from './StopForecasterPair202Response.js';
63
+ export * from './StorageIoConfiguration.js';
60
64
  export * from './UpdateGroupRequest.js';
61
65
  export * from './UpdateInventory.js';
62
66
  export * from './UpdateLabelVMsRequest.js';
@@ -0,0 +1,38 @@
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: v1
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 BatchUpdateExclusionRequest
16
+ */
17
+ export interface BatchUpdateExclusionRequest {
18
+ /**
19
+ * VM IDs to update
20
+ * @type {Array<string>}
21
+ * @memberof BatchUpdateExclusionRequest
22
+ */
23
+ vmIds: Array<string>;
24
+ /**
25
+ * Exclusion state to set for all VMs
26
+ * @type {boolean}
27
+ * @memberof BatchUpdateExclusionRequest
28
+ */
29
+ migrationExcluded: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the BatchUpdateExclusionRequest interface.
33
+ */
34
+ export declare function instanceOfBatchUpdateExclusionRequest(value: object): value is BatchUpdateExclusionRequest;
35
+ export declare function BatchUpdateExclusionRequestFromJSON(json: any): BatchUpdateExclusionRequest;
36
+ export declare function BatchUpdateExclusionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdateExclusionRequest;
37
+ export declare function BatchUpdateExclusionRequestToJSON(json: any): BatchUpdateExclusionRequest;
38
+ export declare function BatchUpdateExclusionRequestToJSONTyped(value?: BatchUpdateExclusionRequest | 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: v1
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.instanceOfBatchUpdateExclusionRequest = instanceOfBatchUpdateExclusionRequest;
17
+ exports.BatchUpdateExclusionRequestFromJSON = BatchUpdateExclusionRequestFromJSON;
18
+ exports.BatchUpdateExclusionRequestFromJSONTyped = BatchUpdateExclusionRequestFromJSONTyped;
19
+ exports.BatchUpdateExclusionRequestToJSON = BatchUpdateExclusionRequestToJSON;
20
+ exports.BatchUpdateExclusionRequestToJSONTyped = BatchUpdateExclusionRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BatchUpdateExclusionRequest interface.
23
+ */
24
+ function instanceOfBatchUpdateExclusionRequest(value) {
25
+ if (!('vmIds' in value) || value['vmIds'] === undefined)
26
+ return false;
27
+ if (!('migrationExcluded' in value) || value['migrationExcluded'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function BatchUpdateExclusionRequestFromJSON(json) {
32
+ return BatchUpdateExclusionRequestFromJSONTyped(json, false);
33
+ }
34
+ function BatchUpdateExclusionRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'vmIds': json['vmIds'],
40
+ 'migrationExcluded': json['migrationExcluded'],
41
+ };
42
+ }
43
+ function BatchUpdateExclusionRequestToJSON(json) {
44
+ return BatchUpdateExclusionRequestToJSONTyped(json, false);
45
+ }
46
+ function BatchUpdateExclusionRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'vmIds': value['vmIds'],
52
+ 'migrationExcluded': value['migrationExcluded'],
53
+ };
54
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -69,6 +70,12 @@ export interface Datastore {
69
70
  * @memberof Datastore
70
71
  */
71
72
  hostId?: string | null;
73
+ /**
74
+ *
75
+ * @type {StorageIoConfiguration}
76
+ * @memberof Datastore
77
+ */
78
+ storageIoConfiguration?: StorageIoConfiguration;
72
79
  }
73
80
  /**
74
81
  * Check if a given object implements the Datastore interface.
@@ -18,6 +18,7 @@ exports.DatastoreFromJSON = DatastoreFromJSON;
18
18
  exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
19
19
  exports.DatastoreToJSON = DatastoreToJSON;
20
20
  exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
21
+ const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
21
22
  /**
22
23
  * Check if a given object implements the Datastore interface.
23
24
  */
@@ -57,6 +58,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
57
58
  'protocolType': json['protocolType'],
58
59
  'model': json['model'],
59
60
  'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
61
+ 'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : (0, StorageIoConfiguration_js_1.StorageIoConfigurationFromJSON)(json['storageIoConfiguration']),
60
62
  };
61
63
  }
62
64
  function DatastoreToJSON(json) {
@@ -76,5 +78,6 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
76
78
  'protocolType': value['protocolType'],
77
79
  'model': value['model'],
78
80
  'hostId': value['hostId'],
81
+ 'storageIoConfiguration': (0, StorageIoConfiguration_js_1.StorageIoConfigurationToJSON)(value['storageIoConfiguration']),
79
82
  };
80
83
  }
@@ -0,0 +1,56 @@
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: v1
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 IssuesBreakdown
16
+ */
17
+ export interface IssuesBreakdown {
18
+ /**
19
+ * Number of VMs with at least one Critical issue
20
+ * @type {number}
21
+ * @memberof IssuesBreakdown
22
+ */
23
+ critical: number;
24
+ /**
25
+ * Number of VMs with at least one Warning issue
26
+ * @type {number}
27
+ * @memberof IssuesBreakdown
28
+ */
29
+ warning: number;
30
+ /**
31
+ * Number of VMs with at least one Information issue
32
+ * @type {number}
33
+ * @memberof IssuesBreakdown
34
+ */
35
+ information: number;
36
+ /**
37
+ * Number of VMs with at least one Advisory issue
38
+ * @type {number}
39
+ * @memberof IssuesBreakdown
40
+ */
41
+ advisory: number;
42
+ /**
43
+ * Number of VMs with at least one Error issue
44
+ * @type {number}
45
+ * @memberof IssuesBreakdown
46
+ */
47
+ error: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the IssuesBreakdown interface.
51
+ */
52
+ export declare function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown;
53
+ export declare function IssuesBreakdownFromJSON(json: any): IssuesBreakdown;
54
+ export declare function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown;
55
+ export declare function IssuesBreakdownToJSON(json: any): IssuesBreakdown;
56
+ export declare function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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: v1
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.instanceOfIssuesBreakdown = instanceOfIssuesBreakdown;
17
+ exports.IssuesBreakdownFromJSON = IssuesBreakdownFromJSON;
18
+ exports.IssuesBreakdownFromJSONTyped = IssuesBreakdownFromJSONTyped;
19
+ exports.IssuesBreakdownToJSON = IssuesBreakdownToJSON;
20
+ exports.IssuesBreakdownToJSONTyped = IssuesBreakdownToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IssuesBreakdown interface.
23
+ */
24
+ function instanceOfIssuesBreakdown(value) {
25
+ if (!('critical' in value) || value['critical'] === undefined)
26
+ return false;
27
+ if (!('warning' in value) || value['warning'] === undefined)
28
+ return false;
29
+ if (!('information' in value) || value['information'] === undefined)
30
+ return false;
31
+ if (!('advisory' in value) || value['advisory'] === undefined)
32
+ return false;
33
+ if (!('error' in value) || value['error'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function IssuesBreakdownFromJSON(json) {
38
+ return IssuesBreakdownFromJSONTyped(json, false);
39
+ }
40
+ function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'critical': json['critical'],
46
+ 'warning': json['warning'],
47
+ 'information': json['information'],
48
+ 'advisory': json['advisory'],
49
+ 'error': json['error'],
50
+ };
51
+ }
52
+ function IssuesBreakdownToJSON(json) {
53
+ return IssuesBreakdownToJSONTyped(json, false);
54
+ }
55
+ function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'critical': value['critical'],
61
+ 'warning': value['warning'],
62
+ 'information': value['information'],
63
+ 'advisory': value['advisory'],
64
+ 'error': value['error'],
65
+ };
66
+ }
@@ -0,0 +1,38 @@
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: v1
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 Process
16
+ */
17
+ export interface Process {
18
+ /**
19
+ * Name of the process
20
+ * @type {string}
21
+ * @memberof Process
22
+ */
23
+ name: string;
24
+ /**
25
+ * Version of the process
26
+ * @type {string}
27
+ * @memberof Process
28
+ */
29
+ version?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the Process interface.
33
+ */
34
+ export declare function instanceOfProcess(value: object): value is Process;
35
+ export declare function ProcessFromJSON(json: any): Process;
36
+ export declare function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process;
37
+ export declare function ProcessToJSON(json: any): Process;
38
+ export declare function ProcessToJSONTyped(value?: Process | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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: v1
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.instanceOfProcess = instanceOfProcess;
17
+ exports.ProcessFromJSON = ProcessFromJSON;
18
+ exports.ProcessFromJSONTyped = ProcessFromJSONTyped;
19
+ exports.ProcessToJSON = ProcessToJSON;
20
+ exports.ProcessToJSONTyped = ProcessToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the Process interface.
23
+ */
24
+ function instanceOfProcess(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ProcessFromJSON(json) {
30
+ return ProcessFromJSONTyped(json, false);
31
+ }
32
+ function ProcessFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'version': json['version'] == null ? undefined : json['version'],
39
+ };
40
+ }
41
+ function ProcessToJSON(json) {
42
+ return ProcessToJSONTyped(json, false);
43
+ }
44
+ function ProcessToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'name': value['name'],
50
+ 'version': value['version'],
51
+ };
52
+ }