Class: Google::Apis::ManagedkafkaV1::SchemaVersion

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

Version of a schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idFixnum

Required. The schema ID. Corresponds to the JSON property id

Returns:

  • (Fixnum)


1757
1758
1759
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1757

def id
  @id
end

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

#schemaString

Required. The schema payload. Corresponds to the JSON property schema

Returns:

  • (String)


1767
1768
1769
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1767

def schema
  @schema
end

#schema_typeString

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

Returns:

  • (String)


1772
1773
1774
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1772

def schema_type
  @schema_type
end

#subjectString

Required. The subject of the version. Corresponds to the JSON property subject

Returns:

  • (String)


1777
1778
1779
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1777

def subject
  @subject
end

#versionFixnum

Required. The version ID Corresponds to the JSON property version

Returns:

  • (Fixnum)


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