Class: Google::Apis::PubsubV1::SchemaSettings
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::SchemaSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsub_v1/classes.rb,
lib/google/apis/pubsub_v1/representations.rb,
lib/google/apis/pubsub_v1/representations.rb
Overview
Settings for validating messages published against a schema.
Instance Attribute Summary collapse
-
#encoding ⇒ String
The encoding of messages validated against
schema. -
#schema ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchemaSettings
constructor
A new instance of SchemaSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SchemaSettings
Returns a new instance of SchemaSettings.
991 992 993 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 991 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encoding ⇒ String
The encoding of messages validated against schema.
Corresponds to the JSON property encoding
982 983 984 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 982 def encoding @encoding end |
#schema ⇒ 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 bedeleted-schemaif the schema has been deleted.
Corresponds to the JSON propertyschema`
989 990 991 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 989 def schema @schema end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
996 997 998 999 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 996 def update!(**args) @encoding = args[:encoding] if args.key?(:encoding) @schema = args[:schema] if args.key?(:schema) end |