validate.DurationRules
Example
Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working
code.
local types = import 'types.libsonnet';
types.validate.DurationRules
.withConst(types.google.protobuf.Duration)
.withGt(types.google.protobuf.Duration)
.withGte(types.google.protobuf.Duration)
.withIn([ types.google.protobuf.Duration ])
.withLt(types.google.protobuf.Duration)
.withLte(types.google.protobuf.Duration)
.withNotIn([ types.google.protobuf.Duration ])
.withRequired(false)
._validate()
Fields