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.
1784 1785 1786 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1784 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ Fixnum
Required. The schema ID.
Corresponds to the JSON property id
1757 1758 1759 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1757 def id @id end |
#references ⇒ Array<Google::Apis::ManagedkafkaV1::SchemaReference>
Optional. The schema references used by the schema.
Corresponds to the JSON property references
1762 1763 1764 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1762 def references @references end |
#schema ⇒ String
Required. The schema payload.
Corresponds to the JSON property schema
1767 1768 1769 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1767 def schema @schema end |
#schema_type ⇒ String
Optional. The schema type of the schema.
Corresponds to the JSON property schemaType
1772 1773 1774 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1772 def schema_type @schema_type end |
#subject ⇒ String
Required. The subject of the version.
Corresponds to the JSON property subject
1777 1778 1779 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1777 def subject @subject end |
#version ⇒ Fixnum
Required. The version ID
Corresponds to the JSON property version
1782 1783 1784 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1782 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1789 1790 1791 1792 1793 1794 1795 1796 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1789 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 |