class Google::Apis::PubsubV1::SchemaSettings
Settings for validating messages published against a schema.
Attributes
The encoding of messages validated against `schema`. Corresponds to the JSON property `encoding` @return [String]
The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before. Corresponds to the JSON property `firstRevisionId` @return [String]
The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after. Corresponds to the JSON property `lastRevisionId` @return [String]
Required. The name of the schema that messages published should be validated against. Format is `projects/`project`/schemas/`schema“. The value of this field will be `deleted-schema` if the schema has been deleted. Corresponds to the JSON property `schema` @return [String]
Public Class Methods
# File lib/google/apis/pubsub_v1/classes.rb, line 1074 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/pubsub_v1/classes.rb, line 1079 def update!(**args) @encoding = args[:encoding] if args.key?(:encoding) @first_revision_id = args[:first_revision_id] if args.key?(:first_revision_id) @last_revision_id = args[:last_revision_id] if args.key?(:last_revision_id) @schema = args[:schema] if args.key?(:schema) end