@openshift-migration-advisor/agent-sdk 0.17.0 → 0.18.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.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +11 -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/StorageIoConfiguration.d.ts +58 -0
  14. package/dist/esm/models/StorageIoConfiguration.js +54 -0
  15. package/dist/esm/models/VMs.d.ts +7 -0
  16. package/dist/esm/models/VMs.js +3 -0
  17. package/dist/esm/models/index.d.ts +3 -0
  18. package/dist/esm/models/index.js +3 -0
  19. package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
  20. package/dist/models/BatchUpdateExclusionRequest.js +54 -0
  21. package/dist/models/Datastore.d.ts +7 -0
  22. package/dist/models/Datastore.js +3 -0
  23. package/dist/models/IssuesBreakdown.d.ts +56 -0
  24. package/dist/models/IssuesBreakdown.js +66 -0
  25. package/dist/models/StorageIoConfiguration.d.ts +58 -0
  26. package/dist/models/StorageIoConfiguration.js +62 -0
  27. package/dist/models/VMs.d.ts +7 -0
  28. package/dist/models/VMs.js +3 -0
  29. package/dist/models/index.d.ts +3 -0
  30. package/dist/models/index.js +3 -0
  31. package/docs/BatchUpdateExclusionRequest.md +36 -0
  32. package/docs/Datastore.md +2 -0
  33. package/docs/DefaultApi.md +69 -139
  34. package/docs/IssuesBreakdown.md +42 -0
  35. package/docs/StorageIoConfiguration.md +40 -0
  36. package/docs/VMs.md +2 -0
  37. package/package.json +1 -1
  38. package/src/apis/DefaultApi.ts +78 -159
  39. package/src/models/BatchUpdateExclusionRequest.ts +75 -0
  40. package/src/models/Datastore.ts +16 -0
  41. package/src/models/IssuesBreakdown.ts +102 -0
  42. package/src/models/StorageIoConfiguration.ts +100 -0
  43. package/src/models/VMs.ts +15 -0
  44. package/src/models/index.ts +3 -0
@@ -24,6 +24,7 @@ import * as runtime from '../runtime.js';
24
24
  import { AgentModeRequestToJSON, } from '../models/AgentModeRequest.js';
25
25
  import { AgentStatusFromJSON, } from '../models/AgentStatus.js';
26
26
  import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
27
+ import { BatchUpdateExclusionRequestToJSON, } from '../models/BatchUpdateExclusionRequest.js';
27
28
  import { BenchmarkRunFromJSON, } from '../models/BenchmarkRun.js';
28
29
  import { CapabilityStatusFromJSON, } from '../models/CapabilityStatus.js';
29
30
  import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js';
@@ -67,6 +68,45 @@ import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js
67
68
  *
68
69
  */
69
70
  export class DefaultApi extends runtime.BaseAPI {
71
+ /**
72
+ * Creates request options for batchUpdateVMExclusion without sending the request
73
+ */
74
+ batchUpdateVMExclusionRequestOpts(requestParameters) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (requestParameters['batchUpdateExclusionRequest'] == null) {
77
+ throw new runtime.RequiredError('batchUpdateExclusionRequest', 'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().');
78
+ }
79
+ const queryParameters = {};
80
+ const headerParameters = {};
81
+ headerParameters['Content-Type'] = 'application/json';
82
+ let urlPath = `/vms/batch-update-exclusion`;
83
+ return {
84
+ path: urlPath,
85
+ method: 'POST',
86
+ headers: headerParameters,
87
+ query: queryParameters,
88
+ body: BatchUpdateExclusionRequestToJSON(requestParameters['batchUpdateExclusionRequest']),
89
+ };
90
+ });
91
+ }
92
+ /**
93
+ * Batch update VM exclusion status
94
+ */
95
+ batchUpdateVMExclusionRaw(requestParameters, initOverrides) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ const requestOptions = yield this.batchUpdateVMExclusionRequestOpts(requestParameters);
98
+ const response = yield this.request(requestOptions, initOverrides);
99
+ return new runtime.VoidApiResponse(response);
100
+ });
101
+ }
102
+ /**
103
+ * Batch update VM exclusion status
104
+ */
105
+ batchUpdateVMExclusion(requestParameters, initOverrides) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ yield this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
108
+ });
109
+ }
70
110
  /**
71
111
  * Creates request options for createGroup without sending the request
72
112
  */
@@ -837,47 +877,6 @@ export class DefaultApi extends runtime.BaseAPI {
837
877
  return yield response.value();
838
878
  });
839
879
  }
840
- /**
841
- * Creates request options for getLatestRightsizingClusters without sending the request
842
- * @deprecated
843
- */
844
- getLatestRightsizingClustersRequestOpts(requestParameters) {
845
- return __awaiter(this, void 0, void 0, function* () {
846
- const queryParameters = {};
847
- if (requestParameters['byExpression'] != null) {
848
- queryParameters['byExpression'] = requestParameters['byExpression'];
849
- }
850
- const headerParameters = {};
851
- let urlPath = `/cluster_rightsizing`;
852
- return {
853
- path: urlPath,
854
- method: 'GET',
855
- headers: headerParameters,
856
- query: queryParameters,
857
- };
858
- });
859
- }
860
- /**
861
- * Get cluster-level utilization aggregates for the latest completed report
862
- * @deprecated
863
- */
864
- getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
865
- return __awaiter(this, void 0, void 0, function* () {
866
- const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
867
- const response = yield this.request(requestOptions, initOverrides);
868
- return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
869
- });
870
- }
871
- /**
872
- * Get cluster-level utilization aggregates for the latest completed report
873
- * @deprecated
874
- */
875
- getLatestRightsizingClusters() {
876
- return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
877
- const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
878
- return yield response.value();
879
- });
880
- }
881
880
  /**
882
881
  * Creates request options for getRightsizingReport without sending the request
883
882
  */
@@ -960,51 +959,6 @@ export class DefaultApi extends runtime.BaseAPI {
960
959
  return yield response.value();
961
960
  });
962
961
  }
963
- /**
964
- * Creates request options for getRightsizingReportClusters without sending the request
965
- * @deprecated
966
- */
967
- getRightsizingReportClustersRequestOpts(requestParameters) {
968
- return __awaiter(this, void 0, void 0, function* () {
969
- if (requestParameters['reportId'] == null) {
970
- throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
971
- }
972
- const queryParameters = {};
973
- if (requestParameters['byExpression'] != null) {
974
- queryParameters['byExpression'] = requestParameters['byExpression'];
975
- }
976
- const headerParameters = {};
977
- let urlPath = `/cluster_rightsizing/{report_id}`;
978
- urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
979
- return {
980
- path: urlPath,
981
- method: 'GET',
982
- headers: headerParameters,
983
- query: queryParameters,
984
- };
985
- });
986
- }
987
- /**
988
- * Get cluster-level utilization aggregates for a specific report
989
- * @deprecated
990
- */
991
- getRightsizingReportClustersRaw(requestParameters, initOverrides) {
992
- return __awaiter(this, void 0, void 0, function* () {
993
- const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
994
- const response = yield this.request(requestOptions, initOverrides);
995
- return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
996
- });
997
- }
998
- /**
999
- * Get cluster-level utilization aggregates for a specific report
1000
- * @deprecated
1001
- */
1002
- getRightsizingReportClusters(requestParameters, initOverrides) {
1003
- return __awaiter(this, void 0, void 0, function* () {
1004
- const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
1005
- return yield response.value();
1006
- });
1007
- }
1008
962
  /**
1009
963
  * Creates request options for getVM without sending the request
1010
964
  */
@@ -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,47 @@
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
+ * Check if a given object implements the BatchUpdateExclusionRequest interface.
16
+ */
17
+ export function instanceOfBatchUpdateExclusionRequest(value) {
18
+ if (!('vmIds' in value) || value['vmIds'] === undefined)
19
+ return false;
20
+ if (!('migrationExcluded' in value) || value['migrationExcluded'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function BatchUpdateExclusionRequestFromJSON(json) {
25
+ return BatchUpdateExclusionRequestFromJSONTyped(json, false);
26
+ }
27
+ export function BatchUpdateExclusionRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'vmIds': json['vmIds'],
33
+ 'migrationExcluded': json['migrationExcluded'],
34
+ };
35
+ }
36
+ export function BatchUpdateExclusionRequestToJSON(json) {
37
+ return BatchUpdateExclusionRequestToJSONTyped(json, false);
38
+ }
39
+ export function BatchUpdateExclusionRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'vmIds': value['vmIds'],
45
+ 'migrationExcluded': value['migrationExcluded'],
46
+ };
47
+ }
@@ -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.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { StorageIoConfigurationFromJSON, StorageIoConfigurationToJSON, } from './StorageIoConfiguration.js';
14
15
  /**
15
16
  * Check if a given object implements the Datastore interface.
16
17
  */
@@ -50,6 +51,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'protocolType': json['protocolType'],
51
52
  'model': json['model'],
52
53
  'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
54
+ 'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
53
55
  };
54
56
  }
55
57
  export function DatastoreToJSON(json) {
@@ -69,5 +71,6 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
69
71
  'protocolType': value['protocolType'],
70
72
  'model': value['model'],
71
73
  'hostId': value['hostId'],
74
+ 'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
72
75
  };
73
76
  }
@@ -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,59 @@
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
+ * Check if a given object implements the IssuesBreakdown interface.
16
+ */
17
+ export function instanceOfIssuesBreakdown(value) {
18
+ if (!('critical' in value) || value['critical'] === undefined)
19
+ return false;
20
+ if (!('warning' in value) || value['warning'] === undefined)
21
+ return false;
22
+ if (!('information' in value) || value['information'] === undefined)
23
+ return false;
24
+ if (!('advisory' in value) || value['advisory'] === undefined)
25
+ return false;
26
+ if (!('error' in value) || value['error'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function IssuesBreakdownFromJSON(json) {
31
+ return IssuesBreakdownFromJSONTyped(json, false);
32
+ }
33
+ export function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'critical': json['critical'],
39
+ 'warning': json['warning'],
40
+ 'information': json['information'],
41
+ 'advisory': json['advisory'],
42
+ 'error': json['error'],
43
+ };
44
+ }
45
+ export function IssuesBreakdownToJSON(json) {
46
+ return IssuesBreakdownToJSONTyped(json, false);
47
+ }
48
+ export function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'critical': value['critical'],
54
+ 'warning': value['warning'],
55
+ 'information': value['information'],
56
+ 'advisory': value['advisory'],
57
+ 'error': value['error'],
58
+ };
59
+ }
@@ -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
  }
@@ -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,6 +38,7 @@ 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';
@@ -55,6 +57,7 @@ export * from './RightsizingReportSummary.js';
55
57
  export * from './RightsizingVMReport.js';
56
58
  export * from './StartInspectionRequest.js';
57
59
  export * from './StopForecasterPair202Response.js';
60
+ export * from './StorageIoConfiguration.js';
58
61
  export * from './UpdateGroupRequest.js';
59
62
  export * from './UpdateInventory.js';
60
63
  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,6 +40,7 @@ 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';
@@ -57,6 +59,7 @@ export * from './RightsizingReportSummary.js';
57
59
  export * from './RightsizingVMReport.js';
58
60
  export * from './StartInspectionRequest.js';
59
61
  export * from './StopForecasterPair202Response.js';
62
+ export * from './StorageIoConfiguration.js';
60
63
  export * from './UpdateGroupRequest.js';
61
64
  export * from './UpdateInventory.js';
62
65
  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;