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 |
revision |
Output only. Immutable. The revision ID of the schema. |
revision |
Output only. The timestamp that the revision was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. 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. |