Class: Google::Apis::ManagedkafkaV1::SchemaRegistry

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

SchemaRegistry is a schema registry instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchemaRegistry

Returns a new instance of SchemaRegistry.



1739
1740
1741
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1739

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

Instance Attribute Details

#contextsArray<String>

Output only. The contexts of the schema registry instance. Corresponds to the JSON property contexts

Returns:

  • (Array<String>)


1729
1730
1731
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1729

def contexts
  @contexts
end

#nameString

Identifier. The name of the schema registry instance. Structured like: projects/project/locations/location/schemaRegistries/schema_registry` The instance nameschema_registrycan contain the following: * Up to 255 characters. * Letters (uppercase or lowercase), numbers, and underscores. Corresponds to the JSON propertyname`

Returns:

  • (String)


1737
1738
1739
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1737

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1744
1745
1746
1747
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1744

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