v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-133370117.8 KB
projects

Creates a schema.

post/v1/{+parent}/schemas

Path parameters

parentstring required

Required. The name of the project in which to create the schema. Format is projects/{project-id}.

Query parameters

schemaIdstring

The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.

Request body

type'TYPE_UNSPECIFIED' | 'PROTOCOL_BUFFER' | 'AVRO'

The type of the schema definition.

revisionCreateTimestring google-datetime

Output only. The timestamp that the revision was created.

namestring

Required. Name of the schema. Format is projects/{project}/schemas/{schema}.

definitionstring

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 type.

revisionIdstring

Output only. Immutable. The revision ID of the schema.

Response

Successful response