Class: Google::Apis::ManagedkafkaV1::Context
- Inherits:
-
Object
- Object
- Google::Apis::ManagedkafkaV1::Context
- 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
-
#name ⇒ String
Identifier.
-
#subjects ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Context
constructor
A new instance of Context.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
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`
767 768 769 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 767 def name @name end |
#subjects ⇒ Array<String>
Optional. The subjects of the context.
Corresponds to the JSON property subjects
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 |