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.



1815
1816
1817
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1815

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idFixnum

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

Returns:

  • (Fixnum)


1788
1789
1790
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1788

def id
  @id
end

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

#schemaString

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

Returns:

  • (String)


1798
1799
1800
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1798

def schema
  @schema
end

#schema_typeString

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

Returns:

  • (String)


1803
1804
1805
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1803

def schema_type
  @schema_type
end

#subjectString

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

Returns:

  • (String)


1808
1809
1810
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1808

def subject
  @subject
end

#versionFixnum

Required. The version ID Corresponds to the JSON property version

Returns:

  • (Fixnum)


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