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