Resource: Schema
A schema resource.
JSON representation |
---|
{
"name"
:
string
,
"type"
:
enum (
|
Fields | |
---|---|
name
|
Required. Name of the schema. Format is |
type
|
The type of the schema definition. |
definition
|
The 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 |
revisionId
|
Output only. Immutable. The revision ID of the schema. |
revisionCreateTime
|
Output only. The timestamp that the revision was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Type
Possible schema definition types.
Enums | |
---|---|
TYPE_UNSPECIFIED
|
Default value. This value is unused. |
PROTOCOL_BUFFER
|
A Protocol Buffer schema definition. |
AVRO
|
An Avro schema definition. |
Methods |
|
---|---|
|
Commits a new schema revision to an existing schema. |
|
Creates a schema. |
|
Deletes a schema. |
|
Deletes a specific schema revision. |
|
Gets a schema. |
|
Lists schemas in a project. |
|
Lists all schema revisions for the named schema. |
|
Creates a new schema revision that is a copy of the provided revision_id. |
|
Validates a schema. |
|
Validates a message against a schema. |