| 2028 | |
| 2029 | |
| 2030 | Option<Bytes> Resources::disk() const |
| 2031 | { |
| 2032 | Option<Value::Scalar> value = get<Value::Scalar>("disk"); |
| 2033 | if (value.isSome()) { |
| 2034 | return Megabytes(static_cast<uint64_t>(value->value())); |
| 2035 | } else { |
| 2036 | return None(); |
| 2037 | } |
| 2038 | } |
| 2039 | |
| 2040 | |
| 2041 | Option<Value::Ranges> Resources::ports() const |
no test coverage detected