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.
992 993 994 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 992 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encoding ⇒ String
The encoding of messages validated against schema.
Corresponds to the JSON property encoding
983 984 985 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 983 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`
990 991 992 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 990 def schema @schema end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
997 998 999 1000 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 997 def update!(**args) @encoding = args[:encoding] if args.key?(:encoding) @schema = args[:schema] if args.key?(:schema) end |