schemas_revisions
Creates, updates, deletes, gets or lists a schemas_revisions resource.
Overview
| Name | schemas_revisions |
| Type | Resource |
| Id | google.pubsub.schemas_revisions |
Fields
The following fields are returned by SELECT queries:
- projects_schemas_list_revisions
| Name | Datatype | Description |
|---|---|---|
name | string | Required. Name of the schema. Format is projects/{project}/schemas/{schema}. |
definition | string | 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. |
revisionCreateTime | string (google-datetime) | Output only. The timestamp that the revision was created. |
revisionId | string | Output only. Immutable. The revision ID of the schema. |
type | string | The type of the schema definition. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
projects_schemas_list_revisions | select | projectsId, schemasId | view, pageSize, pageToken | Lists 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.
| Name | Datatype | Description |
|---|---|---|
projectsId | string | |
schemasId | string | |
pageSize | integer (int32) | |
pageToken | string | |
view | string |
SELECT examples
- projects_schemas_list_revisions
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 view = '{{ view }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;