Class: Google::Apis::ManagedkafkaV1::SchemaVersion
- Inherits:
-
Object
- Object
- Google::Apis::ManagedkafkaV1::SchemaVersion
- 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
Version of a schema.
Instance Attribute Summary collapse
-
#id ⇒ Fixnum
Required.
-
#references ⇒ Array<Google::Apis::ManagedkafkaV1::SchemaReference>
Optional.
-
#schema ⇒ String
Required.
-
#schema_type ⇒ String
Optional.
-
#subject ⇒ String
Required.
-
#version ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchemaVersion
constructor
A new instance of SchemaVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SchemaVersion
Returns a new instance of SchemaVersion.
1815 1816 1817 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1815 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ Fixnum
Required. The schema ID.
Corresponds to the JSON property id
1788 1789 1790 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1788 def id @id end |
#references ⇒ Array<Google::Apis::ManagedkafkaV1::SchemaReference>
Optional. The schema references used by the schema.
Corresponds to the JSON property references
1793 1794 1795 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1793 def references @references end |
#schema ⇒ String
Required. The schema payload.
Corresponds to the JSON property schema
1798 1799 1800 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1798 def schema @schema end |
#schema_type ⇒ String
Optional. The schema type of the schema.
Corresponds to the JSON property schemaType
1803 1804 1805 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1803 def schema_type @schema_type end |
#subject ⇒ String
Required. The subject of the version.
Corresponds to the JSON property subject
1808 1809 1810 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1808 def subject @subject end |
#version ⇒ Fixnum
Required. The version ID
Corresponds to the JSON property version
1813 1814 1815 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1813 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1820 1821 1822 1823 1824 1825 1826 1827 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1820 def update!(**args) @id = args[:id] if args.key?(:id) @references = args[:references] if args.key?(:references) @schema = args[:schema] if args.key?(:schema) @schema_type = args[:schema_type] if args.key?(:schema_type) @subject = args[:subject] if args.key?(:subject) @version = args[:version] if args.key?(:version) end |