{
"name": "<string>",
"title": "<string>",
"files": [
{
"id": "<string>",
"path": "<string>",
"type": "TYPE_UNSPECIFIED",
"version": "<string>",
"enableGhost": true,
"sheet": "<string>",
"statement": "<string>",
"sheetSha256": "<string>",
"statementSize": "<string>"
}
],
"vcsSource": {
"vcsType": "VCS_TYPE_UNSPECIFIED",
"url": "<string>"
},
"creator": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"state": "STATE_UNSPECIFIED",
"digest": "<string>"
}Retrieves a release by name. Permissions required: bb.releases.get
{
"name": "<string>",
"title": "<string>",
"files": [
{
"id": "<string>",
"path": "<string>",
"type": "TYPE_UNSPECIFIED",
"version": "<string>",
"enableGhost": true,
"sheet": "<string>",
"statement": "<string>",
"sheetSha256": "<string>",
"statementSize": "<string>"
}
],
"vcsSource": {
"vcsType": "VCS_TYPE_UNSPECIFIED",
"url": "<string>"
},
"creator": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"state": "STATE_UNSPECIFIED",
"digest": "<string>"
}OK
Format: projects/{project}/releases/{release}
The title of the release.
The SQL files included in the release.
Show child attributes
The unique identifier for the file.
The path of the file. e.g., 2.2/V0001_create_table.sql.
The type of the file.
TYPE_UNSPECIFIED, VERSIONED, DECLARATIVE The version identifier for the file.
Whether to use gh-ost for online schema migration.
For inputs, we must either use sheet or statement.
For outputs, we always use sheet. statement is the preview of the sheet content.
The sheet that holds the content. Format: projects/{project}/sheets/{sheet}
The raw SQL statement content.
The SHA256 hash value of the sheet content or the statement.
The size of the statement in bytes.
Format: users/[email protected]
The lifecycle state of the release.
STATE_UNSPECIFIED, ACTIVE, DELETED The digest of the release. The user can provide the digest of the release. It can be used later to retrieve the release in GetRelease. Whether to provide digest and how to generate it is up to the user. If the digest is not empty, it must be unique in the project. Otherwise, an ALREADY_EXISTS error will be returned.
Was this page helpful?