@openshift-migration-advisor/agent-sdk 0.16.0-f224c4e8e35b → 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 (38) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +9 -7
  3. package/dist/apis/DefaultApi.d.ts +36 -0
  4. package/dist/apis/DefaultApi.js +40 -0
  5. package/dist/esm/apis/DefaultApi.d.ts +36 -0
  6. package/dist/esm/apis/DefaultApi.js +40 -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/Datastore.js +1 -1
  10. package/dist/esm/models/Host.js +3 -3
  11. package/dist/esm/models/OsInfo.d.ts +16 -0
  12. package/dist/esm/models/OsInfo.js +11 -0
  13. package/dist/esm/models/index.d.ts +1 -0
  14. package/dist/esm/models/index.js +1 -0
  15. package/dist/esm/runtime.d.ts +1 -0
  16. package/dist/esm/runtime.js +4 -0
  17. package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
  18. package/dist/models/BatchUpdateExclusionRequest.js +54 -0
  19. package/dist/models/Datastore.js +1 -1
  20. package/dist/models/Host.js +3 -3
  21. package/dist/models/OsInfo.d.ts +16 -0
  22. package/dist/models/OsInfo.js +12 -0
  23. package/dist/models/index.d.ts +1 -0
  24. package/dist/models/index.js +1 -0
  25. package/dist/runtime.d.ts +1 -0
  26. package/dist/runtime.js +5 -0
  27. package/docs/BatchUpdateExclusionRequest.md +36 -0
  28. package/docs/DefaultApi.md +69 -0
  29. package/docs/OsInfo.md +2 -0
  30. package/package.json +1 -1
  31. package/src/apis/DefaultApi.ts +78 -0
  32. package/src/models/BatchUpdateExclusionRequest.ts +75 -0
  33. package/src/models/Datastore.ts +1 -1
  34. package/src/models/Host.ts +3 -3
  35. package/src/models/OsInfo.ts +21 -0
  36. package/src/models/index.ts +1 -0
  37. package/src/runtime.ts +5 -0
  38. package/tsconfig.json +1 -1
@@ -7,6 +7,7 @@ docs/AgentStatus.md
7
7
  docs/ApplicationListResponse.md
8
8
  docs/ApplicationOverview.md
9
9
  docs/ApplicationVM.md
10
+ docs/BatchUpdateExclusionRequest.md
10
11
  docs/BenchmarkRun.md
11
12
  docs/CapabilityStatus.md
12
13
  docs/CapabilityStatusCapabilities.md
@@ -92,6 +93,7 @@ src/models/AgentStatus.ts
92
93
  src/models/ApplicationListResponse.ts
93
94
  src/models/ApplicationOverview.ts
94
95
  src/models/ApplicationVM.ts
96
+ src/models/BatchUpdateExclusionRequest.ts
95
97
  src/models/BenchmarkRun.ts
96
98
  src/models/CapabilityStatus.ts
97
99
  src/models/CapabilityStatusCapabilities.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.16.0-f224c4e8e35b
1
+ # @openshift-migration-advisor/agent-sdk@0.17.0-fa395f816b50
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -18,19 +18,19 @@ import {
18
18
  Configuration,
19
19
  DefaultApi,
20
20
  } from '@openshift-migration-advisor/agent-sdk';
21
- import type { CreateGroupOperationRequest } from '@openshift-migration-advisor/agent-sdk';
21
+ import type { BatchUpdateVMExclusionRequest } from '@openshift-migration-advisor/agent-sdk';
22
22
 
23
23
  async function example() {
24
24
  console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
25
25
  const api = new DefaultApi();
26
26
 
27
27
  const body = {
28
- // CreateGroupRequest
29
- createGroupRequest: ...,
30
- } satisfies CreateGroupOperationRequest;
28
+ // BatchUpdateExclusionRequest
29
+ batchUpdateExclusionRequest: ...,
30
+ } satisfies BatchUpdateVMExclusionRequest;
31
31
 
32
32
  try {
33
- const data = await api.createGroup(body);
33
+ const data = await api.batchUpdateVMExclusion(body);
34
34
  console.log(data);
35
35
  } catch (error) {
36
36
  console.error(error);
@@ -50,6 +50,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
50
50
 
51
51
  | Class | Method | HTTP request | Description
52
52
  | ----- | ------ | ------------ | -------------
53
+ *DefaultApi* | [**batchUpdateVMExclusion**](docs/DefaultApi.md#batchupdatevmexclusion) | **POST** /vms/batch-update-exclusion | Batch update VM exclusion status
53
54
  *DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group
54
55
  *DefaultApi* | [**deleteCredentials**](docs/DefaultApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials
55
56
  *DefaultApi* | [**deleteForecasterRun**](docs/DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run
@@ -110,6 +111,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
110
111
  - [ApplicationListResponse](docs/ApplicationListResponse.md)
111
112
  - [ApplicationOverview](docs/ApplicationOverview.md)
112
113
  - [ApplicationVM](docs/ApplicationVM.md)
114
+ - [BatchUpdateExclusionRequest](docs/BatchUpdateExclusionRequest.md)
113
115
  - [BenchmarkRun](docs/BenchmarkRun.md)
114
116
  - [CapabilityStatus](docs/CapabilityStatus.md)
115
117
  - [CapabilityStatusCapabilities](docs/CapabilityStatusCapabilities.md)
@@ -198,7 +200,7 @@ and is automatically generated by the
198
200
  [OpenAPI Generator](https://openapi-generator.tech) project:
199
201
 
200
202
  - API version: `v1`
201
- - Package version: `0.16.0-f224c4e8e35b`
203
+ - Package version: `0.17.0-fa395f816b50`
202
204
  - Generator version: `7.24.0-SNAPSHOT`
203
205
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
204
206
 
@@ -13,6 +13,7 @@ import * as runtime from '../runtime.js';
13
13
  import { type AgentModeRequest } from '../models/AgentModeRequest.js';
14
14
  import { type AgentStatus } from '../models/AgentStatus.js';
15
15
  import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
16
+ import { type BatchUpdateExclusionRequest } from '../models/BatchUpdateExclusionRequest.js';
16
17
  import { type BenchmarkRun } from '../models/BenchmarkRun.js';
17
18
  import { type CapabilityStatus } from '../models/CapabilityStatus.js';
18
19
  import { type CollectorStartRequest } from '../models/CollectorStartRequest.js';
@@ -52,6 +53,9 @@ import { type VirtualMachineListResponse } from '../models/VirtualMachineListRes
52
53
  import { type VirtualMachineUpdateRequest } from '../models/VirtualMachineUpdateRequest.js';
53
54
  import { type VmInspectionStatus } from '../models/VmInspectionStatus.js';
54
55
  import { type VmUtilizationDetails } from '../models/VmUtilizationDetails.js';
56
+ export interface BatchUpdateVMExclusionRequest {
57
+ batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
58
+ }
55
59
  export interface CreateGroupOperationRequest {
56
60
  createGroupRequest: CreateGroupRequest;
57
61
  }
@@ -182,6 +186,26 @@ export interface ValidateInspectorCredentialsRequest {
182
186
  * @interface DefaultApiInterface
183
187
  */
184
188
  export interface DefaultApiInterface {
189
+ /**
190
+ * Creates request options for batchUpdateVMExclusion without sending the request
191
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
192
+ * @throws {RequiredError}
193
+ * @memberof DefaultApiInterface
194
+ */
195
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
196
+ /**
197
+ *
198
+ * @summary Batch update VM exclusion status
199
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ * @memberof DefaultApiInterface
203
+ */
204
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
205
+ /**
206
+ * Batch update VM exclusion status
207
+ */
208
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
185
209
  /**
186
210
  * Creates request options for createGroup without sending the request
187
211
  * @param {CreateGroupRequest} createGroupRequest
@@ -1227,6 +1251,18 @@ export interface DefaultApiInterface {
1227
1251
  *
1228
1252
  */
1229
1253
  export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1254
+ /**
1255
+ * Creates request options for batchUpdateVMExclusion without sending the request
1256
+ */
1257
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
1258
+ /**
1259
+ * Batch update VM exclusion status
1260
+ */
1261
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1262
+ /**
1263
+ * Batch update VM exclusion status
1264
+ */
1265
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1230
1266
  /**
1231
1267
  * Creates request options for createGroup without sending the request
1232
1268
  */
@@ -27,6 +27,7 @@ const runtime = require("../runtime.js");
27
27
  const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
28
28
  const AgentStatus_js_1 = require("../models/AgentStatus.js");
29
29
  const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
30
+ const BatchUpdateExclusionRequest_js_1 = require("../models/BatchUpdateExclusionRequest.js");
30
31
  const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
31
32
  const CapabilityStatus_js_1 = require("../models/CapabilityStatus.js");
32
33
  const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
@@ -70,6 +71,45 @@ const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
70
71
  *
71
72
  */
72
73
  class DefaultApi extends runtime.BaseAPI {
74
+ /**
75
+ * Creates request options for batchUpdateVMExclusion without sending the request
76
+ */
77
+ batchUpdateVMExclusionRequestOpts(requestParameters) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['batchUpdateExclusionRequest'] == null) {
80
+ throw new runtime.RequiredError('batchUpdateExclusionRequest', 'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ headerParameters['Content-Type'] = 'application/json';
85
+ let urlPath = `/vms/batch-update-exclusion`;
86
+ return {
87
+ path: urlPath,
88
+ method: 'POST',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ body: (0, BatchUpdateExclusionRequest_js_1.BatchUpdateExclusionRequestToJSON)(requestParameters['batchUpdateExclusionRequest']),
92
+ };
93
+ });
94
+ }
95
+ /**
96
+ * Batch update VM exclusion status
97
+ */
98
+ batchUpdateVMExclusionRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.batchUpdateVMExclusionRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
102
+ return new runtime.VoidApiResponse(response);
103
+ });
104
+ }
105
+ /**
106
+ * Batch update VM exclusion status
107
+ */
108
+ batchUpdateVMExclusion(requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ yield this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
111
+ });
112
+ }
73
113
  /**
74
114
  * Creates request options for createGroup without sending the request
75
115
  */
@@ -13,6 +13,7 @@ import * as runtime from '../runtime.js';
13
13
  import { type AgentModeRequest } from '../models/AgentModeRequest.js';
14
14
  import { type AgentStatus } from '../models/AgentStatus.js';
15
15
  import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
16
+ import { type BatchUpdateExclusionRequest } from '../models/BatchUpdateExclusionRequest.js';
16
17
  import { type BenchmarkRun } from '../models/BenchmarkRun.js';
17
18
  import { type CapabilityStatus } from '../models/CapabilityStatus.js';
18
19
  import { type CollectorStartRequest } from '../models/CollectorStartRequest.js';
@@ -52,6 +53,9 @@ import { type VirtualMachineListResponse } from '../models/VirtualMachineListRes
52
53
  import { type VirtualMachineUpdateRequest } from '../models/VirtualMachineUpdateRequest.js';
53
54
  import { type VmInspectionStatus } from '../models/VmInspectionStatus.js';
54
55
  import { type VmUtilizationDetails } from '../models/VmUtilizationDetails.js';
56
+ export interface BatchUpdateVMExclusionRequest {
57
+ batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
58
+ }
55
59
  export interface CreateGroupOperationRequest {
56
60
  createGroupRequest: CreateGroupRequest;
57
61
  }
@@ -182,6 +186,26 @@ export interface ValidateInspectorCredentialsRequest {
182
186
  * @interface DefaultApiInterface
183
187
  */
184
188
  export interface DefaultApiInterface {
189
+ /**
190
+ * Creates request options for batchUpdateVMExclusion without sending the request
191
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
192
+ * @throws {RequiredError}
193
+ * @memberof DefaultApiInterface
194
+ */
195
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
196
+ /**
197
+ *
198
+ * @summary Batch update VM exclusion status
199
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ * @memberof DefaultApiInterface
203
+ */
204
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
205
+ /**
206
+ * Batch update VM exclusion status
207
+ */
208
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
185
209
  /**
186
210
  * Creates request options for createGroup without sending the request
187
211
  * @param {CreateGroupRequest} createGroupRequest
@@ -1227,6 +1251,18 @@ export interface DefaultApiInterface {
1227
1251
  *
1228
1252
  */
1229
1253
  export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1254
+ /**
1255
+ * Creates request options for batchUpdateVMExclusion without sending the request
1256
+ */
1257
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
1258
+ /**
1259
+ * Batch update VM exclusion status
1260
+ */
1261
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1262
+ /**
1263
+ * Batch update VM exclusion status
1264
+ */
1265
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1230
1266
  /**
1231
1267
  * Creates request options for createGroup without sending the request
1232
1268
  */
@@ -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
  */
@@ -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
+ }
@@ -49,7 +49,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
50
50
  'protocolType': json['protocolType'],
51
51
  'model': json['model'],
52
- 'hostId': json['hostId'] == null ? undefined : json['hostId'],
52
+ 'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
53
53
  };
54
54
  }
55
55
  export function DatastoreToJSON(json) {
@@ -32,9 +32,9 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'id': json['id'] == null ? undefined : json['id'],
33
33
  'vendor': json['vendor'],
34
34
  'model': json['model'],
35
- 'cpuCores': json['cpuCores'] == null ? undefined : json['cpuCores'],
36
- 'cpuSockets': json['cpuSockets'] == null ? undefined : json['cpuSockets'],
37
- 'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
35
+ 'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
36
+ 'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
37
+ 'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
38
38
  };
39
39
  }
40
40
  export function HostToJSON(json) {
@@ -27,6 +27,12 @@ export interface OsInfo {
27
27
  * @memberof OsInfo
28
28
  */
29
29
  supported: boolean;
30
+ /**
31
+ * OS support tier per Red Hat KCS article 4234591
32
+ * @type {OsInfoSupportTierEnum}
33
+ * @memberof OsInfo
34
+ */
35
+ supportTier?: OsInfoSupportTierEnum;
30
36
  /**
31
37
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
32
38
  * @type {string}
@@ -34,6 +40,16 @@ export interface OsInfo {
34
40
  */
35
41
  upgradeRecommendation?: string;
36
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const OsInfoSupportTierEnum: {
47
+ readonly Certified: "certified";
48
+ readonly VendorSupported: "vendor_supported";
49
+ readonly CommunitySupported: "community_supported";
50
+ readonly SpecialHandling: "special_handling";
51
+ };
52
+ export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
37
53
  /**
38
54
  * Check if a given object implements the OsInfo interface.
39
55
  */
@@ -11,6 +11,15 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const OsInfoSupportTierEnum = {
18
+ Certified: 'certified',
19
+ VendorSupported: 'vendor_supported',
20
+ CommunitySupported: 'community_supported',
21
+ SpecialHandling: 'special_handling'
22
+ };
14
23
  /**
15
24
  * Check if a given object implements the OsInfo interface.
16
25
  */
@@ -31,6 +40,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
31
40
  return {
32
41
  'count': json['count'],
33
42
  'supported': json['supported'],
43
+ 'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
34
44
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
35
45
  };
36
46
  }
@@ -44,6 +54,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
44
54
  return {
45
55
  'count': value['count'],
46
56
  'supported': value['supported'],
57
+ 'supportTier': value['supportTier'],
47
58
  'upgradeRecommendation': value['upgradeRecommendation'],
48
59
  };
49
60
  }
@@ -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';
@@ -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';
@@ -127,6 +127,7 @@ export declare function exists(json: any, key: string): boolean;
127
127
  export declare function mapValues(data: any, fn: (item: any) => any): {
128
128
  [key: string]: any;
129
129
  };
130
+ export declare function anyToJSON(value: any): any;
130
131
  export declare function canConsumeForm(consumes: Consume[]): boolean;
131
132
  export interface Consume {
132
133
  contentType: string;
@@ -296,6 +296,10 @@ export function mapValues(data, fn) {
296
296
  }
297
297
  return result;
298
298
  }
299
+ // Pass-through serializer for `any`-typed properties in form data. See #1877.
300
+ export function anyToJSON(value) {
301
+ return value;
302
+ }
299
303
  export function canConsumeForm(consumes) {
300
304
  var _a;
301
305
  for (const consume of consumes) {
@@ -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
+ }
@@ -56,7 +56,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
57
57
  'protocolType': json['protocolType'],
58
58
  'model': json['model'],
59
- 'hostId': json['hostId'] == null ? undefined : json['hostId'],
59
+ 'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
60
60
  };
61
61
  }
62
62
  function DatastoreToJSON(json) {
@@ -39,9 +39,9 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'id': json['id'] == null ? undefined : json['id'],
40
40
  'vendor': json['vendor'],
41
41
  'model': json['model'],
42
- 'cpuCores': json['cpuCores'] == null ? undefined : json['cpuCores'],
43
- 'cpuSockets': json['cpuSockets'] == null ? undefined : json['cpuSockets'],
44
- 'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
42
+ 'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
43
+ 'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
44
+ 'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
45
45
  };
46
46
  }
47
47
  function HostToJSON(json) {
@@ -27,6 +27,12 @@ export interface OsInfo {
27
27
  * @memberof OsInfo
28
28
  */
29
29
  supported: boolean;
30
+ /**
31
+ * OS support tier per Red Hat KCS article 4234591
32
+ * @type {OsInfoSupportTierEnum}
33
+ * @memberof OsInfo
34
+ */
35
+ supportTier?: OsInfoSupportTierEnum;
30
36
  /**
31
37
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
32
38
  * @type {string}
@@ -34,6 +40,16 @@ export interface OsInfo {
34
40
  */
35
41
  upgradeRecommendation?: string;
36
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const OsInfoSupportTierEnum: {
47
+ readonly Certified: "certified";
48
+ readonly VendorSupported: "vendor_supported";
49
+ readonly CommunitySupported: "community_supported";
50
+ readonly SpecialHandling: "special_handling";
51
+ };
52
+ export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
37
53
  /**
38
54
  * Check if a given object implements the OsInfo interface.
39
55
  */
@@ -13,11 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OsInfoSupportTierEnum = void 0;
16
17
  exports.instanceOfOsInfo = instanceOfOsInfo;
17
18
  exports.OsInfoFromJSON = OsInfoFromJSON;
18
19
  exports.OsInfoFromJSONTyped = OsInfoFromJSONTyped;
19
20
  exports.OsInfoToJSON = OsInfoToJSON;
20
21
  exports.OsInfoToJSONTyped = OsInfoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.OsInfoSupportTierEnum = {
26
+ Certified: 'certified',
27
+ VendorSupported: 'vendor_supported',
28
+ CommunitySupported: 'community_supported',
29
+ SpecialHandling: 'special_handling'
30
+ };
21
31
  /**
22
32
  * Check if a given object implements the OsInfo interface.
23
33
  */
@@ -38,6 +48,7 @@ function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
38
48
  return {
39
49
  'count': json['count'],
40
50
  'supported': json['supported'],
51
+ 'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
41
52
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
42
53
  };
43
54
  }
@@ -51,6 +62,7 @@ function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
51
62
  return {
52
63
  'count': value['count'],
53
64
  'supported': value['supported'],
65
+ 'supportTier': value['supportTier'],
54
66
  'upgradeRecommendation': value['upgradeRecommendation'],
55
67
  };
56
68
  }
@@ -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';
@@ -21,6 +21,7 @@ __exportStar(require("./AgentStatus.js"), exports);
21
21
  __exportStar(require("./ApplicationListResponse.js"), exports);
22
22
  __exportStar(require("./ApplicationOverview.js"), exports);
23
23
  __exportStar(require("./ApplicationVM.js"), exports);
24
+ __exportStar(require("./BatchUpdateExclusionRequest.js"), exports);
24
25
  __exportStar(require("./BenchmarkRun.js"), exports);
25
26
  __exportStar(require("./CapabilityStatus.js"), exports);
26
27
  __exportStar(require("./CapabilityStatusCapabilities.js"), exports);
package/dist/runtime.d.ts CHANGED
@@ -127,6 +127,7 @@ export declare function exists(json: any, key: string): boolean;
127
127
  export declare function mapValues(data: any, fn: (item: any) => any): {
128
128
  [key: string]: any;
129
129
  };
130
+ export declare function anyToJSON(value: any): any;
130
131
  export declare function canConsumeForm(consumes: Consume[]): boolean;
131
132
  export interface Consume {
132
133
  contentType: string;
package/dist/runtime.js CHANGED
@@ -26,6 +26,7 @@ exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = ex
26
26
  exports.querystring = querystring;
27
27
  exports.exists = exists;
28
28
  exports.mapValues = mapValues;
29
+ exports.anyToJSON = anyToJSON;
29
30
  exports.canConsumeForm = canConsumeForm;
30
31
  exports.BASE_PATH = "https://raw.githubusercontent.com/api/v1".replace(/\/+$/, "");
31
32
  class Configuration {
@@ -308,6 +309,10 @@ function mapValues(data, fn) {
308
309
  }
309
310
  return result;
310
311
  }
312
+ // Pass-through serializer for `any`-typed properties in form data. See #1877.
313
+ function anyToJSON(value) {
314
+ return value;
315
+ }
311
316
  function canConsumeForm(consumes) {
312
317
  var _a;
313
318
  for (const consume of consumes) {
@@ -0,0 +1,36 @@
1
+
2
+ # BatchUpdateExclusionRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `vmIds` | Array&lt;string&gt;
10
+ `migrationExcluded` | boolean
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { BatchUpdateExclusionRequest } from '@openshift-migration-advisor/agent-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "vmIds": null,
20
+ "migrationExcluded": null,
21
+ } satisfies BatchUpdateExclusionRequest
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as BatchUpdateExclusionRequest
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -4,6 +4,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**batchUpdateVMExclusion**](DefaultApi.md#batchupdatevmexclusion) | **POST** /vms/batch-update-exclusion | Batch update VM exclusion status |
7
8
  | [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
8
9
  | [**deleteCredentials**](DefaultApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials |
9
10
  | [**deleteForecasterRun**](DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run |
@@ -58,6 +59,74 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
58
59
 
59
60
 
60
61
 
62
+ ## batchUpdateVMExclusion
63
+
64
+ > batchUpdateVMExclusion(batchUpdateExclusionRequest)
65
+
66
+ Batch update VM exclusion status
67
+
68
+ ### Example
69
+
70
+ ```ts
71
+ import {
72
+ Configuration,
73
+ DefaultApi,
74
+ } from '@openshift-migration-advisor/agent-sdk';
75
+ import type { BatchUpdateVMExclusionRequest } from '@openshift-migration-advisor/agent-sdk';
76
+
77
+ async function example() {
78
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
79
+ const api = new DefaultApi();
80
+
81
+ const body = {
82
+ // BatchUpdateExclusionRequest
83
+ batchUpdateExclusionRequest: ...,
84
+ } satisfies BatchUpdateVMExclusionRequest;
85
+
86
+ try {
87
+ const data = await api.batchUpdateVMExclusion(body);
88
+ console.log(data);
89
+ } catch (error) {
90
+ console.error(error);
91
+ }
92
+ }
93
+
94
+ // Run the test
95
+ example().catch(console.error);
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+
101
+ | Name | Type | Description | Notes |
102
+ |------------- | ------------- | ------------- | -------------|
103
+ | **batchUpdateExclusionRequest** | [BatchUpdateExclusionRequest](BatchUpdateExclusionRequest.md) | | |
104
+
105
+ ### Return type
106
+
107
+ `void` (Empty response body)
108
+
109
+ ### Authorization
110
+
111
+ No authorization required
112
+
113
+ ### HTTP request headers
114
+
115
+ - **Content-Type**: `application/json`
116
+ - **Accept**: Not defined
117
+
118
+
119
+ ### HTTP response details
120
+ | Status code | Description | Response headers |
121
+ |-------------|-------------|------------------|
122
+ | **200** | All VMs updated successfully | - |
123
+ | **400** | Invalid request | - |
124
+ | **404** | One or more VMs not found | - |
125
+ | **500** | Internal server error | - |
126
+
127
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
128
+
129
+
61
130
  ## createGroup
62
131
 
63
132
  > Group createGroup(createGroupRequest)
package/docs/OsInfo.md CHANGED
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `count` | number
10
10
  `supported` | boolean
11
+ `supportTier` | string
11
12
  `upgradeRecommendation` | string
12
13
 
13
14
  ## Example
@@ -19,6 +20,7 @@ import type { OsInfo } from '@openshift-migration-advisor/agent-sdk'
19
20
  const example = {
20
21
  "count": null,
21
22
  "supported": null,
23
+ "supportTier": null,
22
24
  "upgradeRecommendation": null,
23
25
  } satisfies OsInfo
24
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.16.0-f224c4e8e35b",
3
+ "version": "0.17.0-fa395f816b50",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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,
@@ -239,6 +244,10 @@ import {
239
244
  VmUtilizationDetailsToJSON,
240
245
  } from '../models/VmUtilizationDetails.js';
241
246
 
247
+ export interface BatchUpdateVMExclusionRequest {
248
+ batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
249
+ }
250
+
242
251
  export interface CreateGroupOperationRequest {
243
252
  createGroupRequest: CreateGroupRequest;
244
253
  }
@@ -405,6 +414,29 @@ export interface ValidateInspectorCredentialsRequest {
405
414
  * @interface DefaultApiInterface
406
415
  */
407
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
+
408
440
  /**
409
441
  * Creates request options for createGroup without sending the request
410
442
  * @param {CreateGroupRequest} createGroupRequest
@@ -1605,6 +1637,52 @@ export interface DefaultApiInterface {
1605
1637
  */
1606
1638
  export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1607
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
+
1608
1686
  /**
1609
1687
  * Creates request options for createGroup without sending the request
1610
1688
  */
@@ -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
+
@@ -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
 
@@ -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';
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
  ]