{
"releases": [
{
"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>"
}
],
"nextPageToken": "<string>"
}Searches releases by digest or other criteria. Permissions required: bb.releases.get
{
"releases": [
{
"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>"
}
],
"nextPageToken": "<string>"
}The project id.
The maximum number of releases to return. The service may return fewer than this value. If unspecified, at most 10 releases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
A page token, received from a previous ListReleases call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListReleases must match
the call that provided the page token.
Search by the digest of the release.
OK
The releases matching the search criteria.
Show child attributes
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.
A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
Was this page helpful?