Skip to main content

schemas

Overview

Nameschemas
TypeResource
Idgoogle.pubsub.schemas

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_getSELECTprojectsId, schemasIdGets a schema.
projects_schemas_listSELECTprojectsIdLists schemas in a project.
projects_schemas_createINSERTprojectsIdCreates a schema.
projects_schemas_deleteDELETEprojectsId, schemasIdDeletes a schema.
_projects_schemas_listEXECprojectsIdLists schemas in a project.
projects_schemas_commitEXECprojectsId, schemasIdCommits a new schema revision to an existing schema.
projects_schemas_rollbackEXECprojectsId, schemasIdCreates a new schema revision that is a copy of the provided revision_id.
projects_schemas_validateEXECprojectsIdValidates a schema.
projects_schemas_validate_messageEXECprojectsIdValidates a message against a schema.