View Source GoogleApi.PubSub.V1.Model.SchemaSettings (google_api_pub_sub v0.38.0)

Settings for validating messages published against a schema.

Attributes

  • encoding (type: String.t, default: nil) - Optional. The encoding of messages validated against schema.
  • firstRevisionId (type: String.t, default: nil) - Optional. 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.
  • lastRevisionId (type: String.t, default: nil) - Optional. 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.
  • schema (type: String.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.PubSub.V1.Model.SchemaSettings{
  encoding: String.t() | nil,
  firstRevisionId: String.t() | nil,
  lastRevisionId: String.t() | nil,
  schema: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.