POST
/
v1
/
instances
/
{instance}
/
databases
/
{database}
/
revisions
{
  "name": "<string>",
  "release": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "deleter": "<string>",
  "deleteTime": "2023-11-07T05:31:56Z",
  "file": "<string>",
  "version": "<string>",
  "sheet": "<string>",
  "sheetSha256": "<string>",
  "statement": "<string>",
  "statementSize": "<string>",
  "issue": "<string>",
  "taskRun": "<string>",
  "type": "TYPE_UNSPECIFIED"
}

Path Parameters

instance
string
required

The instance id.

database
string
required

The database id.

Body

application/json
name
string

Format: instances/{instance}/databases/{database}/revisions/{revision}

release
string

Format: projects/{project}/releases/{release} Can be empty.

file
string

Format: projects/{project}/releases/{release}/files/{id} Can be empty.

version
string
sheet
string

The sheet that holds the content. Format: projects/{project}/sheets/{sheet}

issue
string

The issue associated with the revision. Can be empty. Format: projects/{project}/issues/{issue}

taskRun
string

The task run associated with the revision. Can be empty. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}

type
enum<string>

The type of the revision.

Available options:
TYPE_UNSPECIFIED,
VERSIONED,
DECLARATIVE

Response

OK

name
string

Format: instances/{instance}/databases/{database}/revisions/{revision}

release
string

Format: projects/{project}/releases/{release} Can be empty.

createTime
string<date-time>
deleter
string

Format: users/hello@world.com Can be empty.

deleteTime
string<date-time>

Can be empty.

file
string

Format: projects/{project}/releases/{release}/files/{id} Can be empty.

version
string
sheet
string

The sheet that holds the content. Format: projects/{project}/sheets/{sheet}

sheetSha256
string

The SHA256 hash value of the sheet.

statement
string

The statement is used for preview purpose.

statementSize
string
issue
string

The issue associated with the revision. Can be empty. Format: projects/{project}/issues/{issue}

taskRun
string

The task run associated with the revision. Can be empty. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}

type
enum<string>

The type of the revision.

Available options:
TYPE_UNSPECIFIED,
VERSIONED,
DECLARATIVE