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​

The following fields are returned by SELECT queries:

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.
revisionCreateTimestring (google-datetime)Output only. The timestamp that the revision was created.
revisionIdstringOutput only. Immutable. The revision ID of the schema.
typestringThe type of the schema definition. (TYPE_UNSPECIFIED, PROTOCOL_BUFFER, AVRO)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_schemas_list_revisionsselectprojectsId, schemasIdpageSize, pageToken, viewLists all schema revisions for the named schema.

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
projectsIdstring
schemasIdstring
pageSizeinteger (int32)
pageTokenstring
viewstring

SELECT examples​

Lists all schema revisions for the named schema.

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