QuotaRule

com.worxbend.codeberg4s.organizations.QuotaRule
final case class QuotaRule

One quota rule — a limit, and the subjects it counts towards.

Value parameters

limit

the limit the rule sets, in bytes. Absent when the instance did not say. Forgejo uses a negative limit to mean "unlimited", and that is reported verbatim rather than translated — a caller comparing usage against a limit must check the sign first

name

the rule's name, which the spec marks "only shown to admins"; absent for a caller who is not one

subjects

what the rule counts, as the instance spells them: size:all, size:repos:public and so on. Plain strings and not QuotaSubject on purpose, for the reason com.worxbend.codeberg4s.issues.LabelName gives — a subject a newer Forgejo emits must not cost the caller the whole rule. Converting one for use as a query argument is the caller's explicit step through QuotaSubject.from

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product