Skip to main content

schemas_revisions

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

Overview

Nameschemas_revisions
TypeResource
Idgoogle.pubsub.schemas_revisions

Fields

NameDatatypeDescription
namestringRequired. Name of the schema. Format is projects/{project}/schemas/{schema}.
definitionstringThe definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.
revisionCreateTimestringOutput only. The timestamp that the revision was created.
revisionIdstringOutput only. Immutable. The revision ID of the schema.
typestringThe type of the schema definition.

Methods

NameAccessible byRequired ParamsDescription
projects_schemas_list_revisionsSELECTprojectsId, schemasIdLists all schema revisions for the named schema.

SELECT examples

Lists all schema revisions for the named schema.

SELECT
name,
definition,
revisionCreateTime,
revisionId,
type
FROM google.pubsub.schemas_revisions
WHERE projectsId = '{{ projectsId }}'
AND schemasId = '{{ schemasId }}';