Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateVersionRequest (v0.1.0)

Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateVersionRequest.

Request for CreateVersion.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#id

def id() -> ::Integer
Returns
  • (::Integer) — Optional. The schema ID of the schema. If not specified, the schema ID will be generated by the server. If the schema ID is specified, it must not be used by an existing schema that is different from the schema to be created.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. The schema ID of the schema. If not specified, the schema ID will be generated by the server. If the schema ID is specified, it must not be used by an existing schema that is different from the schema to be created.
Returns
  • (::Integer) — Optional. The schema ID of the schema. If not specified, the schema ID will be generated by the server. If the schema ID is specified, it must not be used by an existing schema that is different from the schema to be created.

#normalize

def normalize() -> ::Boolean
Returns
  • (::Boolean) — Optional. If true, the schema will be normalized before being stored. The default is false.

#normalize=

def normalize=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. If true, the schema will be normalized before being stored. The default is false.
Returns
  • (::Boolean) — Optional. If true, the schema will be normalized before being stored. The default is false.

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The subject to create the version for. Structured like: projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject} or projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Required. The subject to create the version for. Structured like: projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject} or projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}
Returns
  • (::String) — Required. The subject to create the version for. Structured like: projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject} or projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}

#references

def references() -> ::Array<::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference>
Returns

#references=

def references=(value) -> ::Array<::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference>
Parameter
Returns

#schema

def schema() -> ::String
Returns
  • (::String) — Required. The schema payload

#schema=

def schema=(value) -> ::String
Parameter
  • value (::String) — Required. The schema payload
Returns
  • (::String) — Required. The schema payload

#schema_type

def schema_type() -> ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType
Returns

#schema_type=

def schema_type=(value) -> ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType
Parameter
Returns

#version

def version() -> ::Integer
Returns
  • (::Integer) — Optional. The version to create. It is optional. If not specified, the version will be created with the max version ID of the subject increased by 1. If the version ID is specified, it will be used as the new version ID and must not be used by an existing version of the subject.

#version=

def version=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. The version to create. It is optional. If not specified, the version will be created with the max version ID of the subject increased by 1. If the version ID is specified, it will be used as the new version ID and must not be used by an existing version of the subject.
Returns
  • (::Integer) — Optional. The version to create. It is optional. If not specified, the version will be created with the max version ID of the subject increased by 1. If the version ID is specified, it will be used as the new version ID and must not be used by an existing version of the subject.