Skip to main content

mode

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

Overview

Namemode
TypeResource
Idgoogle.managedkafka.mode

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
modestringRequired. The mode type of a schema registry (READWRITE by default) or of a subject (unset by default, which means use the global schema registry setting).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, schemaRegistriesId, modeIdGet mode at global level or for a subject.
updatereplaceprojectsId, locationsId, schemaRegistriesId, modeIdUpdate mode at global level or for a subject.
deletedeleteprojectsId, locationsId, schemaRegistriesId, modeIdDelete schema mode for a subject.

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
locationsIdstring
modeIdstring
projectsIdstring
schemaRegistriesIdstring

SELECT examples

Get mode at global level or for a subject.

SELECT
mode
FROM google.managedkafka.mode
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND schemaRegistriesId = '{{ schemaRegistriesId }}' -- required
AND modeId = '{{ modeId }}' -- required;

REPLACE examples

Update mode at global level or for a subject.

REPLACE google.managedkafka.mode
SET
data__mode = '{{ mode }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND schemaRegistriesId = '{{ schemaRegistriesId }}' --required
AND modeId = '{{ modeId }}' --required
RETURNING
mode;

DELETE examples

Delete schema mode for a subject.

DELETE FROM google.managedkafka.mode
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND schemaRegistriesId = '{{ schemaRegistriesId }}' --required
AND modeId = '{{ modeId }}' --required;