Class: Google::Apis::ManagedkafkaV1::CreateSchemaRegistryRequest

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

Request to create a schema registry instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateSchemaRegistryRequest

Returns a new instance of CreateSchemaRegistryRequest.



801
802
803
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 801

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

Instance Attribute Details

#schema_registryGoogle::Apis::ManagedkafkaV1::SchemaRegistry

SchemaRegistry is a schema registry instance. Corresponds to the JSON property schemaRegistry



792
793
794
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 792

def schema_registry
  @schema_registry
end

#schema_registry_idString

Required. The schema registry instance ID to use for this schema registry. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (-). The maximum length is 63 characters. The ID must not start with a number. Corresponds to the JSON property schemaRegistryId

Returns:

  • (String)


799
800
801
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 799

def schema_registry_id
  @schema_registry_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



806
807
808
809
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 806

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