Home

validate.TimestampRules

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.TimestampRules
.withConst(types.google.protobuf.Timestamp)
.withGt(types.google.protobuf.Timestamp)
.withGtNow(false)
.withGte(types.google.protobuf.Timestamp)
.withLt(types.google.protobuf.Timestamp)
.withLtNow(false)
.withLte(types.google.protobuf.Timestamp)
.withRequired(false)
.withWithin(types.google.protobuf.Duration)
._validate()

Fields

Name Type One-of group Required Constraints
const google.protobuf.Timestamp  
gt google.protobuf.Timestamp  
gt_now bool  
gte google.protobuf.Timestamp  
lt google.protobuf.Timestamp  
lt_now bool  
lte google.protobuf.Timestamp  
required bool  
within google.protobuf.Duration