Class: Google::Apis::ManagedkafkaV1::SchemaSubject

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

Subject defines the evolution scope of schemas as a holder of schema versions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchemaSubject

Returns a new instance of SchemaSubject.



1770
1771
1772
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1770

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

Instance Attribute Details

#nameString

Identifier. The name of the subject. Structured like: projects/project/ locations/location/schemaRegistries/schema_registry/subjects/subjector `projects/`project`/locations/`location`/schemaRegistries/`schema_registry`/ contexts/`context`/subjects/`subject Subject name subject can contain the following: * Up to 255 UTF-8 bytes. * Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: ., -, _, + , %, and ~. Corresponds to the JSON property name

Returns:

  • (String)


1763
1764
1765
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1763

def name
  @name
end

#versionsArray<String>

Optional. The versions of the subject. Corresponds to the JSON property versions

Returns:

  • (Array<String>)


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

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @versions = args[:versions] if args.key?(:versions)
end