class Google::Apis::PubsubV1::SchemaSettings

Settings for validating messages published against a schema.

Attributes

encoding[RW]

The encoding of messages validated against `schema`. Corresponds to the JSON property `encoding` @return [String]

first_revision_id[RW]

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]

last_revision_id[RW]

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]

schema[RW]

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

new(**args) click to toggle source
# File lib/google/apis/pubsub_v1/classes.rb, line 1067
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/pubsub_v1/classes.rb, line 1072
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