@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,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
17
+ import {
18
+ RightsizingClusterUtilizationFromJSON,
19
+ RightsizingClusterUtilizationFromJSONTyped,
20
+ RightsizingClusterUtilizationToJSON,
21
+ RightsizingClusterUtilizationToJSONTyped,
22
+ } from './RightsizingClusterUtilization.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface RightsizingClusterListResponse
28
+ */
29
+ export interface RightsizingClusterListResponse {
30
+ /**
31
+ * The report ID this data was aggregated from
32
+ * @type {string}
33
+ * @memberof RightsizingClusterListResponse
34
+ */
35
+ reportId: string;
36
+ /**
37
+ *
38
+ * @type {Array<RightsizingClusterUtilization>}
39
+ * @memberof RightsizingClusterListResponse
40
+ */
41
+ clusters: Array<RightsizingClusterUtilization>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the RightsizingClusterListResponse interface.
46
+ */
47
+ export function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse {
48
+ if (!('reportId' in value) || value['reportId'] === undefined) return false;
49
+ if (!('clusters' in value) || value['clusters'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse {
54
+ return RightsizingClusterListResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'reportId': json['report_id'],
64
+ 'clusters': ((json['clusters'] as Array<any>).map(RightsizingClusterUtilizationFromJSON)),
65
+ };
66
+ }
67
+
68
+ export function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse {
69
+ return RightsizingClusterListResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'report_id': value['reportId'],
80
+ 'clusters': ((value['clusters'] as Array<any>).map(RightsizingClusterUtilizationToJSON)),
81
+ };
82
+ }
83
+
@@ -0,0 +1,185 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RightsizingClusterUtilization
20
+ */
21
+ export interface RightsizingClusterUtilization {
22
+ /**
23
+ * vSphere MoRef of the ClusterComputeResource (e.g. "domain-c123").
24
+ * @type {string}
25
+ * @memberof RightsizingClusterUtilization
26
+ */
27
+ clusterId: string;
28
+ /**
29
+ * Display name of the cluster as reported by vCenter (e.g. "production-cluster").
30
+ * @type {string}
31
+ * @memberof RightsizingClusterUtilization
32
+ */
33
+ clusterName: string;
34
+ /**
35
+ * Number of VMs with utilization data in this cluster
36
+ * @type {number}
37
+ * @memberof RightsizingClusterUtilization
38
+ */
39
+ vmCount: number;
40
+ /**
41
+ * SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
42
+ * @type {number}
43
+ * @memberof RightsizingClusterUtilization
44
+ */
45
+ cpuAvg: number;
46
+ /**
47
+ * 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).
48
+ *
49
+ * @type {number}
50
+ * @memberof RightsizingClusterUtilization
51
+ */
52
+ cpuP95: number;
53
+ /**
54
+ * Weighted summary of per-VM max values (see cpu_p95 note)
55
+ * @type {number}
56
+ * @memberof RightsizingClusterUtilization
57
+ */
58
+ cpuMax: number;
59
+ /**
60
+ * SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
61
+ * @type {number}
62
+ * @memberof RightsizingClusterUtilization
63
+ */
64
+ memAvg: number;
65
+ /**
66
+ * Weighted summary of per-VM memory p95 values (see cpu_p95 note)
67
+ * @type {number}
68
+ * @memberof RightsizingClusterUtilization
69
+ */
70
+ memP95: number;
71
+ /**
72
+ * Weighted summary of per-VM memory max values (see cpu_p95 note)
73
+ * @type {number}
74
+ * @memberof RightsizingClusterUtilization
75
+ */
76
+ memMax: number;
77
+ /**
78
+ * SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
79
+ * @type {number}
80
+ * @memberof RightsizingClusterUtilization
81
+ */
82
+ disk: number;
83
+ /**
84
+ * SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
85
+ *
86
+ * @type {number}
87
+ * @memberof RightsizingClusterUtilization
88
+ */
89
+ confidence: number;
90
+ /**
91
+ * Sum of vCPU counts across all VMs in the cluster
92
+ * @type {number}
93
+ * @memberof RightsizingClusterUtilization
94
+ */
95
+ totalProvisionedCpus: number;
96
+ /**
97
+ * Sum of provisioned RAM (MB) across all VMs in the cluster
98
+ * @type {number}
99
+ * @memberof RightsizingClusterUtilization
100
+ */
101
+ totalProvisionedMemoryMb: number;
102
+ /**
103
+ * Sum of provisioned disk (KB) across all VMs in the cluster
104
+ * @type {number}
105
+ * @memberof RightsizingClusterUtilization
106
+ */
107
+ totalProvisionedDiskKb: number;
108
+ }
109
+
110
+ /**
111
+ * Check if a given object implements the RightsizingClusterUtilization interface.
112
+ */
113
+ export function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization {
114
+ if (!('clusterId' in value) || value['clusterId'] === undefined) return false;
115
+ if (!('clusterName' in value) || value['clusterName'] === undefined) return false;
116
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
117
+ if (!('cpuAvg' in value) || value['cpuAvg'] === undefined) return false;
118
+ if (!('cpuP95' in value) || value['cpuP95'] === undefined) return false;
119
+ if (!('cpuMax' in value) || value['cpuMax'] === undefined) return false;
120
+ if (!('memAvg' in value) || value['memAvg'] === undefined) return false;
121
+ if (!('memP95' in value) || value['memP95'] === undefined) return false;
122
+ if (!('memMax' in value) || value['memMax'] === undefined) return false;
123
+ if (!('disk' in value) || value['disk'] === undefined) return false;
124
+ if (!('confidence' in value) || value['confidence'] === undefined) return false;
125
+ if (!('totalProvisionedCpus' in value) || value['totalProvisionedCpus'] === undefined) return false;
126
+ if (!('totalProvisionedMemoryMb' in value) || value['totalProvisionedMemoryMb'] === undefined) return false;
127
+ if (!('totalProvisionedDiskKb' in value) || value['totalProvisionedDiskKb'] === undefined) return false;
128
+ return true;
129
+ }
130
+
131
+ export function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization {
132
+ return RightsizingClusterUtilizationFromJSONTyped(json, false);
133
+ }
134
+
135
+ export function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization {
136
+ if (json == null) {
137
+ return json;
138
+ }
139
+ return {
140
+
141
+ 'clusterId': json['cluster_id'],
142
+ 'clusterName': json['cluster_name'],
143
+ 'vmCount': json['vm_count'],
144
+ 'cpuAvg': json['cpu_avg'],
145
+ 'cpuP95': json['cpu_p95'],
146
+ 'cpuMax': json['cpu_max'],
147
+ 'memAvg': json['mem_avg'],
148
+ 'memP95': json['mem_p95'],
149
+ 'memMax': json['mem_max'],
150
+ 'disk': json['disk'],
151
+ 'confidence': json['confidence'],
152
+ 'totalProvisionedCpus': json['total_provisioned_cpus'],
153
+ 'totalProvisionedMemoryMb': json['total_provisioned_memory_mb'],
154
+ 'totalProvisionedDiskKb': json['total_provisioned_disk_kb'],
155
+ };
156
+ }
157
+
158
+ export function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization {
159
+ return RightsizingClusterUtilizationToJSONTyped(json, false);
160
+ }
161
+
162
+ export function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator: boolean = false): any {
163
+ if (value == null) {
164
+ return value;
165
+ }
166
+
167
+ return {
168
+
169
+ 'cluster_id': value['clusterId'],
170
+ 'cluster_name': value['clusterName'],
171
+ 'vm_count': value['vmCount'],
172
+ 'cpu_avg': value['cpuAvg'],
173
+ 'cpu_p95': value['cpuP95'],
174
+ 'cpu_max': value['cpuMax'],
175
+ 'mem_avg': value['memAvg'],
176
+ 'mem_p95': value['memP95'],
177
+ 'mem_max': value['memMax'],
178
+ 'disk': value['disk'],
179
+ 'confidence': value['confidence'],
180
+ 'total_provisioned_cpus': value['totalProvisionedCpus'],
181
+ 'total_provisioned_memory_mb': value['totalProvisionedMemoryMb'],
182
+ 'total_provisioned_disk_kb': value['totalProvisionedDiskKb'],
183
+ };
184
+ }
185
+
@@ -13,8 +13,16 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { VcenterCredentials } from './VcenterCredentials.js';
17
+ import {
18
+ VcenterCredentialsFromJSON,
19
+ VcenterCredentialsFromJSONTyped,
20
+ VcenterCredentialsToJSON,
21
+ VcenterCredentialsToJSONTyped,
22
+ } from './VcenterCredentials.js';
23
+
16
24
  /**
17
- * Array of VirtualMachine id
25
+ * Start inspection request
18
26
  * @export
19
27
  * @interface StartInspectionRequest
20
28
  */
@@ -25,6 +33,12 @@ export interface StartInspectionRequest {
25
33
  * @memberof StartInspectionRequest
26
34
  */
27
35
  vmIds: Array<string>;
36
+ /**
37
+ *
38
+ * @type {VcenterCredentials}
39
+ * @memberof StartInspectionRequest
40
+ */
41
+ credentials: VcenterCredentials;
28
42
  }
29
43
 
30
44
  /**
@@ -32,6 +46,7 @@ export interface StartInspectionRequest {
32
46
  */
33
47
  export function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest {
34
48
  if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
49
+ if (!('credentials' in value) || value['credentials'] === undefined) return false;
35
50
  return true;
36
51
  }
37
52
 
@@ -46,6 +61,7 @@ export function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminat
46
61
  return {
47
62
 
48
63
  'vmIds': json['vmIds'],
64
+ 'credentials': VcenterCredentialsFromJSON(json['credentials']),
49
65
  };
50
66
  }
51
67
 
@@ -61,6 +77,7 @@ export function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest
61
77
  return {
62
78
 
63
79
  'vmIds': value['vmIds'],
80
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
64
81
  };
65
82
  }
66
83
 
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface StopForecasterPair202Response
20
+ */
21
+ export interface StopForecasterPair202Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof StopForecasterPair202Response
26
+ */
27
+ pairName?: string;
28
+ /**
29
+ *
30
+ * @type {StopForecasterPair202ResponseStateEnum}
31
+ * @memberof StopForecasterPair202Response
32
+ */
33
+ state?: StopForecasterPair202ResponseStateEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const StopForecasterPair202ResponseStateEnum = {
41
+ Canceled: 'canceled'
42
+ } as const;
43
+ export type StopForecasterPair202ResponseStateEnum = typeof StopForecasterPair202ResponseStateEnum[keyof typeof StopForecasterPair202ResponseStateEnum];
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the StopForecasterPair202Response interface.
48
+ */
49
+ export function instanceOfStopForecasterPair202Response(value: object): value is StopForecasterPair202Response {
50
+ return true;
51
+ }
52
+
53
+ export function StopForecasterPair202ResponseFromJSON(json: any): StopForecasterPair202Response {
54
+ return StopForecasterPair202ResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function StopForecasterPair202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopForecasterPair202Response {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'pairName': json['pairName'] == null ? undefined : json['pairName'],
64
+ 'state': json['state'] == null ? undefined : json['state'],
65
+ };
66
+ }
67
+
68
+ export function StopForecasterPair202ResponseToJSON(json: any): StopForecasterPair202Response {
69
+ return StopForecasterPair202ResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function StopForecasterPair202ResponseToJSONTyped(value?: StopForecasterPair202Response | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'pairName': value['pairName'],
80
+ 'state': value['state'],
81
+ };
82
+ }
83
+
@@ -41,6 +41,13 @@ import {
41
41
  VMDeviceToJSON,
42
42
  VMDeviceToJSONTyped,
43
43
  } from './VMDevice.js';
44
+ import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
45
+ import {
46
+ VmUtilizationDetailsFromJSON,
47
+ VmUtilizationDetailsFromJSONTyped,
48
+ VmUtilizationDetailsToJSON,
49
+ VmUtilizationDetailsToJSONTyped,
50
+ } from './VmUtilizationDetails.js';
44
51
  import type { VMDisk } from './VMDisk.js';
45
52
  import {
46
53
  VMDiskFromJSON,
@@ -248,6 +255,12 @@ export interface VirtualMachineDetail {
248
255
  * @memberof VirtualMachineDetail
249
256
  */
250
257
  inspection?: VmInspectionResults;
258
+ /**
259
+ *
260
+ * @type {VmUtilizationDetails}
261
+ * @memberof VirtualMachineDetail
262
+ */
263
+ utilization?: VmUtilizationDetails;
251
264
  }
252
265
 
253
266
  /**
@@ -307,6 +320,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
307
320
  'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
308
321
  'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
309
322
  'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
323
+ 'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
310
324
  };
311
325
  }
312
326
 
@@ -352,6 +366,7 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
352
366
  'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
353
367
  'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
354
368
  'inspection': VmInspectionResultsToJSON(value['inspection']),
369
+ 'utilization': VmUtilizationDetailsToJSON(value['utilization']),
355
370
  };
356
371
  }
357
372
 
@@ -31,6 +31,24 @@ export interface VmUtilizationDetails {
31
31
  * @memberof VmUtilizationDetails
32
32
  */
33
33
  vmName: string;
34
+ /**
35
+ * Number of vCPUs provisioned for this VM
36
+ * @type {number}
37
+ * @memberof VmUtilizationDetails
38
+ */
39
+ provisionedCpus: number;
40
+ /**
41
+ * Provisioned RAM (MB)
42
+ * @type {number}
43
+ * @memberof VmUtilizationDetails
44
+ */
45
+ provisionedMemoryMb: number;
46
+ /**
47
+ * Provisioned disk (KB)
48
+ * @type {number}
49
+ * @memberof VmUtilizationDetails
50
+ */
51
+ provisionedDiskKb: number;
34
52
  /**
35
53
  * CPU utilization average (%)
36
54
  * @type {number}
@@ -99,6 +117,9 @@ export interface VmUtilizationDetails {
99
117
  export function instanceOfVmUtilizationDetails(value: object): value is VmUtilizationDetails {
100
118
  if (!('moid' in value) || value['moid'] === undefined) return false;
101
119
  if (!('vmName' in value) || value['vmName'] === undefined) return false;
120
+ if (!('provisionedCpus' in value) || value['provisionedCpus'] === undefined) return false;
121
+ if (!('provisionedMemoryMb' in value) || value['provisionedMemoryMb'] === undefined) return false;
122
+ if (!('provisionedDiskKb' in value) || value['provisionedDiskKb'] === undefined) return false;
102
123
  if (!('cpuAvg' in value) || value['cpuAvg'] === undefined) return false;
103
124
  if (!('cpuP95' in value) || value['cpuP95'] === undefined) return false;
104
125
  if (!('cpuMax' in value) || value['cpuMax'] === undefined) return false;
@@ -124,6 +145,9 @@ export function VmUtilizationDetailsFromJSONTyped(json: any, ignoreDiscriminator
124
145
 
125
146
  'moid': json['moid'],
126
147
  'vmName': json['vm_name'],
148
+ 'provisionedCpus': json['provisioned_cpus'],
149
+ 'provisionedMemoryMb': json['provisioned_memory_mb'],
150
+ 'provisionedDiskKb': json['provisioned_disk_kb'],
127
151
  'cpuAvg': json['cpu_avg'],
128
152
  'cpuP95': json['cpu_p95'],
129
153
  'cpuMax': json['cpu_max'],
@@ -150,6 +174,9 @@ export function VmUtilizationDetailsToJSONTyped(value?: VmUtilizationDetails | n
150
174
 
151
175
  'moid': value['moid'],
152
176
  'vm_name': value['vmName'],
177
+ 'provisioned_cpus': value['provisionedCpus'],
178
+ 'provisioned_memory_mb': value['provisionedMemoryMb'],
179
+ 'provisioned_disk_kb': value['provisionedDiskKb'],
153
180
  'cpu_avg': value['cpuAvg'],
154
181
  'cpu_p95': value['cpuP95'],
155
182
  'cpu_max': value['cpuMax'],
@@ -2,12 +2,21 @@
2
2
  /* eslint-disable */
3
3
  export * from './AgentModeRequest.js';
4
4
  export * from './AgentStatus.js';
5
+ export * from './BenchmarkRun.js';
5
6
  export * from './CollectorStartRequest.js';
6
7
  export * from './CollectorStatus.js';
7
8
  export * from './CreateGroupRequest.js';
8
9
  export * from './Datastore.js';
10
+ export * from './DatastoreDetail.js';
11
+ export * from './DatastorePair.js';
9
12
  export * from './DiskSizeTierSummary.js';
10
13
  export * from './DiskTypeSummary.js';
14
+ export * from './EstimateRange.js';
15
+ export * from './ForecastStats.js';
16
+ export * from './ForecasterDatastoresRequest.js';
17
+ export * from './ForecasterPairStatus.js';
18
+ export * from './ForecasterStartRequest.js';
19
+ export * from './ForecasterStatus.js';
11
20
  export * from './GetInventory200Response.js';
12
21
  export * from './Group.js';
13
22
  export * from './GroupListResponse.js';
@@ -22,6 +31,11 @@ export * from './InventoryData.js';
22
31
  export * from './MigrationIssue.js';
23
32
  export * from './Network.js';
24
33
  export * from './OsInfo.js';
34
+ export * from './PairCapability.js';
35
+ export * from './PairCapabilityRequest.js';
36
+ export * from './PutForecasterCredentials403Response.js';
37
+ export * from './RightsizingClusterListResponse.js';
38
+ export * from './RightsizingClusterUtilization.js';
25
39
  export * from './RightsizingCollectRequest.js';
26
40
  export * from './RightsizingMetricStats.js';
27
41
  export * from './RightsizingReport.js';
@@ -29,6 +43,7 @@ export * from './RightsizingReportListResponse.js';
29
43
  export * from './RightsizingReportSummary.js';
30
44
  export * from './RightsizingVMReport.js';
31
45
  export * from './StartInspectionRequest.js';
46
+ export * from './StopForecasterPair202Response.js';
32
47
  export * from './UpdateGroupRequest.js';
33
48
  export * from './UpdateInventory.js';
34
49
  export * from './VCenter.js';