@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-d4bdc4301890

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 (112) hide show
  1. package/.openapi-generator/FILES +20 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +29 -17
  4. package/dist/apis/DefaultApi.d.ts +260 -130
  5. package/dist/apis/DefaultApi.js +313 -172
  6. package/dist/esm/apis/DefaultApi.d.ts +260 -130
  7. package/dist/esm/apis/DefaultApi.js +295 -154
  8. package/dist/esm/models/InspectorStatus.d.ts +20 -7
  9. package/dist/esm/models/InspectorStatus.js +12 -7
  10. package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
  11. package/dist/esm/models/RightsizingCollectRequest.js +56 -0
  12. package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
  13. package/dist/esm/models/RightsizingMetricStats.js +63 -0
  14. package/dist/esm/models/RightsizingReport.d.ts +81 -0
  15. package/dist/esm/models/RightsizingReport.js +76 -0
  16. package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
  17. package/dist/esm/models/RightsizingReportListResponse.js +48 -0
  18. package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
  19. package/dist/esm/models/RightsizingReportSummary.js +71 -0
  20. package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
  21. package/dist/esm/models/RightsizingVMReport.js +57 -0
  22. package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
  23. package/dist/esm/models/StartInspectionRequest.js +43 -0
  24. package/dist/esm/models/VMs.d.ts +18 -0
  25. package/dist/esm/models/VMs.js +4 -0
  26. package/dist/esm/models/VirtualMachine.d.ts +31 -1
  27. package/dist/esm/models/VirtualMachine.js +12 -4
  28. package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
  29. package/dist/esm/models/VirtualMachineDetail.js +3 -3
  30. package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
  31. package/dist/esm/models/VmInspectionConcern.js +51 -0
  32. package/dist/esm/models/VmInspectionResults.d.ts +33 -0
  33. package/dist/esm/models/VmInspectionResults.js +42 -0
  34. package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
  35. package/dist/esm/models/VmInspectionStatus.js +1 -2
  36. package/dist/esm/models/VmUtilizationDetails.d.ts +98 -0
  37. package/dist/esm/models/VmUtilizationDetails.js +87 -0
  38. package/dist/esm/models/index.d.ts +10 -1
  39. package/dist/esm/models/index.js +10 -1
  40. package/dist/esm/runtime.js +1 -1
  41. package/dist/models/InspectorStatus.d.ts +20 -7
  42. package/dist/models/InspectorStatus.js +12 -7
  43. package/dist/models/RightsizingCollectRequest.d.ts +70 -0
  44. package/dist/models/RightsizingCollectRequest.js +63 -0
  45. package/dist/models/RightsizingMetricStats.d.ts +62 -0
  46. package/dist/models/RightsizingMetricStats.js +70 -0
  47. package/dist/models/RightsizingReport.d.ts +81 -0
  48. package/dist/models/RightsizingReport.js +83 -0
  49. package/dist/models/RightsizingReportListResponse.d.ts +39 -0
  50. package/dist/models/RightsizingReportListResponse.js +55 -0
  51. package/dist/models/RightsizingReportSummary.d.ts +74 -0
  52. package/dist/models/RightsizingReportSummary.js +78 -0
  53. package/dist/models/RightsizingVMReport.d.ts +53 -0
  54. package/dist/models/RightsizingVMReport.js +64 -0
  55. package/dist/models/StartInspectionRequest.d.ts +32 -0
  56. package/dist/models/StartInspectionRequest.js +50 -0
  57. package/dist/models/VMs.d.ts +18 -0
  58. package/dist/models/VMs.js +4 -0
  59. package/dist/models/VirtualMachine.d.ts +31 -1
  60. package/dist/models/VirtualMachine.js +12 -4
  61. package/dist/models/VirtualMachineDetail.d.ts +3 -3
  62. package/dist/models/VirtualMachineDetail.js +3 -3
  63. package/dist/models/VmInspectionConcern.d.ts +44 -0
  64. package/dist/models/VmInspectionConcern.js +58 -0
  65. package/dist/models/VmInspectionResults.d.ts +33 -0
  66. package/dist/models/VmInspectionResults.js +49 -0
  67. package/dist/models/VmInspectionStatus.d.ts +0 -1
  68. package/dist/models/VmInspectionStatus.js +1 -2
  69. package/dist/models/VmUtilizationDetails.d.ts +98 -0
  70. package/dist/models/VmUtilizationDetails.js +94 -0
  71. package/dist/models/index.d.ts +10 -1
  72. package/dist/models/index.js +10 -1
  73. package/dist/runtime.js +1 -1
  74. package/docs/DefaultApi.md +368 -163
  75. package/docs/InspectorStatus.md +4 -0
  76. package/docs/RightsizingCollectRequest.md +46 -0
  77. package/docs/RightsizingMetricStats.md +44 -0
  78. package/docs/RightsizingReport.md +50 -0
  79. package/docs/RightsizingReportListResponse.md +36 -0
  80. package/docs/RightsizingReportSummary.md +49 -0
  81. package/docs/RightsizingVMReport.md +40 -0
  82. package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
  83. package/docs/VMs.md +4 -0
  84. package/docs/VirtualMachine.md +12 -2
  85. package/docs/VirtualMachineDetail.md +1 -1
  86. package/docs/VmInspectionConcern.md +39 -0
  87. package/docs/VmInspectionResults.md +35 -0
  88. package/docs/VmUtilizationDetails.md +56 -0
  89. package/package.json +1 -1
  90. package/src/apis/DefaultApi.ts +564 -285
  91. package/src/models/InspectorStatus.ts +37 -7
  92. package/src/models/RightsizingCollectRequest.ts +123 -0
  93. package/src/models/RightsizingMetricStats.ts +111 -0
  94. package/src/models/RightsizingReport.ts +146 -0
  95. package/src/models/RightsizingReportListResponse.ts +83 -0
  96. package/src/models/RightsizingReportSummary.ts +129 -0
  97. package/src/models/RightsizingVMReport.ts +101 -0
  98. package/src/models/StartInspectionRequest.ts +66 -0
  99. package/src/models/VMs.ts +18 -0
  100. package/src/models/VirtualMachine.ts +43 -4
  101. package/src/models/VirtualMachineDetail.ts +11 -11
  102. package/src/models/VmInspectionConcern.ts +84 -0
  103. package/src/models/VmInspectionResults.ts +73 -0
  104. package/src/models/VmInspectionStatus.ts +1 -2
  105. package/src/models/VmUtilizationDetails.ts +165 -0
  106. package/src/models/index.ts +10 -1
  107. package/src/runtime.ts +1 -2
  108. package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
  109. package/dist/esm/models/InspectorStartRequest.js +0 -48
  110. package/dist/models/InspectorStartRequest.d.ts +0 -39
  111. package/dist/models/InspectorStartRequest.js +0 -55
  112. package/src/models/InspectorStartRequest.ts +0 -83
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VddkProperties } from './VddkProperties.js';
13
+ import type { VcenterCredentials } from './VcenterCredentials.js';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -21,6 +23,18 @@ export interface InspectorStatus {
21
23
  * @memberof InspectorStatus
22
24
  */
23
25
  state: InspectorStatusStateEnum;
26
+ /**
27
+ *
28
+ * @type {VcenterCredentials}
29
+ * @memberof InspectorStatus
30
+ */
31
+ credentials?: VcenterCredentials;
32
+ /**
33
+ *
34
+ * @type {VddkProperties}
35
+ * @memberof InspectorStatus
36
+ */
37
+ vddk?: VddkProperties;
24
38
  /**
25
39
  * Error message when state is error
26
40
  * @type {string}
@@ -32,13 +46,12 @@ export interface InspectorStatus {
32
46
  * @export
33
47
  */
34
48
  export declare const InspectorStatusStateEnum: {
35
- readonly InspectorStatusStateCanceled: "ready";
36
- readonly InspectorStatusStateCanceling: "Initiating";
37
- readonly InspectorStatusStateCompleted: "running";
38
- readonly InspectorStatusStateError: "canceling";
39
- readonly InspectorStatusStateInitiating: "canceled";
40
- readonly InspectorStatusStateReady: "completed";
41
- readonly InspectorStatusStateRunning: "error";
49
+ readonly InspectorStatusStateReady: "ready";
50
+ readonly InspectorStatusStateInitiating: "Initiating";
51
+ readonly InspectorStatusStateRunning: "running";
52
+ readonly InspectorStatusStateCanceled: "canceled";
53
+ readonly InspectorStatusStateCompleted: "completed";
54
+ readonly InspectorStatusStateError: "error";
42
55
  };
43
56
  export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
44
57
  /**
@@ -11,17 +11,18 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VddkPropertiesFromJSON, VddkPropertiesToJSON, } from './VddkProperties.js';
15
+ import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
14
16
  /**
15
17
  * @export
16
18
  */
17
19
  export const InspectorStatusStateEnum = {
18
- InspectorStatusStateCanceled: 'ready',
19
- InspectorStatusStateCanceling: 'Initiating',
20
- InspectorStatusStateCompleted: 'running',
21
- InspectorStatusStateError: 'canceling',
22
- InspectorStatusStateInitiating: 'canceled',
23
- InspectorStatusStateReady: 'completed',
24
- InspectorStatusStateRunning: 'error'
20
+ InspectorStatusStateReady: 'ready',
21
+ InspectorStatusStateInitiating: 'Initiating',
22
+ InspectorStatusStateRunning: 'running',
23
+ InspectorStatusStateCanceled: 'canceled',
24
+ InspectorStatusStateCompleted: 'completed',
25
+ InspectorStatusStateError: 'error'
25
26
  };
26
27
  /**
27
28
  * Check if a given object implements the InspectorStatus interface.
@@ -40,6 +41,8 @@ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
40
41
  }
41
42
  return {
42
43
  'state': json['state'],
44
+ 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
45
+ 'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
43
46
  'error': json['error'] == null ? undefined : json['error'],
44
47
  };
45
48
  }
@@ -52,6 +55,8 @@ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
52
55
  }
53
56
  return {
54
57
  'state': value['state'],
58
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
59
+ 'vddk': VddkPropertiesToJSON(value['vddk']),
55
60
  'error': value['error'],
56
61
  };
57
62
  }
@@ -0,0 +1,70 @@
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 { VcenterCredentials } from './VcenterCredentials.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingCollectRequest
17
+ */
18
+ export interface RightsizingCollectRequest {
19
+ /**
20
+ *
21
+ * @type {VcenterCredentials}
22
+ * @memberof RightsizingCollectRequest
23
+ */
24
+ credentials: VcenterCredentials;
25
+ /**
26
+ * Lookback window in hours (default 720 = 30 days)
27
+ * @type {number}
28
+ * @memberof RightsizingCollectRequest
29
+ */
30
+ lookbackHours?: number;
31
+ /**
32
+ * vSphere historical interval ID in seconds (300=day, 1800=week, 7200=month)
33
+ * @type {number}
34
+ * @memberof RightsizingCollectRequest
35
+ */
36
+ intervalId?: number;
37
+ /**
38
+ * Filter VMs by name substring
39
+ * @type {string}
40
+ * @memberof RightsizingCollectRequest
41
+ */
42
+ nameFilter?: string;
43
+ /**
44
+ * MoRef value of a ClusterComputeResource to scope discovery (e.g. domain-c123)
45
+ * @type {string}
46
+ * @memberof RightsizingCollectRequest
47
+ */
48
+ clusterId?: string;
49
+ /**
50
+ * Number of VMs per QueryPerf round-trip
51
+ * @type {number}
52
+ * @memberof RightsizingCollectRequest
53
+ */
54
+ batchSize?: number;
55
+ /**
56
+ * If true, discover VMs live from vSphere. If false (default), use the VMs already stored in the local inventory.
57
+ *
58
+ * @type {boolean}
59
+ * @memberof RightsizingCollectRequest
60
+ */
61
+ discoverVms?: boolean;
62
+ }
63
+ /**
64
+ * Check if a given object implements the RightsizingCollectRequest interface.
65
+ */
66
+ export declare function instanceOfRightsizingCollectRequest(value: object): value is RightsizingCollectRequest;
67
+ export declare function RightsizingCollectRequestFromJSON(json: any): RightsizingCollectRequest;
68
+ export declare function RightsizingCollectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingCollectRequest;
69
+ export declare function RightsizingCollectRequestToJSON(json: any): RightsizingCollectRequest;
70
+ export declare function RightsizingCollectRequestToJSONTyped(value?: RightsizingCollectRequest | 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 { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingCollectRequest interface.
17
+ */
18
+ export function instanceOfRightsizingCollectRequest(value) {
19
+ if (!('credentials' in value) || value['credentials'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function RightsizingCollectRequestFromJSON(json) {
24
+ return RightsizingCollectRequestFromJSONTyped(json, false);
25
+ }
26
+ export function RightsizingCollectRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'credentials': VcenterCredentialsFromJSON(json['credentials']),
32
+ 'lookbackHours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
33
+ 'intervalId': json['interval_id'] == null ? undefined : json['interval_id'],
34
+ 'nameFilter': json['name_filter'] == null ? undefined : json['name_filter'],
35
+ 'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
36
+ 'batchSize': json['batch_size'] == null ? undefined : json['batch_size'],
37
+ 'discoverVms': json['discover_vms'] == null ? undefined : json['discover_vms'],
38
+ };
39
+ }
40
+ export function RightsizingCollectRequestToJSON(json) {
41
+ return RightsizingCollectRequestToJSONTyped(json, false);
42
+ }
43
+ export function RightsizingCollectRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
49
+ 'lookback_hours': value['lookbackHours'],
50
+ 'interval_id': value['intervalId'],
51
+ 'name_filter': value['nameFilter'],
52
+ 'cluster_id': value['clusterId'],
53
+ 'batch_size': value['batchSize'],
54
+ 'discover_vms': value['discoverVms'],
55
+ };
56
+ }
@@ -0,0 +1,62 @@
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 RightsizingMetricStats
16
+ */
17
+ export interface RightsizingMetricStats {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof RightsizingMetricStats
22
+ */
23
+ sampleCount: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof RightsizingMetricStats
28
+ */
29
+ average: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof RightsizingMetricStats
34
+ */
35
+ p95: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof RightsizingMetricStats
40
+ */
41
+ p99: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof RightsizingMetricStats
46
+ */
47
+ max: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof RightsizingMetricStats
52
+ */
53
+ latest: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the RightsizingMetricStats interface.
57
+ */
58
+ export declare function instanceOfRightsizingMetricStats(value: object): value is RightsizingMetricStats;
59
+ export declare function RightsizingMetricStatsFromJSON(json: any): RightsizingMetricStats;
60
+ export declare function RightsizingMetricStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingMetricStats;
61
+ export declare function RightsizingMetricStatsToJSON(json: any): RightsizingMetricStats;
62
+ export declare function RightsizingMetricStatsToJSONTyped(value?: RightsizingMetricStats | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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 RightsizingMetricStats interface.
16
+ */
17
+ export function instanceOfRightsizingMetricStats(value) {
18
+ if (!('sampleCount' in value) || value['sampleCount'] === undefined)
19
+ return false;
20
+ if (!('average' in value) || value['average'] === undefined)
21
+ return false;
22
+ if (!('p95' in value) || value['p95'] === undefined)
23
+ return false;
24
+ if (!('p99' in value) || value['p99'] === undefined)
25
+ return false;
26
+ if (!('max' in value) || value['max'] === undefined)
27
+ return false;
28
+ if (!('latest' in value) || value['latest'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function RightsizingMetricStatsFromJSON(json) {
33
+ return RightsizingMetricStatsFromJSONTyped(json, false);
34
+ }
35
+ export function RightsizingMetricStatsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'sampleCount': json['sample_count'],
41
+ 'average': json['average'],
42
+ 'p95': json['p95'],
43
+ 'p99': json['p99'],
44
+ 'max': json['max'],
45
+ 'latest': json['latest'],
46
+ };
47
+ }
48
+ export function RightsizingMetricStatsToJSON(json) {
49
+ return RightsizingMetricStatsToJSONTyped(json, false);
50
+ }
51
+ export function RightsizingMetricStatsToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'sample_count': value['sampleCount'],
57
+ 'average': value['average'],
58
+ 'p95': value['p95'],
59
+ 'p99': value['p99'],
60
+ 'max': value['max'],
61
+ 'latest': value['latest'],
62
+ };
63
+ }
@@ -0,0 +1,81 @@
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 { RightsizingVMReport } from './RightsizingVMReport.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingReport
17
+ */
18
+ export interface RightsizingReport {
19
+ /**
20
+ * UUID of the report
21
+ * @type {string}
22
+ * @memberof RightsizingReport
23
+ */
24
+ id: string;
25
+ /**
26
+ * vCenter URL used for this collection
27
+ * @type {string}
28
+ * @memberof RightsizingReport
29
+ */
30
+ vcenter: string;
31
+ /**
32
+ * MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
33
+ * @type {string}
34
+ * @memberof RightsizingReport
35
+ */
36
+ clusterId: string;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof RightsizingReport
41
+ */
42
+ windowStart: Date;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof RightsizingReport
47
+ */
48
+ windowEnd: Date;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof RightsizingReport
53
+ */
54
+ intervalId: number;
55
+ /**
56
+ * Theoretical maximum samples for the window (lookback / interval)
57
+ * @type {number}
58
+ * @memberof RightsizingReport
59
+ */
60
+ expectedSampleCount: number;
61
+ /**
62
+ *
63
+ * @type {Array<RightsizingVMReport>}
64
+ * @memberof RightsizingReport
65
+ */
66
+ vms: Array<RightsizingVMReport>;
67
+ /**
68
+ *
69
+ * @type {Date}
70
+ * @memberof RightsizingReport
71
+ */
72
+ createdAt: Date;
73
+ }
74
+ /**
75
+ * Check if a given object implements the RightsizingReport interface.
76
+ */
77
+ export declare function instanceOfRightsizingReport(value: object): value is RightsizingReport;
78
+ export declare function RightsizingReportFromJSON(json: any): RightsizingReport;
79
+ export declare function RightsizingReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReport;
80
+ export declare function RightsizingReportToJSON(json: any): RightsizingReport;
81
+ export declare function RightsizingReportToJSONTyped(value?: RightsizingReport | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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 { RightsizingVMReportFromJSON, RightsizingVMReportToJSON, } from './RightsizingVMReport.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingReport interface.
17
+ */
18
+ export function instanceOfRightsizingReport(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('vcenter' in value) || value['vcenter'] === undefined)
22
+ return false;
23
+ if (!('clusterId' in value) || value['clusterId'] === undefined)
24
+ return false;
25
+ if (!('windowStart' in value) || value['windowStart'] === undefined)
26
+ return false;
27
+ if (!('windowEnd' in value) || value['windowEnd'] === undefined)
28
+ return false;
29
+ if (!('intervalId' in value) || value['intervalId'] === undefined)
30
+ return false;
31
+ if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined)
32
+ return false;
33
+ if (!('vms' in value) || value['vms'] === undefined)
34
+ return false;
35
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function RightsizingReportFromJSON(json) {
40
+ return RightsizingReportFromJSONTyped(json, false);
41
+ }
42
+ export function RightsizingReportFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'vcenter': json['vcenter'],
49
+ 'clusterId': json['cluster_id'],
50
+ 'windowStart': (new Date(json['window_start'])),
51
+ 'windowEnd': (new Date(json['window_end'])),
52
+ 'intervalId': json['interval_id'],
53
+ 'expectedSampleCount': json['expected_sample_count'],
54
+ 'vms': (json['vms'].map(RightsizingVMReportFromJSON)),
55
+ 'createdAt': (new Date(json['created_at'])),
56
+ };
57
+ }
58
+ export function RightsizingReportToJSON(json) {
59
+ return RightsizingReportToJSONTyped(json, false);
60
+ }
61
+ export function RightsizingReportToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'vcenter': value['vcenter'],
68
+ 'cluster_id': value['clusterId'],
69
+ 'window_start': value['windowStart'].toISOString(),
70
+ 'window_end': value['windowEnd'].toISOString(),
71
+ 'interval_id': value['intervalId'],
72
+ 'expected_sample_count': value['expectedSampleCount'],
73
+ 'vms': (value['vms'].map(RightsizingVMReportToJSON)),
74
+ 'created_at': value['createdAt'].toISOString(),
75
+ };
76
+ }
@@ -0,0 +1,39 @@
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 { RightsizingReportSummary } from './RightsizingReportSummary.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingReportListResponse
17
+ */
18
+ export interface RightsizingReportListResponse {
19
+ /**
20
+ * List of report summaries. Use GET /rightsizing/{id} for full VM metrics.
21
+ * @type {Array<RightsizingReportSummary>}
22
+ * @memberof RightsizingReportListResponse
23
+ */
24
+ reports: Array<RightsizingReportSummary>;
25
+ /**
26
+ * Total number of stored reports
27
+ * @type {number}
28
+ * @memberof RightsizingReportListResponse
29
+ */
30
+ total: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingReportListResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingReportListResponse(value: object): value is RightsizingReportListResponse;
36
+ export declare function RightsizingReportListResponseFromJSON(json: any): RightsizingReportListResponse;
37
+ export declare function RightsizingReportListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportListResponse;
38
+ export declare function RightsizingReportListResponseToJSON(json: any): RightsizingReportListResponse;
39
+ export declare function RightsizingReportListResponseToJSONTyped(value?: RightsizingReportListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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 { RightsizingReportSummaryFromJSON, RightsizingReportSummaryToJSON, } from './RightsizingReportSummary.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingReportListResponse interface.
17
+ */
18
+ export function instanceOfRightsizingReportListResponse(value) {
19
+ if (!('reports' in value) || value['reports'] === undefined)
20
+ return false;
21
+ if (!('total' in value) || value['total'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function RightsizingReportListResponseFromJSON(json) {
26
+ return RightsizingReportListResponseFromJSONTyped(json, false);
27
+ }
28
+ export function RightsizingReportListResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'reports': (json['reports'].map(RightsizingReportSummaryFromJSON)),
34
+ 'total': json['total'],
35
+ };
36
+ }
37
+ export function RightsizingReportListResponseToJSON(json) {
38
+ return RightsizingReportListResponseToJSONTyped(json, false);
39
+ }
40
+ export function RightsizingReportListResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'reports': (value['reports'].map(RightsizingReportSummaryToJSON)),
46
+ 'total': value['total'],
47
+ };
48
+ }
@@ -0,0 +1,74 @@
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
+ * Rightsizing report metadata without VM metrics. Use GET /rightsizing/{id} to retrieve the full report including metrics.
14
+ * @export
15
+ * @interface RightsizingReportSummary
16
+ */
17
+ export interface RightsizingReportSummary {
18
+ /**
19
+ * UUID of the report
20
+ * @type {string}
21
+ * @memberof RightsizingReportSummary
22
+ */
23
+ id: string;
24
+ /**
25
+ * vCenter URL used for this collection
26
+ * @type {string}
27
+ * @memberof RightsizingReportSummary
28
+ */
29
+ vcenter: string;
30
+ /**
31
+ * MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
32
+ * @type {string}
33
+ * @memberof RightsizingReportSummary
34
+ */
35
+ clusterId: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof RightsizingReportSummary
40
+ */
41
+ windowStart: Date;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof RightsizingReportSummary
46
+ */
47
+ windowEnd: Date;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof RightsizingReportSummary
52
+ */
53
+ intervalId: number;
54
+ /**
55
+ * Theoretical maximum samples for the window (lookback / interval)
56
+ * @type {number}
57
+ * @memberof RightsizingReportSummary
58
+ */
59
+ expectedSampleCount: number;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof RightsizingReportSummary
64
+ */
65
+ createdAt: Date;
66
+ }
67
+ /**
68
+ * Check if a given object implements the RightsizingReportSummary interface.
69
+ */
70
+ export declare function instanceOfRightsizingReportSummary(value: object): value is RightsizingReportSummary;
71
+ export declare function RightsizingReportSummaryFromJSON(json: any): RightsizingReportSummary;
72
+ export declare function RightsizingReportSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportSummary;
73
+ export declare function RightsizingReportSummaryToJSON(json: any): RightsizingReportSummary;
74
+ export declare function RightsizingReportSummaryToJSONTyped(value?: RightsizingReportSummary | null, ignoreDiscriminator?: boolean): any;