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