Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore(proto): check release definition (#14584)
boojack114f77cecd02
diff --git a/frontend/src/types/proto/v1/release_service.ts b/frontend/src/types/proto/v1/release_service.tsindex 2d11730fb0..b5abc04c4d 100644--- a/frontend/src/types/proto/v1/release_service.ts+++ b/frontend/src/types/proto/v1/release_service.ts@@ -20,6 +20,7 @@ import {vCSTypeToJSON,vCSTypeToNumber,} from "./common";+import { Advice } from "./sql_service";export const protobufPackage = "bytebase.v1";@@ -136,6 +137,33 @@ export interface UndeleteReleaseRequest {name: string;}+export interface CheckReleaseRequest {+ /** Format: projects/{project} */+ parent: string;+ /** The release to check. */+ release:+ | Release+ | undefined;+ /**+ * The targets to dry-run the release.+ * Can be database or databaseGroup.+ * Format:+ * projects/{project}/databaseGroups/{databaseGroup}+ * instances/{instance}/databases/{database}+ */+ targets: string[];+}++export interface CheckReleaseResponse {+ results: CheckReleaseResponse_CheckResult[];+}++export interface CheckReleaseResponse_CheckResult {+ /** The file id that is being checked. */+ file: string;+ advices: Advice[];+}+export interface Release {/** Format: projects/{project}/releases/{release} */name: string;@@ -164,7 +192,7 @@ export interface Release_File {sheetSha256: string;type: ReleaseFileType;version: string;- /** The statement is used for preview purpose. */+ /** The statement is used for preview or check purpose. */statement: string;statementSize: Long;}@@ -675,6 +703,232 @@ export const UndeleteReleaseRequest: MessageFns<UndeleteReleaseRequest> = {},};+function createBaseCheckReleaseRequest(): CheckReleaseRequest {+ return { parent: "", release: undefined, targets: [] };+}++export const CheckReleaseRequest: MessageFns<CheckReleaseRequest> = {+ encode(message: CheckReleaseRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);+ }+ if (message.release !== undefined) {+ Release.encode(message.release, writer.uint32(18).fork()).join();+ }+ for (const v of message.targets) {+ writer.uint32(26).string(v!);+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): CheckReleaseRequest {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseCheckReleaseRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.parent = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.release = Release.decode(reader, reader.uint32());+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.targets.push(reader.string());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): CheckReleaseRequest {+ return {+ parent: isSet(object.parent) ? globalThis.String(object.parent) : "",+ release: isSet(object.release) ? Release.fromJSON(object.release) : undefined,+ targets: globalThis.Array.isArray(object?.targets) ? object.targets.map((e: any) => globalThis.String(e)) : [],+ };+ },++ toJSON(message: CheckReleaseRequest): unknown {+ const obj: any = {};+ if (message.parent !== "") {+ obj.parent = message.parent;+ }+ if (message.release !== undefined) {+ obj.release = Release.toJSON(message.release);+ }+ if (message.targets?.length) {+ obj.targets = message.targets;+ }+ return obj;+ },++ create(base?: DeepPartial<CheckReleaseRequest>): CheckReleaseRequest {+ return CheckReleaseRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<CheckReleaseRequest>): CheckReleaseRequest {+ const message = createBaseCheckReleaseRequest();+ message.parent = object.parent ?? "";+ message.release = (object.release !== undefined && object.release !== null)+ ? Release.fromPartial(object.release)+ : undefined;+ message.targets = object.targets?.map((e) => e) || [];+ return message;+ },+};++function createBaseCheckReleaseResponse(): CheckReleaseResponse {+ return { results: [] };+}++export const CheckReleaseResponse: MessageFns<CheckReleaseResponse> = {+ encode(message: CheckReleaseResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ for (const v of message.results) {+ CheckReleaseResponse_CheckResult.encode(v!, writer.uint32(10).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): CheckReleaseResponse {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseCheckReleaseResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.results.push(CheckReleaseResponse_CheckResult.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): CheckReleaseResponse {+ return {+ results: globalThis.Array.isArray(object?.results)+ ? object.results.map((e: any) => CheckReleaseResponse_CheckResult.fromJSON(e))+ : [],+ };+ },++ toJSON(message: CheckReleaseResponse): unknown {+ const obj: any = {};+ if (message.results?.length) {+ obj.results = message.results.map((e) => CheckReleaseResponse_CheckResult.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<CheckReleaseResponse>): CheckReleaseResponse {+ return CheckReleaseResponse.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<CheckReleaseResponse>): CheckReleaseResponse {+ const message = createBaseCheckReleaseResponse();+ message.results = object.results?.map((e) => CheckReleaseResponse_CheckResult.fromPartial(e)) || [];+ return message;+ },+};++function createBaseCheckReleaseResponse_CheckResult(): CheckReleaseResponse_CheckResult {+ return { file: "", advices: [] };+}++export const CheckReleaseResponse_CheckResult: MessageFns<CheckReleaseResponse_CheckResult> = {+ encode(message: CheckReleaseResponse_CheckResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.file !== "") {+ writer.uint32(10).string(message.file);+ }+ for (const v of message.advices) {+ Advice.encode(v!, writer.uint32(18).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): CheckReleaseResponse_CheckResult {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseCheckReleaseResponse_CheckResult();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.file = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.advices.push(Advice.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): CheckReleaseResponse_CheckResult {+ return {+ file: isSet(object.file) ? globalThis.String(object.file) : "",+ advices: globalThis.Array.isArray(object?.advices) ? object.advices.map((e: any) => Advice.fromJSON(e)) : [],+ };+ },++ toJSON(message: CheckReleaseResponse_CheckResult): unknown {+ const obj: any = {};+ if (message.file !== "") {+ obj.file = message.file;+ }+ if (message.advices?.length) {+ obj.advices = message.advices.map((e) => Advice.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<CheckReleaseResponse_CheckResult>): CheckReleaseResponse_CheckResult {+ return CheckReleaseResponse_CheckResult.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<CheckReleaseResponse_CheckResult>): CheckReleaseResponse_CheckResult {+ const message = createBaseCheckReleaseResponse_CheckResult();+ message.file = object.file ?? "";+ message.advices = object.advices?.map((e) => Advice.fromPartial(e)) || [];+ return message;+ },+};+function createBaseRelease(): Release {return {name: "",@@ -1453,6 +1707,65 @@ export const ReleaseServiceDefinition = {},},},+ checkRelease: {+ name: "CheckRelease",+ requestType: CheckReleaseRequest,+ requestStream: false,+ responseType: CheckReleaseResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 578365826: [+ new Uint8Array([+ 43,+ 58,+ 1,+ 42,+ 34,+ 38,+ 47,+ 118,+ 49,+ 47,+ 123,+ 112,+ 97,+ 114,+ 101,+ 110,+ 116,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 125,+ 47,+ 114,+ 101,+ 108,+ 101,+ 97,+ 115,+ 101,+ 115,+ 58,+ 99,+ 104,+ 101,+ 99,+ 107,+ ]),+ ],+ },+ },+ },},} as const;diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex af2d7e7b86..95624acee4 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -5798,6 +5798,37 @@ paths:application/json:schema:$ref: '#/components/schemas/Status'+ /v1/projects/{project}/releases:check:+ post:+ tags:+ - ReleaseService+ operationId: ReleaseService_CheckRelease+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/CheckReleaseRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/CheckReleaseResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'/v1/projects/{project}/rollouts:get:tags:@@ -9607,6 +9638,46 @@ components:type: stringdescription: The expression is the expression of a check constraint.description: CheckConstraintMetadata is the metadata for check constraints.+ CheckReleaseRequest:+ required:+ - parent+ - release+ type: object+ properties:+ parent:+ type: string+ description: 'Format: projects/{project}'+ release:+ allOf:+ - $ref: '#/components/schemas/Release'+ description: The release to check.+ targets:+ type: array+ items:+ type: string+ description: |-+ The targets to dry-run the release.+ Can be database or databaseGroup.+ Format:+ projects/{project}/databaseGroups/{databaseGroup}+ instances/{instance}/databases/{database}+ CheckReleaseResponse:+ type: object+ properties:+ results:+ type: array+ items:+ $ref: '#/components/schemas/CheckReleaseResponse_CheckResult'+ CheckReleaseResponse_CheckResult:+ type: object+ properties:+ file:+ type: string+ description: The file id that is being checked.+ advices:+ type: array+ items:+ $ref: '#/components/schemas/Advice'CheckRequest:required:- name@@ -12830,6 +12901,7 @@ components:type: objectproperties:name:+ readOnly: truetype: stringdescription: 'Format: projects/{project}/releases/{release}'title:@@ -12849,6 +12921,7 @@ components:type: stringformat: date-timestate:+ readOnly: trueenum:- STATE_UNSPECIFIED- ACTIVE@@ -12859,7 +12932,6 @@ components:type: objectproperties:id:- readOnly: truetype: stringdescription: The unique identifier for the file.path:@@ -12883,9 +12955,8 @@ components:version:type: stringstatement:- readOnly: truetype: string- description: The statement is used for preview purpose.+ description: The statement is used for preview or check purpose.statementSize:readOnly: truetype: stringdiff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex c6a7a2d98c..b2473f9772 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -556,7 +556,45 @@- [ProjectService](#bytebase-v1-ProjectService)+- [v1/sql_service.proto](#v1_sql_service-proto)+ - [AdminExecuteRequest](#bytebase-v1-AdminExecuteRequest)+ - [AdminExecuteResponse](#bytebase-v1-AdminExecuteResponse)+ - [Advice](#bytebase-v1-Advice)+ - [CheckRequest](#bytebase-v1-CheckRequest)+ - [CheckResponse](#bytebase-v1-CheckResponse)+ - [ExportRequest](#bytebase-v1-ExportRequest)+ - [ExportResponse](#bytebase-v1-ExportResponse)+ - [GenerateRestoreSQLRequest](#bytebase-v1-GenerateRestoreSQLRequest)+ - [GenerateRestoreSQLResponse](#bytebase-v1-GenerateRestoreSQLResponse)+ - [ParseMyBatisMapperRequest](#bytebase-v1-ParseMyBatisMapperRequest)+ - [ParseMyBatisMapperResponse](#bytebase-v1-ParseMyBatisMapperResponse)+ - [PrettyRequest](#bytebase-v1-PrettyRequest)+ - [PrettyResponse](#bytebase-v1-PrettyResponse)+ - [QueryHistory](#bytebase-v1-QueryHistory)+ - [QueryOption](#bytebase-v1-QueryOption)+ - [QueryRequest](#bytebase-v1-QueryRequest)+ - [QueryResponse](#bytebase-v1-QueryResponse)+ - [QueryResult](#bytebase-v1-QueryResult)+ - [QueryResult.PostgresError](#bytebase-v1-QueryResult-PostgresError)+ - [QueryRow](#bytebase-v1-QueryRow)+ - [RowValue](#bytebase-v1-RowValue)+ - [RowValue.TimestampTZ](#bytebase-v1-RowValue-TimestampTZ)+ - [SearchQueryHistoriesRequest](#bytebase-v1-SearchQueryHistoriesRequest)+ - [SearchQueryHistoriesResponse](#bytebase-v1-SearchQueryHistoriesResponse)+ - [StringifyMetadataRequest](#bytebase-v1-StringifyMetadataRequest)+ - [StringifyMetadataResponse](#bytebase-v1-StringifyMetadataResponse)++ - [Advice.Status](#bytebase-v1-Advice-Status)+ - [CheckRequest.ChangeType](#bytebase-v1-CheckRequest-ChangeType)+ - [QueryHistory.Type](#bytebase-v1-QueryHistory-Type)+ - [QueryOption.RedisRunCommandsOn](#bytebase-v1-QueryOption-RedisRunCommandsOn)++ - [SQLService](#bytebase-v1-SQLService)+- [v1/release_service.proto](#v1_release_service-proto)+ - [CheckReleaseRequest](#bytebase-v1-CheckReleaseRequest)+ - [CheckReleaseResponse](#bytebase-v1-CheckReleaseResponse)+ - [CheckReleaseResponse.CheckResult](#bytebase-v1-CheckReleaseResponse-CheckResult)- [CreateReleaseRequest](#bytebase-v1-CreateReleaseRequest)- [DeleteReleaseRequest](#bytebase-v1-DeleteReleaseRequest)- [GetReleaseRequest](#bytebase-v1-GetReleaseRequest)@@ -677,41 +715,6 @@- [SheetService](#bytebase-v1-SheetService)-- [v1/sql_service.proto](#v1_sql_service-proto)- - [AdminExecuteRequest](#bytebase-v1-AdminExecuteRequest)- - [AdminExecuteResponse](#bytebase-v1-AdminExecuteResponse)- - [Advice](#bytebase-v1-Advice)- - [CheckRequest](#bytebase-v1-CheckRequest)- - [CheckResponse](#bytebase-v1-CheckResponse)- - [ExportRequest](#bytebase-v1-ExportRequest)- - [ExportResponse](#bytebase-v1-ExportResponse)- - [GenerateRestoreSQLRequest](#bytebase-v1-GenerateRestoreSQLRequest)- - [GenerateRestoreSQLResponse](#bytebase-v1-GenerateRestoreSQLResponse)- - [ParseMyBatisMapperRequest](#bytebase-v1-ParseMyBatisMapperRequest)- - [ParseMyBatisMapperResponse](#bytebase-v1-ParseMyBatisMapperResponse)- - [PrettyRequest](#bytebase-v1-PrettyRequest)- - [PrettyResponse](#bytebase-v1-PrettyResponse)- - [QueryHistory](#bytebase-v1-QueryHistory)- - [QueryOption](#bytebase-v1-QueryOption)- - [QueryRequest](#bytebase-v1-QueryRequest)- - [QueryResponse](#bytebase-v1-QueryResponse)- - [QueryResult](#bytebase-v1-QueryResult)- - [QueryResult.PostgresError](#bytebase-v1-QueryResult-PostgresError)- - [QueryRow](#bytebase-v1-QueryRow)- - [RowValue](#bytebase-v1-RowValue)- - [RowValue.TimestampTZ](#bytebase-v1-RowValue-TimestampTZ)- - [SearchQueryHistoriesRequest](#bytebase-v1-SearchQueryHistoriesRequest)- - [SearchQueryHistoriesResponse](#bytebase-v1-SearchQueryHistoriesResponse)- - [StringifyMetadataRequest](#bytebase-v1-StringifyMetadataRequest)- - [StringifyMetadataResponse](#bytebase-v1-StringifyMetadataResponse)-- - [Advice.Status](#bytebase-v1-Advice-Status)- - [CheckRequest.ChangeType](#bytebase-v1-CheckRequest-ChangeType)- - [QueryHistory.Type](#bytebase-v1-QueryHistory-Type)- - [QueryOption.RedisRunCommandsOn](#bytebase-v1-QueryOption-RedisRunCommandsOn)-- - [SQLService](#bytebase-v1-SQLService)-- [v1/vcs_connector_service.proto](#v1_vcs_connector_service-proto)- [CreateVCSConnectorRequest](#bytebase-v1-CreateVCSConnectorRequest)- [DeleteVCSConnectorRequest](#bytebase-v1-DeleteVCSConnectorRequest)@@ -9149,496 +9152,543 @@ TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the-<a name="v1_release_service-proto"></a>+<a name="v1_sql_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/release_service.proto+## v1/sql_service.proto-<a name="bytebase-v1-CreateReleaseRequest"></a>+<a name="bytebase-v1-AdminExecuteRequest"></a>-### CreateReleaseRequest+### AdminExecuteRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{project} |-| release | [Release](#bytebase-v1-Release) | | The release to create. |+| name | [string](#string) | | The name is the instance name to execute the query against. Format: instances/{instance}/databases/{databaseName} |+| statement | [string](#string) | | The SQL statement to execute. |+| limit | [int32](#int32) | | The maximum number of rows to return. |+| timeout | [google.protobuf.Duration](#google-protobuf-Duration) | | The timeout for the request. |+| schema | [string](#string) | optional | The default schema to execute the statement. Equals to the current schema in Oracle and search path in Postgres. |-<a name="bytebase-v1-DeleteReleaseRequest"></a>+<a name="bytebase-v1-AdminExecuteResponse"></a>-### DeleteReleaseRequest+### AdminExecuteResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the release to delete. Format: projects/{project}/releases/{release} |+| results | [QueryResult](#bytebase-v1-QueryResult) | repeated | The query results. |-<a name="bytebase-v1-GetReleaseRequest"></a>+<a name="bytebase-v1-Advice"></a>-### GetReleaseRequest+### Advice| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/releases/{release} |+| status | [Advice.Status](#bytebase-v1-Advice-Status) | | The advice status. |+| code | [int32](#int32) | | The advice code. |+| title | [string](#string) | | The advice title. |+| content | [string](#string) | | The advice content. |+| line | [int32](#int32) | | The advice line number in the SQL statement. |+| column | [int32](#int32) | | The advice column number in the SQL statement. |+| detail | [string](#string) | | The advice detail. |+| start_position | [Position](#bytebase-v1-Position) | | 1-based Position of the SQL statement. To supersede `line` and `column` above. |+| end_position | [Position](#bytebase-v1-Position) | | |-<a name="bytebase-v1-ListReleasesRequest"></a>+<a name="bytebase-v1-CheckRequest"></a>-### ListReleasesRequest+### CheckRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{project} |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | Not used. 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. |-| show_deleted | [bool](#bool) | | Show deleted releases if specified. |+| name | [string](#string) | | The database name to check against. Format: instances/{instance}/databases/{database} |+| statement | [string](#string) | | |+| metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The database metadata to check against. It can be used to check against an uncommitted metadata. If not provided, the database metadata will be fetched from the database. |+| change_type | [CheckRequest.ChangeType](#bytebase-v1-CheckRequest-ChangeType) | | |-<a name="bytebase-v1-ListReleasesResponse"></a>+<a name="bytebase-v1-CheckResponse"></a>-### ListReleasesResponse+### CheckResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| releases | [Release](#bytebase-v1-Release) | repeated | |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| advices | [Advice](#bytebase-v1-Advice) | repeated | |-<a name="bytebase-v1-Release"></a>+<a name="bytebase-v1-ExportRequest"></a>-### Release+### ExportRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/releases/{release} |-| title | [string](#string) | | |-| files | [Release.File](#bytebase-v1-Release-File) | repeated | |-| vcs_source | [Release.VCSSource](#bytebase-v1-Release-VCSSource) | | |-| creator | [string](#string) | | Format: users/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| state | [State](#bytebase-v1-State) | | |+| name | [string](#string) | | The name is the instance name to execute the query against. Format: instances/{instance}/databases/{databaseName} Format: projects/{project}/issues/{issue} for data export issue. |+| statement | [string](#string) | | The SQL statement to execute. |+| limit | [int32](#int32) | | The maximum number of rows to return. |+| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The export format. |+| admin | [bool](#bool) | | The admin is used for workspace owner and DBA for exporting data from SQL Editor Admin mode. The exported data is not masked. |+| password | [string](#string) | | The zip password provide by users. |+| data_source_id | [string](#string) | | The id of data source. It is used for querying admin data source even if the instance has read-only data sources. Or it can be used to query a specific read-only data source. |-<a name="bytebase-v1-Release-File"></a>+<a name="bytebase-v1-ExportResponse"></a>-### Release.File+### ExportResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | The unique identifier for the file. |-| path | [string](#string) | | The path of the file. e.g. `2.2/V0001_create_table.sql`. |-| sheet | [string](#string) | | The sheet that holds the content. Format: projects/{project}/sheets/{sheet} |-| sheet_sha256 | [string](#string) | | The SHA256 hash value of the sheet. |-| type | [ReleaseFileType](#bytebase-v1-ReleaseFileType) | | |-| version | [string](#string) | | |-| statement | [string](#string) | | The statement is used for preview purpose. |-| statement_size | [int64](#int64) | | |+| content | [bytes](#bytes) | | The export file content. |-<a name="bytebase-v1-Release-VCSSource"></a>+<a name="bytebase-v1-GenerateRestoreSQLRequest"></a>-### Release.VCSSource+### GenerateRestoreSQLRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| vcs_type | [VCSType](#bytebase-v1-VCSType) | | |-| pull_request_url | [string](#string) | | |+| name | [string](#string) | | The database name to execute the query against. Format: instances/{instance}/databases/{databaseName} |+| sheet | [string](#string) | | The resource name of the sheet. It is used to get the original statement. Format: projects/{project}/sheets/{sheet} |+| backup_data_source | [string](#string) | | The data source to restore from. Format: instances/{instance}/databases/{databaseName}, for general engines. Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG only. |+| backup_table | [string](#string) | | The backup table name. |-<a name="bytebase-v1-UndeleteReleaseRequest"></a>+<a name="bytebase-v1-GenerateRestoreSQLResponse"></a>-### UndeleteReleaseRequest+### GenerateRestoreSQLResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted release. Format: projects/{project}/releases/{release} |+| statement | [string](#string) | | The restore SQL statement. |-<a name="bytebase-v1-UpdateReleaseRequest"></a>+<a name="bytebase-v1-ParseMyBatisMapperRequest"></a>-### UpdateReleaseRequest+### ParseMyBatisMapperRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| release | [Release](#bytebase-v1-Release) | | The release to update. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. |+| content | [bytes](#bytes) | | |-+<a name="bytebase-v1-ParseMyBatisMapperResponse"></a>-<a name="bytebase-v1-ReleaseFileType"></a>+### ParseMyBatisMapperResponse-### ReleaseFileType-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| VERSIONED | 1 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| statements | [string](#string) | repeated | |---<a name="bytebase-v1-ReleaseService"></a>-### ReleaseService+<a name="bytebase-v1-PrettyRequest"></a>+### PrettyRequest-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetRelease | [GetReleaseRequest](#bytebase-v1-GetReleaseRequest) | [Release](#bytebase-v1-Release) | |-| ListReleases | [ListReleasesRequest](#bytebase-v1-ListReleasesRequest) | [ListReleasesResponse](#bytebase-v1-ListReleasesResponse) | |-| CreateRelease | [CreateReleaseRequest](#bytebase-v1-CreateReleaseRequest) | [Release](#bytebase-v1-Release) | |-| UpdateRelease | [UpdateReleaseRequest](#bytebase-v1-UpdateReleaseRequest) | [Release](#bytebase-v1-Release) | |-| DeleteRelease | [DeleteReleaseRequest](#bytebase-v1-DeleteReleaseRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteRelease | [UndeleteReleaseRequest](#bytebase-v1-UndeleteReleaseRequest) | [Release](#bytebase-v1-Release) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| engine | [Engine](#bytebase-v1-Engine) | | |+| current_schema | [string](#string) | | The SDL format SQL schema information that was dumped from a database engine. This information will be sorted to match the order of statements in the userSchema. |+| expected_schema | [string](#string) | | The expected SDL schema. This schema will be checked for correctness and normalized. |-<a name="v1_review_config_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/review_config_service.proto-<a name="bytebase-v1-CreateReviewConfigRequest"></a>+<a name="bytebase-v1-PrettyResponse"></a>-### CreateReviewConfigRequest+### PrettyResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| review_config | [ReviewConfig](#bytebase-v1-ReviewConfig) | | The sql review to create. |+| current_schema | [string](#string) | | The pretty-formatted version of current schema. |+| expected_schema | [string](#string) | | The expected SDL schema after normalizing. |-<a name="bytebase-v1-DeleteReviewConfigRequest"></a>+<a name="bytebase-v1-QueryHistory"></a>-### DeleteReviewConfigRequest+### QueryHistory| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the sql review to delete. Format: reviewConfigs/{reviewConfig} |+| name | [string](#string) | | The name for the query history. Format: queryHistories/{uid} |+| database | [string](#string) | | The database name to execute the query. Format: instances/{instance}/databases/{databaseName} |+| creator | [string](#string) | | |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| statement | [string](#string) | | |+| error | [string](#string) | optional | |+| duration | [google.protobuf.Duration](#google-protobuf-Duration) | | |+| type | [QueryHistory.Type](#bytebase-v1-QueryHistory-Type) | | |-<a name="bytebase-v1-GetReviewConfigRequest"></a>+<a name="bytebase-v1-QueryOption"></a>-### GetReviewConfigRequest+### QueryOption| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the sql review to retrieve. Format: reviewConfigs/{reviewConfig} |+| redis_run_commands_on | [QueryOption.RedisRunCommandsOn](#bytebase-v1-QueryOption-RedisRunCommandsOn) | | |-<a name="bytebase-v1-ListReviewConfigsRequest"></a>+<a name="bytebase-v1-QueryRequest"></a>-### ListReviewConfigsRequest+### QueryRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | Not used. The maximum number of sql review to return. The service may return fewer than this value. If unspecified, at most 10 sql review will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, provide this to retrieve the subsequent page.+| name | [string](#string) | | The name is the instance name to execute the query against. Format: instances/{instance}/databases/{databaseName} |+| statement | [string](#string) | | The SQL statement to execute. |+| limit | [int32](#int32) | | The maximum number of rows to return. |+| timeout | [google.protobuf.Duration](#google-protobuf-Duration) | optional | The timeout for the request. |+| data_source_id | [string](#string) | | The id of data source. It is used for querying admin data source even if the instance has read-only data sources. Or it can be used to query a specific read-only data source. |+| explain | [bool](#bool) | | Explain the statement. |+| schema | [string](#string) | optional | The default schema to search objects. Equals to the current schema in Oracle and search path in Postgres. |+| query_option | [QueryOption](#bytebase-v1-QueryOption) | | |-When paginating, all other parameters provided to `ListReviewConfigs` must match the call that provided the page token. |+<a name="bytebase-v1-QueryResponse"></a>-<a name="bytebase-v1-ListReviewConfigsResponse"></a>--### ListReviewConfigsResponse+### QueryResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| review_configs | [ReviewConfig](#bytebase-v1-ReviewConfig) | repeated | The sql review from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| results | [QueryResult](#bytebase-v1-QueryResult) | repeated | The query results. |+| allow_export | [bool](#bool) | | The query is allowed to be exported or not. |-<a name="bytebase-v1-ReviewConfig"></a>+<a name="bytebase-v1-QueryResult"></a>-### ReviewConfig+### QueryResult| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the sql review to retrieve. Format: reviewConfigs/{reviewConfig} |-| title | [string](#string) | | |-| enabled | [bool](#bool) | | |-| creator | [string](#string) | | Format: users/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| rules | [SQLReviewRule](#bytebase-v1-SQLReviewRule) | repeated | |-| resources | [string](#string) | repeated | resources using the config. Format: {resurce}/{resource id}, for example, environments/test. |-+| column_names | [string](#string) | repeated | Column names of the query result. |+| column_type_names | [string](#string) | repeated | Column types of the query result. The types come from the Golang SQL driver. |+| rows | [QueryRow](#bytebase-v1-QueryRow) | repeated | Rows of the query result. |+| masked | [bool](#bool) | repeated | Columns are masked or not. |+| sensitive | [bool](#bool) | repeated | Columns are sensitive or not. |+| error | [string](#string) | | The error message if the query failed. |+| latency | [google.protobuf.Duration](#google-protobuf-Duration) | | The time it takes to execute the query. |+| statement | [string](#string) | | The query statement for the result. |+| postgres_error | [QueryResult.PostgresError](#bytebase-v1-QueryResult-PostgresError) | | |-<a name="bytebase-v1-UpdateReviewConfigRequest"></a>-### UpdateReviewConfigRequest+<a name="bytebase-v1-QueryResult-PostgresError"></a>+### QueryResult.PostgresError+refer https://www.postgresql.org/docs/11/protocol-error-fields.html+for field description.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| review_config | [ReviewConfig](#bytebase-v1-ReviewConfig) | | The sql review to update.+| severity | [string](#string) | | |+| code | [string](#string) | | |+| message | [string](#string) | | |+| detail | [string](#string) | | |+| hint | [string](#string) | | |+| position | [int32](#int32) | | |+| internal_position | [int32](#int32) | | |+| internal_query | [string](#string) | | |+| where | [string](#string) | | |+| schema_name | [string](#string) | | |+| table_name | [string](#string) | | |+| column_name | [string](#string) | | |+| data_type_name | [string](#string) | | |+| constraint_name | [string](#string) | | |+| file | [string](#string) | | |+| line | [int32](#int32) | | |+| routine | [string](#string) | | |-The name field is used to identify the sql review to update. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-| allow_missing | [bool](#bool) | | If set to true, and the config is not found, a new config will be created. In this situation, `update_mask` is ignored. |-+<a name="bytebase-v1-QueryRow"></a>-+### QueryRow--<a name="bytebase-v1-ReviewConfigService"></a>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| values | [RowValue](#bytebase-v1-RowValue) | repeated | Row values of the query result. |-### ReviewConfigService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| CreateReviewConfig | [CreateReviewConfigRequest](#bytebase-v1-CreateReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |-| ListReviewConfigs | [ListReviewConfigsRequest](#bytebase-v1-ListReviewConfigsRequest) | [ListReviewConfigsResponse](#bytebase-v1-ListReviewConfigsResponse) | |-| GetReviewConfig | [GetReviewConfigRequest](#bytebase-v1-GetReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |-| UpdateReviewConfig | [UpdateReviewConfigRequest](#bytebase-v1-UpdateReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |-| DeleteReviewConfig | [DeleteReviewConfigRequest](#bytebase-v1-DeleteReviewConfigRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-+<a name="bytebase-v1-RowValue"></a>-<a name="v1_risk_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>+### RowValue-## v1/risk_service.proto+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| null_value | [google.protobuf.NullValue](#google-protobuf-NullValue) | | |+| bool_value | [bool](#bool) | | |+| bytes_value | [bytes](#bytes) | | |+| double_value | [double](#double) | | |+| float_value | [float](#float) | | |+| int32_value | [int32](#int32) | | |+| int64_value | [int64](#int64) | | |+| string_value | [string](#string) | | |+| uint32_value | [uint32](#uint32) | | |+| uint64_value | [uint64](#uint64) | | |+| value_value | [google.protobuf.Value](#google-protobuf-Value) | | value_value is used for Spanner and TUPLE ARRAY MAP in Clickhouse only. |+| timestamp_value | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | timestamp_value is used for the timestamp without time zone data type, meaning it only includes the timestamp without any time zone or location info. Although it may be expressed as a UTC value, it should be seen as a timestamp missing location context. |+| timestamp_tz_value | [RowValue.TimestampTZ](#bytebase-v1-RowValue-TimestampTZ) | | timestamp_tz_value is used for the timestamptz data type, which accurately represents the timestamp with location information. |-<a name="bytebase-v1-CreateRiskRequest"></a>-### CreateRiskRequest+++<a name="bytebase-v1-RowValue-TimestampTZ"></a>++### RowValue.TimestampTZ| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| risk | [Risk](#bytebase-v1-Risk) | | The risk to create. |+| timestamp | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| zone | [string](#string) | | Zone is the time zone abbreviations in timezone database such as "PDT", "PST". https://en.wikipedia.org/wiki/List_of_tz_database_time_zones We retrieve the time zone information from the timestamptz field in the database. A timestamp is in UTC or epoch time, and with zone info, we can convert it to a local time string. Zone and offset are returned by time.Time.Zone() |+| offset | [int32](#int32) | | The offset is in seconds east of UTC |-<a name="bytebase-v1-DeleteRiskRequest"></a>+<a name="bytebase-v1-SearchQueryHistoriesRequest"></a>-### DeleteRiskRequest+### SearchQueryHistoriesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the risk to delete. Format: risks/{risk} |+| page_size | [int32](#int32) | | The maximum number of histories to return. The service may return fewer than this value. If unspecified, at most 10 history entries will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListQueryHistory` call. Provide this to retrieve the subsequent page. |+| filter | [string](#string) | | filter is the filter to apply on the search query history, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Support filter by: - database, for example: database = "instances/{instance}/databases/{database}" - instance, for example: instance = "instance/{instance}" - type, for example: type = "QUERY" |-<a name="bytebase-v1-ListRisksRequest"></a>+<a name="bytebase-v1-SearchQueryHistoriesResponse"></a>-### ListRisksRequest+### SearchQueryHistoriesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | Not used. The maximum number of risks to return. The service may return fewer than this value. If unspecified, at most 10 risks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListRisks` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `LiskRisks` must match the call that provided the page token. |+| query_histories | [QueryHistory](#bytebase-v1-QueryHistory) | repeated | The list of history. |+| next_page_token | [string](#string) | | A token to retrieve next page of history. Pass this value in the page_token field in the subsequent call to `ListQueryHistory` method to retrieve the next page of history. |-<a name="bytebase-v1-ListRisksResponse"></a>+<a name="bytebase-v1-StringifyMetadataRequest"></a>-### ListRisksResponse+### StringifyMetadataRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| risks | [Risk](#bytebase-v1-Risk) | repeated | |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | |+| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema string. |+| classification_from_config | [bool](#bool) | | If false, we will build the raw common by classification in database config. |-<a name="bytebase-v1-Risk"></a>+<a name="bytebase-v1-StringifyMetadataResponse"></a>-### Risk+### StringifyMetadataResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: risks/{risk} |-| source | [Risk.Source](#bytebase-v1-Risk-Source) | | |-| title | [string](#string) | | |-| level | [int32](#int32) | | |-| active | [bool](#bool) | | |-| condition | [google.type.Expr](#google-type-Expr) | | |+| schema | [string](#string) | | |+-<a name="bytebase-v1-UpdateRiskRequest"></a>-### UpdateRiskRequest+<a name="bytebase-v1-Advice-Status"></a>+### Advice.Status-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| risk | [Risk](#bytebase-v1-Risk) | | The risk to update.+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | Unspecified. |+| SUCCESS | 1 | |+| WARNING | 2 | |+| ERROR | 3 | |-The risk's `name` field is used to identify the risk to update. Format: risks/{risk} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+<a name="bytebase-v1-CheckRequest-ChangeType"></a>+### CheckRequest.ChangeType-+| Name | Number | Description |+| ---- | ------ | ----------- |+| CHANGE_TYPE_UNSPECIFIED | 0 | |+| DDL | 1 | |+| DDL_GHOST | 2 | |+| DML | 3 | |+| SQL_EDITOR | 4 | |-<a name="bytebase-v1-Risk-Source"></a>-### Risk.Source+<a name="bytebase-v1-QueryHistory-Type"></a>++### QueryHistory.Type| Name | Number | Description || ---- | ------ | ----------- |-| SOURCE_UNSPECIFIED | 0 | |-| DDL | 1 | |-| DML | 2 | |-| CREATE_DATABASE | 3 | |-| REQUEST_QUERY | 4 | |-| REQUEST_EXPORT | 5 | |-| DATA_EXPORT | 6 | |+| TYPE_UNSPECIFIED | 0 | |+| QUERY | 1 | |+| EXPORT | 2 | |++++<a name="bytebase-v1-QueryOption-RedisRunCommandsOn"></a>++### QueryOption.RedisRunCommandsOn+++| Name | Number | Description |+| ---- | ------ | ----------- |+| REDIS_RUN_COMMANDS_ON_UNSPECIFIED | 0 | UNSPECIFIED defaults to SINGLE_NODE. |+| SINGLE_NODE | 1 | |+| ALL_NODES | 2 | |@@ -9646,345 +9696,370 @@ The risk's `name` field is used to identify the risk to update. Format: risk-<a name="bytebase-v1-RiskService"></a>+<a name="bytebase-v1-SQLService"></a>-### RiskService+### SQLService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| ListRisks | [ListRisksRequest](#bytebase-v1-ListRisksRequest) | [ListRisksResponse](#bytebase-v1-ListRisksResponse) | |-| CreateRisk | [CreateRiskRequest](#bytebase-v1-CreateRiskRequest) | [Risk](#bytebase-v1-Risk) | |-| UpdateRisk | [UpdateRiskRequest](#bytebase-v1-UpdateRiskRequest) | [Risk](#bytebase-v1-Risk) | |-| DeleteRisk | [DeleteRiskRequest](#bytebase-v1-DeleteRiskRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| Query | [QueryRequest](#bytebase-v1-QueryRequest) | [QueryResponse](#bytebase-v1-QueryResponse) | |+| AdminExecute | [AdminExecuteRequest](#bytebase-v1-AdminExecuteRequest) stream | [AdminExecuteResponse](#bytebase-v1-AdminExecuteResponse) stream | |+| SearchQueryHistories | [SearchQueryHistoriesRequest](#bytebase-v1-SearchQueryHistoriesRequest) | [SearchQueryHistoriesResponse](#bytebase-v1-SearchQueryHistoriesResponse) | SearchQueryHistories searches query histories for the caller. |+| Export | [ExportRequest](#bytebase-v1-ExportRequest) | [ExportResponse](#bytebase-v1-ExportResponse) | |+| Check | [CheckRequest](#bytebase-v1-CheckRequest) | [CheckResponse](#bytebase-v1-CheckResponse) | |+| ParseMyBatisMapper | [ParseMyBatisMapperRequest](#bytebase-v1-ParseMyBatisMapperRequest) | [ParseMyBatisMapperResponse](#bytebase-v1-ParseMyBatisMapperResponse) | |+| Pretty | [PrettyRequest](#bytebase-v1-PrettyRequest) | [PrettyResponse](#bytebase-v1-PrettyResponse) | |+| StringifyMetadata | [StringifyMetadataRequest](#bytebase-v1-StringifyMetadataRequest) | [StringifyMetadataResponse](#bytebase-v1-StringifyMetadataResponse) | |+| GenerateRestoreSQL | [GenerateRestoreSQLRequest](#bytebase-v1-GenerateRestoreSQLRequest) | [GenerateRestoreSQLResponse](#bytebase-v1-GenerateRestoreSQLResponse) | Deprecated. |-<a name="v1_role_service-proto"></a>+<a name="v1_release_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/role_service.proto+## v1/release_service.proto-<a name="bytebase-v1-CreateRoleRequest"></a>+<a name="bytebase-v1-CheckReleaseRequest"></a>-### CreateRoleRequest+### CheckReleaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [Role](#bytebase-v1-Role) | | |-| role_id | [string](#string) | | The ID to use for the role, which will become the final component of the role's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]/. |+| parent | [string](#string) | | Format: projects/{project} |+| release | [Release](#bytebase-v1-Release) | | The release to check. |+| targets | [string](#string) | repeated | The targets to dry-run the release. Can be database or databaseGroup. Format: projects/{project}/databaseGroups/{databaseGroup} instances/{instance}/databases/{database} |-<a name="bytebase-v1-DeleteRoleRequest"></a>+<a name="bytebase-v1-CheckReleaseResponse"></a>-### DeleteRoleRequest+### CheckReleaseResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: roles/{role} |+| results | [CheckReleaseResponse.CheckResult](#bytebase-v1-CheckReleaseResponse-CheckResult) | repeated | |-<a name="bytebase-v1-ListRolesRequest"></a>+<a name="bytebase-v1-CheckReleaseResponse-CheckResult"></a>-### ListRolesRequest+### CheckReleaseResponse.CheckResult| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | Not used. The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 10 reviews will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |+| file | [string](#string) | | The file id that is being checked. |+| advices | [Advice](#bytebase-v1-Advice) | repeated | |-<a name="bytebase-v1-ListRolesResponse"></a>+<a name="bytebase-v1-CreateReleaseRequest"></a>-### ListRolesResponse+### CreateReleaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| roles | [Role](#bytebase-v1-Role) | repeated | |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| parent | [string](#string) | | Format: projects/{project} |+| release | [Release](#bytebase-v1-Release) | | The release to create. |-<a name="bytebase-v1-Role"></a>+<a name="bytebase-v1-DeleteReleaseRequest"></a>-### Role+### DeleteReleaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: roles/{role} |-| title | [string](#string) | | |-| description | [string](#string) | | |-| permissions | [string](#string) | repeated | |+| name | [string](#string) | | The name of the release to delete. Format: projects/{project}/releases/{release} |-<a name="bytebase-v1-UpdateRoleRequest"></a>+<a name="bytebase-v1-GetReleaseRequest"></a>-### UpdateRoleRequest+### GetReleaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [Role](#bytebase-v1-Role) | | |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |-| allow_missing | [bool](#bool) | | If set to true, and the role is not found, a new role will be created. |---+| name | [string](#string) | | Format: projects/{project}/releases/{release} |----<a name="bytebase-v1-RoleService"></a>+<a name="bytebase-v1-ListReleasesRequest"></a>-### RoleService+### ListReleasesRequest-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| ListRoles | [ListRolesRequest](#bytebase-v1-ListRolesRequest) | [ListRolesResponse](#bytebase-v1-ListRolesResponse) | |-| CreateRole | [CreateRoleRequest](#bytebase-v1-CreateRoleRequest) | [Role](#bytebase-v1-Role) | |-| UpdateRole | [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest) | [Role](#bytebase-v1-Role) | |-| DeleteRole | [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | Format: projects/{project} |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | Not used. 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. |+| show_deleted | [bool](#bool) | | Show deleted releases if specified. |-<a name="v1_rollout_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/rollout_service.proto-<a name="bytebase-v1-BatchCancelTaskRunsRequest"></a>+<a name="bytebase-v1-ListReleasesResponse"></a>-### BatchCancelTaskRunsRequest+### ListReleasesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the taskRuns. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. |-| task_runs | [string](#string) | repeated | The taskRuns to cancel. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-| reason | [string](#string) | | |+| releases | [Release](#bytebase-v1-Release) | repeated | |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-BatchCancelTaskRunsResponse"></a>+<a name="bytebase-v1-Release"></a>-### BatchCancelTaskRunsResponse+### Release+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: projects/{project}/releases/{release} |+| title | [string](#string) | | |+| files | [Release.File](#bytebase-v1-Release-File) | repeated | |+| vcs_source | [Release.VCSSource](#bytebase-v1-Release-VCSSource) | | |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| state | [State](#bytebase-v1-State) | | |-<a name="bytebase-v1-BatchRunTasksRequest"></a>-### BatchRunTasksRequest++<a name="bytebase-v1-Release-File"></a>++### Release.File| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |-| tasks | [string](#string) | repeated | The tasks to run. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| reason | [string](#string) | | |+| id | [string](#string) | | The unique identifier for the file. |+| path | [string](#string) | | The path of the file. e.g. `2.2/V0001_create_table.sql`. |+| sheet | [string](#string) | | The sheet that holds the content. Format: projects/{project}/sheets/{sheet} |+| sheet_sha256 | [string](#string) | | The SHA256 hash value of the sheet. |+| type | [ReleaseFileType](#bytebase-v1-ReleaseFileType) | | |+| version | [string](#string) | | |+| statement | [string](#string) | | The statement is used for preview or check purpose. |+| statement_size | [int64](#int64) | | |-<a name="bytebase-v1-BatchRunTasksResponse"></a>+<a name="bytebase-v1-Release-VCSSource"></a>++### Release.VCSSource-### BatchRunTasksResponse+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| vcs_type | [VCSType](#bytebase-v1-VCSType) | | |+| pull_request_url | [string](#string) | | |+-<a name="bytebase-v1-BatchSkipTasksRequest"></a>+<a name="bytebase-v1-UndeleteReleaseRequest"></a>-### BatchSkipTasksRequest+### UndeleteReleaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |-| tasks | [string](#string) | repeated | The tasks to skip. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| reason | [string](#string) | | |+| name | [string](#string) | | The name of the deleted release. Format: projects/{project}/releases/{release} |-<a name="bytebase-v1-BatchSkipTasksResponse"></a>+<a name="bytebase-v1-UpdateReleaseRequest"></a>-### BatchSkipTasksResponse+### UpdateReleaseRequest+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| release | [Release](#bytebase-v1-Release) | | The release to update. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. |-<a name="bytebase-v1-CreateRolloutRequest"></a>-### CreateRolloutRequest++<a name="bytebase-v1-ReleaseFileType"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent project where this rollout will be created. Format: projects/{project} |-| rollout | [Rollout](#bytebase-v1-Rollout) | | The rollout to create. |+### ReleaseFileType+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| VERSIONED | 1 | |++-<a name="bytebase-v1-GetRolloutRequest"></a>-### GetRolloutRequest+<a name="bytebase-v1-ReleaseService"></a>+### ReleaseService-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the rollout to retrieve. Format: projects/{project}/rollouts/{rollout} |+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetRelease | [GetReleaseRequest](#bytebase-v1-GetReleaseRequest) | [Release](#bytebase-v1-Release) | |+| ListReleases | [ListReleasesRequest](#bytebase-v1-ListReleasesRequest) | [ListReleasesResponse](#bytebase-v1-ListReleasesResponse) | |+| CreateRelease | [CreateReleaseRequest](#bytebase-v1-CreateReleaseRequest) | [Release](#bytebase-v1-Release) | |+| UpdateRelease | [UpdateReleaseRequest](#bytebase-v1-UpdateReleaseRequest) | [Release](#bytebase-v1-Release) | |+| DeleteRelease | [DeleteReleaseRequest](#bytebase-v1-DeleteReleaseRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteRelease | [UndeleteReleaseRequest](#bytebase-v1-UndeleteReleaseRequest) | [Release](#bytebase-v1-Release) | |+| CheckRelease | [CheckReleaseRequest](#bytebase-v1-CheckReleaseRequest) | [CheckReleaseResponse](#bytebase-v1-CheckReleaseResponse) | |+++<a name="v1_review_config_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/review_config_service.proto-<a name="bytebase-v1-GetTaskRunLogRequest"></a>-### GetTaskRunLogRequest+<a name="bytebase-v1-CreateReviewConfigRequest"></a>++### CreateReviewConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} TODO(d): check the resource_reference. |+| review_config | [ReviewConfig](#bytebase-v1-ReviewConfig) | | The sql review to create. |-<a name="bytebase-v1-GetTaskRunRequest"></a>+<a name="bytebase-v1-DeleteReviewConfigRequest"></a>-### GetTaskRunRequest+### DeleteReviewConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| name | [string](#string) | | The name of the sql review to delete. Format: reviewConfigs/{reviewConfig} |-<a name="bytebase-v1-GetTaskRunSessionRequest"></a>+<a name="bytebase-v1-GetReviewConfigRequest"></a>-### GetTaskRunSessionRequest+### GetReviewConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| name | [string](#string) | | The name of the sql review to retrieve. Format: reviewConfigs/{reviewConfig} |-<a name="bytebase-v1-ListRolloutsRequest"></a>+<a name="bytebase-v1-ListReviewConfigsRequest"></a>-### ListRolloutsRequest+### ListReviewConfigsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of rollouts. Format: projects/{project} Use "projects/-" to list all rollouts from all projects. |-| page_size | [int32](#int32) | | The maximum number of rollouts to return. The service may return fewer than this value. If unspecified, at most 10 rollouts will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListRollouts` call. Provide this to retrieve the subsequent page.+| page_size | [int32](#int32) | | Not used. The maximum number of sql review to return. The service may return fewer than this value. If unspecified, at most 10 sql review will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListRollouts` must match the call that provided the page token. |+When paginating, all other parameters provided to `ListReviewConfigs` must match the call that provided the page token. |-<a name="bytebase-v1-ListRolloutsResponse"></a>+<a name="bytebase-v1-ListReviewConfigsResponse"></a>-### ListRolloutsResponse+### ListReviewConfigsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| rollouts | [Rollout](#bytebase-v1-Rollout) | repeated | The rollouts from the specified request. |+| review_configs | [ReviewConfig](#bytebase-v1-ReviewConfig) | repeated | The sql review from the specified request. || next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |@@ -9992,1457 +10067,1439 @@ When paginating, all other parameters provided to `ListRollouts` must match the-<a name="bytebase-v1-ListTaskRunsRequest"></a>+<a name="bytebase-v1-ReviewConfig"></a>-### ListTaskRunsRequest+### ReviewConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. |-| page_size | [int32](#int32) | | Not used. The maximum number of taskRuns to return. The service may return fewer than this value. If unspecified, at most 10 taskRuns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListTaskRuns` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListTaskRuns` must match the call that provided the page token. |+| name | [string](#string) | | The name of the sql review to retrieve. Format: reviewConfigs/{reviewConfig} |+| title | [string](#string) | | |+| enabled | [bool](#bool) | | |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| rules | [SQLReviewRule](#bytebase-v1-SQLReviewRule) | repeated | |+| resources | [string](#string) | repeated | resources using the config. Format: {resurce}/{resource id}, for example, environments/test. |-<a name="bytebase-v1-ListTaskRunsResponse"></a>+<a name="bytebase-v1-UpdateReviewConfigRequest"></a>-### ListTaskRunsResponse+### UpdateReviewConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| task_runs | [TaskRun](#bytebase-v1-TaskRun) | repeated | The taskRuns from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| review_config | [ReviewConfig](#bytebase-v1-ReviewConfig) | | The sql review to update.+The name field is used to identify the sql review to update. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| allow_missing | [bool](#bool) | | If set to true, and the config is not found, a new config will be created. In this situation, `update_mask` is ignored. |-<a name="bytebase-v1-PreviewRolloutRequest"></a>+-### PreviewRolloutRequest++-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The name of the project. Format: projects/{project} |-| plan | [Plan](#bytebase-v1-Plan) | | The plan used to preview rollout. |+<a name="bytebase-v1-ReviewConfigService"></a>++### ReviewConfigService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| CreateReviewConfig | [CreateReviewConfigRequest](#bytebase-v1-CreateReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |+| ListReviewConfigs | [ListReviewConfigsRequest](#bytebase-v1-ListReviewConfigsRequest) | [ListReviewConfigsResponse](#bytebase-v1-ListReviewConfigsResponse) | |+| GetReviewConfig | [GetReviewConfigRequest](#bytebase-v1-GetReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |+| UpdateReviewConfig | [UpdateReviewConfigRequest](#bytebase-v1-UpdateReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |+| DeleteReviewConfig | [DeleteReviewConfigRequest](#bytebase-v1-DeleteReviewConfigRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |++<a name="v1_risk_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/risk_service.proto-<a name="bytebase-v1-PreviewTaskRunRollbackRequest"></a>-### PreviewTaskRunRollbackRequest++<a name="bytebase-v1-CreateRiskRequest"></a>++### CreateRiskRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| risk | [Risk](#bytebase-v1-Risk) | | The risk to create. |-<a name="bytebase-v1-PreviewTaskRunRollbackResponse"></a>+<a name="bytebase-v1-DeleteRiskRequest"></a>-### PreviewTaskRunRollbackResponse+### DeleteRiskRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| statement | [string](#string) | | |+| name | [string](#string) | | The name of the risk to delete. Format: risks/{risk} |-<a name="bytebase-v1-Rollout"></a>+<a name="bytebase-v1-ListRisksRequest"></a>-### Rollout+### ListRisksRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The resource name of the rollout. Format: projects/{project}/rollouts/{rollout} |-| plan | [string](#string) | | The plan that this rollout is based on. Format: projects/{project}/plans/{plan} |-| title | [string](#string) | | |-| stages | [Stage](#bytebase-v1-Stage) | repeated | stages and thus tasks of the rollout. |-| creator | [string](#string) | | Format: users/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| issue | [string](#string) | | The issue associated with the rollout. Could be empty. Format: projects/{project}/issues/{issue} |+| page_size | [int32](#int32) | | Not used. The maximum number of risks to return. The service may return fewer than this value. If unspecified, at most 10 risks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListRisks` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `LiskRisks` must match the call that provided the page token. |-<a name="bytebase-v1-Stage"></a>-### Stage+<a name="bytebase-v1-ListRisksResponse"></a>++### ListRisksResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage} |-| title | [string](#string) | | |-| tasks | [Task](#bytebase-v1-Task) | repeated | |+| risks | [Risk](#bytebase-v1-Risk) | repeated | |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-Task"></a>+<a name="bytebase-v1-Risk"></a>-### Task+### Risk| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| name | [string](#string) | | Format: risks/{risk} |+| source | [Risk.Source](#bytebase-v1-Risk-Source) | | || title | [string](#string) | | |-| spec_id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. Could be empty if the rollout of the task does not have an associating plan. |-| status | [Task.Status](#bytebase-v1-Task-Status) | | Status is the status of the task. |-| skipped_reason | [string](#string) | | |-| type | [Task.Type](#bytebase-v1-Task-Type) | | |-| depends_on_tasks | [string](#string) | repeated | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| target | [string](#string) | | Format: instances/{instance} if the task is DatabaseCreate. Format: instances/{instance}/databases/{database} |-| database_create | [Task.DatabaseCreate](#bytebase-v1-Task-DatabaseCreate) | | |-| database_schema_baseline | [Task.DatabaseSchemaBaseline](#bytebase-v1-Task-DatabaseSchemaBaseline) | | |-| database_schema_update | [Task.DatabaseSchemaUpdate](#bytebase-v1-Task-DatabaseSchemaUpdate) | | |-| database_data_update | [Task.DatabaseDataUpdate](#bytebase-v1-Task-DatabaseDataUpdate) | | |-| database_data_export | [Task.DatabaseDataExport](#bytebase-v1-Task-DatabaseDataExport) | | |+| level | [int32](#int32) | | |+| active | [bool](#bool) | | |+| condition | [google.type.Expr](#google-type-Expr) | | |-<a name="bytebase-v1-Task-DatabaseCreate"></a>+<a name="bytebase-v1-UpdateRiskRequest"></a>-### Task.DatabaseCreate+### UpdateRiskRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The project owning the database. Format: projects/{project} |-| database | [string](#string) | | database name |-| table | [string](#string) | | table name |-| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |-| character_set | [string](#string) | | |-| collation | [string](#string) | | |-| environment | [string](#string) | | |-| labels | [Task.DatabaseCreate.LabelsEntry](#bytebase-v1-Task-DatabaseCreate-LabelsEntry) | repeated | |+| risk | [Risk](#bytebase-v1-Risk) | | The risk to update.+The risk's `name` field is used to identify the risk to update. Format: risks/{risk} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-Task-DatabaseCreate-LabelsEntry"></a>+-### Task.DatabaseCreate.LabelsEntry+<a name="bytebase-v1-Risk-Source"></a>+### Risk.Source-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| SOURCE_UNSPECIFIED | 0 | |+| DDL | 1 | |+| DML | 2 | |+| CREATE_DATABASE | 3 | |+| REQUEST_QUERY | 4 | |+| REQUEST_EXPORT | 5 | |+| DATA_EXPORT | 6 | |++-<a name="bytebase-v1-Task-DatabaseDataExport"></a>+<a name="bytebase-v1-RiskService"></a>-### Task.DatabaseDataExport+### RiskService+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListRisks | [ListRisksRequest](#bytebase-v1-ListRisksRequest) | [ListRisksResponse](#bytebase-v1-ListRisksResponse) | |+| CreateRisk | [CreateRiskRequest](#bytebase-v1-CreateRiskRequest) | [Risk](#bytebase-v1-Risk) | |+| UpdateRisk | [UpdateRiskRequest](#bytebase-v1-UpdateRiskRequest) | [Risk](#bytebase-v1-Risk) | |+| DeleteRisk | [DeleteRiskRequest](#bytebase-v1-DeleteRiskRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name} |-| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |-| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The format of the exported file. |-| password | [string](#string) | optional | The zip password provide by users. Leave it empty if no needs to encrypt the zip file. |++<a name="v1_role_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/role_service.proto-<a name="bytebase-v1-Task-DatabaseDataUpdate"></a>+<a name="bytebase-v1-CreateRoleRequest"></a>-### Task.DatabaseDataUpdate+### CreateRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |-| schema_version | [string](#string) | | |+| role | [Role](#bytebase-v1-Role) | | |+| role_id | [string](#string) | | The ID to use for the role, which will become the final component of the role's resource name.+This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]/. |-<a name="bytebase-v1-Task-DatabaseSchemaBaseline"></a>-### Task.DatabaseSchemaBaseline+<a name="bytebase-v1-DeleteRoleRequest"></a>++### DeleteRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema_version | [string](#string) | | |+| name | [string](#string) | | Format: roles/{role} |-<a name="bytebase-v1-Task-DatabaseSchemaUpdate"></a>+<a name="bytebase-v1-ListRolesRequest"></a>-### Task.DatabaseSchemaUpdate+### ListRolesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |-| schema_version | [string](#string) | | |+| page_size | [int32](#int32) | | Not used. The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 10 reviews will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |-<a name="bytebase-v1-TaskRun"></a>-### TaskRun+<a name="bytebase-v1-ListRolesResponse"></a>++### ListRolesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-| creator | [string](#string) | | Format: user/[email protected] |-| updater | [string](#string) | | Format: user/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| title | [string](#string) | | |-| status | [TaskRun.Status](#bytebase-v1-TaskRun-Status) | | |-| detail | [string](#string) | | Below are the results of a task run. |-| change_history | [string](#string) | | The resource name of the change history Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| schema_version | [string](#string) | | |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| export_archive_status | [TaskRun.ExportArchiveStatus](#bytebase-v1-TaskRun-ExportArchiveStatus) | | |-| prior_backup_detail | [TaskRun.PriorBackupDetail](#bytebase-v1-TaskRun-PriorBackupDetail) | | The prior backup detail that will be used to rollback the task run. |-| scheduler_info | [TaskRun.SchedulerInfo](#bytebase-v1-TaskRun-SchedulerInfo) | | |+| roles | [Role](#bytebase-v1-Role) | repeated | |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-TaskRun-PriorBackupDetail"></a>+<a name="bytebase-v1-Role"></a>-### TaskRun.PriorBackupDetail+### Role| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| items | [TaskRun.PriorBackupDetail.Item](#bytebase-v1-TaskRun-PriorBackupDetail-Item) | repeated | |+| name | [string](#string) | | Format: roles/{role} |+| title | [string](#string) | | |+| description | [string](#string) | | |+| permissions | [string](#string) | repeated | |-<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item"></a>+<a name="bytebase-v1-UpdateRoleRequest"></a>-### TaskRun.PriorBackupDetail.Item+### UpdateRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| source_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The original table information. |-| target_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The target backup table information. |-| start_position | [Position](#bytebase-v1-Position) | | |-| end_position | [Position](#bytebase-v1-Position) | | |+| role | [Role](#bytebase-v1-Role) | | |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |+| allow_missing | [bool](#bool) | | If set to true, and the role is not found, a new role will be created. |+-<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item-Table"></a>+-### TaskRun.PriorBackupDetail.Item.Table++<a name="bytebase-v1-RoleService"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database | [string](#string) | | The database information. Format: instances/{instance}/databases/{database} |-| schema | [string](#string) | | |-| table | [string](#string) | | |+### RoleService+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListRoles | [ListRolesRequest](#bytebase-v1-ListRolesRequest) | [ListRolesResponse](#bytebase-v1-ListRolesResponse) | |+| CreateRole | [CreateRoleRequest](#bytebase-v1-CreateRoleRequest) | [Role](#bytebase-v1-Role) | |+| UpdateRole | [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest) | [Role](#bytebase-v1-Role) | |+| DeleteRole | [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+-<a name="bytebase-v1-TaskRun-SchedulerInfo"></a>+<a name="v1_rollout_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>-### TaskRun.SchedulerInfo+## v1/rollout_service.proto-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| report_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| waiting_cause | [TaskRun.SchedulerInfo.WaitingCause](#bytebase-v1-TaskRun-SchedulerInfo-WaitingCause) | | |+<a name="bytebase-v1-BatchCancelTaskRunsRequest"></a>+### BatchCancelTaskRunsRequest+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The name of the parent of the taskRuns. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. |+| task_runs | [string](#string) | repeated | The taskRuns to cancel. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| reason | [string](#string) | | |-<a name="bytebase-v1-TaskRun-SchedulerInfo-WaitingCause"></a>-### TaskRun.SchedulerInfo.WaitingCause-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| connection_limit | [bool](#bool) | | |-| task | [TaskRun.SchedulerInfo.WaitingCause.Task](#bytebase-v1-TaskRun-SchedulerInfo-WaitingCause-Task) | | |+<a name="bytebase-v1-BatchCancelTaskRunsResponse"></a>+### BatchCancelTaskRunsResponse-<a name="bytebase-v1-TaskRun-SchedulerInfo-WaitingCause-Task"></a>-### TaskRun.SchedulerInfo.WaitingCause.Task+<a name="bytebase-v1-BatchRunTasksRequest"></a>+### BatchRunTasksRequest-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| task | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| issue | [string](#string) | | Format: projects/{project}/issues/{issue} |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |+| tasks | [string](#string) | repeated | The tasks to run. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| reason | [string](#string) | | |-<a name="bytebase-v1-TaskRunLog"></a>-### TaskRunLog+<a name="bytebase-v1-BatchRunTasksResponse"></a>+### BatchRunTasksResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log |-| entries | [TaskRunLogEntry](#bytebase-v1-TaskRunLogEntry) | repeated | |-<a name="bytebase-v1-TaskRunLogEntry"></a>+<a name="bytebase-v1-BatchSkipTasksRequest"></a>-### TaskRunLogEntry+### BatchSkipTasksRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [TaskRunLogEntry.Type](#bytebase-v1-TaskRunLogEntry-Type) | | |-| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| deploy_id | [string](#string) | | |-| schema_dump | [TaskRunLogEntry.SchemaDump](#bytebase-v1-TaskRunLogEntry-SchemaDump) | | |-| command_execute | [TaskRunLogEntry.CommandExecute](#bytebase-v1-TaskRunLogEntry-CommandExecute) | | |-| database_sync | [TaskRunLogEntry.DatabaseSync](#bytebase-v1-TaskRunLogEntry-DatabaseSync) | | |-| task_run_status_update | [TaskRunLogEntry.TaskRunStatusUpdate](#bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate) | | |-| transaction_control | [TaskRunLogEntry.TransactionControl](#bytebase-v1-TaskRunLogEntry-TransactionControl) | | |-| prior_backup | [TaskRunLogEntry.PriorBackup](#bytebase-v1-TaskRunLogEntry-PriorBackup) | | |--+| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |+| tasks | [string](#string) | repeated | The tasks to skip. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| reason | [string](#string) | | |-<a name="bytebase-v1-TaskRunLogEntry-CommandExecute"></a>-### TaskRunLogEntry.CommandExecute+<a name="bytebase-v1-BatchSkipTasksResponse"></a>+### BatchSkipTasksResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| command_indexes | [int32](#int32) | repeated | The indexes of the executed commands. |-| response | [TaskRunLogEntry.CommandExecute.CommandResponse](#bytebase-v1-TaskRunLogEntry-CommandExecute-CommandResponse) | | |-<a name="bytebase-v1-TaskRunLogEntry-CommandExecute-CommandResponse"></a>+<a name="bytebase-v1-CreateRolloutRequest"></a>-### TaskRunLogEntry.CommandExecute.CommandResponse+### CreateRolloutRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| error | [string](#string) | | |-| affected_rows | [int32](#int32) | | |-| all_affected_rows | [int32](#int32) | repeated | `all_affected_rows` is the affected rows of each command. `all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. |+| parent | [string](#string) | | The parent project where this rollout will be created. Format: projects/{project} |+| rollout | [Rollout](#bytebase-v1-Rollout) | | The rollout to create. |-<a name="bytebase-v1-TaskRunLogEntry-DatabaseSync"></a>+<a name="bytebase-v1-GetRolloutRequest"></a>-### TaskRunLogEntry.DatabaseSync+### GetRolloutRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| error | [string](#string) | | |+| name | [string](#string) | | The name of the rollout to retrieve. Format: projects/{project}/rollouts/{rollout} |-<a name="bytebase-v1-TaskRunLogEntry-PriorBackup"></a>+<a name="bytebase-v1-GetTaskRunLogRequest"></a>-### TaskRunLogEntry.PriorBackup+### GetTaskRunLogRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| prior_backup_detail | [TaskRun.PriorBackupDetail](#bytebase-v1-TaskRun-PriorBackupDetail) | | |-| error | [string](#string) | | |+| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} TODO(d): check the resource_reference. |-<a name="bytebase-v1-TaskRunLogEntry-SchemaDump"></a>+<a name="bytebase-v1-GetTaskRunRequest"></a>-### TaskRunLogEntry.SchemaDump+### GetTaskRunRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| error | [string](#string) | | |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-<a name="bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate"></a>+<a name="bytebase-v1-GetTaskRunSessionRequest"></a>-### TaskRunLogEntry.TaskRunStatusUpdate+### GetTaskRunSessionRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| status | [TaskRunLogEntry.TaskRunStatusUpdate.Status](#bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate-Status) | | |+| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-<a name="bytebase-v1-TaskRunLogEntry-TransactionControl"></a>+<a name="bytebase-v1-ListRolloutsRequest"></a>-### TaskRunLogEntry.TransactionControl+### ListRolloutsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [TaskRunLogEntry.TransactionControl.Type](#bytebase-v1-TaskRunLogEntry-TransactionControl-Type) | | |-| error | [string](#string) | | |+| parent | [string](#string) | | The parent, which owns this collection of rollouts. Format: projects/{project} Use "projects/-" to list all rollouts from all projects. |+| page_size | [int32](#int32) | | The maximum number of rollouts to return. The service may return fewer than this value. If unspecified, at most 10 rollouts will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListRollouts` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListRollouts` must match the call that provided the page token. |-<a name="bytebase-v1-TaskRunSession"></a>-### TaskRunSession+<a name="bytebase-v1-ListRolloutsResponse"></a>++### ListRolloutsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session |-| postgres | [TaskRunSession.Postgres](#bytebase-v1-TaskRunSession-Postgres) | | |+| rollouts | [Rollout](#bytebase-v1-Rollout) | repeated | The rollouts from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-TaskRunSession-Postgres"></a>+<a name="bytebase-v1-ListTaskRunsRequest"></a>-### TaskRunSession.Postgres+### ListTaskRunsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| session | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | | `session` is the session of the task run executing commands. |-| blocking_sessions | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | repeated | `blocking_sessions` block `session`. |-| blocked_sessions | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | repeated | `blocked_sessions` are blocked by `session`. |----+| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. |+| page_size | [int32](#int32) | | Not used. The maximum number of taskRuns to return. The service may return fewer than this value. If unspecified, at most 10 taskRuns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListTaskRuns` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListTaskRuns` must match the call that provided the page token. |-<a name="bytebase-v1-TaskRunSession-Postgres-Session"></a>-### TaskRunSession.Postgres.Session-Read from `pg_stat_activity`-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| pid | [string](#string) | | |-| blocked_by_pids | [string](#string) | repeated | |-| query | [string](#string) | | |-| state | [string](#string) | optional | |-| wait_event_type | [string](#string) | optional | |-| wait_event | [string](#string) | optional | |-| datname | [string](#string) | optional | |-| usename | [string](#string) | optional | |-| application_name | [string](#string) | | |-| client_addr | [string](#string) | optional | |-| client_port | [string](#string) | optional | |-| backend_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| xact_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |-| query_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |+<a name="bytebase-v1-ListTaskRunsResponse"></a>+### ListTaskRunsResponse-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| task_runs | [TaskRun](#bytebase-v1-TaskRun) | repeated | The taskRuns from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-Task-Status"></a>-### Task.Status-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| NOT_STARTED | 1 | |-| PENDING | 2 | |-| RUNNING | 3 | |-| DONE | 4 | |-| FAILED | 5 | |-| CANCELED | 6 | |-| SKIPPED | 7 | |+<a name="bytebase-v1-PreviewRolloutRequest"></a>-<a name="bytebase-v1-Task-Type"></a>+### PreviewRolloutRequest-### Task.Type-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| GENERAL | 1 | |-| DATABASE_CREATE | 2 | use payload DatabaseCreate |-| DATABASE_SCHEMA_BASELINE | 3 | use payload DatabaseSchemaBaseline |-| DATABASE_SCHEMA_UPDATE | 4 | use payload DatabaseSchemaUpdate |-| DATABASE_SCHEMA_UPDATE_SDL | 5 | use payload DatabaseSchemaUpdate |-| DATABASE_SCHEMA_UPDATE_GHOST_SYNC | 6 | use payload DatabaseSchemaUpdate |-| DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER | 7 | use payload nil |-| DATABASE_DATA_UPDATE | 8 | use payload DatabaseDataUpdate |-| DATABASE_DATA_EXPORT | 12 | use payload DatabaseDataExport |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| project | [string](#string) | | The name of the project. Format: projects/{project} |+| plan | [Plan](#bytebase-v1-Plan) | | The plan used to preview rollout. |-<a name="bytebase-v1-TaskRun-ExportArchiveStatus"></a>-### TaskRun.ExportArchiveStatus-| Name | Number | Description |-| ---- | ------ | ----------- |-| EXPORT_ARCHIVE_STATUS_UNSPECIFIED | 0 | |-| READY | 1 | |-| EXPORTED | 2 | |+<a name="bytebase-v1-PreviewTaskRunRollbackRequest"></a>+### PreviewTaskRunRollbackRequest-<a name="bytebase-v1-TaskRun-Status"></a>-### TaskRun.Status+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | |-| RUNNING | 2 | |-| DONE | 3 | |-| FAILED | 4 | |-| CANCELED | 5 | |-<a name="bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate-Status"></a>-### TaskRunLogEntry.TaskRunStatusUpdate.Status+<a name="bytebase-v1-PreviewTaskRunRollbackResponse"></a>+### PreviewTaskRunRollbackResponse-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| RUNNING_WAITING | 1 | the task run is ready to be executed by the scheduler |-| RUNNING_RUNNING | 2 | the task run is being executed by the scheduler |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| statement | [string](#string) | | |-<a name="bytebase-v1-TaskRunLogEntry-TransactionControl-Type"></a>-### TaskRunLogEntry.TransactionControl.Type-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| BEGIN | 1 | |-| COMMIT | 2 | |-| ROLLBACK | 3 | |+<a name="bytebase-v1-Rollout"></a>-<a name="bytebase-v1-TaskRunLogEntry-Type"></a>+### Rollout-### TaskRunLogEntry.Type-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| SCHEMA_DUMP | 1 | |-| COMMAND_EXECUTE | 2 | |-| DATABASE_SYNC | 3 | |-| TASK_RUN_STATUS_UPDATE | 4 | |-| TRANSACTION_CONTROL | 5 | |-| PRIOR_BACKUP | 6 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The resource name of the rollout. Format: projects/{project}/rollouts/{rollout} |+| plan | [string](#string) | | The plan that this rollout is based on. Format: projects/{project}/plans/{plan} |+| title | [string](#string) | | |+| stages | [Stage](#bytebase-v1-Stage) | repeated | stages and thus tasks of the rollout. |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| issue | [string](#string) | | The issue associated with the rollout. Could be empty. Format: projects/{project}/issues/{issue} |---<a name="bytebase-v1-RolloutService"></a>-### RolloutService+<a name="bytebase-v1-Stage"></a>+### Stage-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetRollout | [GetRolloutRequest](#bytebase-v1-GetRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |-| ListRollouts | [ListRolloutsRequest](#bytebase-v1-ListRolloutsRequest) | [ListRolloutsResponse](#bytebase-v1-ListRolloutsResponse) | |-| CreateRollout | [CreateRolloutRequest](#bytebase-v1-CreateRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |-| PreviewRollout | [PreviewRolloutRequest](#bytebase-v1-PreviewRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |-| ListTaskRuns | [ListTaskRunsRequest](#bytebase-v1-ListTaskRunsRequest) | [ListTaskRunsResponse](#bytebase-v1-ListTaskRunsResponse) | |-| GetTaskRun | [GetTaskRunRequest](#bytebase-v1-GetTaskRunRequest) | [TaskRun](#bytebase-v1-TaskRun) | |-| GetTaskRunLog | [GetTaskRunLogRequest](#bytebase-v1-GetTaskRunLogRequest) | [TaskRunLog](#bytebase-v1-TaskRunLog) | |-| GetTaskRunSession | [GetTaskRunSessionRequest](#bytebase-v1-GetTaskRunSessionRequest) | [TaskRunSession](#bytebase-v1-TaskRunSession) | |-| BatchRunTasks | [BatchRunTasksRequest](#bytebase-v1-BatchRunTasksRequest) | [BatchRunTasksResponse](#bytebase-v1-BatchRunTasksResponse) | BatchRunTasks creates task runs for the specified tasks. DataExport issue only allows the creator to run the task. Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA. Follow role-based rollout policy for the environment. |-| BatchSkipTasks | [BatchSkipTasksRequest](#bytebase-v1-BatchSkipTasksRequest) | [BatchSkipTasksResponse](#bytebase-v1-BatchSkipTasksResponse) | BatchSkipTasks skips the specified tasks. The access is the same as BatchRunTasks(). |-| BatchCancelTaskRuns | [BatchCancelTaskRunsRequest](#bytebase-v1-BatchCancelTaskRunsRequest) | [BatchCancelTaskRunsResponse](#bytebase-v1-BatchCancelTaskRunsResponse) | BatchSkipTasks cancels the specified task runs in batch. The access is the same as BatchRunTasks(). |-| PreviewTaskRunRollback | [PreviewTaskRunRollbackRequest](#bytebase-v1-PreviewTaskRunRollbackRequest) | [PreviewTaskRunRollbackResponse](#bytebase-v1-PreviewTaskRunRollbackResponse) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage} |+| title | [string](#string) | | |+| tasks | [Task](#bytebase-v1-Task) | repeated | |-<a name="v1_sheet_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/sheet_service.proto-<a name="bytebase-v1-BatchCreateSheetRequest"></a>+<a name="bytebase-v1-Task"></a>-### BatchCreateSheetRequest+### Task| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where all sheets will be created. Format: projects/{project} |-| requests | [CreateSheetRequest](#bytebase-v1-CreateSheetRequest) | repeated | |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| title | [string](#string) | | |+| spec_id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. Could be empty if the rollout of the task does not have an associating plan. |+| status | [Task.Status](#bytebase-v1-Task-Status) | | Status is the status of the task. |+| skipped_reason | [string](#string) | | |+| type | [Task.Type](#bytebase-v1-Task-Type) | | |+| depends_on_tasks | [string](#string) | repeated | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| target | [string](#string) | | Format: instances/{instance} if the task is DatabaseCreate. Format: instances/{instance}/databases/{database} |+| database_create | [Task.DatabaseCreate](#bytebase-v1-Task-DatabaseCreate) | | |+| database_schema_baseline | [Task.DatabaseSchemaBaseline](#bytebase-v1-Task-DatabaseSchemaBaseline) | | |+| database_schema_update | [Task.DatabaseSchemaUpdate](#bytebase-v1-Task-DatabaseSchemaUpdate) | | |+| database_data_update | [Task.DatabaseDataUpdate](#bytebase-v1-Task-DatabaseDataUpdate) | | |+| database_data_export | [Task.DatabaseDataExport](#bytebase-v1-Task-DatabaseDataExport) | | |-<a name="bytebase-v1-BatchCreateSheetResponse"></a>+<a name="bytebase-v1-Task-DatabaseCreate"></a>-### BatchCreateSheetResponse+### Task.DatabaseCreate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sheets | [Sheet](#bytebase-v1-Sheet) | repeated | |+| project | [string](#string) | | The project owning the database. Format: projects/{project} |+| database | [string](#string) | | database name |+| table | [string](#string) | | table name |+| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |+| character_set | [string](#string) | | |+| collation | [string](#string) | | |+| environment | [string](#string) | | |+| labels | [Task.DatabaseCreate.LabelsEntry](#bytebase-v1-Task-DatabaseCreate-LabelsEntry) | repeated | |-<a name="bytebase-v1-CreateSheetRequest"></a>+<a name="bytebase-v1-Task-DatabaseCreate-LabelsEntry"></a>-### CreateSheetRequest+### Task.DatabaseCreate.LabelsEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this sheet will be created. Format: projects/{project} |-| sheet | [Sheet](#bytebase-v1-Sheet) | | The sheet to create. |+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="bytebase-v1-GetSheetRequest"></a>+<a name="bytebase-v1-Task-DatabaseDataExport"></a>-### GetSheetRequest+### Task.DatabaseDataExport| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the sheet to retrieve. Format: projects/{project}/sheets/{sheet} |-| raw | [bool](#bool) | | By default, the content of the sheet is cut off, set the `raw` to true to retrieve the full content. |+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name} |+| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |+| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The format of the exported file. |+| password | [string](#string) | optional | The zip password provide by users. Leave it empty if no needs to encrypt the zip file. |-<a name="bytebase-v1-Sheet"></a>+<a name="bytebase-v1-Task-DatabaseDataUpdate"></a>-### Sheet+### Task.DatabaseDataUpdate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the sheet resource, generated by the server. Canonical parent is project. Format: projects/{project}/sheets/{sheet} |-| title | [string](#string) | | The title of the sheet. |-| creator | [string](#string) | | The creator of the Sheet. Format: users/{email} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The create time of the sheet. |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The last update time of the sheet. |-| content | [bytes](#bytes) | | The content of the sheet. By default, it will be cut off, if it doesn't match the `content_size`, you can set the `raw` to true in GetSheet request to retrieve the full content. |-| content_size | [int64](#int64) | | content_size is the full size of the content, may not match the size of the `content` field. |-| payload | [SheetPayload](#bytebase-v1-SheetPayload) | | |-| engine | [Engine](#bytebase-v1-Engine) | | The SQL dialect. |+| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |+| schema_version | [string](#string) | | |-<a name="bytebase-v1-SheetCommand"></a>+<a name="bytebase-v1-Task-DatabaseSchemaBaseline"></a>-### SheetCommand+### Task.DatabaseSchemaBaseline| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start | [int32](#int32) | | |-| end | [int32](#int32) | | |+| schema_version | [string](#string) | | |-<a name="bytebase-v1-SheetPayload"></a>+<a name="bytebase-v1-Task-DatabaseSchemaUpdate"></a>-### SheetPayload+### Task.DatabaseSchemaUpdate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [SheetPayload.Type](#bytebase-v1-SheetPayload-Type) | | |-| database_config | [DatabaseConfig](#bytebase-v1-DatabaseConfig) | | The snapshot of the database config when creating the sheet, be used to compare with the baseline_database_config and apply the diff to the database. |-| baseline_database_config | [DatabaseConfig](#bytebase-v1-DatabaseConfig) | | The snapshot of the baseline database config when creating the sheet. |-| commands | [SheetCommand](#bytebase-v1-SheetCommand) | repeated | The start and end position of each command in the sheet statement. |+| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |+| schema_version | [string](#string) | | |-<a name="bytebase-v1-UpdateSheetRequest"></a>+<a name="bytebase-v1-TaskRun"></a>-### UpdateSheetRequest+### TaskRun| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sheet | [Sheet](#bytebase-v1-Sheet) | | The sheet to update.+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| creator | [string](#string) | | Format: user/[email protected] |+| updater | [string](#string) | | Format: user/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| title | [string](#string) | | |+| status | [TaskRun.Status](#bytebase-v1-TaskRun-Status) | | |+| detail | [string](#string) | | Below are the results of a task run. |+| change_history | [string](#string) | | The resource name of the change history Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| schema_version | [string](#string) | | |+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| export_archive_status | [TaskRun.ExportArchiveStatus](#bytebase-v1-TaskRun-ExportArchiveStatus) | | |+| prior_backup_detail | [TaskRun.PriorBackupDetail](#bytebase-v1-TaskRun-PriorBackupDetail) | | The prior backup detail that will be used to rollback the task run. |+| scheduler_info | [TaskRun.SchedulerInfo](#bytebase-v1-TaskRun-SchedulerInfo) | | |-The sheet's `name` field is used to identify the sheet to update. Format: projects/{project}/sheets/{sheet} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. Fields are specified relative to the sheet. (e.g. `title`, `statement`; *not* `sheet.title` or `sheet.statement`) Only support update the following fields for now: - `title` - `statement` |-+<a name="bytebase-v1-TaskRun-PriorBackupDetail"></a>+### TaskRun.PriorBackupDetail-<a name="bytebase-v1-SheetPayload-Type"></a>-### SheetPayload.Type-Type of the SheetPayload.-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| SCHEMA_DESIGN | 1 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| items | [TaskRun.PriorBackupDetail.Item](#bytebase-v1-TaskRun-PriorBackupDetail-Item) | repeated | |---<a name="bytebase-v1-SheetService"></a>-### SheetService+<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item"></a>+### TaskRun.PriorBackupDetail.Item-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| CreateSheet | [CreateSheetRequest](#bytebase-v1-CreateSheetRequest) | [Sheet](#bytebase-v1-Sheet) | |-| BatchCreateSheet | [BatchCreateSheetRequest](#bytebase-v1-BatchCreateSheetRequest) | [BatchCreateSheetResponse](#bytebase-v1-BatchCreateSheetResponse) | |-| GetSheet | [GetSheetRequest](#bytebase-v1-GetSheetRequest) | [Sheet](#bytebase-v1-Sheet) | |-| UpdateSheet | [UpdateSheetRequest](#bytebase-v1-UpdateSheetRequest) | [Sheet](#bytebase-v1-Sheet) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| source_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The original table information. |+| target_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The target backup table information. |+| start_position | [Position](#bytebase-v1-Position) | | |+| end_position | [Position](#bytebase-v1-Position) | | |-<a name="v1_sql_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/sql_service.proto-<a name="bytebase-v1-AdminExecuteRequest"></a>+<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item-Table"></a>-### AdminExecuteRequest+### TaskRun.PriorBackupDetail.Item.Table| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the instance name to execute the query against. Format: instances/{instance}/databases/{databaseName} |-| statement | [string](#string) | | The SQL statement to execute. |-| limit | [int32](#int32) | | The maximum number of rows to return. |-| timeout | [google.protobuf.Duration](#google-protobuf-Duration) | | The timeout for the request. |-| schema | [string](#string) | optional | The default schema to execute the statement. Equals to the current schema in Oracle and search path in Postgres. |+| database | [string](#string) | | The database information. Format: instances/{instance}/databases/{database} |+| schema | [string](#string) | | |+| table | [string](#string) | | |-<a name="bytebase-v1-AdminExecuteResponse"></a>+<a name="bytebase-v1-TaskRun-SchedulerInfo"></a>-### AdminExecuteResponse+### TaskRun.SchedulerInfo| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| results | [QueryResult](#bytebase-v1-QueryResult) | repeated | The query results. |+| report_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| waiting_cause | [TaskRun.SchedulerInfo.WaitingCause](#bytebase-v1-TaskRun-SchedulerInfo-WaitingCause) | | |-<a name="bytebase-v1-Advice"></a>+<a name="bytebase-v1-TaskRun-SchedulerInfo-WaitingCause"></a>-### Advice+### TaskRun.SchedulerInfo.WaitingCause| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| status | [Advice.Status](#bytebase-v1-Advice-Status) | | The advice status. |-| code | [int32](#int32) | | The advice code. |-| title | [string](#string) | | The advice title. |-| content | [string](#string) | | The advice content. |-| line | [int32](#int32) | | The advice line number in the SQL statement. |-| column | [int32](#int32) | | The advice column number in the SQL statement. |-| detail | [string](#string) | | The advice detail. |-| start_position | [Position](#bytebase-v1-Position) | | 1-based Position of the SQL statement. To supersede `line` and `column` above. |-| end_position | [Position](#bytebase-v1-Position) | | |+| connection_limit | [bool](#bool) | | |+| task | [TaskRun.SchedulerInfo.WaitingCause.Task](#bytebase-v1-TaskRun-SchedulerInfo-WaitingCause-Task) | | |-<a name="bytebase-v1-CheckRequest"></a>+<a name="bytebase-v1-TaskRun-SchedulerInfo-WaitingCause-Task"></a>-### CheckRequest+### TaskRun.SchedulerInfo.WaitingCause.Task| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The database name to check against. Format: instances/{instance}/databases/{database} |-| statement | [string](#string) | | |-| metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The database metadata to check against. It can be used to check against an uncommitted metadata. If not provided, the database metadata will be fetched from the database. |-| change_type | [CheckRequest.ChangeType](#bytebase-v1-CheckRequest-ChangeType) | | |+| task | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| issue | [string](#string) | | Format: projects/{project}/issues/{issue} |-<a name="bytebase-v1-CheckResponse"></a>+<a name="bytebase-v1-TaskRunLog"></a>-### CheckResponse+### TaskRunLog| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| advices | [Advice](#bytebase-v1-Advice) | repeated | |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log |+| entries | [TaskRunLogEntry](#bytebase-v1-TaskRunLogEntry) | repeated | |-<a name="bytebase-v1-ExportRequest"></a>+<a name="bytebase-v1-TaskRunLogEntry"></a>-### ExportRequest+### TaskRunLogEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the instance name to execute the query against. Format: instances/{instance}/databases/{databaseName} Format: projects/{project}/issues/{issue} for data export issue. |-| statement | [string](#string) | | The SQL statement to execute. |-| limit | [int32](#int32) | | The maximum number of rows to return. |-| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The export format. |-| admin | [bool](#bool) | | The admin is used for workspace owner and DBA for exporting data from SQL Editor Admin mode. The exported data is not masked. |-| password | [string](#string) | | The zip password provide by users. |-| data_source_id | [string](#string) | | The id of data source. It is used for querying admin data source even if the instance has read-only data sources. Or it can be used to query a specific read-only data source. |+| type | [TaskRunLogEntry.Type](#bytebase-v1-TaskRunLogEntry-Type) | | |+| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| deploy_id | [string](#string) | | |+| schema_dump | [TaskRunLogEntry.SchemaDump](#bytebase-v1-TaskRunLogEntry-SchemaDump) | | |+| command_execute | [TaskRunLogEntry.CommandExecute](#bytebase-v1-TaskRunLogEntry-CommandExecute) | | |+| database_sync | [TaskRunLogEntry.DatabaseSync](#bytebase-v1-TaskRunLogEntry-DatabaseSync) | | |+| task_run_status_update | [TaskRunLogEntry.TaskRunStatusUpdate](#bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate) | | |+| transaction_control | [TaskRunLogEntry.TransactionControl](#bytebase-v1-TaskRunLogEntry-TransactionControl) | | |+| prior_backup | [TaskRunLogEntry.PriorBackup](#bytebase-v1-TaskRunLogEntry-PriorBackup) | | |-<a name="bytebase-v1-ExportResponse"></a>+<a name="bytebase-v1-TaskRunLogEntry-CommandExecute"></a>-### ExportResponse+### TaskRunLogEntry.CommandExecute| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| content | [bytes](#bytes) | | The export file content. |+| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| command_indexes | [int32](#int32) | repeated | The indexes of the executed commands. |+| response | [TaskRunLogEntry.CommandExecute.CommandResponse](#bytebase-v1-TaskRunLogEntry-CommandExecute-CommandResponse) | | |-<a name="bytebase-v1-GenerateRestoreSQLRequest"></a>+<a name="bytebase-v1-TaskRunLogEntry-CommandExecute-CommandResponse"></a>-### GenerateRestoreSQLRequest+### TaskRunLogEntry.CommandExecute.CommandResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The database name to execute the query against. Format: instances/{instance}/databases/{databaseName} |-| sheet | [string](#string) | | The resource name of the sheet. It is used to get the original statement. Format: projects/{project}/sheets/{sheet} |-| backup_data_source | [string](#string) | | The data source to restore from. Format: instances/{instance}/databases/{databaseName}, for general engines. Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG only. |-| backup_table | [string](#string) | | The backup table name. |+| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| error | [string](#string) | | |+| affected_rows | [int32](#int32) | | |+| all_affected_rows | [int32](#int32) | repeated | `all_affected_rows` is the affected rows of each command. `all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. |-<a name="bytebase-v1-GenerateRestoreSQLResponse"></a>+<a name="bytebase-v1-TaskRunLogEntry-DatabaseSync"></a>-### GenerateRestoreSQLResponse+### TaskRunLogEntry.DatabaseSync| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| statement | [string](#string) | | The restore SQL statement. |+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| error | [string](#string) | | |-<a name="bytebase-v1-ParseMyBatisMapperRequest"></a>+<a name="bytebase-v1-TaskRunLogEntry-PriorBackup"></a>-### ParseMyBatisMapperRequest+### TaskRunLogEntry.PriorBackup| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| content | [bytes](#bytes) | | |+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| prior_backup_detail | [TaskRun.PriorBackupDetail](#bytebase-v1-TaskRun-PriorBackupDetail) | | |+| error | [string](#string) | | |-<a name="bytebase-v1-ParseMyBatisMapperResponse"></a>+<a name="bytebase-v1-TaskRunLogEntry-SchemaDump"></a>-### ParseMyBatisMapperResponse+### TaskRunLogEntry.SchemaDump| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| statements | [string](#string) | repeated | |+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| error | [string](#string) | | |-<a name="bytebase-v1-PrettyRequest"></a>+<a name="bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate"></a>-### PrettyRequest+### TaskRunLogEntry.TaskRunStatusUpdate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| engine | [Engine](#bytebase-v1-Engine) | | |-| current_schema | [string](#string) | | The SDL format SQL schema information that was dumped from a database engine. This information will be sorted to match the order of statements in the userSchema. |-| expected_schema | [string](#string) | | The expected SDL schema. This schema will be checked for correctness and normalized. |+| status | [TaskRunLogEntry.TaskRunStatusUpdate.Status](#bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate-Status) | | |-<a name="bytebase-v1-PrettyResponse"></a>+<a name="bytebase-v1-TaskRunLogEntry-TransactionControl"></a>-### PrettyResponse+### TaskRunLogEntry.TransactionControl| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| current_schema | [string](#string) | | The pretty-formatted version of current schema. |-| expected_schema | [string](#string) | | The expected SDL schema after normalizing. |+| type | [TaskRunLogEntry.TransactionControl.Type](#bytebase-v1-TaskRunLogEntry-TransactionControl-Type) | | |+| error | [string](#string) | | |-<a name="bytebase-v1-QueryHistory"></a>+<a name="bytebase-v1-TaskRunSession"></a>-### QueryHistory+### TaskRunSession| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name for the query history. Format: queryHistories/{uid} |-| database | [string](#string) | | The database name to execute the query. Format: instances/{instance}/databases/{databaseName} |-| creator | [string](#string) | | |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| statement | [string](#string) | | |-| error | [string](#string) | optional | |-| duration | [google.protobuf.Duration](#google-protobuf-Duration) | | |-| type | [QueryHistory.Type](#bytebase-v1-QueryHistory-Type) | | |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session |+| postgres | [TaskRunSession.Postgres](#bytebase-v1-TaskRunSession-Postgres) | | |-<a name="bytebase-v1-QueryOption"></a>+<a name="bytebase-v1-TaskRunSession-Postgres"></a>-### QueryOption+### TaskRunSession.Postgres| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| redis_run_commands_on | [QueryOption.RedisRunCommandsOn](#bytebase-v1-QueryOption-RedisRunCommandsOn) | | |-+| session | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | | `session` is the session of the task run executing commands. |+| blocking_sessions | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | repeated | `blocking_sessions` block `session`. |+| blocked_sessions | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | repeated | `blocked_sessions` are blocked by `session`. |-<a name="bytebase-v1-QueryRequest"></a>-### QueryRequest+<a name="bytebase-v1-TaskRunSession-Postgres-Session"></a>+### TaskRunSession.Postgres.Session+Read from `pg_stat_activity`| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the instance name to execute the query against. Format: instances/{instance}/databases/{databaseName} |-| statement | [string](#string) | | The SQL statement to execute. |-| limit | [int32](#int32) | | The maximum number of rows to return. |-| timeout | [google.protobuf.Duration](#google-protobuf-Duration) | optional | The timeout for the request. |-| data_source_id | [string](#string) | | The id of data source. It is used for querying admin data source even if the instance has read-only data sources. Or it can be used to query a specific read-only data source. |-| explain | [bool](#bool) | | Explain the statement. |-| schema | [string](#string) | optional | The default schema to search objects. Equals to the current schema in Oracle and search path in Postgres. |-| query_option | [QueryOption](#bytebase-v1-QueryOption) | | |+| pid | [string](#string) | | |+| blocked_by_pids | [string](#string) | repeated | |+| query | [string](#string) | | |+| state | [string](#string) | optional | |+| wait_event_type | [string](#string) | optional | |+| wait_event | [string](#string) | optional | |+| datname | [string](#string) | optional | |+| usename | [string](#string) | optional | |+| application_name | [string](#string) | | |+| client_addr | [string](#string) | optional | |+| client_port | [string](#string) | optional | |+| backend_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| xact_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |+| query_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |+-<a name="bytebase-v1-QueryResponse"></a>-### QueryResponse+<a name="bytebase-v1-Task-Status"></a>+### Task.Status-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| results | [QueryResult](#bytebase-v1-QueryResult) | repeated | The query results. |-| allow_export | [bool](#bool) | | The query is allowed to be exported or not. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| NOT_STARTED | 1 | |+| PENDING | 2 | |+| RUNNING | 3 | |+| DONE | 4 | |+| FAILED | 5 | |+| CANCELED | 6 | |+| SKIPPED | 7 | |+<a name="bytebase-v1-Task-Type"></a>++### Task.Type+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| GENERAL | 1 | |+| DATABASE_CREATE | 2 | use payload DatabaseCreate |+| DATABASE_SCHEMA_BASELINE | 3 | use payload DatabaseSchemaBaseline |+| DATABASE_SCHEMA_UPDATE | 4 | use payload DatabaseSchemaUpdate |+| DATABASE_SCHEMA_UPDATE_SDL | 5 | use payload DatabaseSchemaUpdate |+| DATABASE_SCHEMA_UPDATE_GHOST_SYNC | 6 | use payload DatabaseSchemaUpdate |+| DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER | 7 | use payload nil |+| DATABASE_DATA_UPDATE | 8 | use payload DatabaseDataUpdate |+| DATABASE_DATA_EXPORT | 12 | use payload DatabaseDataExport |-<a name="bytebase-v1-QueryResult"></a>-### QueryResult+<a name="bytebase-v1-TaskRun-ExportArchiveStatus"></a>+### TaskRun.ExportArchiveStatus-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| column_names | [string](#string) | repeated | Column names of the query result. |-| column_type_names | [string](#string) | repeated | Column types of the query result. The types come from the Golang SQL driver. |-| rows | [QueryRow](#bytebase-v1-QueryRow) | repeated | Rows of the query result. |-| masked | [bool](#bool) | repeated | Columns are masked or not. |-| sensitive | [bool](#bool) | repeated | Columns are sensitive or not. |-| error | [string](#string) | | The error message if the query failed. |-| latency | [google.protobuf.Duration](#google-protobuf-Duration) | | The time it takes to execute the query. |-| statement | [string](#string) | | The query statement for the result. |-| postgres_error | [QueryResult.PostgresError](#bytebase-v1-QueryResult-PostgresError) | | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| EXPORT_ARCHIVE_STATUS_UNSPECIFIED | 0 | |+| READY | 1 | |+| EXPORTED | 2 | |+<a name="bytebase-v1-TaskRun-Status"></a>+### TaskRun.Status-<a name="bytebase-v1-QueryResult-PostgresError"></a>-### QueryResult.PostgresError-refer https://www.postgresql.org/docs/11/protocol-error-fields.html-for field description.+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| RUNNING | 2 | |+| DONE | 3 | |+| FAILED | 4 | |+| CANCELED | 5 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| severity | [string](#string) | | |-| code | [string](#string) | | |-| message | [string](#string) | | |-| detail | [string](#string) | | |-| hint | [string](#string) | | |-| position | [int32](#int32) | | |-| internal_position | [int32](#int32) | | |-| internal_query | [string](#string) | | |-| where | [string](#string) | | |-| schema_name | [string](#string) | | |-| table_name | [string](#string) | | |-| column_name | [string](#string) | | |-| data_type_name | [string](#string) | | |-| constraint_name | [string](#string) | | |-| file | [string](#string) | | |-| line | [int32](#int32) | | |-| routine | [string](#string) | | |+<a name="bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate-Status"></a>+### TaskRunLogEntry.TaskRunStatusUpdate.Status+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| RUNNING_WAITING | 1 | the task run is ready to be executed by the scheduler |+| RUNNING_RUNNING | 2 | the task run is being executed by the scheduler |-<a name="bytebase-v1-QueryRow"></a>-### QueryRow+<a name="bytebase-v1-TaskRunLogEntry-TransactionControl-Type"></a>+### TaskRunLogEntry.TransactionControl.Type-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| values | [RowValue](#bytebase-v1-RowValue) | repeated | Row values of the query result. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| BEGIN | 1 | |+| COMMIT | 2 | |+| ROLLBACK | 3 | |+<a name="bytebase-v1-TaskRunLogEntry-Type"></a>+### TaskRunLogEntry.Type-<a name="bytebase-v1-RowValue"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| SCHEMA_DUMP | 1 | |+| COMMAND_EXECUTE | 2 | |+| DATABASE_SYNC | 3 | |+| TASK_RUN_STATUS_UPDATE | 4 | |+| TRANSACTION_CONTROL | 5 | |+| PRIOR_BACKUP | 6 | |-### RowValue+++++++<a name="bytebase-v1-RolloutService"></a>++### RolloutService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetRollout | [GetRolloutRequest](#bytebase-v1-GetRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |+| ListRollouts | [ListRolloutsRequest](#bytebase-v1-ListRolloutsRequest) | [ListRolloutsResponse](#bytebase-v1-ListRolloutsResponse) | |+| CreateRollout | [CreateRolloutRequest](#bytebase-v1-CreateRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |+| PreviewRollout | [PreviewRolloutRequest](#bytebase-v1-PreviewRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |+| ListTaskRuns | [ListTaskRunsRequest](#bytebase-v1-ListTaskRunsRequest) | [ListTaskRunsResponse](#bytebase-v1-ListTaskRunsResponse) | |+| GetTaskRun | [GetTaskRunRequest](#bytebase-v1-GetTaskRunRequest) | [TaskRun](#bytebase-v1-TaskRun) | |+| GetTaskRunLog | [GetTaskRunLogRequest](#bytebase-v1-GetTaskRunLogRequest) | [TaskRunLog](#bytebase-v1-TaskRunLog) | |+| GetTaskRunSession | [GetTaskRunSessionRequest](#bytebase-v1-GetTaskRunSessionRequest) | [TaskRunSession](#bytebase-v1-TaskRunSession) | |+| BatchRunTasks | [BatchRunTasksRequest](#bytebase-v1-BatchRunTasksRequest) | [BatchRunTasksResponse](#bytebase-v1-BatchRunTasksResponse) | BatchRunTasks creates task runs for the specified tasks. DataExport issue only allows the creator to run the task. Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA. Follow role-based rollout policy for the environment. |+| BatchSkipTasks | [BatchSkipTasksRequest](#bytebase-v1-BatchSkipTasksRequest) | [BatchSkipTasksResponse](#bytebase-v1-BatchSkipTasksResponse) | BatchSkipTasks skips the specified tasks. The access is the same as BatchRunTasks(). |+| BatchCancelTaskRuns | [BatchCancelTaskRunsRequest](#bytebase-v1-BatchCancelTaskRunsRequest) | [BatchCancelTaskRunsResponse](#bytebase-v1-BatchCancelTaskRunsResponse) | BatchSkipTasks cancels the specified task runs in batch. The access is the same as BatchRunTasks(). |+| PreviewTaskRunRollback | [PreviewTaskRunRollbackRequest](#bytebase-v1-PreviewTaskRunRollbackRequest) | [PreviewTaskRunRollbackResponse](#bytebase-v1-PreviewTaskRunRollbackResponse) | |++++++<a name="v1_sheet_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/sheet_service.proto++++<a name="bytebase-v1-BatchCreateSheetRequest"></a>++### BatchCreateSheetRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| null_value | [google.protobuf.NullValue](#google-protobuf-NullValue) | | |-| bool_value | [bool](#bool) | | |-| bytes_value | [bytes](#bytes) | | |-| double_value | [double](#double) | | |-| float_value | [float](#float) | | |-| int32_value | [int32](#int32) | | |-| int64_value | [int64](#int64) | | |-| string_value | [string](#string) | | |-| uint32_value | [uint32](#uint32) | | |-| uint64_value | [uint64](#uint64) | | |-| value_value | [google.protobuf.Value](#google-protobuf-Value) | | value_value is used for Spanner and TUPLE ARRAY MAP in Clickhouse only. |-| timestamp_value | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | timestamp_value is used for the timestamp without time zone data type, meaning it only includes the timestamp without any time zone or location info. Although it may be expressed as a UTC value, it should be seen as a timestamp missing location context. |-| timestamp_tz_value | [RowValue.TimestampTZ](#bytebase-v1-RowValue-TimestampTZ) | | timestamp_tz_value is used for the timestamptz data type, which accurately represents the timestamp with location information. |+| parent | [string](#string) | | The parent resource where all sheets will be created. Format: projects/{project} |+| requests | [CreateSheetRequest](#bytebase-v1-CreateSheetRequest) | repeated | |-<a name="bytebase-v1-RowValue-TimestampTZ"></a>+<a name="bytebase-v1-BatchCreateSheetResponse"></a>-### RowValue.TimestampTZ+### BatchCreateSheetResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| timestamp | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| zone | [string](#string) | | Zone is the time zone abbreviations in timezone database such as "PDT", "PST". https://en.wikipedia.org/wiki/List_of_tz_database_time_zones We retrieve the time zone information from the timestamptz field in the database. A timestamp is in UTC or epoch time, and with zone info, we can convert it to a local time string. Zone and offset are returned by time.Time.Zone() |-| offset | [int32](#int32) | | The offset is in seconds east of UTC |+| sheets | [Sheet](#bytebase-v1-Sheet) | repeated | |-<a name="bytebase-v1-SearchQueryHistoriesRequest"></a>+<a name="bytebase-v1-CreateSheetRequest"></a>-### SearchQueryHistoriesRequest+### CreateSheetRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of histories to return. The service may return fewer than this value. If unspecified, at most 10 history entries will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListQueryHistory` call. Provide this to retrieve the subsequent page. |-| filter | [string](#string) | | filter is the filter to apply on the search query history, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Support filter by: - database, for example: database = "instances/{instance}/databases/{database}" - instance, for example: instance = "instance/{instance}" - type, for example: type = "QUERY" |+| parent | [string](#string) | | The parent resource where this sheet will be created. Format: projects/{project} |+| sheet | [Sheet](#bytebase-v1-Sheet) | | The sheet to create. |-<a name="bytebase-v1-SearchQueryHistoriesResponse"></a>+<a name="bytebase-v1-GetSheetRequest"></a>-### SearchQueryHistoriesResponse+### GetSheetRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| query_histories | [QueryHistory](#bytebase-v1-QueryHistory) | repeated | The list of history. |-| next_page_token | [string](#string) | | A token to retrieve next page of history. Pass this value in the page_token field in the subsequent call to `ListQueryHistory` method to retrieve the next page of history. |+| name | [string](#string) | | The name of the sheet to retrieve. Format: projects/{project}/sheets/{sheet} |+| raw | [bool](#bool) | | By default, the content of the sheet is cut off, set the `raw` to true to retrieve the full content. |-<a name="bytebase-v1-StringifyMetadataRequest"></a>+<a name="bytebase-v1-Sheet"></a>-### StringifyMetadataRequest+### Sheet| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | |-| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema string. |-| classification_from_config | [bool](#bool) | | If false, we will build the raw common by classification in database config. |+| name | [string](#string) | | The name of the sheet resource, generated by the server. Canonical parent is project. Format: projects/{project}/sheets/{sheet} |+| title | [string](#string) | | The title of the sheet. |+| creator | [string](#string) | | The creator of the Sheet. Format: users/{email} |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The create time of the sheet. |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The last update time of the sheet. |+| content | [bytes](#bytes) | | The content of the sheet. By default, it will be cut off, if it doesn't match the `content_size`, you can set the `raw` to true in GetSheet request to retrieve the full content. |+| content_size | [int64](#int64) | | content_size is the full size of the content, may not match the size of the `content` field. |+| payload | [SheetPayload](#bytebase-v1-SheetPayload) | | |+| engine | [Engine](#bytebase-v1-Engine) | | The SQL dialect. |-<a name="bytebase-v1-StringifyMetadataResponse"></a>+<a name="bytebase-v1-SheetCommand"></a>-### StringifyMetadataResponse+### SheetCommand| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | |+| start | [int32](#int32) | | |+| end | [int32](#int32) | | |-+<a name="bytebase-v1-SheetPayload"></a>-<a name="bytebase-v1-Advice-Status"></a>+### SheetPayload-### Advice.Status-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | Unspecified. |-| SUCCESS | 1 | |-| WARNING | 2 | |-| ERROR | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| type | [SheetPayload.Type](#bytebase-v1-SheetPayload-Type) | | |+| database_config | [DatabaseConfig](#bytebase-v1-DatabaseConfig) | | The snapshot of the database config when creating the sheet, be used to compare with the baseline_database_config and apply the diff to the database. |+| baseline_database_config | [DatabaseConfig](#bytebase-v1-DatabaseConfig) | | The snapshot of the baseline database config when creating the sheet. |+| commands | [SheetCommand](#bytebase-v1-SheetCommand) | repeated | The start and end position of each command in the sheet statement. |-<a name="bytebase-v1-CheckRequest-ChangeType"></a>-### CheckRequest.ChangeType-| Name | Number | Description |-| ---- | ------ | ----------- |-| CHANGE_TYPE_UNSPECIFIED | 0 | |-| DDL | 1 | |-| DDL_GHOST | 2 | |-| DML | 3 | |-| SQL_EDITOR | 4 | |+<a name="bytebase-v1-UpdateSheetRequest"></a>+### UpdateSheetRequest-<a name="bytebase-v1-QueryHistory-Type"></a>-### QueryHistory.Type+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| sheet | [Sheet](#bytebase-v1-Sheet) | | The sheet to update.+The sheet's `name` field is used to identify the sheet to update. Format: projects/{project}/sheets/{sheet} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. Fields are specified relative to the sheet. (e.g. `title`, `statement`; *not* `sheet.title` or `sheet.statement`) Only support update the following fields for now: - `title` - `statement` |-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| QUERY | 1 | |-| EXPORT | 2 | |-<a name="bytebase-v1-QueryOption-RedisRunCommandsOn"></a>-### QueryOption.RedisRunCommandsOn+++<a name="bytebase-v1-SheetPayload-Type"></a>++### SheetPayload.Type+Type of the SheetPayload.| Name | Number | Description || ---- | ------ | ----------- |-| REDIS_RUN_COMMANDS_ON_UNSPECIFIED | 0 | UNSPECIFIED defaults to SINGLE_NODE. |-| SINGLE_NODE | 1 | |-| ALL_NODES | 2 | |+| TYPE_UNSPECIFIED | 0 | |+| SCHEMA_DESIGN | 1 | |@@ -11450,22 +11507,17 @@ for field description.-<a name="bytebase-v1-SQLService"></a>+<a name="bytebase-v1-SheetService"></a>-### SQLService+### SheetService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| Query | [QueryRequest](#bytebase-v1-QueryRequest) | [QueryResponse](#bytebase-v1-QueryResponse) | |-| AdminExecute | [AdminExecuteRequest](#bytebase-v1-AdminExecuteRequest) stream | [AdminExecuteResponse](#bytebase-v1-AdminExecuteResponse) stream | |-| SearchQueryHistories | [SearchQueryHistoriesRequest](#bytebase-v1-SearchQueryHistoriesRequest) | [SearchQueryHistoriesResponse](#bytebase-v1-SearchQueryHistoriesResponse) | SearchQueryHistories searches query histories for the caller. |-| Export | [ExportRequest](#bytebase-v1-ExportRequest) | [ExportResponse](#bytebase-v1-ExportResponse) | |-| Check | [CheckRequest](#bytebase-v1-CheckRequest) | [CheckResponse](#bytebase-v1-CheckResponse) | |-| ParseMyBatisMapper | [ParseMyBatisMapperRequest](#bytebase-v1-ParseMyBatisMapperRequest) | [ParseMyBatisMapperResponse](#bytebase-v1-ParseMyBatisMapperResponse) | |-| Pretty | [PrettyRequest](#bytebase-v1-PrettyRequest) | [PrettyResponse](#bytebase-v1-PrettyResponse) | |-| StringifyMetadata | [StringifyMetadataRequest](#bytebase-v1-StringifyMetadataRequest) | [StringifyMetadataResponse](#bytebase-v1-StringifyMetadataResponse) | |-| GenerateRestoreSQL | [GenerateRestoreSQLRequest](#bytebase-v1-GenerateRestoreSQLRequest) | [GenerateRestoreSQLResponse](#bytebase-v1-GenerateRestoreSQLResponse) | Deprecated. |+| CreateSheet | [CreateSheetRequest](#bytebase-v1-CreateSheetRequest) | [Sheet](#bytebase-v1-Sheet) | |+| BatchCreateSheet | [BatchCreateSheetRequest](#bytebase-v1-BatchCreateSheetRequest) | [BatchCreateSheetResponse](#bytebase-v1-BatchCreateSheetResponse) | |+| GetSheet | [GetSheetRequest](#bytebase-v1-GetSheetRequest) | [Sheet](#bytebase-v1-Sheet) | |+| UpdateSheet | [UpdateSheetRequest](#bytebase-v1-UpdateSheetRequest) | [Sheet](#bytebase-v1-Sheet) | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex bb9045bb80..2a111bf3ca 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -2299,10 +2299,157 @@</li>+ <li>+ <a href="#v1%2fsql_service.proto">v1/sql_service.proto</a>+ <ul>++ <li>+ <a href="#bytebase.v1.AdminExecuteRequest"><span class="badge">M</span>AdminExecuteRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.AdminExecuteResponse"><span class="badge">M</span>AdminExecuteResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.Advice"><span class="badge">M</span>Advice</a>+ </li>++ <li>+ <a href="#bytebase.v1.CheckRequest"><span class="badge">M</span>CheckRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.CheckResponse"><span class="badge">M</span>CheckResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExportRequest"><span class="badge">M</span>ExportRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExportResponse"><span class="badge">M</span>ExportResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.GenerateRestoreSQLRequest"><span class="badge">M</span>GenerateRestoreSQLRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.GenerateRestoreSQLResponse"><span class="badge">M</span>GenerateRestoreSQLResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.ParseMyBatisMapperRequest"><span class="badge">M</span>ParseMyBatisMapperRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ParseMyBatisMapperResponse"><span class="badge">M</span>ParseMyBatisMapperResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.PrettyRequest"><span class="badge">M</span>PrettyRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.PrettyResponse"><span class="badge">M</span>PrettyResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryHistory"><span class="badge">M</span>QueryHistory</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryOption"><span class="badge">M</span>QueryOption</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryRequest"><span class="badge">M</span>QueryRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryResponse"><span class="badge">M</span>QueryResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryResult"><span class="badge">M</span>QueryResult</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryResult.PostgresError"><span class="badge">M</span>QueryResult.PostgresError</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryRow"><span class="badge">M</span>QueryRow</a>+ </li>++ <li>+ <a href="#bytebase.v1.RowValue"><span class="badge">M</span>RowValue</a>+ </li>++ <li>+ <a href="#bytebase.v1.RowValue.TimestampTZ"><span class="badge">M</span>RowValue.TimestampTZ</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchQueryHistoriesRequest"><span class="badge">M</span>SearchQueryHistoriesRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchQueryHistoriesResponse"><span class="badge">M</span>SearchQueryHistoriesResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.StringifyMetadataRequest"><span class="badge">M</span>StringifyMetadataRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.StringifyMetadataResponse"><span class="badge">M</span>StringifyMetadataResponse</a>+ </li>+++ <li>+ <a href="#bytebase.v1.Advice.Status"><span class="badge">E</span>Advice.Status</a>+ </li>++ <li>+ <a href="#bytebase.v1.CheckRequest.ChangeType"><span class="badge">E</span>CheckRequest.ChangeType</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryHistory.Type"><span class="badge">E</span>QueryHistory.Type</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryOption.RedisRunCommandsOn"><span class="badge">E</span>QueryOption.RedisRunCommandsOn</a>+ </li>++++ <li>+ <a href="#bytebase.v1.SQLService"><span class="badge">S</span>SQLService</a>+ </li>++ </ul>+ </li>++<li><a href="#v1%2frelease_service.proto">v1/release_service.proto</a><ul>+ <li>+ <a href="#bytebase.v1.CheckReleaseRequest"><span class="badge">M</span>CheckReleaseRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.CheckReleaseResponse"><span class="badge">M</span>CheckReleaseResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.CheckReleaseResponse.CheckResult"><span class="badge">M</span>CheckReleaseResponse.CheckResult</a>+ </li>+<li><a href="#bytebase.v1.CreateReleaseRequest"><span class="badge">M</span>CreateReleaseRequest</a></li>@@ -2762,134 +2909,160 @@<li>- <a href="#v1%2fsql_service.proto">v1/sql_service.proto</a>+ <a href="#v1%2fvcs_connector_service.proto">v1/vcs_connector_service.proto</a><ul><li>- <a href="#bytebase.v1.AdminExecuteRequest"><span class="badge">M</span>AdminExecuteRequest</a>+ <a href="#bytebase.v1.CreateVCSConnectorRequest"><span class="badge">M</span>CreateVCSConnectorRequest</a></li><li>- <a href="#bytebase.v1.AdminExecuteResponse"><span class="badge">M</span>AdminExecuteResponse</a>+ <a href="#bytebase.v1.DeleteVCSConnectorRequest"><span class="badge">M</span>DeleteVCSConnectorRequest</a></li><li>- <a href="#bytebase.v1.Advice"><span class="badge">M</span>Advice</a>+ <a href="#bytebase.v1.GetVCSConnectorRequest"><span class="badge">M</span>GetVCSConnectorRequest</a></li><li>- <a href="#bytebase.v1.CheckRequest"><span class="badge">M</span>CheckRequest</a>+ <a href="#bytebase.v1.ListVCSConnectorsRequest"><span class="badge">M</span>ListVCSConnectorsRequest</a></li><li>- <a href="#bytebase.v1.CheckResponse"><span class="badge">M</span>CheckResponse</a>+ <a href="#bytebase.v1.ListVCSConnectorsResponse"><span class="badge">M</span>ListVCSConnectorsResponse</a></li><li>- <a href="#bytebase.v1.ExportRequest"><span class="badge">M</span>ExportRequest</a>+ <a href="#bytebase.v1.UpdateVCSConnectorRequest"><span class="badge">M</span>UpdateVCSConnectorRequest</a></li><li>- <a href="#bytebase.v1.ExportResponse"><span class="badge">M</span>ExportResponse</a>+ <a href="#bytebase.v1.VCSConnector"><span class="badge">M</span>VCSConnector</a></li>+++<li>- <a href="#bytebase.v1.GenerateRestoreSQLRequest"><span class="badge">M</span>GenerateRestoreSQLRequest</a>+ <a href="#bytebase.v1.VCSConnectorService"><span class="badge">S</span>VCSConnectorService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fvcs_provider_service.proto">v1/vcs_provider_service.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.GenerateRestoreSQLResponse"><span class="badge">M</span>GenerateRestoreSQLResponse</a>+ <a href="#bytebase.v1.CreateVCSProviderRequest"><span class="badge">M</span>CreateVCSProviderRequest</a></li><li>- <a href="#bytebase.v1.ParseMyBatisMapperRequest"><span class="badge">M</span>ParseMyBatisMapperRequest</a>+ <a href="#bytebase.v1.DeleteVCSProviderRequest"><span class="badge">M</span>DeleteVCSProviderRequest</a></li><li>- <a href="#bytebase.v1.ParseMyBatisMapperResponse"><span class="badge">M</span>ParseMyBatisMapperResponse</a>+ <a href="#bytebase.v1.GetVCSProviderRequest"><span class="badge">M</span>GetVCSProviderRequest</a></li><li>- <a href="#bytebase.v1.PrettyRequest"><span class="badge">M</span>PrettyRequest</a>+ <a href="#bytebase.v1.ListVCSConnectorsInProviderRequest"><span class="badge">M</span>ListVCSConnectorsInProviderRequest</a></li><li>- <a href="#bytebase.v1.PrettyResponse"><span class="badge">M</span>PrettyResponse</a>+ <a href="#bytebase.v1.ListVCSConnectorsInProviderResponse"><span class="badge">M</span>ListVCSConnectorsInProviderResponse</a></li><li>- <a href="#bytebase.v1.QueryHistory"><span class="badge">M</span>QueryHistory</a>+ <a href="#bytebase.v1.ListVCSProvidersRequest"><span class="badge">M</span>ListVCSProvidersRequest</a></li><li>- <a href="#bytebase.v1.QueryOption"><span class="badge">M</span>QueryOption</a>+ <a href="#bytebase.v1.ListVCSProvidersResponse"><span class="badge">M</span>ListVCSProvidersResponse</a></li><li>- <a href="#bytebase.v1.QueryRequest"><span class="badge">M</span>QueryRequest</a>+ <a href="#bytebase.v1.SearchVCSProviderRepositoriesRequest"><span class="badge">M</span>SearchVCSProviderRepositoriesRequest</a></li><li>- <a href="#bytebase.v1.QueryResponse"><span class="badge">M</span>QueryResponse</a>+ <a href="#bytebase.v1.SearchVCSProviderRepositoriesResponse"><span class="badge">M</span>SearchVCSProviderRepositoriesResponse</a></li><li>- <a href="#bytebase.v1.QueryResult"><span class="badge">M</span>QueryResult</a>+ <a href="#bytebase.v1.UpdateVCSProviderRequest"><span class="badge">M</span>UpdateVCSProviderRequest</a></li><li>- <a href="#bytebase.v1.QueryResult.PostgresError"><span class="badge">M</span>QueryResult.PostgresError</a>+ <a href="#bytebase.v1.VCSProvider"><span class="badge">M</span>VCSProvider</a></li><li>- <a href="#bytebase.v1.QueryRow"><span class="badge">M</span>QueryRow</a>+ <a href="#bytebase.v1.VCSRepository"><span class="badge">M</span>VCSRepository</a></li>+++<li>- <a href="#bytebase.v1.RowValue"><span class="badge">M</span>RowValue</a>+ <a href="#bytebase.v1.VCSProviderService"><span class="badge">S</span>VCSProviderService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fworksheet_service.proto">v1/worksheet_service.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.RowValue.TimestampTZ"><span class="badge">M</span>RowValue.TimestampTZ</a>+ <a href="#bytebase.v1.CreateWorksheetRequest"><span class="badge">M</span>CreateWorksheetRequest</a></li><li>- <a href="#bytebase.v1.SearchQueryHistoriesRequest"><span class="badge">M</span>SearchQueryHistoriesRequest</a>+ <a href="#bytebase.v1.DeleteWorksheetRequest"><span class="badge">M</span>DeleteWorksheetRequest</a></li><li>- <a href="#bytebase.v1.SearchQueryHistoriesResponse"><span class="badge">M</span>SearchQueryHistoriesResponse</a>+ <a href="#bytebase.v1.GetWorksheetRequest"><span class="badge">M</span>GetWorksheetRequest</a></li><li>- <a href="#bytebase.v1.StringifyMetadataRequest"><span class="badge">M</span>StringifyMetadataRequest</a>+ <a href="#bytebase.v1.SearchWorksheetsRequest"><span class="badge">M</span>SearchWorksheetsRequest</a></li><li>- <a href="#bytebase.v1.StringifyMetadataResponse"><span class="badge">M</span>StringifyMetadataResponse</a>+ <a href="#bytebase.v1.SearchWorksheetsResponse"><span class="badge">M</span>SearchWorksheetsResponse</a></li>+ <li>+ <a href="#bytebase.v1.UpdateWorksheetOrganizerRequest"><span class="badge">M</span>UpdateWorksheetOrganizerRequest</a>+ </li><li>- <a href="#bytebase.v1.Advice.Status"><span class="badge">E</span>Advice.Status</a>+ <a href="#bytebase.v1.UpdateWorksheetRequest"><span class="badge">M</span>UpdateWorksheetRequest</a></li><li>- <a href="#bytebase.v1.CheckRequest.ChangeType"><span class="badge">E</span>CheckRequest.ChangeType</a>+ <a href="#bytebase.v1.Worksheet"><span class="badge">M</span>Worksheet</a></li><li>- <a href="#bytebase.v1.QueryHistory.Type"><span class="badge">E</span>QueryHistory.Type</a>+ <a href="#bytebase.v1.WorksheetOrganizer"><span class="badge">M</span>WorksheetOrganizer</a></li>+<li>- <a href="#bytebase.v1.QueryOption.RedisRunCommandsOn"><span class="badge">E</span>QueryOption.RedisRunCommandsOn</a>+ <a href="#bytebase.v1.Worksheet.Visibility"><span class="badge">E</span>Worksheet.Visibility</a></li><li>- <a href="#bytebase.v1.SQLService"><span class="badge">S</span>SQLService</a>+ <a href="#bytebase.v1.WorksheetService"><span class="badge">S</span>WorksheetService</a></li></ul>@@ -2897,175 +3070,14 @@<li>- <a href="#v1%2fvcs_connector_service.proto">v1/vcs_connector_service.proto</a>+ <a href="#v1%2fworkspace_service.proto">v1/workspace_service.proto</a><ul>- <li>- <a href="#bytebase.v1.CreateVCSConnectorRequest"><span class="badge">M</span>CreateVCSConnectorRequest</a>- </li>-- <li>- <a href="#bytebase.v1.DeleteVCSConnectorRequest"><span class="badge">M</span>DeleteVCSConnectorRequest</a>- </li>-- <li>- <a href="#bytebase.v1.GetVCSConnectorRequest"><span class="badge">M</span>GetVCSConnectorRequest</a>- </li>- <li>- <a href="#bytebase.v1.ListVCSConnectorsRequest"><span class="badge">M</span>ListVCSConnectorsRequest</a>- </li>- <li>- <a href="#bytebase.v1.ListVCSConnectorsResponse"><span class="badge">M</span>ListVCSConnectorsResponse</a>- </li><li>- <a href="#bytebase.v1.UpdateVCSConnectorRequest"><span class="badge">M</span>UpdateVCSConnectorRequest</a>- </li>-- <li>- <a href="#bytebase.v1.VCSConnector"><span class="badge">M</span>VCSConnector</a>- </li>----- <li>- <a href="#bytebase.v1.VCSConnectorService"><span class="badge">S</span>VCSConnectorService</a>- </li>-- </ul>- </li>--- <li>- <a href="#v1%2fvcs_provider_service.proto">v1/vcs_provider_service.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.CreateVCSProviderRequest"><span class="badge">M</span>CreateVCSProviderRequest</a>- </li>-- <li>- <a href="#bytebase.v1.DeleteVCSProviderRequest"><span class="badge">M</span>DeleteVCSProviderRequest</a>- </li>-- <li>- <a href="#bytebase.v1.GetVCSProviderRequest"><span class="badge">M</span>GetVCSProviderRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListVCSConnectorsInProviderRequest"><span class="badge">M</span>ListVCSConnectorsInProviderRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListVCSConnectorsInProviderResponse"><span class="badge">M</span>ListVCSConnectorsInProviderResponse</a>- </li>-- <li>- <a href="#bytebase.v1.ListVCSProvidersRequest"><span class="badge">M</span>ListVCSProvidersRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListVCSProvidersResponse"><span class="badge">M</span>ListVCSProvidersResponse</a>- </li>-- <li>- <a href="#bytebase.v1.SearchVCSProviderRepositoriesRequest"><span class="badge">M</span>SearchVCSProviderRepositoriesRequest</a>- </li>-- <li>- <a href="#bytebase.v1.SearchVCSProviderRepositoriesResponse"><span class="badge">M</span>SearchVCSProviderRepositoriesResponse</a>- </li>-- <li>- <a href="#bytebase.v1.UpdateVCSProviderRequest"><span class="badge">M</span>UpdateVCSProviderRequest</a>- </li>-- <li>- <a href="#bytebase.v1.VCSProvider"><span class="badge">M</span>VCSProvider</a>- </li>-- <li>- <a href="#bytebase.v1.VCSRepository"><span class="badge">M</span>VCSRepository</a>- </li>----- <li>- <a href="#bytebase.v1.VCSProviderService"><span class="badge">S</span>VCSProviderService</a>- </li>-- </ul>- </li>--- <li>- <a href="#v1%2fworksheet_service.proto">v1/worksheet_service.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.CreateWorksheetRequest"><span class="badge">M</span>CreateWorksheetRequest</a>- </li>-- <li>- <a href="#bytebase.v1.DeleteWorksheetRequest"><span class="badge">M</span>DeleteWorksheetRequest</a>- </li>-- <li>- <a href="#bytebase.v1.GetWorksheetRequest"><span class="badge">M</span>GetWorksheetRequest</a>- </li>-- <li>- <a href="#bytebase.v1.SearchWorksheetsRequest"><span class="badge">M</span>SearchWorksheetsRequest</a>- </li>-- <li>- <a href="#bytebase.v1.SearchWorksheetsResponse"><span class="badge">M</span>SearchWorksheetsResponse</a>- </li>-- <li>- <a href="#bytebase.v1.UpdateWorksheetOrganizerRequest"><span class="badge">M</span>UpdateWorksheetOrganizerRequest</a>- </li>-- <li>- <a href="#bytebase.v1.UpdateWorksheetRequest"><span class="badge">M</span>UpdateWorksheetRequest</a>- </li>-- <li>- <a href="#bytebase.v1.Worksheet"><span class="badge">M</span>Worksheet</a>- </li>-- <li>- <a href="#bytebase.v1.WorksheetOrganizer"><span class="badge">M</span>WorksheetOrganizer</a>- </li>--- <li>- <a href="#bytebase.v1.Worksheet.Visibility"><span class="badge">E</span>Worksheet.Visibility</a>- </li>---- <li>- <a href="#bytebase.v1.WorksheetService"><span class="badge">S</span>WorksheetService</a>- </li>-- </ul>- </li>--- <li>- <a href="#v1%2fworkspace_service.proto">v1/workspace_service.proto</a>- <ul>----- <li>- <a href="#bytebase.v1.WorkspaceService"><span class="badge">S</span>WorkspaceService</a>+ <a href="#bytebase.v1.WorkspaceService"><span class="badge">S</span>WorkspaceService</a></li></ul>@@ -25554,12 +25566,12 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><div class="file-heading">- <h2 id="v1/release_service.proto">v1/release_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/sql_service.proto">v1/sql_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.CreateReleaseRequest">CreateReleaseRequest</h3>+ <h3 id="bytebase.v1.AdminExecuteRequest">AdminExecuteRequest</h3><p></p>@@ -25570,42 +25582,39 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project} </p></td>+ <td><p>The name is the instance name to execute the query against.+Format: instances/{instance}/databases/{databaseName} </p></td></tr><tr>- <td>release</td>- <td><a href="#bytebase.v1.Release">Release</a></td>+ <td>statement</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The release to create. </p></td>+ <td><p>The SQL statement to execute. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DeleteReleaseRequest">DeleteReleaseRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>limit</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of rows to return. </p></td>+ </tr><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>timeout</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>The name of the release to delete.-Format: projects/{project}/releases/{release} </p></td>+ <td><p>The timeout for the request. </p></td>+ </tr>++ <tr>+ <td>schema</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The default schema to execute the statement. Equals to the current schema in Oracle and search path in Postgres. </p></td></tr></tbody>@@ -25615,7 +25624,7 @@ Format: projects/{project}/releases/{release} </p></td>- <h3 id="bytebase.v1.GetReleaseRequest">GetReleaseRequest</h3>+ <h3 id="bytebase.v1.AdminExecuteResponse">AdminExecuteResponse</h3><p></p>@@ -25626,10 +25635,10 @@ Format: projects/{project}/releases/{release} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/releases/{release} </p></td>+ <td>results</td>+ <td><a href="#bytebase.v1.QueryResult">QueryResult</a></td>+ <td>repeated</td>+ <td><p>The query results. </p></td></tr></tbody>@@ -25639,7 +25648,7 @@ Format: projects/{project}/releases/{release} </p></td>- <h3 id="bytebase.v1.ListReleasesRequest">ListReleasesRequest</h3>+ <h3 id="bytebase.v1.Advice">Advice</h3><p></p>@@ -25650,70 +25659,67 @@ Format: projects/{project}/releases/{release} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.Advice.Status">Advice.Status</a></td><td></td>- <td><p>Format: projects/{project} </p></td>+ <td><p>The advice status. </p></td></tr><tr>- <td>page_size</td>+ <td>code</td><td><a href="#int32">int32</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The advice code. </p></td></tr><tr>- <td>page_token</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>Not used.-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. </p></td>+ <td><p>The advice title. </p></td></tr><tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>+ <td>content</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Show deleted releases if specified. </p></td>+ <td><p>The advice content. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListReleasesResponse">ListReleasesResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>line</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The advice line number in the SQL statement. </p></td>+ </tr><tr>- <td>releases</td>- <td><a href="#bytebase.v1.Release">Release</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>column</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The advice column number in the SQL statement. </p></td></tr><tr>- <td>next_page_token</td>+ <td>detail</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The advice detail. </p></td>+ </tr>++ <tr>+ <td>start_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td>+ <td></td>+ <td><p>1-based Position of the SQL statement.+To supersede `line` and `column` above. </p></td>+ </tr>++ <tr>+ <td>end_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -25723,7 +25729,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Release">Release</h3>+ <h3 id="bytebase.v1.CheckRequest">CheckRequest</h3><p></p>@@ -25737,48 +25743,53 @@ If this field is omitted, there are no subsequent pages. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/releases/{release} </p></td>+ <td><p>The database name to check against.+Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>title</td>+ <td>statement</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>files</td>- <td><a href="#bytebase.v1.Release.File">Release.File</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>vcs_source</td>- <td><a href="#bytebase.v1.Release.VCSSource">Release.VCSSource</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>+ <td>metadata</td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td><td></td>- <td><p>Format: users/[email protected] </p></td>+ <td><p>The database metadata to check against. It can be used to check against an uncommitted metadata.+If not provided, the database metadata will be fetched from the database. </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>change_type</td>+ <td><a href="#bytebase.v1.CheckRequest.ChangeType">CheckRequest.ChangeType</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.CheckResponse">CheckResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>- <td></td>+ <td>advices</td>+ <td><a href="#bytebase.v1.Advice">Advice</a></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -25789,7 +25800,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Release.File">Release.File</h3>+ <h3 id="bytebase.v1.ExportRequest">ExportRequest</h3><p></p>@@ -25800,60 +25811,81 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>id</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The unique identifier for the file. </p></td>+ <td><p>The name is the instance name to execute the query against.+Format: instances/{instance}/databases/{databaseName}+Format: projects/{project}/issues/{issue} for data export issue. </p></td></tr><tr>- <td>path</td>+ <td>statement</td><td><a href="#string">string</a></td><td></td>- <td><p>The path of the file. e.g. `2.2/V0001_create_table.sql`. </p></td>+ <td><p>The SQL statement to execute. </p></td></tr><tr>- <td>sheet</td>- <td><a href="#string">string</a></td>+ <td>limit</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The sheet that holds the content.-Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p>The maximum number of rows to return. </p></td></tr><tr>- <td>sheet_sha256</td>- <td><a href="#string">string</a></td>+ <td>format</td>+ <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td><td></td>- <td><p>The SHA256 hash value of the sheet. </p></td>+ <td><p>The export format. </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.ReleaseFileType">ReleaseFileType</a></td>+ <td>admin</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>The admin is used for workspace owner and DBA for exporting data from SQL Editor Admin mode.+The exported data is not masked. </p></td></tr><tr>- <td>version</td>+ <td>password</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The zip password provide by users. </p></td></tr><tr>- <td>statement</td>+ <td>data_source_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The statement is used for preview purpose. </p></td>+ <td><p>The id of data source.+It is used for querying admin data source even if the instance has read-only data sources.+Or it can be used to query a specific read-only data source. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ExportResponse">ExportResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>statement_size</td>- <td><a href="#int64">int64</a></td>+ <td>content</td>+ <td><a href="#bytes">bytes</a></td><td></td>- <td><p> </p></td>+ <td><p>The export file content. </p></td></tr></tbody>@@ -25863,7 +25895,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.Release.VCSSource">Release.VCSSource</h3>+ <h3 id="bytebase.v1.GenerateRestoreSQLRequest">GenerateRestoreSQLRequest</h3><p></p>@@ -25874,17 +25906,35 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>vcs_type</td>- <td><a href="#bytebase.v1.VCSType">VCSType</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The database name to execute the query against.+Format: instances/{instance}/databases/{databaseName} </p></td></tr><tr>- <td>pull_request_url</td>+ <td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The resource name of the sheet. It is used to get the original statement.+Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>backup_data_source</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The data source to restore from.+Format: instances/{instance}/databases/{databaseName}, for general engines.+Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG only. </p></td>+ </tr>++ <tr>+ <td>backup_table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The backup table name. </p></td></tr></tbody>@@ -25894,7 +25944,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.UndeleteReleaseRequest">UndeleteReleaseRequest</h3>+ <h3 id="bytebase.v1.GenerateRestoreSQLResponse">GenerateRestoreSQLResponse</h3><p></p>@@ -25905,11 +25955,10 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>name</td>+ <td>statement</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the deleted release.-Format: projects/{project}/releases/{release} </p></td>+ <td><p>The restore SQL statement. </p></td></tr></tbody>@@ -25919,7 +25968,7 @@ Format: projects/{project}/releases/{release} </p></td>- <h3 id="bytebase.v1.UpdateReleaseRequest">UpdateReleaseRequest</h3>+ <h3 id="bytebase.v1.ParseMyBatisMapperRequest">ParseMyBatisMapperRequest</h3><p></p>@@ -25930,17 +25979,34 @@ Format: projects/{project}/releases/{release} </p></td><tbody><tr>- <td>release</td>- <td><a href="#bytebase.v1.Release">Release</a></td>+ <td>content</td>+ <td><a href="#bytes">bytes</a></td><td></td>- <td><p>The release to update. </p></td>+ <td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ParseMyBatisMapperResponse">ParseMyBatisMapperResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to be updated. </p></td>+ <td>statements</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -25950,176 +26016,46 @@ Format: projects/{project}/releases/{release} </p></td>+ <h3 id="bytebase.v1.PrettyRequest">PrettyRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>current_schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The SDL format SQL schema information that was dumped from a database engine.+This information will be sorted to match the order of statements in the userSchema. </p></td>+ </tr>++ <tr>+ <td>expected_schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The expected SDL schema. This schema will be checked for correctness and normalized. </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.ReleaseFileType">ReleaseFileType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>VERSIONED</td>- <td>1</td>- <td><p></p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ReleaseService">ReleaseService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetRelease</td>- <td><a href="#bytebase.v1.GetReleaseRequest">GetReleaseRequest</a></td>- <td><a href="#bytebase.v1.Release">Release</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListReleases</td>- <td><a href="#bytebase.v1.ListReleasesRequest">ListReleasesRequest</a></td>- <td><a href="#bytebase.v1.ListReleasesResponse">ListReleasesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateRelease</td>- <td><a href="#bytebase.v1.CreateReleaseRequest">CreateReleaseRequest</a></td>- <td><a href="#bytebase.v1.Release">Release</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateRelease</td>- <td><a href="#bytebase.v1.UpdateReleaseRequest">UpdateReleaseRequest</a></td>- <td><a href="#bytebase.v1.Release">Release</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteRelease</td>- <td><a href="#bytebase.v1.DeleteReleaseRequest">DeleteReleaseRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UndeleteRelease</td>- <td><a href="#bytebase.v1.UndeleteReleaseRequest">UndeleteReleaseRequest</a></td>- <td><a href="#bytebase.v1.Release">Release</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>- </thead>- <tbody>---- <tr>- <td>GetRelease</td>- <td>GET</td>- <td>/v1/{name=projects/*/releases/*}</td>- <td></td>- </tr>----- <tr>- <td>ListReleases</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/releases</td>- <td></td>- </tr>----- <tr>- <td>CreateRelease</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/releases</td>- <td>release</td>- </tr>----- <tr>- <td>UpdateRelease</td>- <td>PATCH</td>- <td>/v1/{release.name=projects/*/releases/*}</td>- <td>release</td>- </tr>----- <tr>- <td>DeleteRelease</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/releases/*}</td>- <td></td>- </tr>----- <tr>- <td>UndeleteRelease</td>- <td>POST</td>- <td>/v1/{name=projects/*/releases/*}:undelete</td>- <td></td>- </tr>--- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/review_config_service.proto">v1/review_config_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</h3>+ <h3 id="bytebase.v1.PrettyResponse">PrettyResponse</h3><p></p>@@ -26130,10 +26066,17 @@ Format: projects/{project}/releases/{release} </p></td><tbody><tr>- <td>review_config</td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td>current_schema</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The sql review to create. </p></td>+ <td><p>The pretty-formatted version of current schema. </p></td>+ </tr>++ <tr>+ <td>expected_schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The expected SDL schema after normalizing. </p></td></tr></tbody>@@ -26143,7 +26086,7 @@ Format: projects/{project}/releases/{release} </p></td>- <h3 id="bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</h3>+ <h3 id="bytebase.v1.QueryHistory">QueryHistory</h3><p></p>@@ -26157,8 +26100,58 @@ Format: projects/{project}/releases/{release} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the sql review to delete.-Format: reviewConfigs/{reviewConfig} </p></td>+ <td><p>The name for the query history.+Format: queryHistories/{uid} </p></td>+ </tr>++ <tr>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The database name to execute the query.+Format: instances/{instance}/databases/{databaseName} </p></td>+ </tr>++ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>statement</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>duration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.QueryHistory.Type">QueryHistory.Type</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -26168,7 +26161,7 @@ Format: reviewConfigs/{reviewConfig} </p></td>- <h3 id="bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</h3>+ <h3 id="bytebase.v1.QueryOption">QueryOption</h3><p></p>@@ -26179,11 +26172,10 @@ Format: reviewConfigs/{reviewConfig} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>redis_run_commands_on</td>+ <td><a href="#bytebase.v1.QueryOption.RedisRunCommandsOn">QueryOption.RedisRunCommandsOn</a></td><td></td>- <td><p>The name of the sql review to retrieve.-Format: reviewConfigs/{reviewConfig} </p></td>+ <td><p> </p></td></tr></tbody>@@ -26193,7 +26185,7 @@ Format: reviewConfigs/{reviewConfig} </p></td>- <h3 id="bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</h3>+ <h3 id="bytebase.v1.QueryRequest">QueryRequest</h3><p></p>@@ -26204,25 +26196,62 @@ Format: reviewConfigs/{reviewConfig} </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Not used.-The maximum number of sql review to return. The service may return fewer than-this value.-If unspecified, at most 10 sql review will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p>The name is the instance name to execute the query against.+Format: instances/{instance}/databases/{databaseName} </p></td></tr><tr>- <td>page_token</td>+ <td>statement</td><td><a href="#string">string</a></td><td></td>- <td><p>Not used.-A page token, provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListReviewConfigs` must match-the call that provided the page token. </p></td>+ <td><p>The SQL statement to execute. </p></td>+ </tr>++ <tr>+ <td>limit</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of rows to return. </p></td>+ </tr>++ <tr>+ <td>timeout</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>optional</td>+ <td><p>The timeout for the request. </p></td>+ </tr>++ <tr>+ <td>data_source_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The id of data source.+It is used for querying admin data source even if the instance has read-only data sources.+Or it can be used to query a specific read-only data source. </p></td>+ </tr>++ <tr>+ <td>explain</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Explain the statement. </p></td>+ </tr>++ <tr>+ <td>schema</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The default schema to search objects. Equals to the current schema in Oracle and search path in Postgres. </p></td>+ </tr>++ <tr>+ <td>query_option</td>+ <td><a href="#bytebase.v1.QueryOption">QueryOption</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -26232,7 +26261,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListReviewConfigsResponse">ListReviewConfigsResponse</h3>+ <h3 id="bytebase.v1.QueryResponse">QueryResponse</h3><p></p>@@ -26243,18 +26272,17 @@ the call that provided the page token. </p></td><tbody><tr>- <td>review_configs</td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td>results</td>+ <td><a href="#bytebase.v1.QueryResult">QueryResult</a></td><td>repeated</td>- <td><p>The sql review from the specified request. </p></td>+ <td><p>The query results. </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>allow_export</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The query is allowed to be exported or not. </p></td></tr></tbody>@@ -26264,7 +26292,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ReviewConfig">ReviewConfig</h3>+ <h3 id="bytebase.v1.QueryResult">QueryResult</h3><p></p>@@ -26275,61 +26303,67 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>+ <td>column_names</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the sql review to retrieve.-Format: reviewConfigs/{reviewConfig} </p></td>+ <td>repeated</td>+ <td><p>Column names of the query result. </p></td></tr><tr>- <td>title</td>+ <td>column_type_names</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>Column types of the query result.+The types come from the Golang SQL driver. </p></td></tr><tr>- <td>enabled</td>+ <td>rows</td>+ <td><a href="#bytebase.v1.QueryRow">QueryRow</a></td>+ <td>repeated</td>+ <td><p>Rows of the query result. </p></td>+ </tr>++ <tr>+ <td>masked</td><td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>Columns are masked or not. </p></td></tr><tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>+ <td>sensitive</td>+ <td><a href="#bool">bool</a></td>+ <td>repeated</td>+ <td><p>Columns are sensitive or not. </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>error</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The error message if the query failed. </p></td></tr><tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>latency</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p> </p></td>+ <td><p>The time it takes to execute the query. </p></td></tr><tr>- <td>rules</td>- <td><a href="#bytebase.v1.SQLReviewRule">SQLReviewRule</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>statement</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The query statement for the result. </p></td></tr><tr>- <td>resources</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>resources using the config.-Format: {resurce}/{resource id}, for example, environments/test. </p></td>+ <td>postgres_error</td>+ <td><a href="#bytebase.v1.QueryResult.PostgresError">QueryResult.PostgresError</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -26339,8 +26373,8 @@ Format: {resurce}/{resource id}, for example, environments/test. </p></td>- <h3 id="bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</h3>- <p></p>+ <h3 id="bytebase.v1.QueryResult.PostgresError">QueryResult.PostgresError</h3>+ <p>refer https://www.postgresql.org/docs/11/protocol-error-fields.html</p><p>for field description.</p><table class="field-table">@@ -26350,180 +26384,122 @@ Format: {resurce}/{resource id}, for example, environments/test. </p></td><tbody><tr>- <td>review_config</td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td>severity</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The sql review to update.--The name field is used to identify the sql review to update. </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>code</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr><tr>- <td>allow_missing</td>- <td><a href="#bool">bool</a></td>+ <td>message</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>If set to true, and the config is not found, a new config will be created.-In this situation, `update_mask` is ignored. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------------ <h3 id="bytebase.v1.ReviewConfigService">ReviewConfigService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>CreateReviewConfig</td>- <td><a href="#bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</a></td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListReviewConfigs</td>- <td><a href="#bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</a></td>- <td><a href="#bytebase.v1.ListReviewConfigsResponse">ListReviewConfigsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetReviewConfig</td>- <td><a href="#bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</a></td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateReviewConfig</td>- <td><a href="#bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</a></td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteReviewConfig</td>- <td><a href="#bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>- </thead>- <tbody>---- <tr>- <td>CreateReviewConfig</td>- <td>POST</td>- <td>/v1/reviewConfigs</td>- <td>review_config</td>- </tr>--+ <tr>+ <td>detail</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>hint</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>ListReviewConfigs</td>- <td>GET</td>- <td>/v1/reviewConfigs</td>- <td></td>- </tr>+ <tr>+ <td>position</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>internal_position</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>internal_query</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>GetReviewConfig</td>- <td>GET</td>- <td>/v1/{name=reviewConfigs/*}</td>- <td></td>- </tr>+ <tr>+ <td>where</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>schema_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>table_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>UpdateReviewConfig</td>- <td>PATCH</td>- <td>/v1/{review_config.name=reviewConfigs/*}</td>- <td>review_config</td>- </tr>+ <tr>+ <td>column_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>data_type_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>constraint_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>DeleteReviewConfig</td>- <td>DELETE</td>- <td>/v1/{name=reviewConfigs/*}</td>- <td></td>- </tr>+ <tr>+ <td>file</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/risk_service.proto">v1/risk_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.CreateRiskRequest">CreateRiskRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>line</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>risk</td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>routine</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The risk to create. </p></td>+ <td><p> </p></td></tr></tbody>@@ -26533,7 +26509,7 @@ In this situation, `update_mask` is ignored. </p></td>- <h3 id="bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</h3>+ <h3 id="bytebase.v1.QueryRow">QueryRow</h3><p></p>@@ -26544,11 +26520,10 @@ In this situation, `update_mask` is ignored. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the risk to delete.-Format: risks/{risk} </p></td>+ <td>values</td>+ <td><a href="#bytebase.v1.RowValue">RowValue</a></td>+ <td>repeated</td>+ <td><p>Row values of the query result. </p></td></tr></tbody>@@ -26558,7 +26533,7 @@ Format: risks/{risk} </p></td>- <h3 id="bytebase.v1.ListRisksRequest">ListRisksRequest</h3>+ <h3 id="bytebase.v1.RowValue">RowValue</h3><p></p>@@ -26569,117 +26544,95 @@ Format: risks/{risk} </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>null_value</td>+ <td><a href="#google.protobuf.NullValue">google.protobuf.NullValue</a></td><td></td>- <td><p>Not used.-The maximum number of risks to return. The service may return fewer than-this value.-If unspecified, at most 10 risks will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>- <td><a href="#string">string</a></td>+ <td>bool_value</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>Not used.-A page token, received from a previous `ListRisks` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `LiskRisks` must match-the call that provided the page token. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListRisksResponse">ListRisksResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>risks</td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>- <td>repeated</td>+ <td>bytes_value</td>+ <td><a href="#bytes">bytes</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>double_value</td>+ <td><a href="#double">double</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.Risk">Risk</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>float_value</td>+ <td><a href="#float">float</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>int32_value</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>Format: risks/{risk} </p></td>+ <td><p> </p></td></tr><tr>- <td>source</td>- <td><a href="#bytebase.v1.Risk.Source">Risk.Source</a></td>+ <td>int64_value</td>+ <td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr><tr>- <td>title</td>+ <td>string_value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>level</td>- <td><a href="#int32">int32</a></td>+ <td>uint32_value</td>+ <td><a href="#uint32">uint32</a></td><td></td><td><p> </p></td></tr><tr>- <td>active</td>- <td><a href="#bool">bool</a></td>+ <td>uint64_value</td>+ <td><a href="#uint64">uint64</a></td><td></td><td><p> </p></td></tr><tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>value_value</td>+ <td><a href="#google.protobuf.Value">google.protobuf.Value</a></td><td></td>- <td><p> </p></td>+ <td><p>value_value is used for Spanner and TUPLE ARRAY MAP in Clickhouse only. </p></td>+ </tr>++ <tr>+ <td>timestamp_value</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>timestamp_value is used for the timestamp without time zone data type, meaning it only includes the timestamp without any time zone or location info.+Although it may be expressed as a UTC value, it should be seen as a timestamp missing location context. </p></td>+ </tr>++ <tr>+ <td>timestamp_tz_value</td>+ <td><a href="#bytebase.v1.RowValue.TimestampTZ">RowValue.TimestampTZ</a></td>+ <td></td>+ <td><p>timestamp_tz_value is used for the timestamptz data type, which accurately represents the timestamp with location information. </p></td></tr></tbody>@@ -26689,7 +26642,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</h3>+ <h3 id="bytebase.v1.RowValue.TimestampTZ">RowValue.TimestampTZ</h3><p></p>@@ -26700,20 +26653,28 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>risk</td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>timestamp</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The risk to update.--The risk's `name` field is used to identify the risk to update.-Format: risks/{risk} </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>zone</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>Zone is the time zone abbreviations in timezone database such as "PDT", "PST".+https://en.wikipedia.org/wiki/List_of_tz_database_time_zones+We retrieve the time zone information from the timestamptz field in the database.+A timestamp is in UTC or epoch time, and with zone info, we can convert it to a local time string.+Zone and offset are returned by time.Time.Zone() </p></td>+ </tr>++ <tr>+ <td>offset</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The offset is in seconds east of UTC </p></td></tr></tbody>@@ -26723,172 +26684,57 @@ Format: risks/{risk} </p></td>--- <h3 id="bytebase.v1.Risk.Source">Risk.Source</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>SOURCE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>DDL</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DML</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>CREATE_DATABASE</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>REQUEST_QUERY</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>REQUEST_EXPORT</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATA_EXPORT</td>- <td>6</td>- <td><p></p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.RiskService">RiskService</h3>+ <h3 id="bytebase.v1.SearchQueryHistoriesRequest">SearchQueryHistoriesRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ListRisks</td>- <td><a href="#bytebase.v1.ListRisksRequest">ListRisksRequest</a></td>- <td><a href="#bytebase.v1.ListRisksResponse">ListRisksResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateRisk</td>- <td><a href="#bytebase.v1.CreateRiskRequest">CreateRiskRequest</a></td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateRisk</td>- <td><a href="#bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</a></td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteRisk</td>- <td><a href="#bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>ListRisks</td>- <td>GET</td>- <td>/v1/risks</td>- <td></td>- </tr>----- <tr>- <td>CreateRisk</td>- <td>POST</td>- <td>/v1/risks</td>- <td>risk</td>- </tr>----- <tr>- <td>UpdateRisk</td>- <td>PATCH</td>- <td>/v1/{risk.name=risks/*}</td>- <td>risk</td>- </tr>-+ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of histories to return.+The service may return fewer than this value.+If unspecified, at most 10 history entries will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>+ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListQueryHistory` call.+Provide this to retrieve the subsequent page. </p></td>+ </tr>- <tr>- <td>DeleteRisk</td>- <td>DELETE</td>- <td>/v1/{name=risks/*}</td>- <td></td>- </tr>+ <tr>+ <td>filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>filter is the filter to apply on the search query history,+follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+Support filter by:+- database, for example:+ database = "instances/{instance}/databases/{database}"+- instance, for example:+ instance = "instance/{instance}"+- type, for example:+ type = "QUERY" </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/role_service.proto">v1/role_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.CreateRoleRequest">CreateRoleRequest</h3>+ <h3 id="bytebase.v1.SearchQueryHistoriesResponse">SearchQueryHistoriesResponse</h3><p></p>@@ -26899,21 +26745,19 @@ Format: risks/{risk} </p></td><tbody><tr>- <td>role</td>- <td><a href="#bytebase.v1.Role">Role</a></td>- <td></td>- <td><p> </p></td>+ <td>query_histories</td>+ <td><a href="#bytebase.v1.QueryHistory">QueryHistory</a></td>+ <td>repeated</td>+ <td><p>The list of history. </p></td></tr><tr>- <td>role_id</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The ID to use for the role, which will become the final component-of the role's resource name.--This value should be 4-63 characters, and valid characters-are /[a-z][A-Z][0-9]/. </p></td>+ <td><p>A token to retrieve next page of history.+Pass this value in the page_token field in the subsequent call to `ListQueryHistory` method+to retrieve the next page of history. </p></td></tr></tbody>@@ -26923,7 +26767,7 @@ are /[a-z][A-Z][0-9]/. </p></td>- <h3 id="bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</h3>+ <h3 id="bytebase.v1.StringifyMetadataRequest">StringifyMetadataRequest</h3><p></p>@@ -26934,10 +26778,24 @@ are /[a-z][A-Z][0-9]/. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>metadata</td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td><td></td>- <td><p>Format: roles/{role} </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td></td>+ <td><p>The database engine of the schema string. </p></td>+ </tr>++ <tr>+ <td>classification_from_config</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If false, we will build the raw common by classification in database config. </p></td></tr></tbody>@@ -26947,7 +26805,7 @@ are /[a-z][A-Z][0-9]/. </p></td>- <h3 id="bytebase.v1.ListRolesRequest">ListRolesRequest</h3>+ <h3 id="bytebase.v1.StringifyMetadataResponse">StringifyMetadataResponse</h3><p></p>@@ -26958,143 +26816,12 @@ are /[a-z][A-Z][0-9]/. </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>Not used.-The maximum number of roles to return. The service may return fewer than-this value.-If unspecified, at most 10 reviews will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Not used.-A page token, received from a previous `ListRoles` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRoles` must match-the call that provided the page token. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListRolesResponse">ListRolesResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>roles</td>- <td><a href="#bytebase.v1.Role">Role</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Role">Role</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: roles/{role} </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>description</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>permissions</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>role</td>- <td><a href="#bytebase.v1.Role">Role</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>schema</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>- <tr>- <td>allow_missing</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If set to true, and the role is not found, a new role will be created. </p></td>- </tr>-</tbody></table>@@ -27104,259 +26831,357 @@ If this field is omitted, there are no subsequent pages. </p></td>----- <h3 id="bytebase.v1.RoleService">RoleService</h3>+ <h3 id="bytebase.v1.Advice.Status">Advice.Status</h3><p></p><table class="enum-table"><thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody><tr>- <td>ListRoles</td>- <td><a href="#bytebase.v1.ListRolesRequest">ListRolesRequest</a></td>- <td><a href="#bytebase.v1.ListRolesResponse">ListRolesResponse</a></td>- <td><p></p></td>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p>Unspecified.</p></td></tr><tr>- <td>CreateRole</td>- <td><a href="#bytebase.v1.CreateRoleRequest">CreateRoleRequest</a></td>- <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>SUCCESS</td>+ <td>1</td><td><p></p></td></tr><tr>- <td>UpdateRole</td>- <td><a href="#bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</a></td>- <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>WARNING</td>+ <td>2</td><td><p></p></td></tr><tr>- <td>DeleteRole</td>- <td><a href="#bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>ERROR</td>+ <td>3</td><td><p></p></td></tr></tbody></table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>++ <h3 id="bytebase.v1.CheckRequest.ChangeType">CheckRequest.ChangeType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>+ <td>CHANGE_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td></tr>- </thead>- <tbody>--<tr>- <td>ListRoles</td>- <td>GET</td>- <td>/v1/roles</td>- <td></td>+ <td>DDL</td>+ <td>1</td>+ <td><p></p></td></tr>---<tr>- <td>CreateRole</td>- <td>POST</td>- <td>/v1/roles</td>- <td>role</td>+ <td>DDL_GHOST</td>+ <td>2</td>+ <td><p></p></td></tr>---<tr>- <td>UpdateRole</td>- <td>PATCH</td>- <td>/v1/{role.name=roles/*}</td>- <td>role</td>+ <td>DML</td>+ <td>3</td>+ <td><p></p></td></tr>---<tr>- <td>DeleteRole</td>- <td>DELETE</td>- <td>/v1/{name=roles/*}</td>- <td></td>+ <td>SQL_EDITOR</td>+ <td>4</td>+ <td><p></p></td></tr>-- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/rollout_service.proto">v1/rollout_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>-+ </tbody>+ </table>- <h3 id="bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</h3>+ <h3 id="bytebase.v1.QueryHistory.Type">QueryHistory.Type</h3><p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the parent of the taskRuns.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}-Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. </p></td>- </tr>-- <tr>- <td>task_runs</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The taskRuns to cancel.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>- </tr>-- <tr>- <td>reason</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>----+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>QUERY</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>EXPORT</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <h3 id="bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</h3>+ <h3 id="bytebase.v1.QueryOption.RedisRunCommandsOn">QueryOption.RedisRunCommandsOn</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>REDIS_RUN_COMMANDS_ON_UNSPECIFIED</td>+ <td>0</td>+ <td><p>UNSPECIFIED defaults to SINGLE_NODE.</p></td>+ </tr>++ <tr>+ <td>SINGLE_NODE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ALL_NODES</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+-+-- <h3 id="bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</h3>+ <h3 id="bytebase.v1.SQLService">SQLService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>Query</td>+ <td><a href="#bytebase.v1.QueryRequest">QueryRequest</a></td>+ <td><a href="#bytebase.v1.QueryResponse">QueryResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>AdminExecute</td>+ <td><a href="#bytebase.v1.AdminExecuteRequest">AdminExecuteRequest</a> stream</td>+ <td><a href="#bytebase.v1.AdminExecuteResponse">AdminExecuteResponse</a> stream</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SearchQueryHistories</td>+ <td><a href="#bytebase.v1.SearchQueryHistoriesRequest">SearchQueryHistoriesRequest</a></td>+ <td><a href="#bytebase.v1.SearchQueryHistoriesResponse">SearchQueryHistoriesResponse</a></td>+ <td><p>SearchQueryHistories searches query histories for the caller.</p></td>+ </tr>++ <tr>+ <td>Export</td>+ <td><a href="#bytebase.v1.ExportRequest">ExportRequest</a></td>+ <td><a href="#bytebase.v1.ExportResponse">ExportResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>Check</td>+ <td><a href="#bytebase.v1.CheckRequest">CheckRequest</a></td>+ <td><a href="#bytebase.v1.CheckResponse">CheckResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ParseMyBatisMapper</td>+ <td><a href="#bytebase.v1.ParseMyBatisMapperRequest">ParseMyBatisMapperRequest</a></td>+ <td><a href="#bytebase.v1.ParseMyBatisMapperResponse">ParseMyBatisMapperResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>Pretty</td>+ <td><a href="#bytebase.v1.PrettyRequest">PrettyRequest</a></td>+ <td><a href="#bytebase.v1.PrettyResponse">PrettyResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>StringifyMetadata</td>+ <td><a href="#bytebase.v1.StringifyMetadataRequest">StringifyMetadataRequest</a></td>+ <td><a href="#bytebase.v1.StringifyMetadataResponse">StringifyMetadataResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GenerateRestoreSQL</td>+ <td><a href="#bytebase.v1.GenerateRestoreSQLRequest">GenerateRestoreSQLRequest</a></td>+ <td><a href="#bytebase.v1.GenerateRestoreSQLResponse">GenerateRestoreSQLResponse</a></td>+ <td><p>Deprecated.</p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the parent of the tasks.-Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>- </tr>- <tr>- <td>tasks</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The tasks to run.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>- </tr>+ <tr>+ <td>Query</td>+ <td>POST</td>+ <td>/v1/{name=instances/*/databases/*}:query</td>+ <td>*</td>+ </tr>- <tr>- <td>reason</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>Query</td>+ <td>POST</td>+ <td>/v1/{name=instances/*}:query</td>+ <td>*</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</h3>- <p></p>------ <h3 id="bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the parent of the tasks.-Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>- </tr>- <tr>- <td>tasks</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The tasks to skip.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>- </tr>+ <tr>+ <td>AdminExecute</td>+ <td>GET</td>+ <td>/v1:adminExecute</td>+ <td></td>+ </tr>- <tr>- <td>reason</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</h3>- <p></p>-++ <tr>+ <td>SearchQueryHistories</td>+ <td>POST</td>+ <td>/v1/queryHistories:search</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>Export</td>+ <td>POST</td>+ <td>/v1/{name=instances/*/databases/*}:export</td>+ <td>*</td>+ </tr>++ <tr>+ <td>Export</td>+ <td>POST</td>+ <td>/v1/{name=instances/*}:export</td>+ <td>*</td>+ </tr>++ <tr>+ <td>Export</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:export</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>Check</td>+ <td>POST</td>+ <td>/v1/sql/check</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>ParseMyBatisMapper</td>+ <td>POST</td>+ <td>/v1/sql/parseMyBatisMapper</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>Pretty</td>+ <td>POST</td>+ <td>/v1/sql/pretty</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>StringifyMetadata</td>+ <td>POST</td>+ <td>/v1/schemaDesign:stringifyMetadata</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>GenerateRestoreSQL</td>+ <td>POST</td>+ <td>/v1/{name=instances/*/databases/*}:generateRestoreSQL</td>+ <td>*</td>+ </tr>+++ </tbody>+ </table>++++ <div class="file-heading">+ <h2 id="v1/release_service.proto">v1/release_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>-- <h3 id="bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</h3>+ <h3 id="bytebase.v1.CheckReleaseRequest">CheckReleaseRequest</h3><p></p>@@ -27370,40 +27195,25 @@ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></<td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent project where this rollout will be created.-Format: projects/{project} </p></td>+ <td><p>Format: projects/{project} </p></td></tr><tr>- <td>rollout</td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td>release</td>+ <td><a href="#bytebase.v1.Release">Release</a></td><td></td>- <td><p>The rollout to create. </p></td>+ <td><p>The release to check. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetRolloutRequest">GetRolloutRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>+ <td>targets</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the rollout to retrieve.-Format: projects/{project}/rollouts/{rollout} </p></td>+ <td>repeated</td>+ <td><p>The targets to dry-run the release.+Can be database or databaseGroup.+Format:+projects/{project}/databaseGroups/{databaseGroup}+instances/{instance}/databases/{database} </p></td></tr></tbody>@@ -27413,7 +27223,7 @@ Format: projects/{project}/rollouts/{rollout} </p></td>- <h3 id="bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</h3>+ <h3 id="bytebase.v1.CheckReleaseResponse">CheckReleaseResponse</h3><p></p>@@ -27424,11 +27234,10 @@ Format: projects/{project}/rollouts/{rollout} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}-TODO(d): check the resource_reference. </p></td>+ <td>results</td>+ <td><a href="#bytebase.v1.CheckReleaseResponse.CheckResult">CheckReleaseResponse.CheckResult</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -27438,7 +27247,7 @@ TODO(d): check the resource_reference. </p></td>- <h3 id="bytebase.v1.GetTaskRunRequest">GetTaskRunRequest</h3>+ <h3 id="bytebase.v1.CheckReleaseResponse.CheckResult">CheckReleaseResponse.CheckResult</h3><p></p>@@ -27449,10 +27258,17 @@ TODO(d): check the resource_reference. </p></td><tbody><tr>- <td>name</td>+ <td>file</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>+ <td><p>The file id that is being checked. </p></td>+ </tr>++ <tr>+ <td>advices</td>+ <td><a href="#bytebase.v1.Advice">Advice</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -27462,7 +27278,7 @@ TODO(d): check the resource_reference. </p></td>- <h3 id="bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</h3>+ <h3 id="bytebase.v1.CreateReleaseRequest">CreateReleaseRequest</h3><p></p>@@ -27476,7 +27292,14 @@ TODO(d): check the resource_reference. </p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>+ <td><p>Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>release</td>+ <td><a href="#bytebase.v1.Release">Release</a></td>+ <td></td>+ <td><p>The release to create. </p></td></tr></tbody>@@ -27486,7 +27309,7 @@ TODO(d): check the resource_reference. </p></td>- <h3 id="bytebase.v1.ListRolloutsRequest">ListRolloutsRequest</h3>+ <h3 id="bytebase.v1.DeleteReleaseRequest">DeleteReleaseRequest</h3><p></p>@@ -27497,33 +27320,11 @@ TODO(d): check the resource_reference. </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of rollouts.-Format: projects/{project}-Use "projects/-" to list all rollouts from all projects. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of rollouts to return. The service may return fewer than-this value.-If unspecified, at most 10 rollouts will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListRollouts` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRollouts` must match-the call that provided the page token. </p></td>+ <td><p>The name of the release to delete.+Format: projects/{project}/releases/{release} </p></td></tr></tbody>@@ -27533,7 +27334,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListRolloutsResponse">ListRolloutsResponse</h3>+ <h3 id="bytebase.v1.GetReleaseRequest">GetReleaseRequest</h3><p></p>@@ -27544,18 +27345,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>rollouts</td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td>repeated</td>- <td><p>The rollouts from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>Format: projects/{project}/releases/{release} </p></td></tr></tbody>@@ -27565,7 +27358,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</h3>+ <h3 id="bytebase.v1.ListReleasesRequest">ListReleasesRequest</h3><p></p>@@ -27579,19 +27372,15 @@ If this field is omitted, there are no subsequent pages. </p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of plans.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}-Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. </p></td>+ <td><p>Format: projects/{project} </p></td></tr><tr><td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p>Not used.-The maximum number of taskRuns to return. The service may return fewer than-this value.-If unspecified, at most 10 taskRuns will be returned.+ <td><p>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. </p></td></tr>@@ -27600,13 +27389,20 @@ The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td><td><a href="#string">string</a></td><td></td><td><p>Not used.-A page token, received from a previous `ListTaskRuns` call.+A page token, received from a previous `ListReleases` call.Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListTaskRuns` must match+When paginating, all other parameters provided to `ListReleases` must matchthe call that provided the page token. </p></td></tr>+ <tr>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Show deleted releases if specified. </p></td>+ </tr>+</tbody></table>@@ -27614,7 +27410,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</h3>+ <h3 id="bytebase.v1.ListReleasesResponse">ListReleasesResponse</h3><p></p>@@ -27625,10 +27421,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>task_runs</td>- <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td>+ <td>releases</td>+ <td><a href="#bytebase.v1.Release">Release</a></td><td>repeated</td>- <td><p>The taskRuns from the specified request. </p></td>+ <td><p> </p></td></tr><tr>@@ -27646,7 +27442,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</h3>+ <h3 id="bytebase.v1.Release">Release</h3><p></p>@@ -27657,64 +27453,50 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>project</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project.-Format: projects/{project} </p></td>+ <td><p>Format: projects/{project}/releases/{release} </p></td></tr><tr>- <td>plan</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The plan used to preview rollout. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>files</td>+ <td><a href="#bytebase.v1.Release.File">Release.File</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr><tr>- <td>name</td>+ <td>vcs_source</td>+ <td><a href="#bytebase.v1.Release.VCSSource">Release.VCSSource</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>creator</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>+ <td><p>Format: users/[email protected] </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>statement</td>- <td><a href="#string">string</a></td>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td><td></td><td><p> </p></td></tr>@@ -27726,7 +27508,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.Rollout">Rollout</h3>+ <h3 id="bytebase.v1.Release.File">Release.File</h3><p></p>@@ -27737,62 +27519,60 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>+ <td>id</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the rollout.-Format: projects/{project}/rollouts/{rollout} </p></td>+ <td><p>The unique identifier for the file. </p></td></tr><tr>- <td>plan</td>+ <td>path</td><td><a href="#string">string</a></td><td></td>- <td><p>The plan that this rollout is based on.-Format: projects/{project}/plans/{plan} </p></td>+ <td><p>The path of the file. e.g. `2.2/V0001_create_table.sql`. </p></td></tr><tr>- <td>title</td>+ <td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>stages</td>- <td><a href="#bytebase.v1.Stage">Stage</a></td>- <td>repeated</td>- <td><p>stages and thus tasks of the rollout. </p></td>+ <td><p>The sheet that holds the content.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>creator</td>+ <td>sheet_sha256</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: users/[email protected] </p></td>+ <td><p>The SHA256 hash value of the sheet. </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.ReleaseFileType">ReleaseFileType</a></td><td></td><td><p> </p></td></tr><tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>version</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>issue</td>+ <td>statement</td><td><a href="#string">string</a></td><td></td>- <td><p>The issue associated with the rollout. Could be empty.-Format: projects/{project}/issues/{issue} </p></td>+ <td><p>The statement is used for preview or check purpose. </p></td>+ </tr>++ <tr>+ <td>statement_size</td>+ <td><a href="#int64">int64</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -27802,7 +27582,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.Stage">Stage</h3>+ <h3 id="bytebase.v1.Release.VCSSource">Release.VCSSource</h3><p></p>@@ -27813,26 +27593,19 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>vcs_type</td>+ <td><a href="#bytebase.v1.VCSType">VCSType</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>+ <td><p> </p></td></tr><tr>- <td>title</td>+ <td>pull_request_url</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>- <tr>- <td>tasks</td>- <td><a href="#bytebase.v1.Task">Task</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-</tbody></table>@@ -27840,7 +27613,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.Task">Task</h3>+ <h3 id="bytebase.v1.UndeleteReleaseRequest">UndeleteReleaseRequest</h3><p></p>@@ -27854,93 +27627,8 @@ Format: projects/{project}/issues/{issue} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>spec_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A UUID4 string that uniquely identifies the Spec.-Could be empty if the rollout of the task does not have an associating plan. </p></td>- </tr>-- <tr>- <td>status</td>- <td><a href="#bytebase.v1.Task.Status">Task.Status</a></td>- <td></td>- <td><p>Status is the status of the task. </p></td>- </tr>-- <tr>- <td>skipped_reason</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.Task.Type">Task.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>depends_on_tasks</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>- </tr>-- <tr>- <td>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: instances/{instance} if the task is DatabaseCreate.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>database_create</td>- <td><a href="#bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_schema_baseline</td>- <td><a href="#bytebase.v1.Task.DatabaseSchemaBaseline">Task.DatabaseSchemaBaseline</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_schema_update</td>- <td><a href="#bytebase.v1.Task.DatabaseSchemaUpdate">Task.DatabaseSchemaUpdate</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_data_update</td>- <td><a href="#bytebase.v1.Task.DatabaseDataUpdate">Task.DatabaseDataUpdate</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_data_export</td>- <td><a href="#bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The name of the deleted release.+Format: projects/{project}/releases/{release} </p></td></tr></tbody>@@ -27950,7 +27638,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</h3>+ <h3 id="bytebase.v1.UpdateReleaseRequest">UpdateReleaseRequest</h3><p></p>@@ -27961,60 +27649,17 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>project</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The project owning the database.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>database name </p></td>- </tr>-- <tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>table name </p></td>- </tr>-- <tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>character_set</td>- <td><a href="#string">string</a></td>+ <td>release</td>+ <td><a href="#bytebase.v1.Release">Release</a></td><td></td>- <td><p> </p></td>+ <td><p>The release to update. </p></td></tr><tr>- <td>collation</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>environment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>labels</td>- <td><a href="#bytebase.v1.Task.DatabaseCreate.LabelsEntry">Task.DatabaseCreate.LabelsEntry</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>The list of fields to be updated. </p></td></tr></tbody>@@ -28024,38 +27669,193 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.Task.DatabaseCreate.LabelsEntry">Task.DatabaseCreate.LabelsEntry</h3>+++ <h3 id="bytebase.v1.ReleaseFileType">ReleaseFileType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>VERSIONED</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ReleaseService">ReleaseService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetRelease</td>+ <td><a href="#bytebase.v1.GetReleaseRequest">GetReleaseRequest</a></td>+ <td><a href="#bytebase.v1.Release">Release</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListReleases</td>+ <td><a href="#bytebase.v1.ListReleasesRequest">ListReleasesRequest</a></td>+ <td><a href="#bytebase.v1.ListReleasesResponse">ListReleasesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateRelease</td>+ <td><a href="#bytebase.v1.CreateReleaseRequest">CreateReleaseRequest</a></td>+ <td><a href="#bytebase.v1.Release">Release</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateRelease</td>+ <td><a href="#bytebase.v1.UpdateReleaseRequest">UpdateReleaseRequest</a></td>+ <td><a href="#bytebase.v1.Release">Release</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteRelease</td>+ <td><a href="#bytebase.v1.DeleteReleaseRequest">DeleteReleaseRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UndeleteRelease</td>+ <td><a href="#bytebase.v1.UndeleteReleaseRequest">UndeleteReleaseRequest</a></td>+ <td><a href="#bytebase.v1.Release">Release</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CheckRelease</td>+ <td><a href="#bytebase.v1.CheckReleaseRequest">CheckReleaseRequest</a></td>+ <td><a href="#bytebase.v1.CheckReleaseResponse">CheckReleaseResponse</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>value</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>GetRelease</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/releases/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>ListReleases</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/releases</td>+ <td></td>+ </tr>+++++ <tr>+ <td>CreateRelease</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/releases</td>+ <td>release</td>+ </tr>+++++ <tr>+ <td>UpdateRelease</td>+ <td>PATCH</td>+ <td>/v1/{release.name=projects/*/releases/*}</td>+ <td>release</td>+ </tr>+++++ <tr>+ <td>DeleteRelease</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/releases/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UndeleteRelease</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/releases/*}:undelete</td>+ <td></td>+ </tr>++++ <tr>+ <td>CheckRelease</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/releases:check</td>+ <td>*</td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</h3>+ <div class="file-heading">+ <h2 id="v1/review_config_service.proto">v1/review_config_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</h3><p></p>@@ -28066,34 +27866,10 @@ Format: projects/{project} </p></td><tbody><tr>- <td>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the target.-Format: instances/{instance-id}/databases/{database-name} </p></td>- </tr>-- <tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the sheet.-Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>format</td>- <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>+ <td>review_config</td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td><td></td>- <td><p>The format of the exported file. </p></td>- </tr>-- <tr>- <td>password</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The zip password provide by users.-Leave it empty if no needs to encrypt the zip file. </p></td>+ <td><p>The sql review to create. </p></td></tr></tbody>@@ -28103,7 +27879,7 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Task.DatabaseDataUpdate">Task.DatabaseDataUpdate</h3>+ <h3 id="bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</h3><p></p>@@ -28114,17 +27890,11 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>schema_version</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the sql review to delete.+Format: reviewConfigs/{reviewConfig} </p></td></tr></tbody>@@ -28134,7 +27904,7 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Task.DatabaseSchemaBaseline">Task.DatabaseSchemaBaseline</h3>+ <h3 id="bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</h3><p></p>@@ -28145,10 +27915,11 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>schema_version</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the sql review to retrieve.+Format: reviewConfigs/{reviewConfig} </p></td></tr></tbody>@@ -28158,7 +27929,7 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Task.DatabaseSchemaUpdate">Task.DatabaseSchemaUpdate</h3>+ <h3 id="bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</h3><p></p>@@ -28169,17 +27940,25 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>sheet</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>schema_version</td>+ <td><p>Not used.+The maximum number of sql review to return. The service may return fewer than+this value.+If unspecified, at most 10 sql review will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Not used.+A page token, provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListReviewConfigs` must match+the call that provided the page token. </p></td></tr></tbody>@@ -28189,7 +27968,7 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.TaskRun">TaskRun</h3>+ <h3 id="bytebase.v1.ListReviewConfigsResponse">ListReviewConfigsResponse</h3><p></p>@@ -28200,38 +27979,43 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>- </tr>-- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: user/[email protected] </p></td>+ <td>review_configs</td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td>repeated</td>+ <td><p>The sql review from the specified request. </p></td></tr><tr>- <td>updater</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: user/[email protected] </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr>- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ReviewConfig">ReviewConfig</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the sql review to retrieve.+Format: reviewConfigs/{reviewConfig} </p></td></tr><tr>@@ -28242,84 +28026,46 @@ Leave it empty if no needs to encrypt the zip file. </p></td></tr><tr>- <td>status</td>- <td><a href="#bytebase.v1.TaskRun.Status">TaskRun.Status</a></td>+ <td>enabled</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>detail</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Below are the results of a task run. </p></td>- </tr>-- <tr>- <td>change_history</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the change history-Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>- </tr>-- <tr>- <td>schema_version</td>+ <td>creator</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Format: users/[email protected] </p></td></tr><tr>- <td>start_time</td>+ <td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr><tr>- <td>export_archive_status</td>- <td><a href="#bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</a></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr><tr>- <td>prior_backup_detail</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</a></td>- <td></td>- <td><p>The prior backup detail that will be used to rollback the task run. </p></td>- </tr>-- <tr>- <td>scheduler_info</td>- <td><a href="#bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</a></td>- <td></td>+ <td>rules</td>+ <td><a href="#bytebase.v1.SQLReviewRule">SQLReviewRule</a></td>+ <td>repeated</td><td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>items</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</a></td>+ <td>resources</td>+ <td><a href="#string">string</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>resources using the config.+Format: {resurce}/{resource id}, for example, environments/test. </p></td></tr></tbody>@@ -28329,7 +28075,7 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory- <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</h3>+ <h3 id="bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</h3><p></p>@@ -28340,31 +28086,27 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory<tbody><tr>- <td>source_table</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td>- <td></td>- <td><p>The original table information. </p></td>- </tr>-- <tr>- <td>target_table</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td>+ <td>review_config</td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td><td></td>- <td><p>The target backup table information. </p></td>+ <td><p>The sql review to update.++The name field is used to identify the sql review to update. </p></td></tr><tr>- <td>start_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr><tr>- <td>end_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>+ <td>allow_missing</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>If set to true, and the config is not found, a new config will be created.+In this situation, `update_mask` is ignored. </p></td></tr></tbody>@@ -28374,77 +28116,136 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory- <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</h3>- <p></p>-- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The database information.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>+-+-- <h3 id="bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</h3>+ <h3 id="bytebase.v1.ReviewConfigService">ReviewConfigService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>CreateReviewConfig</td>+ <td><a href="#bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</a></td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListReviewConfigs</td>+ <td><a href="#bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</a></td>+ <td><a href="#bytebase.v1.ListReviewConfigsResponse">ListReviewConfigsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetReviewConfig</td>+ <td><a href="#bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</a></td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateReviewConfig</td>+ <td><a href="#bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</a></td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteReviewConfig</td>+ <td><a href="#bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>report_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>waiting_cause</td>- <td><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>CreateReviewConfig</td>+ <td>POST</td>+ <td>/v1/reviewConfigs</td>+ <td>review_config</td>+ </tr>+++++ <tr>+ <td>ListReviewConfigs</td>+ <td>GET</td>+ <td>/v1/reviewConfigs</td>+ <td></td>+ </tr>++++ <tr>+ <td>GetReviewConfig</td>+ <td>GET</td>+ <td>/v1/{name=reviewConfigs/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UpdateReviewConfig</td>+ <td>PATCH</td>+ <td>/v1/{review_config.name=reviewConfigs/*}</td>+ <td>review_config</td>+ </tr>+++++ <tr>+ <td>DeleteReviewConfig</td>+ <td>DELETE</td>+ <td>/v1/{name=reviewConfigs/*}</td>+ <td></td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</h3>+ <div class="file-heading">+ <h2 id="v1/risk_service.proto">v1/risk_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateRiskRequest">CreateRiskRequest</h3><p></p>@@ -28455,17 +28256,10 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>connection_limit</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>task</td>- <td><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task">TaskRun.SchedulerInfo.WaitingCause.Task</a></td>+ <td>risk</td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td><td></td>- <td><p> </p></td>+ <td><p>The risk to create. </p></td></tr></tbody>@@ -28475,7 +28269,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task">TaskRun.SchedulerInfo.WaitingCause.Task</h3>+ <h3 id="bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</h3><p></p>@@ -28486,17 +28280,11 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>task</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>- </tr>-- <tr>- <td>issue</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/issues/{issue} </p></td>+ <td><p>The name of the risk to delete.+Format: risks/{risk} </p></td></tr></tbody>@@ -28506,7 +28294,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunLog">TaskRunLog</h3>+ <h3 id="bytebase.v1.ListRisksRequest">ListRisksRequest</h3><p></p>@@ -28517,17 +28305,26 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log </p></td>+ <td><p>Not used.+The maximum number of risks to return. The service may return fewer than+this value.+If unspecified, at most 10 risks will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>entries</td>- <td><a href="#bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used.+A page token, received from a previous `ListRisks` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `LiskRisks` must match+the call that provided the page token. </p></td></tr></tbody>@@ -28537,7 +28334,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</h3>+ <h3 id="bytebase.v1.ListRisksResponse">ListRisksResponse</h3><p></p>@@ -28548,66 +28345,18 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>log_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>+ <td>risks</td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>deploy_id</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>schema_dump</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>command_execute</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_sync</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>task_run_status_update</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate">TaskRunLogEntry.TaskRunStatusUpdate</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>transaction_control</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>prior_backup</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup">TaskRunLogEntry.PriorBackup</a></td>- <td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -28617,7 +28366,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</h3>+ <h3 id="bytebase.v1.Risk">Risk</h3><p></p>@@ -28628,70 +28377,45 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>log_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>command_indexes</td>- <td><a href="#int32">int32</a></td>- <td>repeated</td>- <td><p>The indexes of the executed commands. </p></td>+ <td><p>Format: risks/{risk} </p></td></tr><tr>- <td>response</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</a></td>+ <td>source</td>+ <td><a href="#bytebase.v1.Risk.Source">Risk.Source</a></td><td></td><td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>log_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>error</td>- <td><a href="#string">string</a></td>+ <td>level</td>+ <td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr><tr>- <td>affected_rows</td>- <td><a href="#int32">int32</a></td>+ <td>active</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>all_affected_rows</td>- <td><a href="#int32">int32</a></td>- <td>repeated</td>- <td><p>`all_affected_rows` is the affected rows of each command.-`all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. </p></td>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -28701,7 +28425,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</h3>+ <h3 id="bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</h3><p></p>@@ -28712,24 +28436,20 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>risk</td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td><td></td>- <td><p> </p></td>+ <td><p>The risk to update.++The risk's `name` field is used to identify the risk to update.+Format: risks/{risk} </p></td></tr><tr>- <td>end_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>error</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -28739,52 +28459,172 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunLogEntry.PriorBackup">TaskRunLogEntry.PriorBackup</h3>+++ <h3 id="bytebase.v1.Risk.Source">Risk.Source</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>SOURCE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DDL</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DML</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CREATE_DATABASE</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REQUEST_QUERY</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REQUEST_EXPORT</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATA_EXPORT</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.RiskService">RiskService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ListRisks</td>+ <td><a href="#bytebase.v1.ListRisksRequest">ListRisksRequest</a></td>+ <td><a href="#bytebase.v1.ListRisksResponse">ListRisksResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateRisk</td>+ <td><a href="#bytebase.v1.CreateRiskRequest">CreateRiskRequest</a></td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateRisk</td>+ <td><a href="#bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</a></td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteRisk</td>+ <td><a href="#bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>end_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>ListRisks</td>+ <td>GET</td>+ <td>/v1/risks</td>+ <td></td>+ </tr>- <tr>- <td>prior_backup_detail</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>CreateRisk</td>+ <td>POST</td>+ <td>/v1/risks</td>+ <td>risk</td>+ </tr>+++++ <tr>+ <td>UpdateRisk</td>+ <td>PATCH</td>+ <td>/v1/{risk.name=risks/*}</td>+ <td>risk</td>+ </tr>+++++ <tr>+ <td>DeleteRisk</td>+ <td>DELETE</td>+ <td>/v1/{name=risks/*}</td>+ <td></td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</h3>+ <div class="file-heading">+ <h2 id="v1/role_service.proto">v1/role_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateRoleRequest">CreateRoleRequest</h3><p></p>@@ -28795,24 +28635,21 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>end_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.Role">Role</a></td><td></td><td><p> </p></td></tr><tr>- <td>error</td>+ <td>role_id</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The ID to use for the role, which will become the final component+of the role's resource name.++This value should be 4-63 characters, and valid characters+are /[a-z][A-Z][0-9]/. </p></td></tr></tbody>@@ -28822,7 +28659,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate">TaskRunLogEntry.TaskRunStatusUpdate</h3>+ <h3 id="bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</h3><p></p>@@ -28833,10 +28670,10 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>status</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Format: roles/{role} </p></td></tr></tbody>@@ -28846,7 +28683,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</h3>+ <h3 id="bytebase.v1.ListRolesRequest">ListRolesRequest</h3><p></p>@@ -28857,17 +28694,26 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>Not used.+The maximum number of roles to return. The service may return fewer than+this value.+If unspecified, at most 10 reviews will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>error</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Not used.+A page token, received from a previous `ListRoles` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListRoles` must match+the call that provided the page token. </p></td></tr></tbody>@@ -28877,7 +28723,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunSession">TaskRunSession</h3>+ <h3 id="bytebase.v1.ListRolesResponse">ListRolesResponse</h3><p></p>@@ -28888,17 +28734,18 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session </p></td>+ <td>roles</td>+ <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>postgres</td>- <td><a href="#bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</a></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -28908,7 +28755,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</h3>+ <h3 id="bytebase.v1.Role">Role</h3><p></p>@@ -28919,24 +28766,31 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>session</td>- <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>`session` is the session of the task run executing commands. </p></td>+ <td><p>Format: roles/{role} </p></td></tr><tr>- <td>blocking_sessions</td>- <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>- <td>repeated</td>- <td><p>`blocking_sessions` block `session`. </p></td>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>blocked_sessions</td>- <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>permissions</td>+ <td><a href="#string">string</a></td><td>repeated</td>- <td><p>`blocked_sessions` are blocked by `session`. </p></td>+ <td><p> </p></td></tr></tbody>@@ -28946,8 +28800,8 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</h3>- <p>Read from `pg_stat_activity`</p>+ <h3 id="bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</h3>+ <p></p><table class="field-table">@@ -28957,101 +28811,24 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>pid</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>blocked_by_pids</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>query</td>- <td><a href="#string">string</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.Role">Role</a></td><td></td><td><p> </p></td></tr><tr>- <td>state</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>wait_event_type</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>wait_event</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>datname</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>usename</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>application_name</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p> </p></td></tr><tr>- <td>client_addr</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>client_port</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>backend_start</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>allow_missing</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>xact_start</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>query_start</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td>optional</td>- <td><p> </p></td>+ <td><p>If set to true, and the role is not found, a new role will be created. </p></td></tr></tbody>@@ -29063,581 +28840,316 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.Task.Status">Task.Status</h3>+++++ <h3 id="bytebase.v1.RoleService">RoleService</h3><p></p><table class="enum-table"><thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody><tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>NOT_STARTED</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>PENDING</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>RUNNING</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>DONE</td>- <td>4</td>+ <td>ListRoles</td>+ <td><a href="#bytebase.v1.ListRolesRequest">ListRolesRequest</a></td>+ <td><a href="#bytebase.v1.ListRolesResponse">ListRolesResponse</a></td><td><p></p></td></tr><tr>- <td>FAILED</td>- <td>5</td>+ <td>CreateRole</td>+ <td><a href="#bytebase.v1.CreateRoleRequest">CreateRoleRequest</a></td>+ <td><a href="#bytebase.v1.Role">Role</a></td><td><p></p></td></tr><tr>- <td>CANCELED</td>- <td>6</td>+ <td>UpdateRole</td>+ <td><a href="#bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</a></td>+ <td><a href="#bytebase.v1.Role">Role</a></td><td><p></p></td></tr><tr>- <td>SKIPPED</td>- <td>7</td>+ <td>DeleteRole</td>+ <td><a href="#bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr></tbody></table>-- <h3 id="bytebase.v1.Task.Type">Task.Type</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>GENERAL</td>- <td>1</td>- <td><p></p></td>- </tr>-+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead><tr>- <td>DATABASE_CREATE</td>- <td>2</td>- <td><p>use payload DatabaseCreate</p></td>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td></tr>+ </thead>+ <tbody>++<tr>- <td>DATABASE_SCHEMA_BASELINE</td>- <td>3</td>- <td><p>use payload DatabaseSchemaBaseline</p></td>+ <td>ListRoles</td>+ <td>GET</td>+ <td>/v1/roles</td>+ <td></td></tr>+++<tr>- <td>DATABASE_SCHEMA_UPDATE</td>- <td>4</td>- <td><p>use payload DatabaseSchemaUpdate</p></td>+ <td>CreateRole</td>+ <td>POST</td>+ <td>/v1/roles</td>+ <td>role</td></tr>+++<tr>- <td>DATABASE_SCHEMA_UPDATE_SDL</td>- <td>5</td>- <td><p>use payload DatabaseSchemaUpdate</p></td>+ <td>UpdateRole</td>+ <td>PATCH</td>+ <td>/v1/{role.name=roles/*}</td>+ <td>role</td></tr>+++<tr>- <td>DATABASE_SCHEMA_UPDATE_GHOST_SYNC</td>- <td>6</td>- <td><p>use payload DatabaseSchemaUpdate</p></td>+ <td>DeleteRole</td>+ <td>DELETE</td>+ <td>/v1/{name=roles/*}</td>+ <td></td></tr>+- <tr>- <td>DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER</td>- <td>7</td>- <td><p>use payload nil</p></td>- </tr>-- <tr>- <td>DATABASE_DATA_UPDATE</td>- <td>8</td>- <td><p>use payload DatabaseDataUpdate</p></td>- </tr>-- <tr>- <td>DATABASE_DATA_EXPORT</td>- <td>12</td>- <td><p>use payload DatabaseDataExport</p></td>- </tr>-- </tbody>- </table>+ </tbody>+ </table>+++- <h3 id="bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</h3>+ <div class="file-heading">+ <h2 id="v1/rollout_service.proto">v1/rollout_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>EXPORT_ARCHIVE_STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>READY</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>EXPORTED</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the parent of the taskRuns.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. </p></td>+ </tr>++ <tr>+ <td>task_runs</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The taskRuns to cancel.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>+ </tr>++ <tr>+ <td>reason</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.TaskRun.Status">TaskRun.Status</h3>+ <h3 id="bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>PENDING</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>RUNNING</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>DONE</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>FAILED</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>CANCELED</td>- <td>5</td>- <td><p></p></td>- </tr>-- </tbody>- </table>++++- <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</h3>+ <h3 id="bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>RUNNING_WAITING</td>- <td>1</td>- <td><p>the task run is ready to be executed by the scheduler</p></td>- </tr>-- <tr>- <td>RUNNING_RUNNING</td>- <td>2</td>- <td><p>the task run is being executed by the scheduler</p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the parent of the tasks.+Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>+ </tr>++ <tr>+ <td>tasks</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The tasks to run.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ </tr>++ <tr>+ <td>reason</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</h3>+ <h3 id="bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>BEGIN</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>COMMIT</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>ROLLBACK</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>++++- <h3 id="bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</h3>+ <h3 id="bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>SCHEMA_DUMP</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>COMMAND_EXECUTE</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_SYNC</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>TASK_RUN_STATUS_UPDATE</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>TRANSACTION_CONTROL</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>PRIOR_BACKUP</td>- <td>6</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the parent of the tasks.+Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>+ </tr>++ <tr>+ <td>tasks</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The tasks to skip.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ </tr>++ <tr>+ <td>reason</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++ <h3 id="bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</h3>+ <p></p>+++- <h3 id="bytebase.v1.RolloutService">RolloutService</h3>+ <h3 id="bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetRollout</td>- <td><a href="#bytebase.v1.GetRolloutRequest">GetRolloutRequest</a></td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListRollouts</td>- <td><a href="#bytebase.v1.ListRolloutsRequest">ListRolloutsRequest</a></td>- <td><a href="#bytebase.v1.ListRolloutsResponse">ListRolloutsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateRollout</td>- <td><a href="#bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</a></td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>PreviewRollout</td>- <td><a href="#bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</a></td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListTaskRuns</td>- <td><a href="#bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</a></td>- <td><a href="#bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetTaskRun</td>- <td><a href="#bytebase.v1.GetTaskRunRequest">GetTaskRunRequest</a></td>- <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetTaskRunLog</td>- <td><a href="#bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</a></td>- <td><a href="#bytebase.v1.TaskRunLog">TaskRunLog</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetTaskRunSession</td>- <td><a href="#bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</a></td>- <td><a href="#bytebase.v1.TaskRunSession">TaskRunSession</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>BatchRunTasks</td>- <td><a href="#bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</a></td>- <td><a href="#bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</a></td>- <td><p>BatchRunTasks creates task runs for the specified tasks.-DataExport issue only allows the creator to run the task.-Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA.-Follow role-based rollout policy for the environment.</p></td>- </tr>-- <tr>- <td>BatchSkipTasks</td>- <td><a href="#bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</a></td>- <td><a href="#bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</a></td>- <td><p>BatchSkipTasks skips the specified tasks.-The access is the same as BatchRunTasks().</p></td>- </tr>-- <tr>- <td>BatchCancelTaskRuns</td>- <td><a href="#bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</a></td>- <td><a href="#bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</a></td>- <td><p>BatchSkipTasks cancels the specified task runs in batch.-The access is the same as BatchRunTasks().</p></td>- </tr>-- <tr>- <td>PreviewTaskRunRollback</td>- <td><a href="#bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</a></td>- <td><a href="#bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>GetRollout</td>- <td>GET</td>- <td>/v1/{name=projects/*/rollouts/*}</td>- <td></td>- </tr>---- <tr>- <td>ListRollouts</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/rollouts</td>- <td></td>- </tr>+ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent project where this rollout will be created.+Format: projects/{project} </p></td>+ </tr>-+ <tr>+ <td>rollout</td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td></td>+ <td><p>The rollout to create. </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetRolloutRequest">GetRolloutRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>- <tr>- <td>CreateRollout</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/rollouts</td>- <td>rollout</td>- </tr>+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the rollout to retrieve.+Format: projects/{project}/rollouts/{rollout} </p></td>+ </tr>---- <tr>- <td>PreviewRollout</td>- <td>POST</td>- <td>/v1/{project=projects/*}:previewRollout</td>- <td>*</td>- </tr>----- <tr>- <td>ListTaskRuns</td>- <td>GET</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns</td>- <td></td>- </tr>----- <tr>- <td>GetTaskRun</td>- <td>GET</td>- <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}</td>- <td></td>- </tr>----- <tr>- <td>GetTaskRunLog</td>- <td>GET</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/log</td>- <td></td>- </tr>----- <tr>- <td>GetTaskRunSession</td>- <td>GET</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session</td>- <td></td>- </tr>----- <tr>- <td>BatchRunTasks</td>- <td>POST</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun</td>- <td>*</td>- </tr>----- <tr>- <td>BatchSkipTasks</td>- <td>POST</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchSkip</td>- <td>*</td>- </tr>----- <tr>- <td>BatchCancelTaskRuns</td>- <td>POST</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns:batchCancel</td>- <td>*</td>- </tr>----- <tr>- <td>PreviewTaskRunRollback</td>- <td>POST</td>- <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}:previewRollback</td>- <td>*</td>- </tr>--</tbody></table>+---- <div class="file-heading">- <h2 id="v1/sheet_service.proto">v1/sheet_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.BatchCreateSheetRequest">BatchCreateSheetRequest</h3>+ <h3 id="bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</h3><p></p>@@ -29651,15 +29163,8 @@ The access is the same as BatchRunTasks().</p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource where all sheets will be created.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>requests</td>- <td><a href="#bytebase.v1.CreateSheetRequest">CreateSheetRequest</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}+TODO(d): check the resource_reference. </p></td></tr></tbody>@@ -29669,7 +29174,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.BatchCreateSheetResponse">BatchCreateSheetResponse</h3>+ <h3 id="bytebase.v1.GetTaskRunRequest">GetTaskRunRequest</h3><p></p>@@ -29680,10 +29185,10 @@ Format: projects/{project} </p></td><tbody><tr>- <td>sheets</td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr></tbody>@@ -29693,7 +29198,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.CreateSheetRequest">CreateSheetRequest</h3>+ <h3 id="bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</h3><p></p>@@ -29707,15 +29212,7 @@ Format: projects/{project} </p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource where this sheet will be created.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>sheet</td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>- <td></td>- <td><p>The sheet to create. </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr></tbody>@@ -29725,7 +29222,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.GetSheetRequest">GetSheetRequest</h3>+ <h3 id="bytebase.v1.ListRolloutsRequest">ListRolloutsRequest</h3><p></p>@@ -29736,18 +29233,33 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the sheet to retrieve.-Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p>The parent, which owns this collection of rollouts.+Format: projects/{project}+Use "projects/-" to list all rollouts from all projects. </p></td></tr><tr>- <td>raw</td>- <td><a href="#bool">bool</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>By default, the content of the sheet is cut off, set the `raw` to true to retrieve the full content. </p></td>+ <td><p>The maximum number of rollouts to return. The service may return fewer than+this value.+If unspecified, at most 10 rollouts will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListRollouts` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListRollouts` must match+the call that provided the page token. </p></td></tr></tbody>@@ -29757,7 +29269,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.Sheet">Sheet</h3>+ <h3 id="bytebase.v1.ListRolloutsResponse">ListRolloutsResponse</h3><p></p>@@ -29768,71 +29280,18 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the sheet resource, generated by the server.-Canonical parent is project.-Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The title of the sheet. </p></td>+ <td>rollouts</td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td>repeated</td>+ <td><p>The rollouts from the specified request. </p></td></tr><tr>- <td>creator</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The creator of the Sheet.-Format: users/{email} </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The create time of the sheet. </p></td>- </tr>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The last update time of the sheet. </p></td>- </tr>-- <tr>- <td>content</td>- <td><a href="#bytes">bytes</a></td>- <td></td>- <td><p>The content of the sheet.-By default, it will be cut off, if it doesn't match the `content_size`, you can-set the `raw` to true in GetSheet request to retrieve the full content. </p></td>- </tr>-- <tr>- <td>content_size</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>content_size is the full size of the content, may not match the size of the `content` field. </p></td>- </tr>-- <tr>- <td>payload</td>- <td><a href="#bytebase.v1.SheetPayload">SheetPayload</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>- <td></td>- <td><p>The SQL dialect. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -29842,7 +29301,7 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td- <h3 id="bytebase.v1.SheetCommand">SheetCommand</h3>+ <h3 id="bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</h3><p></p>@@ -29853,27 +29312,45 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td<tbody><tr>- <td>start</td>- <td><a href="#int32">int32</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The parent, which owns this collection of plans.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. </p></td></tr><tr>- <td>end</td>+ <td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>Not used.+The maximum number of taskRuns to return. The service may return fewer than+this value.+If unspecified, at most 10 taskRuns will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>- </tbody>- </table>---+ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used.+A page token, received from a previous `ListTaskRuns` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListTaskRuns` must match+the call that provided the page token. </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.SheetPayload">SheetPayload</h3>+ <h3 id="bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</h3><p></p>@@ -29884,31 +29361,18 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td<tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.SheetPayload.Type">SheetPayload.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_config</td>- <td><a href="#bytebase.v1.DatabaseConfig">DatabaseConfig</a></td>- <td></td>- <td><p>The snapshot of the database config when creating the sheet, be used to compare with the baseline_database_config and apply the diff to the database. </p></td>+ <td>task_runs</td>+ <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td>+ <td>repeated</td>+ <td><p>The taskRuns from the specified request. </p></td></tr><tr>- <td>baseline_database_config</td>- <td><a href="#bytebase.v1.DatabaseConfig">DatabaseConfig</a></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The snapshot of the baseline database config when creating the sheet. </p></td>- </tr>-- <tr>- <td>commands</td>- <td><a href="#bytebase.v1.SheetCommand">SheetCommand</a></td>- <td>repeated</td>- <td><p>The start and end position of each command in the sheet statement. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -29918,7 +29382,7 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td- <h3 id="bytebase.v1.UpdateSheetRequest">UpdateSheetRequest</h3>+ <h3 id="bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</h3><p></p>@@ -29929,25 +29393,18 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td<tbody><tr>- <td>sheet</td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>+ <td>project</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The sheet to update.--The sheet's `name` field is used to identify the sheet to update.-Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p>The name of the project.+Format: projects/{project} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>plan</td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td><td></td>- <td><p>The list of fields to be updated.-Fields are specified relative to the sheet.-(e.g. `title`, `statement`; *not* `sheet.title` or `sheet.statement`)-Only support update the following fields for now:-- `title`-- `statement` </p></td>+ <td><p>The plan used to preview rollout. </p></td></tr></tbody>@@ -29957,142 +29414,7 @@ Only support update the following fields for now:--- <h3 id="bytebase.v1.SheetPayload.Type">SheetPayload.Type</h3>- <p>Type of the SheetPayload.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>SCHEMA_DESIGN</td>- <td>1</td>- <td><p></p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SheetService">SheetService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>CreateSheet</td>- <td><a href="#bytebase.v1.CreateSheetRequest">CreateSheetRequest</a></td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>BatchCreateSheet</td>- <td><a href="#bytebase.v1.BatchCreateSheetRequest">BatchCreateSheetRequest</a></td>- <td><a href="#bytebase.v1.BatchCreateSheetResponse">BatchCreateSheetResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetSheet</td>- <td><a href="#bytebase.v1.GetSheetRequest">GetSheetRequest</a></td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateSheet</td>- <td><a href="#bytebase.v1.UpdateSheetRequest">UpdateSheetRequest</a></td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>- </thead>- <tbody>---- <tr>- <td>CreateSheet</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/sheets</td>- <td>sheet</td>- </tr>----- <tr>- <td>BatchCreateSheet</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/sheets:batchCreate</td>- <td>*</td>- </tr>----- <tr>- <td>GetSheet</td>- <td>GET</td>- <td>/v1/{name=projects/*/sheets/*}</td>- <td></td>- </tr>----- <tr>- <td>UpdateSheet</td>- <td>PATCH</td>- <td>/v1/{sheet.name=projects/*/sheets/*}</td>- <td>sheet</td>- </tr>--- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/sql_service.proto">v1/sql_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.AdminExecuteRequest">AdminExecuteRequest</h3>+ <h3 id="bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</h3><p></p>@@ -30106,36 +29428,7 @@ Only support update the following fields for now:<td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the instance name to execute the query against.-Format: instances/{instance}/databases/{databaseName} </p></td>- </tr>-- <tr>- <td>statement</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The SQL statement to execute. </p></td>- </tr>-- <tr>- <td>limit</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of rows to return. </p></td>- </tr>-- <tr>- <td>timeout</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The timeout for the request. </p></td>- </tr>-- <tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The default schema to execute the statement. Equals to the current schema in Oracle and search path in Postgres. </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr></tbody>@@ -30145,7 +29438,7 @@ Format: instances/{instance}/databases/{databaseName} </p></td>- <h3 id="bytebase.v1.AdminExecuteResponse">AdminExecuteResponse</h3>+ <h3 id="bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</h3><p></p>@@ -30156,10 +29449,10 @@ Format: instances/{instance}/databases/{databaseName} </p></td><tbody><tr>- <td>results</td>- <td><a href="#bytebase.v1.QueryResult">QueryResult</a></td>- <td>repeated</td>- <td><p>The query results. </p></td>+ <td>statement</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -30169,7 +29462,7 @@ Format: instances/{instance}/databases/{databaseName} </p></td>- <h3 id="bytebase.v1.Advice">Advice</h3>+ <h3 id="bytebase.v1.Rollout">Rollout</h3><p></p>@@ -30180,67 +29473,62 @@ Format: instances/{instance}/databases/{databaseName} </p></td><tbody><tr>- <td>status</td>- <td><a href="#bytebase.v1.Advice.Status">Advice.Status</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The advice status. </p></td>- </tr>-- <tr>- <td>code</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The advice code. </p></td>+ <td><p>The resource name of the rollout.+Format: projects/{project}/rollouts/{rollout} </p></td></tr><tr>- <td>title</td>+ <td>plan</td><td><a href="#string">string</a></td><td></td>- <td><p>The advice title. </p></td>+ <td><p>The plan that this rollout is based on.+Format: projects/{project}/plans/{plan} </p></td></tr><tr>- <td>content</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The advice content. </p></td>+ <td><p> </p></td></tr><tr>- <td>line</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The advice line number in the SQL statement. </p></td>+ <td>stages</td>+ <td><a href="#bytebase.v1.Stage">Stage</a></td>+ <td>repeated</td>+ <td><p>stages and thus tasks of the rollout. </p></td></tr><tr>- <td>column</td>- <td><a href="#int32">int32</a></td>+ <td>creator</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The advice column number in the SQL statement. </p></td>+ <td><p>Format: users/[email protected] </p></td></tr><tr>- <td>detail</td>- <td><a href="#string">string</a></td>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The advice detail. </p></td>+ <td><p> </p></td></tr><tr>- <td>start_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>1-based Position of the SQL statement.-To supersede `line` and `column` above. </p></td>+ <td><p> </p></td></tr><tr>- <td>end_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>+ <td>issue</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The issue associated with the rollout. Could be empty.+Format: projects/{project}/issues/{issue} </p></td></tr></tbody>@@ -30250,7 +29538,7 @@ To supersede `line` and `column` above. </p></td>- <h3 id="bytebase.v1.CheckRequest">CheckRequest</h3>+ <h3 id="bytebase.v1.Stage">Stage</h3><p></p>@@ -30264,29 +29552,20 @@ To supersede `line` and `column` above. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The database name to check against.-Format: instances/{instance}/databases/{database} </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td></tr><tr>- <td>statement</td>+ <td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>metadata</td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>- <td></td>- <td><p>The database metadata to check against. It can be used to check against an uncommitted metadata.-If not provided, the database metadata will be fetched from the database. </p></td>- </tr>-- <tr>- <td>change_type</td>- <td><a href="#bytebase.v1.CheckRequest.ChangeType">CheckRequest.ChangeType</a></td>- <td></td>+ <td>tasks</td>+ <td><a href="#bytebase.v1.Task">Task</a></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -30297,7 +29576,7 @@ If not provided, the database metadata will be fetched from the database. </p></- <h3 id="bytebase.v1.CheckResponse">CheckResponse</h3>+ <h3 id="bytebase.v1.Task">Task</h3><p></p>@@ -30308,9 +29587,95 @@ If not provided, the database metadata will be fetched from the database. </p></<tbody><tr>- <td>advices</td>- <td><a href="#bytebase.v1.Advice">Advice</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>spec_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A UUID4 string that uniquely identifies the Spec.+Could be empty if the rollout of the task does not have an associating plan. </p></td>+ </tr>++ <tr>+ <td>status</td>+ <td><a href="#bytebase.v1.Task.Status">Task.Status</a></td>+ <td></td>+ <td><p>Status is the status of the task. </p></td>+ </tr>++ <tr>+ <td>skipped_reason</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.Task.Type">Task.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>depends_on_tasks</td>+ <td><a href="#string">string</a></td><td>repeated</td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ </tr>++ <tr>+ <td>target</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: instances/{instance} if the task is DatabaseCreate.+Format: instances/{instance}/databases/{database} </p></td>+ </tr>++ <tr>+ <td>database_create</td>+ <td><a href="#bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>database_schema_baseline</td>+ <td><a href="#bytebase.v1.Task.DatabaseSchemaBaseline">Task.DatabaseSchemaBaseline</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>database_schema_update</td>+ <td><a href="#bytebase.v1.Task.DatabaseSchemaUpdate">Task.DatabaseSchemaUpdate</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>database_data_update</td>+ <td><a href="#bytebase.v1.Task.DatabaseDataUpdate">Task.DatabaseDataUpdate</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>database_data_export</td>+ <td><a href="#bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</a></td>+ <td></td><td><p> </p></td></tr>@@ -30321,7 +29686,7 @@ If not provided, the database metadata will be fetched from the database. </p></- <h3 id="bytebase.v1.ExportRequest">ExportRequest</h3>+ <h3 id="bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</h3><p></p>@@ -30332,57 +29697,60 @@ If not provided, the database metadata will be fetched from the database. </p></<tbody><tr>- <td>name</td>+ <td>project</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the instance name to execute the query against.-Format: instances/{instance}/databases/{databaseName}-Format: projects/{project}/issues/{issue} for data export issue. </p></td>+ <td><p>The project owning the database.+Format: projects/{project} </p></td></tr><tr>- <td>statement</td>+ <td>database</td><td><a href="#string">string</a></td><td></td>- <td><p>The SQL statement to execute. </p></td>+ <td><p>database name </p></td></tr><tr>- <td>limit</td>- <td><a href="#int32">int32</a></td>+ <td>table</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The maximum number of rows to return. </p></td>+ <td><p>table name </p></td></tr><tr>- <td>format</td>- <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>+ <td>sheet</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The export format. </p></td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>admin</td>- <td><a href="#bool">bool</a></td>+ <td>character_set</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The admin is used for workspace owner and DBA for exporting data from SQL Editor Admin mode.-The exported data is not masked. </p></td>+ <td><p> </p></td></tr><tr>- <td>password</td>+ <td>collation</td><td><a href="#string">string</a></td><td></td>- <td><p>The zip password provide by users. </p></td>+ <td><p> </p></td></tr><tr>- <td>data_source_id</td>+ <td>environment</td><td><a href="#string">string</a></td><td></td>- <td><p>The id of data source.-It is used for querying admin data source even if the instance has read-only data sources.-Or it can be used to query a specific read-only data source. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>labels</td>+ <td><a href="#bytebase.v1.Task.DatabaseCreate.LabelsEntry">Task.DatabaseCreate.LabelsEntry</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -30392,7 +29760,7 @@ Or it can be used to query a specific read-only data source. </p></td>- <h3 id="bytebase.v1.ExportResponse">ExportResponse</h3>+ <h3 id="bytebase.v1.Task.DatabaseCreate.LabelsEntry">Task.DatabaseCreate.LabelsEntry</h3><p></p>@@ -30403,10 +29771,17 @@ Or it can be used to query a specific read-only data source. </p></td><tbody><tr>- <td>content</td>- <td><a href="#bytes">bytes</a></td>+ <td>key</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The export file content. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -30416,7 +29791,7 @@ Or it can be used to query a specific read-only data source. </p></td>- <h3 id="bytebase.v1.GenerateRestoreSQLRequest">GenerateRestoreSQLRequest</h3>+ <h3 id="bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</h3><p></p>@@ -30427,35 +29802,34 @@ Or it can be used to query a specific read-only data source. </p></td><tbody><tr>- <td>name</td>+ <td>target</td><td><a href="#string">string</a></td><td></td>- <td><p>The database name to execute the query against.-Format: instances/{instance}/databases/{databaseName} </p></td>+ <td><p>The resource name of the target.+Format: instances/{instance-id}/databases/{database-name} </p></td></tr><tr><td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the sheet. It is used to get the original statement.+ <td><p>The resource name of the sheet.Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>backup_data_source</td>- <td><a href="#string">string</a></td>+ <td>format</td>+ <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td><td></td>- <td><p>The data source to restore from.-Format: instances/{instance}/databases/{databaseName}, for general engines.-Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG only. </p></td>+ <td><p>The format of the exported file. </p></td></tr><tr>- <td>backup_table</td>+ <td>password</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The backup table name. </p></td>+ <td>optional</td>+ <td><p>The zip password provide by users.+Leave it empty if no needs to encrypt the zip file. </p></td></tr></tbody>@@ -30465,7 +29839,7 @@ Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG on- <h3 id="bytebase.v1.GenerateRestoreSQLResponse">GenerateRestoreSQLResponse</h3>+ <h3 id="bytebase.v1.Task.DatabaseDataUpdate">Task.DatabaseDataUpdate</h3><p></p>@@ -30476,10 +29850,17 @@ Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG on<tbody><tr>- <td>statement</td>+ <td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p>The restore SQL statement. </p></td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>schema_version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -30489,7 +29870,7 @@ Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG on- <h3 id="bytebase.v1.ParseMyBatisMapperRequest">ParseMyBatisMapperRequest</h3>+ <h3 id="bytebase.v1.Task.DatabaseSchemaBaseline">Task.DatabaseSchemaBaseline</h3><p></p>@@ -30500,8 +29881,8 @@ Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG on<tbody><tr>- <td>content</td>- <td><a href="#bytes">bytes</a></td>+ <td>schema_version</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -30513,7 +29894,7 @@ Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG on- <h3 id="bytebase.v1.ParseMyBatisMapperResponse">ParseMyBatisMapperResponse</h3>+ <h3 id="bytebase.v1.Task.DatabaseSchemaUpdate">Task.DatabaseSchemaUpdate</h3><p></p>@@ -30524,9 +29905,16 @@ Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG on<tbody><tr>- <td>statements</td>+ <td>sheet</td><td><a href="#string">string</a></td>- <td>repeated</td>+ <td></td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>schema_version</td>+ <td><a href="#string">string</a></td>+ <td></td><td><p> </p></td></tr>@@ -30537,7 +29925,7 @@ Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG on- <h3 id="bytebase.v1.PrettyRequest">PrettyRequest</h3>+ <h3 id="bytebase.v1.TaskRun">TaskRun</h3><p></p>@@ -30548,25 +29936,102 @@ Or instances/{instance}/databases/{databaseName}/schemas/{schemaName}, for PG on<tbody><tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>+ </tr>++ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: user/[email protected] </p></td>+ </tr>++ <tr>+ <td>updater</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: user/[email protected] </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr><tr>- <td>current_schema</td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The SDL format SQL schema information that was dumped from a database engine.-This information will be sorted to match the order of statements in the userSchema. </p></td>+ <td><p> </p></td></tr><tr>- <td>expected_schema</td>+ <td>status</td>+ <td><a href="#bytebase.v1.TaskRun.Status">TaskRun.Status</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>detail</td><td><a href="#string">string</a></td><td></td>- <td><p>The expected SDL schema. This schema will be checked for correctness and normalized. </p></td>+ <td><p>Below are the results of a task run. </p></td>+ </tr>++ <tr>+ <td>change_history</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource name of the change history+Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>+ </tr>++ <tr>+ <td>schema_version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>start_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>export_archive_status</td>+ <td><a href="#bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>prior_backup_detail</td>+ <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</a></td>+ <td></td>+ <td><p>The prior backup detail that will be used to rollback the task run. </p></td>+ </tr>++ <tr>+ <td>scheduler_info</td>+ <td><a href="#bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -30576,7 +30041,7 @@ This information will be sorted to match the order of statements in the userSche- <h3 id="bytebase.v1.PrettyResponse">PrettyResponse</h3>+ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</h3><p></p>@@ -30587,17 +30052,55 @@ This information will be sorted to match the order of statements in the userSche<tbody><tr>- <td>current_schema</td>- <td><a href="#string">string</a></td>+ <td>items</td>+ <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>source_table</td>+ <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td><td></td>- <td><p>The pretty-formatted version of current schema. </p></td>+ <td><p>The original table information. </p></td></tr><tr>- <td>expected_schema</td>- <td><a href="#string">string</a></td>+ <td>target_table</td>+ <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td><td></td>- <td><p>The expected SDL schema after normalizing. </p></td>+ <td><p>The target backup table information. </p></td>+ </tr>++ <tr>+ <td>start_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>end_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -30607,7 +30110,7 @@ This information will be sorted to match the order of statements in the userSche- <h3 id="bytebase.v1.QueryHistory">QueryHistory</h3>+ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</h3><p></p>@@ -30618,59 +30121,85 @@ This information will be sorted to match the order of statements in the userSche<tbody><tr>- <td>name</td>+ <td>database</td><td><a href="#string">string</a></td><td></td>- <td><p>The name for the query history.-Format: queryHistories/{uid} </p></td>+ <td><p>The database information.+Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>database</td>+ <td>schema</td><td><a href="#string">string</a></td><td></td>- <td><p>The database name to execute the query.-Format: instances/{instance}/databases/{databaseName} </p></td>+ <td><p> </p></td></tr><tr>- <td>creator</td>+ <td>table</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>create_time</td>+ <td>report_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr><tr>- <td>statement</td>- <td><a href="#string">string</a></td>+ <td>waiting_cause</td>+ <td><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</a></td><td></td><td><p> </p></td></tr>- <tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>duration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>connection_limit</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.QueryHistory.Type">QueryHistory.Type</a></td>+ <td>task</td>+ <td><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task">TaskRun.SchedulerInfo.WaitingCause.Task</a></td><td></td><td><p> </p></td></tr>@@ -30682,355 +30211,1169 @@ Format: instances/{instance}/databases/{databaseName} </p></td>- <h3 id="bytebase.v1.QueryOption">QueryOption</h3>+ <h3 id="bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task">TaskRun.SchedulerInfo.WaitingCause.Task</h3><p></p>- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>redis_run_commands_on</td>- <td><a href="#bytebase.v1.QueryOption.RedisRunCommandsOn">QueryOption.RedisRunCommandsOn</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>-+ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>task</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ </tr>++ <tr>+ <td>issue</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/issues/{issue} </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLog">TaskRunLog</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log </p></td>+ </tr>++ <tr>+ <td>entries</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>log_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>deploy_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>schema_dump</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>command_execute</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>database_sync</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>task_run_status_update</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate">TaskRunLogEntry.TaskRunStatusUpdate</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>transaction_control</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>prior_backup</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup">TaskRunLogEntry.PriorBackup</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>log_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>command_indexes</td>+ <td><a href="#int32">int32</a></td>+ <td>repeated</td>+ <td><p>The indexes of the executed commands. </p></td>+ </tr>++ <tr>+ <td>response</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>log_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>affected_rows</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>all_affected_rows</td>+ <td><a href="#int32">int32</a></td>+ <td>repeated</td>+ <td><p>`all_affected_rows` is the affected rows of each command.+`all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>start_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>end_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.PriorBackup">TaskRunLogEntry.PriorBackup</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>start_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>end_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>prior_backup_detail</td>+ <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>start_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>end_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate">TaskRunLogEntry.TaskRunStatusUpdate</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>status</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunSession">TaskRunSession</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session </p></td>+ </tr>++ <tr>+ <td>postgres</td>+ <td><a href="#bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>session</td>+ <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>+ <td></td>+ <td><p>`session` is the session of the task run executing commands. </p></td>+ </tr>++ <tr>+ <td>blocking_sessions</td>+ <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>+ <td>repeated</td>+ <td><p>`blocking_sessions` block `session`. </p></td>+ </tr>++ <tr>+ <td>blocked_sessions</td>+ <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>+ <td>repeated</td>+ <td><p>`blocked_sessions` are blocked by `session`. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</h3>+ <p>Read from `pg_stat_activity`</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>pid</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>blocked_by_pids</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>query</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>state</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>wait_event_type</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>wait_event</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>datname</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>usename</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>application_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>client_addr</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>client_port</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>backend_start</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>xact_start</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>query_start</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++++ <h3 id="bytebase.v1.Task.Status">Task.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>NOT_STARTED</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PENDING</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RUNNING</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FAILED</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SKIPPED</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Task.Type">Task.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GENERAL</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_CREATE</td>+ <td>2</td>+ <td><p>use payload DatabaseCreate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_BASELINE</td>+ <td>3</td>+ <td><p>use payload DatabaseSchemaBaseline</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE</td>+ <td>4</td>+ <td><p>use payload DatabaseSchemaUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE_SDL</td>+ <td>5</td>+ <td><p>use payload DatabaseSchemaUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE_GHOST_SYNC</td>+ <td>6</td>+ <td><p>use payload DatabaseSchemaUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER</td>+ <td>7</td>+ <td><p>use payload nil</p></td>+ </tr>++ <tr>+ <td>DATABASE_DATA_UPDATE</td>+ <td>8</td>+ <td><p>use payload DatabaseDataUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_DATA_EXPORT</td>+ <td>12</td>+ <td><p>use payload DatabaseDataExport</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>EXPORT_ARCHIVE_STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>READY</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>EXPORTED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRun.Status">TaskRun.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PENDING</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RUNNING</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FAILED</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RUNNING_WAITING</td>+ <td>1</td>+ <td><p>the task run is ready to be executed by the scheduler</p></td>+ </tr>++ <tr>+ <td>RUNNING_RUNNING</td>+ <td>2</td>+ <td><p>the task run is being executed by the scheduler</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BEGIN</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>COMMIT</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ROLLBACK</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SCHEMA_DUMP</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>COMMAND_EXECUTE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_SYNC</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TASK_RUN_STATUS_UPDATE</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TRANSACTION_CONTROL</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PRIOR_BACKUP</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.RolloutService">RolloutService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetRollout</td>+ <td><a href="#bytebase.v1.GetRolloutRequest">GetRolloutRequest</a></td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListRollouts</td>+ <td><a href="#bytebase.v1.ListRolloutsRequest">ListRolloutsRequest</a></td>+ <td><a href="#bytebase.v1.ListRolloutsResponse">ListRolloutsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateRollout</td>+ <td><a href="#bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</a></td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PreviewRollout</td>+ <td><a href="#bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</a></td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListTaskRuns</td>+ <td><a href="#bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</a></td>+ <td><a href="#bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetTaskRun</td>+ <td><a href="#bytebase.v1.GetTaskRunRequest">GetTaskRunRequest</a></td>+ <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetTaskRunLog</td>+ <td><a href="#bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</a></td>+ <td><a href="#bytebase.v1.TaskRunLog">TaskRunLog</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetTaskRunSession</td>+ <td><a href="#bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</a></td>+ <td><a href="#bytebase.v1.TaskRunSession">TaskRunSession</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BatchRunTasks</td>+ <td><a href="#bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</a></td>+ <td><a href="#bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</a></td>+ <td><p>BatchRunTasks creates task runs for the specified tasks.+DataExport issue only allows the creator to run the task.+Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA.+Follow role-based rollout policy for the environment.</p></td>+ </tr>++ <tr>+ <td>BatchSkipTasks</td>+ <td><a href="#bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</a></td>+ <td><a href="#bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</a></td>+ <td><p>BatchSkipTasks skips the specified tasks.+The access is the same as BatchRunTasks().</p></td>+ </tr>++ <tr>+ <td>BatchCancelTaskRuns</td>+ <td><a href="#bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</a></td>+ <td><a href="#bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</a></td>+ <td><p>BatchSkipTasks cancels the specified task runs in batch.+The access is the same as BatchRunTasks().</p></td>+ </tr>++ <tr>+ <td>PreviewTaskRunRollback</td>+ <td><a href="#bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</a></td>+ <td><a href="#bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++---- <h3 id="bytebase.v1.QueryRequest">QueryRequest</h3>- <p></p>--- <table class="field-table">++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name is the instance name to execute the query against.-Format: instances/{instance}/databases/{databaseName} </p></td>- </tr>-- <tr>- <td>statement</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The SQL statement to execute. </p></td>- </tr>-- <tr>- <td>limit</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of rows to return. </p></td>- </tr>-- <tr>- <td>timeout</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td>optional</td>- <td><p>The timeout for the request. </p></td>- </tr>-- <tr>- <td>data_source_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The id of data source.-It is used for querying admin data source even if the instance has read-only data sources.-Or it can be used to query a specific read-only data source. </p></td>- </tr>-- <tr>- <td>explain</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Explain the statement. </p></td>- </tr>- <tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The default schema to search objects. Equals to the current schema in Oracle and search path in Postgres. </p></td>- </tr>+ <tr>+ <td>GetRollout</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/rollouts/*}</td>+ <td></td>+ </tr>- <tr>- <td>query_option</td>- <td><a href="#bytebase.v1.QueryOption">QueryOption</a></td>- <td></td>- <td><p> </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.QueryResponse">QueryResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>results</td>- <td><a href="#bytebase.v1.QueryResult">QueryResult</a></td>- <td>repeated</td>- <td><p>The query results. </p></td>- </tr>+ <tr>+ <td>ListRollouts</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/rollouts</td>+ <td></td>+ </tr>- <tr>- <td>allow_export</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>The query is allowed to be exported or not. </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.QueryResult">QueryResult</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>column_names</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>Column names of the query result. </p></td>- </tr>+ <tr>+ <td>CreateRollout</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/rollouts</td>+ <td>rollout</td>+ </tr>- <tr>- <td>column_type_names</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>Column types of the query result.-The types come from the Golang SQL driver. </p></td>- </tr>+- <tr>- <td>rows</td>- <td><a href="#bytebase.v1.QueryRow">QueryRow</a></td>- <td>repeated</td>- <td><p>Rows of the query result. </p></td>- </tr>- <tr>- <td>masked</td>- <td><a href="#bool">bool</a></td>- <td>repeated</td>- <td><p>Columns are masked or not. </p></td>- </tr>+ <tr>+ <td>PreviewRollout</td>+ <td>POST</td>+ <td>/v1/{project=projects/*}:previewRollout</td>+ <td>*</td>+ </tr>- <tr>- <td>sensitive</td>- <td><a href="#bool">bool</a></td>- <td>repeated</td>- <td><p>Columns are sensitive or not. </p></td>- </tr>+- <tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The error message if the query failed. </p></td>- </tr>- <tr>- <td>latency</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The time it takes to execute the query. </p></td>- </tr>+ <tr>+ <td>ListTaskRuns</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns</td>+ <td></td>+ </tr>- <tr>- <td>statement</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The query statement for the result. </p></td>- </tr>+- <tr>- <td>postgres_error</td>- <td><a href="#bytebase.v1.QueryResult.PostgresError">QueryResult.PostgresError</a></td>- <td></td>- <td><p> </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.QueryResult.PostgresError">QueryResult.PostgresError</h3>- <p>refer https://www.postgresql.org/docs/11/protocol-error-fields.html</p><p>for field description.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>GetTaskRun</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}</td>+ <td></td>+ </tr>- <tr>- <td>severity</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>code</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>message</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>GetTaskRunLog</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/log</td>+ <td></td>+ </tr>- <tr>- <td>detail</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>hint</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>position</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>GetTaskRunSession</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session</td>+ <td></td>+ </tr>- <tr>- <td>internal_position</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>internal_query</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>where</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>BatchRunTasks</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun</td>+ <td>*</td>+ </tr>- <tr>- <td>schema_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>table_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>column_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>BatchSkipTasks</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchSkip</td>+ <td>*</td>+ </tr>- <tr>- <td>data_type_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>constraint_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>file</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>BatchCancelTaskRuns</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns:batchCancel</td>+ <td>*</td>+ </tr>- <tr>- <td>line</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>routine</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>PreviewTaskRunRollback</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}:previewRollback</td>+ <td>*</td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.QueryRow">QueryRow</h3>+ <div class="file-heading">+ <h2 id="v1/sheet_service.proto">v1/sheet_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.BatchCreateSheetRequest">BatchCreateSheetRequest</h3><p></p>@@ -31041,10 +31384,18 @@ The types come from the Golang SQL driver. </p></td><tbody><tr>- <td>values</td>- <td><a href="#bytebase.v1.RowValue">RowValue</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource where all sheets will be created.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>requests</td>+ <td><a href="#bytebase.v1.CreateSheetRequest">CreateSheetRequest</a></td><td>repeated</td>- <td><p>Row values of the query result. </p></td>+ <td><p> </p></td></tr></tbody>@@ -31054,106 +31405,21 @@ The types come from the Golang SQL driver. </p></td>- <h3 id="bytebase.v1.RowValue">RowValue</h3>+ <h3 id="bytebase.v1.BatchCreateSheetResponse">BatchCreateSheetResponse</h3><p></p><table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>null_value</td>- <td><a href="#google.protobuf.NullValue">google.protobuf.NullValue</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>bool_value</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>bytes_value</td>- <td><a href="#bytes">bytes</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>double_value</td>- <td><a href="#double">double</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>float_value</td>- <td><a href="#float">float</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>int32_value</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>int64_value</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>string_value</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>uint32_value</td>- <td><a href="#uint32">uint32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>uint64_value</td>- <td><a href="#uint64">uint64</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>value_value</td>- <td><a href="#google.protobuf.Value">google.protobuf.Value</a></td>- <td></td>- <td><p>value_value is used for Spanner and TUPLE ARRAY MAP in Clickhouse only. </p></td>- </tr>-- <tr>- <td>timestamp_value</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>timestamp_value is used for the timestamp without time zone data type, meaning it only includes the timestamp without any time zone or location info.-Although it may be expressed as a UTC value, it should be seen as a timestamp missing location context. </p></td>- </tr>+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>timestamp_tz_value</td>- <td><a href="#bytebase.v1.RowValue.TimestampTZ">RowValue.TimestampTZ</a></td>- <td></td>- <td><p>timestamp_tz_value is used for the timestamptz data type, which accurately represents the timestamp with location information. </p></td>+ <td>sheets</td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -31163,7 +31429,7 @@ Although it may be expressed as a UTC value, it should be seen as a timestamp mi- <h3 id="bytebase.v1.RowValue.TimestampTZ">RowValue.TimestampTZ</h3>+ <h3 id="bytebase.v1.CreateSheetRequest">CreateSheetRequest</h3><p></p>@@ -31174,28 +31440,18 @@ Although it may be expressed as a UTC value, it should be seen as a timestamp mi<tbody><tr>- <td>timestamp</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>zone</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>Zone is the time zone abbreviations in timezone database such as "PDT", "PST".-https://en.wikipedia.org/wiki/List_of_tz_database_time_zones-We retrieve the time zone information from the timestamptz field in the database.-A timestamp is in UTC or epoch time, and with zone info, we can convert it to a local time string.-Zone and offset are returned by time.Time.Zone() </p></td>+ <td><p>The parent resource where this sheet will be created.+Format: projects/{project} </p></td></tr><tr>- <td>offset</td>- <td><a href="#int32">int32</a></td>+ <td>sheet</td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td><td></td>- <td><p>The offset is in seconds east of UTC </p></td>+ <td><p>The sheet to create. </p></td></tr></tbody>@@ -31205,7 +31461,7 @@ Zone and offset are returned by time.Time.Zone() </p></td>- <h3 id="bytebase.v1.SearchQueryHistoriesRequest">SearchQueryHistoriesRequest</h3>+ <h3 id="bytebase.v1.GetSheetRequest">GetSheetRequest</h3><p></p>@@ -31216,36 +31472,18 @@ Zone and offset are returned by time.Time.Zone() </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of histories to return.-The service may return fewer than this value.-If unspecified, at most 10 history entries will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListQueryHistory` call.-Provide this to retrieve the subsequent page. </p></td>+ <td><p>The name of the sheet to retrieve.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>filter</td>- <td><a href="#string">string</a></td>+ <td>raw</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>filter is the filter to apply on the search query history,-follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.-Support filter by:-- database, for example:- database = "instances/{instance}/databases/{database}"-- instance, for example:- instance = "instance/{instance}"-- type, for example:- type = "QUERY" </p></td>+ <td><p>By default, the content of the sheet is cut off, set the `raw` to true to retrieve the full content. </p></td></tr></tbody>@@ -31255,7 +31493,7 @@ Support filter by:- <h3 id="bytebase.v1.SearchQueryHistoriesResponse">SearchQueryHistoriesResponse</h3>+ <h3 id="bytebase.v1.Sheet">Sheet</h3><p></p>@@ -31266,19 +31504,71 @@ Support filter by:<tbody><tr>- <td>query_histories</td>- <td><a href="#bytebase.v1.QueryHistory">QueryHistory</a></td>- <td>repeated</td>- <td><p>The list of history. </p></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the sheet resource, generated by the server.+Canonical parent is project.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>next_page_token</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>A token to retrieve next page of history.-Pass this value in the page_token field in the subsequent call to `ListQueryHistory` method-to retrieve the next page of history. </p></td>+ <td><p>The title of the sheet. </p></td>+ </tr>++ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The creator of the Sheet.+Format: users/{email} </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>The create time of the sheet. </p></td>+ </tr>++ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>The last update time of the sheet. </p></td>+ </tr>++ <tr>+ <td>content</td>+ <td><a href="#bytes">bytes</a></td>+ <td></td>+ <td><p>The content of the sheet.+By default, it will be cut off, if it doesn't match the `content_size`, you can+set the `raw` to true in GetSheet request to retrieve the full content. </p></td>+ </tr>++ <tr>+ <td>content_size</td>+ <td><a href="#int64">int64</a></td>+ <td></td>+ <td><p>content_size is the full size of the content, may not match the size of the `content` field. </p></td>+ </tr>++ <tr>+ <td>payload</td>+ <td><a href="#bytebase.v1.SheetPayload">SheetPayload</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td></td>+ <td><p>The SQL dialect. </p></td></tr></tbody>@@ -31288,7 +31578,7 @@ to retrieve the next page of history. </p></td>- <h3 id="bytebase.v1.StringifyMetadataRequest">StringifyMetadataRequest</h3>+ <h3 id="bytebase.v1.SheetCommand">SheetCommand</h3><p></p>@@ -31299,24 +31589,17 @@ to retrieve the next page of history. </p></td><tbody><tr>- <td>metadata</td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td>start</td>+ <td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr><tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>- <td></td>- <td><p>The database engine of the schema string. </p></td>- </tr>-- <tr>- <td>classification_from_config</td>- <td><a href="#bool">bool</a></td>+ <td>end</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>If false, we will build the raw common by classification in database config. </p></td>+ <td><p> </p></td></tr></tbody>@@ -31326,7 +31609,7 @@ to retrieve the next page of history. </p></td>- <h3 id="bytebase.v1.StringifyMetadataResponse">StringifyMetadataResponse</h3>+ <h3 id="bytebase.v1.SheetPayload">SheetPayload</h3><p></p>@@ -31337,99 +31620,83 @@ to retrieve the next page of history. </p></td><tbody><tr>- <td>schema</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.SheetPayload.Type">SheetPayload.Type</a></td><td></td><td><p> </p></td></tr>- </tbody>- </table>-------- <h3 id="bytebase.v1.Advice.Status">Advice.Status</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p>Unspecified.</p></td>- </tr>-- <tr>- <td>SUCCESS</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>WARNING</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>ERROR</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.CheckRequest.ChangeType">CheckRequest.ChangeType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>CHANGE_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>DDL</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DDL_GHOST</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>DML</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>SQL_EDITOR</td>- <td>4</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+ <tr>+ <td>database_config</td>+ <td><a href="#bytebase.v1.DatabaseConfig">DatabaseConfig</a></td>+ <td></td>+ <td><p>The snapshot of the database config when creating the sheet, be used to compare with the baseline_database_config and apply the diff to the database. </p></td>+ </tr>++ <tr>+ <td>baseline_database_config</td>+ <td><a href="#bytebase.v1.DatabaseConfig">DatabaseConfig</a></td>+ <td></td>+ <td><p>The snapshot of the baseline database config when creating the sheet. </p></td>+ </tr>++ <tr>+ <td>commands</td>+ <td><a href="#bytebase.v1.SheetCommand">SheetCommand</a></td>+ <td>repeated</td>+ <td><p>The start and end position of each command in the sheet statement. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.QueryHistory.Type">QueryHistory.Type</h3>+ <h3 id="bytebase.v1.UpdateSheetRequest">UpdateSheetRequest</h3><p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>sheet</td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td>+ <td></td>+ <td><p>The sheet to update.++The sheet's `name` field is used to identify the sheet to update.+Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to be updated.+Fields are specified relative to the sheet.+(e.g. `title`, `statement`; *not* `sheet.title` or `sheet.statement`)+Only support update the following fields for now:+- `title`+- `statement` </p></td>+ </tr>++ </tbody>+ </table>++++++++ <h3 id="bytebase.v1.SheetPayload.Type">SheetPayload.Type</h3>+ <p>Type of the SheetPayload.</p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -31443,46 +31710,11 @@ to retrieve the next page of history. </p></td></tr><tr>- <td>QUERY</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>EXPORT</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.QueryOption.RedisRunCommandsOn">QueryOption.RedisRunCommandsOn</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>REDIS_RUN_COMMANDS_ON_UNSPECIFIED</td>- <td>0</td>- <td><p>UNSPECIFIED defaults to SINGLE_NODE.</p></td>- </tr>-- <tr>- <td>SINGLE_NODE</td>+ <td>SCHEMA_DESIGN</td><td>1</td><td><p></p></td></tr>- <tr>- <td>ALL_NODES</td>- <td>2</td>- <td><p></p></td>- </tr>-</tbody></table>@@ -31490,7 +31722,7 @@ to retrieve the next page of history. </p></td>- <h3 id="bytebase.v1.SQLService">SQLService</h3>+ <h3 id="bytebase.v1.SheetService">SheetService</h3><p></p><table class="enum-table"><thead>@@ -31499,68 +31731,33 @@ to retrieve the next page of history. </p></td><tbody><tr>- <td>Query</td>- <td><a href="#bytebase.v1.QueryRequest">QueryRequest</a></td>- <td><a href="#bytebase.v1.QueryResponse">QueryResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>AdminExecute</td>- <td><a href="#bytebase.v1.AdminExecuteRequest">AdminExecuteRequest</a> stream</td>- <td><a href="#bytebase.v1.AdminExecuteResponse">AdminExecuteResponse</a> stream</td>- <td><p></p></td>- </tr>-- <tr>- <td>SearchQueryHistories</td>- <td><a href="#bytebase.v1.SearchQueryHistoriesRequest">SearchQueryHistoriesRequest</a></td>- <td><a href="#bytebase.v1.SearchQueryHistoriesResponse">SearchQueryHistoriesResponse</a></td>- <td><p>SearchQueryHistories searches query histories for the caller.</p></td>- </tr>-- <tr>- <td>Export</td>- <td><a href="#bytebase.v1.ExportRequest">ExportRequest</a></td>- <td><a href="#bytebase.v1.ExportResponse">ExportResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>Check</td>- <td><a href="#bytebase.v1.CheckRequest">CheckRequest</a></td>- <td><a href="#bytebase.v1.CheckResponse">CheckResponse</a></td>+ <td>CreateSheet</td>+ <td><a href="#bytebase.v1.CreateSheetRequest">CreateSheetRequest</a></td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td><td><p></p></td></tr><tr>- <td>ParseMyBatisMapper</td>- <td><a href="#bytebase.v1.ParseMyBatisMapperRequest">ParseMyBatisMapperRequest</a></td>- <td><a href="#bytebase.v1.ParseMyBatisMapperResponse">ParseMyBatisMapperResponse</a></td>+ <td>BatchCreateSheet</td>+ <td><a href="#bytebase.v1.BatchCreateSheetRequest">BatchCreateSheetRequest</a></td>+ <td><a href="#bytebase.v1.BatchCreateSheetResponse">BatchCreateSheetResponse</a></td><td><p></p></td></tr><tr>- <td>Pretty</td>- <td><a href="#bytebase.v1.PrettyRequest">PrettyRequest</a></td>- <td><a href="#bytebase.v1.PrettyResponse">PrettyResponse</a></td>+ <td>GetSheet</td>+ <td><a href="#bytebase.v1.GetSheetRequest">GetSheetRequest</a></td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td><td><p></p></td></tr><tr>- <td>StringifyMetadata</td>- <td><a href="#bytebase.v1.StringifyMetadataRequest">StringifyMetadataRequest</a></td>- <td><a href="#bytebase.v1.StringifyMetadataResponse">StringifyMetadataResponse</a></td>+ <td>UpdateSheet</td>+ <td><a href="#bytebase.v1.UpdateSheetRequest">UpdateSheetRequest</a></td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td><td><p></p></td></tr>- <tr>- <td>GenerateRestoreSQL</td>- <td><a href="#bytebase.v1.GenerateRestoreSQLRequest">GenerateRestoreSQLRequest</a></td>- <td><a href="#bytebase.v1.GenerateRestoreSQLResponse">GenerateRestoreSQLResponse</a></td>- <td><p>Deprecated.</p></td>- </tr>-</tbody></table>@@ -31582,90 +31779,19 @@ to retrieve the next page of history. </p></td><tr>- <td>Query</td>- <td>POST</td>- <td>/v1/{name=instances/*/databases/*}:query</td>- <td>*</td>- </tr>-- <tr>- <td>Query</td>- <td>POST</td>- <td>/v1/{name=instances/*}:query</td>- <td>*</td>- </tr>----- <tr>- <td>AdminExecute</td>- <td>GET</td>- <td>/v1:adminExecute</td>- <td></td>- </tr>----- <tr>- <td>SearchQueryHistories</td>- <td>POST</td>- <td>/v1/queryHistories:search</td>- <td>*</td>- </tr>----- <tr>- <td>Export</td>- <td>POST</td>- <td>/v1/{name=instances/*/databases/*}:export</td>- <td>*</td>- </tr>-- <tr>- <td>Export</td>- <td>POST</td>- <td>/v1/{name=instances/*}:export</td>- <td>*</td>- </tr>-- <tr>- <td>Export</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:export</td>- <td>*</td>- </tr>----- <tr>- <td>Check</td>- <td>POST</td>- <td>/v1/sql/check</td>- <td>*</td>- </tr>----- <tr>- <td>ParseMyBatisMapper</td>+ <td>CreateSheet</td><td>POST</td>- <td>/v1/sql/parseMyBatisMapper</td>- <td>*</td>+ <td>/v1/{parent=projects/*}/sheets</td>+ <td>sheet</td></tr><tr>- <td>Pretty</td>+ <td>BatchCreateSheet</td><td>POST</td>- <td>/v1/sql/pretty</td>+ <td>/v1/{parent=projects/*}/sheets:batchCreate</td><td>*</td></tr>@@ -31673,20 +31799,20 @@ to retrieve the next page of history. </p></td><tr>- <td>StringifyMetadata</td>- <td>POST</td>- <td>/v1/schemaDesign:stringifyMetadata</td>- <td>*</td>+ <td>GetSheet</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/sheets/*}</td>+ <td></td></tr><tr>- <td>GenerateRestoreSQL</td>- <td>POST</td>- <td>/v1/{name=instances/*/databases/*}:generateRestoreSQL</td>- <td>*</td>+ <td>UpdateSheet</td>+ <td>PATCH</td>+ <td>/v1/{sheet.name=projects/*/sheets/*}</td>+ <td>sheet</td></tr>diff --git a/proto/generated-go/v1/release_service.pb.go b/proto/generated-go/v1/release_service.pb.goindex 0a4c200e39..cd5ad90a4b 100644--- a/proto/generated-go/v1/release_service.pb.go+++ b/proto/generated-go/v1/release_service.pb.go@@ -455,6 +455,119 @@ func (x *UndeleteReleaseRequest) GetName() string {return ""}+type CheckReleaseRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: projects/{project}+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The release to check.+ Release *Release `protobuf:"bytes,2,opt,name=release,proto3" json:"release,omitempty"`+ // The targets to dry-run the release.+ // Can be database or databaseGroup.+ // Format:+ // projects/{project}/databaseGroups/{databaseGroup}+ // instances/{instance}/databases/{database}+ Targets []string `protobuf:"bytes,3,rep,name=targets,proto3" json:"targets,omitempty"`+}++func (x *CheckReleaseRequest) Reset() {+ *x = CheckReleaseRequest{}+ mi := &file_v1_release_service_proto_msgTypes[7]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *CheckReleaseRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*CheckReleaseRequest) ProtoMessage() {}++func (x *CheckReleaseRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_release_service_proto_msgTypes[7]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use CheckReleaseRequest.ProtoReflect.Descriptor instead.+func (*CheckReleaseRequest) Descriptor() ([]byte, []int) {+ return file_v1_release_service_proto_rawDescGZIP(), []int{7}+}++func (x *CheckReleaseRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++func (x *CheckReleaseRequest) GetRelease() *Release {+ if x != nil {+ return x.Release+ }+ return nil+}++func (x *CheckReleaseRequest) GetTargets() []string {+ if x != nil {+ return x.Targets+ }+ return nil+}++type CheckReleaseResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Results []*CheckReleaseResponse_CheckResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`+}++func (x *CheckReleaseResponse) Reset() {+ *x = CheckReleaseResponse{}+ mi := &file_v1_release_service_proto_msgTypes[8]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *CheckReleaseResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*CheckReleaseResponse) ProtoMessage() {}++func (x *CheckReleaseResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_release_service_proto_msgTypes[8]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use CheckReleaseResponse.ProtoReflect.Descriptor instead.+func (*CheckReleaseResponse) Descriptor() ([]byte, []int) {+ return file_v1_release_service_proto_rawDescGZIP(), []int{8}+}++func (x *CheckReleaseResponse) GetResults() []*CheckReleaseResponse_CheckResult {+ if x != nil {+ return x.Results+ }+ return nil+}+type Release struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -473,7 +586,7 @@ type Release struct {func (x *Release) Reset() {*x = Release{}- mi := &file_v1_release_service_proto_msgTypes[7]+ mi := &file_v1_release_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -485,7 +598,7 @@ func (x *Release) String() string {func (*Release) ProtoMessage() {}func (x *Release) ProtoReflect() protoreflect.Message {- mi := &file_v1_release_service_proto_msgTypes[7]+ mi := &file_v1_release_service_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -498,7 +611,7 @@ func (x *Release) ProtoReflect() protoreflect.Message {// Deprecated: Use Release.ProtoReflect.Descriptor instead.func (*Release) Descriptor() ([]byte, []int) {- return file_v1_release_service_proto_rawDescGZIP(), []int{7}+ return file_v1_release_service_proto_rawDescGZIP(), []int{9}}func (x *Release) GetName() string {@@ -550,6 +663,60 @@ func (x *Release) GetState() State {return State_STATE_UNSPECIFIED}+type CheckReleaseResponse_CheckResult struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The file id that is being checked.+ File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`+ Advices []*Advice `protobuf:"bytes,2,rep,name=advices,proto3" json:"advices,omitempty"`+}++func (x *CheckReleaseResponse_CheckResult) Reset() {+ *x = CheckReleaseResponse_CheckResult{}+ mi := &file_v1_release_service_proto_msgTypes[10]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *CheckReleaseResponse_CheckResult) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*CheckReleaseResponse_CheckResult) ProtoMessage() {}++func (x *CheckReleaseResponse_CheckResult) ProtoReflect() protoreflect.Message {+ mi := &file_v1_release_service_proto_msgTypes[10]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use CheckReleaseResponse_CheckResult.ProtoReflect.Descriptor instead.+func (*CheckReleaseResponse_CheckResult) Descriptor() ([]byte, []int) {+ return file_v1_release_service_proto_rawDescGZIP(), []int{8, 0}+}++func (x *CheckReleaseResponse_CheckResult) GetFile() string {+ if x != nil {+ return x.File+ }+ return ""+}++func (x *CheckReleaseResponse_CheckResult) GetAdvices() []*Advice {+ if x != nil {+ return x.Advices+ }+ return nil+}+type Release_File struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -566,14 +733,14 @@ type Release_File struct {SheetSha256 string `protobuf:"bytes,4,opt,name=sheet_sha256,json=sheetSha256,proto3" json:"sheet_sha256,omitempty"`Type ReleaseFileType `protobuf:"varint,5,opt,name=type,proto3,enum=bytebase.v1.ReleaseFileType" json:"type,omitempty"`Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`- // The statement is used for preview purpose.+ // The statement is used for preview or check purpose.Statement string `protobuf:"bytes,7,opt,name=statement,proto3" json:"statement,omitempty"`StatementSize int64 `protobuf:"varint,8,opt,name=statement_size,json=statementSize,proto3" json:"statement_size,omitempty"`}func (x *Release_File) Reset() {*x = Release_File{}- mi := &file_v1_release_service_proto_msgTypes[8]+ mi := &file_v1_release_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -585,7 +752,7 @@ func (x *Release_File) String() string {func (*Release_File) ProtoMessage() {}func (x *Release_File) ProtoReflect() protoreflect.Message {- mi := &file_v1_release_service_proto_msgTypes[8]+ mi := &file_v1_release_service_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -598,7 +765,7 @@ func (x *Release_File) ProtoReflect() protoreflect.Message {// Deprecated: Use Release_File.ProtoReflect.Descriptor instead.func (*Release_File) Descriptor() ([]byte, []int) {- return file_v1_release_service_proto_rawDescGZIP(), []int{7, 0}+ return file_v1_release_service_proto_rawDescGZIP(), []int{9, 0}}func (x *Release_File) GetId() string {@@ -668,7 +835,7 @@ type Release_VCSSource struct {func (x *Release_VCSSource) Reset() {*x = Release_VCSSource{}- mi := &file_v1_release_service_proto_msgTypes[9]+ mi := &file_v1_release_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -680,7 +847,7 @@ func (x *Release_VCSSource) String() string {func (*Release_VCSSource) ProtoMessage() {}func (x *Release_VCSSource) ProtoReflect() protoreflect.Message {- mi := &file_v1_release_service_proto_msgTypes[9]+ mi := &file_v1_release_service_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -693,7 +860,7 @@ func (x *Release_VCSSource) ProtoReflect() protoreflect.Message {// Deprecated: Use Release_VCSSource.ProtoReflect.Descriptor instead.func (*Release_VCSSource) Descriptor() ([]byte, []int) {- return file_v1_release_service_proto_rawDescGZIP(), []int{7, 1}+ return file_v1_release_service_proto_rawDescGZIP(), []int{9, 1}}func (x *Release_VCSSource) GetVcsType() VCSType {@@ -729,161 +896,193 @@ var file_v1_release_service_proto_rawDesc = []byte{0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63,- 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x11, 0x47,- 0x65, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x76, 0x31, 0x2f,+ 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x22, 0x46, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xab, 0x01, 0x0a, 0x13, 0x4c, 0x69,+ 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,+ 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67,+ 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,+ 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,+ 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77,+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x70, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52,+ 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,+ 0x30, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,+ 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,+ 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,+ 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74,+ 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x83, 0x01, 0x0a, 0x14, 0x43, 0x72,+ 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x6c,+ 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,+ 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22,+ 0x89, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x3b,+ 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52,+ 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x49, 0x0a, 0x14, 0x44,+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4b, 0x0a, 0x16, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65,+ 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,0x12, 0x31, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d,0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x22, 0xab, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65,- 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70,+ 0x61, 0x6d, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x13, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x6c,+ 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70,0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01,0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63,0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,- 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21,- 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,- 0x64, 0x22, 0x70, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x72, 0x65, 0x6c,- 0x65, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,- 0x65, 0x52, 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,- 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,- 0x6b, 0x65, 0x6e, 0x22, 0x83, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65,- 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41,- 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02,- 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x14, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20,+ 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20,0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,- 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,- 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x49, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,- 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01,- 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63,- 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x22, 0x4b, 0x0a, 0x16, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65,- 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41,- 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,- 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x82, 0x06,- 0x0a, 0x07, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a,- 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,- 0x74, 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,- 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66,- 0x69, 0x6c, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x0a, 0x76, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x56,- 0x43, 0x53, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x76, 0x63, 0x73, 0x53, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61,- 0x74, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,- 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,- 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61,- 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18,- 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,- 0x1a, 0xa5, 0x02, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x02, 0x69, 0x64, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12,- 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,- 0x61, 0x74, 0x68, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x17, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x05, 0x73, 0x68, 0x65,- 0x65, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x32,- 0x35, 0x36, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b,- 0x73, 0x68, 0x65, 0x65, 0x74, 0x53, 0x68, 0x61, 0x32, 0x35, 0x36, 0x12, 0x30, 0x0a, 0x04, 0x74,- 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x46,- 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a,- 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,- 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65,- 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,- 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x0e, 0x73,- 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20,- 0x01, 0x28, 0x03, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65,- 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x1a, 0x66, 0x0a, 0x09, 0x56, 0x43, 0x53, 0x53,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f, 0x74, 0x79, 0x70,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76,- 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x72,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0e, 0x70, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c,- 0x3a, 0x40, 0xea, 0x41, 0x3d, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x25, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f,- 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73,- 0x65, 0x7d, 0x2a, 0x36, 0x0a, 0x0f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x46, 0x69, 0x6c,- 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x56,- 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x45, 0x44, 0x10, 0x01, 0x32, 0xb7, 0x06, 0x0a, 0x0e, 0x52,- 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a,- 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x1e, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c,- 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,- 0x65, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22,- 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x2f,- 0x2a, 0x7d, 0x12, 0x86, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61,- 0x73, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73,- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,- 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x8c, 0x01, 0x0a, 0x0d,- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x21, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,- 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,- 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x42, 0xda, 0x41, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x2c, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a,- 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,- 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x99, 0x01, 0x0a, 0x0d, 0x55,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x21, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,- 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x4f, 0xda, 0x41, 0x13, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73,- 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x33, 0x3a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x32, 0x28, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61,- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7b, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,- 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65,- 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,- 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,- 0x74, 0x79, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x12, 0x7f, 0x0a, 0x0f, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,- 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c,- 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,- 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x22, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67,+ 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65,+ 0x74, 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x14, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x07, 0x72,+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b,+ 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,+ 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73,+ 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x50, 0x0a, 0x0b, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73,+ 0x75, 0x6c, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x61, 0x64, 0x76, 0x69, 0x63,+ 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x61,+ 0x64, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x82, 0x06, 0x0a, 0x07, 0x52, 0x65, 0x6c, 0x65, 0x61,+ 0x73, 0x65, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,+ 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,+ 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69,+ 0x6c, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x0a, 0x76, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x56, 0x43,+ 0x53, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x76, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,+ 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,+ 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,+ 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74,+ 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x07,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x05,+ 0x73, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x99, 0x02, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0e,+ 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,+ 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,+ 0x74, 0x68, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x17, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65,+ 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x32, 0x35,+ 0x36, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x73,+ 0x68, 0x65, 0x65, 0x74, 0x53, 0x68, 0x61, 0x32, 0x35, 0x36, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79,+ 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x46, 0x69,+ 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07,+ 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76,+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d,+ 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65,+ 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e,+ 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x42, 0x04, 0xe2, 0x41,+ 0x01, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a,+ 0x65, 0x1a, 0x66, 0x0a, 0x09, 0x56, 0x43, 0x53, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f,+ 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56,+ 0x43, 0x53, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12,+ 0x28, 0x0a, 0x10, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f,+ 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75, 0x6c, 0x6c, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x3a, 0x40, 0xea, 0x41, 0x3d, 0x0a, 0x14,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c,+ 0x65, 0x61, 0x73, 0x65, 0x12, 0x25, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,+ 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x7d, 0x2a, 0x36, 0x0a, 0x0f, 0x52,+ 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,+ 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x45,+ 0x44, 0x10, 0x01, 0x32, 0xc0, 0x07, 0x0a, 0x0e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53,+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c,+ 0x65, 0x61, 0x73, 0x65, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b,0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65,- 0x6c, 0x65, 0x74, 0x65, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,- 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x86, 0x01, 0x0a, 0x0c,+ 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52,+ 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,+ 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x22, 0x31, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x73, 0x12, 0x8c, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52,+ 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61,+ 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22,+ 0x42, 0xda, 0x41, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x6c, 0x65, 0x61,+ 0x73, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73,+ 0x65, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61,+ 0x73, 0x65, 0x73, 0x12, 0x99, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65,+ 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x4f,+ 0xda, 0x41, 0x13, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x07, 0x72, 0x65,+ 0x6c, 0x65, 0x61, 0x73, 0x65, 0x32, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12,+ 0x7b, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,+ 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2f, 0xda, 0x41, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7f, 0x0a, 0x0f,+ 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12,+ 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e,+ 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x2b, 0x22, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x86, 0x01,+ 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x20,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65,+ 0x63, 0x6b, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,+ 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,+ 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73,+ 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,+ 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x33,}var (@@ -899,53 +1098,62 @@ func file_v1_release_service_proto_rawDescGZIP() []byte {}var file_v1_release_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_v1_release_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)+var file_v1_release_service_proto_msgTypes = make([]protoimpl.MessageInfo, 13)var file_v1_release_service_proto_goTypes = []any{- (ReleaseFileType)(0), // 0: bytebase.v1.ReleaseFileType- (*GetReleaseRequest)(nil), // 1: bytebase.v1.GetReleaseRequest- (*ListReleasesRequest)(nil), // 2: bytebase.v1.ListReleasesRequest- (*ListReleasesResponse)(nil), // 3: bytebase.v1.ListReleasesResponse- (*CreateReleaseRequest)(nil), // 4: bytebase.v1.CreateReleaseRequest- (*UpdateReleaseRequest)(nil), // 5: bytebase.v1.UpdateReleaseRequest- (*DeleteReleaseRequest)(nil), // 6: bytebase.v1.DeleteReleaseRequest- (*UndeleteReleaseRequest)(nil), // 7: bytebase.v1.UndeleteReleaseRequest- (*Release)(nil), // 8: bytebase.v1.Release- (*Release_File)(nil), // 9: bytebase.v1.Release.File- (*Release_VCSSource)(nil), // 10: bytebase.v1.Release.VCSSource- (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask- (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp- (State)(0), // 13: bytebase.v1.State- (VCSType)(0), // 14: bytebase.v1.VCSType- (*emptypb.Empty)(nil), // 15: google.protobuf.Empty+ (ReleaseFileType)(0), // 0: bytebase.v1.ReleaseFileType+ (*GetReleaseRequest)(nil), // 1: bytebase.v1.GetReleaseRequest+ (*ListReleasesRequest)(nil), // 2: bytebase.v1.ListReleasesRequest+ (*ListReleasesResponse)(nil), // 3: bytebase.v1.ListReleasesResponse+ (*CreateReleaseRequest)(nil), // 4: bytebase.v1.CreateReleaseRequest+ (*UpdateReleaseRequest)(nil), // 5: bytebase.v1.UpdateReleaseRequest+ (*DeleteReleaseRequest)(nil), // 6: bytebase.v1.DeleteReleaseRequest+ (*UndeleteReleaseRequest)(nil), // 7: bytebase.v1.UndeleteReleaseRequest+ (*CheckReleaseRequest)(nil), // 8: bytebase.v1.CheckReleaseRequest+ (*CheckReleaseResponse)(nil), // 9: bytebase.v1.CheckReleaseResponse+ (*Release)(nil), // 10: bytebase.v1.Release+ (*CheckReleaseResponse_CheckResult)(nil), // 11: bytebase.v1.CheckReleaseResponse.CheckResult+ (*Release_File)(nil), // 12: bytebase.v1.Release.File+ (*Release_VCSSource)(nil), // 13: bytebase.v1.Release.VCSSource+ (*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp+ (State)(0), // 16: bytebase.v1.State+ (*Advice)(nil), // 17: bytebase.v1.Advice+ (VCSType)(0), // 18: bytebase.v1.VCSType+ (*emptypb.Empty)(nil), // 19: google.protobuf.Empty}var file_v1_release_service_proto_depIdxs = []int32{- 8, // 0: bytebase.v1.ListReleasesResponse.releases:type_name -> bytebase.v1.Release- 8, // 1: bytebase.v1.CreateReleaseRequest.release:type_name -> bytebase.v1.Release- 8, // 2: bytebase.v1.UpdateReleaseRequest.release:type_name -> bytebase.v1.Release- 11, // 3: bytebase.v1.UpdateReleaseRequest.update_mask:type_name -> google.protobuf.FieldMask- 9, // 4: bytebase.v1.Release.files:type_name -> bytebase.v1.Release.File- 10, // 5: bytebase.v1.Release.vcs_source:type_name -> bytebase.v1.Release.VCSSource- 12, // 6: bytebase.v1.Release.create_time:type_name -> google.protobuf.Timestamp- 13, // 7: bytebase.v1.Release.state:type_name -> bytebase.v1.State- 0, // 8: bytebase.v1.Release.File.type:type_name -> bytebase.v1.ReleaseFileType- 14, // 9: bytebase.v1.Release.VCSSource.vcs_type:type_name -> bytebase.v1.VCSType- 1, // 10: bytebase.v1.ReleaseService.GetRelease:input_type -> bytebase.v1.GetReleaseRequest- 2, // 11: bytebase.v1.ReleaseService.ListReleases:input_type -> bytebase.v1.ListReleasesRequest- 4, // 12: bytebase.v1.ReleaseService.CreateRelease:input_type -> bytebase.v1.CreateReleaseRequest- 5, // 13: bytebase.v1.ReleaseService.UpdateRelease:input_type -> bytebase.v1.UpdateReleaseRequest- 6, // 14: bytebase.v1.ReleaseService.DeleteRelease:input_type -> bytebase.v1.DeleteReleaseRequest- 7, // 15: bytebase.v1.ReleaseService.UndeleteRelease:input_type -> bytebase.v1.UndeleteReleaseRequest- 8, // 16: bytebase.v1.ReleaseService.GetRelease:output_type -> bytebase.v1.Release- 3, // 17: bytebase.v1.ReleaseService.ListReleases:output_type -> bytebase.v1.ListReleasesResponse- 8, // 18: bytebase.v1.ReleaseService.CreateRelease:output_type -> bytebase.v1.Release- 8, // 19: bytebase.v1.ReleaseService.UpdateRelease:output_type -> bytebase.v1.Release- 15, // 20: bytebase.v1.ReleaseService.DeleteRelease:output_type -> google.protobuf.Empty- 8, // 21: bytebase.v1.ReleaseService.UndeleteRelease:output_type -> bytebase.v1.Release- 16, // [16:22] is the sub-list for method output_type- 10, // [10:16] is the sub-list for method input_type- 10, // [10:10] is the sub-list for extension type_name- 10, // [10:10] is the sub-list for extension extendee- 0, // [0:10] is the sub-list for field type_name+ 10, // 0: bytebase.v1.ListReleasesResponse.releases:type_name -> bytebase.v1.Release+ 10, // 1: bytebase.v1.CreateReleaseRequest.release:type_name -> bytebase.v1.Release+ 10, // 2: bytebase.v1.UpdateReleaseRequest.release:type_name -> bytebase.v1.Release+ 14, // 3: bytebase.v1.UpdateReleaseRequest.update_mask:type_name -> google.protobuf.FieldMask+ 10, // 4: bytebase.v1.CheckReleaseRequest.release:type_name -> bytebase.v1.Release+ 11, // 5: bytebase.v1.CheckReleaseResponse.results:type_name -> bytebase.v1.CheckReleaseResponse.CheckResult+ 12, // 6: bytebase.v1.Release.files:type_name -> bytebase.v1.Release.File+ 13, // 7: bytebase.v1.Release.vcs_source:type_name -> bytebase.v1.Release.VCSSource+ 15, // 8: bytebase.v1.Release.create_time:type_name -> google.protobuf.Timestamp+ 16, // 9: bytebase.v1.Release.state:type_name -> bytebase.v1.State+ 17, // 10: bytebase.v1.CheckReleaseResponse.CheckResult.advices:type_name -> bytebase.v1.Advice+ 0, // 11: bytebase.v1.Release.File.type:type_name -> bytebase.v1.ReleaseFileType+ 18, // 12: bytebase.v1.Release.VCSSource.vcs_type:type_name -> bytebase.v1.VCSType+ 1, // 13: bytebase.v1.ReleaseService.GetRelease:input_type -> bytebase.v1.GetReleaseRequest+ 2, // 14: bytebase.v1.ReleaseService.ListReleases:input_type -> bytebase.v1.ListReleasesRequest+ 4, // 15: bytebase.v1.ReleaseService.CreateRelease:input_type -> bytebase.v1.CreateReleaseRequest+ 5, // 16: bytebase.v1.ReleaseService.UpdateRelease:input_type -> bytebase.v1.UpdateReleaseRequest+ 6, // 17: bytebase.v1.ReleaseService.DeleteRelease:input_type -> bytebase.v1.DeleteReleaseRequest+ 7, // 18: bytebase.v1.ReleaseService.UndeleteRelease:input_type -> bytebase.v1.UndeleteReleaseRequest+ 8, // 19: bytebase.v1.ReleaseService.CheckRelease:input_type -> bytebase.v1.CheckReleaseRequest+ 10, // 20: bytebase.v1.ReleaseService.GetRelease:output_type -> bytebase.v1.Release+ 3, // 21: bytebase.v1.ReleaseService.ListReleases:output_type -> bytebase.v1.ListReleasesResponse+ 10, // 22: bytebase.v1.ReleaseService.CreateRelease:output_type -> bytebase.v1.Release+ 10, // 23: bytebase.v1.ReleaseService.UpdateRelease:output_type -> bytebase.v1.Release+ 19, // 24: bytebase.v1.ReleaseService.DeleteRelease:output_type -> google.protobuf.Empty+ 10, // 25: bytebase.v1.ReleaseService.UndeleteRelease:output_type -> bytebase.v1.Release+ 9, // 26: bytebase.v1.ReleaseService.CheckRelease:output_type -> bytebase.v1.CheckReleaseResponse+ 20, // [20:27] is the sub-list for method output_type+ 13, // [13:20] is the sub-list for method input_type+ 13, // [13:13] is the sub-list for extension type_name+ 13, // [13:13] is the sub-list for extension extendee+ 0, // [0:13] is the sub-list for field type_name}func init() { file_v1_release_service_proto_init() }@@ -954,13 +1162,14 @@ func file_v1_release_service_proto_init() {return}file_v1_common_proto_init()+ file_v1_sql_service_proto_init()type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_release_service_proto_rawDesc,NumEnums: 1,- NumMessages: 10,+ NumMessages: 13,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/release_service.pb.gw.go b/proto/generated-go/v1/release_service.pb.gw.goindex 17f411b247..bc4320c598 100644--- a/proto/generated-go/v1/release_service.pb.gw.go+++ b/proto/generated-go/v1/release_service.pb.gw.go@@ -313,6 +313,48 @@ func local_request_ReleaseService_UndeleteRelease_0(ctx context.Context, marshalreturn msg, metadata, err}+func request_ReleaseService_CheckRelease_0(ctx context.Context, marshaler runtime.Marshaler, client ReleaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var (+ protoReq CheckReleaseRequest+ metadata runtime.ServerMetadata+ err error+ )+ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ val, ok := pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }+ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }+ msg, err := client.CheckRelease(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err+}++func local_request_ReleaseService_CheckRelease_0(ctx context.Context, marshaler runtime.Marshaler, server ReleaseServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var (+ protoReq CheckReleaseRequest+ metadata runtime.ServerMetadata+ err error+ )+ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ val, ok := pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }+ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }+ msg, err := server.CheckRelease(ctx, &protoReq)+ return msg, metadata, err+}+// RegisterReleaseServiceHandlerServer registers the http handlers for service ReleaseService to "mux".// UnaryRPC :call ReleaseServiceServer directly.// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.@@ -439,6 +481,26 @@ func RegisterReleaseServiceHandlerServer(ctx context.Context, mux *runtime.Serve}forward_ReleaseService_UndeleteRelease_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})+ mux.Handle(http.MethodPost, pattern_ReleaseService_CheckRelease_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReleaseService/CheckRelease", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/releases:check"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_ReleaseService_CheckRelease_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }+ forward_ReleaseService_CheckRelease_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ })return nil}@@ -581,6 +643,23 @@ func RegisterReleaseServiceHandlerClient(ctx context.Context, mux *runtime.Serve}forward_ReleaseService_UndeleteRelease_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})+ mux.Handle(http.MethodPost, pattern_ReleaseService_CheckRelease_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ReleaseService/CheckRelease", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/releases:check"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_ReleaseService_CheckRelease_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }+ forward_ReleaseService_CheckRelease_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ })return nil}@@ -591,6 +670,7 @@ var (pattern_ReleaseService_UpdateRelease_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "releases", "release.name"}, ""))pattern_ReleaseService_DeleteRelease_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "releases", "name"}, ""))pattern_ReleaseService_UndeleteRelease_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "releases", "name"}, "undelete"))+ pattern_ReleaseService_CheckRelease_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "releases"}, "check")))var (@@ -600,4 +680,5 @@ var (forward_ReleaseService_UpdateRelease_0 = runtime.ForwardResponseMessageforward_ReleaseService_DeleteRelease_0 = runtime.ForwardResponseMessageforward_ReleaseService_UndeleteRelease_0 = runtime.ForwardResponseMessage+ forward_ReleaseService_CheckRelease_0 = runtime.ForwardResponseMessage)diff --git a/proto/generated-go/v1/release_service_grpc.pb.go b/proto/generated-go/v1/release_service_grpc.pb.goindex 7b049df686..09ebe34f73 100644--- a/proto/generated-go/v1/release_service_grpc.pb.go+++ b/proto/generated-go/v1/release_service_grpc.pb.go@@ -26,6 +26,7 @@ const (ReleaseService_UpdateRelease_FullMethodName = "/bytebase.v1.ReleaseService/UpdateRelease"ReleaseService_DeleteRelease_FullMethodName = "/bytebase.v1.ReleaseService/DeleteRelease"ReleaseService_UndeleteRelease_FullMethodName = "/bytebase.v1.ReleaseService/UndeleteRelease"+ ReleaseService_CheckRelease_FullMethodName = "/bytebase.v1.ReleaseService/CheckRelease")// ReleaseServiceClient is the client API for ReleaseService service.@@ -38,6 +39,7 @@ type ReleaseServiceClient interface {UpdateRelease(ctx context.Context, in *UpdateReleaseRequest, opts ...grpc.CallOption) (*Release, error)DeleteRelease(ctx context.Context, in *DeleteReleaseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)UndeleteRelease(ctx context.Context, in *UndeleteReleaseRequest, opts ...grpc.CallOption) (*Release, error)+ CheckRelease(ctx context.Context, in *CheckReleaseRequest, opts ...grpc.CallOption) (*CheckReleaseResponse, error)}type releaseServiceClient struct {@@ -108,6 +110,16 @@ func (c *releaseServiceClient) UndeleteRelease(ctx context.Context, in *Undeletereturn out, nil}+func (c *releaseServiceClient) CheckRelease(ctx context.Context, in *CheckReleaseRequest, opts ...grpc.CallOption) (*CheckReleaseResponse, error) {+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)+ out := new(CheckReleaseResponse)+ err := c.cc.Invoke(ctx, ReleaseService_CheckRelease_FullMethodName, in, out, cOpts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}+// ReleaseServiceServer is the server API for ReleaseService service.// All implementations must embed UnimplementedReleaseServiceServer// for forward compatibility.@@ -118,6 +130,7 @@ type ReleaseServiceServer interface {UpdateRelease(context.Context, *UpdateReleaseRequest) (*Release, error)DeleteRelease(context.Context, *DeleteReleaseRequest) (*emptypb.Empty, error)UndeleteRelease(context.Context, *UndeleteReleaseRequest) (*Release, error)+ CheckRelease(context.Context, *CheckReleaseRequest) (*CheckReleaseResponse, error)mustEmbedUnimplementedReleaseServiceServer()}@@ -146,6 +159,9 @@ func (UnimplementedReleaseServiceServer) DeleteRelease(context.Context, *DeleteRfunc (UnimplementedReleaseServiceServer) UndeleteRelease(context.Context, *UndeleteReleaseRequest) (*Release, error) {return nil, status.Errorf(codes.Unimplemented, "method UndeleteRelease not implemented")}+func (UnimplementedReleaseServiceServer) CheckRelease(context.Context, *CheckReleaseRequest) (*CheckReleaseResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method CheckRelease not implemented")+}func (UnimplementedReleaseServiceServer) mustEmbedUnimplementedReleaseServiceServer() {}func (UnimplementedReleaseServiceServer) testEmbeddedByValue() {}@@ -275,6 +291,24 @@ func _ReleaseService_UndeleteRelease_Handler(srv interface{}, ctx context.Contexreturn interceptor(ctx, in, info, handler)}+func _ReleaseService_CheckRelease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(CheckReleaseRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(ReleaseServiceServer).CheckRelease(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: ReleaseService_CheckRelease_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(ReleaseServiceServer).CheckRelease(ctx, req.(*CheckReleaseRequest))+ }+ return interceptor(ctx, in, info, handler)+}+// ReleaseService_ServiceDesc is the grpc.ServiceDesc for ReleaseService service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)@@ -306,6 +340,10 @@ var ReleaseService_ServiceDesc = grpc.ServiceDesc{MethodName: "UndeleteRelease",Handler: _ReleaseService_UndeleteRelease_Handler,},+ {+ MethodName: "CheckRelease",+ Handler: _ReleaseService_CheckRelease_Handler,+ },},Streams: []grpc.StreamDesc{},Metadata: "v1/release_service.proto",diff --git a/proto/v1/release_service.proto b/proto/v1/release_service.protoindex f4af7f6999..0fb522469e 100644--- a/proto/v1/release_service.proto+++ b/proto/v1/release_service.proto@@ -10,6 +10,7 @@ import "google/protobuf/empty.proto";import "google/protobuf/field_mask.proto";import "google/protobuf/timestamp.proto";import "v1/common.proto";+import "v1/sql_service.proto";option go_package = "generated-go/v1";@@ -43,6 +44,12 @@ service ReleaseService {rpc UndeleteRelease(UndeleteReleaseRequest) returns (Release) {option (google.api.http) = {post: "/v1/{name=projects/*/releases/*}:undelete"};}+ rpc CheckRelease(CheckReleaseRequest) returns (CheckReleaseResponse) {+ option (google.api.http) = {+ post: "/v1/{parent=projects/*}/releases:check"+ body: "*"+ };+ }}message GetReleaseRequest {@@ -122,6 +129,35 @@ message UndeleteReleaseRequest {];}+message CheckReleaseRequest {+ // Format: projects/{project}+ string parent = 1 [+ (google.api.field_behavior) = REQUIRED,+ (google.api.resource_reference) = {type: "bytebase.com/Project"}+ ];++ // The release to check.+ Release release = 2 [(google.api.field_behavior) = REQUIRED];++ // The targets to dry-run the release.+ // Can be database or databaseGroup.+ // Format:+ // projects/{project}/databaseGroups/{databaseGroup}+ // instances/{instance}/databases/{database}+ repeated string targets = 3;+}++message CheckReleaseResponse {+ message CheckResult {+ // The file id that is being checked.+ string file = 1;++ repeated Advice advices = 2;+ }++ repeated CheckResult results = 1;+}+message Release {option (google.api.resource) = {type: "bytebase.com/Release"@@ -129,7 +165,7 @@ message Release {};// Format: projects/{project}/releases/{release}- string name = 1;+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];string title = 2;@@ -142,11 +178,11 @@ message Release {google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];- State state = 7;+ State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];message File {// The unique identifier for the file.- string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];+ string id = 1;// The path of the file. e.g. `2.2/V0001_create_table.sql`.string path = 2;// The sheet that holds the content.@@ -157,8 +193,8 @@ message Release {ReleaseFileType type = 5;string version = 6;- // The statement is used for preview purpose.- string statement = 7 [(google.api.field_behavior) = OUTPUT_ONLY];+ // The statement is used for preview or check purpose.+ string statement = 7;int64 statement_size = 8 [(google.api.field_behavior) = OUTPUT_ONLY];}