|
16 | 16 | // under the License. |
17 | 17 | package org.apache.cloudstack.api.response; |
18 | 18 |
|
19 | | -import java.util.Date; |
20 | | - |
| 19 | +import com.cloud.offering.DiskOffering; |
| 20 | +import com.cloud.serializer.Param; |
21 | 21 | import com.google.gson.annotations.SerializedName; |
22 | | - |
23 | 22 | import org.apache.cloudstack.api.ApiConstants; |
24 | 23 | import org.apache.cloudstack.api.BaseResponse; |
25 | 24 | import org.apache.cloudstack.api.EntityReference; |
26 | 25 |
|
27 | | -import com.cloud.offering.DiskOffering; |
28 | | -import com.cloud.serializer.Param; |
| 26 | +import java.util.Date; |
29 | 27 |
|
30 | 28 | @EntityReference(value = DiskOffering.class) |
31 | 29 | public class DiskOfferingResponse extends BaseResponse { |
@@ -112,6 +110,21 @@ public class DiskOfferingResponse extends BaseResponse { |
112 | 110 | @Param(description = "whether to display the offering to the end user or not.") |
113 | 111 | private Boolean displayOffering; |
114 | 112 |
|
| 113 | + @SerializedName(ApiConstants.MIN_IOPS_PER_GB) |
| 114 | + @Param(description = "IOPS/GB rate for min IOPS. miniops = size * miniopspergb") |
| 115 | + private Long minIopsPerGb; |
| 116 | + @SerializedName(ApiConstants.MAX_IOPS_PER_GB) |
| 117 | + @Param(description = "IOPS/GB rate for max IOPS. miniops = size * miniopspergb") |
| 118 | + private Long maxIopsPerGb; |
| 119 | + |
| 120 | + @SerializedName(ApiConstants.HIGHEST_MIN_IOPS) |
| 121 | + @Param(description = "Highest Min IOPS value that is allowed for this offering") |
| 122 | + private Long highestMinIops; |
| 123 | + |
| 124 | + @SerializedName(ApiConstants.HIGHEST_MAX_IOPS) |
| 125 | + @Param(description = "Highest Max IOPS value that is allowed for this offering") |
| 126 | + private Long highestMaxIops; |
| 127 | + |
115 | 128 | public Boolean getDisplayOffering() { |
116 | 129 | return displayOffering; |
117 | 130 | } |
@@ -221,6 +234,38 @@ public Integer getHypervisorSnapshotReserve() { |
221 | 234 | return hypervisorSnapshotReserve; |
222 | 235 | } |
223 | 236 |
|
| 237 | + public Long getMinIopsPerGb() { |
| 238 | + return minIopsPerGb; |
| 239 | + } |
| 240 | + |
| 241 | + public void setMinIopsPerGb(Long minIopsPerGb) { |
| 242 | + this.minIopsPerGb = minIopsPerGb; |
| 243 | + } |
| 244 | + |
| 245 | + public Long getMaxIopsPerGb() { |
| 246 | + return maxIopsPerGb; |
| 247 | + } |
| 248 | + |
| 249 | + public void setMaxIopsPerGb(Long maxIopsPerGb) { |
| 250 | + this.maxIopsPerGb = maxIopsPerGb; |
| 251 | + } |
| 252 | + |
| 253 | + public Long getHighestMinIops() { |
| 254 | + return highestMinIops; |
| 255 | + } |
| 256 | + |
| 257 | + public void setHighestMinIops(Long highestMinIops) { |
| 258 | + this.highestMinIops = highestMinIops; |
| 259 | + } |
| 260 | + |
| 261 | + public Long getHighestMaxIops() { |
| 262 | + return highestMaxIops; |
| 263 | + } |
| 264 | + |
| 265 | + public void setHighestMaxIops(Long highestMaxIops) { |
| 266 | + this.highestMaxIops = highestMaxIops; |
| 267 | + } |
| 268 | + |
224 | 269 | public void setHypervisorSnapshotReserve(Integer hypervisorSnapshotReserve) { |
225 | 270 | this.hypervisorSnapshotReserve = hypervisorSnapshotReserve; |
226 | 271 | } |
@@ -264,4 +309,5 @@ public void setIopsReadRate(Long iopsReadRate) { |
264 | 309 | public void setIopsWriteRate(Long iopsWriteRate) { |
265 | 310 | this.iopsWriteRate = iopsWriteRate; |
266 | 311 | } |
| 312 | + |
267 | 313 | } |
0 commit comments