Home

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

Name Type One-of group Required Constraints
const google.protobuf.Duration  
gt google.protobuf.Duration  
gte google.protobuf.Duration  
in [] google.protobuf.Duration  
lt google.protobuf.Duration  
lte google.protobuf.Duration  
not_in [] google.protobuf.Duration  
required bool