Class: Google::Apis::ManagedkafkaV1::Schema

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#referencesArray<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

#schemaString

The schema payload. Corresponds to the JSON property schema

Returns:

  • (String)


1606
1607
1608
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1606

def schema
  @schema
end

#schema_typeString

Optional. The schema type of the schema. Corresponds to the JSON property schemaType

Returns:

  • (String)


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