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

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 (128) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/README.md +29 -2
  3. package/dist/apis/DefaultApi.d.ts +450 -3
  4. package/dist/apis/DefaultApi.js +490 -3
  5. package/dist/esm/apis/DefaultApi.d.ts +450 -3
  6. package/dist/esm/apis/DefaultApi.js +490 -3
  7. package/dist/esm/models/BenchmarkRun.d.ts +104 -0
  8. package/dist/esm/models/BenchmarkRun.js +85 -0
  9. package/dist/esm/models/DatastoreDetail.d.ts +90 -0
  10. package/dist/esm/models/DatastoreDetail.js +74 -0
  11. package/dist/esm/models/DatastorePair.d.ts +50 -0
  12. package/dist/esm/models/DatastorePair.js +53 -0
  13. package/dist/esm/models/EstimateRange.d.ts +44 -0
  14. package/dist/esm/models/EstimateRange.js +45 -0
  15. package/dist/esm/models/ForecastStats.d.ts +87 -0
  16. package/dist/esm/models/ForecastStats.js +64 -0
  17. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
  18. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  19. package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
  20. package/dist/esm/models/ForecasterPairStatus.js +82 -0
  21. package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
  22. package/dist/esm/models/ForecasterStartRequest.js +53 -0
  23. package/dist/esm/models/ForecasterStatus.d.ts +47 -0
  24. package/dist/esm/models/ForecasterStatus.js +53 -0
  25. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  26. package/dist/esm/models/InspectorStatus.js +1 -10
  27. package/dist/esm/models/PairCapability.d.ts +60 -0
  28. package/dist/esm/models/PairCapability.js +64 -0
  29. package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
  30. package/dist/esm/models/PairCapabilityRequest.js +47 -0
  31. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
  32. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  33. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  34. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  35. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  36. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  37. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  38. package/dist/esm/models/StartInspectionRequest.js +5 -0
  39. package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
  40. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  41. package/dist/esm/models/VirtualMachineDetail.d.ts +7 -0
  42. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  43. package/dist/esm/models/VmUtilizationDetails.d.ts +18 -0
  44. package/dist/esm/models/VmUtilizationDetails.js +12 -0
  45. package/dist/esm/models/index.d.ts +15 -0
  46. package/dist/esm/models/index.js +15 -0
  47. package/dist/models/BenchmarkRun.d.ts +104 -0
  48. package/dist/models/BenchmarkRun.js +92 -0
  49. package/dist/models/DatastoreDetail.d.ts +90 -0
  50. package/dist/models/DatastoreDetail.js +82 -0
  51. package/dist/models/DatastorePair.d.ts +50 -0
  52. package/dist/models/DatastorePair.js +60 -0
  53. package/dist/models/EstimateRange.d.ts +44 -0
  54. package/dist/models/EstimateRange.js +52 -0
  55. package/dist/models/ForecastStats.d.ts +87 -0
  56. package/dist/models/ForecastStats.js +71 -0
  57. package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
  58. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  59. package/dist/models/ForecasterPairStatus.d.ts +98 -0
  60. package/dist/models/ForecasterPairStatus.js +90 -0
  61. package/dist/models/ForecasterStartRequest.d.ts +58 -0
  62. package/dist/models/ForecasterStartRequest.js +60 -0
  63. package/dist/models/ForecasterStatus.d.ts +47 -0
  64. package/dist/models/ForecasterStatus.js +61 -0
  65. package/dist/models/InspectorStatus.d.ts +0 -17
  66. package/dist/models/InspectorStatus.js +1 -10
  67. package/dist/models/PairCapability.d.ts +60 -0
  68. package/dist/models/PairCapability.js +72 -0
  69. package/dist/models/PairCapabilityRequest.d.ts +40 -0
  70. package/dist/models/PairCapabilityRequest.js +54 -0
  71. package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
  72. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  73. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  74. package/dist/models/RightsizingClusterListResponse.js +55 -0
  75. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  76. package/dist/models/RightsizingClusterUtilization.js +102 -0
  77. package/dist/models/StartInspectionRequest.d.ts +8 -1
  78. package/dist/models/StartInspectionRequest.js +5 -0
  79. package/dist/models/StopForecasterPair202Response.d.ts +45 -0
  80. package/dist/models/StopForecasterPair202Response.js +57 -0
  81. package/dist/models/VirtualMachineDetail.d.ts +7 -0
  82. package/dist/models/VirtualMachineDetail.js +3 -0
  83. package/dist/models/VmUtilizationDetails.d.ts +18 -0
  84. package/dist/models/VmUtilizationDetails.js +12 -0
  85. package/dist/models/index.d.ts +15 -0
  86. package/dist/models/index.js +15 -0
  87. package/docs/BenchmarkRun.md +58 -0
  88. package/docs/DatastoreDetail.md +50 -0
  89. package/docs/DatastorePair.md +40 -0
  90. package/docs/DefaultApi.md +977 -160
  91. package/docs/EstimateRange.md +39 -0
  92. package/docs/ForecastStats.md +52 -0
  93. package/docs/ForecasterDatastoresRequest.md +34 -0
  94. package/docs/ForecasterPairStatus.md +52 -0
  95. package/docs/ForecasterStartRequest.md +42 -0
  96. package/docs/ForecasterStatus.md +36 -0
  97. package/docs/InspectorStatus.md +0 -4
  98. package/docs/PairCapability.md +40 -0
  99. package/docs/PairCapabilityRequest.md +36 -0
  100. package/docs/PutForecasterCredentials403Response.md +36 -0
  101. package/docs/RightsizingClusterListResponse.md +36 -0
  102. package/docs/RightsizingClusterUtilization.md +60 -0
  103. package/docs/StartInspectionRequest.md +3 -1
  104. package/docs/StopForecasterPair202Response.md +36 -0
  105. package/docs/VirtualMachineDetail.md +2 -0
  106. package/docs/VmUtilizationDetails.md +6 -0
  107. package/package.json +1 -1
  108. package/src/apis/DefaultApi.ts +933 -21
  109. package/src/models/BenchmarkRun.ts +171 -0
  110. package/src/models/DatastoreDetail.ts +146 -0
  111. package/src/models/DatastorePair.ts +92 -0
  112. package/src/models/EstimateRange.ts +81 -0
  113. package/src/models/ForecastStats.ts +147 -0
  114. package/src/models/ForecasterDatastoresRequest.ts +73 -0
  115. package/src/models/ForecasterPairStatus.ts +158 -0
  116. package/src/models/ForecasterStartRequest.ts +113 -0
  117. package/src/models/ForecasterStatus.ts +93 -0
  118. package/src/models/InspectorStatus.ts +1 -28
  119. package/src/models/PairCapability.ts +106 -0
  120. package/src/models/PairCapabilityRequest.ts +89 -0
  121. package/src/models/PutForecasterCredentials403Response.ts +73 -0
  122. package/src/models/RightsizingClusterListResponse.ts +83 -0
  123. package/src/models/RightsizingClusterUtilization.ts +185 -0
  124. package/src/models/StartInspectionRequest.ts +18 -1
  125. package/src/models/StopForecasterPair202Response.ts +83 -0
  126. package/src/models/VirtualMachineDetail.ts +15 -0
  127. package/src/models/VmUtilizationDetails.ts +27 -0
  128. package/src/models/index.ts +15 -0
@@ -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
+ import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
15
+ import { DatastorePairFromJSON, DatastorePairToJSON, } from './DatastorePair.js';
16
+ /**
17
+ * Check if a given object implements the PairCapabilityRequest interface.
18
+ */
19
+ export function instanceOfPairCapabilityRequest(value) {
20
+ if (!('pairs' in value) || value['pairs'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PairCapabilityRequestFromJSON(json) {
25
+ return PairCapabilityRequestFromJSONTyped(json, false);
26
+ }
27
+ export function PairCapabilityRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
33
+ 'pairs': (json['pairs'].map(DatastorePairFromJSON)),
34
+ };
35
+ }
36
+ export function PairCapabilityRequestToJSON(json) {
37
+ return PairCapabilityRequestToJSONTyped(json, false);
38
+ }
39
+ export function PairCapabilityRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
45
+ 'pairs': (value['pairs'].map(DatastorePairToJSON)),
46
+ };
47
+ }
@@ -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 PutForecasterCredentials403Response
16
+ */
17
+ export interface PutForecasterCredentials403Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PutForecasterCredentials403Response
22
+ */
23
+ error?: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof PutForecasterCredentials403Response
28
+ */
29
+ missingPrivileges?: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PutForecasterCredentials403Response interface.
33
+ */
34
+ export declare function instanceOfPutForecasterCredentials403Response(value: object): value is PutForecasterCredentials403Response;
35
+ export declare function PutForecasterCredentials403ResponseFromJSON(json: any): PutForecasterCredentials403Response;
36
+ export declare function PutForecasterCredentials403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutForecasterCredentials403Response;
37
+ export declare function PutForecasterCredentials403ResponseToJSON(json: any): PutForecasterCredentials403Response;
38
+ export declare function PutForecasterCredentials403ResponseToJSONTyped(value?: PutForecasterCredentials403Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 PutForecasterCredentials403Response interface.
16
+ */
17
+ export function instanceOfPutForecasterCredentials403Response(value) {
18
+ return true;
19
+ }
20
+ export function PutForecasterCredentials403ResponseFromJSON(json) {
21
+ return PutForecasterCredentials403ResponseFromJSONTyped(json, false);
22
+ }
23
+ export function PutForecasterCredentials403ResponseFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'error': json['error'] == null ? undefined : json['error'],
29
+ 'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
30
+ };
31
+ }
32
+ export function PutForecasterCredentials403ResponseToJSON(json) {
33
+ return PutForecasterCredentials403ResponseToJSONTyped(json, false);
34
+ }
35
+ export function PutForecasterCredentials403ResponseToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'error': value['error'],
41
+ 'missingPrivileges': value['missingPrivileges'],
42
+ };
43
+ }
@@ -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 { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingClusterListResponse
17
+ */
18
+ export interface RightsizingClusterListResponse {
19
+ /**
20
+ * The report ID this data was aggregated from
21
+ * @type {string}
22
+ * @memberof RightsizingClusterListResponse
23
+ */
24
+ reportId: string;
25
+ /**
26
+ *
27
+ * @type {Array<RightsizingClusterUtilization>}
28
+ * @memberof RightsizingClusterListResponse
29
+ */
30
+ clusters: Array<RightsizingClusterUtilization>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingClusterListResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse;
36
+ export declare function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse;
37
+ export declare function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse;
38
+ export declare function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse;
39
+ export declare function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | 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 { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJSON, } from './RightsizingClusterUtilization.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingClusterListResponse interface.
17
+ */
18
+ export function instanceOfRightsizingClusterListResponse(value) {
19
+ if (!('reportId' in value) || value['reportId'] === undefined)
20
+ return false;
21
+ if (!('clusters' in value) || value['clusters'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function RightsizingClusterListResponseFromJSON(json) {
26
+ return RightsizingClusterListResponseFromJSONTyped(json, false);
27
+ }
28
+ export function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'reportId': json['report_id'],
34
+ 'clusters': (json['clusters'].map(RightsizingClusterUtilizationFromJSON)),
35
+ };
36
+ }
37
+ export function RightsizingClusterListResponseToJSON(json) {
38
+ return RightsizingClusterListResponseToJSONTyped(json, false);
39
+ }
40
+ export function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'report_id': value['reportId'],
46
+ 'clusters': (value['clusters'].map(RightsizingClusterUtilizationToJSON)),
47
+ };
48
+ }
@@ -0,0 +1,112 @@
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 RightsizingClusterUtilization
16
+ */
17
+ export interface RightsizingClusterUtilization {
18
+ /**
19
+ * vSphere MoRef of the ClusterComputeResource (e.g. "domain-c123").
20
+ * @type {string}
21
+ * @memberof RightsizingClusterUtilization
22
+ */
23
+ clusterId: string;
24
+ /**
25
+ * Display name of the cluster as reported by vCenter (e.g. "production-cluster").
26
+ * @type {string}
27
+ * @memberof RightsizingClusterUtilization
28
+ */
29
+ clusterName: string;
30
+ /**
31
+ * Number of VMs with utilization data in this cluster
32
+ * @type {number}
33
+ * @memberof RightsizingClusterUtilization
34
+ */
35
+ vmCount: number;
36
+ /**
37
+ * SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
38
+ * @type {number}
39
+ * @memberof RightsizingClusterUtilization
40
+ */
41
+ cpuAvg: number;
42
+ /**
43
+ * SUM(vCPUs × vm_p95%) / SUM(vCPUs). Weighted summary of per-VM p95 values — not a true cluster-wide p95 (which would require time-aligned samples).
44
+ *
45
+ * @type {number}
46
+ * @memberof RightsizingClusterUtilization
47
+ */
48
+ cpuP95: number;
49
+ /**
50
+ * Weighted summary of per-VM max values (see cpu_p95 note)
51
+ * @type {number}
52
+ * @memberof RightsizingClusterUtilization
53
+ */
54
+ cpuMax: number;
55
+ /**
56
+ * SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
57
+ * @type {number}
58
+ * @memberof RightsizingClusterUtilization
59
+ */
60
+ memAvg: number;
61
+ /**
62
+ * Weighted summary of per-VM memory p95 values (see cpu_p95 note)
63
+ * @type {number}
64
+ * @memberof RightsizingClusterUtilization
65
+ */
66
+ memP95: number;
67
+ /**
68
+ * Weighted summary of per-VM memory max values (see cpu_p95 note)
69
+ * @type {number}
70
+ * @memberof RightsizingClusterUtilization
71
+ */
72
+ memMax: number;
73
+ /**
74
+ * SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
75
+ * @type {number}
76
+ * @memberof RightsizingClusterUtilization
77
+ */
78
+ disk: number;
79
+ /**
80
+ * SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
81
+ *
82
+ * @type {number}
83
+ * @memberof RightsizingClusterUtilization
84
+ */
85
+ confidence: number;
86
+ /**
87
+ * Sum of vCPU counts across all VMs in the cluster
88
+ * @type {number}
89
+ * @memberof RightsizingClusterUtilization
90
+ */
91
+ totalProvisionedCpus: number;
92
+ /**
93
+ * Sum of provisioned RAM (MB) across all VMs in the cluster
94
+ * @type {number}
95
+ * @memberof RightsizingClusterUtilization
96
+ */
97
+ totalProvisionedMemoryMb: number;
98
+ /**
99
+ * Sum of provisioned disk (KB) across all VMs in the cluster
100
+ * @type {number}
101
+ * @memberof RightsizingClusterUtilization
102
+ */
103
+ totalProvisionedDiskKb: number;
104
+ }
105
+ /**
106
+ * Check if a given object implements the RightsizingClusterUtilization interface.
107
+ */
108
+ export declare function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization;
109
+ export declare function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization;
110
+ export declare function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization;
111
+ export declare function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization;
112
+ export declare function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,95 @@
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 RightsizingClusterUtilization interface.
16
+ */
17
+ export function instanceOfRightsizingClusterUtilization(value) {
18
+ if (!('clusterId' in value) || value['clusterId'] === undefined)
19
+ return false;
20
+ if (!('clusterName' in value) || value['clusterName'] === undefined)
21
+ return false;
22
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
23
+ return false;
24
+ if (!('cpuAvg' in value) || value['cpuAvg'] === undefined)
25
+ return false;
26
+ if (!('cpuP95' in value) || value['cpuP95'] === undefined)
27
+ return false;
28
+ if (!('cpuMax' in value) || value['cpuMax'] === undefined)
29
+ return false;
30
+ if (!('memAvg' in value) || value['memAvg'] === undefined)
31
+ return false;
32
+ if (!('memP95' in value) || value['memP95'] === undefined)
33
+ return false;
34
+ if (!('memMax' in value) || value['memMax'] === undefined)
35
+ return false;
36
+ if (!('disk' in value) || value['disk'] === undefined)
37
+ return false;
38
+ if (!('confidence' in value) || value['confidence'] === undefined)
39
+ return false;
40
+ if (!('totalProvisionedCpus' in value) || value['totalProvisionedCpus'] === undefined)
41
+ return false;
42
+ if (!('totalProvisionedMemoryMb' in value) || value['totalProvisionedMemoryMb'] === undefined)
43
+ return false;
44
+ if (!('totalProvisionedDiskKb' in value) || value['totalProvisionedDiskKb'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ export function RightsizingClusterUtilizationFromJSON(json) {
49
+ return RightsizingClusterUtilizationFromJSONTyped(json, false);
50
+ }
51
+ export function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'clusterId': json['cluster_id'],
57
+ 'clusterName': json['cluster_name'],
58
+ 'vmCount': json['vm_count'],
59
+ 'cpuAvg': json['cpu_avg'],
60
+ 'cpuP95': json['cpu_p95'],
61
+ 'cpuMax': json['cpu_max'],
62
+ 'memAvg': json['mem_avg'],
63
+ 'memP95': json['mem_p95'],
64
+ 'memMax': json['mem_max'],
65
+ 'disk': json['disk'],
66
+ 'confidence': json['confidence'],
67
+ 'totalProvisionedCpus': json['total_provisioned_cpus'],
68
+ 'totalProvisionedMemoryMb': json['total_provisioned_memory_mb'],
69
+ 'totalProvisionedDiskKb': json['total_provisioned_disk_kb'],
70
+ };
71
+ }
72
+ export function RightsizingClusterUtilizationToJSON(json) {
73
+ return RightsizingClusterUtilizationToJSONTyped(json, false);
74
+ }
75
+ export function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+ 'cluster_id': value['clusterId'],
81
+ 'cluster_name': value['clusterName'],
82
+ 'vm_count': value['vmCount'],
83
+ 'cpu_avg': value['cpuAvg'],
84
+ 'cpu_p95': value['cpuP95'],
85
+ 'cpu_max': value['cpuMax'],
86
+ 'mem_avg': value['memAvg'],
87
+ 'mem_p95': value['memP95'],
88
+ 'mem_max': value['memMax'],
89
+ 'disk': value['disk'],
90
+ 'confidence': value['confidence'],
91
+ 'total_provisioned_cpus': value['totalProvisionedCpus'],
92
+ 'total_provisioned_memory_mb': value['totalProvisionedMemoryMb'],
93
+ 'total_provisioned_disk_kb': value['totalProvisionedDiskKb'],
94
+ };
95
+ }
@@ -9,8 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VcenterCredentials } from './VcenterCredentials.js';
12
13
  /**
13
- * Array of VirtualMachine id
14
+ * Start inspection request
14
15
  * @export
15
16
  * @interface StartInspectionRequest
16
17
  */
@@ -21,6 +22,12 @@ export interface StartInspectionRequest {
21
22
  * @memberof StartInspectionRequest
22
23
  */
23
24
  vmIds: Array<string>;
25
+ /**
26
+ *
27
+ * @type {VcenterCredentials}
28
+ * @memberof StartInspectionRequest
29
+ */
30
+ credentials: VcenterCredentials;
24
31
  }
25
32
  /**
26
33
  * Check if a given object implements the StartInspectionRequest interface.
@@ -11,12 +11,15 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
14
15
  /**
15
16
  * Check if a given object implements the StartInspectionRequest interface.
16
17
  */
17
18
  export function instanceOfStartInspectionRequest(value) {
18
19
  if (!('vmIds' in value) || value['vmIds'] === undefined)
19
20
  return false;
21
+ if (!('credentials' in value) || value['credentials'] === undefined)
22
+ return false;
20
23
  return true;
21
24
  }
22
25
  export function StartInspectionRequestFromJSON(json) {
@@ -28,6 +31,7 @@ export function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
28
31
  }
29
32
  return {
30
33
  'vmIds': json['vmIds'],
34
+ 'credentials': VcenterCredentialsFromJSON(json['credentials']),
31
35
  };
32
36
  }
33
37
  export function StartInspectionRequestToJSON(json) {
@@ -39,5 +43,6 @@ export function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = f
39
43
  }
40
44
  return {
41
45
  'vmIds': value['vmIds'],
46
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
42
47
  };
43
48
  }
@@ -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
+ /**
13
+ *
14
+ * @export
15
+ * @interface StopForecasterPair202Response
16
+ */
17
+ export interface StopForecasterPair202Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StopForecasterPair202Response
22
+ */
23
+ pairName?: string;
24
+ /**
25
+ *
26
+ * @type {StopForecasterPair202ResponseStateEnum}
27
+ * @memberof StopForecasterPair202Response
28
+ */
29
+ state?: StopForecasterPair202ResponseStateEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const StopForecasterPair202ResponseStateEnum: {
35
+ readonly Canceled: "canceled";
36
+ };
37
+ export type StopForecasterPair202ResponseStateEnum = typeof StopForecasterPair202ResponseStateEnum[keyof typeof StopForecasterPair202ResponseStateEnum];
38
+ /**
39
+ * Check if a given object implements the StopForecasterPair202Response interface.
40
+ */
41
+ export declare function instanceOfStopForecasterPair202Response(value: object): value is StopForecasterPair202Response;
42
+ export declare function StopForecasterPair202ResponseFromJSON(json: any): StopForecasterPair202Response;
43
+ export declare function StopForecasterPair202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopForecasterPair202Response;
44
+ export declare function StopForecasterPair202ResponseToJSON(json: any): StopForecasterPair202Response;
45
+ export declare function StopForecasterPair202ResponseToJSONTyped(value?: StopForecasterPair202Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const StopForecasterPair202ResponseStateEnum = {
18
+ Canceled: 'canceled'
19
+ };
20
+ /**
21
+ * Check if a given object implements the StopForecasterPair202Response interface.
22
+ */
23
+ export function instanceOfStopForecasterPair202Response(value) {
24
+ return true;
25
+ }
26
+ export function StopForecasterPair202ResponseFromJSON(json) {
27
+ return StopForecasterPair202ResponseFromJSONTyped(json, false);
28
+ }
29
+ export function StopForecasterPair202ResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'pairName': json['pairName'] == null ? undefined : json['pairName'],
35
+ 'state': json['state'] == null ? undefined : json['state'],
36
+ };
37
+ }
38
+ export function StopForecasterPair202ResponseToJSON(json) {
39
+ return StopForecasterPair202ResponseToJSONTyped(json, false);
40
+ }
41
+ export function StopForecasterPair202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'pairName': value['pairName'],
47
+ 'state': value['state'],
48
+ };
49
+ }
@@ -13,6 +13,7 @@ import type { VMNIC } from './VMNIC.js';
13
13
  import type { GuestNetwork } from './GuestNetwork.js';
14
14
  import type { VMIssue } from './VMIssue.js';
15
15
  import type { VMDevice } from './VMDevice.js';
16
+ import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
16
17
  import type { VMDisk } from './VMDisk.js';
17
18
  import type { VmInspectionResults } from './VmInspectionResults.js';
18
19
  /**
@@ -207,6 +208,12 @@ export interface VirtualMachineDetail {
207
208
  * @memberof VirtualMachineDetail
208
209
  */
209
210
  inspection?: VmInspectionResults;
211
+ /**
212
+ *
213
+ * @type {VmUtilizationDetails}
214
+ * @memberof VirtualMachineDetail
215
+ */
216
+ utilization?: VmUtilizationDetails;
210
217
  }
211
218
  /**
212
219
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -15,6 +15,7 @@ import { VMNICFromJSON, VMNICToJSON, } from './VMNIC.js';
15
15
  import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
16
16
  import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
17
17
  import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
18
+ import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
18
19
  import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
19
20
  import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
20
21
  /**
@@ -80,6 +81,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
80
81
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
81
82
  'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
82
83
  'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
84
+ 'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
83
85
  };
84
86
  }
85
87
  export function VirtualMachineDetailToJSON(json) {
@@ -121,5 +123,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
121
123
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
122
124
  'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
123
125
  'inspection': VmInspectionResultsToJSON(value['inspection']),
126
+ 'utilization': VmUtilizationDetailsToJSON(value['utilization']),
124
127
  };
125
128
  }
@@ -27,6 +27,24 @@ export interface VmUtilizationDetails {
27
27
  * @memberof VmUtilizationDetails
28
28
  */
29
29
  vmName: string;
30
+ /**
31
+ * Number of vCPUs provisioned for this VM
32
+ * @type {number}
33
+ * @memberof VmUtilizationDetails
34
+ */
35
+ provisionedCpus: number;
36
+ /**
37
+ * Provisioned RAM (MB)
38
+ * @type {number}
39
+ * @memberof VmUtilizationDetails
40
+ */
41
+ provisionedMemoryMb: number;
42
+ /**
43
+ * Provisioned disk (KB)
44
+ * @type {number}
45
+ * @memberof VmUtilizationDetails
46
+ */
47
+ provisionedDiskKb: number;
30
48
  /**
31
49
  * CPU utilization average (%)
32
50
  * @type {number}