Skip to main content

versions_schema

Creates, updates, deletes, gets or lists a versions_schema resource.

Overview

Nameversions_schema
TypeResource
Idgoogle.managedkafka.versions_schema

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
contentTypestringThe HTTP Content-Type header value specifying the content type of the body.
datastring (byte)The HTTP request/response body as raw binary.
extensionsarrayApplication specific response metadata. Must be set in the first response for streaming APIs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_schemaselectprojectsId, locationsId, schemaRegistriesId, contextsId, subjectsId, versionsIddeletedGet the schema string only for a version of a subject. The response will be the schema string.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
contextsIdstring
locationsIdstring
projectsIdstring
schemaRegistriesIdstring
subjectsIdstring
versionsIdstring
deletedboolean

SELECT examples

Get the schema string only for a version of a subject. The response will be the schema string.

SELECT
contentType,
data,
extensions
FROM google.managedkafka.versions_schema
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND schemaRegistriesId = '{{ schemaRegistriesId }}' -- required
AND contextsId = '{{ contextsId }}' -- required
AND subjectsId = '{{ subjectsId }}' -- required
AND versionsId = '{{ versionsId }}' -- required
AND deleted = '{{ deleted }}'
;