@openshift-migration-advisor/agent-sdk 0.12.0-f90a4cad59fa → 0.16.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 (95) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +16 -3
  4. package/dist/apis/DefaultApi.d.ts +209 -4
  5. package/dist/apis/DefaultApi.js +229 -0
  6. package/dist/esm/apis/DefaultApi.d.ts +209 -4
  7. package/dist/esm/apis/DefaultApi.js +229 -0
  8. package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
  9. package/dist/esm/models/ApplicationListResponse.js +44 -0
  10. package/dist/esm/models/ApplicationOverview.d.ts +51 -0
  11. package/dist/esm/models/ApplicationOverview.js +56 -0
  12. package/dist/esm/models/ApplicationVM.d.ts +38 -0
  13. package/dist/esm/models/ApplicationVM.js +47 -0
  14. package/dist/esm/models/CapabilityStatus.d.ts +33 -0
  15. package/dist/esm/models/CapabilityStatus.js +44 -0
  16. package/dist/esm/models/CapabilityStatusCapabilities.d.ts +45 -0
  17. package/dist/esm/models/CapabilityStatusCapabilities.js +52 -0
  18. package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
  19. package/dist/esm/models/CollectorStartRequest.js +4 -0
  20. package/dist/esm/models/CredentialStatus.d.ts +44 -0
  21. package/dist/esm/models/CredentialStatus.js +51 -0
  22. package/dist/esm/models/OperationCapability.d.ts +38 -0
  23. package/dist/esm/models/OperationCapability.js +45 -0
  24. package/dist/esm/models/StartInspectionRequest.d.ts +1 -1
  25. package/dist/esm/models/StartInspectionRequest.js +1 -3
  26. package/dist/esm/models/VMFilterOptionsResponse.d.ts +6 -0
  27. package/dist/esm/models/VMFilterOptionsResponse.js +4 -0
  28. package/dist/esm/models/VMNIC.d.ts +12 -0
  29. package/dist/esm/models/VMNIC.js +4 -0
  30. package/dist/esm/models/VcenterCredentials.d.ts +12 -0
  31. package/dist/esm/models/VcenterCredentials.js +4 -0
  32. package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
  33. package/dist/esm/models/VmInspectionStatus.js +4 -0
  34. package/dist/esm/models/index.d.ts +7 -0
  35. package/dist/esm/models/index.js +7 -0
  36. package/dist/esm/runtime.js +2 -1
  37. package/dist/models/ApplicationListResponse.d.ts +33 -0
  38. package/dist/models/ApplicationListResponse.js +51 -0
  39. package/dist/models/ApplicationOverview.d.ts +51 -0
  40. package/dist/models/ApplicationOverview.js +63 -0
  41. package/dist/models/ApplicationVM.d.ts +38 -0
  42. package/dist/models/ApplicationVM.js +54 -0
  43. package/dist/models/CapabilityStatus.d.ts +33 -0
  44. package/dist/models/CapabilityStatus.js +51 -0
  45. package/dist/models/CapabilityStatusCapabilities.d.ts +45 -0
  46. package/dist/models/CapabilityStatusCapabilities.js +59 -0
  47. package/dist/models/CollectorStartRequest.d.ts +12 -0
  48. package/dist/models/CollectorStartRequest.js +4 -0
  49. package/dist/models/CredentialStatus.d.ts +44 -0
  50. package/dist/models/CredentialStatus.js +58 -0
  51. package/dist/models/OperationCapability.d.ts +38 -0
  52. package/dist/models/OperationCapability.js +52 -0
  53. package/dist/models/StartInspectionRequest.d.ts +1 -1
  54. package/dist/models/StartInspectionRequest.js +1 -3
  55. package/dist/models/VMFilterOptionsResponse.d.ts +6 -0
  56. package/dist/models/VMFilterOptionsResponse.js +4 -0
  57. package/dist/models/VMNIC.d.ts +12 -0
  58. package/dist/models/VMNIC.js +4 -0
  59. package/dist/models/VcenterCredentials.d.ts +12 -0
  60. package/dist/models/VcenterCredentials.js +4 -0
  61. package/dist/models/VmInspectionStatus.d.ts +6 -0
  62. package/dist/models/VmInspectionStatus.js +4 -0
  63. package/dist/models/index.d.ts +7 -0
  64. package/dist/models/index.js +7 -0
  65. package/dist/runtime.js +2 -1
  66. package/docs/ApplicationListResponse.md +34 -0
  67. package/docs/ApplicationOverview.md +40 -0
  68. package/docs/ApplicationVM.md +36 -0
  69. package/docs/CapabilityStatus.md +34 -0
  70. package/docs/CapabilityStatusCapabilities.md +38 -0
  71. package/docs/CollectorStartRequest.md +4 -0
  72. package/docs/CredentialStatus.md +38 -0
  73. package/docs/DefaultApi.md +391 -7
  74. package/docs/OperationCapability.md +36 -0
  75. package/docs/VMFilterOptionsResponse.md +2 -0
  76. package/docs/VMNIC.md +4 -0
  77. package/docs/VcenterCredentials.md +4 -0
  78. package/docs/VmInspectionStatus.md +2 -0
  79. package/package.json +1 -1
  80. package/src/apis/DefaultApi.ts +408 -4
  81. package/src/models/ApplicationListResponse.ts +74 -0
  82. package/src/models/ApplicationOverview.ts +101 -0
  83. package/src/models/ApplicationVM.ts +75 -0
  84. package/src/models/CapabilityStatus.ts +74 -0
  85. package/src/models/CapabilityStatusCapabilities.ts +92 -0
  86. package/src/models/CollectorStartRequest.ts +16 -0
  87. package/src/models/CredentialStatus.ts +84 -0
  88. package/src/models/OperationCapability.ts +74 -0
  89. package/src/models/StartInspectionRequest.ts +2 -3
  90. package/src/models/VMFilterOptionsResponse.ts +9 -0
  91. package/src/models/VMNIC.ts +16 -0
  92. package/src/models/VcenterCredentials.ts +16 -0
  93. package/src/models/VmInspectionStatus.ts +9 -0
  94. package/src/models/index.ts +7 -0
  95. package/src/runtime.ts +1 -1
@@ -23,10 +23,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  import * as runtime from '../runtime.js';
24
24
  import { AgentModeRequestToJSON, } from '../models/AgentModeRequest.js';
25
25
  import { AgentStatusFromJSON, } from '../models/AgentStatus.js';
26
+ import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
26
27
  import { BenchmarkRunFromJSON, } from '../models/BenchmarkRun.js';
28
+ import { CapabilityStatusFromJSON, } from '../models/CapabilityStatus.js';
27
29
  import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js';
28
30
  import { CollectorStatusFromJSON, } from '../models/CollectorStatus.js';
29
31
  import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
32
+ import { CredentialStatusFromJSON, } from '../models/CredentialStatus.js';
30
33
  import { DatastoreDetailFromJSON, } from '../models/DatastoreDetail.js';
31
34
  import { DeleteLabelGloballyResponseFromJSON, } from '../models/DeleteLabelGloballyResponse.js';
32
35
  import { ForecastStatsFromJSON, } from '../models/ForecastStats.js';
@@ -104,6 +107,42 @@ export class DefaultApi extends runtime.BaseAPI {
104
107
  return yield response.value();
105
108
  });
106
109
  }
110
+ /**
111
+ * Creates request options for deleteCredentials without sending the request
112
+ */
113
+ deleteCredentialsRequestOpts() {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const queryParameters = {};
116
+ const headerParameters = {};
117
+ let urlPath = `/credentials`;
118
+ return {
119
+ path: urlPath,
120
+ method: 'DELETE',
121
+ headers: headerParameters,
122
+ query: queryParameters,
123
+ };
124
+ });
125
+ }
126
+ /**
127
+ * Removes all stored vCenter credentials from the database.
128
+ * Delete stored credentials
129
+ */
130
+ deleteCredentialsRaw(initOverrides) {
131
+ return __awaiter(this, void 0, void 0, function* () {
132
+ const requestOptions = yield this.deleteCredentialsRequestOpts();
133
+ const response = yield this.request(requestOptions, initOverrides);
134
+ return new runtime.VoidApiResponse(response);
135
+ });
136
+ }
137
+ /**
138
+ * Removes all stored vCenter credentials from the database.
139
+ * Delete stored credentials
140
+ */
141
+ deleteCredentials(initOverrides) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ yield this.deleteCredentialsRaw(initOverrides);
144
+ });
145
+ }
107
146
  /**
108
147
  * Creates request options for deleteForecasterRun without sending the request
109
148
  */
@@ -254,6 +293,80 @@ export class DefaultApi extends runtime.BaseAPI {
254
293
  return yield response.value();
255
294
  });
256
295
  }
296
+ /**
297
+ * Creates request options for getApplications without sending the request
298
+ */
299
+ getApplicationsRequestOpts() {
300
+ return __awaiter(this, void 0, void 0, function* () {
301
+ const queryParameters = {};
302
+ const headerParameters = {};
303
+ let urlPath = `/applications`;
304
+ return {
305
+ path: urlPath,
306
+ method: 'GET',
307
+ headers: headerParameters,
308
+ query: queryParameters,
309
+ };
310
+ });
311
+ }
312
+ /**
313
+ * List detected applications running on VMs
314
+ */
315
+ getApplicationsRaw(initOverrides) {
316
+ return __awaiter(this, void 0, void 0, function* () {
317
+ const requestOptions = yield this.getApplicationsRequestOpts();
318
+ const response = yield this.request(requestOptions, initOverrides);
319
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
320
+ });
321
+ }
322
+ /**
323
+ * List detected applications running on VMs
324
+ */
325
+ getApplications(initOverrides) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ const response = yield this.getApplicationsRaw(initOverrides);
328
+ return yield response.value();
329
+ });
330
+ }
331
+ /**
332
+ * Creates request options for getClusterUtilization without sending the request
333
+ */
334
+ getClusterUtilizationRequestOpts(requestParameters) {
335
+ return __awaiter(this, void 0, void 0, function* () {
336
+ if (requestParameters['clusterId'] == null) {
337
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
338
+ }
339
+ const queryParameters = {};
340
+ const headerParameters = {};
341
+ let urlPath = `/clusters/{cluster_id}/utilization`;
342
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
343
+ return {
344
+ path: urlPath,
345
+ method: 'GET',
346
+ headers: headerParameters,
347
+ query: queryParameters,
348
+ };
349
+ });
350
+ }
351
+ /**
352
+ * Get latest cluster utilization by cluster ID
353
+ */
354
+ getClusterUtilizationRaw(requestParameters, initOverrides) {
355
+ return __awaiter(this, void 0, void 0, function* () {
356
+ const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
357
+ const response = yield this.request(requestOptions, initOverrides);
358
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
359
+ });
360
+ }
361
+ /**
362
+ * Get latest cluster utilization by cluster ID
363
+ */
364
+ getClusterUtilization(requestParameters, initOverrides) {
365
+ return __awaiter(this, void 0, void 0, function* () {
366
+ const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
367
+ return yield response.value();
368
+ });
369
+ }
257
370
  /**
258
371
  * Creates request options for getCollectorStatus without sending the request
259
372
  */
@@ -289,6 +402,80 @@ export class DefaultApi extends runtime.BaseAPI {
289
402
  return yield response.value();
290
403
  });
291
404
  }
405
+ /**
406
+ * Creates request options for getCredentialCapabilities without sending the request
407
+ */
408
+ getCredentialCapabilitiesRequestOpts() {
409
+ return __awaiter(this, void 0, void 0, function* () {
410
+ const queryParameters = {};
411
+ const headerParameters = {};
412
+ let urlPath = `/credentials/capabilities`;
413
+ return {
414
+ path: urlPath,
415
+ method: 'GET',
416
+ headers: headerParameters,
417
+ query: queryParameters,
418
+ };
419
+ });
420
+ }
421
+ /**
422
+ * Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
423
+ * Check vSphere operation capabilities
424
+ */
425
+ getCredentialCapabilitiesRaw(initOverrides) {
426
+ return __awaiter(this, void 0, void 0, function* () {
427
+ const requestOptions = yield this.getCredentialCapabilitiesRequestOpts();
428
+ const response = yield this.request(requestOptions, initOverrides);
429
+ return new runtime.JSONApiResponse(response, (jsonValue) => CapabilityStatusFromJSON(jsonValue));
430
+ });
431
+ }
432
+ /**
433
+ * Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
434
+ * Check vSphere operation capabilities
435
+ */
436
+ getCredentialCapabilities(initOverrides) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ const response = yield this.getCredentialCapabilitiesRaw(initOverrides);
439
+ return yield response.value();
440
+ });
441
+ }
442
+ /**
443
+ * Creates request options for getCredentials without sending the request
444
+ */
445
+ getCredentialsRequestOpts() {
446
+ return __awaiter(this, void 0, void 0, function* () {
447
+ const queryParameters = {};
448
+ const headerParameters = {};
449
+ let urlPath = `/credentials`;
450
+ return {
451
+ path: urlPath,
452
+ method: 'GET',
453
+ headers: headerParameters,
454
+ query: queryParameters,
455
+ };
456
+ });
457
+ }
458
+ /**
459
+ * Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
460
+ * Get stored credential status
461
+ */
462
+ getCredentialsRaw(initOverrides) {
463
+ return __awaiter(this, void 0, void 0, function* () {
464
+ const requestOptions = yield this.getCredentialsRequestOpts();
465
+ const response = yield this.request(requestOptions, initOverrides);
466
+ return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
467
+ });
468
+ }
469
+ /**
470
+ * Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
471
+ * Get stored credential status
472
+ */
473
+ getCredentials(initOverrides) {
474
+ return __awaiter(this, void 0, void 0, function* () {
475
+ const response = yield this.getCredentialsRaw(initOverrides);
476
+ return yield response.value();
477
+ });
478
+ }
292
479
  /**
293
480
  * Creates request options for getForecasterDatastores without sending the request
294
481
  */
@@ -1171,6 +1358,48 @@ export class DefaultApi extends runtime.BaseAPI {
1171
1358
  return yield response.value();
1172
1359
  });
1173
1360
  }
1361
+ /**
1362
+ * Creates request options for putCredentials without sending the request
1363
+ */
1364
+ putCredentialsRequestOpts(requestParameters) {
1365
+ return __awaiter(this, void 0, void 0, function* () {
1366
+ if (requestParameters['vcenterCredentials'] == null) {
1367
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
1368
+ }
1369
+ const queryParameters = {};
1370
+ const headerParameters = {};
1371
+ headerParameters['Content-Type'] = 'application/json';
1372
+ let urlPath = `/credentials`;
1373
+ return {
1374
+ path: urlPath,
1375
+ method: 'PUT',
1376
+ headers: headerParameters,
1377
+ query: queryParameters,
1378
+ body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
1379
+ };
1380
+ });
1381
+ }
1382
+ /**
1383
+ * Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
1384
+ * Store vCenter credentials
1385
+ */
1386
+ putCredentialsRaw(requestParameters, initOverrides) {
1387
+ return __awaiter(this, void 0, void 0, function* () {
1388
+ const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
1389
+ const response = yield this.request(requestOptions, initOverrides);
1390
+ return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
1391
+ });
1392
+ }
1393
+ /**
1394
+ * Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
1395
+ * Store vCenter credentials
1396
+ */
1397
+ putCredentials(requestParameters, initOverrides) {
1398
+ return __awaiter(this, void 0, void 0, function* () {
1399
+ const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
1400
+ return yield response.value();
1401
+ });
1402
+ }
1174
1403
  /**
1175
1404
  * Creates request options for putForecasterCredentials without sending the request
1176
1405
  */
@@ -0,0 +1,33 @@
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
+ import type { ApplicationOverview } from './ApplicationOverview.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplicationListResponse
17
+ */
18
+ export interface ApplicationListResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ApplicationOverview>}
22
+ * @memberof ApplicationListResponse
23
+ */
24
+ applications: Array<ApplicationOverview>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ApplicationListResponse interface.
28
+ */
29
+ export declare function instanceOfApplicationListResponse(value: object): value is ApplicationListResponse;
30
+ export declare function ApplicationListResponseFromJSON(json: any): ApplicationListResponse;
31
+ export declare function ApplicationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationListResponse;
32
+ export declare function ApplicationListResponseToJSON(json: any): ApplicationListResponse;
33
+ export declare function ApplicationListResponseToJSONTyped(value?: ApplicationListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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
+ import { ApplicationOverviewFromJSON, ApplicationOverviewToJSON, } from './ApplicationOverview.js';
15
+ /**
16
+ * Check if a given object implements the ApplicationListResponse interface.
17
+ */
18
+ export function instanceOfApplicationListResponse(value) {
19
+ if (!('applications' in value) || value['applications'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ApplicationListResponseFromJSON(json) {
24
+ return ApplicationListResponseFromJSONTyped(json, false);
25
+ }
26
+ export function ApplicationListResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'applications': (json['applications'].map(ApplicationOverviewFromJSON)),
32
+ };
33
+ }
34
+ export function ApplicationListResponseToJSON(json) {
35
+ return ApplicationListResponseToJSONTyped(json, false);
36
+ }
37
+ export function ApplicationListResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'applications': (value['applications'].map(ApplicationOverviewToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,51 @@
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
+ import type { ApplicationVM } from './ApplicationVM.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplicationOverview
17
+ */
18
+ export interface ApplicationOverview {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ApplicationOverview
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApplicationOverview
29
+ */
30
+ description: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ApplicationOverview
35
+ */
36
+ vmCount: number;
37
+ /**
38
+ *
39
+ * @type {Array<ApplicationVM>}
40
+ * @memberof ApplicationOverview
41
+ */
42
+ vms: Array<ApplicationVM>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApplicationOverview interface.
46
+ */
47
+ export declare function instanceOfApplicationOverview(value: object): value is ApplicationOverview;
48
+ export declare function ApplicationOverviewFromJSON(json: any): ApplicationOverview;
49
+ export declare function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationOverview;
50
+ export declare function ApplicationOverviewToJSON(json: any): ApplicationOverview;
51
+ export declare function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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
+ import { ApplicationVMFromJSON, ApplicationVMToJSON, } from './ApplicationVM.js';
15
+ /**
16
+ * Check if a given object implements the ApplicationOverview interface.
17
+ */
18
+ export function instanceOfApplicationOverview(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('description' in value) || value['description'] === undefined)
22
+ return false;
23
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
24
+ return false;
25
+ if (!('vms' in value) || value['vms'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function ApplicationOverviewFromJSON(json) {
30
+ return ApplicationOverviewFromJSONTyped(json, false);
31
+ }
32
+ export function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'description': json['description'],
39
+ 'vmCount': json['vmCount'],
40
+ 'vms': (json['vms'].map(ApplicationVMFromJSON)),
41
+ };
42
+ }
43
+ export function ApplicationOverviewToJSON(json) {
44
+ return ApplicationOverviewToJSONTyped(json, false);
45
+ }
46
+ export function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'description': value['description'],
53
+ 'vmCount': value['vmCount'],
54
+ 'vms': (value['vms'].map(ApplicationVMToJSON)),
55
+ };
56
+ }
@@ -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 ApplicationVM
16
+ */
17
+ export interface ApplicationVM {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApplicationVM
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApplicationVM
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ApplicationVM interface.
33
+ */
34
+ export declare function instanceOfApplicationVM(value: object): value is ApplicationVM;
35
+ export declare function ApplicationVMFromJSON(json: any): ApplicationVM;
36
+ export declare function ApplicationVMFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationVM;
37
+ export declare function ApplicationVMToJSON(json: any): ApplicationVM;
38
+ export declare function ApplicationVMToJSONTyped(value?: ApplicationVM | 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 ApplicationVM interface.
16
+ */
17
+ export function instanceOfApplicationVM(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ApplicationVMFromJSON(json) {
25
+ return ApplicationVMFromJSONTyped(json, false);
26
+ }
27
+ export function ApplicationVMFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function ApplicationVMToJSON(json) {
37
+ return ApplicationVMToJSONTyped(json, false);
38
+ }
39
+ export function ApplicationVMToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -0,0 +1,33 @@
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
+ import type { CapabilityStatusCapabilities } from './CapabilityStatusCapabilities.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CapabilityStatus
17
+ */
18
+ export interface CapabilityStatus {
19
+ /**
20
+ *
21
+ * @type {CapabilityStatusCapabilities}
22
+ * @memberof CapabilityStatus
23
+ */
24
+ capabilities: CapabilityStatusCapabilities;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CapabilityStatus interface.
28
+ */
29
+ export declare function instanceOfCapabilityStatus(value: object): value is CapabilityStatus;
30
+ export declare function CapabilityStatusFromJSON(json: any): CapabilityStatus;
31
+ export declare function CapabilityStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CapabilityStatus;
32
+ export declare function CapabilityStatusToJSON(json: any): CapabilityStatus;
33
+ export declare function CapabilityStatusToJSONTyped(value?: CapabilityStatus | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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
+ import { CapabilityStatusCapabilitiesFromJSON, CapabilityStatusCapabilitiesToJSON, } from './CapabilityStatusCapabilities.js';
15
+ /**
16
+ * Check if a given object implements the CapabilityStatus interface.
17
+ */
18
+ export function instanceOfCapabilityStatus(value) {
19
+ if (!('capabilities' in value) || value['capabilities'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function CapabilityStatusFromJSON(json) {
24
+ return CapabilityStatusFromJSONTyped(json, false);
25
+ }
26
+ export function CapabilityStatusFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'capabilities': CapabilityStatusCapabilitiesFromJSON(json['capabilities']),
32
+ };
33
+ }
34
+ export function CapabilityStatusToJSON(json) {
35
+ return CapabilityStatusToJSONTyped(json, false);
36
+ }
37
+ export function CapabilityStatusToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'capabilities': CapabilityStatusCapabilitiesToJSON(value['capabilities']),
43
+ };
44
+ }
@@ -0,0 +1,45 @@
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
+ import type { OperationCapability } from './OperationCapability.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CapabilityStatusCapabilities
17
+ */
18
+ export interface CapabilityStatusCapabilities {
19
+ /**
20
+ *
21
+ * @type {OperationCapability}
22
+ * @memberof CapabilityStatusCapabilities
23
+ */
24
+ collector: OperationCapability;
25
+ /**
26
+ *
27
+ * @type {OperationCapability}
28
+ * @memberof CapabilityStatusCapabilities
29
+ */
30
+ inspector: OperationCapability;
31
+ /**
32
+ *
33
+ * @type {OperationCapability}
34
+ * @memberof CapabilityStatusCapabilities
35
+ */
36
+ forecaster: OperationCapability;
37
+ }
38
+ /**
39
+ * Check if a given object implements the CapabilityStatusCapabilities interface.
40
+ */
41
+ export declare function instanceOfCapabilityStatusCapabilities(value: object): value is CapabilityStatusCapabilities;
42
+ export declare function CapabilityStatusCapabilitiesFromJSON(json: any): CapabilityStatusCapabilities;
43
+ export declare function CapabilityStatusCapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CapabilityStatusCapabilities;
44
+ export declare function CapabilityStatusCapabilitiesToJSON(json: any): CapabilityStatusCapabilities;
45
+ export declare function CapabilityStatusCapabilitiesToJSONTyped(value?: CapabilityStatusCapabilities | null, ignoreDiscriminator?: boolean): any;