@openshift-migration-advisor/agent-sdk 0.12.0-645d2fae3eee → 0.12.0-73dd4924f11b

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 (114) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +15 -3
  4. package/dist/apis/DefaultApi.d.ts +206 -4
  5. package/dist/apis/DefaultApi.js +227 -0
  6. package/dist/esm/apis/DefaultApi.d.ts +206 -4
  7. package/dist/esm/apis/DefaultApi.js +227 -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/ClusterUtilization.d.ts +68 -0
  15. package/dist/esm/models/ClusterUtilization.js +67 -0
  16. package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
  17. package/dist/esm/models/CollectorStartRequest.js +4 -0
  18. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  19. package/dist/esm/models/CreateGroupRequest.js +0 -2
  20. package/dist/esm/models/CredentialStatus.d.ts +38 -0
  21. package/dist/esm/models/CredentialStatus.js +47 -0
  22. package/dist/esm/models/Group.d.ts +0 -6
  23. package/dist/esm/models/Group.js +0 -2
  24. package/dist/esm/models/GroupResponse.d.ts +7 -0
  25. package/dist/esm/models/GroupResponse.js +3 -0
  26. package/dist/esm/models/InventoryData.d.ts +7 -0
  27. package/dist/esm/models/InventoryData.js +3 -0
  28. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  29. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  30. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  31. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  32. package/dist/esm/models/VMNIC.d.ts +12 -0
  33. package/dist/esm/models/VMNIC.js +4 -0
  34. package/dist/esm/models/VcenterCredentials.d.ts +12 -0
  35. package/dist/esm/models/VcenterCredentials.js +4 -0
  36. package/dist/esm/models/VirtualMachine.d.ts +14 -2
  37. package/dist/esm/models/VirtualMachine.js +6 -2
  38. package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
  39. package/dist/esm/models/VmInspectionStatus.js +4 -0
  40. package/dist/esm/models/index.d.ts +6 -0
  41. package/dist/esm/models/index.js +6 -0
  42. package/dist/esm/runtime.js +2 -1
  43. package/dist/models/ApplicationListResponse.d.ts +33 -0
  44. package/dist/models/ApplicationListResponse.js +51 -0
  45. package/dist/models/ApplicationOverview.d.ts +51 -0
  46. package/dist/models/ApplicationOverview.js +63 -0
  47. package/dist/models/ApplicationVM.d.ts +38 -0
  48. package/dist/models/ApplicationVM.js +54 -0
  49. package/dist/models/ClusterUtilization.d.ts +68 -0
  50. package/dist/models/ClusterUtilization.js +74 -0
  51. package/dist/models/CollectorStartRequest.d.ts +12 -0
  52. package/dist/models/CollectorStartRequest.js +4 -0
  53. package/dist/models/CreateGroupRequest.d.ts +0 -6
  54. package/dist/models/CreateGroupRequest.js +0 -2
  55. package/dist/models/CredentialStatus.d.ts +38 -0
  56. package/dist/models/CredentialStatus.js +54 -0
  57. package/dist/models/Group.d.ts +0 -6
  58. package/dist/models/Group.js +0 -2
  59. package/dist/models/GroupResponse.d.ts +7 -0
  60. package/dist/models/GroupResponse.js +3 -0
  61. package/dist/models/InventoryData.d.ts +7 -0
  62. package/dist/models/InventoryData.js +3 -0
  63. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  64. package/dist/models/UpdateGroupRequest.js +0 -2
  65. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  66. package/dist/models/VMFilterOptionsResponse.js +66 -0
  67. package/dist/models/VMNIC.d.ts +12 -0
  68. package/dist/models/VMNIC.js +4 -0
  69. package/dist/models/VcenterCredentials.d.ts +12 -0
  70. package/dist/models/VcenterCredentials.js +4 -0
  71. package/dist/models/VirtualMachine.d.ts +14 -2
  72. package/dist/models/VirtualMachine.js +6 -2
  73. package/dist/models/VmInspectionStatus.d.ts +6 -0
  74. package/dist/models/VmInspectionStatus.js +4 -0
  75. package/dist/models/index.d.ts +6 -0
  76. package/dist/models/index.js +6 -0
  77. package/dist/runtime.js +2 -1
  78. package/docs/ApplicationListResponse.md +34 -0
  79. package/docs/ApplicationOverview.md +40 -0
  80. package/docs/ApplicationVM.md +36 -0
  81. package/docs/ClusterUtilization.md +46 -0
  82. package/docs/CollectorStartRequest.md +4 -0
  83. package/docs/CreateGroupRequest.md +0 -2
  84. package/docs/CredentialStatus.md +36 -0
  85. package/docs/DefaultApi.md +385 -4
  86. package/docs/Group.md +0 -2
  87. package/docs/GroupResponse.md +2 -0
  88. package/docs/InventoryData.md +2 -0
  89. package/docs/UpdateGroupRequest.md +0 -2
  90. package/docs/VMFilterOptionsResponse.md +42 -0
  91. package/docs/VMNIC.md +4 -0
  92. package/docs/VcenterCredentials.md +4 -0
  93. package/docs/VirtualMachine.md +6 -2
  94. package/docs/VmInspectionStatus.md +2 -0
  95. package/package.json +1 -1
  96. package/src/apis/DefaultApi.ts +405 -4
  97. package/src/models/ApplicationListResponse.ts +74 -0
  98. package/src/models/ApplicationOverview.ts +101 -0
  99. package/src/models/ApplicationVM.ts +75 -0
  100. package/src/models/ClusterUtilization.ts +120 -0
  101. package/src/models/CollectorStartRequest.ts +16 -0
  102. package/src/models/CreateGroupRequest.ts +0 -8
  103. package/src/models/CredentialStatus.ts +75 -0
  104. package/src/models/Group.ts +0 -8
  105. package/src/models/GroupResponse.ts +15 -0
  106. package/src/models/InventoryData.ts +15 -0
  107. package/src/models/UpdateGroupRequest.ts +0 -8
  108. package/src/models/VMFilterOptionsResponse.ts +102 -0
  109. package/src/models/VMNIC.ts +16 -0
  110. package/src/models/VcenterCredentials.ts +16 -0
  111. package/src/models/VirtualMachine.ts +20 -4
  112. package/src/models/VmInspectionStatus.ts +9 -0
  113. package/src/models/index.ts +6 -0
  114. package/src/runtime.ts +1 -1
@@ -23,10 +23,12 @@ 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';
27
28
  import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js';
28
29
  import { CollectorStatusFromJSON, } from '../models/CollectorStatus.js';
29
30
  import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
31
+ import { CredentialStatusFromJSON, } from '../models/CredentialStatus.js';
30
32
  import { DatastoreDetailFromJSON, } from '../models/DatastoreDetail.js';
31
33
  import { DeleteLabelGloballyResponseFromJSON, } from '../models/DeleteLabelGloballyResponse.js';
32
34
  import { ForecastStatsFromJSON, } from '../models/ForecastStats.js';
@@ -50,6 +52,7 @@ import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.
50
52
  import { StopForecasterPair202ResponseFromJSON, } from '../models/StopForecasterPair202Response.js';
51
53
  import { UpdateGroupRequestToJSON, } from '../models/UpdateGroupRequest.js';
52
54
  import { UpdateLabelVMsRequestToJSON, } from '../models/UpdateLabelVMsRequest.js';
55
+ import { VMFilterOptionsResponseFromJSON, } from '../models/VMFilterOptionsResponse.js';
53
56
  import { VMLabelsResponseFromJSON, } from '../models/VMLabelsResponse.js';
54
57
  import { VcenterCredentialsToJSON, } from '../models/VcenterCredentials.js';
55
58
  import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
@@ -103,6 +106,42 @@ export class DefaultApi extends runtime.BaseAPI {
103
106
  return yield response.value();
104
107
  });
105
108
  }
109
+ /**
110
+ * Creates request options for deleteCredentials without sending the request
111
+ */
112
+ deleteCredentialsRequestOpts() {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const queryParameters = {};
115
+ const headerParameters = {};
116
+ let urlPath = `/credentials`;
117
+ return {
118
+ path: urlPath,
119
+ method: 'DELETE',
120
+ headers: headerParameters,
121
+ query: queryParameters,
122
+ };
123
+ });
124
+ }
125
+ /**
126
+ * Removes all stored vCenter credentials from the database.
127
+ * Delete stored credentials
128
+ */
129
+ deleteCredentialsRaw(initOverrides) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ const requestOptions = yield this.deleteCredentialsRequestOpts();
132
+ const response = yield this.request(requestOptions, initOverrides);
133
+ return new runtime.VoidApiResponse(response);
134
+ });
135
+ }
136
+ /**
137
+ * Removes all stored vCenter credentials from the database.
138
+ * Delete stored credentials
139
+ */
140
+ deleteCredentials(initOverrides) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ yield this.deleteCredentialsRaw(initOverrides);
143
+ });
144
+ }
106
145
  /**
107
146
  * Creates request options for deleteForecasterRun without sending the request
108
147
  */
@@ -253,6 +292,80 @@ export class DefaultApi extends runtime.BaseAPI {
253
292
  return yield response.value();
254
293
  });
255
294
  }
295
+ /**
296
+ * Creates request options for getApplications without sending the request
297
+ */
298
+ getApplicationsRequestOpts() {
299
+ return __awaiter(this, void 0, void 0, function* () {
300
+ const queryParameters = {};
301
+ const headerParameters = {};
302
+ let urlPath = `/applications`;
303
+ return {
304
+ path: urlPath,
305
+ method: 'GET',
306
+ headers: headerParameters,
307
+ query: queryParameters,
308
+ };
309
+ });
310
+ }
311
+ /**
312
+ * List detected applications running on VMs
313
+ */
314
+ getApplicationsRaw(initOverrides) {
315
+ return __awaiter(this, void 0, void 0, function* () {
316
+ const requestOptions = yield this.getApplicationsRequestOpts();
317
+ const response = yield this.request(requestOptions, initOverrides);
318
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
319
+ });
320
+ }
321
+ /**
322
+ * List detected applications running on VMs
323
+ */
324
+ getApplications(initOverrides) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ const response = yield this.getApplicationsRaw(initOverrides);
327
+ return yield response.value();
328
+ });
329
+ }
330
+ /**
331
+ * Creates request options for getClusterUtilization without sending the request
332
+ */
333
+ getClusterUtilizationRequestOpts(requestParameters) {
334
+ return __awaiter(this, void 0, void 0, function* () {
335
+ if (requestParameters['clusterId'] == null) {
336
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
337
+ }
338
+ const queryParameters = {};
339
+ const headerParameters = {};
340
+ let urlPath = `/clusters/{cluster_id}/utilization`;
341
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
342
+ return {
343
+ path: urlPath,
344
+ method: 'GET',
345
+ headers: headerParameters,
346
+ query: queryParameters,
347
+ };
348
+ });
349
+ }
350
+ /**
351
+ * Get latest cluster utilization by cluster ID
352
+ */
353
+ getClusterUtilizationRaw(requestParameters, initOverrides) {
354
+ return __awaiter(this, void 0, void 0, function* () {
355
+ const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
356
+ const response = yield this.request(requestOptions, initOverrides);
357
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
358
+ });
359
+ }
360
+ /**
361
+ * Get latest cluster utilization by cluster ID
362
+ */
363
+ getClusterUtilization(requestParameters, initOverrides) {
364
+ return __awaiter(this, void 0, void 0, function* () {
365
+ const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
366
+ return yield response.value();
367
+ });
368
+ }
256
369
  /**
257
370
  * Creates request options for getCollectorStatus without sending the request
258
371
  */
@@ -288,6 +401,43 @@ export class DefaultApi extends runtime.BaseAPI {
288
401
  return yield response.value();
289
402
  });
290
403
  }
404
+ /**
405
+ * Creates request options for getCredentials without sending the request
406
+ */
407
+ getCredentialsRequestOpts() {
408
+ return __awaiter(this, void 0, void 0, function* () {
409
+ const queryParameters = {};
410
+ const headerParameters = {};
411
+ let urlPath = `/credentials`;
412
+ return {
413
+ path: urlPath,
414
+ method: 'GET',
415
+ headers: headerParameters,
416
+ query: queryParameters,
417
+ };
418
+ });
419
+ }
420
+ /**
421
+ * Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
422
+ * Get stored credential status
423
+ */
424
+ getCredentialsRaw(initOverrides) {
425
+ return __awaiter(this, void 0, void 0, function* () {
426
+ const requestOptions = yield this.getCredentialsRequestOpts();
427
+ const response = yield this.request(requestOptions, initOverrides);
428
+ return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
429
+ });
430
+ }
431
+ /**
432
+ * Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
433
+ * Get stored credential status
434
+ */
435
+ getCredentials(initOverrides) {
436
+ return __awaiter(this, void 0, void 0, function* () {
437
+ const response = yield this.getCredentialsRaw(initOverrides);
438
+ return yield response.value();
439
+ });
440
+ }
291
441
  /**
292
442
  * Creates request options for getForecasterDatastores without sending the request
293
443
  */
@@ -937,6 +1087,41 @@ export class DefaultApi extends runtime.BaseAPI {
937
1087
  return yield response.value();
938
1088
  });
939
1089
  }
1090
+ /**
1091
+ * Creates request options for getVMsFilterOptions without sending the request
1092
+ */
1093
+ getVMsFilterOptionsRequestOpts() {
1094
+ return __awaiter(this, void 0, void 0, function* () {
1095
+ const queryParameters = {};
1096
+ const headerParameters = {};
1097
+ let urlPath = `/vms/filter-options`;
1098
+ return {
1099
+ path: urlPath,
1100
+ method: 'GET',
1101
+ headers: headerParameters,
1102
+ query: queryParameters,
1103
+ };
1104
+ });
1105
+ }
1106
+ /**
1107
+ * Get distinct filter option values for VMs
1108
+ */
1109
+ getVMsFilterOptionsRaw(initOverrides) {
1110
+ return __awaiter(this, void 0, void 0, function* () {
1111
+ const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
1112
+ const response = yield this.request(requestOptions, initOverrides);
1113
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
1114
+ });
1115
+ }
1116
+ /**
1117
+ * Get distinct filter option values for VMs
1118
+ */
1119
+ getVMsFilterOptions(initOverrides) {
1120
+ return __awaiter(this, void 0, void 0, function* () {
1121
+ const response = yield this.getVMsFilterOptionsRaw(initOverrides);
1122
+ return yield response.value();
1123
+ });
1124
+ }
940
1125
  /**
941
1126
  * Creates request options for getVersion without sending the request
942
1127
  */
@@ -1135,6 +1320,48 @@ export class DefaultApi extends runtime.BaseAPI {
1135
1320
  return yield response.value();
1136
1321
  });
1137
1322
  }
1323
+ /**
1324
+ * Creates request options for putCredentials without sending the request
1325
+ */
1326
+ putCredentialsRequestOpts(requestParameters) {
1327
+ return __awaiter(this, void 0, void 0, function* () {
1328
+ if (requestParameters['vcenterCredentials'] == null) {
1329
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
1330
+ }
1331
+ const queryParameters = {};
1332
+ const headerParameters = {};
1333
+ headerParameters['Content-Type'] = 'application/json';
1334
+ let urlPath = `/credentials`;
1335
+ return {
1336
+ path: urlPath,
1337
+ method: 'PUT',
1338
+ headers: headerParameters,
1339
+ query: queryParameters,
1340
+ body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
1341
+ };
1342
+ });
1343
+ }
1344
+ /**
1345
+ * 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.
1346
+ * Store vCenter credentials
1347
+ */
1348
+ putCredentialsRaw(requestParameters, initOverrides) {
1349
+ return __awaiter(this, void 0, void 0, function* () {
1350
+ const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
1351
+ const response = yield this.request(requestOptions, initOverrides);
1352
+ return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
1353
+ });
1354
+ }
1355
+ /**
1356
+ * 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.
1357
+ * Store vCenter credentials
1358
+ */
1359
+ putCredentials(requestParameters, initOverrides) {
1360
+ return __awaiter(this, void 0, void 0, function* () {
1361
+ const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
1362
+ return yield response.value();
1363
+ });
1364
+ }
1138
1365
  /**
1139
1366
  * Creates request options for putForecasterCredentials without sending the request
1140
1367
  */
@@ -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,68 @@
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 ClusterUtilization
16
+ */
17
+ export interface ClusterUtilization {
18
+ /**
19
+ * Average CPU utilization percentage (0-100)
20
+ * @type {number}
21
+ * @memberof ClusterUtilization
22
+ */
23
+ cpu_avg: number;
24
+ /**
25
+ * 95th percentile CPU utilization percentage (0-100)
26
+ * @type {number}
27
+ * @memberof ClusterUtilization
28
+ */
29
+ cpu_p95: number;
30
+ /**
31
+ * Maximum CPU utilization percentage (0-100)
32
+ * @type {number}
33
+ * @memberof ClusterUtilization
34
+ */
35
+ cpu_max: number;
36
+ /**
37
+ * Average memory utilization percentage (0-100)
38
+ * @type {number}
39
+ * @memberof ClusterUtilization
40
+ */
41
+ mem_avg: number;
42
+ /**
43
+ * 95th percentile memory utilization percentage (0-100)
44
+ * @type {number}
45
+ * @memberof ClusterUtilization
46
+ */
47
+ mem_p95: number;
48
+ /**
49
+ * Maximum memory utilization percentage (0-100)
50
+ * @type {number}
51
+ * @memberof ClusterUtilization
52
+ */
53
+ mem_max: number;
54
+ /**
55
+ * Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
56
+ * @type {number}
57
+ * @memberof ClusterUtilization
58
+ */
59
+ confidence: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ClusterUtilization interface.
63
+ */
64
+ export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
65
+ export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
66
+ export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
67
+ export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
68
+ export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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 ClusterUtilization interface.
16
+ */
17
+ export function instanceOfClusterUtilization(value) {
18
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
19
+ return false;
20
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
21
+ return false;
22
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined)
23
+ return false;
24
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined)
25
+ return false;
26
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined)
27
+ return false;
28
+ if (!('mem_max' in value) || value['mem_max'] === undefined)
29
+ return false;
30
+ if (!('confidence' in value) || value['confidence'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function ClusterUtilizationFromJSON(json) {
35
+ return ClusterUtilizationFromJSONTyped(json, false);
36
+ }
37
+ export function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'cpu_avg': json['cpu_avg'],
43
+ 'cpu_p95': json['cpu_p95'],
44
+ 'cpu_max': json['cpu_max'],
45
+ 'mem_avg': json['mem_avg'],
46
+ 'mem_p95': json['mem_p95'],
47
+ 'mem_max': json['mem_max'],
48
+ 'confidence': json['confidence'],
49
+ };
50
+ }
51
+ export function ClusterUtilizationToJSON(json) {
52
+ return ClusterUtilizationToJSONTyped(json, false);
53
+ }
54
+ export function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'cpu_avg': value['cpu_avg'],
60
+ 'cpu_p95': value['cpu_p95'],
61
+ 'cpu_max': value['cpu_max'],
62
+ 'mem_avg': value['mem_avg'],
63
+ 'mem_p95': value['mem_p95'],
64
+ 'mem_max': value['mem_max'],
65
+ 'confidence': value['confidence'],
66
+ };
67
+ }