Class: Google::Apis::ManagedkafkaV1::SchemaReference
- Inherits:
-
Object
- Object
- Google::Apis::ManagedkafkaV1::SchemaReference
- 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
SchemaReference is a reference to a schema.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#subject ⇒ String
Required.
-
#version ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchemaReference
constructor
A new instance of SchemaReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SchemaReference
Returns a new instance of SchemaReference.
1710 1711 1712 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1710 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. The name of the reference.
Corresponds to the JSON property name
1698 1699 1700 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1698 def name @name end |
#subject ⇒ String
Required. The subject of the reference.
Corresponds to the JSON property subject
1703 1704 1705 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1703 def subject @subject end |
#version ⇒ Fixnum
Required. The version of the reference.
Corresponds to the JSON property version
1708 1709 1710 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1708 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1715 1716 1717 1718 1719 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1715 def update!(**args) @name = args[:name] if args.key?(:name) @subject = args[:subject] if args.key?(:subject) @version = args[:version] if args.key?(:version) end |