Class: Google::Apis::ManagedkafkaV1::Context

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

Context represents an independent schema grouping in a schema registry instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Context

Returns a new instance of Context.



774
775
776
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 774

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


767
768
769
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 767

def name
  @name
end

#subjectsArray<String>

Optional. The subjects of the context. Corresponds to the JSON property subjects

Returns:

  • (Array<String>)


772
773
774
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 772

def subjects
  @subjects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



779
780
781
782
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 779

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