Class: Google::Apis::ManagedkafkaV1::Schema
- Inherits:
-
Object
- Object
- Google::Apis::ManagedkafkaV1::Schema
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/managedkafka_v1/classes.rb,
lib/google/apis/managedkafka_v1/representations.rb,
lib/google/apis/managedkafka_v1/representations.rb
Overview
Schema for a Kafka message.
Instance Attribute Summary collapse
-
#references ⇒ Array<Google::Apis::ManagedkafkaV1::SchemaReference>
Optional.
-
#schema ⇒ String
The schema payload.
-
#schema_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schema
constructor
A new instance of Schema.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Schema
Returns a new instance of Schema.
1613 1614 1615 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1613 def initialize(**args) update!(**args) end |
Instance Attribute Details
#references ⇒ Array<Google::Apis::ManagedkafkaV1::SchemaReference>
Optional. The schema references used by the schema.
Corresponds to the JSON property references
1601 1602 1603 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1601 def references @references end |
#schema ⇒ String
The schema payload.
Corresponds to the JSON property schema
1606 1607 1608 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1606 def schema @schema end |
#schema_type ⇒ String
Optional. The schema type of the schema.
Corresponds to the JSON property schemaType
1611 1612 1613 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1611 def schema_type @schema_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1618 1619 1620 1621 1622 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1618 def update!(**args) @references = args[:references] if args.key?(:references) @schema = args[:schema] if args.key?(:schema) @schema_type = args[:schema_type] if args.key?(:schema_type) end |